Showering with Pythia in NLO

Asked by Can Süslü

Hi,

I would like to produce NLO events. I have questions regarding them:

1-) When choose Herwig as the parton shower, I only get an .hep file. I want to analyze the data in Rivet, so I would like to get an .hepmc file? How can I do this?

2-) When I choose Pythia as the parton shower, I get an error while the program goes to the showering step. Here is the log file that I get:

#************************************************************
#* MadGraph5_aMC@NLO *
#* *
#* * * *
#* * * * * *
#* * * * * 5 * * * * *
#* * * * * *
#* * * *
#* *
#* *
#* VERSION 3.3.2 2022-03-18 *
#* *
#* 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.8/shutil.py", line 791, in move
    os.rename(src, real_dst)
FileNotFoundError: [Errno 2] No such file or directory: '/home/suslu/CAN_MC_Programs/MG5_aMC_v3_3_2/znlo/MCatNLO/RUN_PYTHIA8_2/events.hepmc.gz' -> '/home/suslu/CAN_MC_Programs/MG5_aMC_v3_3_2/znlo/Events/run_02/events_PYTHIA8_0.hepmc.gz'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/suslu/CAN_MC_Programs/MG5_aMC_v3_3_2/madgraph/interface/amcatnlo_run_interface.py", line 4090, in run_mcatnlo
    files.mv(os.path.join(rundir, 'events.%s.gz' % ext), hep_file)
  File "/home/suslu/CAN_MC_Programs/MG5_aMC_v3_3_2/madgraph/iolibs/files.py", line 186, in mv
    shutil.move(path1, path2)
  File "/usr/lib/python3.8/shutil.py", line 811, in move
    copy_function(src, real_dst)
  File "/usr/lib/python3.8/shutil.py", line 435, in copy2
    copyfile(src, dst, follow_symlinks=follow_symlinks)
  File "/usr/lib/python3.8/shutil.py", line 264, in copyfile
    with open(src, 'rb') as fsrc, open(dst, 'wb') as fdst:
FileNotFoundError: [Errno 2] No such file or directory: '/home/suslu/CAN_MC_Programs/MG5_aMC_v3_3_2/znlo/MCatNLO/RUN_PYTHIA8_2/events.hepmc.gz'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/suslu/CAN_MC_Programs/MG5_aMC_v3_3_2/madgraph/interface/extended_cmd.py", line 1544, in onecmd
    return self.onecmd_orig(line, **opt)
  File "/home/suslu/CAN_MC_Programs/MG5_aMC_v3_3_2/madgraph/interface/extended_cmd.py", line 1493, in onecmd_orig
    return func(arg, **opt)
  File "/home/suslu/CAN_MC_Programs/MG5_aMC_v3_3_2/madgraph/interface/amcatnlo_run_interface.py", line 1805, in do_launch
    self.run_mcatnlo(evt_file, options)
  File "/home/suslu/CAN_MC_Programs/MG5_aMC_v3_3_2/madgraph/interface/amcatnlo_run_interface.py", line 4106, 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/suslu/CAN_MC_Programs/MG5_aMC_v3_3_2/amcatnlo_run.log
Value of current Options:
             pythia8_path : /home/suslu/CAN_MC_Programs/MG5_aMC_v3_3_2/HEPTools/pythia8
                hwpp_path : None
              thepeg_path : None
               hepmc_path : /home/suslu/CAN_MC_Programs/MG5_aMC_v3_3_2/HEPTools/hepmc
         madanalysis_path : None
        madanalysis5_path : None
          pythia-pgs_path : None
                  td_path : None
             delphes_path : None
      exrootanalysis_path : None
             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
              auto_update : 7
             cluster_type : condor
            cluster_queue : None
    cluster_status_update : (600, 30)
                  fastjet : None
                    golem : None
                  samurai : None
                    ninja : /home/suslu/CAN_MC_Programs/MG5_aMC_v3_3_2/HEPTools/lib
                  collier : /home/suslu/CAN_MC_Programs/MG5_aMC_v3_3_2/HEPTools/lib
                   lhapdf : /home/suslu/CAN_MC_Programs/MG5_aMC_v3_3_2/HEPTools/lhapdf6_py3/bin/lhapdf-config
                 pineappl : pineappl
               lhapdf_py2 : None
               lhapdf_py3 : /home/suslu/CAN_MC_Programs/MG5_aMC_v3_3_2/HEPTools/lhapdf6_py3/bin/lhapdf-config
        cluster_temp_path : None
mg5amc_py8_interface_path : /home/suslu/CAN_MC_Programs/MG5_aMC_v3_3_2/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 : False
 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
   automatic_html_opening : False
                 run_mode : 2
                  nb_core : 8
      notification_center : True
                 mg5_path : /home/suslu/CAN_MC_Programs/MG5_aMC_v3_3_2

Question information

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

1-) When choose Herwig as the parton shower, I only get an .hep file. I want to analyze the data in Rivet, so I would like to get an .hepmc file? How can I do this?

I do not know that answer, converter should exists between those two formats.

2-) When I choose Pythia as the parton shower, I get an error while the program goes to the showering step. Here is the log file that I get:

What is the content of /home/suslu/CAN_MC_Programs/MG5_aMC_v3_3_2/amcatnlo_run.log
It should contain the real problem.

Cheers,

Olivier

Revision history for this message
Can Süslü (can-suslu99) said :
#2

Dear Olivier,

In /home/suslu/CAN_MC_Programs/MG5_aMC_v3_3_2. path, there is only a ME5_debug file. Debug file contains what I have first post in here.

In the path of the corresponding run, (/home/suslu/CAN_MC_Programs/MG5_aMC_v3_3_2/znlo) there is a mcatnlo.log file. It contains:

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

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

 Thanks a lot,
Can

Revision history for this message
Can Süslü (can-suslu99) said :
#3

Dear Olivier,

I would like to report one more thing about the problem. Although I am able to generate .hep files showered with Herwig at NLO, after I switch to Pythia8 and having obtained an error, the Herwig also does not work properly for that process. I would like attach that .log file, after I try to use Herwig for the second time :

-------------------------------------------------------------------

gfortran -O -fno-automatic -ffixed-line-length-132 -std=legacy -I/home/suslu/CAN_MC_Programs/MG5_aMC_v3_3_2/znlo/MCatNLO/include -c /home/suslu/CAN_MC_Programs/MG5_aMC_v3_3_2/znlo/MCatNLO/HWAnalyzer/mcatnlo_hwan_stdhep.f -o /home/suslu/CAN_MC_Programs/MG5_aMC_v3_3_2/znlo/MCatNLO/objects/mcatnlo_hwan_stdhep.o
gfortran -O -fno-automatic -ffixed-line-length-132 -std=legacy -I/home/suslu/CAN_MC_Programs/MG5_aMC_v3_3_2/znlo/MCatNLO/include -c /home/suslu/CAN_MC_Programs/MG5_aMC_v3_3_2/znlo/MCatNLO/srcCommon/pineappl_interface_dummy.f -o /home/suslu/CAN_MC_Programs/MG5_aMC_v3_3_2/znlo/MCatNLO/objects/pineappl_interface_dummy.o
gfortran -O -fno-automatic -ffixed-line-length-132 -std=legacy -I/home/suslu/CAN_MC_Programs/MG5_aMC_v3_3_2/znlo/MCatNLO/include -c ../srcHerwig/jimmy.f -o /home/suslu/CAN_MC_Programs/MG5_aMC_v3_3_2/znlo/MCatNLO/objects/jimmy.o
../srcHerwig/jimmy.f:2308:18:

 2308 | CALL JMUCPY(8H17/12/80,IDATE,2)
      | 1
Warning: Rank mismatch in argument ‘a’ at (1) (rank-1 and scalar) [-Wargument-mismatch]
../srcHerwig/jimmy.f:3578:51:

 3578 | 1(NDIM,UMINUS,UPLUS,FLOBD,FUPBD,MAXDPH,ENTREE,TREE,PRTN
      | 1
Warning: Actual argument contains too few elements for dummy argument ‘tree’ (4/4000) at (1) [-Wargument-mismatch]
../srcHerwig/jimmy.f:3629:32:

 3629 | CALL BOUNDS(TARGET,PARENT,TREE,PRTNS,UMINUS,UPLUS)
      | 1
Warning: Actual argument contains too few elements for dummy argument ‘tree’ (4/4000) at (1) [-Wargument-mismatch]
../srcHerwig/jimmy.f:3634:51:

 3634 | 1(NDIM,UMINUS,UPLUS,FLOBD,FUPBD,MAXDPH,NEWENT,TREE,PRTN
      | 1
Warning: Actual argument contains too few elements for dummy argument ‘tree’ (4/4000) at (1) [-Wargument-mismatch]
../srcHerwig/jimmy.f:3645:62:

 3645 | CALL TREAUD(PARENT,OLDSTR,NEWBUC,MAXBUC-ENTBUC+NEWBUC-1,TREE)
      | 1
Warning: Actual argument contains too few elements for dummy argument ‘tree’ (4/4000) at (1) [-Wargument-mismatch]
../srcHerwig/jimmy.f:3651:48:

 3651 | CALL TREAUD(PARENT,OLDSTR,NEWBUC,MAXBUC-1,TREE)
      | 1
Warning: Actual argument contains too few elements for dummy argument ‘tree’ (4/4000) at (1) [-Wargument-mismatch]
../srcHerwig/jimmy.f:3653:48:

 3653 | CALL NODAUD(PARENT,TARGET,ENTREE+1,NEWEND,TREE)
      | 1
Warning: Actual argument contains too few elements for dummy argument ‘tree’ (4/4000) at (1) [-Wargument-mismatch]
../srcHerwig/jimmy.f:2740:18:

 2740 | CALL USRINT(UMINUS,UPLUS,RSTOR(BUCPTR),RSTOR(BUCPTR+1),RFINT,RERR
      | 1
Warning: Rank mismatch in argument ‘uminus’ at (1) (scalar and rank-1) [-Wargument-mismatch]
../srcHerwig/jimmy.f:2764:17:

 2764 | CALL QUASI(XX,NDIM,NIBUC,-NPOINT)
      | 1
Warning: Rank mismatch in argument ‘x’ at (1) (rank-2 and scalar) [-Wargument-mismatch]
../srcHerwig/jimmy.f:2612:18:

 2612 | 100 CALL RANUMS(R,1)
      | 1
Warning: Rank mismatch in argument ‘x’ at (1) (rank-1 and scalar) [-Wargument-mismatch]
../srcHerwig/jimmy.f:2638:18:

 2638 | 160 CALL RANUMS(R,1)
      | 1
Warning: Rank mismatch in argument ‘x’ at (1) (rank-1 and scalar) [-Wargument-mismatch]
../srcHerwig/jimmy.f:4519:27:

 4519 | CALL BOUNDS(I,PARENT,TREE,PARTN,UMINUS,UPLUS)
      | 1
Warning: Actual argument contains too few elements for dummy argument ‘tree’ (4/4000) at (1) [-Wargument-mismatch]
../srcHerwig/jimmy.f:4734:24:

 4734 | CALL PARTN( NDIM, A, B, 1.0, 10000 )
      | 1
Warning: Actual argument contains too few elements for dummy argument ‘gminus’ (2/10) at (1) [-Wargument-mismatch]
../srcHerwig/jimmy.f:6269:24:

 6269 | CALL PARTN( NDIM, A, B, 1.0, 10000 )
      | 1
Warning: Actual argument contains too few elements for dummy argument ‘gminus’ (3/10) at (1) [-Wargument-mismatch]
../srcHerwig/jimmy.f:5844:24:

 5844 | CALL PARTN( NDIM, A, B, 1.0, 10000 )
      | 1
Warning: Actual argument contains too few elements for dummy argument ‘gminus’ (2/10) at (1) [-Wargument-mismatch]
../srcHerwig/jimmy.f:5001:25:

 5001 | DICE = JMRNDM(2,DUM)
      | 1
Warning: Rank mismatch in argument ‘seed’ at (1) (rank-1 and scalar) [-Wargument-mismatch]
../srcHerwig/jimmy.f:5013:22:

 5013 | DICE = JMRNDM(2,DUM)
      | 1
Warning: Rank mismatch in argument ‘seed’ at (1) (rank-1 and scalar) [-Wargument-mismatch]
gfortran -O -fno-automatic -ffixed-line-length-132 -std=legacy -I/home/suslu/CAN_MC_Programs/MG5_aMC_v3_3_2/znlo/MCatNLO/include -c /home/suslu/CAN_MC_Programs/MG5_aMC_v3_3_2/znlo/MCatNLO/srcCommon/HwU.f -o /home/suslu/CAN_MC_Programs/MG5_aMC_v3_3_2/znlo/MCatNLO/objects/HwU.o
gfortran -O -fno-automatic -ffixed-line-length-132 -std=legacy -I/home/suslu/CAN_MC_Programs/MG5_aMC_v3_3_2/znlo/MCatNLO/include -c ../srcHerwig/herwig6521.f -o /home/suslu/CAN_MC_Programs/MG5_aMC_v3_3_2/znlo/MCatNLO/objects/herwig6521.o
gfortran -O -fno-automatic -ffixed-line-length-132 -std=legacy -I/home/suslu/CAN_MC_Programs/MG5_aMC_v3_3_2/znlo/MCatNLO/include -c ../srcHerwig/madfks_hwdriver.f -o /home/suslu/CAN_MC_Programs/MG5_aMC_v3_3_2/znlo/MCatNLO/objects/madfks_hwdriver.o
gfortran -O -fno-automatic -ffixed-line-length-132 -std=legacy -I/home/suslu/CAN_MC_Programs/MG5_aMC_v3_3_2/znlo/MCatNLO/include -c ../srcHerwig/madfks_hwlhin.f -o /home/suslu/CAN_MC_Programs/MG5_aMC_v3_3_2/znlo/MCatNLO/objects/madfks_hwlhin.o
gfortran -O -fno-automatic -ffixed-line-length-132 -std=legacy -I/home/suslu/CAN_MC_Programs/MG5_aMC_v3_3_2/znlo/MCatNLO/include -c /home/suslu/CAN_MC_Programs/MG5_aMC_v3_3_2/znlo/MCatNLO/srcCommon/mcatnlo_str.f -o /home/suslu/CAN_MC_Programs/MG5_aMC_v3_3_2/znlo/MCatNLO/objects/mcatnlo_str.o
gfortran -O -fno-automatic -ffixed-line-length-132 -std=legacy -I/home/suslu/CAN_MC_Programs/MG5_aMC_v3_3_2/znlo/MCatNLO/include -c /home/suslu/CAN_MC_Programs/MG5_aMC_v3_3_2/znlo/MCatNLO/srcCommon/mcatnlo_pdftomlm.f -o /home/suslu/CAN_MC_Programs/MG5_aMC_v3_3_2/znlo/MCatNLO/objects/mcatnlo_pdftomlm.o
gfortran -O -fno-automatic -ffixed-line-length-132 -std=legacy -I/home/suslu/CAN_MC_Programs/MG5_aMC_v3_3_2/znlo/MCatNLO/include -c /home/suslu/CAN_MC_Programs/MG5_aMC_v3_3_2/znlo/MCatNLO/srcCommon/mcatnlo_libofpdf.f -o /home/suslu/CAN_MC_Programs/MG5_aMC_v3_3_2/znlo/MCatNLO/objects/mcatnlo_libofpdf.o
/home/suslu/CAN_MC_Programs/MG5_aMC_v3_3_2/znlo/MCatNLO/srcCommon/mcatnlo_libofpdf.f:11397:41:

11397 | call jeppe3001E1(j,nx,nqc,xxl,qqlc,fc,ccc)
      | 1
Warning: Actual argument contains too few elements for dummy argument ‘ff’ (1715/1813) at (1) [-Wargument-mismatch]
/home/suslu/CAN_MC_Programs/MG5_aMC_v3_3_2/znlo/MCatNLO/srcCommon/mcatnlo_libofpdf.f:11405:41:

11405 | call jeppe3001E1(j,nx,nqb,xxl,qqlb,fb,ccb)
      | 1
Warning: Actual argument contains too few elements for dummy argument ‘ff’ (1274/1813) at (1) [-Wargument-mismatch]
/home/suslu/CAN_MC_Programs/MG5_aMC_v3_3_2/znlo/MCatNLO/srcCommon/mcatnlo_libofpdf.f:11707:39:

11707 | call jeppe2002_1(nx,nqc,xxl,qqlc,fc,ccc)
      | 1
Warning: Actual argument contains too few elements for dummy argument ‘ff’ (1715/1813) at (1) [-Wargument-mismatch]
/home/suslu/CAN_MC_Programs/MG5_aMC_v3_3_2/znlo/MCatNLO/srcCommon/mcatnlo_libofpdf.f:11715:39:

11715 | call jeppe2002_1(nx,nqb,xxl,qqlb,fb,ccb)
      | 1
Warning: Actual argument contains too few elements for dummy argument ‘ff’ (1274/1813) at (1) [-Wargument-mismatch]
/home/suslu/CAN_MC_Programs/MG5_aMC_v3_3_2/znlo/MCatNLO/srcCommon/mcatnlo_libofpdf.f:11815:39:

11815 | call jeppe2002_1(nx,nqc,xxl,qqlc,fc,ccc)
      | 1
Warning: Actual argument contains too few elements for dummy argument ‘ff’ (1715/1813) at (1) [-Wargument-mismatch]
/home/suslu/CAN_MC_Programs/MG5_aMC_v3_3_2/znlo/MCatNLO/srcCommon/mcatnlo_libofpdf.f:11823:39:

11823 | call jeppe2002_1(nx,nqb,xxl,qqlb,fb,ccb)
      | 1
Warning: Actual argument contains too few elements for dummy argument ‘ff’ (1274/1813) at (1) [-Wargument-mismatch]
/home/suslu/CAN_MC_Programs/MG5_aMC_v3_3_2/znlo/MCatNLO/srcCommon/mcatnlo_libofpdf.f:12446:39:

12446 | call jeppe2001_1(nx,nqc,xxl,qqlc,fc,ccc)
      | 1
Warning: Actual argument contains too few elements for dummy argument ‘ff’ (1715/1813) at (1) [-Wargument-mismatch]
/home/suslu/CAN_MC_Programs/MG5_aMC_v3_3_2/znlo/MCatNLO/srcCommon/mcatnlo_libofpdf.f:12454:39:

12454 | call jeppe2001_1(nx,nqb,xxl,qqlb,fb,ccb)
      | 1
Warning: Actual argument contains too few elements for dummy argument ‘ff’ (1274/1813) at (1) [-Wargument-mismatch]
/home/suslu/CAN_MC_Programs/MG5_aMC_v3_3_2/znlo/MCatNLO/srcCommon/mcatnlo_libofpdf.f:12554:39:

12554 | call jeppe2001_1(nx,nqc,xxl,qqlc,fc,ccc)
      | 1
Warning: Actual argument contains too few elements for dummy argument ‘ff’ (1715/1813) at (1) [-Wargument-mismatch]
/home/suslu/CAN_MC_Programs/MG5_aMC_v3_3_2/znlo/MCatNLO/srcCommon/mcatnlo_libofpdf.f:12562:39:

12562 | call jeppe2001_1(nx,nqb,xxl,qqlb,fb,ccb)
      | 1
Warning: Actual argument contains too few elements for dummy argument ‘ff’ (1274/1813) at (1) [-Wargument-mismatch]
/home/suslu/CAN_MC_Programs/MG5_aMC_v3_3_2/znlo/MCatNLO/srcCommon/mcatnlo_libofpdf.f:12662:39:

12662 | call jeppe2001_1(nx,nqc,xxl,qqlc,fc,ccc)
      | 1
Warning: Actual argument contains too few elements for dummy argument ‘ff’ (1715/1813) at (1) [-Wargument-mismatch]
/home/suslu/CAN_MC_Programs/MG5_aMC_v3_3_2/znlo/MCatNLO/srcCommon/mcatnlo_libofpdf.f:12670:39:

12670 | call jeppe2001_1(nx,nqb,xxl,qqlb,fb,ccb)
      | 1
Warning: Actual argument contains too few elements for dummy argument ‘ff’ (1274/1813) at (1) [-Wargument-mismatch]
/home/suslu/CAN_MC_Programs/MG5_aMC_v3_3_2/znlo/MCatNLO/srcCommon/mcatnlo_libofpdf.f:12770:39:

12770 | call jeppe2001_1(nx,nqc,xxl,qqlc,fc,ccc)
      | 1
Warning: Actual argument contains too few elements for dummy argument ‘ff’ (1715/1813) at (1) [-Wargument-mismatch]
/home/suslu/CAN_MC_Programs/MG5_aMC_v3_3_2/znlo/MCatNLO/srcCommon/mcatnlo_libofpdf.f:12778:39:

12778 | call jeppe2001_1(nx,nqb,xxl,qqlb,fb,ccb)
      | 1
Warning: Actual argument contains too few elements for dummy argument ‘ff’ (1274/1813) at (1) [-Wargument-mismatch]
gfortran -O -fno-automatic -ffixed-line-length-132 -std=legacy -I/home/suslu/CAN_MC_Programs/MG5_aMC_v3_3_2/znlo/MCatNLO/include -c /home/suslu/CAN_MC_Programs/MG5_aMC_v3_3_2/znlo/MCatNLO/srcCommon/dummies.f -o /home/suslu/CAN_MC_Programs/MG5_aMC_v3_3_2/znlo/MCatNLO/objects/dummies.o
gfortran -O -fno-automatic -ffixed-line-length-132 -std=legacy -lstdc++ /home/suslu/CAN_MC_Programs/MG5_aMC_v3_3_2/znlo/MCatNLO/objects/mcatnlo_hwan_stdhep.o /home/suslu/CAN_MC_Programs/MG5_aMC_v3_3_2/znlo/MCatNLO/objects/pineappl_interface_dummy.o /home/suslu/CAN_MC_Programs/MG5_aMC_v3_3_2/znlo/MCatNLO/objects/jimmy.o /home/suslu/CAN_MC_Programs/MG5_aMC_v3_3_2/znlo/MCatNLO/objects/HwU.o /home/suslu/CAN_MC_Programs/MG5_aMC_v3_3_2/znlo/MCatNLO/objects/herwig6521.o /home/suslu/CAN_MC_Programs/MG5_aMC_v3_3_2/znlo/MCatNLO/objects/madfks_hwdriver.o /home/suslu/CAN_MC_Programs/MG5_aMC_v3_3_2/znlo/MCatNLO/objects/madfks_hwlhin.o /home/suslu/CAN_MC_Programs/MG5_aMC_v3_3_2/znlo/MCatNLO/objects/mcatnlo_str.o /home/suslu/CAN_MC_Programs/MG5_aMC_v3_3_2/znlo/MCatNLO/objects/mcatnlo_pdftomlm.o /home/suslu/CAN_MC_Programs/MG5_aMC_v3_3_2/znlo/MCatNLO/objects/mcatnlo_libofpdf.o /home/suslu/CAN_MC_Programs/MG5_aMC_v3_3_2/znlo/MCatNLO/objects/dummies.o -L../lib -L/home/suslu/CAN_MC_Programs/MG5_aMC_v3_3_2/HEPTools/pythia8//lib -Ll,-rpath,/home/suslu/CAN_MC_Programs/MG5_aMC_v3_3_2/HEPTools/pythia8//lib -L/home/suslu/CAN_MC_Programs/MG5_aMC_v3_3_2/HEPTools/zlib/lib -Ll,-rpath,/home/suslu/CAN_MC_Programs/MG5_aMC_v3_3_2/HEPTools/zlib/lib -lpythia8 -lz -ldl -lstdc++ -o HW_EXE_DEFAULT
/usr/bin/ld: /home/suslu/CAN_MC_Programs/MG5_aMC_v3_3_2/znlo/MCatNLO/objects/mcatnlo_hwan_stdhep.o: in function `hwabeg_':
mcatnlo_hwan_stdhep.f:(.text+0x17b): undefined reference to `stdxwinit_'
/usr/bin/ld: mcatnlo_hwan_stdhep.f:(.text+0x196): undefined reference to `stdflhwxsec_'
/usr/bin/ld: mcatnlo_hwan_stdhep.f:(.text+0x1b0): undefined reference to `stdxwrt_'
/usr/bin/ld: /home/suslu/CAN_MC_Programs/MG5_aMC_v3_3_2/znlo/MCatNLO/objects/mcatnlo_hwan_stdhep.o: in function `hwaend_':
mcatnlo_hwan_stdhep.f:(.text+0x318): undefined reference to `stdflhwxsec_'
/usr/bin/ld: mcatnlo_hwan_stdhep.f:(.text+0x332): undefined reference to `stdxwrt_'
/usr/bin/ld: mcatnlo_hwan_stdhep.f:(.text+0x347): undefined reference to `stdxend_'
/usr/bin/ld: /home/suslu/CAN_MC_Programs/MG5_aMC_v3_3_2/znlo/MCatNLO/objects/mcatnlo_hwan_stdhep.o: in function `hwanal_':
mcatnlo_hwan_stdhep.f:(.text+0x3c5): undefined reference to `hwghep_'
/usr/bin/ld: mcatnlo_hwan_stdhep.f:(.text+0x3df): undefined reference to `stdxwrt_'
collect2: error: ld returned 1 exit status
make: *** [/home/suslu/CAN_MC_Programs/MG5_aMC_v3_3_2/znlo/MCatNLO/Makefile_MadFKS:53: HW_EXE_DEFAULT] Error 1
mv: cannot stat 'HW_EXE_DEFAULT': No such file or directory
chmod: cannot access '/home/suslu/CAN_MC_Programs/MG5_aMC_v3_3_2/znlo/MCatNLO/HW_EXE_DEFAULT': No such file or directory

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

mv: cannot stat 'HW_EXE_DEFAULT': No such file or directory

Thanks a lot,
Can

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

Did you update the compiler?

herwig6 is a pretty old/unsupported code. So the code for herwig6 is fully frozen by now to outdated coding practise.
Some of them have been now fully forbidden by some recent compiler...
And the error that you report for herwig6 is one of those.

For pythia8, I do not see any information in the log. So I'm quite blind. Due to your next post, I guess that it might related to some of the dynamical library of pythia8 compiled with another version of the compiler (or for another architecture in the case if you are using one of those recent mac)

Revision history for this message
Can Süslü (can-suslu99) said :
#5

Dear Olivier,

I get this error from Herwig only when I first try to compile the process using Pythia. When I first use Herwig, it just works fine. Maybe pythia just disrupts the compiler, and I get this error. I will try to link an external Pythia path instead of using the pythia installed from the mg5 interface.

Regarding the version of herwig, I actually would like to use Herwig7 or Herwig++ since they output hepmc format instead of stdhep. Can I install those versions in the Mg5 interface using install command? Or do I have to link them externally?

Thanks a lot,
Can Suslu

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

You are right, those seems to still be warning and not crash with your compiler. Sorry.

> I get this error from Herwig only when I first try to compile the process using Pythia. When I first use Herwig, it just works fine. Maybe pythia just disrupts the compiler, and I get this error. I will try to link an external Pythia path instead of using the pythia installed from the mg5 interface.

AhI see, I guess that setting pythia, trigger automatically some flag to be added in the shower_card.dat (because we know that we need those for pythia8) and then when you switch back to herwig those flag are not remove and lead to the compilation crash for herwig...

> Regarding the version of herwig, I actually would like to use Herwig7 or Herwig++ since they output hepmc format instead of stdhep. Can I install those versions in the Mg5 interface using install command? Or do I have to link them externally?

We do not have an "install herwig7" so you will need to update the file input/mg5_configuration.txt to specify the path of the PEG and of the herwig code. I have never done that myself, but if you have issue, i will assign this to our HW7 expert.

Revision history for this message
Can Süslü (can-suslu99) said :
#7

Dear Olivier,

It would be good indeed, because I get some errors regarding the installation of ThePEG and Herwig, and the reason seems like a problem occurs while installing LHAPDF6. Here is the error below:

Making all in src
make[1]: Entering directory '/home/suslu/CAN_MC_Programs/LHAPDF-6.4.0/src'
Making all in yamlcpp
make[2]: Entering directory '/home/suslu/CAN_MC_Programs/LHAPDF-6.4.0/src/yamlcpp'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/suslu/CAN_MC_Programs/LHAPDF-6.4.0/src/yamlcpp'
make[2]: Entering directory '/home/suslu/CAN_MC_Programs/LHAPDF-6.4.0/src'
make[2]: Nothing to be done for 'all-am'.
make[2]: Leaving directory '/home/suslu/CAN_MC_Programs/LHAPDF-6.4.0/src'
make[1]: Leaving directory '/home/suslu/CAN_MC_Programs/LHAPDF-6.4.0/src'
Making all in include
make[1]: Entering directory '/home/suslu/CAN_MC_Programs/LHAPDF-6.4.0/include'
Making all in LHAPDF
make[2]: Entering directory '/home/suslu/CAN_MC_Programs/LHAPDF-6.4.0/include/LHAPDF'
make all-am
make[3]: Entering directory '/home/suslu/CAN_MC_Programs/LHAPDF-6.4.0/include/LHAPDF'
make[3]: Leaving directory '/home/suslu/CAN_MC_Programs/LHAPDF-6.4.0/include/LHAPDF'
make[2]: Leaving directory '/home/suslu/CAN_MC_Programs/LHAPDF-6.4.0/include/LHAPDF'
make[2]: Entering directory '/home/suslu/CAN_MC_Programs/LHAPDF-6.4.0/include'
make[2]: Nothing to be done for 'all-am'.
make[2]: Leaving directory '/home/suslu/CAN_MC_Programs/LHAPDF-6.4.0/include'
make[1]: Leaving directory '/home/suslu/CAN_MC_Programs/LHAPDF-6.4.0/include'
Making all in wrappers
make[1]: Entering directory '/home/suslu/CAN_MC_Programs/LHAPDF-6.4.0/wrappers'
Making all in python
make[2]: Entering directory '/home/suslu/CAN_MC_Programs/LHAPDF-6.4.0/wrappers/python'
CC="g++" CXX="g++" CFLAGS="-g -O2" CXXFLAGS="-O3" CPPFLAGS="-I/home/suslu/CAN_MC_Programs/include -I." /usr/bin/python3 setup.py install --install-lib=build/ --force
running install
running build
running build_ext
building 'lhapdf' extension
g++ -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -O2 -I/home/suslu/CAN_MC_Programs/include -I. -fPIC -I/home/suslu/CAN_MC_Programs/LHAPDF-6.4.0/include -I/home/suslu/CAN_MC_Programs/LHAPDF-6.4.0/include -I/usr/include/python3.8 -c lhapdf.cpp -o build/temp.linux-x86_64-3.8/lhapdf.o -I/home/suslu/CAN_MC_Programs/include
lhapdf.cpp:4:10: fatal error: Python.h: No such file or directory
    4 | #include "Python.h"
      | ^~~~~~~~~~
compilation terminated.
error: command 'g++' failed with exit status 1
make[2]: *** [Makefile:486: all-local] Error 1
make[2]: Leaving directory '/home/suslu/CAN_MC_Programs/LHAPDF-6.4.0/wrappers/python'
make[1]: *** [Makefile:376: all-recursive] Error 1
make[1]: Leaving directory '/home/suslu/CAN_MC_Programs/LHAPDF-6.4.0/wrappers'
make: *** [Makefile:509: all-recursive] Error 1

Since there is an error in LHAPDF, I can't compile the PEG, are there any solution of this?

Also, I have tried linking an external pythia8, however I get the same errors in NLO production which I have posted here. Also, I get a warning saying that:

WARNING: Trying to shower events using the same PDF in the shower as used in the generation of the events using LHAPDF. However, no valid LHAPDF installation found with the needed PDF set. Will use default internal PDF for the shower instead. To use the same set as was used in the event generation install LHAPDF and set the path using "set /path_to_lhapdf/bin/lhapdf-config" from the MadGraph5_aMC@NLO python shell

Could the problem I get in Pythia also be related to LHPDF?

Thanks a lot,
Can Suslu

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

This means that you need to install python-dev package (from yum/apt-get)

For the issue with pythia8, if you do not have lhapdf then yes it is problematic, but you technically do not need python integration for lhapdf to be working for pythia8 (as long as I know). This is an optional feature of lhapdf.

Cheers,

Olivier

> On 12 May 2022, at 13:05, Can Süslü <email address hidden> wrote:
>
> Question #701417 on MadGraph5_aMC@NLO changed:
> https://answers.launchpad.net/mg5amcnlo/+question/701417
>
> Status: Answered => Open
>
> Can Süslü is still having a problem:
> Dear Olivier,
>
> It would be good indeed, because I get some errors regarding the
> installation of ThePEG and Herwig, and the reason seems like a problem
> occurs while installing LHAPDF6. Here is the error below:
>
> Making all in src
> make[1]: Entering directory '/home/suslu/CAN_MC_Programs/LHAPDF-6.4.0/src'
> Making all in yamlcpp
> make[2]: Entering directory '/home/suslu/CAN_MC_Programs/LHAPDF-6.4.0/src/yamlcpp'
> make[2]: Nothing to be done for 'all'.
> make[2]: Leaving directory '/home/suslu/CAN_MC_Programs/LHAPDF-6.4.0/src/yamlcpp'
> make[2]: Entering directory '/home/suslu/CAN_MC_Programs/LHAPDF-6.4.0/src'
> make[2]: Nothing to be done for 'all-am'.
> make[2]: Leaving directory '/home/suslu/CAN_MC_Programs/LHAPDF-6.4.0/src'
> make[1]: Leaving directory '/home/suslu/CAN_MC_Programs/LHAPDF-6.4.0/src'
> Making all in include
> make[1]: Entering directory '/home/suslu/CAN_MC_Programs/LHAPDF-6.4.0/include'
> Making all in LHAPDF
> make[2]: Entering directory '/home/suslu/CAN_MC_Programs/LHAPDF-6.4.0/include/LHAPDF'
> make all-am
> make[3]: Entering directory '/home/suslu/CAN_MC_Programs/LHAPDF-6.4.0/include/LHAPDF'
> make[3]: Leaving directory '/home/suslu/CAN_MC_Programs/LHAPDF-6.4.0/include/LHAPDF'
> make[2]: Leaving directory '/home/suslu/CAN_MC_Programs/LHAPDF-6.4.0/include/LHAPDF'
> make[2]: Entering directory '/home/suslu/CAN_MC_Programs/LHAPDF-6.4.0/include'
> make[2]: Nothing to be done for 'all-am'.
> make[2]: Leaving directory '/home/suslu/CAN_MC_Programs/LHAPDF-6.4.0/include'
> make[1]: Leaving directory '/home/suslu/CAN_MC_Programs/LHAPDF-6.4.0/include'
> Making all in wrappers
> make[1]: Entering directory '/home/suslu/CAN_MC_Programs/LHAPDF-6.4.0/wrappers'
> Making all in python
> make[2]: Entering directory '/home/suslu/CAN_MC_Programs/LHAPDF-6.4.0/wrappers/python'
> CC="g++" CXX="g++" CFLAGS="-g -O2" CXXFLAGS="-O3" CPPFLAGS="-I/home/suslu/CAN_MC_Programs/include -I." /usr/bin/python3 setup.py install --install-lib=build/ --force
> running install
> running build
> running build_ext
> building 'lhapdf' extension
> g++ -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -O2 -I/home/suslu/CAN_MC_Programs/include -I. -fPIC -I/home/suslu/CAN_MC_Programs/LHAPDF-6.4.0/include -I/home/suslu/CAN_MC_Programs/LHAPDF-6.4.0/include -I/usr/include/python3.8 -c lhapdf.cpp -o build/temp.linux-x86_64-3.8/lhapdf.o -I/home/suslu/CAN_MC_Programs/include
> lhapdf.cpp:4:10: fatal error: Python.h: No such file or directory
> 4 | #include "Python.h"
> | ^~~~~~~~~~
> compilation terminated.
> error: command 'g++' failed with exit status 1
> make[2]: *** [Makefile:486: all-local] Error 1
> make[2]: Leaving directory '/home/suslu/CAN_MC_Programs/LHAPDF-6.4.0/wrappers/python'
> make[1]: *** [Makefile:376: all-recursive] Error 1
> make[1]: Leaving directory '/home/suslu/CAN_MC_Programs/LHAPDF-6.4.0/wrappers'
> make: *** [Makefile:509: all-recursive] Error 1
>
> Since there is an error in LHAPDF, I can't compile the PEG, are there
> any solution of this?
>
> Also, I have tried linking an external pythia8, however I get the same
> errors in NLO production which I have posted here. Also, I get a warning
> saying that:
>
> WARNING: Trying to shower events using the same PDF in the shower as
> used in the generation of the events using LHAPDF. However, no valid
> LHAPDF installation found with the needed PDF set. Will use default
> internal PDF for the shower instead. To use the same set as was used in
> the event generation install LHAPDF and set the path using "set
> /path_to_lhapdf/bin/lhapdf-config" from the MadGraph5_aMC@NLO python
> shell
>
> Could the problem I get in Pythia also be related to LHPDF?
>
> Thanks a lot,
> Can Suslu
>
> --
> You received this question notification because you are an answer
> contact for MadGraph5_aMC@NLO.

Can you help with this problem?

Provide an answer of your own, or ask Can Süslü for more information if necessary.

To post a message you must log in.