Unable to perform NLO calculations in MG5

Asked by Rishabh Jain on 2018-11-03

Hello I am Rishabh Jain,

I am trying to do NLO calculations with MG5_aMC_v2_5_5 , I generated the following process,

import model loop_sm
generate p p > h [QCD]
output pph2

When I generate events , I get the following error message,
Traceback (most recent call last):
  File "/home/rishabhv/Research_work/Softwares/MG5_aMC_v2_5_5/pph2/bin/internal/extended_cmd.py", line 1501, in onecmd
    return self.onecmd_orig(line, **opt)
  File "/home/rishabhv/Research_work/Softwares/MG5_aMC_v2_5_5/pph2/bin/internal/extended_cmd.py", line 1450, in onecmd_orig
    return func(arg, **opt)
  File "/home/rishabhv/Research_work/Softwares/MG5_aMC_v2_5_5/pph2/bin/internal/madevent_interface.py", line 2469, in do_generate_events
    self.run_generate_events(switch_mode, args)
  File "/home/rishabhv/Research_work/Softwares/MG5_aMC_v2_5_5/pph2/bin/internal/common_run_interface.py", line 6711, in new_fct
    original_fct(obj, *args, **opts)
  File "/home/rishabhv/Research_work/Softwares/MG5_aMC_v2_5_5/pph2/bin/internal/madevent_interface.py", line 2508, in run_generate_events
    postcmd=False)
  File "/home/rishabhv/Research_work/Softwares/MG5_aMC_v2_5_5/pph2/bin/internal/extended_cmd.py", line 1528, in exec_cmd
    stop = Cmd.onecmd_orig(current_interface, line, **opt)
  File "/home/rishabhv/Research_work/Softwares/MG5_aMC_v2_5_5/pph2/bin/internal/extended_cmd.py", line 1450, in onecmd_orig
    return func(arg, **opt)
  File "/home/rishabhv/Research_work/Softwares/MG5_aMC_v2_5_5/pph2/bin/internal/madevent_interface.py", line 3277, in do_survey
    self.configure_directory()
  File "/home/rishabhv/Research_work/Softwares/MG5_aMC_v2_5_5/pph2/bin/internal/madevent_interface.py", line 5597, in configure_directory
    self.do_treatcards('')
  File "/home/rishabhv/Research_work/Softwares/MG5_aMC_v2_5_5/pph2/bin/internal/madevent_interface.py", line 3254, in do_treatcards
    self.exec_cmd('initMadLoop -r -f')
  File "/home/rishabhv/Research_work/Softwares/MG5_aMC_v2_5_5/pph2/bin/internal/extended_cmd.py", line 1528, in exec_cmd
    stop = Cmd.onecmd_orig(current_interface, line, **opt)
  File "/home/rishabhv/Research_work/Softwares/MG5_aMC_v2_5_5/pph2/bin/internal/extended_cmd.py", line 1450, in onecmd_orig
    return func(arg, **opt)
  File "/home/rishabhv/Research_work/Softwares/MG5_aMC_v2_5_5/pph2/bin/internal/madevent_interface.py", line 2613, in do_initMadLoop
    subproc_prefix='PV', MG_options=self.options, interface=self)
  File "/home/rishabhv/Research_work/Softwares/MG5_aMC_v2_5_5/pph2/bin/internal/madevent_interface.py", line 7036, in init_MadLoop
    mcore.wait('',wait_monitoring,update_first=wait_monitoring)
  File "/home/rishabhv/Research_work/Softwares/MG5_aMC_v2_5_5/pph2/bin/internal/cluster.py", line 659, in worker
    returncode = exe(*arg, **opt)
  File "/home/rishabhv/Research_work/Softwares/MG5_aMC_v2_5_5/pph2/bin/internal/madevent_interface.py", line 7000, in run_initialization_wrapper
    run_dir=run_dir, infos=infos, attempts=attempts)
  File "/home/rishabhv/Research_work/Softwares/MG5_aMC_v2_5_5/pph2/bin/internal/madevent_interface.py", line 6900, in run_initialization
    MadLoopInitializer.make_and_run(run_dir)
  File "/home/rishabhv/Research_work/Softwares/MG5_aMC_v2_5_5/pph2/bin/internal/madevent_interface.py", line 6688, in make_and_run
    retcode = misc.compile(arg=['-j1','check'], cwd=dir_name, nb_core=1)
  File "/home/rishabhv/Research_work/Softwares/MG5_aMC_v2_5_5/pph2/bin/internal/misc.py", line 527, in compile
    raise MadGraph5Error, error_text
MadGraph5Error: A compilation Error occurs when trying to compile /home/rishabhv/Research_work/Softwares/MG5_aMC_v2_5_5/pph2/SubProcesses/PV0_0_1_gg_h.
The compilation fails with the following output message:
    gfortran -w -fPIC -ffixed-line-length-132 -O3 -c polynomial.f -o polynomial.o -I /home/rishabhv/Research_work/Softwares/MG5_aMC_v2_5_5/HEPTools/include -I /home/rishabhv/Research_work/Softwares/MG5_aMC_v2_5_5/HEPTools/include
    gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c check_sa.f -o check_sa.o -I /home/rishabhv/Research_work/Softwares/MG5_aMC_v2_5_5/HEPTools/include -I /home/rishabhv/Research_work/Softwares/MG5_aMC_v2_5_5/HEPTools/include
    gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c MadLoopParamReader.f -o MadLoopParamReader.o -I /home/rishabhv/Research_work/Softwares/MG5_aMC_v2_5_5/HEPTools/include -I /home/rishabhv/Research_work/Softwares/MG5_aMC_v2_5_5/HEPTools/include
    gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c MadLoopCommons.f -o MadLoopCommons.o -I /home/rishabhv/Research_work/Softwares/MG5_aMC_v2_5_5/HEPTools/include -I /home/rishabhv/Research_work/Softwares/MG5_aMC_v2_5_5/HEPTools/include
    gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c loop_matrix.f -o loop_matrix.o -I /home/rishabhv/Research_work/Softwares/MG5_aMC_v2_5_5/HEPTools/include -I /home/rishabhv/Research_work/Softwares/MG5_aMC_v2_5_5/HEPTools/include
    gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c improve_ps.f -o improve_ps.o -I /home/rishabhv/Research_work/Softwares/MG5_aMC_v2_5_5/HEPTools/include -I /home/rishabhv/Research_work/Softwares/MG5_aMC_v2_5_5/HEPTools/include
    gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c CT_interface.f -o CT_interface.o -I /home/rishabhv/Research_work/Softwares/MG5_aMC_v2_5_5/HEPTools/include -I /home/rishabhv/Research_work/Softwares/MG5_aMC_v2_5_5/HEPTools/include
    gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c loop_num.f -o loop_num.o -I /home/rishabhv/Research_work/Softwares/MG5_aMC_v2_5_5/HEPTools/include -I /home/rishabhv/Research_work/Softwares/MG5_aMC_v2_5_5/HEPTools/include
    gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c helas_calls_ampb_1.f -o helas_calls_ampb_1.o -I /home/rishabhv/Research_work/Softwares/MG5_aMC_v2_5_5/HEPTools/include -I /home/rishabhv/Research_work/Softwares/MG5_aMC_v2_5_5/HEPTools/include
    gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c mp_compute_loop_coefs.f -o mp_compute_loop_coefs.o -I /home/rishabhv/Research_work/Softwares/MG5_aMC_v2_5_5/HEPTools/include -I /home/rishabhv/Research_work/Softwares/MG5_aMC_v2_5_5/HEPTools/include
    gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c mp_helas_calls_ampb_1.f -o mp_helas_calls_ampb_1.o -I /home/rishabhv/Research_work/Softwares/MG5_aMC_v2_5_5/HEPTools/include -I /home/rishabhv/Research_work/Softwares/MG5_aMC_v2_5_5/HEPTools/include
    gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c coef_construction_1.f -o coef_construction_1.o -I /home/rishabhv/Research_work/Softwares/MG5_aMC_v2_5_5/HEPTools/include -I /home/rishabhv/Research_work/Softwares/MG5_aMC_v2_5_5/HEPTools/include
    gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c loop_CT_calls_1.f -o loop_CT_calls_1.o -I /home/rishabhv/Research_work/Softwares/MG5_aMC_v2_5_5/HEPTools/include -I /home/rishabhv/Research_work/Softwares/MG5_aMC_v2_5_5/HEPTools/include
    gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c mp_coef_construction_1.f -o mp_coef_construction_1.o -I /home/rishabhv/Research_work/Softwares/MG5_aMC_v2_5_5/HEPTools/include -I /home/rishabhv/Research_work/Softwares/MG5_aMC_v2_5_5/HEPTools/include
    gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c TIR_interface.f -o TIR_interface.o -I /home/rishabhv/Research_work/Softwares/MG5_aMC_v2_5_5/HEPTools/include -I /home/rishabhv/Research_work/Softwares/MG5_aMC_v2_5_5/HEPTools/include
    gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c COLLIER_interface.f -o COLLIER_interface.o -I /home/rishabhv/Research_work/Softwares/MG5_aMC_v2_5_5/HEPTools/include -I /home/rishabhv/Research_work/Softwares/MG5_aMC_v2_5_5/HEPTools/include
    gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c compute_color_flows.f -o compute_color_flows.o -I /home/rishabhv/Research_work/Softwares/MG5_aMC_v2_5_5/HEPTools/include -I /home/rishabhv/Research_work/Softwares/MG5_aMC_v2_5_5/HEPTools/include
    gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -o check check_sa.o MadLoopParamReader.o MadLoopCommons.o polynomial.o loop_matrix.o improve_ps.o CT_interface.o loop_num.o helas_calls_ampb_1.o mp_compute_loop_coefs.o mp_helas_calls_ampb_1.o coef_construction_1.o loop_CT_calls_1.o mp_coef_construction_1.o TIR_interface.o COLLIER_interface.o compute_color_flows.o -L../../lib/ -ldhelas -lmodel -L../../lib/ -lcts -liregi -L/home/rishabhv/Research_work/Softwares/MG5_aMC_v2_5_5/HEPTools/lib/ -lninja -L/home/rishabhv/Research_work/Softwares/MG5_aMC_v2_5_5/HEPTools/lib/ -lavh_olo -L/home/rishabhv/Research_work/Softwares/MG5_aMC_v2_5_5/HEPTools/lib/ -lcollier -lstdc++
    CT_interface.o: In function `ml5_0_0_1_initct_':
    CT_interface.f:(.text+0xd1f): undefined reference to `ctsinit_'
    CT_interface.o: In function `ml5_0_0_1_ctloop_':
    CT_interface.f:(.text+0x2e5f): undefined reference to `ctsxcut_'
    ../../lib//libiregi.a(mis_warp.o): In function `__mis_warp_MOD_d0c1':
    /home/rishabhv/Research_work/Softwares/MG5_aMC_v2_5_5/vendor/IREGI/src/mis_warp.f90:484: undefined reference to `qlinit_'
    /home/rishabhv/Research_work/Softwares/MG5_aMC_v2_5_5/vendor/IREGI/src/mis_warp.f90:498: undefined reference to `qli4_'
    /home/rishabhv/Research_work/Softwares/MG5_aMC_v2_5_5/vendor/IREGI/src/mis_warp.f90:505: undefined reference to `qli4_'
    /home/rishabhv/Research_work/Softwares/MG5_aMC_v2_5_5/vendor/IREGI/src/mis_warp.f90:513: undefined reference to `qli4_'
    ../../lib//libiregi.a(mis_warp.o): In function `__mis_warp_MOD_c0c1':
    /home/rishabhv/Research_work/Softwares/MG5_aMC_v2_5_5/vendor/IREGI/src/mis_warp.f90:332: undefined reference to `qlinit_'
    /home/rishabhv/Research_work/Softwares/MG5_aMC_v2_5_5/vendor/IREGI/src/mis_warp.f90:402: undefined reference to `qli3_'
    ../../lib//libiregi.a(mis_warp.o): In function `__mis_warp_MOD_b0c1':
    /home/rishabhv/Research_work/Softwares/MG5_aMC_v2_5_5/vendor/IREGI/src/mis_warp.f90:229: undefined reference to `qlinit_'
    /home/rishabhv/Research_work/Softwares/MG5_aMC_v2_5_5/vendor/IREGI/src/mis_warp.f90:244: undefined reference to `qli2_'
    ../../lib//libiregi.a(mis_warp.o): In function `__mis_warp_MOD_a0c1':
    /home/rishabhv/Research_work/Softwares/MG5_aMC_v2_5_5/vendor/IREGI/src/mis_warp.f90:156: undefined reference to `qlinit_'
    /home/rishabhv/Research_work/Softwares/MG5_aMC_v2_5_5/vendor/IREGI/src/mis_warp.f90:167: undefined reference to `qli1_'
    collect2: error: ld returned 1 exit status
    makefile:77: recipe for target 'check' failed
    make: *** [check] Error 1

I am not sure , what should I do??

Please help

Regards
Rishabh

Question information

Language:
English Edit question
Status:
Answered
For:
MadGraph5_aMC@NLO Edit question
Assignee:
No assignee Edit question
Last query:
2018-11-05
Last reply:
2018-11-09

This first thing to try is to test with the latest version to see if this isue is fixed.

Cheers,

Olivier

Rishabh Jain (rishabh.jain) said : #2

No , I tried it with the latest version 2.6.3.2, I am agin getting this error,

Command "launch " interrupted with error:
Exception : fct <function compile_dir at 0x7f67aa217758> does not return 0:
  A compilation Error occurs when trying to compile /home/rishabhv/Research_work/Softwares/MG5_aMC_v2_5_5/pptt_loop/SubProcesses/P0_uux_ttx.
 The compilation fails with the following output message:
     gfortran -o check_poles parton_lum_3.o parton_lum_1.o parton_lum_2.o parton_lum_chooser.o matrix_2.o matrix_3.o matrix_1.o real_me_chooser.o leshouche_inc_chooser.o fks_inc_chooser.o setcuts.o setscales.o born.o sborn_sf.o b_sf_006.o b_sf_005.o b_sf_004.o b_sf_001.o b_sf_008.o b_sf_002.o b_sf_007.o b_sf_003.o fks_Sij.o fastjetfortran_madfks_core.o fjcore.o fastjet_wrapper.o fks_singular.o veto_xsec.o montecarlocounter.o reweight_xsec.o boostwdir2.o configs_and_props_inc_chooser.o initcluster.o cluster.o reweight.o get_color.o FKSParamReader.o iproc_map.o MC_integer.o reweight_xsec_events_pdf_dummy.o appl_interface_dummy.o genps_fks.o weight_lines.o cuts.o pythia_unlops.o recluster.o check_poles.o BinothLHA.o born_hel.o -L../../lib/ libMadLoop.a -lcts -liregi -L/home/rishabhv/Research_work/Softwares/MG5_aMC_v2_5_5/HEPTools/lib/ -lninja -L/home/rishabhv/Research_work/Softwares/MG5_aMC_v2_5_5/HEPTools/lib/ -lavh_olo -L/home/rishabhv/Research_work/Softwares/MG5_aMC_v2_5_5/HEPTools/lib/ -lcollier -L../../lib/ -ldhelas -lgeneric -lmodel -lpdf -lcernlib -lstdc++ -lstdc++
     libMadLoop.a(CT_interface.o): In function `initct_':
     CT_interface.f:(.text+0xbf9): undefined reference to `ctsinit_'
     libMadLoop.a(CT_interface.o): In function `ctloop_':
     CT_interface.f:(.text+0x23a7): undefined reference to `ctsxcut_'
     ../../lib//libiregi.a(mis_warp.o): In function `__mis_warp_MOD_d0c1':
     /home/rishabhv/Research_work/Softwares/MG5_aMC_v2_5_5/vendor/IREGI/src/mis_warp.f90:484: undefined reference to `qlinit_'
     /home/rishabhv/Research_work/Softwares/MG5_aMC_v2_5_5/vendor/IREGI/src/mis_warp.f90:498: undefined reference to `qli4_'
     /home/rishabhv/Research_work/Softwares/MG5_aMC_v2_5_5/vendor/IREGI/src/mis_warp.f90:505: undefined reference to `qli4_'
     /home/rishabhv/Research_work/Softwares/MG5_aMC_v2_5_5/vendor/IREGI/src/mis_warp.f90:513: undefined reference to `qli4_'
     ../../lib//libiregi.a(mis_warp.o): In function `__mis_warp_MOD_c0c1':
     /home/rishabhv/Research_work/Softwares/MG5_aMC_v2_5_5/vendor/IREGI/src/mis_warp.f90:332: undefined reference to `qlinit_'
     /home/rishabhv/Research_work/Softwares/MG5_aMC_v2_5_5/vendor/IREGI/src/mis_warp.f90:402: undefined reference to `qli3_'
     ../../lib//libiregi.a(mis_warp.o): In function `__mis_warp_MOD_b0c1':
     /home/rishabhv/Research_work/Softwares/MG5_aMC_v2_5_5/vendor/IREGI/src/mis_warp.f90:229: undefined reference to `qlinit_'
     /home/rishabhv/Research_work/Softwares/MG5_aMC_v2_5_5/vendor/IREGI/src/mis_warp.f90:244: undefined reference to `qli2_'
     ../../lib//libiregi.a(mis_warp.o): In function `__mis_warp_MOD_a0c1':
     /home/rishabhv/Research_work/Softwares/MG5_aMC_v2_5_5/vendor/IREGI/src/mis_warp.f90:156: undefined reference to `qlinit_'
     /home/rishabhv/Research_work/Softwares/MG5_aMC_v2_5_5/vendor/IREGI/src/mis_warp.f90:167: undefined reference to `qli1_'
     collect2: error: ld returned 1 exit status
     makefile:100: recipe for target 'check_poles' failed
     make: *** [check_poles] 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
Please report this bug on https://bugs.launchpad.net/mg5amcnlo
More information is found in '/home/rishabhv/Research_work/Softwares/MG5_aMC_v2_5_5/pptt_loop/run_04_tag_1_debug.log'.
Please attach this file to your report.
quit
INFO:
It seems to me, some modules are missing, but I don't know where to get them.

Rishabh

I found this post with a similar compilation issue:
https://answers.launchpad.net/mg5amcnlo/+question/271436
So looks like the following was solving the issue:

Please try recompiling CutTools

cd <MG_install_dir>/vendor/CutTools
make clean
make

And then recompile IREGI to make sure it is compiled in the same environment. Do this with

cd <MG_install_dir>/vendor/IREGI
make clean
make

Cheers,

Olivier

Can you help with this problem?

Provide an answer of your own, or ask Rishabh Jain for more information if necessary.

To post a message you must log in.