Error occurs in DY+b process

Asked by Won Jun

Dear aMC@NLO team,

I have experienced error that I couldn't understand.
Here's the situation. (I'm using v2.9.13 now)

import model sm-no_b_mass
define bb = b b~
generate p p > e+ e- bb
output pptoeebb
launch
0
set no_parton_cut
set run_card ptj 30
set run_card ptl 10
set run_card etal 2.40
0
-> This gave me the result with Cross-section : 14.03 +- 0.02388 pb
But when I tried similar commands like,

set no_parton_cut
set run_card ptj 10
set run_card ptl 10
set run_card etal 2.40

"TypeError : 'NoneType' object is not subscriptable" error occured. (I attached the full messages below.)
One weird thing was that my colleagues could run this command, but failed when

set no_parton_cut
set run_card ptj 30
set run_card etaj 2.40
set run_card ptl 10
set run_card etal 2.40

and experienced the same issue.
Could you give me some pointers about this?

Best regards,
Won Jun

INFO: Update the dependent parameter of the param_card.dat
WARNING: Failed to update dependent parameter. This might create trouble for external program (like MadSpin/shower/...)
Generating 10000 events with run name run_01
survey run_01
INFO: compile directory
compile Source Directory
Using random number seed offset = 21
INFO: Running Survey
Creating Jobs
Working on SubProcesses
INFO: Compiling for process 1/1.
INFO: P1_gq_llq
100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 735/735 [00:00<00:00, 30483.37it/s]
100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 737/737 [00:00<00:00, 35581.36it/s]
INFO: P1_gq_llq
INFO: Idle: 1, Running: 1, Completed: 0 [ current time: 14h57 ]
INFO: Idle: 0, Running: 1, Completed: 1 [ 2.9s ]
INFO: Idle: 0, Running: 0, Completed: 2 [ 3.7s ]
INFO: End survey
refine 10000
Creating Jobs
INFO: Refine results to 10000
INFO: Generating 10000.0 unweighted events.
sum of cpu time of last step: 4 seconds
INFO: Effective Luminosity 1060.2448812260673 pb^-1
INFO: need to improve 4 channels
- Current estimate of cross-section: 11.318010000000001 +- 0.620278784371995
    P1_gq_llq
INFO: Idle: 1, Running: 14, Completed: 0 [ current time: 14h57 ]
INFO: Idle: 0, Running: 14, Completed: 1 [ 4s ]
INFO: Idle: 0, Running: 12, Completed: 3 [ 7.3s ]
INFO: Idle: 0, Running: 9, Completed: 6 [ 22.6s ]
INFO: Idle: 0, Running: 7, Completed: 8 [ 44.7s ]
INFO: Idle: 0, Running: 2, Completed: 13 [ 47.8s ]
INFO: Idle: 0, Running: 1, Completed: 14 [ 1m 23s ]
INFO: Idle: 0, Running: 0, Completed: 15 [ 1m 28s ]
INFO: Idle: 0, Running: 0, Completed: 15 [ 1m 28s ]
INFO: Combining runs
sum of cpu time of last step: 8m14s
INFO: finish refine
refine 10000 --treshold=0.9
Creating Jobs
INFO: Refine results to 10000
INFO: Generating 10000.0 unweighted events.
sum of cpu time of last step: 8m14s
INFO: Effective Luminosity 953.4373003740652 pb^-1
INFO: need to improve 0 channels
- Current estimate of cross-section: 12.585930000000001 +- 0.021909230311674573
    P1_gq_llq
INFO: Idle: 0, Running: 0, Completed: 0 [ current time: 14h58 ]
'NoneType' object is not subscriptable
Cluster Error detected. Do you want to clean the queue? ("c"=continue the run anyway) [y, n, c][60s to answer]
>
use y
Command "generate_events run_01" interrupted with error:
TypeError : 'NoneType' object is not subscriptable
Please report this bug on https://bugs.launchpad.net/mg5amcnlo
More information is found in '/data6/Users/wonjun/CMSSW_12_4_8/src/MG5_aMC_v2_9_13/pptoeebb_pt10_lep3/run_01_tag_1_debug.log'.
Please attach this file to your report.

Question information

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

Could you put the content of the debug file:
/data6/Users/wonjun/CMSSW_12_4_8/src/MG5_aMC_v2_9_13/pptoeebb_pt10_lep3/run_01_tag_1_debug.log

Cheers,

Olivier

Revision history for this message
Won Jun (wjun27) said :
#2

Here's the debug file. Thanks a lot!
Best regards,
Won

#************************************************************
#* MadGraph5_aMC@NLO/MadEvent *
#* *
#* * * *
#* * * * * *
#* * * * * 5 * * * * *
#* * * * * *
#* * * *
#* *
#* *
#* VERSION 2.9.13 2022-12-15 *
#* *
#* 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 "/data6/Users/wonjun/CMSSW_12_4_8/src/MG5_aMC_v2_9_13/madgraph/interface/madevent_interface.py", line 5633, in monitor
    self.cluster.wait(self.me_dir, update_status, update_first=update_first)
  File "/data6/Users/wonjun/CMSSW_12_4_8/src/MG5_aMC_v2_9_13/madgraph/various/cluster.py", line 842, in wait
    six.reraise(self.fail_msg[0], self.fail_msg[1], self.fail_msg[2])
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/data6/Users/wonjun/CMSSW_12_4_8/src/MG5_aMC_v2_9_13/madgraph/interface/extended_cmd.py", line 1541, in onecmd
    return self.onecmd_orig(line, **opt)
  File "/data6/Users/wonjun/CMSSW_12_4_8/src/MG5_aMC_v2_9_13/madgraph/interface/extended_cmd.py", line 1490, in onecmd_orig
    return func(arg, **opt)
  File "/data6/Users/wonjun/CMSSW_12_4_8/src/MG5_aMC_v2_9_13/madgraph/interface/madevent_interface.py", line 2474, in do_generate_events
    self.run_generate_events(switch_mode, args)
  File "/data6/Users/wonjun/CMSSW_12_4_8/src/MG5_aMC_v2_9_13/madgraph/interface/common_run_interface.py", line 7120, in new_fct
    original_fct(obj, *args, **opts)
  File "/data6/Users/wonjun/CMSSW_12_4_8/src/MG5_aMC_v2_9_13/madgraph/interface/madevent_interface.py", line 2535, in run_generate_events
    self.exec_cmd('refine %s --treshold=%s' % (nb_event,self.run_card['second_refine_treshold'])
  File "/data6/Users/wonjun/CMSSW_12_4_8/src/MG5_aMC_v2_9_13/madgraph/interface/extended_cmd.py", line 1570, in exec_cmd
    stop = Cmd.onecmd_orig(current_interface, line, **opt)
  File "/data6/Users/wonjun/CMSSW_12_4_8/src/MG5_aMC_v2_9_13/madgraph/interface/extended_cmd.py", line 1490, in onecmd_orig
    return func(arg, **opt)
  File "/data6/Users/wonjun/CMSSW_12_4_8/src/MG5_aMC_v2_9_13/madgraph/interface/madevent_interface.py", line 3552, in do_refine
    self.monitor(run_type='All job submitted for refine number %s' % self.nb_refine,
  File "/data6/Users/wonjun/CMSSW_12_4_8/src/MG5_aMC_v2_9_13/madgraph/interface/madevent_interface.py", line 5644, in monitor
    return self.monitor(run_type=run_type, mode=mode, html=html)
  File "/data6/Users/wonjun/CMSSW_12_4_8/src/MG5_aMC_v2_9_13/madgraph/interface/madevent_interface.py", line 5633, in monitor
    self.cluster.wait(self.me_dir, update_status, update_first=update_first)
  File "/data6/Users/wonjun/CMSSW_12_4_8/src/MG5_aMC_v2_9_13/madgraph/various/cluster.py", line 842, in wait
    six.reraise(self.fail_msg[0], self.fail_msg[1], self.fail_msg[2])
TypeError: 'NoneType' object is not subscriptable
                              Run Options
                              -----------
               stdout_level : 20 (user set)

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

                      Configuration Options
                      ---------------------
               pythia8_path : None (user set)
                  hwpp_path : None (user set)
                thepeg_path : None (user set)
                 hepmc_path : None (user set)
           madanalysis_path : None (user set)
          madanalysis5_path : None (user set)
            pythia-pgs_path : None (user set)
                    td_path : None (user set)
               delphes_path : None (user set)
        exrootanalysis_path : None (user set)
               syscalc_path : None (user set)
                     lhapdf : lhapdf-config
                 lhapdf_py2 : None
                 lhapdf_py3 : None
                    timeout : 60
              f2py_compiler : None
          f2py_compiler_py2 : None
          f2py_compiler_py3 : None
                web_browser : None
                 eps_viewer : None
                text_editor : None
           fortran_compiler : None
               cpp_compiler : None
                auto_update : 7 (user set)
               cluster_type : condor
      cluster_status_update : (600, 30)
           cluster_nb_retry : 1
         cluster_local_path : None
         cluster_retry_wait : 300
#************************************************************
#* MadGraph5_aMC@NLO *
#* *
#* * * *
#* * * * * *
#* * * * * 5 * * * * *
#* * * * * *
#* * * *
#* *
#* *
#* VERSION 2.9.13 2022-12-15 *
#* *
#* 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 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
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 sm-no_b_mass
define p = 21 2 4 1 3 -2 -4 -1 -3 5 -5 # pass to 5 flavors
define j = p
define bb = b b~
generate p p > e+ e- bb
output pptoeebb_pt10_lep
######################################################################
## PARAM_CARD AUTOMATICALY GENERATED BY MG5 FOLLOWING UFO MODEL ####
######################################################################
## ##
## Width set on Auto will be computed following the information ##
## present in the decay.py files of the model. ##
## See arXiv:1402.1178 for more details. ##
## ##
######################################################################

###################################
## INFORMATION FOR MASS
###################################
Block mass
    6 1.730000e+02 # MT
   15 1.777000e+00 # MTA
   23 9.118800e+01 # MZ
   25 1.250000e+02 # MH
## Dependent parameters, given by model restrictions.
## Those values should be edited following the
## analytical expression. MG5 ignores those values
## but they are important for interfacing the output of MG5
## to external program such as Pythia.
  1 0.000000e+00 # d : 0.0
  2 0.000000e+00 # u : 0.0
  3 0.000000e+00 # s : 0.0
  4 0.000000e+00 # c : 0.0
  5 0.000000e+00 # b : 0.0
  11 0.000000e+00 # e- : 0.0
  12 0.000000e+00 # ve : 0.0
  13 0.000000e+00 # mu- : 0.0
  14 0.000000e+00 # vm : 0.0
  16 0.000000e+00 # vt : 0.0
  21 0.000000e+00 # g : 0.0
  22 0.000000e+00 # a : 0.0
  24 8.041900e+01 # w+ : cmath.sqrt(MZ__exp__2/2. + cmath.sqrt(MZ__exp__4/4. - (aEW*cmath.pi*MZ__exp__2)/(Gf*sqrt__2)))

###################################
## INFORMATION FOR SMINPUTS
###################################
Block sminputs
    1 1.325070e+02 # aEWM1
    2 1.166390e-05 # Gf
    3 1.180000e-01 # aS (Note that Parameter not used if you use a PDF set)

###################################
## INFORMATION FOR YUKAWA
###################################
Block yukawa
    6 1.730000e+02 # ymt
   15 1.777000e+00 # ymtau

###################################
## INFORMATION FOR DECAY
###################################
DECAY 6 1.491500e+00 # WT
DECAY 23 2.441404e+00 # WZ
DECAY 24 2.047600e+00 # WW
DECAY 25 6.382339e-03 # WH
## Dependent parameters, given by model restrictions.
## Those values should be edited following the
## analytical expression. MG5 ignores those values
## but they are important for interfacing the output of MG5
## to external program such as Pythia.
DECAY 1 0.000000e+00 # d : 0.0
DECAY 2 0.000000e+00 # u : 0.0
DECAY 3 0.000000e+00 # s : 0.0
DECAY 4 0.000000e+00 # c : 0.0
DECAY 5 0.000000e+00 # b : 0.0
DECAY 11 0.000000e+00 # e- : 0.0
DECAY 12 0.000000e+00 # ve : 0.0
DECAY 13 0.000000e+00 # mu- : 0.0
DECAY 14 0.000000e+00 # vm : 0.0
DECAY 15 0.000000e+00 # ta- : 0.0
DECAY 16 0.000000e+00 # vt : 0.0
DECAY 21 0.000000e+00 # g : 0.0
DECAY 22 0.000000e+00 # a : 0.0
#*********************************************************************
# MadGraph5_aMC@NLO *
# *
# run_card.dat MadEvent *
# *
# This file is used to set the parameters of the run. *
# *
# Some notation/conventions: *
# *
# Lines starting with a '# ' are info or comments *
# *
# mind the format: value = variable ! comment *
# *
# To display more options, you can type the command: *
# update to_full *
#*********************************************************************
#
#*********************************************************************
# Tag name for the run (one word) *
#*********************************************************************
  tag_1 = run_tag ! name of the run
#*********************************************************************
# Number of events and rnd seed *
# Warning: Do not generate more than 1M events in a single run *
#*********************************************************************
  10000 = nevents ! Number of unweighted events requested
  0 = iseed ! rnd seed (0=assigned automatically=default))
#*********************************************************************
# Collider type and energy *
# lpp: 0=No PDF, 1=proton, -1=antiproton, 2=photon from proton, *
# 3=photon from electron, 4=photon from muon *
#*********************************************************************
  1 = lpp1 ! beam 1 type
  1 = lpp2 ! beam 2 type
  6500.0 = ebeam1 ! beam 1 total energy in GeV
  6500.0 = ebeam2 ! beam 2 total energy in GeV
# To see polarised beam options: type "update beam_pol"

#*********************************************************************
# PDF CHOICE: this automatically fixes also alpha_s and its evol. *
#*********************************************************************
  nn23lo1 = pdlabel ! PDF set
  230000 = lhaid ! if pdlabel=lhapdf, this is the lhapdf number
# To see heavy ion options: type "update ion_pdf"
#*********************************************************************
# Renormalization and factorization scales *
#*********************************************************************
  False = fixed_ren_scale ! if .true. use fixed ren scale
  False = fixed_fac_scale ! if .true. use fixed fac scale
  91.188 = scale ! fixed ren scale
  91.188 = dsqrt_q2fact1 ! fixed fact scale for pdf1
  91.188 = dsqrt_q2fact2 ! fixed fact scale for pdf2
  -1 = dynamical_scale_choice ! Choose one of the preselected dynamical choices
  1.0 = scalefact ! scale factor for event-by-event scales
#*********************************************************************
# Type and output format
#*********************************************************************
  False = gridpack !True = setting up the grid pack
  -1.0 = time_of_flight ! threshold (in mm) below which the invariant livetime is not written (-1 means not written)
  average = event_norm ! average/sum. Normalization of the weight in the LHEF
# To see MLM/CKKW merging options: type "update MLM" or "update CKKW"

#*********************************************************************
#
#*********************************************************************
# Phase-Space Optimization strategy (basic options)
#*********************************************************************
  0 = nhel ! using helicities importance sampling or not.
                             ! 0: sum over helicity, 1: importance sampling
  2 = sde_strategy ! default integration strategy (hep-ph/2021.00773)
                             ! 1 is old strategy (using amp square)
        ! 2 is new strategy (using only the denominator)
# To see advanced option for Phase-Space optimization: type "update psoptim"
#*********************************************************************
# Generation bias, check the wiki page below for more information: *
# 'cp3.irmp.ucl.ac.be/projects/madgraph/wiki/LOEventGenerationBias' *
#*********************************************************************
  None = bias_module ! Bias type of bias, [None, ptj_bias, -custom_folder-]
  {} = bias_parameters ! Specifies the parameters of the module.
#
#*******************************
# Parton level cuts definition *
#*******************************
#
#
#*********************************************************************
# BW cutoff (M+/-bwcutoff*Gamma) ! Define on/off-shell for "$" and decay
#*********************************************************************
  15.0 = bwcutoff ! (M+/-bwcutoff*Gamma)
#*********************************************************************
# Standard Cuts *
#*********************************************************************
# Minimum and maximum pt's (for max, -1 means no cut) *
#*********************************************************************
  10.0 = ptj ! minimum pt for the jets
  10.0 = ptl ! minimum pt for the charged leptons
  -1.0 = ptjmax ! maximum pt for the jets
  -1.0 = ptlmax ! maximum pt for the charged leptons
  {} = pt_min_pdg ! pt cut for other particles (use pdg code). Applied on particle and anti-particle
  {} = pt_max_pdg ! pt cut for other particles (syntax e.g. {6: 100, 25: 50})
#
# For display option for energy cut in the partonic center of mass frame type 'update ecut'
#
#*********************************************************************
# Maximum and minimum absolute rapidity (for max, -1 means no cut) *
#*********************************************************************
  -1.0 = etaj ! max rap for the jets
  2.4 = etal ! max rap for the charged leptons
  0.0 = etalmin ! main rap for the charged leptons
  {} = eta_min_pdg ! rap cut for other particles (use pdg code). Applied on particle and anti-particle
  {} = eta_max_pdg ! rap cut for other particles (syntax e.g. {6: 2.5, 23: 5})
#*********************************************************************
# Minimum and maximum DeltaR distance *
#*********************************************************************
  0.0 = drll ! min distance between leptons
  0.0 = drjl ! min distance between jet and lepton
  -1.0 = drllmax ! max distance between leptons
  -1.0 = drjlmax ! max distance between jet and lepton
#*********************************************************************
# Minimum and maximum invariant mass for pairs *
#*********************************************************************
  0.0 = mmll ! min invariant mass of l+l- (same flavour) lepton pair
  -1.0 = mmllmax ! max invariant mass of l+l- (same flavour) lepton pair
  {} = mxx_min_pdg ! min invariant mass of a pair of particles X/X~ (e.g. {6:250})
  {'default': False} = mxx_only_part_antipart ! if True the invariant mass is applied only
                       ! to pairs of particle/antiparticle and not to pairs of the same pdg codes.
 #*********************************************************************
 # Minimum and maximum invariant mass for all letpons *
 #*********************************************************************
  0.0 = mmnl ! min invariant mass for all letpons (l+- and vl)
  -1.0 = mmnlmax ! max invariant mass for all letpons (l+- and vl)
 #*********************************************************************
 # Minimum and maximum pt for 4-momenta sum of leptons / neutrino *
 # for pair of lepton includes only same flavor, opposite charge
 #*********************************************************************
  0.0 = ptllmin ! Minimum pt for 4-momenta sum of leptons(l and vl)
  -1.0 = ptllmax ! Maximum pt for 4-momenta sum of leptons(l and vl)
#*********************************************************************
# Inclusive cuts *
#*********************************************************************
  0.0 = xptl ! minimum pt for at least one charged lepton
 #*********************************************************************
 # Control the pt's of leptons sorted by pt *
 #*********************************************************************
  0.0 = ptl1min ! minimum pt for the leading lepton in pt
  0.0 = ptl2min ! minimum pt for the second lepton in pt
  -1.0 = ptl1max ! maximum pt for the leading lepton in pt
  -1.0 = ptl2max ! maximum pt for the second lepton in pt
#*********************************************************************
# maximal pdg code for quark to be considered as a light jet *
# (otherwise b cuts are applied) *
#*********************************************************************
  5 = maxjetflavor ! Maximum jet pdg code
#*********************************************************************
#
#*********************************************************************
# Store info for systematics studies *
# WARNING: Do not use for interference type of computation *
#*********************************************************************
  True = use_syst ! Enable systematics studies
#
  systematics = systematics_program ! none, systematics [python], SysCalc [depreceted, C++]
  ['--mur=0.5,1,2', '--muf=0.5,1,2', '--pdf=errorset'] = systematics_arguments ! see: https://cp3.irmp.ucl.ac.be/projects/madgraph/wiki/Systematics#Systematicspythonmodule
# Syscalc is deprecated but to see the associate options type'update syscalc'

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

Ok,

This would deserve to push a 2.9.14 release then.
This seems to be related to the change within 2.9.13 for reducing the issue of the growing number of thread during scan.
But it seems that this create this issue (that occurs when the second refine is not fully bypass but that no job is needed anyway for such second refine)

Cheers,

Olivier

PS: a patch is available here:
https://github.com/mg5amcnlo/mg5amcnlo/commit/09c49507d9115f14065d233cf8fe451ad7138fe2

Revision history for this message
Won Jun (wjun27) said :
#4

Thanks a lot Olivier!
The patch solved the problem.

Best regards,
Won

Revision history for this message
Won Jun (wjun27) said :
#5

Thanks Olivier Mattelaer, that solved my question.

Revision history for this message
Arman Korajac (armankorajac) said :
#6

Dear Won Jun, dear Olivier,

thanks for opening up this thread. I had the same problem. Using the patch/downloading the newest version still did not quite resolve the issue, but setting in the mg5_configuration file the machine as a single-core helped to resolve the problem. Just wanted to write that up, in case somebody still is not able to run MadGraph v2.9.14.