MCatNLO for HERWIG6 fails

Asked by Jonna

Hi, I am currently generating p p > j j at NLO. When compiling MCatNLO for HERWIG6 the l get the following error:

/Users/pp_jj_NLO/MCatNLO/RUN_HERWIG6_3/shower.sh: line 44: 5645 Abort trap: 6 ./MCATNLO_$SHOWER\_EXE < MCATNLO_$SHOWER\_input > mcatnlo_run.log 2>&1
mv: rename events.lhe.hep to events.hep: No such file or directory
gzip: can't stat: events.hep (events.hep): No such file or directory
INFO: Idle: 0, Running: 0, Completed: 1 [ 0.62s ]
Error detected in "launch auto --name run_7"

The contents of my debug file is:

Traceback (most recent call last):
  File "/Users/opt/anaconda3/lib/python3.9/shutil.py", line 825, in move
    os.rename(src, real_dst)
FileNotFoundError: [Errno 2] No such file or directory: '/Users//pp_jj_NLO/MCatNLO/RUN_HERWIG6_3/events.hep.gz' -> '/Users/pp_jj_NLO/Events/run_7/events_HERWIG6_0.hep.gz'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/MadGraph5/MG5_aMC_v3_5_0_alpha/madgraph/interface/amcatnlo_run_interface.py", line 4095, in run_mcatnlo
    files.mv(os.path.join(rundir, 'events.%s.gz' % ext), hep_file)
  File "/Users/progs/MadGraph5/MG5_aMC_v3_5_0_alpha/madgraph/iolibs/files.py", line 186, in mv
    shutil.move(path1, path2)
  File "/Users/opt/anaconda3/lib/python3.9/shutil.py", line 845, in move
    copy_function(src, real_dst)
  File "/Users/opt/anaconda3/lib/python3.9/shutil.py", line 444, in copy2
    copyfile(src, dst, follow_symlinks=follow_symlinks)
  File "/Users/opt/anaconda3/lib/python3.9/shutil.py", line 264, in copyfile
    with open(src, 'rb') as fsrc:
FileNotFoundError: [Errno 2] No such file or directory: '/Users/pp_jj_NLO/MCatNLO/RUN_HERWIG6_3/events.hep.gz'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/MadGraph5/MG5_aMC_v3_5_0_alpha/madgraph/interface/extended_cmd.py", line 1544, in onecmd
    return self.onecmd_orig(line, **opt)
  File "/Users/MadGraph5/MG5_aMC_v3_5_0_alpha/madgraph/interface/extended_cmd.py", line 1493, in onecmd_orig
    return func(arg, **opt)
  File "/Users/MadGraph5/MG5_aMC_v3_5_0_alpha/madgraph/interface/amcatnlo_run_interface.py", line 1805, in do_launch
    self.run_mcatnlo(evt_file, options)
  File "/Users/MadGraph5/MG5_aMC_v3_5_0_alpha/madgraph/interface/amcatnlo_run_interface.py", line 4111, in run_mcatnlo
    raise aMCatNLOError('No file has been generated, an error occurred.'+\
madgraph.interface.amcatnlo_run_interface.aMCatNLOError: No file has been generated, an error occurred.

I am running this on macOS 13.2, with XCODE 14, on a MacBook Pro M1 (arm64-architecture).

Does anyone know why this error occurs?

Question information

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

Hi,

I have the same issue with the mac M1, so far I do not have a way to compile the code and all parton-shower (and lhapdf6) such
all possible functionality are working simultaneously.

One huge issue is that lhapdf6 is not working with arm correctly on mac m1 (lhapdf are claiming that this MG5 fault but this is not possible, so this should be a compiler related issue)

Cheers,

Olivier

Revision history for this message
Jonna (jonathanbaltazar) said :
#2

Hi Oliver,

Thank you for the response. So at moment, the only way to run the parton-showers is by using a different device?

Cheers, Jonathan.

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

Hi,

Yes, for the moment the best is to not use Mac M1 with the latest OS (the previous one was less problematic).
Many stuff can be working with such setup but clearly not everything.
I know this is a pity, but this is the situation right now.

If you find a way to hack the way all the code are compiled to make them all 100% compile for arm and in the process fix all the new issue related to the mac compiler, this will be usefull for the pheno community who likes to use such type of machine. I failed twice to do it (the first time, I think the only issue was lhapdf which was compiled correctly but not working as expected)

Cheers,

Olivier

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

This being said,
the following patch seems to help on my M1 for HERWIG6:
https://github.com/mg5amcnlo/mg5amcnlo/commit/7020967960081369638964eb50be0080f171de32

Can you help with this problem?

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

To post a message you must log in.