Unable to calculate indirect detection spectra in precise mode with MG5_2.9.12 and Maddm 3.2

Asked by Kasinath Das

Dear MadDM team,
    I am using MadDM version 3.2 with madgraph version 2.9.12. I am trying to calculate the indirect detection spectras in precise mode with the following commands.

import model MSSM_SLHA2
define darkmatter n1
add indirect_detection u u~ a
output Example_2
launch Example_2
set Mneu1 1100
set Msu1 1150

At this point, maddm shows me the option to switch the settings regarding shower/hadronization etc. After giving "1" as input it takes a long time and finally unable to give results. I am getting the following message.

Helicity recycling optimization requires Python3. This optimzation is therefore deactivated automatically.
            In general this optimization speed up the computation be a factor of two.
INFO: Computing sigmav with method: reshuffling
The following switches determine which programs are run:
/=============================================================================\
| 1. Choose the shower/hadronization program shower = OFF |
| 2. Choose the detector simulation program detector = Not Avail. |
| 3. Choose an analysis package (plot/convert) analysis = Not Avail. |
| 4. Decay onshell particles madspin = OFF |
| 5. Add weights to events for new hypp. reweight = OFF |
\=============================================================================/
Either type the switch number (1 to 5) to change its setting,
Set any switch explicitly (e.g. type 'shower=Pythia8' at the prompt)
Type 'help' for the list of all valid option
Type '0', 'auto', 'done' or just press enter when you are done.
1
INFO: Extracting the banner ...
quit
Command "launch Example_2" interrupted with error:
TypeError : argument of type 'NoneType' is not iterable
Please report this bug on https://bugs.launchpad.net/mg5amcnlo
More information is found in 'MG5_debug'.
Please attach this file to your report.

I am attaching the contents of MG5_debug file here.

#************************************************************
#* MadGraph5_aMC@NLO *
#* *
#* * * *
#* * * * * *
#* * * * * 5 * * * * *
#* * * * * *
#* * * *
#* *
#* *
#* VERSION 2.9.12 2022-08-17 *
#* *
#* 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_MD
define darkmatter ~xd
import model /home/iiserbpr/Softwares/MG5_aMC_v2.9.12/MG5_aMC_v2_9_12/models/DMsimp_s_spin0_MD__COMPLEX
add direct_detection
add indirect_detection
import model MSSM_SLHA2
define darkmatter n1
import model /home/iiserbpr/Softwares/MG5_aMC_v2.9.12/MG5_aMC_v2_9_12/models/MSSM_SLHA2__REAL
add indirect_detection u u~ a
output Example_2
launch Example_2
Traceback (most recent call last):
  File "/home/iiserbpr/Softwares/MG5_aMC_v2.9.12/MG5_aMC_v2_9_12/madgraph/interface/extended_cmd.py", line 1541, in onecmd
    return self.onecmd_orig(line, **opt)
  File "/home/iiserbpr/Softwares/MG5_aMC_v2.9.12/MG5_aMC_v2_9_12/madgraph/interface/extended_cmd.py", line 1490, in onecmd_orig
    return func(arg, **opt)
  File "/home/iiserbpr/Softwares/MG5_aMC_v2.9.12/MG5_aMC_v2_9_12/PLUGIN/maddm/maddm_interface.py", line 1124, in do_launch
    self._MDM.exec_cmd('launch ' + line.replace(args[1], ''))
  File "/home/iiserbpr/Softwares/MG5_aMC_v2.9.12/MG5_aMC_v2_9_12/madgraph/interface/extended_cmd.py", line 1570, in exec_cmd
    stop = Cmd.onecmd_orig(current_interface, line, **opt)
  File "/home/iiserbpr/Softwares/MG5_aMC_v2.9.12/MG5_aMC_v2_9_12/madgraph/interface/extended_cmd.py", line 1490, in onecmd_orig
    return func(arg, **opt)
  File "/home/iiserbpr/Softwares/MG5_aMC_v2.9.12/MG5_aMC_v2_9_12/PLUGIN/maddm/maddm_run_interface.py", line 1733, in do_launch
    self.launch_indirect(force, directory, self.maddm_card['vave_indirect_cont'])
  File "/home/iiserbpr/Softwares/MG5_aMC_v2.9.12/MG5_aMC_v2_9_12/PLUGIN/maddm/maddm_run_interface.py", line 2009, in launch_indirect
    self.me_cmd.import_command_file(cmd)
  File "/home/iiserbpr/Softwares/MG5_aMC_v2.9.12/MG5_aMC_v2_9_12/madgraph/interface/extended_cmd.py", line 1689, in import_command_file
    self.exec_cmd(line, precmd=True)
  File "/home/iiserbpr/Softwares/MG5_aMC_v2.9.12/MG5_aMC_v2_9_12/madgraph/interface/extended_cmd.py", line 1570, in exec_cmd
    stop = Cmd.onecmd_orig(current_interface, line, **opt)
  File "/home/iiserbpr/Softwares/MG5_aMC_v2.9.12/MG5_aMC_v2_9_12/madgraph/interface/extended_cmd.py", line 1490, in onecmd_orig
    return func(arg, **opt)
  File "/home/iiserbpr/Softwares/MG5_aMC_v2.9.12/MG5_aMC_v2_9_12/madgraph/interface/madevent_interface.py", line 2677, in do_launch
    self.do_generate_events(line, *args, **opt)
  File "/home/iiserbpr/Softwares/MG5_aMC_v2.9.12/MG5_aMC_v2_9_12/madgraph/interface/madevent_interface.py", line 2474, in do_generate_events
    self.run_generate_events(switch_mode, args)
  File "/home/iiserbpr/Softwares/MG5_aMC_v2.9.12/MG5_aMC_v2_9_12/madgraph/interface/common_run_interface.py", line 7120, in new_fct
    original_fct(obj, *args, **opts)
  File "/home/iiserbpr/Softwares/MG5_aMC_v2.9.12/MG5_aMC_v2_9_12/madgraph/interface/madevent_interface.py", line 2572, in run_generate_events
    self.exec_cmd('reweight -from_cards', postcmd=False)
  File "/home/iiserbpr/Softwares/MG5_aMC_v2.9.12/MG5_aMC_v2_9_12/madgraph/interface/extended_cmd.py", line 1570, in exec_cmd
    stop = Cmd.onecmd_orig(current_interface, line, **opt)
  File "/home/iiserbpr/Softwares/MG5_aMC_v2.9.12/MG5_aMC_v2_9_12/madgraph/interface/extended_cmd.py", line 1490, in onecmd_orig
    return func(arg, **opt)
  File "/home/iiserbpr/Softwares/MG5_aMC_v2.9.12/MG5_aMC_v2_9_12/madgraph/interface/common_run_interface.py", line 2165, in do_reweight
    reweight_cmd = rwgt_interface(args[0], mother=self)
  File "/home/iiserbpr/Softwares/MG5_aMC_v2.9.12/MG5_aMC_v2_9_12/PLUGIN/maddm/MGoutput.py", line 973, in __init__
    super(Indirect_Reweight, self).__init__(*args, **opts)
  File "/home/iiserbpr/Softwares/MG5_aMC_v2.9.12/MG5_aMC_v2_9_12/madgraph/various/misc.py", line 109, in f_with_no_logger
    out = f(self, *args, **opt)
  File "/home/iiserbpr/Softwares/MG5_aMC_v2.9.12/MG5_aMC_v2_9_12/madgraph/interface/reweight_interface.py", line 123, in __init__
    self.do_import(event_path, allow_madspin=allow_madspin)
  File "/home/iiserbpr/Softwares/MG5_aMC_v2.9.12/MG5_aMC_v2_9_12/madgraph/interface/reweight_interface.py", line 195, in do_import
    if '[' in process and isinstance(self.banner.get('run_card'), banner.RunCardNLO):
TypeError: argument of type 'NoneType' is not iterable
                          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/iiserbpr/Softwares/MG5_aMC_v2.9.12/MG5_aMC_v2_9_12/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 : lhapdf-config
                 lhapdf_py2 : None
                 lhapdf_py3 : /home/iiserbpr/Softwares/MG5_aMC_v2.9.12/MG5_aMC_v2_9_12/HEPTools/lhapdf6_py3/bin/lhapdf-config (user set)
          madanalysis5_path : None (user set)
           madanalysis_path : ./MadAnalysis
       maddm_first_indirect : False (user set)
  mg5amc_py8_interface_path : /home/iiserbpr/Softwares/MG5_aMC_v2.9.12/MG5_aMC_v2_9_12/HEPTools/MG5aMC_PY8_interface (user set)
                      ninja : ./HEPTools/lib
        output_dependencies : external
             pppc4dmid_path : /home/iiserbpr/Softwares/MG5_aMC_v2.9.12/MG5_aMC_v2_9_12/PPPC4DMID (user set)
            pythia-pgs_path : ./pythia-pgs
               pythia8_path : /home/iiserbpr/Softwares/MG5_aMC_v2.9.12/MG5_aMC_v2_9_12/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

Please help me in resolving this issue.
With regards,
Kasinath Das

Question information

Language:
English Edit question
Status:
Answered
For:
MadDM Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Daniele Massaro (dmassaro) said :
#1

Hi Kasinath Das,

I tried to run the process in MadDM v3.2.4 (the latest one which is automatically installed when running the command 'install maddm' inside the MadGraph prompt) and MadGraph 2.9.12 and everything works fine.
Notice that in order to compute the spectra you need to set 'indirect = flux_source' in the same prompt you are also setting the masses.
The other prompt you mentioned you press 1 is just a log of the program and not a real prompt.
The computation takes a while but goes through.

Cheers.
--
Daniele Massaro

Can you help with this problem?

Provide an answer of your own, or ask Kasinath Das for more information if necessary.

To post a message you must log in.