Compilation Error when compiling /SubProcesses in Madspin

Asked by Ellen on 2019-10-29

Hi!

I am trying to use MadSpin on the process p p > x1+ n2, but I keep getting a compilation error in madspin. I am using the default model files and can't find the origin of this error. Could you help me?
Below you can find the debug file.
Please let me know if you need more information, the model files or anything else.

Ellen

#************************************************************
#* MadGraph5_aMC@NLO/MadEvent *
#* *
#* * * *
#* * * * * *
#* * * * * 5 * * * * *
#* * * * * *
#* * * *
#* *
#* *
#* VERSION 2.6.7 2019-10-16 *
#* *
#* The MadGraph5_aMC@NLO Development Team - Find us at *
#* https://server06.fynu.ucl.ac.be/projects/madgraph *
#* *
#************************************************************
#* *
#* Command File for MadEvent *
#* *
#* run as ./bin/madevent.py filename *
#* *
#************************************************************
generate_events run_01
Traceback (most recent call last):
  File "/home/elri2440/Software/MG5_aMC_v2_6_6/madgraph/interface/extended_cmd.py", line 1514, in onecmd
    return self.onecmd_orig(line, **opt)
  File "/home/elri2440/Software/MG5_aMC_v2_6_6/madgraph/interface/extended_cmd.py", line 1463, in onecmd_orig
    return func(arg, **opt)
  File "/home/elri2440/Software/MG5_aMC_v2_6_6/madgraph/interface/madevent_interface.py", line 2469, in do_generate_events
    self.run_generate_events(switch_mode, args)
  File "/home/elri2440/Software/MG5_aMC_v2_6_6/madgraph/interface/common_run_interface.py", line 6961, in new_fct
    original_fct(obj, *args, **opts)
  File "/home/elri2440/Software/MG5_aMC_v2_6_6/madgraph/interface/madevent_interface.py", line 2566, in run_generate_events
    self.exec_cmd('decay_events -from_cards', postcmd=False)
  File "/home/elri2440/Software/MG5_aMC_v2_6_6/madgraph/interface/extended_cmd.py", line 1543, in exec_cmd
    stop = Cmd.onecmd_orig(current_interface, line, **opt)
  File "/home/elri2440/Software/MG5_aMC_v2_6_6/madgraph/interface/extended_cmd.py", line 1463, in onecmd_orig
    return func(arg, **opt)
  File "/home/elri2440/Software/MG5_aMC_v2_6_6/madgraph/interface/common_run_interface.py", line 3701, in do_decay_events
    madspin_cmd.import_command_file(path)
  File "/home/elri2440/Software/MG5_aMC_v2_6_6/madgraph/interface/extended_cmd.py", line 1660, in import_command_file
    self.exec_cmd(line, precmd=True)
  File "/home/elri2440/Software/MG5_aMC_v2_6_6/madgraph/interface/extended_cmd.py", line 1543, in exec_cmd
    stop = Cmd.onecmd_orig(current_interface, line, **opt)
  File "/home/elri2440/Software/MG5_aMC_v2_6_6/madgraph/interface/extended_cmd.py", line 1463, in onecmd_orig
    return func(arg, **opt)
  File "/home/elri2440/Software/MG5_aMC_v2_6_6/madgraph/various/misc.py", line 100, in f_with_no_logger
    out = f(self, *args, **opt)
  File "/home/elri2440/Software/MG5_aMC_v2_6_6/MadSpin/interface_madspin.py", line 576, in do_launch
    return self.run_onshell(line)
  File "/home/elri2440/Software/MG5_aMC_v2_6_6/MadSpin/interface_madspin.py", line 1421, in run_onshell
    self.options)
  File "/home/elri2440/Software/MG5_aMC_v2_6_6/MadSpin/decay.py", line 2063, in __init__
    self.compile()
  File "/home/elri2440/Software/MG5_aMC_v2_6_6/MadSpin/decay.py", line 4171, in compile
    nb_core=self.mgcmd.options['nb_core'])
  File "/home/elri2440/Software/MG5_aMC_v2_6_6/madgraph/various/misc.py", line 532, in compile
    raise MadGraph5Error, error_text
MadGraph5Error: A compilation Error occurs when trying to compile /home/elri2440/Software/MG5_aMC_v2_6_6/output/ppTOC1N2/madspin_me/SubProcesses.
The compilation fails with the following output message:
    cd P1_udx_x1pn2_63;make matrix2py.so
    cd P2_z_x1px1m;make matrix2py.so
    cd P1_wm_n3x2m;make matrix2py.so
    cd P0_tx_bxwm_wm_n2x1m;make matrix2py.so
    make[1]: warning: jobserver unavailable: using -j1. Add '+' to parent make rule.
    make[1]: warning: jobserver unavailable: using -j1. Add '+' to parent make rule.
    make[1]: warning: jobserver unavailable: using -j1. Add '+' to parent make rule.
    make[1]: warning: jobserver unavailable: using -j1. Add '+' to parent make rule.
    make[1]: Entering directory '/home/elri2440/Software/MG5_aMC_v2_6_6/output/ppTOC1N2/madspin_me/SubProcesses/P2_z_x1px1m'
    make[1]: Entering directory '/home/elri2440/Software/MG5_aMC_v2_6_6/output/ppTOC1N2/madspin_me/SubProcesses/P1_udx_x1pn2_63'
    make[1]: Entering directory '/home/elri2440/Software/MG5_aMC_v2_6_6/output/ppTOC1N2/madspin_me/SubProcesses/P1_wm_n3x2m'
    make[1]: Entering directory '/home/elri2440/Software/MG5_aMC_v2_6_6/output/ppTOC1N2/madspin_me/SubProcesses/P0_tx_bxwm_wm_n2x1m'
    touch __init__.py
    touch __init__.py
    touch __init__.py
    touch __init__.py
    f2py -L../../lib/ -ldhelas -lmodel -c matrix.f -m matrix2py --f77exec=gfortran
    f2py -L../../lib/ -ldhelas -lmodel -c matrix.f -m matrix2py --f77exec=gfortran
    f2py -L../../lib/ -ldhelas -lmodel -c matrix.f -m matrix2py --f77exec=gfortran
    /bin/bash: f2py: command not found
    makefile:26: recipe for target 'matrix2py.so' failed
    make[1]: *** [matrix2py.so] Error 127
    make[1]: Leaving directory '/home/elri2440/Software/MG5_aMC_v2_6_6/output/ppTOC1N2/madspin_me/SubProcesses/P1_wm_n3x2m'
    f2py -L../../lib/ -ldhelas -lmodel -c matrix.f -m matrix2py --f77exec=gfortran
    makefile:11: recipe for target 'P1_wm_n3x2m/matrix2py.so' failed
    make: *** [P1_wm_n3x2m/matrix2py.so] Error 2
    make: *** Waiting for unfinished jobs....
    /bin/bash: f2py: command not found
    makefile:26: recipe for target 'matrix2py.so' failed
    make[1]: *** [matrix2py.so] Error 127
    make[1]: Leaving directory '/home/elri2440/Software/MG5_aMC_v2_6_6/output/ppTOC1N2/madspin_me/SubProcesses/P1_udx_x1pn2_63'
    makefile:7: recipe for target 'P1_udx_x1pn2_63/matrix2py.so' failed
    make: *** [P1_udx_x1pn2_63/matrix2py.so] Error 2
    /bin/bash: f2py: command not found
    makefile:26: recipe for target 'matrix2py.so' failed
    make[1]: *** [matrix2py.so] Error 127
    make[1]: Leaving directory '/home/elri2440/Software/MG5_aMC_v2_6_6/output/ppTOC1N2/madspin_me/SubProcesses/P0_tx_bxwm_wm_n2x1m'
    makefile:13: recipe for target 'P0_tx_bxwm_wm_n2x1m/matrix2py.so' failed
    make: *** [P0_tx_bxwm_wm_n2x1m/matrix2py.so] Error 2
    /bin/bash: f2py: command not found
    makefile:26: recipe for target 'matrix2py.so' failed
    make[1]: *** [matrix2py.so] Error 127
    make[1]: Leaving directory '/home/elri2440/Software/MG5_aMC_v2_6_6/output/ppTOC1N2/madspin_me/SubProcesses/P2_z_x1px1m'
    makefile:9: recipe for target 'P2_z_x1px1m/matrix2py.so' failed
    make: *** [P2_z_x1px1m/matrix2py.so] Error 2

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 : 20 (user set)

                         MadEvent Options
                         ----------------
     automatic_html_opening : False (user set)
        notification_center : True
          cluster_temp_path : None
             cluster_memory : None (user set)
               cluster_size : 100
              cluster_queue : None (user set)
                    nb_core : 4 (user set)
               cluster_time : 4 (user set)
                   run_mode : 2

                      Configuration Options
                      ---------------------
                text_editor : None
         cluster_local_path : None
      cluster_status_update : (600, 30)
               pythia8_path : /home/elri2440/Software/MG5_aMC_v2_6_6/HEPTools/pythia8 (user set)
                  hwpp_path : None (user set)
            pythia-pgs_path : /home/elri2440/Software/MG5_aMC_v2_6_6/pythia-pgs (user set)
                    td_path : None (user set)
               delphes_path : /home/elri2440/Software/MG5_aMC_v2_6_6/Delphes (user set)
                thepeg_path : None (user set)
               cluster_type : condor
          madanalysis5_path : /home/elri2440/Software/MG5_aMC_v2_6_6/HEPTools/madanalysis5/madanalysis5 (user set)
           cluster_nb_retry : 1
                 eps_viewer : None
                web_browser : None
               syscalc_path : None (user set)
           madanalysis_path : None (user set)
                     lhapdf : /home/elri2440/Software/MG5_aMC_v2_6_6/HEPTools/lhapdf6/bin/lhapdf-config (user set)
              f2py_compiler : None
                 hepmc_path : None (user set)
         cluster_retry_wait : 300
           fortran_compiler : None
                auto_update : 7 (user set)
        exrootanalysis_path : /home/elri2440/Software/MG5_aMC_v2_6_6/ExRootAnalysis (user set)
                    timeout : 60
               cpp_compiler : None

Question information

Language:
English Edit question
Status:
Solved
For:
MadGraph5_aMC@NLO Edit question
Assignee:
No assignee Edit question
Solved by:
Olivier Mattelaer
Solved:
2019-10-30
Last query:
2019-10-30
Last reply:
2019-10-29

Looks like we do not find the f2py executable within the default path of the system.
You can specify it within the file input/mg5_configuration.txt

Cheers,

Olivier

> On 29 Oct 2019, at 15:52, Ellen <email address hidden> wrote:
>
> New question #685491 on MadGraph5_aMC@NLO:
> https://answers.launchpad.net/mg5amcnlo/+question/685491
>
> Hi!
>
> I am trying to use MadSpin on the process p p > x1+ n2, but I keep getting a compilation error in madspin. I am using the default model files and can't find the origin of this error. Could you help me?
> Below you can find the debug file.
> Please let me know if you need more information, the model files or anything else.
>
> Ellen
>
> #************************************************************
> #* MadGraph5_aMC@NLO/MadEvent *
> #* *
> #* * * *
> #* * * * * *
> #* * * * * 5 * * * * *
> #* * * * * *
> #* * * *
> #* *
> #* *
> #* VERSION 2.6.7 2019-10-16 *
> #* *
> #* The MadGraph5_aMC@NLO Development Team - Find us at *
> #* https://server06.fynu.ucl.ac.be/projects/madgraph *
> #* *
> #************************************************************
> #* *
> #* Command File for MadEvent *
> #* *
> #* run as ./bin/madevent.py filename *
> #* *
> #************************************************************
> generate_events run_01
> Traceback (most recent call last):
> File "/home/elri2440/Software/MG5_aMC_v2_6_6/madgraph/interface/extended_cmd.py", line 1514, in onecmd
> return self.onecmd_orig(line, **opt)
> File "/home/elri2440/Software/MG5_aMC_v2_6_6/madgraph/interface/extended_cmd.py", line 1463, in onecmd_orig
> return func(arg, **opt)
> File "/home/elri2440/Software/MG5_aMC_v2_6_6/madgraph/interface/madevent_interface.py", line 2469, in do_generate_events
> self.run_generate_events(switch_mode, args)
> File "/home/elri2440/Software/MG5_aMC_v2_6_6/madgraph/interface/common_run_interface.py", line 6961, in new_fct
> original_fct(obj, *args, **opts)
> File "/home/elri2440/Software/MG5_aMC_v2_6_6/madgraph/interface/madevent_interface.py", line 2566, in run_generate_events
> self.exec_cmd('decay_events -from_cards', postcmd=False)
> File "/home/elri2440/Software/MG5_aMC_v2_6_6/madgraph/interface/extended_cmd.py", line 1543, in exec_cmd
> stop = Cmd.onecmd_orig(current_interface, line, **opt)
> File "/home/elri2440/Software/MG5_aMC_v2_6_6/madgraph/interface/extended_cmd.py", line 1463, in onecmd_orig
> return func(arg, **opt)
> File "/home/elri2440/Software/MG5_aMC_v2_6_6/madgraph/interface/common_run_interface.py", line 3701, in do_decay_events
> madspin_cmd.import_command_file(path)
> File "/home/elri2440/Software/MG5_aMC_v2_6_6/madgraph/interface/extended_cmd.py", line 1660, in import_command_file
> self.exec_cmd(line, precmd=True)
> File "/home/elri2440/Software/MG5_aMC_v2_6_6/madgraph/interface/extended_cmd.py", line 1543, in exec_cmd
> stop = Cmd.onecmd_orig(current_interface, line, **opt)
> File "/home/elri2440/Software/MG5_aMC_v2_6_6/madgraph/interface/extended_cmd.py", line 1463, in onecmd_orig
> return func(arg, **opt)
> File "/home/elri2440/Software/MG5_aMC_v2_6_6/madgraph/various/misc.py", line 100, in f_with_no_logger
> out = f(self, *args, **opt)
> File "/home/elri2440/Software/MG5_aMC_v2_6_6/MadSpin/interface_madspin.py", line 576, in do_launch
> return self.run_onshell(line)
> File "/home/elri2440/Software/MG5_aMC_v2_6_6/MadSpin/interface_madspin.py", line 1421, in run_onshell
> self.options)
> File "/home/elri2440/Software/MG5_aMC_v2_6_6/MadSpin/decay.py", line 2063, in __init__
> self.compile()
> File "/home/elri2440/Software/MG5_aMC_v2_6_6/MadSpin/decay.py", line 4171, in compile
> nb_core=self.mgcmd.options['nb_core'])
> File "/home/elri2440/Software/MG5_aMC_v2_6_6/madgraph/various/misc.py", line 532, in compile
> raise MadGraph5Error, error_text
> MadGraph5Error: A compilation Error occurs when trying to compile /home/elri2440/Software/MG5_aMC_v2_6_6/output/ppTOC1N2/madspin_me/SubProcesses.
> The compilation fails with the following output message:
> cd P1_udx_x1pn2_63;make matrix2py.so
> cd P2_z_x1px1m;make matrix2py.so
> cd P1_wm_n3x2m;make matrix2py.so
> cd P0_tx_bxwm_wm_n2x1m;make matrix2py.so
> make[1]: warning: jobserver unavailable: using -j1. Add '+' to parent make rule.
> make[1]: warning: jobserver unavailable: using -j1. Add '+' to parent make rule.
> make[1]: warning: jobserver unavailable: using -j1. Add '+' to parent make rule.
> make[1]: warning: jobserver unavailable: using -j1. Add '+' to parent make rule.
> make[1]: Entering directory '/home/elri2440/Software/MG5_aMC_v2_6_6/output/ppTOC1N2/madspin_me/SubProcesses/P2_z_x1px1m'
> make[1]: Entering directory '/home/elri2440/Software/MG5_aMC_v2_6_6/output/ppTOC1N2/madspin_me/SubProcesses/P1_udx_x1pn2_63'
> make[1]: Entering directory '/home/elri2440/Software/MG5_aMC_v2_6_6/output/ppTOC1N2/madspin_me/SubProcesses/P1_wm_n3x2m'
> make[1]: Entering directory '/home/elri2440/Software/MG5_aMC_v2_6_6/output/ppTOC1N2/madspin_me/SubProcesses/P0_tx_bxwm_wm_n2x1m'
> touch __init__.py
> touch __init__.py
> touch __init__.py
> touch __init__.py
> f2py -L../../lib/ -ldhelas -lmodel -c matrix.f -m matrix2py --f77exec=gfortran
> f2py -L../../lib/ -ldhelas -lmodel -c matrix.f -m matrix2py --f77exec=gfortran
> f2py -L../../lib/ -ldhelas -lmodel -c matrix.f -m matrix2py --f77exec=gfortran
> /bin/bash: f2py: command not found
> makefile:26: recipe for target 'matrix2py.so' failed
> make[1]: *** [matrix2py.so] Error 127
> make[1]: Leaving directory '/home/elri2440/Software/MG5_aMC_v2_6_6/output/ppTOC1N2/madspin_me/SubProcesses/P1_wm_n3x2m'
> f2py -L../../lib/ -ldhelas -lmodel -c matrix.f -m matrix2py --f77exec=gfortran
> makefile:11: recipe for target 'P1_wm_n3x2m/matrix2py.so' failed
> make: *** [P1_wm_n3x2m/matrix2py.so] Error 2
> make: *** Waiting for unfinished jobs....
> /bin/bash: f2py: command not found
> makefile:26: recipe for target 'matrix2py.so' failed
> make[1]: *** [matrix2py.so] Error 127
> make[1]: Leaving directory '/home/elri2440/Software/MG5_aMC_v2_6_6/output/ppTOC1N2/madspin_me/SubProcesses/P1_udx_x1pn2_63'
> makefile:7: recipe for target 'P1_udx_x1pn2_63/matrix2py.so' failed
> make: *** [P1_udx_x1pn2_63/matrix2py.so] Error 2
> /bin/bash: f2py: command not found
> makefile:26: recipe for target 'matrix2py.so' failed
> make[1]: *** [matrix2py.so] Error 127
> make[1]: Leaving directory '/home/elri2440/Software/MG5_aMC_v2_6_6/output/ppTOC1N2/madspin_me/SubProcesses/P0_tx_bxwm_wm_n2x1m'
> makefile:13: recipe for target 'P0_tx_bxwm_wm_n2x1m/matrix2py.so' failed
> make: *** [P0_tx_bxwm_wm_n2x1m/matrix2py.so] Error 2
> /bin/bash: f2py: command not found
> makefile:26: recipe for target 'matrix2py.so' failed
> make[1]: *** [matrix2py.so] Error 127
> make[1]: Leaving directory '/home/elri2440/Software/MG5_aMC_v2_6_6/output/ppTOC1N2/madspin_me/SubProcesses/P2_z_x1px1m'
> makefile:9: recipe for target 'P2_z_x1px1m/matrix2py.so' failed
> make: *** [P2_z_x1px1m/matrix2py.so] Error 2
>
> 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 : 20 (user set)
>
> MadEvent Options
> ----------------
> automatic_html_opening : False (user set)
> notification_center : True
> cluster_temp_path : None
> cluster_memory : None (user set)
> cluster_size : 100
> cluster_queue : None (user set)
> nb_core : 4 (user set)
> cluster_time : 4 (user set)
> run_mode : 2
>
> Configuration Options
> ---------------------
> text_editor : None
> cluster_local_path : None
> cluster_status_update : (600, 30)
> pythia8_path : /home/elri2440/Software/MG5_aMC_v2_6_6/HEPTools/pythia8 (user set)
> hwpp_path : None (user set)
> pythia-pgs_path : /home/elri2440/Software/MG5_aMC_v2_6_6/pythia-pgs (user set)
> td_path : None (user set)
> delphes_path : /home/elri2440/Software/MG5_aMC_v2_6_6/Delphes (user set)
> thepeg_path : None (user set)
> cluster_type : condor
> madanalysis5_path : /home/elri2440/Software/MG5_aMC_v2_6_6/HEPTools/madanalysis5/madanalysis5 (user set)
> cluster_nb_retry : 1
> eps_viewer : None
> web_browser : None
> syscalc_path : None (user set)
> madanalysis_path : None (user set)
> lhapdf : /home/elri2440/Software/MG5_aMC_v2_6_6/HEPTools/lhapdf6/bin/lhapdf-config (user set)
> f2py_compiler : None
> hepmc_path : None (user set)
> cluster_retry_wait : 300
> fortran_compiler : None
> auto_update : 7 (user set)
> exrootanalysis_path : /home/elri2440/Software/MG5_aMC_v2_6_6/ExRootAnalysis (user set)
> timeout : 60
> cpp_compiler : None
>
> --
> You received this question notification because you are an answer
> contact for MadGraph5_aMC@NLO.

Ellen (ellenr) said : #2

That solved it, thanks so much!

Cheers,
Ellen

Ellen (ellenr) said : #3

Thanks Olivier Mattelaer, that solved my question.