Reweight pilotrun AssertionError

Asked by Riccardo on 2021-01-06

Dear experts,

I am using MG5 v2.6.5 together with SMEFTsim_A_U35_MwScheme_UFO_v3_1 model and I am trying to generate a Vector Boson Scattering (VBS) process through the following proc_card:

set group_subprocesses Auto
set ignore_six_quark_processes False
set loop_optimized_output True
set complex_mass_scheme False
define p = g u c d s b u~ c~ d~ s~ b~
define j = p
define l+ = e+ mu+ ta+
define l- = e- mu- ta-
define vl = ve vm vt
define vl~ = ve~ vm~ vt~
import model SMEFTsim_A_U35_MwScheme_UFO_v3_2-cHbox_cHDD_massless
generate p p > z w- j j QCD=0 SMHLOOP=0 NP=1, z > l+ l- NP=1, w- > j j NP=1 @0 NP=1
output ZWm_cHbox_cHDD_SM_LI_QU_IN

and by using additional customizecards and reweight_card. During the reweighting step I get this error:

Command "reweight pilotrun" interrupted with error:
AssertionError :
Please report this bug on https://bugs.launchpad.net/mg5amcnlo
More information is found in '/home/public/genproductions/bin/MadGraph5_aMCatNLO/ZWm_cHbox_cHDD_SM_LI_QU_IN/ZWm_cHbox_cHDD_SM_LI_QU_IN_gridpack/work/process/madevent/pilotrun_tag_2_debug.log'.
Please attach this file to your report.

Here is the debug file (I have included the error part only, let me know if you need more details):

reweight pilotrun
Traceback (most recent call last):
  File "/home/public/genproductions/bin/MadGraph5_aMCatNLO/ZWm_cHbox_cHDD_SM_LI_QU_IN/ZWm_cHbox_cHDD_SM_LI_QU_IN_gridpack/work/process/madevent/bin/internal/extended_cmd.py", line 1514, in onecmd
    return self.onecmd_orig(line, **opt)
  File "/home/public/genproductions/bin/MadGraph5_aMCatNLO/ZWm_cHbox_cHDD_SM_LI_QU_IN/ZWm_cHbox_cHDD_SM_LI_QU_IN_gridpack/work/process/madevent/bin/internal/extended_cmd.py", line 1463, in onecmd_orig
    return func(arg, **opt)
  File "/home/public/genproductions/bin/MadGraph5_aMCatNLO/ZWm_cHbox_cHDD_SM_LI_QU_IN/ZWm_cHbox_cHDD_SM_LI_QU_IN_gridpack/work/process/madevent/bin/internal/common_run_interface.py", line 2142, in do_reweight
    reweight_cmd.import_command_file(path)
  File "/home/public/genproductions/bin/MadGraph5_aMCatNLO/ZWm_cHbox_cHDD_SM_LI_QU_IN/ZWm_cHbox_cHDD_SM_LI_QU_IN_gridpack/work/MG5_aMC_v2_6_5/madgraph/interface/extended_cmd.py", line 1660, in import_command_file
    self.exec_cmd(line, precmd=True)
  File "/home/public/genproductions/bin/MadGraph5_aMCatNLO/ZWm_cHbox_cHDD_SM_LI_QU_IN/ZWm_cHbox_cHDD_SM_LI_QU_IN_gridpack/work/MG5_aMC_v2_6_5/madgraph/interface/extended_cmd.py", line 1543, in exec_cmd
    stop = Cmd.onecmd_orig(current_interface, line, **opt)
  File "/home/public/genproductions/bin/MadGraph5_aMCatNLO/ZWm_cHbox_cHDD_SM_LI_QU_IN/ZWm_cHbox_cHDD_SM_LI_QU_IN_gridpack/work/MG5_aMC_v2_6_5/madgraph/interface/extended_cmd.py", line 1463, in onecmd_orig
    return func(arg, **opt)
  File "/home/public/genproductions/bin/MadGraph5_aMCatNLO/ZWm_cHbox_cHDD_SM_LI_QU_IN/ZWm_cHbox_cHDD_SM_LI_QU_IN_gridpack/work/MG5_aMC_v2_6_5/madgraph/various/misc.py", line 100, in f_with_no_logger
    out = f(self, *args, **opt)
  File "/home/public/genproductions/bin/MadGraph5_aMCatNLO/ZWm_cHbox_cHDD_SM_LI_QU_IN/ZWm_cHbox_cHDD_SM_LI_QU_IN_gridpack/work/MG5_aMC_v2_6_5/madgraph/interface/reweight_interface.py", line 487, in do_launch
    self.create_standalone_directory()
  File "/home/public/genproductions/bin/MadGraph5_aMCatNLO/ZWm_cHbox_cHDD_SM_LI_QU_IN/ZWm_cHbox_cHDD_SM_LI_QU_IN_gridpack/work/MG5_aMC_v2_6_5/madgraph/various/misc.py", line 100, in f_with_no_logger
    out = f(self, *args, **opt)
  File "/home/public/genproductions/bin/MadGraph5_aMCatNLO/ZWm_cHbox_cHDD_SM_LI_QU_IN/ZWm_cHbox_cHDD_SM_LI_QU_IN_gridpack/work/MG5_aMC_v2_6_5/madgraph/interface/reweight_interface.py", line 1585, in create_standalone_directory
    has_nlo = self.create_standalone_tree_directory(data, second)
  File "/home/public/genproductions/bin/MadGraph5_aMCatNLO/ZWm_cHbox_cHDD_SM_LI_QU_IN/ZWm_cHbox_cHDD_SM_LI_QU_IN_gridpack/work/MG5_aMC_v2_6_5/madgraph/various/misc.py", line 100, in f_with_no_logger
    out = f(self, *args, **opt)
  File "/home/public/genproductions/bin/MadGraph5_aMCatNLO/ZWm_cHbox_cHDD_SM_LI_QU_IN/ZWm_cHbox_cHDD_SM_LI_QU_IN_gridpack/work/MG5_aMC_v2_6_5/madgraph/interface/reweight_interface.py", line 1314, in create_standalone_tree_directory
    mgcmd.exec_cmd(commandline, precmd=True)
  File "/home/public/genproductions/bin/MadGraph5_aMCatNLO/ZWm_cHbox_cHDD_SM_LI_QU_IN/ZWm_cHbox_cHDD_SM_LI_QU_IN_gridpack/work/MG5_aMC_v2_6_5/madgraph/interface/extended_cmd.py", line 1543, in exec_cmd
    stop = Cmd.onecmd_orig(current_interface, line, **opt)
  File "/home/public/genproductions/bin/MadGraph5_aMCatNLO/ZWm_cHbox_cHDD_SM_LI_QU_IN/ZWm_cHbox_cHDD_SM_LI_QU_IN_gridpack/work/MG5_aMC_v2_6_5/madgraph/interface/extended_cmd.py", line 1463, in onecmd_orig
    return func(arg, **opt)
  File "/home/public/genproductions/bin/MadGraph5_aMCatNLO/ZWm_cHbox_cHDD_SM_LI_QU_IN/ZWm_cHbox_cHDD_SM_LI_QU_IN_gridpack/work/MG5_aMC_v2_6_5/madgraph/interface/master_interface.py", line 292, in do_output
    self.cmd.do_output(self, line, *args, **opts)
  File "/home/public/genproductions/bin/MadGraph5_aMCatNLO/ZWm_cHbox_cHDD_SM_LI_QU_IN/ZWm_cHbox_cHDD_SM_LI_QU_IN_gridpack/work/MG5_aMC_v2_6_5/madgraph/interface/madgraph_interface.py", line 7660, in do_output
    self.export(nojpeg, main_file_name, group_processes, args)
  File "/home/public/genproductions/bin/MadGraph5_aMCatNLO/ZWm_cHbox_cHDD_SM_LI_QU_IN/ZWm_cHbox_cHDD_SM_LI_QU_IN_gridpack/work/MG5_aMC_v2_6_5/madgraph/interface/master_interface.py", line 306, in export
    return self.cmd.export(self, *args, **opts)
  File "/home/public/genproductions/bin/MadGraph5_aMCatNLO/ZWm_cHbox_cHDD_SM_LI_QU_IN/ZWm_cHbox_cHDD_SM_LI_QU_IN_gridpack/work/MG5_aMC_v2_6_5/madgraph/interface/madgraph_interface.py", line 7870, in export
    me, self._curr_helas_model, nb)
  File "/home/public/genproductions/bin/MadGraph5_aMCatNLO/ZWm_cHbox_cHDD_SM_LI_QU_IN/ZWm_cHbox_cHDD_SM_LI_QU_IN_gridpack/work/MG5_aMC_v2_6_5/madgraph/iolibs/export_v4.py", line 2269, in generate_subprocess_directory
    proc_prefix=proc_prefix)
  File "/home/public/genproductions/bin/MadGraph5_aMCatNLO/ZWm_cHbox_cHDD_SM_LI_QU_IN/ZWm_cHbox_cHDD_SM_LI_QU_IN_gridpack/work/MG5_aMC_v2_6_5/madgraph/iolibs/export_v4.py", line 2391, in write_matrix_element_v4
    matrix_element)
  File "/home/public/genproductions/bin/MadGraph5_aMCatNLO/ZWm_cHbox_cHDD_SM_LI_QU_IN/ZWm_cHbox_cHDD_SM_LI_QU_IN_gridpack/work/MG5_aMC_v2_6_5/madgraph/iolibs/helas_call_writers.py", line 230, in get_matrix_element_calls
    matrix_element.reuse_outdated_wavefunctions(me)
  File "/home/public/genproductions/bin/MadGraph5_aMCatNLO/ZWm_cHbox_cHDD_SM_LI_QU_IN/ZWm_cHbox_cHDD_SM_LI_QU_IN_gridpack/work/MG5_aMC_v2_6_5/madgraph/core/helas_objects.py", line 3736, in reuse_outdated_wavefunctions
    assert wfin.get('number') in first.values()
AssertionError
                              Run Options
                              -----------
               stdout_level : None

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

                      Configuration Options
                      ---------------------
                text_editor : None
         cluster_local_path : /cvmfs/cms.cern.ch/slc6_amd64_gcc630/external/lhapdf/6.2.1-ghjeda2/share/LHAPDF (user set)
      cluster_status_update : (600, 30)
               pythia8_path : None (user set)
                  hwpp_path : None (user set)
            pythia-pgs_path : None (user set)
                    td_path : None (user set)
               delphes_path : None (user set)
                thepeg_path : None (user set)
               cluster_type : condor
          madanalysis5_path : None (user set)
           cluster_nb_retry : 1
                 eps_viewer : None
                web_browser : None
               syscalc_path : None (user set)
           madanalysis_path : None (user set)
                     lhapdf : /cvmfs/cms.cern.ch/slc6_amd64_gcc630/external/lhapdf/6.2.1-ghjeda2/share/LHAPDF/../../bin/lhapdf-config (user set)
              f2py_compiler : None
                 hepmc_path : None (user set)
         cluster_retry_wait : 300
           fortran_compiler : None
                auto_update : 0 (user set)
        exrootanalysis_path : None (user set)
                    timeout : 60
               cpp_compiler : None

I made some additional attempts:
1) generate a simpler process
2) generate the same process described above, but decaying vector bosons in Madspin
Both 1) and 2) reweighting steps succeded, but I would be very grateful if I could manage to generate the VBS process without Madspin, in order to include possible "New Physics" vertices both in bosons production and decay.

Thanks for your support.

Kind regards,

Riccardo

Question information

Language:
English Edit question
Status:
Solved
For:
MadGraph5_aMC@NLO Edit question
Assignee:
No assignee Edit question
Solved by:
Olivier Mattelaer
Solved:
2021-01-07
Last query:
2021-01-07
Last reply:
2021-01-07

hi,

- What is customize_card? Are you using a plugin version of MG5aMC, we do not have such cards in MG5aMC.
If you are using a plugin, could you contact the author of such plugin or try without such plugin?

- Your model is unknow from MG5aMC, could you put a link to the associate tarball?

- Did you try with 2.8.2? 2.6.5 is very old and that your issue might have been fixed in the meantime.

Cheers,

Olivier

Riccardo (ricbrs) said : #2

Dear Olivier,

- The "customizecards" just set the default value for frblock parameters, so the ones used to compute the nominal weights.

- You can find the model " SMEFTsim_A_U35_MwScheme_UFO_v3_1.tar.gz" here: https://cms-project-generators.web.cern.ch/cms-project-generators/
(I renamed it "_v3_2" just because I downloaded it and added some restrict_cards)

- I am going to try with another version, but if there is a way to let 2.6.5 properly work, it would be better.

Cheers,

Riccardo

Ok thanks,

I was succesfull to reproduce the error within our development version.
So I should be able to provide a patch for the lastest version.
Providing a patch compatible with 2.6.5 is quite unlikely since it diverge that much from the current version and sounds a quite deep issue.

Cheers,

Olivier

> On 6 Jan 2021, at 16:15, Riccardo <email address hidden> wrote:
>
> Question #694807 on MadGraph5_aMC@NLO changed:
> https://answers.launchpad.net/mg5amcnlo/+question/694807
>
> Status: Answered => Open
>
> Riccardo is still having a problem:
> Dear Olivier,
>
> - The "customizecards" just set the default value for frblock
> parameters, so the ones used to compute the nominal weights.
>
> - You can find the model " SMEFTsim_A_U35_MwScheme_UFO_v3_1.tar.gz" here: https://cms-project-generators.web.cern.ch/cms-project-generators/
> (I renamed it "_v3_2" just because I downloaded it and added some restrict_cards)
>
> - I am going to try with another version, but if there is a way to let
> 2.6.5 properly work, it would be better.
>
> Cheers,
>
> Riccardo
>
> --
> You received this question notification because you are an answer
> contact for MadGraph5_aMC@NLO.

Here is the patch:
https://bazaar.launchpad.net/~maddevelopers/mg5amcnlo/2.8.3.py2/revision/304

I guess that this should also work for 2.6.5 but I did not test.

Cheers,

Olivier

PS: Note that re-weighting is know to not work with such syntax (overall coupling order).
This is set to be fixed in the next version of the code.

Riccardo (ricbrs) said : #5

Dear Olivier,

I replaced the "old" helas_objects.py with the new one you provided, but now I have this error:

Command "import /home/public/genproductions/bin/MadGraph5_aMCatNLO/ZWm_cHbox_cHDD_SM_LI_QU_IN/ZWm_cHbox_cHDD_SM_LI_QU_IN_gridpack/work/ZWm_cHbox_cHDD_SM_LI_QU_IN_proc_card.dat" interrupted in sub-command:
"output ZWm_cHbox_cHDD_SM_LI_QU_IN" with error:
PhysicsObjectError : polarization is not a valid property for this object: Leg

     Valid property are ['number', 'onshell', 'state', 'from_group', 'loop_line', 'id']
Please report this bug on https://bugs.launchpad.net/mg5amcnlo
More information is found in 'MG5_debug'.
Please attach this file to your report.

Below you can find the MG5_debug.

#************************************************************
#* MadGraph5_aMC@NLO *
#* *
#* * * *
#* * * * * *
#* * * * * 5 * * * * *
#* * * * * *
#* * * *
#* *
#* *
#* VERSION 2.6.5 2018-02-03 *
#* *
#* 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 default_unset_couplings 99
set loop_color_flows False
set gauge unitary
set max_npoint_for_channel 0
set group_subprocesses Auto
set ignore_six_quark_processes False
set loop_optimized_output True
set complex_mass_scheme False
define p = g u c d s b u~ c~ d~ s~ b~
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 p = g u c d s b u~ c~ d~ s~ b~
define j = p
define l+ = e+ mu+ ta+
define l- = e- mu- ta-
define vl = ve vm vt
define vl~ = ve~ vm~ vt~
import model SMEFTsim_A_U35_MwScheme_UFO_v3_2-cHbox_cHDD_massless
define p = 21 2 4 1 3 -2 -4 -1 -3 # pass to 4 flavors
define j = p
generate p p > z w- j j QCD=0 SMHLOOP=0 NP=1, z > l+ l- NP=1, w- > j j NP=1 @0 NP=1
output ZWm_cHbox_cHDD_SM_LI_QU_IN
Traceback (most recent call last):
  File "/home/public/genproductions/bin/MadGraph5_aMCatNLO/ZWm_cHbox_cHDD_SM_LI_QU_IN/ZWm_cHbox_cHDD_SM_LI_QU_IN_gridpack/work/MG5_aMC_v2_6_5/madgraph/interface/extended_cmd.py", line 1514, in onecmd
    return self.onecmd_orig(line, **opt)
  File "/home/public/genproductions/bin/MadGraph5_aMCatNLO/ZWm_cHbox_cHDD_SM_LI_QU_IN/ZWm_cHbox_cHDD_SM_LI_QU_IN_gridpack/work/MG5_aMC_v2_6_5/madgraph/interface/extended_cmd.py", line 1463, in onecmd_orig
    return func(arg, **opt)
  File "/home/public/genproductions/bin/MadGraph5_aMCatNLO/ZWm_cHbox_cHDD_SM_LI_QU_IN/ZWm_cHbox_cHDD_SM_LI_QU_IN_gridpack/work/MG5_aMC_v2_6_5/madgraph/interface/master_interface.py", line 274, in do_import
    self.cmd.do_import(self, *args, **opts)
  File "/home/public/genproductions/bin/MadGraph5_aMCatNLO/ZWm_cHbox_cHDD_SM_LI_QU_IN/ZWm_cHbox_cHDD_SM_LI_QU_IN_gridpack/work/MG5_aMC_v2_6_5/madgraph/interface/madgraph_interface.py", line 5273, in do_import
    self.import_command_file(args[1])
  File "/home/public/genproductions/bin/MadGraph5_aMCatNLO/ZWm_cHbox_cHDD_SM_LI_QU_IN/ZWm_cHbox_cHDD_SM_LI_QU_IN_gridpack/work/MG5_aMC_v2_6_5/madgraph/interface/extended_cmd.py", line 1660, in import_command_file
    self.exec_cmd(line, precmd=True)
  File "/home/public/genproductions/bin/MadGraph5_aMCatNLO/ZWm_cHbox_cHDD_SM_LI_QU_IN/ZWm_cHbox_cHDD_SM_LI_QU_IN_gridpack/work/MG5_aMC_v2_6_5/madgraph/interface/extended_cmd.py", line 1543, in exec_cmd
    stop = Cmd.onecmd_orig(current_interface, line, **opt)
  File "/home/public/genproductions/bin/MadGraph5_aMCatNLO/ZWm_cHbox_cHDD_SM_LI_QU_IN/ZWm_cHbox_cHDD_SM_LI_QU_IN_gridpack/work/MG5_aMC_v2_6_5/madgraph/interface/extended_cmd.py", line 1463, in onecmd_orig
    return func(arg, **opt)
  File "/home/public/genproductions/bin/MadGraph5_aMCatNLO/ZWm_cHbox_cHDD_SM_LI_QU_IN/ZWm_cHbox_cHDD_SM_LI_QU_IN_gridpack/work/MG5_aMC_v2_6_5/madgraph/interface/master_interface.py", line 292, in do_output
    self.cmd.do_output(self, line, *args, **opts)
  File "/home/public/genproductions/bin/MadGraph5_aMCatNLO/ZWm_cHbox_cHDD_SM_LI_QU_IN/ZWm_cHbox_cHDD_SM_LI_QU_IN_gridpack/work/MG5_aMC_v2_6_5/madgraph/interface/madgraph_interface.py", line 7660, in do_output
    self.export(nojpeg, main_file_name, group_processes, args)
  File "/home/public/genproductions/bin/MadGraph5_aMCatNLO/ZWm_cHbox_cHDD_SM_LI_QU_IN/ZWm_cHbox_cHDD_SM_LI_QU_IN_gridpack/work/MG5_aMC_v2_6_5/madgraph/interface/master_interface.py", line 306, in export
    return self.cmd.export(self, *args, **opts)
  File "/home/public/genproductions/bin/MadGraph5_aMCatNLO/ZWm_cHbox_cHDD_SM_LI_QU_IN/ZWm_cHbox_cHDD_SM_LI_QU_IN_gridpack/work/MG5_aMC_v2_6_5/madgraph/interface/madgraph_interface.py", line 7786, in export
    ndiags, cpu_time = generate_matrix_elements(self,group_processes)
  File "/home/public/genproductions/bin/MadGraph5_aMCatNLO/ZWm_cHbox_cHDD_SM_LI_QU_IN/ZWm_cHbox_cHDD_SM_LI_QU_IN_gridpack/work/MG5_aMC_v2_6_5/madgraph/interface/madgraph_interface.py", line 7738, in generate_matrix_elements
    subproc_groups.extend(dc_subproc_group.\
  File "/home/public/genproductions/bin/MadGraph5_aMCatNLO/ZWm_cHbox_cHDD_SM_LI_QU_IN/ZWm_cHbox_cHDD_SM_LI_QU_IN_gridpack/work/MG5_aMC_v2_6_5/madgraph/iolibs/group_subprocs.py", line 597, in generate_helas_decay_chain_subproc_groups
    self.get('decay_chain_amplitudes')))
  File "/home/public/genproductions/bin/MadGraph5_aMCatNLO/ZWm_cHbox_cHDD_SM_LI_QU_IN/ZWm_cHbox_cHDD_SM_LI_QU_IN_gridpack/work/MG5_aMC_v2_6_5/madgraph/core/helas_objects.py", line 5856, in generate_matrix_elements
    tmp_matrix_element_list = HelasDecayChainProcess(amplitude).\
  File "/home/public/genproductions/bin/MadGraph5_aMCatNLO/ZWm_cHbox_cHDD_SM_LI_QU_IN/ZWm_cHbox_cHDD_SM_LI_QU_IN_gridpack/work/MG5_aMC_v2_6_5/madgraph/core/helas_objects.py", line 5377, in __init__
    self.generate_matrix_elements(argument)
  File "/home/public/genproductions/bin/MadGraph5_aMCatNLO/ZWm_cHbox_cHDD_SM_LI_QU_IN/ZWm_cHbox_cHDD_SM_LI_QU_IN_gridpack/work/MG5_aMC_v2_6_5/madgraph/core/helas_objects.py", line 5415, in generate_matrix_elements
    decay_ids)
  File "/home/public/genproductions/bin/MadGraph5_aMCatNLO/ZWm_cHbox_cHDD_SM_LI_QU_IN/ZWm_cHbox_cHDD_SM_LI_QU_IN_gridpack/work/MG5_aMC_v2_6_5/madgraph/core/helas_objects.py", line 5921, in generate_matrix_elements
    **matrix_element_opts)]
  File "/home/public/genproductions/bin/MadGraph5_aMCatNLO/ZWm_cHbox_cHDD_SM_LI_QU_IN/ZWm_cHbox_cHDD_SM_LI_QU_IN_gridpack/work/MG5_aMC_v2_6_5/madgraph/core/helas_objects.py", line 3511, in __init__
    self.generate_helas_diagrams(amplitude, optimization, decay_ids)
  File "/home/public/genproductions/bin/MadGraph5_aMCatNLO/ZWm_cHbox_cHDD_SM_LI_QU_IN/ZWm_cHbox_cHDD_SM_LI_QU_IN_gridpack/work/MG5_aMC_v2_6_5/madgraph/core/helas_objects.py", line 3603, in generate_helas_diagrams
    for leg in process.get('legs')])
  File "/home/public/genproductions/bin/MadGraph5_aMCatNLO/ZWm_cHbox_cHDD_SM_LI_QU_IN/ZWm_cHbox_cHDD_SM_LI_QU_IN_gridpack/work/MG5_aMC_v2_6_5/madgraph/core/helas_objects.py", line 683, in __init__
    if 99 in leg.get('polarization'):
  File "/home/public/genproductions/bin/MadGraph5_aMCatNLO/ZWm_cHbox_cHDD_SM_LI_QU_IN/ZWm_cHbox_cHDD_SM_LI_QU_IN_gridpack/work/MG5_aMC_v2_6_5/madgraph/core/base_objects.py", line 92, in get
    return self[name]
  File "/home/public/genproductions/bin/MadGraph5_aMCatNLO/ZWm_cHbox_cHDD_SM_LI_QU_IN/ZWm_cHbox_cHDD_SM_LI_QU_IN_gridpack/work/MG5_aMC_v2_6_5/madgraph/core/base_objects.py", line 69, in __getitem__
    self.is_valid_prop(name) #raise the correct error
  File "/home/public/genproductions/bin/MadGraph5_aMCatNLO/ZWm_cHbox_cHDD_SM_LI_QU_IN/ZWm_cHbox_cHDD_SM_LI_QU_IN_gridpack/work/MG5_aMC_v2_6_5/madgraph/core/base_objects.py", line 86, in is_valid_prop
    Valid property are %s""" % (name,self.__class__.__name__, self.keys())
PhysicsObjectError: polarization is not a valid property for this object: Leg

    Valid property are ['number', 'onshell', 'state', 'from_group', 'loop_line', 'id']
                          MadGraph5_aMC@NLO Options
                          ----------------
        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
               stdout_level : 20 (user set)

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

                      Configuration Options
                      ---------------------
                        OLP : MadLoop
                    amcfast : amcfast-config
                   applgrid : applgrid-config
                auto_update : 0 (user set)
         cluster_local_path : /cvmfs/cms.cern.ch/slc6_amd64_gcc630/external/lhapdf/6.2.1-ghjeda2/share/LHAPDF (user set)
           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
                 eps_viewer : None
        exrootanalysis_path : ./ExRootAnalysis
              f2py_compiler : None
                    fastjet : None (user set)
           fortran_compiler : None
                      golem : None (user set)
                 hepmc_path : None (user set)
                  hwpp_path : None (user set)
                     lhapdf : /cvmfs/cms.cern.ch/slc6_amd64_gcc630/external/lhapdf/6.2.1-ghjeda2/share/LHAPDF/../../bin/lhapdf-config (user set)
          madanalysis5_path : None (user set)
           madanalysis_path : ./MadAnalysis
  mg5amc_py8_interface_path : None (user set)
                      ninja : ./HEPTools/lib
        output_dependencies : external
                      pjfry : None (user set)
            pythia-pgs_path : ./pythia-pgs
               pythia8_path : None (user set)
                    samurai : None
               syscalc_path : ./SysCalc
                    td_path : ./td
                text_editor : None
                thepeg_path : None (user set)
                    timeout : 60
                web_browser : None

Many thanks,

Riccardo

No applying the patch might work, but the file has diverged a lot since 2.6.5

Cheers,

Olivier

> On 7 Jan 2021, at 10:35, Riccardo <email address hidden> wrote:
>
> Question #694807 on MadGraph5_aMC@NLO changed:
> https://answers.launchpad.net/mg5amcnlo/+question/694807
>
> Status: Answered => Open
>
> Riccardo is still having a problem:
> Dear Olivier,
>
> I replaced the "old" helas_objects.py with the new one you provided, but
> now I have this error:
>
> Command "import /home/public/genproductions/bin/MadGraph5_aMCatNLO/ZWm_cHbox_cHDD_SM_LI_QU_IN/ZWm_cHbox_cHDD_SM_LI_QU_IN_gridpack/work/ZWm_cHbox_cHDD_SM_LI_QU_IN_proc_card.dat" interrupted in sub-command:
> "output ZWm_cHbox_cHDD_SM_LI_QU_IN" with error:
> PhysicsObjectError : polarization is not a valid property for this object: Leg
>
> Valid property are ['number', 'onshell', 'state', 'from_group', 'loop_line', 'id']
> Please report this bug on https://bugs.launchpad.net/mg5amcnlo
> More information is found in 'MG5_debug'.
> Please attach this file to your report.
>
> Below you can find the MG5_debug.
>
> #************************************************************
> #* MadGraph5_aMC@NLO *
> #* *
> #* * * *
> #* * * * * *
> #* * * * * 5 * * * * *
> #* * * * * *
> #* * * *
> #* *
> #* *
> #* VERSION 2.6.5 2018-02-03 *
> #* *
> #* 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 default_unset_couplings 99
> set loop_color_flows False
> set gauge unitary
> set max_npoint_for_channel 0
> set group_subprocesses Auto
> set ignore_six_quark_processes False
> set loop_optimized_output True
> set complex_mass_scheme False
> define p = g u c d s b u~ c~ d~ s~ b~
> 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 p = g u c d s b u~ c~ d~ s~ b~
> define j = p
> define l+ = e+ mu+ ta+
> define l- = e- mu- ta-
> define vl = ve vm vt
> define vl~ = ve~ vm~ vt~
> import model SMEFTsim_A_U35_MwScheme_UFO_v3_2-cHbox_cHDD_massless
> define p = 21 2 4 1 3 -2 -4 -1 -3 # pass to 4 flavors
> define j = p
> generate p p > z w- j j QCD=0 SMHLOOP=0 NP=1, z > l+ l- NP=1, w- > j j NP=1 @0 NP=1
> output ZWm_cHbox_cHDD_SM_LI_QU_IN
> Traceback (most recent call last):
> File "/home/public/genproductions/bin/MadGraph5_aMCatNLO/ZWm_cHbox_cHDD_SM_LI_QU_IN/ZWm_cHbox_cHDD_SM_LI_QU_IN_gridpack/work/MG5_aMC_v2_6_5/madgraph/interface/extended_cmd.py", line 1514, in onecmd
> return self.onecmd_orig(line, **opt)
> File "/home/public/genproductions/bin/MadGraph5_aMCatNLO/ZWm_cHbox_cHDD_SM_LI_QU_IN/ZWm_cHbox_cHDD_SM_LI_QU_IN_gridpack/work/MG5_aMC_v2_6_5/madgraph/interface/extended_cmd.py", line 1463, in onecmd_orig
> return func(arg, **opt)
> File "/home/public/genproductions/bin/MadGraph5_aMCatNLO/ZWm_cHbox_cHDD_SM_LI_QU_IN/ZWm_cHbox_cHDD_SM_LI_QU_IN_gridpack/work/MG5_aMC_v2_6_5/madgraph/interface/master_interface.py", line 274, in do_import
> self.cmd.do_import(self, *args, **opts)
> File "/home/public/genproductions/bin/MadGraph5_aMCatNLO/ZWm_cHbox_cHDD_SM_LI_QU_IN/ZWm_cHbox_cHDD_SM_LI_QU_IN_gridpack/work/MG5_aMC_v2_6_5/madgraph/interface/madgraph_interface.py", line 5273, in do_import
> self.import_command_file(args[1])
> File "/home/public/genproductions/bin/MadGraph5_aMCatNLO/ZWm_cHbox_cHDD_SM_LI_QU_IN/ZWm_cHbox_cHDD_SM_LI_QU_IN_gridpack/work/MG5_aMC_v2_6_5/madgraph/interface/extended_cmd.py", line 1660, in import_command_file
> self.exec_cmd(line, precmd=True)
> File "/home/public/genproductions/bin/MadGraph5_aMCatNLO/ZWm_cHbox_cHDD_SM_LI_QU_IN/ZWm_cHbox_cHDD_SM_LI_QU_IN_gridpack/work/MG5_aMC_v2_6_5/madgraph/interface/extended_cmd.py", line 1543, in exec_cmd
> stop = Cmd.onecmd_orig(current_interface, line, **opt)
> File "/home/public/genproductions/bin/MadGraph5_aMCatNLO/ZWm_cHbox_cHDD_SM_LI_QU_IN/ZWm_cHbox_cHDD_SM_LI_QU_IN_gridpack/work/MG5_aMC_v2_6_5/madgraph/interface/extended_cmd.py", line 1463, in onecmd_orig
> return func(arg, **opt)
> File "/home/public/genproductions/bin/MadGraph5_aMCatNLO/ZWm_cHbox_cHDD_SM_LI_QU_IN/ZWm_cHbox_cHDD_SM_LI_QU_IN_gridpack/work/MG5_aMC_v2_6_5/madgraph/interface/master_interface.py", line 292, in do_output
> self.cmd.do_output(self, line, *args, **opts)
> File "/home/public/genproductions/bin/MadGraph5_aMCatNLO/ZWm_cHbox_cHDD_SM_LI_QU_IN/ZWm_cHbox_cHDD_SM_LI_QU_IN_gridpack/work/MG5_aMC_v2_6_5/madgraph/interface/madgraph_interface.py", line 7660, in do_output
> self.export(nojpeg, main_file_name, group_processes, args)
> File "/home/public/genproductions/bin/MadGraph5_aMCatNLO/ZWm_cHbox_cHDD_SM_LI_QU_IN/ZWm_cHbox_cHDD_SM_LI_QU_IN_gridpack/work/MG5_aMC_v2_6_5/madgraph/interface/master_interface.py", line 306, in export
> return self.cmd.export(self, *args, **opts)
> File "/home/public/genproductions/bin/MadGraph5_aMCatNLO/ZWm_cHbox_cHDD_SM_LI_QU_IN/ZWm_cHbox_cHDD_SM_LI_QU_IN_gridpack/work/MG5_aMC_v2_6_5/madgraph/interface/madgraph_interface.py", line 7786, in export
> ndiags, cpu_time = generate_matrix_elements(self,group_processes)
> File "/home/public/genproductions/bin/MadGraph5_aMCatNLO/ZWm_cHbox_cHDD_SM_LI_QU_IN/ZWm_cHbox_cHDD_SM_LI_QU_IN_gridpack/work/MG5_aMC_v2_6_5/madgraph/interface/madgraph_interface.py", line 7738, in generate_matrix_elements
> subproc_groups.extend(dc_subproc_group.\
> File "/home/public/genproductions/bin/MadGraph5_aMCatNLO/ZWm_cHbox_cHDD_SM_LI_QU_IN/ZWm_cHbox_cHDD_SM_LI_QU_IN_gridpack/work/MG5_aMC_v2_6_5/madgraph/iolibs/group_subprocs.py", line 597, in generate_helas_decay_chain_subproc_groups
> self.get('decay_chain_amplitudes')))
> File "/home/public/genproductions/bin/MadGraph5_aMCatNLO/ZWm_cHbox_cHDD_SM_LI_QU_IN/ZWm_cHbox_cHDD_SM_LI_QU_IN_gridpack/work/MG5_aMC_v2_6_5/madgraph/core/helas_objects.py", line 5856, in generate_matrix_elements
> tmp_matrix_element_list = HelasDecayChainProcess(amplitude).\
> File "/home/public/genproductions/bin/MadGraph5_aMCatNLO/ZWm_cHbox_cHDD_SM_LI_QU_IN/ZWm_cHbox_cHDD_SM_LI_QU_IN_gridpack/work/MG5_aMC_v2_6_5/madgraph/core/helas_objects.py", line 5377, in __init__
> self.generate_matrix_elements(argument)
> File "/home/public/genproductions/bin/MadGraph5_aMCatNLO/ZWm_cHbox_cHDD_SM_LI_QU_IN/ZWm_cHbox_cHDD_SM_LI_QU_IN_gridpack/work/MG5_aMC_v2_6_5/madgraph/core/helas_objects.py", line 5415, in generate_matrix_elements
> decay_ids)
> File "/home/public/genproductions/bin/MadGraph5_aMCatNLO/ZWm_cHbox_cHDD_SM_LI_QU_IN/ZWm_cHbox_cHDD_SM_LI_QU_IN_gridpack/work/MG5_aMC_v2_6_5/madgraph/core/helas_objects.py", line 5921, in generate_matrix_elements
> **matrix_element_opts)]
> File "/home/public/genproductions/bin/MadGraph5_aMCatNLO/ZWm_cHbox_cHDD_SM_LI_QU_IN/ZWm_cHbox_cHDD_SM_LI_QU_IN_gridpack/work/MG5_aMC_v2_6_5/madgraph/core/helas_objects.py", line 3511, in __init__
> self.generate_helas_diagrams(amplitude, optimization, decay_ids)
> File "/home/public/genproductions/bin/MadGraph5_aMCatNLO/ZWm_cHbox_cHDD_SM_LI_QU_IN/ZWm_cHbox_cHDD_SM_LI_QU_IN_gridpack/work/MG5_aMC_v2_6_5/madgraph/core/helas_objects.py", line 3603, in generate_helas_diagrams
> for leg in process.get('legs')])
> File "/home/public/genproductions/bin/MadGraph5_aMCatNLO/ZWm_cHbox_cHDD_SM_LI_QU_IN/ZWm_cHbox_cHDD_SM_LI_QU_IN_gridpack/work/MG5_aMC_v2_6_5/madgraph/core/helas_objects.py", line 683, in __init__
> if 99 in leg.get('polarization'):
> File "/home/public/genproductions/bin/MadGraph5_aMCatNLO/ZWm_cHbox_cHDD_SM_LI_QU_IN/ZWm_cHbox_cHDD_SM_LI_QU_IN_gridpack/work/MG5_aMC_v2_6_5/madgraph/core/base_objects.py", line 92, in get
> return self[name]
> File "/home/public/genproductions/bin/MadGraph5_aMCatNLO/ZWm_cHbox_cHDD_SM_LI_QU_IN/ZWm_cHbox_cHDD_SM_LI_QU_IN_gridpack/work/MG5_aMC_v2_6_5/madgraph/core/base_objects.py", line 69, in __getitem__
> self.is_valid_prop(name) #raise the correct error
> File "/home/public/genproductions/bin/MadGraph5_aMCatNLO/ZWm_cHbox_cHDD_SM_LI_QU_IN/ZWm_cHbox_cHDD_SM_LI_QU_IN_gridpack/work/MG5_aMC_v2_6_5/madgraph/core/base_objects.py", line 86, in is_valid_prop
> Valid property are %s""" % (name,self.__class__.__name__, self.keys())
> PhysicsObjectError: polarization is not a valid property for this object: Leg
>
> Valid property are ['number', 'onshell', 'state', 'from_group', 'loop_line', 'id']
> MadGraph5_aMC@NLO Options
> ----------------
> 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
> stdout_level : 20 (user set)
>
> MadEvent Options
> ----------------
> automatic_html_opening : False (user set)
> nb_core : None
> notification_center : True
> run_mode : 2
>
> Configuration Options
> ---------------------
> OLP : MadLoop
> amcfast : amcfast-config
> applgrid : applgrid-config
> auto_update : 0 (user set)
> cluster_local_path : /cvmfs/cms.cern.ch/slc6_amd64_gcc630/external/lhapdf/6.2.1-ghjeda2/share/LHAPDF (user set)
> 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
> eps_viewer : None
> exrootanalysis_path : ./ExRootAnalysis
> f2py_compiler : None
> fastjet : None (user set)
> fortran_compiler : None
> golem : None (user set)
> hepmc_path : None (user set)
> hwpp_path : None (user set)
> lhapdf : /cvmfs/cms.cern.ch/slc6_amd64_gcc630/external/lhapdf/6.2.1-ghjeda2/share/LHAPDF/../../bin/lhapdf-config (user set)
> madanalysis5_path : None (user set)
> madanalysis_path : ./MadAnalysis
> mg5amc_py8_interface_path : None (user set)
> ninja : ./HEPTools/lib
> output_dependencies : external
> pjfry : None (user set)
> pythia-pgs_path : ./pythia-pgs
> pythia8_path : None (user set)
> samurai : None
> syscalc_path : ./SysCalc
> td_path : ./td
> text_editor : None
> thepeg_path : None (user set)
> timeout : 60
> web_browser : None
>
> Many thanks,
>
> Riccardo
>
> --
> You received this question notification because you are an answer
> contact for MadGraph5_aMC@NLO.

Riccardo (ricbrs) said : #7

Dear Olivier,

By applying the patch, I have the following error:

INFO: Creating files in directory P0_qq_zwmqq_z_ll_wm_qq
Command "import /afs/cern.ch/work/r/ribrusa/public/genproductions/bin/MadGraph5_aMCatNLO/ZWm_cHbox_cHDD_SM_LI_QU_IN/ZWm_cHbox_cHDD_SM_LI_QU_IN_gridpack/work/ZWm_cHbox_cHDD_SM_LI_QU_IN_proc_card.dat" interrupted in sub-command:
"output ZWm_cHbox_cHDD_SM_LI_QU_IN" with error:
KeyError : 6
Please report this bug on https://bugs.launchpad.net/mg5amcnlo
More information is found in 'MG5_debug'.
Please attach this file to your report.

MG5_debug file:

output ZWm_cHbox_cHDD_SM_LI_QU_IN
Traceback (most recent call last):
  File "/home/public/genproductions/bin/MadGraph5_aMCatNLO/ZWm_cHbox_cHDD_SM_LI_QU_IN/ZWm_cHbox_cHDD_SM_LI_QU_IN_gridpack/work/MG5_aMC_v2_6_5/madgraph/interface/extended_cmd.py", line 1514, in onecmd
    return self.onecmd_orig(line, **opt)
  File "/home/public/genproductions/bin/MadGraph5_aMCatNLO/ZWm_cHbox_cHDD_SM_LI_QU_IN/ZWm_cHbox_cHDD_SM_LI_QU_IN_gridpack/work/MG5_aMC_v2_6_5/madgraph/interface/extended_cmd.py", line 1463, in onecmd_orig
    return func(arg, **opt)
  File "/home/public/genproductions/bin/MadGraph5_aMCatNLO/ZWm_cHbox_cHDD_SM_LI_QU_IN/ZWm_cHbox_cHDD_SM_LI_QU_IN_gridpack/work/MG5_aMC_v2_6_5/madgraph/interface/master_interface.py", line 274, in do_import
    self.cmd.do_import(self, *args, **opts)
  File "/home/public/genproductions/bin/MadGraph5_aMCatNLO/ZWm_cHbox_cHDD_SM_LI_QU_IN/ZWm_cHbox_cHDD_SM_LI_QU_IN_gridpack/work/MG5_aMC_v2_6_5/madgraph/interface/madgraph_interface.py", line 5273, in do_import
    self.import_command_file(args[1])
  File "/home/public/genproductions/bin/MadGraph5_aMCatNLO/ZWm_cHbox_cHDD_SM_LI_QU_IN/ZWm_cHbox_cHDD_SM_LI_QU_IN_gridpack/work/MG5_aMC_v2_6_5/madgraph/interface/extended_cmd.py", line 1660, in import_command_file
    self.exec_cmd(line, precmd=True)
  File "/home/public/genproductions/bin/MadGraph5_aMCatNLO/ZWm_cHbox_cHDD_SM_LI_QU_IN/ZWm_cHbox_cHDD_SM_LI_QU_IN_gridpack/work/MG5_aMC_v2_6_5/madgraph/interface/extended_cmd.py", line 1543, in exec_cmd
    stop = Cmd.onecmd_orig(current_interface, line, **opt)
  File "/home/public/genproductions/bin/MadGraph5_aMCatNLO/ZWm_cHbox_cHDD_SM_LI_QU_IN/ZWm_cHbox_cHDD_SM_LI_QU_IN_gridpack/work/MG5_aMC_v2_6_5/madgraph/interface/extended_cmd.py", line 1463, in onecmd_orig
    return func(arg, **opt)
  File "/home/public/genproductions/bin/MadGraph5_aMCatNLO/ZWm_cHbox_cHDD_SM_LI_QU_IN/ZWm_cHbox_cHDD_SM_LI_QU_IN_gridpack/work/MG5_aMC_v2_6_5/madgraph/interface/master_interface.py", line 292, in do_output
    self.cmd.do_output(self, line, *args, **opts)
  File "/home/public/genproductions/bin/MadGraph5_aMCatNLO/ZWm_cHbox_cHDD_SM_LI_QU_IN/ZWm_cHbox_cHDD_SM_LI_QU_IN_gridpack/work/MG5_aMC_v2_6_5/madgraph/interface/madgraph_interface.py", line 7660, in do_output
    self.export(nojpeg, main_file_name, group_processes, args)
  File "/home/public/genproductions/bin/MadGraph5_aMCatNLO/ZWm_cHbox_cHDD_SM_LI_QU_IN/ZWm_cHbox_cHDD_SM_LI_QU_IN_gridpack/work/MG5_aMC_v2_6_5/madgraph/interface/master_interface.py", line 306, in export
    return self.cmd.export(self, *args, **opts)
  File "/home/public/genproductions/bin/MadGraph5_aMCatNLO/ZWm_cHbox_cHDD_SM_LI_QU_IN/ZWm_cHbox_cHDD_SM_LI_QU_IN_gridpack/work/MG5_aMC_v2_6_5/madgraph/interface/madgraph_interface.py", line 7800, in export
    self._curr_helas_model)
  File "/home/public/genproductions/bin/MadGraph5_aMCatNLO/ZWm_cHbox_cHDD_SM_LI_QU_IN/ZWm_cHbox_cHDD_SM_LI_QU_IN_gridpack/work/MG5_aMC_v2_6_5/madgraph/iolibs/export_v4.py", line 193, in export_processes
    me_group, fortran_model, group_number)
  File "/home/public/genproductions/bin/MadGraph5_aMCatNLO/ZWm_cHbox_cHDD_SM_LI_QU_IN/ZWm_cHbox_cHDD_SM_LI_QU_IN_gridpack/work/MG5_aMC_v2_6_5/madgraph/iolibs/export_v4.py", line 4996, in generate_subprocess_directory
    subproc_number=group_number)
  File "/home/public/genproductions/bin/MadGraph5_aMCatNLO/ZWm_cHbox_cHDD_SM_LI_QU_IN/ZWm_cHbox_cHDD_SM_LI_QU_IN_gridpack/work/MG5_aMC_v2_6_5/madgraph/iolibs/export_v4.py", line 3983, in write_matrix_element_v4
    matrix_element)
  File "/home/public/genproductions/bin/MadGraph5_aMCatNLO/ZWm_cHbox_cHDD_SM_LI_QU_IN/ZWm_cHbox_cHDD_SM_LI_QU_IN_gridpack/work/MG5_aMC_v2_6_5/madgraph/iolibs/helas_call_writers.py", line 230, in get_matrix_element_calls
    matrix_element.reuse_outdated_wavefunctions(me)
  File "/home/public/genproductions/bin/MadGraph5_aMCatNLO/ZWm_cHbox_cHDD_SM_LI_QU_IN/ZWm_cHbox_cHDD_SM_LI_QU_IN_gridpack/work/MG5_aMC_v2_6_5/madgraph/core/helas_objects.py", line 3764, in reuse_outdated_wavefunctions
    outdated.append(replace[value])
KeyError: 6
                          MadGraph5_aMC@NLO Options
                          ----------------
        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
               stdout_level : 20 (user set)

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

                      Configuration Options
                      ---------------------
                        OLP : MadLoop
                    amcfast : amcfast-config
                   applgrid : applgrid-config
                auto_update : 0 (user set)
         cluster_local_path : /cvmfs/cms.cern.ch/slc6_amd64_gcc630/external/lhapdf/6.2.1-ghjeda2/share/LHAPDF (user set)
           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
                 eps_viewer : None
        exrootanalysis_path : ./ExRootAnalysis
              f2py_compiler : None
                    fastjet : None (user set)
           fortran_compiler : None
                      golem : None (user set)
                 hepmc_path : None (user set)
                  hwpp_path : None (user set)
                     lhapdf : /cvmfs/cms.cern.ch/slc6_amd64_gcc630/external/lhapdf/6.2.1-ghjeda2/share/LHAPDF/../../bin/lhapdf-config (user set)
          madanalysis5_path : None (user set)
           madanalysis_path : ./MadAnalysis
  mg5amc_py8_interface_path : None (user set)
                      ninja : ./HEPTools/lib
        output_dependencies : external
                      pjfry : None (user set)
            pythia-pgs_path : ./pythia-pgs
               pythia8_path : None (user set)
                    samurai : None
               syscalc_path : ./SysCalc
                    td_path : ./td
                text_editor : None
                thepeg_path : None (user set)
                    timeout : 60
                web_browser : None

Can you try with 2.8.2?

i'm worried that this might be linked to a python version ordering issue.
In that case using python3 will certainly help since the ordering has been ensure in python3 compare to python2. (This being said i have tested this with python2 and 2.8.2, will try to doulble check this with python3)

Olivier

> On 7 Jan 2021, at 14:01, Riccardo <email address hidden> wrote:
>
> Question #694807 on MadGraph5_aMC@NLO changed:
> https://answers.launchpad.net/mg5amcnlo/+question/694807
>
> Status: Answered => Open
>
> Riccardo is still having a problem:
> Dear Olivier,
>
> By applying the patch, I have the following error:
>
> INFO: Creating files in directory P0_qq_zwmqq_z_ll_wm_qq
> Command "import /afs/cern.ch/work/r/ribrusa/public/genproductions/bin/MadGraph5_aMCatNLO/ZWm_cHbox_cHDD_SM_LI_QU_IN/ZWm_cHbox_cHDD_SM_LI_QU_IN_gridpack/work/ZWm_cHbox_cHDD_SM_LI_QU_IN_proc_card.dat" interrupted in sub-command:
> "output ZWm_cHbox_cHDD_SM_LI_QU_IN" with error:
> KeyError : 6
> Please report this bug on https://bugs.launchpad.net/mg5amcnlo
> More information is found in 'MG5_debug'.
> Please attach this file to your report.
>
> MG5_debug file:
>
> output ZWm_cHbox_cHDD_SM_LI_QU_IN
> Traceback (most recent call last):
> File "/home/public/genproductions/bin/MadGraph5_aMCatNLO/ZWm_cHbox_cHDD_SM_LI_QU_IN/ZWm_cHbox_cHDD_SM_LI_QU_IN_gridpack/work/MG5_aMC_v2_6_5/madgraph/interface/extended_cmd.py", line 1514, in onecmd
> return self.onecmd_orig(line, **opt)
> File "/home/public/genproductions/bin/MadGraph5_aMCatNLO/ZWm_cHbox_cHDD_SM_LI_QU_IN/ZWm_cHbox_cHDD_SM_LI_QU_IN_gridpack/work/MG5_aMC_v2_6_5/madgraph/interface/extended_cmd.py", line 1463, in onecmd_orig
> return func(arg, **opt)
> File "/home/public/genproductions/bin/MadGraph5_aMCatNLO/ZWm_cHbox_cHDD_SM_LI_QU_IN/ZWm_cHbox_cHDD_SM_LI_QU_IN_gridpack/work/MG5_aMC_v2_6_5/madgraph/interface/master_interface.py", line 274, in do_import
> self.cmd.do_import(self, *args, **opts)
> File "/home/public/genproductions/bin/MadGraph5_aMCatNLO/ZWm_cHbox_cHDD_SM_LI_QU_IN/ZWm_cHbox_cHDD_SM_LI_QU_IN_gridpack/work/MG5_aMC_v2_6_5/madgraph/interface/madgraph_interface.py", line 5273, in do_import
> self.import_command_file(args[1])
> File "/home/public/genproductions/bin/MadGraph5_aMCatNLO/ZWm_cHbox_cHDD_SM_LI_QU_IN/ZWm_cHbox_cHDD_SM_LI_QU_IN_gridpack/work/MG5_aMC_v2_6_5/madgraph/interface/extended_cmd.py", line 1660, in import_command_file
> self.exec_cmd(line, precmd=True)
> File "/home/public/genproductions/bin/MadGraph5_aMCatNLO/ZWm_cHbox_cHDD_SM_LI_QU_IN/ZWm_cHbox_cHDD_SM_LI_QU_IN_gridpack/work/MG5_aMC_v2_6_5/madgraph/interface/extended_cmd.py", line 1543, in exec_cmd
> stop = Cmd.onecmd_orig(current_interface, line, **opt)
> File "/home/public/genproductions/bin/MadGraph5_aMCatNLO/ZWm_cHbox_cHDD_SM_LI_QU_IN/ZWm_cHbox_cHDD_SM_LI_QU_IN_gridpack/work/MG5_aMC_v2_6_5/madgraph/interface/extended_cmd.py", line 1463, in onecmd_orig
> return func(arg, **opt)
> File "/home/public/genproductions/bin/MadGraph5_aMCatNLO/ZWm_cHbox_cHDD_SM_LI_QU_IN/ZWm_cHbox_cHDD_SM_LI_QU_IN_gridpack/work/MG5_aMC_v2_6_5/madgraph/interface/master_interface.py", line 292, in do_output
> self.cmd.do_output(self, line, *args, **opts)
> File "/home/public/genproductions/bin/MadGraph5_aMCatNLO/ZWm_cHbox_cHDD_SM_LI_QU_IN/ZWm_cHbox_cHDD_SM_LI_QU_IN_gridpack/work/MG5_aMC_v2_6_5/madgraph/interface/madgraph_interface.py", line 7660, in do_output
> self.export(nojpeg, main_file_name, group_processes, args)
> File "/home/public/genproductions/bin/MadGraph5_aMCatNLO/ZWm_cHbox_cHDD_SM_LI_QU_IN/ZWm_cHbox_cHDD_SM_LI_QU_IN_gridpack/work/MG5_aMC_v2_6_5/madgraph/interface/master_interface.py", line 306, in export
> return self.cmd.export(self, *args, **opts)
> File "/home/public/genproductions/bin/MadGraph5_aMCatNLO/ZWm_cHbox_cHDD_SM_LI_QU_IN/ZWm_cHbox_cHDD_SM_LI_QU_IN_gridpack/work/MG5_aMC_v2_6_5/madgraph/interface/madgraph_interface.py", line 7800, in export
> self._curr_helas_model)
> File "/home/public/genproductions/bin/MadGraph5_aMCatNLO/ZWm_cHbox_cHDD_SM_LI_QU_IN/ZWm_cHbox_cHDD_SM_LI_QU_IN_gridpack/work/MG5_aMC_v2_6_5/madgraph/iolibs/export_v4.py", line 193, in export_processes
> me_group, fortran_model, group_number)
> File "/home/public/genproductions/bin/MadGraph5_aMCatNLO/ZWm_cHbox_cHDD_SM_LI_QU_IN/ZWm_cHbox_cHDD_SM_LI_QU_IN_gridpack/work/MG5_aMC_v2_6_5/madgraph/iolibs/export_v4.py", line 4996, in generate_subprocess_directory
> subproc_number=group_number)
> File "/home/public/genproductions/bin/MadGraph5_aMCatNLO/ZWm_cHbox_cHDD_SM_LI_QU_IN/ZWm_cHbox_cHDD_SM_LI_QU_IN_gridpack/work/MG5_aMC_v2_6_5/madgraph/iolibs/export_v4.py", line 3983, in write_matrix_element_v4
> matrix_element)
> File "/home/public/genproductions/bin/MadGraph5_aMCatNLO/ZWm_cHbox_cHDD_SM_LI_QU_IN/ZWm_cHbox_cHDD_SM_LI_QU_IN_gridpack/work/MG5_aMC_v2_6_5/madgraph/iolibs/helas_call_writers.py", line 230, in get_matrix_element_calls
> matrix_element.reuse_outdated_wavefunctions(me)
> File "/home/public/genproductions/bin/MadGraph5_aMCatNLO/ZWm_cHbox_cHDD_SM_LI_QU_IN/ZWm_cHbox_cHDD_SM_LI_QU_IN_gridpack/work/MG5_aMC_v2_6_5/madgraph/core/helas_objects.py", line 3764, in reuse_outdated_wavefunctions
> outdated.append(replace[value])
> KeyError: 6
> MadGraph5_aMC@NLO Options
> ----------------
> 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
> stdout_level : 20 (user set)
>
> MadEvent Options
> ----------------
> automatic_html_opening : False (user set)
> nb_core : None
> notification_center : True
> run_mode : 2
>
> Configuration Options
> ---------------------
> OLP : MadLoop
> amcfast : amcfast-config
> applgrid : applgrid-config
> auto_update : 0 (user set)
> cluster_local_path : /cvmfs/cms.cern.ch/slc6_amd64_gcc630/external/lhapdf/6.2.1-ghjeda2/share/LHAPDF (user set)
> 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
> eps_viewer : None
> exrootanalysis_path : ./ExRootAnalysis
> f2py_compiler : None
> fastjet : None (user set)
> fortran_compiler : None
> golem : None (user set)
> hepmc_path : None (user set)
> hwpp_path : None (user set)
> lhapdf : /cvmfs/cms.cern.ch/slc6_amd64_gcc630/external/lhapdf/6.2.1-ghjeda2/share/LHAPDF/../../bin/lhapdf-config (user set)
> madanalysis5_path : None (user set)
> madanalysis_path : ./MadAnalysis
> mg5amc_py8_interface_path : None (user set)
> ninja : ./HEPTools/lib
> output_dependencies : external
> pjfry : None (user set)
> pythia-pgs_path : ./pythia-pgs
> pythia8_path : None (user set)
> samurai : None
> syscalc_path : ./SysCalc
> td_path : ./td
> text_editor : None
> thepeg_path : None (user set)
> timeout : 60
> web_browser : None
>
> --
> You received this question notification because you are an answer
> contact for MadGraph5_aMC@NLO.

Riccardo (ricbrs) said : #9

Dear Olivier,

I made a mistake applying the patch, now it works.
Thank you for your support.

Cheers,

Riccardo

Riccardo (ricbrs) said : #10

Thanks Olivier Mattelaer, that solved my question.