MG5 Pythia Interface: cannot stat `tmp'

Asked by Shubham Gantayet on 2020-03-12

Running the Pythia8 option during event generation (for any process) produces the following warning (v2.7.1):

INFO: Running Pythia8 [arXiv:1410.3012]
Splitting .lhe event file for PY8 parallelization...
Submitting Pythia8 jobs...
Pythia8 shower jobs: 0 Idle, 8 Running, 0 Done [0 second]
Pythia8 shower jobs: 0 Idle, 7 Running, 1 Done [26 seconds]
Pythia8 shower jobs: 0 Idle, 6 Running, 2 Done [27 seconds]
Pythia8 shower jobs: 0 Idle, 0 Running, 8 Done [30 seconds]
Merging results from the split PY8 runs...
mv: cannot stat `tmp': No such file or directory
mv: cannot stat `tmp': No such file or directory
mv: cannot stat `tmp': No such file or directory
mv: cannot stat `tmp': No such file or directory
mv: cannot stat `tmp': No such file or directory
mv: cannot stat `tmp': No such file or directory
mv: cannot stat `tmp': No such file or directory
mv: cannot stat `tmp': No such file or directory
INFO: Pythia8 shower finished after 35 seconds.
  === Results Summary for run: run_01 tag: tag_1 ===

     Cross-section : 0.006759 +- 4.916e-05 pb
     Nb of events : 1000

INFO: storing files of previous run
gzipping output file: unweighted_events.lhe
INFO: Storing Pythia8 files of previous run
INFO: Done
quit

The number of events seem to be correct in the pythia hepmc file, so wondering if this is just a bug?

Thanks.

Question information

Language:
English Edit question
Status:
Answered
For:
MadGraph5_aMC@NLO Edit question
Assignee:
No assignee Edit question
Last query:
2020-03-12
Last reply:
2020-03-13

HI,

Here is the patch. The issue is likely to be linked to some corruption of the header of the hepmc file.

Cheers and thanks,

Olivier

=== modified file 'madgraph/interface/madevent_interface.py'
--- madgraph/interface/madevent_interface.py 2020-03-09 15:47:02 +0000
+++ madgraph/interface/madevent_interface.py 2020-03-13 08:14:10 +0000
@@ -4667,7 +4667,7 @@
                             if pid == 0:
                                 os.system('head -n -1 %s | tail -n +%d > %s/tmpfile' %
                                           (hepmc_file, n_head, os.path.dirname(hepmc_file)))
- misc.call(['mv', 'tmp', os.path.basename(hepmc_file)], cwd=os.path.dirname(hepmc_file))
+ misc.call(['mv', 'tmpfile', os.path.basename(hepmc_file)], cwd=os.path.dirname(hepmc_file))
                             elif sys.platform == 'darwin':
                                 # sed on MAC has slightly different synthax than on
                                 os.system(' '.join(['sed','-i',"''","'%s;$d'"%

Can you help with this problem?

Provide an answer of your own, or ask Shubham Gantayet for more information if necessary.

To post a message you must log in.