NLO generation

Asked by Guglielmo Coloretti

Dear all,

I would like to simulate NLO process using MadGraph5 version 3.4.1. I would like to shower using Pythia8 and use Delphes as a detector.

First thing, I cannot see any switch for the detector simulation. I was wondering if there is a way to use Delphes within the MadGraph5 interface or I should run it independently.

As for the error I am getting, I am just following the tutorial using SM and generating

generate p p > e+ ve [QCD]

but getting a "Configuration error" that I cannot understand. I point out that all LO generations work fine and with any model (also UFO written by myself).
generate

I paste here the output of the terminal and the log files.

************************************************************************************
Terminal output:
************************************************************************************
gcolor@lorettico:~/Desktop/Softwares/MG5_aMC_v3_4_1$ ./bin/mg5_aMC
************************************************************
* *
* W E L C O M E to *
* M A D G R A P H 5 _ a M C @ N L O *
* *
* *
* * * *
* * * * * *
* * * * * 5 * * * * *
* * * * * *
* * * *
* *
* VERSION 3.4.2 2023-01-20 *
* *
* The MadGraph5_aMC@NLO Development Team - Find us at *
* https://server06.fynu.ucl.ac.be/projects/madgraph *
* and *
* http://amcatnlo.web.cern.ch/amcatnlo/ *
* *
* Type 'help' for in-line help. *
* Type 'tutorial' to learn how MG5 works *
* Type 'tutorial aMCatNLO' to learn how aMC@NLO works *
* Type 'tutorial MadLoop' to learn how MadLoop works *
* *
************************************************************
load MG5 configuration from input/mg5_configuration.txt
set fastjet to /home/gcolor/Desktop/Softwares/MG5_aMC_v3_4_1/HEPTools/fastjet/bin/fastjet-config
set ninja to /home/gcolor/Desktop/Softwares/MG5_aMC_v3_4_1/HEPTools/lib
set collier to /home/gcolor/Desktop/Softwares/MG5_aMC_v3_4_1/HEPTools/collier
set lhapdf to /home/gcolor/Desktop/Softwares/MG5_aMC_v3_4_1/HEPTools/lhapdf6_py3/bin/lhapdf-config
set lhapdf to /home/gcolor/Desktop/Softwares/MG5_aMC_v3_4_1/HEPTools/lhapdf6_py3/bin/lhapdf-config
Using default text editor "vi". Set another one in ./input/mg5_configuration.txt
Using default eps viewer "evince". Set another one in ./input/mg5_configuration.txt
Using default web browser "firefox". Set another one in ./input/mg5_configuration.txt
Loading default model: sm
INFO: Restrict model sm with file models/sm/restrict_default.dat .
INFO: Run "set stdout_level DEBUG" before import for more information.
INFO: Change particles name to pass to MG5 convention
Defined multiparticle p = g u c d s u~ c~ d~ s~
Defined multiparticle j = g u c d s u~ c~ d~ s~
Defined multiparticle l+ = e+ mu+
Defined multiparticle l- = e- mu-
Defined multiparticle vl = ve vm vt
Defined multiparticle vl~ = ve~ vm~ vt~
Defined multiparticle all = g u c d s u~ c~ d~ s~ a ve vm vt e- mu- ve~ vm~ vt~ e+ mu+ t b t~ b~ z w+ h w- ta- ta+
MG5_aMC>generate p p > e+ ve [QCD]
The current model sm does not allow to generate loop corrections of type ['QCD'].
MG5_aMC now loads 'loop_sm'.
 import model loop_sm
INFO: Restrict model loop_sm with file models/loop_sm/restrict_default.dat .
INFO: Run "set stdout_level DEBUG" before import for more information.
INFO: Change particles name to pass to MG5 convention
Kept definitions of multiparticles p / j / l+ / l- / vl / vl~ unchanged
Defined multiparticle all = g gh gh~ d u s c d~ u~ s~ c~ a ve vm vt e- mu- ve~ vm~ vt~ e+ mu+ b t b~ t~ z w+ h w- ta- ta+
INFO: Checking for minimal orders which gives processes.
INFO: Please specify coupling orders to bypass this step.
INFO: Trying coupling order WEIGHTED<=4: WEIGTHED IS QCD+2*QED
Setting the born squared orders automatically in the process definition to QED^2<=4 QCD=0.
If this is not what you need, please regenerate with the correct orders.
WARNING: Use of multiparticles is non-trivial for NLO process generation and depends on the orders included, the process considered, as well as the PDF set chosen. See appendix D of arXiv:1804.10017 [hep-ph] for some guidance.
INFO: Generating FKS-subtracted matrix elements for born process: u d~ > e+ ve QCD^2=2 QED^2=4 (1 / 4)
INFO: Generating FKS-subtracted matrix elements for born process: c s~ > e+ ve QCD^2=2 QED^2=4 (2 / 4)
INFO: Generating FKS-subtracted matrix elements for born process: d~ u > e+ ve QCD^2=2 QED^2=4 (3 / 4)
INFO: Generating FKS-subtracted matrix elements for born process: s~ c > e+ ve QCD^2=2 QED^2=4 (4 / 4)
INFO: Generating virtual matrix element with MadLoop for process: u d~ > ve e+ QCD^2=2 QED^2=4 (1 / 4)
INFO: Generating virtual matrix element with MadLoop for process: c s~ > ve e+ QCD^2=2 QED^2=4 (2 / 4)
INFO: Generating virtual matrix element with MadLoop for process: d~ u > ve e+ QCD^2=2 QED^2=4 (3 / 4)
INFO: Generating virtual matrix element with MadLoop for process: s~ c > ve e+ QCD^2=2 QED^2=4 (4 / 4)
INFO: Generated 4 subprocesses with 24 real emission diagrams, 4 born diagrams and 4 virtual diagrams
MG5_aMC>output MY_FIRST_AMCATNLO_RUN
INFO: Writing out the aMC@NLO code, using optimized Loops
INFO: directory /home/gcolor/Desktop/Softwares/MG5_aMC_v3_4_1/MY_FIRST_AMCATNLO_RUN already exists.
If you continue this directory will be deleted and replaced.
Do you want to continue? [y, n][60s to answer]
>
INFO: initialize a new directory: MY_FIRST_AMCATNLO_RUN
INFO: remove old information in MY_FIRST_AMCATNLO_RUN
INFO: Generating real emission matrix-elements...
INFO: Generating Helas calls for FKS process: u d~ > ve e+ [ all = QCD QED ] QCD^2=2 QED^2=4 (1 / 4)
INFO: Processing color information for process: u d~ > ve e+ [ all = QCD QED ] QCD^2=2 QED^2=4
INFO: Generating Helas calls for FKS process: c s~ > ve e+ [ all = QCD QED ] QCD^2=2 QED^2=4 (2 / 4)
INFO: Generating Helas calls for FKS process: d~ u > ve e+ [ all = QCD QED ] QCD^2=2 QED^2=4 (3 / 4)
INFO: Processing color information for process: d~ u > ve e+ [ all = QCD QED ] QCD^2=2 QED^2=4
INFO: Generating Helas calls for FKS process: s~ c > ve e+ [ all = QCD QED ] QCD^2=2 QED^2=4 (4 / 4)
INFO: ... Done
INFO: Writing files in P0_udx_veep (1 / 2)
INFO: Creating files in directory V0_udx_veep
INFO: Computing diagram color coefficients
INFO: Drawing loop Feynman diagrams for Process: u d~ > ve e+ [ all = QCD QED ] QCD^2=2 QED^2=4
INFO: Generating born Feynman diagrams for Process: u d~ > ve e+ [ all = QCD QED ] QCD^2=2 QED^2=4
INFO: Writing files in P0_dxu_veep (2 / 2)
INFO: Creating files in directory V0_dxu_veep
INFO: Computing diagram color coefficients
INFO: Drawing loop Feynman diagrams for Process: d~ u > ve e+ [ all = QCD QED ] QCD^2=2 QED^2=4
INFO: Generating born Feynman diagrams for Process: d~ u > ve e+ [ all = QCD QED ] QCD^2=2 QED^2=4
History written to /home/gcolor/Desktop/Softwares/MG5_aMC_v3_4_1/MY_FIRST_AMCATNLO_RUN/Cards/proc_card_mg5.dat
ALOHA: aloha starts to compute helicity amplitudes
ALOHA: aloha creates 8 routines in 0.130 s
save configuration file to /home/gcolor/Desktop/Softwares/MG5_aMC_v3_4_1/MY_FIRST_AMCATNLO_RUN/Cards/amcatnlo_configuration.txt
INFO: Use Fortran compiler gfortran
INFO: Use c++ compiler g++
INFO: Generate jpeg diagrams
INFO: Generate web pages
INFO: Generating MadAnalysis5 default cards tailored to this process
INFO: Cards created in 1.80s
Type "launch" to generate events from this process, or see
/home/gcolor/Desktop/Softwares/MG5_aMC_v3_4_1/MY_FIRST_AMCATNLO_RUN/README
Run "open index.html" to see more information about this process.
MG5_aMC>launch
INFO: ************************************************************
* *
* W E L C O M E to M A D G R A P H 5 *
* a M C @ N L O *
* *
* * * *
* * * * * *
* * * * * 5 * * * * *
* * * * * *
* * * *
* *
* VERSION 3.4.2 2023-01-20 *
* *
* The MadGraph5_aMC@NLO Development Team - Find us at *
* http://amcatnlo.cern.ch *
* *
* Type 'help' for in-line help. *
* *
************************************************************
INFO: load configuration from /home/gcolor/Desktop/Softwares/MG5_aMC_v3_4_1/MY_FIRST_AMCATNLO_RUN/Cards/amcatnlo_configuration.txt
INFO: load configuration from /home/gcolor/Desktop/Softwares/MG5_aMC_v3_4_1/input/mg5_configuration.txt
INFO: load configuration from /home/gcolor/Desktop/Softwares/MG5_aMC_v3_4_1/MY_FIRST_AMCATNLO_RUN/Cards/amcatnlo_configuration.txt
Using default text editor "vi". Set another one in ./input/mg5_configuration.txt
launch auto
The following switches determine which programs are run:
/================ Description ================|============== values ===============|========== other options ===========\
| 1. Type of perturbative computation | order = NLO | LO |
| 2. No MC@[N]LO matching / event generation | fixed_order = OFF | ON |
| 3. Shower the generated events | shower = HERWIG6 | OFF|PYTHIA6Q|PYTHIA6PT|PYTHIA8 |
| 4. Decay onshell particles | madspin = OFF | ON|onshell |
| 5. Add weights to events for new hypp. | reweight = Not Avail | Please install module |
| 6. Run MadAnalysis5 on the events generated | madanalysis = OFF | ON |
\========================================================================================================================/
Either type the switch number (1 to 6) to change its setting,
Set any switch explicitly (e.g. type 'order=LO' at the prompt)
Type 'help' for the list of all valid option
Type '0', 'auto', 'done' or just press enter when you are done.[60s to answer]
>3
The following switches determine which programs are run:
/================ Description ================|============== values ===============|============ other options =============\
| 1. Type of perturbative computation | order = NLO | LO |
| 2. No MC@[N]LO matching / event generation | fixed_order = OFF | ON |
| 3. Shower the generated events | shower = OFF | PYTHIA6Q|PYTHIA6PT|PYTHIA8|HERWIG6 |
| 4. Decay onshell particles | madspin = OFF | ON|onshell |
| 5. Add weights to events for new hypp. | reweight = Not Avail | Please install module |
| 6. Run MadAnalysis5 on the events generated | madanalysis = OFF | ON |
\============================================================================================================================/
Either type the switch number (1 to 6) to change its setting,
Set any switch explicitly (e.g. type 'order=LO' at the prompt)
Type 'help' for the list of all valid option
Type '0', 'auto', 'done' or just press enter when you are done.
>3
The following switches determine which programs are run:
/================ Description ================|============== values ===============|========== other options ==========\
| 1. Type of perturbative computation | order = NLO | LO |
| 2. No MC@[N]LO matching / event generation | fixed_order = OFF | ON |
| 3. Shower the generated events | shower = PYTHIA6Q | PYTHIA6PT|PYTHIA8|HERWIG6|OFF |
| 4. Decay onshell particles | madspin = OFF | ON|onshell |
| 5. Add weights to events for new hypp. | reweight = Not Avail | Please install module |
| 6. Run MadAnalysis5 on the events generated | madanalysis = OFF | ON |
\=======================================================================================================================/
Either type the switch number (1 to 6) to change its setting,
Set any switch explicitly (e.g. type 'order=LO' at the prompt)
Type 'help' for the list of all valid option
Type '0', 'auto', 'done' or just press enter when you are done.
>3
The following switches determine which programs are run:
/================ Description ================|============== values ===============|========= other options ==========\
| 1. Type of perturbative computation | order = NLO | LO |
| 2. No MC@[N]LO matching / event generation | fixed_order = OFF | ON |
| 3. Shower the generated events | shower = PYTHIA6PT | PYTHIA8|HERWIG6|OFF|PYTHIA6Q |
| 4. Decay onshell particles | madspin = OFF | ON|onshell |
| 5. Add weights to events for new hypp. | reweight = Not Avail | Please install module |
| 6. Run MadAnalysis5 on the events generated | madanalysis = OFF | ON |
\======================================================================================================================/
Either type the switch number (1 to 6) to change its setting,
Set any switch explicitly (e.g. type 'order=LO' at the prompt)
Type 'help' for the list of all valid option
Type '0', 'auto', 'done' or just press enter when you are done.
>3
The following switches determine which programs are run:
/================ Description ================|============== values ===============|========== other options ===========\
| 1. Type of perturbative computation | order = NLO | LO |
| 2. No MC@[N]LO matching / event generation | fixed_order = OFF | ON |
| 3. Shower the generated events | shower = PYTHIA8 | HERWIG6|OFF|PYTHIA6Q|PYTHIA6PT |
| 4. Decay onshell particles | madspin = OFF | ON|onshell |
| 5. Add weights to events for new hypp. | reweight = Not Avail | Please install module |
| 6. Run MadAnalysis5 on the events generated | madanalysis = OFF | ON |
\========================================================================================================================/
Either type the switch number (1 to 6) to change its setting,
Set any switch explicitly (e.g. type 'order=LO' at the prompt)
Type 'help' for the list of all valid option
Type '0', 'auto', 'done' or just press enter when you are done.
>
INFO: will run in mode: aMC@NLO
INFO: modify parameter parton_shower of the run_card.dat to PYTHIA8
Do you want to edit a card (press enter to bypass editing)?
/------------------------------------------------------------\
| 1. param : param_card.dat |
| 2. run : run_card.dat |
| 3. shower : shower_card.dat |
\------------------------------------------------------------/
 you can also
   - enter the path to a valid card or banner.
   - use the 'set' command to modify a parameter directly.
     The set option works only for param_card and run_card.
     Type 'help set' for more information on this command.
   - call an external program (ASperGE/MadWidth/...).
     Type 'help' for the list of available command
 [0, done, 1, param, 2, run, 3, shower, enter path][90s to answer]
>
INFO: modify parameter extralibs of the shower_card.dat to pythia8 z dl stdc++
INFO: modify parameter extrapaths of the shower_card.dat to ../lib /home/gcolor/Desktop/Softwares/MG5_aMC_v3_4_1/HEPTools/pythia8//lib l,-rpath,/home/gcolor/Desktop/Softwares/MG5_aMC_v3_4_1/HEPTools/pythia8//lib /home/gcolor/Desktop/Softwares/MG5_aMC_v3_4_1/HEPTools/zlib/lib l,-rpath,/home/gcolor/Desktop/Softwares/MG5_aMC_v3_4_1/HEPTools/zlib/lib
INFO: Update the dependent parameter of the param_card.dat
WARNING: update the strong coupling value (alpha_s) to the value from the pdf selected: 0.119
INFO: Starting run
INFO: Compiling the code
INFO: Using built-in libraries for PDFs
INFO: Compiling source...
Gtk-Message: 11:10:24.480: Not loading module "atk-bridge": The functionality is provided by GTK natively. Please try to not load it.
INFO: ...done, continuing with P* directories
INFO: Compiling directories...
INFO: Compiling on 16 cores
INFO: Compiling P0_udx_veep...
INFO: Compiling P0_dxu_veep...
INFO: P0_udx_veep done.
INFO: P0_dxu_veep done.
INFO: Checking test output:
INFO: P0_udx_veep
INFO: Result for test_ME:
INFO: Passed.
INFO: Result for test_MC:
INFO: Passed.
INFO: Result for check_poles:
INFO: Poles successfully cancel for 20 points over 20 (tolerance=1.0e-05)
INFO: P0_dxu_veep
INFO: Result for test_ME:
INFO: Passed.
INFO: Result for test_MC:
INFO: Passed.
INFO: Result for check_poles:
INFO: Poles successfully cancel for 20 points over 20 (tolerance=1.0e-05)
INFO: Starting run
INFO: Using 16 cores
INFO: Cleaning previous results
INFO: Doing NLO matched to parton shower
INFO: Setting up grids
INFO: Idle: 0, Running: 0, Completed: 2 [ current time: 11h10 ]
sum of cpu time of last step: 0 second
INFO: Determining the number of unweighted events per channel

      Intermediate results:
      Random seed: 33
      Total cross section: 1.083e+04 +- 7.3e+01 pb
      Total abs(cross section): 1.263e+04 +- 7.4e+01 pb

INFO: Computing upper envelope
INFO: Idle: 0, Running: 2, Completed: 0 [ current time: 11h10 ]
INFO: Idle: 0, Running: 1, Completed: 1 [ 0.29s ]
INFO: Idle: 0, Running: 0, Completed: 2 [ 0.29s ]
sum of cpu time of last step: 0 second
INFO: Updating the number of unweighted events per channel

      Intermediate results:
      Random seed: 33
      Total cross section: 1.088e+04 +- 4.5e+01 pb
      Total abs(cross section): 1.272e+04 +- 4.4e+01 pb

INFO: Generating events
INFO: Idle: 0, Running: 2, Completed: 0 [ current time: 11h10 ]
INFO: Idle: 0, Running: 1, Completed: 1 [ 1.4s ]
INFO: Idle: 0, Running: 0, Completed: 2 [ 1.6s ]
sum of cpu time of last step: 0 second
INFO: Doing reweight
INFO: Idle: 0, Running: 2, Completed: 0 [ current time: 11h10 ]
INFO: Idle: 0, Running: 1, Completed: 1 [ 0.2s ]
INFO: Idle: 0, Running: 0, Completed: 2 [ 0.26s ]
INFO: Collecting events
INFO:
   --------------------------------------------------------------
      Summary:
      Process p p > e+ ve [QCD]
      Run at p-p collider (6500.0 + 6500.0 GeV)
      Number of events generated: 10000
      Total cross section: 1.088e+04 +- 4.5e+01 pb
   --------------------------------------------------------------
      Scale variation (computed from LHE events):
          Dynamical_scale_choice -1 (envelope of 9 values):
              1.085e+04 pb +6.8% -11.7%
   --------------------------------------------------------------

INFO: The /home/gcolor/Desktop/Softwares/MG5_aMC_v3_4_1/MY_FIRST_AMCATNLO_RUN/Events/run_01/events.lhe.gz file has been generated.

INFO: Events generated
reweight -from_cards
decay_events -from_cards
INFO: Preparing MCatNLO run
INFO: Using LHAPDF v6.5.3 interface for PDFs
INFO: Compiling MCatNLO for PYTHIA8...
INFO: ... done
INFO: Showering events...
INFO: (Running in /home/gcolor/Desktop/Softwares/MG5_aMC_v3_4_1/MY_FIRST_AMCATNLO_RUN/MCatNLO/RUN_PYTHIA8_1)
INFO: Idle: 1, Running: 0, Completed: 0 [ current time: 11h11 ]
mv: cannot stat 'Pythia8.hep': No such file or directory
gzip: events.hepmc: No such file or directory
INFO: Idle: 0, Running: 0, Completed: 1 [ 0.41s ]
Error detected in "launch auto "
write debug file /home/gcolor/Desktop/Softwares/MG5_aMC_v3_4_1/MY_FIRST_AMCATNLO_RUN/run_01_tag_1_debug.log
If you need help with this issue, please, contact us on https://answers.launchpad.net/mg5amcnlo
str : No file has been generated, an error occurred. More information in /home/gcolor/Desktop/Softwares/MG5_aMC_v3_4_1/amcatnlo_run.log
quit
INFO:
MG5_aMC>

************************************************************************************
ME5_debug:
************************************************************************************

#************************************************************
#* MadGraph5_aMC@NLO *
#* *
#* * * *
#* * * * * *
#* * * * * 5 * * * * *
#* * * * * *
#* * * *
#* *
#* *
#* VERSION 3.4.2 2023-01-20 *
#* *
#* The MadGraph5_aMC@NLO Development Team - Find us at *
#* https://server06.fynu.ucl.ac.be/projects/madgraph *
#* and *
#* http://amcatnlo.cern.ch *
#* *
#************************************************************
#* *
#* Command File for aMCatNLO *
#* *
#* run as ./bin/aMCatNLO.py filename *
#* *
#************************************************************
launch auto
Traceback (most recent call last):
  File "/usr/lib/python3.10/shutil.py", line 815, in move
    os.rename(src, real_dst)
FileNotFoundError: [Errno 2] No such file or directory: '/home/gcolor/Desktop/Softwares/MG5_aMC_v3_4_1/MY_FIRST_AMCATNLO_RUN/MCatNLO/RUN_PYTHIA8_1/events.hepmc.gz' -> '/home/gcolor/Desktop/Softwares/MG5_aMC_v3_4_1/MY_FIRST_AMCATNLO_RUN/Events/run_01/events_PYTHIA8_0.hepmc.gz'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/gcolor/Desktop/Softwares/MG5_aMC_v3_4_1/madgraph/interface/amcatnlo_run_interface.py", line 4094, in run_mcatnlo
    files.mv(os.path.join(rundir, 'events.%s.gz' % ext), hep_file)
  File "/home/gcolor/Desktop/Softwares/MG5_aMC_v3_4_1/madgraph/iolibs/files.py", line 186, in mv
    shutil.move(path1, path2)
  File "/usr/lib/python3.10/shutil.py", line 835, in move
    copy_function(src, real_dst)
  File "/usr/lib/python3.10/shutil.py", line 434, in copy2
    copyfile(src, dst, follow_symlinks=follow_symlinks)
  File "/usr/lib/python3.10/shutil.py", line 254, in copyfile
    with open(src, 'rb') as fsrc:
FileNotFoundError: [Errno 2] No such file or directory: '/home/gcolor/Desktop/Softwares/MG5_aMC_v3_4_1/MY_FIRST_AMCATNLO_RUN/MCatNLO/RUN_PYTHIA8_1/events.hepmc.gz'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/gcolor/Desktop/Softwares/MG5_aMC_v3_4_1/madgraph/interface/extended_cmd.py", line 1544, in onecmd
    return self.onecmd_orig(line, **opt)
  File "/home/gcolor/Desktop/Softwares/MG5_aMC_v3_4_1/madgraph/interface/extended_cmd.py", line 1493, in onecmd_orig
    return func(arg, **opt)
  File "/home/gcolor/Desktop/Softwares/MG5_aMC_v3_4_1/madgraph/interface/amcatnlo_run_interface.py", line 1805, in do_launch
    self.run_mcatnlo(evt_file, options)
  File "/home/gcolor/Desktop/Softwares/MG5_aMC_v3_4_1/madgraph/interface/amcatnlo_run_interface.py", line 4110, in run_mcatnlo
    raise aMCatNLOError('No file has been generated, an error occurred.'+\
madgraph.interface.amcatnlo_run_interface.aMCatNLOError: No file has been generated, an error occurred. More information in /home/gcolor/Desktop/Softwares/MG5_aMC_v3_4_1/amcatnlo_run.log
Value of current Options:
             pythia8_path : /home/gcolor/Desktop/Softwares/MG5_aMC_v3_4_1/HEPTools/pythia8
                hwpp_path : None
              thepeg_path : None
               hepmc_path : None
         madanalysis_path : None
        madanalysis5_path : /home/gcolor/Desktop/Softwares/MG5_aMC_v3_4_1/HEPTools/madanalysis5/madanalysis5
          pythia-pgs_path : None
               rivet_path : None
                yoda_path : None
              contur_path : None
                  td_path : None
             delphes_path : /home/gcolor/Desktop/Softwares/MG5_aMC_v3_4_1/Delphes
      exrootanalysis_path : /home/gcolor/Desktop/Softwares/MG5_aMC_v3_4_1/ExRootAnalysis
             syscalc_path : None
                  timeout : 60
              web_browser : None
               eps_viewer : None
              text_editor : None
         fortran_compiler : None
            f2py_compiler : None
        f2py_compiler_py2 : None
        f2py_compiler_py3 : None
             cpp_compiler : None
             cluster_type : condor
            cluster_queue : None
    cluster_status_update : (600, 30)
                  fastjet : /home/gcolor/Desktop/Softwares/MG5_aMC_v3_4_1/HEPTools/fastjet/bin/fastjet-config
                    golem : None
                  samurai : None
                    ninja : /home/gcolor/Desktop/Softwares/MG5_aMC_v3_4_1/HEPTools/lib
                  collier : /home/gcolor/Desktop/Softwares/MG5_aMC_v3_4_1/HEPTools/collier
                   lhapdf : /home/gcolor/Desktop/Softwares/MG5_aMC_v3_4_1/HEPTools/lhapdf6_py3/bin/lhapdf-config
                 pineappl : pineappl
               lhapdf_py2 : None
               lhapdf_py3 : /home/gcolor/Desktop/Softwares/MG5_aMC_v3_4_1/HEPTools/lhapdf6_py3/bin/lhapdf-config
        cluster_temp_path : None
mg5amc_py8_interface_path : /home/gcolor/Desktop/Softwares/MG5_aMC_v3_4_1/HEPTools/MG5aMC_PY8_interface
       cluster_local_path : None
                      OLP : MadLoop
         cluster_nb_retry : 1
       cluster_retry_wait : 300
             cluster_size : 100
      output_dependencies : external
           crash_on_error : False
       auto_convert_model : True
 acknowledged_v3.1_syntax : False
       group_subprocesses : Auto
ignore_six_quark_processes : False
low_mem_multicore_nlo_generation : False
      complex_mass_scheme : False
include_lepton_initiated_processes : False
                    gauge : unitary
             stdout_level : 20
    loop_optimized_output : True
         loop_color_flows : False
   max_npoint_for_channel : 0
  default_unset_couplings : 99
        max_t_for_channel : 99
       zerowidth_tchannel : True
      nlo_mixed_expansion : True
              auto_update : 7
   automatic_html_opening : False
                 run_mode : 2
                  nb_core : 16
      notification_center : True
                 mg5_path : /home/gcolor/Desktop/Softwares/MG5_aMC_v3_4_1

************************************************************************************
mcatnlo_run.log:
************************************************************************************

 *------------------------------------------------------------------------------------*
 | |
 | *------------------------------------------------------------------------------* |
 | | | |
 | | | |
 | | PPP Y Y TTTTT H H III A Welcome to the Lund Monte Carlo! | |
 | | P P Y Y T H H I A A This is PYTHIA version 8.306 | |
 | | PPP Y T HHHHH I AAAAA Last date of change: 28 Jun 2021 | |
 | | P Y T H H I A A | |
 | | P Y T H H III A A Now is 09 Jun 2023 at 11:11:06 | |
 | | | |
 | | Program documentation and an archive of historic versions is found on: | |
 | | | |
 | | https://pythia.org/ | |
 | | | |
 | | PYTHIA is authored by a collaboration consisting of: | |
 | | | |
 | | Christian Bierlich, Nishita Desai, Leif Gellersen, Ilkka Helenius, Philip | |
 | | Ilten, Leif Lönnblad, Stephen Mrenna, Stefan Prestel, Christian Preuss, | |
 | | Torbjörn Sjöstrand, Peter Skands, Marius Utheim and Rob Verheyen. | |
 | | | |
 | | The complete list of authors, including contact information and | |
 | | affiliations, can be found on https://pythia.org/. | |
 | | Problems or bugs should be reported on email at <email address hidden>. | |
 | | | |
 | | The main program reference is 'An Introduction to PYTHIA 8.2', | |
 | | T. Sjöstrand et al, Comput. Phys. Commun. 191 (2015) 159 | |
 | | [arXiv:1410.3012 [hep-ph]] | |
 | | | |
 | | The main physics reference is the 'PYTHIA 6.4 Physics and Manual', | |
 | | T. Sjöstrand, S. Mrenna and P. Skands, JHEP05 (2006) 026 [hep-ph/0603175] | |
 | | | |
 | | PYTHIA is released under the GNU General Public Licence version 2 or later.| |
 | | Please respect the MCnet Guidelines for Event Generator Authors and Users. | |
 | | | |
 | | Disclaimer: this program comes without any guarantees. | |
 | | Beware of errors and use common sense when interpreting results. | |
 | | | |
 | | Copyright (C) 2021 Torbjörn Sjöstrand | |
 | | | |
 | | | |
 | *------------------------------------------------------------------------------* |
 | |
 *------------------------------------------------------------------------------------*

 *----------------------- SusyLesHouches SUSY/BSM Interface ------------------------*
 | Last Change 12 Apr 2017 - P. Skands
 | Parsing: events.lhe
 | (SLHA::readFile) line 86 - storing non-SLHA(2) block: yukawa
 | (SLHA::readFile) line 112 - storing QNUMBERS for id = 82 gh
 *------------------------------------------------------------------------------------*
 PYTHIA Info from SLHAinterface::initSLHA: No MODSEL found, keeping internal SUSY switched off
 PYTHIA Warning in SLHAinterface::initSLHA: ignoring QNUMBERS for id = 82 (already exists)
 PYTHIA Warning in SLHAinterface::initSLHA: ignoring MASS entries for id = {1,2,3,4,5,11,12,13,14,15,16,21,22,23,24} (m0 < SLHA:minMassSM)
 PYTHIA Warning in SLHAinterface::initSLHA: ignoring DECAY tables for id = {23,24,1,2,3,4,5,11,12,13,14,15,16,21,22} (m0 < SLHA:minMassSM)
 PYTHIA Warning in SLHAinterface::initSLHA: ignoring empty DECAY tables for id = {6,25} (total width provided but no Branching Ratios)
 PYTHIA Error in Plugin::Plugin: libpythia8lhapdf6.so: cannot open shared object file: No such file or directory
 PYTHIA Error in Pythia::init: could not set up PDF for beam A
 PYTHIA Abort from Pythia::init: PDF initialization failed
Error: could not initialise Pythia

I thank you very much for your help!!

Best regards,
Guglielmo Coloretti

Question information

Language:
English Edit question
Status:
Solved
For:
MadGraph5_aMC@NLO Edit question
Assignee:
No assignee Edit question
Solved by:
Guglielmo Coloretti
Solved:
Last query:
Last reply:
Revision history for this message
Olivier Mattelaer (olivier-mattelaer) said :
#1

Looks like you have an error with one library of pythia8:
PYTHIA Error in Plugin::Plugin: libpythia8lhapdf6.so: cannot open shared object file: No such file or directory

So the issue is likely an issue related to lhapdf6 (which is problematic to install especially on mac)

Cheers,

Olivier

Revision history for this message
Guglielmo Coloretti (guglielmocoloretti) said (last edit ):
#2

Dear Olivier,

Thank you very much for your reply!

I am using linux. Do you know anyone who I could ask about the installation of lhapdf6?

Indeed, I don't have any problem while running LO generations.

Best regards,
Guglielmo

Revision history for this message
Guglielmo Coloretti (guglielmocoloretti) said (last edit ):
#3

Dear Olivier,

I actually try to re-install it from scratch. Still, it is working at LO but not if I launch amcatnlo.

It gives me a much reduced error. This are the log files:

******************************************************
run_02_tag_1_debug.log
******************************************************

#************************************************************
#* MadGraph5_aMC@NLO *
#* *
#* * * *
#* * * * * *
#* * * * * 5 * * * * *
#* * * * * *
#* * * *
#* *
#* *
#* VERSION 5.3.4.2 20xx-xx-xx *
#* *
#* The MadGraph5_aMC@NLO Development Team - Find us at *
#* https://server06.fynu.ucl.ac.be/projects/madgraph *
#* and *
#* http://amcatnlo.cern.ch *
#* *
#************************************************************
#* *
#* Command File for aMCatNLO *
#* *
#* run as ./bin/aMCatNLO.py filename *
#* *
#************************************************************
launch
Traceback (most recent call last):
  File "/usr/lib/python3.10/shutil.py", line 815, in move
    os.rename(src, real_dst)
FileNotFoundError: [Errno 2] No such file or directory: '/home/gcolor/Desktop/Softwares/MG5_aMC_v3_4_1/scratch/MCatNLO/RUN_PYTHIA8_2/events.hepmc.gz' -> '/home/gcolor/Desktop/Softwares/MG5_aMC_v3_4_1/scratch/Events/run_02/events_PYTHIA8_0.hepmc.gz'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/gcolor/Desktop/Softwares/MG5_aMC_v3_4_1/scratch/bin/internal/amcatnlo_run_interface.py", line 4094, in run_mcatnlo
    files.mv(os.path.join(rundir, 'events.%s.gz' % ext), hep_file)
  File "/home/gcolor/Desktop/Softwares/MG5_aMC_v3_4_1/scratch/bin/internal/files.py", line 186, in mv
    shutil.move(path1, path2)
  File "/usr/lib/python3.10/shutil.py", line 835, in move
    copy_function(src, real_dst)
  File "/usr/lib/python3.10/shutil.py", line 434, in copy2
    copyfile(src, dst, follow_symlinks=follow_symlinks)
  File "/usr/lib/python3.10/shutil.py", line 254, in copyfile
    with open(src, 'rb') as fsrc:
FileNotFoundError: [Errno 2] No such file or directory: '/home/gcolor/Desktop/Softwares/MG5_aMC_v3_4_1/scratch/MCatNLO/RUN_PYTHIA8_2/events.hepmc.gz'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/gcolor/Desktop/Softwares/MG5_aMC_v3_4_1/scratch/bin/internal/extended_cmd.py", line 1544, in onecmd
    return self.onecmd_orig(line, **opt)
  File "/home/gcolor/Desktop/Softwares/MG5_aMC_v3_4_1/scratch/bin/internal/extended_cmd.py", line 1493, in onecmd_orig
    return func(arg, **opt)
  File "/home/gcolor/Desktop/Softwares/MG5_aMC_v3_4_1/scratch/bin/internal/amcatnlo_run_interface.py", line 1805, in do_launch
    self.run_mcatnlo(evt_file, options)
  File "/home/gcolor/Desktop/Softwares/MG5_aMC_v3_4_1/scratch/bin/internal/amcatnlo_run_interface.py", line 4110, in run_mcatnlo
    raise aMCatNLOError('No file has been generated, an error occurred.'+\
internal.amcatnlo_run_interface.aMCatNLOError: No file has been generated, an error occurred. More information in /home/gcolor/Desktop/Softwares/MG5_aMC_v3_4_1/scratch/amcatnlo_run.log
Value of current Options:
             pythia8_path : /home/gcolor/Desktop/Softwares/MG5_aMC_v3_4_1/HEPTools/pythia8
                hwpp_path : None
              thepeg_path : None
               hepmc_path : None
         madanalysis_path : None
        madanalysis5_path : /home/gcolor/Desktop/Softwares/MG5_aMC_v3_4_1/HEPTools/madanalysis5/madanalysis5
          pythia-pgs_path : None
                  td_path : None
             delphes_path : /home/gcolor/Desktop/Softwares/MG5_aMC_v3_4_1/Delphes
      exrootanalysis_path : /home/gcolor/Desktop/Softwares/MG5_aMC_v3_4_1/ExRootAnalysis
             syscalc_path : None
               rivet_path : None
                yoda_path : None
                   lhapdf : /home/gcolor/Desktop/Softwares/MG5_aMC_v3_4_1/HEPTools/lhapdf6_py3/bin/lhapdf-config
               lhapdf_py2 : None
               lhapdf_py3 : /home/gcolor/Desktop/Softwares/MG5_aMC_v3_4_1/HEPTools/lhapdf6_py3/bin/lhapdf-config
                  timeout : 60
            f2py_compiler : None
        f2py_compiler_py2 : None
        f2py_compiler_py3 : None
              web_browser : None
               eps_viewer : None
              text_editor : None
         fortran_compiler : None
             cpp_compiler : None
              auto_update : 7
             cluster_type : condor
    cluster_status_update : (600, 30)
         cluster_nb_retry : 1
       cluster_local_path : None
       cluster_retry_wait : 300
             stdout_level : None
   automatic_html_opening : False
      notification_center : True
                 run_mode : 2
            cluster_queue : None
             cluster_time : None
             cluster_size : 100
           cluster_memory : None
                  nb_core : 16
        cluster_temp_path : None
                  fastjet : /home/gcolor/Desktop/Softwares/MG5_aMC_v3_4_1/HEPTools/fastjet/bin/fastjet-config
                 mg5_path : /home/gcolor/Desktop/Softwares/MG5_aMC_v3_4_1
mg5amc_py8_interface_path : /home/gcolor/Desktop/Softwares/MG5_aMC_v3_4_1/HEPTools/MG5aMC_PY8_interface
                    golem : None
                    ninja : /home/gcolor/Desktop/Softwares/MG5_aMC_v3_4_1/HEPTools/lib
                  collier : /home/gcolor/Desktop/Softwares/MG5_aMC_v3_4_1/HEPTools/collier
       auto_convert_model : True

******************************************************
mcatnlo.log
******************************************************

 USING PYTHIA 8.3xy
g++ -std=c++11 -O -I/home/gcolor/Desktop/Softwares/MG5_aMC_v3_4_1/HEPTools/pythia8/include \
  -I/home/gcolor/Desktop/Softwares/MG5_aMC_v3_4_1/scratch/MCatNLO/include Pythia83.cc -o Pythia8.exe \
  -L/home/gcolor/Desktop/Softwares/MG5_aMC_v3_4_1/HEPTools/pythia8/lib -lpythia8 \
  -I/home/gcolor/Desktop/Softwares/MG5_aMC_v3_4_1/HEPTools/hepmc/include -L/home/gcolor/Desktop/Softwares/MG5_aMC_v3_4_1/HEPTools/hepmc/lib -Wl,-rpath,/home/gcolor/Desktop/Softwares/MG5_aMC_v3_4_1/HEPTools/hepmc/lib -lHepMC -L../lib -L/home/gcolor/Desktop/Softwares/MG5_aMC_v3_4_1/HEPTools/pythia8//lib -Ll,-rpath,/home/gcolor/Desktop/Softwares/MG5_aMC_v3_4_1/HEPTools/pythia8//lib -L/home/gcolor/Desktop/Softwares/MG5_aMC_v3_4_1/HEPTools/zlib/lib -Ll,-rpath,/home/gcolor/Desktop/Softwares/MG5_aMC_v3_4_1/HEPTools/zlib/lib -lpythia8 -lz -ldl -lstdc++ \

***** Now ready for showering 10000 events with PYTHIA8

Sorry for keeping on contacting you and thanks for your help!

Best regards,
Guglielmo Coloretti

Revision history for this message
Guglielmo Coloretti (guglielmocoloretti) said :
#4

Dear all,

I tried to install a different version and re-install LHAPDF6 manually but nothing worked and I am stuck with the same error.

I was wondering if you know how to solve this issue or who I could contact for further help.

Best regards,
Guglielmo Coloretti

Revision history for this message
Olivier Mattelaer (olivier-mattelaer) said :
#5

So to fix this issue you need
1) to be sure that you have lhapdf correctly installed
2) when done, you would need to recompile pythia8 in orcder to create the missing libraby.

SInce you have issue, my advice would be to do all those installations outside of MG5aMC such that you can easily have access to the error message and relaunch only the problematic part of the compilation and change your flag accordingly to make it work.

Cheers,

Olivier

Revision history for this message
Guglielmo Coloretti (guglielmocoloretti) said :
#6

Dear Olivier,

Thank you very much!! I just had to re-install pythia8 after manually installing LHAPDF.

Thank you again!

Best regards,
Guglielmo Coloretti