launch doesn't work properly

Asked by Sanghwan KIm

Hi. I'm trying to follow the basic tutorial, proceeding by using model DM_simp_s_spin0, but at last step, command "launch my_output" doesn't work properly. Whenever i try to launch my tutorial and make some outputs, it suddenly stops working giving following error message. I'm posing MG5 debug file so you can figure out what's the matter.

#************************************************************
#* MadGraph5_aMC@NLO *
#* *
#* * * *
#* * * * * *
#* * * * * 5 * * * * *
#* * * * * *
#* * * *
#* *
#* *
#* VERSION 2.9.15 2023-05-12 *
#* *
#* The MadGraph5_aMC@NLO Development Team - Find us at *
#* https://server06.fynu.ucl.ac.be/projects/madgraph *
#* *
#************************************************************
#* *
#* Command File for MadGraph5_aMC@NLO *
#* *
#* run as ./bin/mg5_aMC filename *
#* *
#************************************************************
set group_subprocesses Auto
set ignore_six_quark_processes False
set max_t_for_channel 99
set loop_optimized_output True
set low_mem_multicore_nlo_generation False
set default_unset_couplings 99
set zerowidth_tchannel True
set loop_color_flows False
set gauge unitary
set complex_mass_scheme False
set max_npoint_for_channel 0
import model sm
define p = g u c d s u~ c~ d~ s~
define j = g u c d s u~ c~ d~ s~
define l+ = e+ mu+
define l- = e- mu-
define vl = ve vm vt
define vl~ = ve~ vm~ vt~
import model DMsimp_s_spin0
define p = 21 2 4 1 3 -2 -4 -1 -3 5 -5 # pass to 5 flavors
define j = p
define darkmatter xd
import model /Users/sanghwankim/Terminal/MG5/models/DMsimp_s_spin0__COMPLEX
define p = 21 2 4 1 3 -2 -4 -1 -3 # pass to 4 flavors
define j = p
generate relic_density
add direct_detection
add indirect_detection
output test1
launch test1/
Traceback (most recent call last):
  File "/Users/sanghwankim/Terminal/MG5/madgraph/interface/extended_cmd.py", line 1541, in onecmd
    return self.onecmd_orig(line, **opt)
  File "/Users/sanghwankim/Terminal/MG5/madgraph/interface/extended_cmd.py", line 1490, in onecmd_orig
    return func(arg, **opt)
  File "/Users/sanghwankim/Terminal/MG5/PLUGIN/maddm/maddm_interface.py", line 1190, in do_launch
    self._MDM.exec_cmd('launch ' + line.replace(args[1], ''))
  File "/Users/sanghwankim/Terminal/MG5/madgraph/interface/extended_cmd.py", line 1570, in exec_cmd
    stop = Cmd.onecmd_orig(current_interface, line, **opt)
  File "/Users/sanghwankim/Terminal/MG5/madgraph/interface/extended_cmd.py", line 1490, in onecmd_orig
    return func(arg, **opt)
  File "/Users/sanghwankim/Terminal/MG5/PLUGIN/maddm/maddm_run_interface.py", line 1739, in do_launch
    os.mkdir(pjoin(self.dir_path, 'output', self.run_name))
OSError: [Errno 2] No such file or directory: '/Users/sanghwankim/Terminal/MG5/bin/test1/output/run_01'
Related File: /Users/sanghwankim/Terminal/MG5/bin/test1/output/run_01
                          MadGraph5_aMC@NLO Options
                          ----------------
                auto_update : 7
        complex_mass_scheme : False
    default_unset_couplings : 99
                      gauge : unitary
         group_subprocesses : Auto
  ignore_six_quark_processes : False
           loop_color_flows : False
      loop_optimized_output : True
  low_mem_multicore_nlo_generation : False
     max_npoint_for_channel : 0
          max_t_for_channel : 99
               stdout_level : 20 (user set)
         zerowidth_tchannel : True

                         MadEvent Options
                          ----------------
     automatic_html_opening : True
                    nb_core : None
        notification_center : True
                   run_mode : 2

                      Configuration Options
                      ---------------------
                        OLP : MadLoop
                    amcfast : amcfast-config
                   applgrid : applgrid-config
         auto_convert_model : False
         cluster_local_path : None
           cluster_nb_retry : 1
              cluster_queue : None (user set)
         cluster_retry_wait : 300
               cluster_size : 100
      cluster_status_update : (600, 30)
          cluster_temp_path : None
               cluster_type : condor
                    collier : ./HEPTools/lib
               cpp_compiler : None
             crash_on_error : False
               delphes_path : ./Delphes
                dragon_path : /Users/sanghwankim/Terminal/MG5/HEPTools/dragon (user set)
                 eps_viewer : None
        exrootanalysis_path : ./ExRootAnalysis
              f2py_compiler : None
          f2py_compiler_py2 : None
          f2py_compiler_py3 : None
                    fastjet : None (user set)
           fortran_compiler : None
                      golem : None (user set)
                 hepmc_path : None (user set)
                  hwpp_path : None (user set)
                     lhapdf : /Users/sanghwankim/Terminal/MG5/HEPTools/lhapdf6/bin/lhapdf-config (user set)
                 lhapdf_py2 : /Users/sanghwankim/Terminal/MG5/HEPTools/lhapdf6/bin/lhapdf-config (user set)
                 lhapdf_py3 : None
          madanalysis5_path : None (user set)
           madanalysis_path : ./MadAnalysis
       maddm_first_indirect : False (user set)
  mg5amc_py8_interface_path : /Users/sanghwankim/Terminal/MG5/HEPTools/MG5aMC_PY8_interface (user set)
                      ninja : ./HEPTools/lib
        output_dependencies : external
             pppc4dmid_path : /Users/sanghwankim/Terminal/MG5/PPPC4DMID (user set)
            pythia-pgs_path : ./pythia-pgs
               pythia8_path : /Users/sanghwankim/Terminal/MG5/HEPTools/pythia8 (user set)
                    samurai : None
               syscalc_path : ./SysCalc
                    td_path : ./td
                text_editor : None
                thepeg_path : None (user set)
                    timeout : 60
                web_browser : None

Clearly, something's wrong with creating directory named output. Maybe the python code "os.mkdir(pjoin(self.dir_path, 'output', self.run_name))" is not creating directory named output properly? Thank you for your support.

P.s. I just tried the tutorial by making directory named output by my hand, and the calculations worked well(I'm not pretty sure the result is 100% correct but anyway calculation has been done).

Question information

Language:
English Edit question
Status:
Answered
For:
MadDM Edit question
Assignee:
Daniele Massaro Edit question
Last query:
Last reply:
Revision history for this message
Olivier Mattelaer (olivier-mattelaer) said :
#1

Hi,

So do I understand correctly that the issue is that the directory:
/Users/sanghwankim/Terminal/MG5/bin/test1/output
was not created?

When did you install maddm?
If this is less than 48h ago? Then the issue is likely related to our migration of control version system.
We just move to git and git has some issue with empty directory so this might be the reason. (I will check that anyway)

Thanks,

Olivier

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

Ok, this seems to be indeed what the problem is.

I have pushed the change within git, now let's wait 10h35 to see if the CI/CD will correctly propagate the new version on our server.
In theory at that time you should be able to redo "install maddm" and have that issue fix.

Thanks a lot for the report,

Olivier

Revision history for this message
Sanghwan KIm (sanghw) said :
#3

Hi. Thank you for your response. Now that the error mentioned on my original post is solved, but there's another error showed up. Error says :
--------------------------------------------------------------------------------------
Command "launch test" interrupted with error:
ImportError : No module named P1_xdxdx_y0y02py
Please report this bug on https://bugs.launchpad.net/mg5amcnlo
More information is found in 'MG5_debug'.
Please attach this file to your report.
------------------------------------------------------------------------------------------
Above message was on Linux.

Anyway, the error message popped on my Linux computer while performing the tutorial, gave me this Debug file :

#************************************************************
#* MadGraph5_aMC@NLO *
#* *
#* * * *
#* * * * * *
#* * * * * 5 * * * * *
#* * * * * *
#* * * *
#* *
#* *
#* VERSION 2.9.15 2023-05-12 *
#* *
#* The MadGraph5_aMC@NLO Development Team - Find us at *
#* https://server06.fynu.ucl.ac.be/projects/madgraph *
#* *
#************************************************************
#* *
#* Command File for MadGraph5_aMC@NLO *
#* *
#* run as ./bin/mg5_aMC filename *
#* *
#************************************************************
set group_subprocesses Auto
set ignore_six_quark_processes False
set max_t_for_channel 99
set loop_optimized_output True
set low_mem_multicore_nlo_generation False
set default_unset_couplings 99
set zerowidth_tchannel True
set loop_color_flows False
set gauge unitary
set complex_mass_scheme False
set max_npoint_for_channel 0
import model sm
define p = g u c d s u~ c~ d~ s~
define j = g u c d s u~ c~ d~ s~
define l+ = e+ mu+
define l- = e- mu-
define vl = ve vm vt
define vl~ = ve~ vm~ vt~
import model DMsimp_s_spin0
define p = 21 2 4 1 3 -2 -4 -1 -3 5 -5 # pass to 5 flavors
define j = p
define darkmatter xd
import model /home/sanghwan/Madgraph/MG5_aMC_v2_9_15/models/DMsimp_s_spin0__COMPLEX
define p = 21 2 4 1 3 -2 -4 -1 -3 # pass to 4 flavors
define j = p
generate relic_density
add indirect_detection
add direct_detection
output test
launch test
launch test
Traceback (most recent call last):
  File "/home/sanghwan/Madgraph/MG5_aMC_v2_9_15/madgraph/interface/extended_cmd.py", line 1541, in onecmd
    return self.onecmd_orig(line, **opt)
  File "/home/sanghwan/Madgraph/MG5_aMC_v2_9_15/madgraph/interface/extended_cmd.py", line 1490, in onecmd_orig
    return func(arg, **opt)
  File "/home/sanghwan/Madgraph/MG5_aMC_v2_9_15/PLUGIN/maddm/maddm_interface.py", line 1190, in do_launch
    self._MDM.exec_cmd('launch ' + line.replace(args[1], ''))
  File "/home/sanghwan/Madgraph/MG5_aMC_v2_9_15/madgraph/interface/extended_cmd.py", line 1570, in exec_cmd
    stop = Cmd.onecmd_orig(current_interface, line, **opt)
  File "/home/sanghwan/Madgraph/MG5_aMC_v2_9_15/madgraph/interface/extended_cmd.py", line 1490, in onecmd_orig
    return func(arg, **opt)
  File "/home/sanghwan/Madgraph/MG5_aMC_v2_9_15/PLUGIN/maddm/maddm_run_interface.py", line 1834, in do_launch
    self.launch_indirect(force, directory, self.maddm_card['vave_indirect_cont'])
  File "/home/sanghwan/Madgraph/MG5_aMC_v2_9_15/PLUGIN/maddm/maddm_run_interface.py", line 2107, in launch_indirect
    self.me_cmd.import_command_file(cmd)
  File "/home/sanghwan/Madgraph/MG5_aMC_v2_9_15/madgraph/interface/extended_cmd.py", line 1689, in import_command_file
    self.exec_cmd(line, precmd=True)
  File "/home/sanghwan/Madgraph/MG5_aMC_v2_9_15/madgraph/interface/extended_cmd.py", line 1570, in exec_cmd
    stop = Cmd.onecmd_orig(current_interface, line, **opt)
  File "/home/sanghwan/Madgraph/MG5_aMC_v2_9_15/madgraph/interface/extended_cmd.py", line 1490, in onecmd_orig
    return func(arg, **opt)
  File "/home/sanghwan/Madgraph/MG5_aMC_v2_9_15/madgraph/interface/madevent_interface.py", line 2677, in do_launch
    self.do_generate_events(line, *args, **opt)
  File "/home/sanghwan/Madgraph/MG5_aMC_v2_9_15/madgraph/interface/madevent_interface.py", line 2474, in do_generate_events
    self.run_generate_events(switch_mode, args)
  File "/home/sanghwan/Madgraph/MG5_aMC_v2_9_15/madgraph/interface/common_run_interface.py", line 7120, in new_fct
    original_fct(obj, *args, **opts)
  File "/home/sanghwan/Madgraph/MG5_aMC_v2_9_15/madgraph/interface/madevent_interface.py", line 2572, in run_generate_events
    self.exec_cmd('reweight -from_cards', postcmd=False)
  File "/home/sanghwan/Madgraph/MG5_aMC_v2_9_15/madgraph/interface/extended_cmd.py", line 1570, in exec_cmd
    stop = Cmd.onecmd_orig(current_interface, line, **opt)
  File "/home/sanghwan/Madgraph/MG5_aMC_v2_9_15/madgraph/interface/extended_cmd.py", line 1490, in onecmd_orig
    return func(arg, **opt)
  File "/home/sanghwan/Madgraph/MG5_aMC_v2_9_15/madgraph/interface/common_run_interface.py", line 2178, in do_reweight
    reweight_cmd.import_command_file(path)
  File "/home/sanghwan/Madgraph/MG5_aMC_v2_9_15/madgraph/interface/extended_cmd.py", line 1689, in import_command_file
    self.exec_cmd(line, precmd=True)
  File "/home/sanghwan/Madgraph/MG5_aMC_v2_9_15/madgraph/interface/extended_cmd.py", line 1570, in exec_cmd
    stop = Cmd.onecmd_orig(current_interface, line, **opt)
  File "/home/sanghwan/Madgraph/MG5_aMC_v2_9_15/madgraph/interface/extended_cmd.py", line 1490, in onecmd_orig
    return func(arg, **opt)
  File "/home/sanghwan/Madgraph/MG5_aMC_v2_9_15/madgraph/various/misc.py", line 110, in f_with_no_logger
    out = f(self, *args, **opt)
  File "/home/sanghwan/Madgraph/MG5_aMC_v2_9_15/madgraph/interface/reweight_interface.py", line 505, in do_launch
    self.load_module()
  File "/home/sanghwan/Madgraph/MG5_aMC_v2_9_15/madgraph/interface/reweight_interface.py", line 1849, in load_module
    mymod = __import__(mod_name, globals(), locals(), [],-1)
  File "/home/sanghwan/Madgraph/MG5_aMC_v2_9_15/bin/test/Indirect_tree_cont/rw_me/SubProcesses/allmatrix2py.py", line 4, in <module>
    from .P1_xdxdx_y0y02py import *
ImportError: No module named P1_xdxdx_y0y02py
                          MadGraph5_aMC@NLO Options
                          ----------------
                auto_update : 7
        complex_mass_scheme : False
    default_unset_couplings : 99
                      gauge : unitary
         group_subprocesses : Auto
  ignore_six_quark_processes : False
           loop_color_flows : False
      loop_optimized_output : True
  low_mem_multicore_nlo_generation : False
     max_npoint_for_channel : 0
          max_t_for_channel : 99
               stdout_level : 20 (user set)
         zerowidth_tchannel : True

                         MadEvent Options
                          ----------------
     automatic_html_opening : True
                    nb_core : None
        notification_center : True
                   run_mode : 2

                      Configuration Options
                      ---------------------
                        OLP : MadLoop
                    amcfast : amcfast-config
                   applgrid : applgrid-config
         auto_convert_model : False
         cluster_local_path : None
           cluster_nb_retry : 1
              cluster_queue : None (user set)
         cluster_retry_wait : 300
               cluster_size : 100
      cluster_status_update : (600, 30)
          cluster_temp_path : None
               cluster_type : condor
                    collier : ./HEPTools/lib
               cpp_compiler : None
             crash_on_error : False
               delphes_path : ./Delphes
                dragon_path : /home/sanghwan/Madgraph/MG5_aMC_v2_9_15/HEPTools/dragon (user set)
                 eps_viewer : None
        exrootanalysis_path : ./ExRootAnalysis
              f2py_compiler : None
          f2py_compiler_py2 : None
          f2py_compiler_py3 : None
                    fastjet : None (user set)
           fortran_compiler : None
                      golem : None (user set)
                 hepmc_path : None (user set)
                  hwpp_path : None (user set)
                     lhapdf : /home/sanghwan/Madgraph/MG5_aMC_v2_9_15/HEPTools/lhapdf6/bin/lhapdf-config (user set)
                 lhapdf_py2 : /home/sanghwan/Madgraph/MG5_aMC_v2_9_15/HEPTools/lhapdf6/bin/lhapdf-config (user set)
                 lhapdf_py3 : None
          madanalysis5_path : None (user set)
           madanalysis_path : ./MadAnalysis
       maddm_first_indirect : False (user set)
  mg5amc_py8_interface_path : /home/sanghwan/Madgraph/MG5_aMC_v2_9_15/HEPTools/MG5aMC_PY8_interface (user set)
                      ninja : ./HEPTools/lib
        output_dependencies : external
             pppc4dmid_path : /home/sanghwan/Madgraph/MG5_aMC_v2_9_15/PPPC4DMID (user set)
            pythia-pgs_path : ./pythia-pgs
               pythia8_path : /home/sanghwan/Madgraph/MG5_aMC_v2_9_15/HEPTools/pythia8 (user set)
                    samurai : None
               syscalc_path : ./SysCalc
                    td_path : ./td
                text_editor : None
                thepeg_path : None (user set)
                    timeout : 60
                web_browser : None

Revision history for this message
Daniele Massaro (dmassaro) said :
#4

Hello Sanghwan KIm,

The model you are using (DMsimp_s_spin0) does not work well with MadDM.
Try to use the same model suggested by the tutorial, which is DMsimp_s_spin0_MD.
The darkmatter candidate is called ~xd and I tried that right now on my system and it works.
I am using the latest MadDM version v3.2.13 along with MadGraph v2.9.10 (downloaded from bazaar).
Let me know if you have any other questions.

Cheers.
--
Daniele

Can you help with this problem?

Provide an answer of your own, or ask Sanghwan KIm for more information if necessary.

To post a message you must log in.