Cannot find Partials0.lhe.gz when generating p p > t t~ j j

Asked by Eric Culbertson

Hello, I am trying to generate a sample of p p > t t~ j j using version 2.4.3. At the "combine" stage, I get the following error:

generate_events run_01
Traceback (most recent call last):
  File "/nv/blue/cdw9bf/MG5_aMC_v2_4_3/madgraph/interface/extended_cmd.py", line 1011, in onecmd
    return self.onecmd_orig(line, **opt)
  File "/nv/blue/cdw9bf/MG5_aMC_v2_4_3/madgraph/interface/extended_cmd.py", line 966, in onecmd_orig
    return func(arg, **opt)
  File "/nv/blue/cdw9bf/MG5_aMC_v2_4_3/madgraph/interface/madevent_interface.py", line 2015, in do_generate_events
    self.exec_cmd('combine_events', postcmd=False)
  File "/nv/blue/cdw9bf/MG5_aMC_v2_4_3/madgraph/interface/extended_cmd.py", line 1037, in exec_cmd
    stop = Cmd.onecmd_orig(current_interface, line, **opt)
  File "/nv/blue/cdw9bf/MG5_aMC_v2_4_3/madgraph/interface/extended_cmd.py", line 966, in onecmd_orig
    return func(arg, **opt)
  File "/nv/blue/cdw9bf/MG5_aMC_v2_4_3/madgraph/interface/madevent_interface.py", line 3024, in do_combine_events
    os.remove(pjoin(self.me_dir, "Events", self.run_name, "partials%s.lhe.gz" % i))
OSError: [Errno 2] No such file or directory: '/nv/blue/cdw9bf/test_jet_1/Events/run_01/partials0.lhe.gz'
Related File: /nv/blue/cdw9bf/test_jet_1/Events/run_01/partials0.lhe.gz

Any help would be greatly appreciated.

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,

Thanks a lot for this bug report.
Sadly enough, I’m not able to reproduce it. So I will not be able to provide a fix right away and probably need some help from you.

The good news is that I have a theory for this bug.
My theory is that either you do not have python linked to zlib library or that the file /nv/blue/cdw9bf/test_jet_1/Events/run_01/partials0.lhe.gz
is more than 4Gb which makes the gzip support of python to crash.

In both case, a work around is in place in MG, by simply gzipping the file before running the associate code on it.
So if this is your case, you should have a file named:
> /nv/blue/cdw9bf/test_jet_1/Events/run_01/partials0.lhe
on your system.

In that case, a simple(bit dirty) fix should be to simply comment the following lines:

> /nv/blue/cdw9bf/MG5_aMC_v2_4_3/madgraph/interface/madevent_interface.py line 3024

> if partials:
> misc.sprint("used partials")
> for i in range(partials):
> os.remove(pjoin(self.me_dir, "Events", self.run_name, "partials%s.lhe.gz" % i))
>

Cheers,

Olivier

> On Sep 7, 2016, at 21:22, Eric Culbertson <email address hidden> wrote:
>
> New question #386141 on MadGraph5_aMC@NLO:
> https://answers.launchpad.net/mg5amcnlo/+question/386141
>
> Hello, I am trying to generate a sample of p p > t t~ j j using version 2.4.3. At the "combine" stage, I get the following error:
>
> generate_events run_01
> Traceback (most recent call last):
> File "/nv/blue/cdw9bf/MG5_aMC_v2_4_3/madgraph/interface/extended_cmd.py", line 1011, in onecmd
> return self.onecmd_orig(line, **opt)
> File "/nv/blue/cdw9bf/MG5_aMC_v2_4_3/madgraph/interface/extended_cmd.py", line 966, in onecmd_orig
> return func(arg, **opt)
> File "/nv/blue/cdw9bf/MG5_aMC_v2_4_3/madgraph/interface/madevent_interface.py", line 2015, in do_generate_events
> self.exec_cmd('combine_events', postcmd=False)
> File "/nv/blue/cdw9bf/MG5_aMC_v2_4_3/madgraph/interface/extended_cmd.py", line 1037, in exec_cmd
> stop = Cmd.onecmd_orig(current_interface, line, **opt)
> File "/nv/blue/cdw9bf/MG5_aMC_v2_4_3/madgraph/interface/extended_cmd.py", line 966, in onecmd_orig
> return func(arg, **opt)
> File "/nv/blue/cdw9bf/MG5_aMC_v2_4_3/madgraph/interface/madevent_interface.py", line 3024, in do_combine_events
> os.remove(pjoin(self.me_dir, "Events", self.run_name, "partials%s.lhe.gz" % i))
> OSError: [Errno 2] No such file or directory: '/nv/blue/cdw9bf/test_jet_1/Events/run_01/partials0.lhe.gz'
> Related File: /nv/blue/cdw9bf/test_jet_1/Events/run_01/partials0.lhe.gz
>
>
> Any help would be greatly appreciated.
>
> --
> You received this question notification because you are an answer
> contact for MadGraph5_aMC@NLO.

Can you help with this problem?

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

To post a message you must log in.