Top width set to auto error for dileptonic ttbar decay at NLO

Asked by Aminul Hossain

Hi

I am getting the following error when I run the following commands:

generate p p > t t~ [QCD]

where in the Madspin card, I specify the decay as follows:

decay t > w+ b, w+ > l+ vl
decay t~ > w- b~, w- > l- vl~

Then I set the top width to auto resulting in the following error:

Command "launch auto " interrupted in sub-command:
"set nlo_mixed_expansion False" with error:
FileNotFoundError : [Errno 2] No such file or directory: '/afs/cern.ch/user/a/ahossain/MG5_aMC_v3_5_4/tmpxmwmp58x/temp_decay/bin/internal/ufomodel/param_card.dat'
Please report this bug on https://bugs.launchpad.net/mg5amcnlo
More information is found in 'MG5_debug'.
Please attach this file to your report.

The command "set nlo_mixed_expansion False" was initially true but it gave the same error so I set it to false. Similarly I gave the command "set decay all auto" but that also gave me the same error. There is no BSM BSM reweighing.

The bug report is attached below:

#************************************************************
#* MadGraph5_aMC@NLO *
#* *
#* * * *
#* * * * * *
#* * * * * 5 * * * * *
#* * * * * *
#* * * *
#* *
#* *
#* VERSION 3.5.4 2024-04-05 *
#* *
#* 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 low_mem_multicore_nlo_generation False
set complex_mass_scheme False
set include_lepton_initiated_processes False
set gauge unitary
set loop_optimized_output True
set loop_color_flows False
set max_npoint_for_channel 0
set default_unset_couplings 99
set max_t_for_channel 99
set zerowidth_tchannel True
set nlo_mixed_expansion False
Traceback (most recent call last):
  File "/afs/cern.ch/user/a/ahossain/MG5_aMC_v3_5_4/madgraph/interface/extended_cmd.py", line 1546, in onecmd
    return self.onecmd_orig(line, **opt)
  File "/afs/cern.ch/user/a/ahossain/MG5_aMC_v3_5_4/madgraph/interface/extended_cmd.py", line 1495, in onecmd_orig
    return func(arg, **opt)
  File "/afs/cern.ch/user/a/ahossain/MG5_aMC_v3_5_4/madgraph/interface/amcatnlo_run_interface.py", line 1768, in do_launch
    mode = self.ask_run_configuration(mode, options)
  File "/afs/cern.ch/user/a/ahossain/MG5_aMC_v3_5_4/madgraph/interface/amcatnlo_run_interface.py", line 5719, in ask_run_configuration
    self.ask_edit_cards(cards, plot=False, first_cmd=first_cmd, switch=switch)
  File "/afs/cern.ch/user/a/ahossain/MG5_aMC_v3_5_4/madgraph/interface/common_run_interface.py", line 1056, in ask_edit_cards
    self.ask_edit_card_static(cards, mode, plot, self.options['timeout'],
  File "/afs/cern.ch/user/a/ahossain/MG5_aMC_v3_5_4/madgraph/interface/common_run_interface.py", line 1128, in ask_edit_card_static
    out = ask(question, '0', possible_answer, timeout=int(1.5*timeout),
  File "/afs/cern.ch/user/a/ahossain/MG5_aMC_v3_5_4/madgraph/interface/extended_cmd.py", line 1151, in ask
    value = Cmd.timed_input(question, default, timeout=timeout,
  File "/afs/cern.ch/user/a/ahossain/MG5_aMC_v3_5_4/madgraph/interface/extended_cmd.py", line 1762, in timed_input
    result = fct(question)
  File "/afs/cern.ch/user/a/ahossain/MG5_aMC_v3_5_4/madgraph/interface/extended_cmd.py", line 2143, in __call__
    return self.cmdloop()
  File "/afs/cern.ch/user/a/ahossain/MG5_aMC_v3_5_4/madgraph/interface/extended_cmd.py", line 2314, in cmdloop
    super(SmartQuestion,self).cmdloop(intro)
  File "/afs/cern.ch/user/a/ahossain/MG5_aMC_v3_5_4/madgraph/interface/extended_cmd.py", line 178, in cmdloop
    stop = self.postcmd(stop, line)
  File "/afs/cern.ch/user/a/ahossain/MG5_aMC_v3_5_4/madgraph/interface/common_run_interface.py", line 6680, in postcmd
    self.do_update('dependent', timer=20)
  File "/afs/cern.ch/user/a/ahossain/MG5_aMC_v3_5_4/madgraph/interface/common_run_interface.py", line 6727, in do_update
    self.do_compute_widths('')
  File "/afs/cern.ch/user/a/ahossain/MG5_aMC_v3_5_4/madgraph/interface/common_run_interface.py", line 7178, in do_compute_widths
    out = self.mother_interface.do_compute_widths(line)
  File "/afs/cern.ch/user/a/ahossain/MG5_aMC_v3_5_4/madgraph/interface/common_run_interface.py", line 2396, in do_compute_widths
    out = cmd.exec_cmd(line, model=opts['model'])
  File "/afs/cern.ch/user/a/ahossain/MG5_aMC_v3_5_4/madgraph/interface/extended_cmd.py", line 1575, in exec_cmd
    stop = Cmd.onecmd_orig(current_interface, line, **opt)
  File "/afs/cern.ch/user/a/ahossain/MG5_aMC_v3_5_4/madgraph/interface/extended_cmd.py", line 1495, in onecmd_orig
    return func(arg, **opt)
  File "/afs/cern.ch/user/a/ahossain/MG5_aMC_v3_5_4/madgraph/interface/master_interface.py", line 346, in do_compute_widths
    return self.cmd.do_compute_widths(self, *args, **opts)
  File "/afs/cern.ch/user/a/ahossain/MG5_aMC_v3_5_4/madgraph/interface/madgraph_interface.py", line 8862, in do_compute_widths
    me_cmd.exec_cmd('survey decay -f %s' % (
  File "/afs/cern.ch/user/a/ahossain/MG5_aMC_v3_5_4/madgraph/interface/extended_cmd.py", line 1575, in exec_cmd
    stop = Cmd.onecmd_orig(current_interface, line, **opt)
  File "/afs/cern.ch/user/a/ahossain/MG5_aMC_v3_5_4/madgraph/interface/extended_cmd.py", line 1495, in onecmd_orig
    return func(arg, **opt)
  File "/afs/cern.ch/user/a/ahossain/MG5_aMC_v3_5_4/madgraph/interface/madevent_interface.py", line 3419, in do_survey
    self.configure_directory()
  File "/afs/cern.ch/user/a/ahossain/MG5_aMC_v3_5_4/madgraph/interface/madevent_interface.py", line 5992, in configure_directory
    self.do_treatcards('')
  File "/afs/cern.ch/user/a/ahossain/MG5_aMC_v3_5_4/madgraph/interface/madevent_interface.py", line 3188, in do_treatcards
    param_card.write_inc_file(outfile, ident_card, default, need_mp=need_mp)
  File "/afs/cern.ch/user/a/ahossain/MG5_aMC_v3_5_4/models/check_param_card.py", line 658, in write_inc_file
    defaultcard = ParamCard(default)
  File "/afs/cern.ch/user/a/ahossain/MG5_aMC_v3_5_4/models/check_param_card.py", line 339, in __init__
    self.read(input_path)
  File "/afs/cern.ch/user/a/ahossain/MG5_aMC_v3_5_4/models/check_param_card.py", line 348, in read
    input = open(input_path)
FileNotFoundError: [Errno 2] No such file or directory: '/afs/cern.ch/user/a/ahossain/MG5_aMC_v3_5_4/tmpxmwmp58x/temp_decay/bin/internal/ufomodel/param_card.dat'
Related File: /afs/cern.ch/user/a/ahossain/MG5_aMC_v3_5_4/tmpxmwmp58x/temp_decay/bin/internal/ufomodel/param_card.dat
                          MadGraph5_aMC@NLO Options
                          ----------------
                auto_update : 7 (user set)
        complex_mass_scheme : False
    default_unset_couplings : 99 (user set)
                      gauge : unitary
         group_subprocesses : Auto
  ignore_six_quark_processes : False
  include_lepton_initiated_processes : False
           loop_color_flows : False
      loop_optimized_output : True
  low_mem_multicore_nlo_generation : False
     max_npoint_for_channel : 0 (user set)
          max_t_for_channel : 99 (user set)
        nlo_mixed_expansion : False (user set)
               stdout_level : 20 (user set)
         zerowidth_tchannel : True

                         MadEvent Options
                          ----------------
     automatic_html_opening : False (user set)
                    nb_core : 10 (user set)
        notification_center : True
                   run_mode : 2

                      Configuration Options
                      ---------------------
                        OLP : MadLoop
   acknowledged_v3.1_syntax : False
         auto_convert_model : True
         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 : /afs/cern.ch/user/a/ahossain/MG5_aMC_v3_5_4/HEPTools/lib (user set)
                contur_path : None (user set)
               cpp_compiler : None
             crash_on_error : False
               delphes_path : None (user set)
                      eMELA : None (user set)
                 eps_viewer : None
        exrootanalysis_path : None (user set)
              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 : /afs/cern.ch/user/a/ahossain/MG5_aMC_v3_5_4/HEPTools/lhapdf6_py3/bin/lhapdf-config (user set)
                 lhapdf_py2 : None
                 lhapdf_py3 : None
          madanalysis5_path : /afs/cern.ch/user/a/ahossain/MG5_aMC_v3_5_4/HEPTools/madanalysis5/madanalysis5 (user set)
           madanalysis_path : /afs/cern.ch/user/a/ahossain/MG5_aMC_v3_5_4/MadAnalysis (user set)
  mg5amc_py8_interface_path : /afs/cern.ch/user/a/ahossain/MG5_aMC_v3_5_4/HEPTools/MG5aMC_PY8_interface (user set)
                      ninja : /afs/cern.ch/user/a/ahossain/MG5_aMC_v3_5_4/HEPTools/lib (user set)
        output_dependencies : external
                   pineappl : pineappl
            pythia-pgs_path : None (user set)
               pythia8_path : /afs/cern.ch/user/a/ahossain/MG5_aMC_v3_5_4/HEPTools/pythia8 (user set)
                 rivet_path : None (user set)
                    samurai : None
               syscalc_path : None (user set)
                    td_path : /afs/cern.ch/user/a/ahossain/MG5_aMC_v3_5_4/td (user set)
                text_editor : None
                thepeg_path : None (user set)
                    timeout : 60
                web_browser : None
                  yoda_path : None (user set)

Aminul

Question information

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

Hi,

Thanks, I do reproduce the error.
So far both with Python3.8 and Python3.12
and also with version 3.5.4 and 2.9.19 (which surprise me a lot).

So I'm investigating what the reason is, I will keep you in touch when I will have a patch (or a work around).

Cheers,

Olivier

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

Here is a patch:
https://github.com/mg5amcnlo/mg5amcnlo/commit/101306bbb8e2653f99403f182ce1ab9712681346

Looks like one file was not correctly upgraded to python3 and this was not spotted so far.

Thanks,

Olivier

Revision history for this message
Aminul Hossain (aminul-hossain9991) said :
#3

Hi

Thanks for the patch. I have naively copied the entire file and replaced it with the previous version in the loop_sm directory. This gives me the following error when running MadGraph using the command "./bin/mg5_aMC" :

Traceback (most recent call last):
  File "/afs/cern.ch/user/a/ahossain/MG5_aMC_v3_5_4/./bin/mg5_aMC", line 148, in <module>
    import madgraph.interface.master_interface as interface
  File "/afs/cern.ch/user/a/ahossain/MG5_aMC_v3_5_4/madgraph/interface/master_interface.py", line 44, in <module>
    import madgraph.interface.madgraph_interface as MGcmd
  File "/afs/cern.ch/user/a/ahossain/MG5_aMC_v3_5_4/madgraph/interface/madgraph_interface.py", line 71, in <module>
    import madgraph.iolibs.export_cpp as export_cpp
  File "/afs/cern.ch/user/a/ahossain/MG5_aMC_v3_5_4/madgraph/iolibs/export_cpp.py", line 43, in <module>
    from madgraph.iolibs.export_v4 import VirtualExporter
  File "/afs/cern.ch/user/a/ahossain/MG5_aMC_v3_5_4/madgraph/iolibs/export_v4.py", line 49, in <module>
    import madgraph.iolibs.group_subprocs as group_subprocs
  File "/afs/cern.ch/user/a/ahossain/MG5_aMC_v3_5_4/madgraph/iolibs/group_subprocs.py", line 46, in <module>
    import models.write_param_card as write_param_card
  File "/afs/cern.ch/user/a/ahossain/MG5_aMC_v3_5_4/models/write_param_card.py", line 15, in <module>
    from .function_library import *
ModuleNotFoundError: No module named 'models.function_library'

I am not sure if it is due to the fact that I copied the file straight. Should I have rather opened up the python file on the terminal and edit only the required parts and saved it. I have begun to reinstall MadGraph and doing it manually. If it is due to some other error then do let me know.

Aminul

Revision history for this message
Aminul Hossain (aminul-hossain9991) said :
#4

Hi

Please ignore my previous message, I had copied it into the wrong directory which caused the previous error. It has now been fixed and MadGraph is compiling without any errors.

Thank you, the patch works.

Aminul