error in generating heavy ions events

Asked by Hesham El Faham

Hi,
I am trying to generate events in heavy ions collision using the below run card:
---
import model ../2.7.3/models/DisplacedDM
generate p p > y1 > xd2 xd2~, (xd2 > xd1 y0, y0 > l+ l-),(xd2~ > xd1~ y0, y0 > l+ l-)
#generate p p > y1 > xd2 xd2~
output /nfs/scratch/fynu/elfaham/displacedDM_test_HI
launch /nfs/scratch/fynu/elfaham/displacedDM_test_HI
shower = PY8
set pdlabel lhapdf
set lhaid 901300
set ebeam1 2750.0
set ebeam2 2750.0
set nevents 250000
set MXD2 10
set MY0 1
set MY1 1000
set MXD1 1
set gpxd2xd1 4.0e-07
set gsxd2xd1 4.0e-07
set wxd2 Auto
#set gaxd2 4.0e-07
#set gvxd2 4.0e-07
#set gssm 4.0e-07
#set gpsm 4.0e-07
set mpi False
set mmll 0
set mmllmax -1
set use_syst False
set time_of_flight 1
---
which results in the following error during the run:
-->
Error detected in "generate_events run_01"
write debug file /nfs/scratch/fynu/elfaham/displacedDM_test_HI/run_01_tag_1_debug.log
If you need help with this issue please contact us on https://answers.launchpad.net/mg5amcnlo
MadGraph5Error : A compilation Error occurs when trying to compile /nfs/scratch/fynu/elfaham/displacedDM_test_HI/SubProcesses/P1_uux_xd2xd2x_xd2_xd1y0_y0_epem_xd2x_xd1xy0_y0_epem.
 The compilation fails with the following output message:
     gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -w -c symmetry.f -I../../Source/
     gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -w -c idenparts.f -I../../Source/
     gfortran -o gensym symmetry.o idenparts.o -L../../lib/ -lmodel -lgeneric -lpdf -O -I/home/users/e/l/elfaham/pheno_work/HI_work/heavy_ions/2.7.3/HEPTools/lhapdf6/include -L/home/users/e/l/elfaham/pheno_work/HI_work/heavy_ions/2.7.3/HEPTools/lhapdf6/lib -lLHAPDF -lLHAPDF -lstdc++
     ../../lib//libpdf.a(pdf_lhapdf62.o): In function `lhapdf_getpdfsetlist_':
     pdf_lhapdf62.cc:(.text+0x261): undefined reference to `LHAPDF::availablePDFSets[abi:cxx11]()'
     ../../lib//libpdf.a(pdf_lhapdf62.o): In function `lhapdf_getdatapath_':
     pdf_lhapdf62.cc:(.text+0x4b3): undefined reference to `LHAPDF::paths[abi:cxx11]()'
     ../../lib//libpdf.a(pdf_lhapdf62.o): In function `getdatapath_':
     pdf_lhapdf62.cc:(.text+0x5e3): undefined reference to `LHAPDF::paths[abi:cxx11]()'
     ../../lib//libpdf.a(pdf_lhapdf62.o): In function `lhapdf_setdatapath_':
     pdf_lhapdf62.cc:(.text+0x1058): undefined reference to `LHAPDF::setPaths(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
     ../../lib//libpdf.a(pdf_lhapdf62.o): In function `lhapdf_appenddatapath_':
     pdf_lhapdf62.cc:(.text+0x10c4): undefined reference to `LHAPDF::paths[abi:cxx11]()'
     pdf_lhapdf62.cc:(.text+0x124a): undefined reference to `LHAPDF::setPaths(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
     ../../lib//libpdf.a(pdf_lhapdf62.o): In function `lhapdf_prependdatapath_':
     pdf_lhapdf62.cc:(.text+0x148a): undefined reference to `LHAPDF::paths[abi:cxx11]()'
     pdf_lhapdf62.cc:(.text+0x15ce): undefined reference to `LHAPDF::setPaths(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
     ../../lib//libpdf.a(pdf_lhapdf62.o): In function `(anonymous namespace)::PDFSetHandler::loadMember(int)':
     pdf_lhapdf62.cc:(.text+0x1967): undefined reference to `LHAPDF::mkPDF(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int)'
     ../../lib//libpdf.a(pdf_lhapdf62.o): In function `(anonymous namespace)::PDFSetHandler::PDFSetHandler(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
     pdf_lhapdf62.cc:(.text+0x4877): undefined reference to `LHAPDF::lookupPDF(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
     ../../lib//libpdf.a(pdf_lhapdf62.o): In function `pdfset_':
     pdf_lhapdf62.cc:(.text+0x4c4b): undefined reference to `LHAPDF::lookupPDF[abi:cxx11](int)'
     pdf_lhapdf62.cc:(.text+0x500d): undefined reference to `LHAPDF::lookupPDF[abi:cxx11](int)'
     ../../lib//libpdf.a(pdf_lhapdf62.o): In function `lhapdf_initpdfset_byid_':
     pdf_lhapdf62.cc:(.text+0x7c37): undefined reference to `LHAPDF::lookupPDF[abi:cxx11](int)'
     ../../lib//libpdf.a(pdf_lhapdf62.o): In function `LHAPDF::pathsPrepend(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
     pdf_lhapdf62.cc:(.text._ZN6LHAPDF12pathsPrependERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE[_ZN6LHAPDF12pathsPrependERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE]+0x17): undefined reference to `LHAPDF::paths[abi:cxx11]()'
     pdf_lhapdf62.cc:(.text._ZN6LHAPDF12pathsPrependERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE[_ZN6LHAPDF12pathsPrependERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE]+0x14e): undefined reference to `LHAPDF::setPaths(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
     ../../lib//libpdf.a(pdf_lhapdf62.o): In function `LHAPDF::PDF::set() const':
     pdf_lhapdf62.cc:(.text._ZNK6LHAPDF3PDF3setEv[_ZNK6LHAPDF3PDF3setEv]+0x201): undefined reference to `LHAPDF::getPDFSet(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
     collect2: error: ld returned 1 exit status
     make: *** [gensym] Error 1
<--
The full ME5_debug file:
-->
generate_events run_01
Traceback (most recent call last):
  File "/auto/home/users/e/l/elfaham/pheno_work/HI_work/heavy_ions/2.7.3/madgraph/interface/extended_cmd.py", line 1515, in onecmd
    return self.onecmd_orig(line, **opt)
  File "/auto/home/users/e/l/elfaham/pheno_work/HI_work/heavy_ions/2.7.3/madgraph/interface/extended_cmd.py", line 1464, in onecmd_orig
    return func(arg, **opt)
  File "/auto/home/users/e/l/elfaham/pheno_work/HI_work/heavy_ions/2.7.3/madgraph/interface/madevent_interface.py", line 2469, in do_generate_events
    self.run_generate_events(switch_mode, args)
  File "/auto/home/users/e/l/elfaham/pheno_work/HI_work/heavy_ions/2.7.3/madgraph/interface/common_run_interface.py", line 6975, in new_fct
    original_fct(obj, *args, **opts)
  File "/auto/home/users/e/l/elfaham/pheno_work/HI_work/heavy_ions/2.7.3/madgraph/interface/madevent_interface.py", line 2509, in run_generate_events
    postcmd=False)
  File "/auto/home/users/e/l/elfaham/pheno_work/HI_work/heavy_ions/2.7.3/madgraph/interface/extended_cmd.py", line 1544, in exec_cmd
    stop = Cmd.onecmd_orig(current_interface, line, **opt)
  File "/auto/home/users/e/l/elfaham/pheno_work/HI_work/heavy_ions/2.7.3/madgraph/interface/extended_cmd.py", line 1464, in onecmd_orig
    return func(arg, **opt)
  File "/auto/home/users/e/l/elfaham/pheno_work/HI_work/heavy_ions/2.7.3/madgraph/interface/madevent_interface.py", line 3360, in do_survey
    jobs, P_zero_result = ajobcreator.launch()
  File "/auto/home/users/e/l/elfaham/pheno_work/HI_work/heavy_ions/2.7.3/madgraph/madevent/gen_ximprove.py", line 148, in launch
    self.cmd.compile(['gensym'], cwd=Pdir)
  File "/auto/home/users/e/l/elfaham/pheno_work/HI_work/heavy_ions/2.7.3/madgraph/interface/extended_cmd.py", line 1608, in compile
    return misc.compile(nb_core=self.options['nb_core'], *args, **opts)
  File "/auto/home/users/e/l/elfaham/pheno_work/HI_work/heavy_ions/2.7.3/madgraph/various/misc.py", line 532, in compile
    raise MadGraph5Error, error_text
MadGraph5Error: A compilation Error occurs when trying to compile /nfs/scratch/fynu/elfaham/displacedDM_test_HI/SubProcesses/P1_uux_xd2xd2x_xd2_xd1y0_y0_epem_xd2x_xd1xy0_y0_epem.
The compilation fails with the following output message:
    gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -w -c symmetry.f -I../../Source/
    gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -w -c idenparts.f -I../../Source/
    gfortran -o gensym symmetry.o idenparts.o -L../../lib/ -lmodel -lgeneric -lpdf -O -I/home/users/e/l/elfaham/pheno_work/HI_work/heavy_ions/2.7.3/HEPTools/lhapdf6/include -L/home/users/e/l/elfaham/pheno_work/HI_work/heavy_ions/2.7.3/HEPTools/lhapdf6/lib -lLHAPDF -lLHAPDF -lstdc++
    ../../lib//libpdf.a(pdf_lhapdf62.o): In function `lhapdf_getpdfsetlist_':
    pdf_lhapdf62.cc:(.text+0x261): undefined reference to `LHAPDF::availablePDFSets[abi:cxx11]()'
    ../../lib//libpdf.a(pdf_lhapdf62.o): In function `lhapdf_getdatapath_':
    pdf_lhapdf62.cc:(.text+0x4b3): undefined reference to `LHAPDF::paths[abi:cxx11]()'
    ../../lib//libpdf.a(pdf_lhapdf62.o): In function `getdatapath_':
    pdf_lhapdf62.cc:(.text+0x5e3): undefined reference to `LHAPDF::paths[abi:cxx11]()'
    ../../lib//libpdf.a(pdf_lhapdf62.o): In function `lhapdf_setdatapath_':
    pdf_lhapdf62.cc:(.text+0x1058): undefined reference to `LHAPDF::setPaths(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
    ../../lib//libpdf.a(pdf_lhapdf62.o): In function `lhapdf_appenddatapath_':
    pdf_lhapdf62.cc:(.text+0x10c4): undefined reference to `LHAPDF::paths[abi:cxx11]()'
    pdf_lhapdf62.cc:(.text+0x124a): undefined reference to `LHAPDF::setPaths(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
    ../../lib//libpdf.a(pdf_lhapdf62.o): In function `lhapdf_prependdatapath_':
    pdf_lhapdf62.cc:(.text+0x148a): undefined reference to `LHAPDF::paths[abi:cxx11]()'
    pdf_lhapdf62.cc:(.text+0x15ce): undefined reference to `LHAPDF::setPaths(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
    ../../lib//libpdf.a(pdf_lhapdf62.o): In function `(anonymous namespace)::PDFSetHandler::loadMember(int)':
    pdf_lhapdf62.cc:(.text+0x1967): undefined reference to `LHAPDF::mkPDF(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int)'
    ../../lib//libpdf.a(pdf_lhapdf62.o): In function `(anonymous namespace)::PDFSetHandler::PDFSetHandler(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
    pdf_lhapdf62.cc:(.text+0x4877): undefined reference to `LHAPDF::lookupPDF(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
    ../../lib//libpdf.a(pdf_lhapdf62.o): In function `pdfset_':
    pdf_lhapdf62.cc:(.text+0x4c4b): undefined reference to `LHAPDF::lookupPDF[abi:cxx11](int)'
    pdf_lhapdf62.cc:(.text+0x500d): undefined reference to `LHAPDF::lookupPDF[abi:cxx11](int)'
    ../../lib//libpdf.a(pdf_lhapdf62.o): In function `lhapdf_initpdfset_byid_':
    pdf_lhapdf62.cc:(.text+0x7c37): undefined reference to `LHAPDF::lookupPDF[abi:cxx11](int)'
    ../../lib//libpdf.a(pdf_lhapdf62.o): In function `LHAPDF::pathsPrepend(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
    pdf_lhapdf62.cc:(.text._ZN6LHAPDF12pathsPrependERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE[_ZN6LHAPDF12pathsPrependERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE]+0x17): undefined reference to `LHAPDF::paths[abi:cxx11]()'
    pdf_lhapdf62.cc:(.text._ZN6LHAPDF12pathsPrependERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE[_ZN6LHAPDF12pathsPrependERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE]+0x14e): undefined reference to `LHAPDF::setPaths(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
    ../../lib//libpdf.a(pdf_lhapdf62.o): In function `LHAPDF::PDF::set() const':
    pdf_lhapdf62.cc:(.text._ZNK6LHAPDF3PDF3setEv[_ZNK6LHAPDF3PDF3setEv]+0x201): undefined reference to `LHAPDF::getPDFSet(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
    collect2: error: ld returned 1 exit status
    make: *** [gensym] Error 1
Please try to fix this compilations issue and retry.
Help might be found at https://answers.launchpad.net/mg5amcnlo.
If you think that this is a bug, you can report this at https://bugs.launchpad.net/mg5amcnlo
                              Run Options
                             -----------
               stdout_level : 10 (user set)

                         MadEvent Options
                         ----------------
     automatic_html_opening : False (user set)
        notification_center : True
          cluster_temp_path : None
             cluster_memory : None (user set)
               cluster_size : 150 (user set)
              cluster_queue : None (user set)
                    nb_core : 5 (user set)
               cluster_time : 5 (user set)
                   run_mode : 1 (user set)

                      Configuration Options
                      ---------------------
                text_editor : None
         cluster_local_path : /cvmfs/cp3.uclouvain.be/madgraph/ (user set)
      cluster_status_update : (900, 60) (user set)
               pythia8_path : /auto/home/users/e/l/elfaham/pheno_work/HI_work/heavy_ions/2.7.3/HEPTools/pythia8 (user set)
                  hwpp_path : None (user set)
            pythia-pgs_path : None (user set)
                    td_path : /auto/home/users/e/l/elfaham/pheno_work/HI_work/heavy_ions/2.7.3/td (user set)
               delphes_path : /auto/home/users/e/l/elfaham/pheno_work/HI_work/heavy_ions/2.7.3/Delphes (user set)
                thepeg_path : None (user set)
               cluster_type : slurm (user set)
          madanalysis5_path : /auto/home/users/e/l/elfaham/pheno_work/HI_work/heavy_ions/2.7.3/HEPTools/madanalysis5/madanalysis5 (user set)
           cluster_nb_retry : 1
                 eps_viewer : None
                web_browser : None
               syscalc_path : None (user set)
           madanalysis_path : /auto/home/users/e/l/elfaham/pheno_work/HI_work/heavy_ions/2.7.3/MadAnalysis (user set)
                     lhapdf : /home/users/e/l/elfaham/pheno_work/HI_work/heavy_ions/2.7.3/HEPTools/lhapdf6/bin/lhapdf-config (user set)
              f2py_compiler : None
                 hepmc_path : /auto/home/users/e/l/elfaham/pheno_work/HI_work/heavy_ions/2.7.3/HEPTools/hepmc (user set)
         cluster_retry_wait : 300 (user set)
           fortran_compiler : None
                auto_update : 7 (user set)
        exrootanalysis_path : None (user set)
                    timeout : 60
               cpp_compiler : None
<--
May you please help with that?
Best,
Hesham

Question information

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

Hi,

You are not using the module installed by Pavel?
in particular lhapdf/6.1.6-sl7_gcc73 and pheno/pheno-sl7_gcc73

If not, which gcc module did you use, I guess that you are using a too old one and have c++11 issues.

Cheers,

Olivier

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

This said even without any module I can succesfully install lhapdf and link it on ingrid-ui1
(you are not using ingrid-ui2 do you?)

Cheers,

Olivier

Revision history for this message
Hesham El Faham (helfaham) said :
#3

I use python/python27_sl7_gcc73 and root/6.12.04-sl7_gcc73 on ingrid-ui1.

Best,
Hesham

Revision history for this message
Hesham El Faham (helfaham) said :
#4

and mg5 runs perfectly well in pp. H.

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

What do you mena pp.H ?
YOur issue here is purely linked to lhapdf. So the process is not important (but the fact of using or not lhapdf is obviously)

Ok those modules automatically also load this one: 1) gcc/gcc-7.3.0-sl7_amd64

I have re-install lhapdf with that module activated and I do not face such issue either.
Therefore I would just advise you to re-install lhapdf6

Cheers,

Olivier

Revision history for this message
Hesham El Faham (helfaham) said :
#6

Sorry, I meant proton-proton collisions with "pp". I will re-install lhapdf6 and try again. Thanks.

Best,
Hesham

Revision history for this message
Hesham El Faham (helfaham) said :
#7

Thanks Olivier Mattelaer, that solved my question.