aMCatNLOError : An error occurred during reweight.

Asked by Khawla Jaffel on 2021-03-28

Hello experts,

I am trying to generate b-associated production ` p p > h2 > h3 z b b~ [QCD] ` but i get this error at the reweighting stage:
my mg version is 2.6.5

NFO: Idle: 0, Running: 0, Completed: 10
INFO: Idle: 0, Running: 0, Completed: 0 [ current time: 18h59 ]
INFO: Doing reweight
INFO: Idle: 8, Running: 1, Completed: 1
INFO: Idle: 7, Running: 1, Completed: 2
INFO: Idle: 6, Running: 1, Completed: 3
INFO: Idle: 5, Running: 1, Completed: 4
At line 893 of file handling_lhe_events.f (unit = 34, file = 'events.lhe')
Fortran runtime error: Input/output error

Error termination. Backtrace:
#0 0x7f8f0c2d04fd in next_record_w
    at ../../../libgfortran/io/transfer.c:3829
    #1 0x7f8f0c2d3102 in finalize_transfer
        at ../../../libgfortran/io/transfer.c:3984
        #2 0x4154a8 in ???
        #3 0x40b46f in ???
        #4 0x40c09b in ???
        #5 0x7f8f0ba58554 in ???
        #6 0x4085e6 in ???
        #7 0xffffffffffffffff in ???
        INFO: Idle: 4, Running: 1, Completed: 5
        INFO: Idle: 3, Running: 1, Completed: 6
        INFO: Idle: 2, Running: 1, Completed: 7
        INFO: Idle: 1, Running: 1, Completed: 8
        INFO: Idle: 0, Running: 1, Completed: 9
        INFO: Idle: 0, Running: 0, Completed: 10
        INFO: Idle: 0, Running: 0, Completed: 0 [ current time: 18h59 ]
        Error detected in "launch -n pilotrun"
        write debug file /eos/home-k/kjaffel/ZAAnalysis_run2/ZAPrivateProduction/genproductions/bin/MadGraph5_aMCatNLO/HToZATo2L2B_200p00_100p00_20p00_bbH4F_TuneCP5_13TeV-amcatnlo_pythia8/HToZATo2L2B_200p00_100p00_20p00_bbH4F_TuneCP5_13TeV-amcatnlo_pythia8_gridpack/work/processtmp/pilotrun_tag_1_debug.log
        If you need help with this issue please contact us on https://answers.launchpad.net/mg5amcnlo
        aMCatNLOError : An error occurred during reweight. Check the'reweight_xsec_events.output' files inside the 'SubProcesses/P*/G*/ directories for details
        quit
        INFO:
        finished pilot run
        cleaning unneeded files from gridpack
        Saving log file(s)
        Creating tarball
        Gridpack created successfully at /eos/user/k/kjaffel/ZAAnalysis_run2/ZAPrivateProduction/genproductions/bin/MadGraph5_aMCatNLO/HToZATo2L2B_200p00_100p00_20p00_bbH4F_TuneCP5_13TeV-amcatnlo_pythia8_slc7_amd64_gcc700_CMSSW_10_6_19_tarball.tar.xz
        End of job

here : pilotrun_tag_1_debug.log
launch -n pilotrun
Traceback (most recent call last):
  File "/eos/home-k/kjaffel/ZAAnalysis_run2/ZAPrivateProduction/genproductions/bin/MadGraph5_aMCatNLO/HToZATo2L2B_200p00_100p00_20p00_bbH4F_TuneCP5_13TeV-amcatnlo_pythia8/HToZATo2L2B_200p00_100p00_20p00_bbH4F_TuneCP5_13TeV-amcatnlo_pythia8_gridpack/work/processtmp/bin/internal/extended_cmd.py", line 1514, in onecmd
    return self.onecmd_orig(line, **opt)
  File "/eos/home-k/kjaffel/ZAAnalysis_run2/ZAPrivateProduction/genproductions/bin/MadGraph5_aMCatNLO/HToZATo2L2B_200p00_100p00_20p00_bbH4F_TuneCP5_13TeV-amcatnlo_pythia8/HToZATo2L2B_200p00_100p00_20p00_bbH4F_TuneCP5_13TeV-amcatnlo_pythia8_gridpack/work/processtmp/bin/internal/extended_cmd.py", line 1463, in onecmd_orig
    return func(arg, **opt)
  File "/eos/home-k/kjaffel/ZAAnalysis_run2/ZAPrivateProduction/genproductions/bin/MadGraph5_aMCatNLO/HToZATo2L2B_200p00_100p00_20p00_bbH4F_TuneCP5_13TeV-amcatnlo_pythia8/HToZATo2L2B_200p00_100p00_20p00_bbH4F_TuneCP5_13TeV-amcatnlo_pythia8_gridpack/work/processtmp/bin/internal/amcatnlo_run_interface.py", line 1687, in do_launch
    evt_file = self.run(mode, options)
  File "/eos/home-k/kjaffel/ZAAnalysis_run2/ZAPrivateProduction/genproductions/bin/MadGraph5_aMCatNLO/HToZATo2L2B_200p00_100p00_20p00_bbH4F_TuneCP5_13TeV-amcatnlo_pythia8/HToZATo2L2B_200p00_100p00_20p00_bbH4F_TuneCP5_13TeV-amcatnlo_pythia8_gridpack/work/processtmp/bin/internal/amcatnlo_run_interface.py", line 1937, in run
    return self.reweight_and_collect_events(options, mode, nevents, event_norm)
  File "/eos/home-k/kjaffel/ZAAnalysis_run2/ZAPrivateProduction/genproductions/bin/MadGraph5_aMCatNLO/HToZATo2L2B_200p00_100p00_20p00_bbH4F_TuneCP5_13TeV-amcatnlo_pythia8/HToZATo2L2B_200p00_100p00_20p00_bbH4F_TuneCP5_13TeV-amcatnlo_pythia8_gridpack/work/processtmp/bin/internal/amcatnlo_run_interface.py", line 3613, in reweight_and_collect_events
    scale_pdf_info = self.run_reweight(options['reweightonly'])
  File "/eos/home-k/kjaffel/ZAAnalysis_run2/ZAPrivateProduction/genproductions/bin/MadGraph5_aMCatNLO/HToZATo2L2B_200p00_100p00_20p00_bbH4F_TuneCP5_13TeV-amcatnlo_pythia8/HToZATo2L2B_200p00_100p00_20p00_bbH4F_TuneCP5_13TeV-amcatnlo_pythia8_gridpack/work/processtmp/bin/internal/amcatnlo_run_interface.py", line 4511, in run_reweight
    '\'SubProcesses/P*/G*/ directories for details')
aMCatNLOError: An error occurred during reweight. Check the'reweight_xsec_events.output' files inside the 'SubProcesses/P*/G*/ directories for details
Value of current Options:
              text_editor : None
              web_browser : None
        cluster_temp_path : /eos/user/k/kjaffel/ZAAnalysis_run2/ZAPrivateProduction/genproductions/bin/MadGraph5_aMCatNLO
                  timeout : 60
       cluster_local_path : /cvmfs/cms.cern.ch/slc7_amd64_gcc700/external/lhapdf/6.2.1-pafccj3/share/LHAPDF
            cluster_queue : condor_spool
         madanalysis_path : None
                   lhapdf : /cvmfs/cms.cern.ch/slc7_amd64_gcc700/external/lhapdf/6.2.1-pafccj3/share/LHAPDF/../../bin/lhapdf-config
             cluster_size : 100
           cluster_memory : None
                    pjfry : None
    cluster_status_update : (60, 30)
             cluster_time : None
            f2py_compiler : None
                    ninja : /eos/home-k/kjaffel/ZAAnalysis_run2/ZAPrivateProduction/genproductions/bin/MadGraph5_aMCatNLO/HToZATo2L2B_200p00_100p00_20p00_bbH4F_TuneCP5_13TeV-amcatnlo_pythia8/HToZATo2L2B_200p00_100p00_20p00_bbH4F_TuneCP5_13TeV-amcatnlo_pythia8_gridpack/work/MG5_aMC_v2_6_5/HEPTools/lib
               hepmc_path : None
             pythia8_path : None
                hwpp_path : None
   automatic_html_opening : False
       cluster_retry_wait : 30
             stdout_level : None
          pythia-pgs_path : None
                 mg5_path : /eos/home-k/kjaffel/ZAAnalysis_run2/ZAPrivateProduction/genproductions/bin/MadGraph5_aMCatNLO/HToZATo2L2B_200p00_100p00_20p00_bbH4F_TuneCP5_13TeV-amcatnlo_pythia8/HToZATo2L2B_200p00_100p00_20p00_bbH4F_TuneCP5_13TeV-amcatnlo_pythia8_gridpack/work/MG5_aMC_v2_6_5
                  td_path : None
             delphes_path : None
              thepeg_path : None
             cluster_type : cms_condor_spool
        madanalysis5_path : None
      exrootanalysis_path : None
         fortran_compiler : None
                  nb_core : 10
                  collier : /eos/home-k/kjaffel/ZAAnalysis_run2/ZAPrivateProduction/genproductions/bin/MadGraph5_aMCatNLO/HToZATo2L2B_200p00_100p00_20p00_bbH4F_TuneCP5_13TeV-amcatnlo_pythia8/HToZATo2L2B_200p00_100p00_20p00_bbH4F_TuneCP5_13TeV-amcatnlo_pythia8_gridpack/work/MG5_aMC_v2_6_5/HEPTools/lib
              auto_update : 0
         cluster_nb_retry : 3
               eps_viewer : None
             syscalc_path : None
                  fastjet : None
                    golem : None
             cpp_compiler : None
      notification_center : True
                 run_mode : 0

I past the 'reweight_xsec_events.output' files inside one of my SubProcesses/P*/G*/ in here ;
but it's absent for one of my sub-process , I keep submitting this job again and again but it doesn't seems to be a temporary issue running on cluster, I am still missing the reweight_xsec_events.output file for the same SubProcesses/P0_gg_h2_h3zbbx/GF2

==== LHAPDF6 USING DEFAULT-TYPE LHAGLUE INTERFACE ====
LHAPDF 6.2.1 loading /cvmfs/cms.cern.ch/slc7_amd64_gcc700/external/lhapdf/6.2.1-pafccj3/share/LHAPDF/NNPDF31_nnlo_as_0118_nf_4_mc_hessian/NNPDF31_nnlo_as_0118_nf_4_mc_hessian_0000.dat
NNPDF31_nnlo_as_0118_nf_4_mc_hessian PDF set, member #0, version 1; LHAPDF ID = 325500
Thanks for using LHAPDF 6.2.1. Please make sure to cite the paper:
  Eur.Phys.J. C75 (2015) 3, 132 (http://arxiv.org/abs/1412.7420)
 A PDF is used, so alpha_s(MZ) is going to be modified
 Old value of alpha_s from param_card: 0.11799999999999999
 New value of alpha_s from PDF lhapdf : 0.11266013434007299
 Enter event file name
 Enter 1 to save all cross sections on tape
       0 otherwise

 The events appear to be unweighted
  Will store the ratios of recomputed weights
  over reference weights
 ================================
 process combination map (specified per FKS dir):
  1 map 1
  1 inv. map 1
  2 map 1
  2 inv. map 1
  3 map 1
  3 inv. map 1
  4 map 1
  4 inv. map 1
  5 map 1 1 1 1
  5 inv. map 4
  6 map 1 1 1 1
  6 inv. map 4
  7 map 1 1 1 1
  7 inv. map 4
  8 map 1 1 1 1
  8 inv. map 4
 ================================

thanks,
Khawla

Question information

Language:
English Edit question
Status:
Answered
For:
MadGraph5_aMC@NLO Edit question
Assignee:
No assignee Edit question
Last query:
2021-03-28
Last reply:
2021-03-28

> I am trying to generate loop induced process ` p p > h2 > h3 z [QCD] ` but i get this error at the reweighting stage:
my mg version is 2.6.5

Are you sure that this is a loop induced process?
The log that you report are for NLO computation not for loop induced processes.
If you are running this within CMSSW, then the first point to check if that issue is not created by one of the many patch that are used by CMSSW since I have never heard about such type of confusion in the past.

Cheers,

Olivier

Otherwise your crash seemed to be related to an issue on some fortran library. So I would first check that the node on which you run is correctly configure and maybe try another fortran version to check such type of issue.

Cheers,

Olivier

Can you help with this problem?

Provide an answer of your own, or ask Khawla Jaffel for more information if necessary.

To post a message you must log in.