lhe_parser.py does not see unweighted_events.lhe.gz in MG5_aMC_v2_5_0_beta2

Asked by Richard Ruiz on 2016-09-30

Hi Olivier,

In MG5_aMC_v2_5_0_beta2, lhe_parser.py is telling me that unweighted_events.lhe.gz does not exist. I am not even sure where to begin debugging on this issue. My setup is below. Beta2 was downloaded this afternoon. Suggestions?

Best,
Richard

MG5_aMC>generate e+ e- > z > b b~; output Test_ee_z_bb; launch
>shower=PYTHIA8

In return, I get the following:
INFO: Combining Events
  === Results Summary for run: run_01 tag: tag_1 ===

     Cross-section : 0.05605 +- 2.075e-05 pb
     Nb of events : 10000

INFO: Running Systematics computation
INFO: Idle: 1, Running: 3, Completed: 0 [ current time: 19h14 ]
WARNING: program /usr/bin/python -O /home/richard/Scripts/MadGraph/MG5_aMC_v2_5_0_beta2/Test_ee_z_bb/bin/internal/systematics.py unweighted_events.lhe.gz ./tmp_2_unweighted_events.lhe.gz --from_card=internal --start_event=5000 --stop_event=7500 --result=./log_sys_2.txt --lhapdf_config=lhapdf-config launch ends with non zero status: 1. Stop all computation
Command "generate_events run_01" interrupted with error:
Exception : program /usr/bin/python -O /home/richard/Scripts/MadGraph/MG5_aMC_v2_5_0_beta2/Test_ee_z_bb/bin/internal/systematics.py unweighted_events.lhe.gz ./tmp_2_unweighted_events.lhe.gz --from_card=internal --start_event=5000 --stop_event=7500 --result=./log_sys_2.txt --lhapdf_config=lhapdf-config launch ends with non zero status: 1. Stop all computation
Please report this bug on https://bugs.launchpad.net/mg5amcnlo
More information is found in '/home/richard/Scripts/MadGraph/MG5_aMC_v2_5_0_beta2/Test_ee_z_bb/run_01_tag_1_debug.log'.
Please attach this file to your report.

A little more information:
MG5_aMC>shell /usr/bin/python -O /.../MG5_aMC_v2_5_0_beta2/Test_ee_z_bb/bin/internal/systematics.py unweighted_events.lhe.gz ./tmp_2_unweighted_events.lhe.gz --from_card=internal --start_event=5000 --stop_event=7500 --result=./log_sys_2.txt --lhapdf_config=lhapdf-config
root: running shell command: /usr/bin/python -O /.../MG5_aMC_v2_5_0_beta2/Test_ee_z_bb/bin/internal/systematics.py unweighted_events.lhe.gz ./tmp_2_unweighted_events.lhe.gz --from_card=internal --start_event=5000 --stop_event=7500 --result=./log_sys_2.txt --lhapdf_config=lhapdf-config
Traceback (most recent call last):
  File "/.../MG5_aMC_v2_5_0_beta2/Test_ee_z_bb/bin/internal/systematics.py", line 764, in <module>
    call_systematics(sys.argv[1:])
  File "/.../MG5_aMC_v2_5_0_beta2/Test_ee_z_bb/bin/internal/systematics.py", line 719, in call_systematics
    lhe = lhe_parser.EventFile(input)
  File "/.../MG5_aMC_v2_5_0_beta2/Test_ee_z_bb/bin/internal/lhe_parser.py", line 177, in __init__
    super(EventFile, self).__init__(path, mode, *args, **opt)
  File "/usr/lib/python2.7/gzip.py", line 94, in __init__
    fileobj = self.myfileobj = __builtin__.open(filename, mode or 'rb')
IOError: [Errno 2] No such file or directory: 'unweighted_events.lhe.gz'
MG5_aMC>

More so:
MG5_aMC>shell ls Test_ee_z_bb/Events/run_01
root: running shell command: ls Test_ee_z_bb/Events/run_01
log_sys_0.txt log_sys_2.txt parton_systematics.log tmp_0_unweighted_events.lhe.gz tmp_2_unweighted_events.lhe.gz unweighted_events.lhe.gz
log_sys_1.txt log_sys_3.txt run_01_tag_1_banner.txt tmp_1_unweighted_events.lhe.gz tmp_3_unweighted_events.lhe.gz

Lastly:MG5_aMC>shell more Test_ee_z_bb/Events/run_01/log_sys_*.txt
root: running shell command: more Test_ee_z_bb/Events/run_01/log_sys_*.txt
::::::::::::::
Test_ee_z_bb/Events/run_01/log_sys_0.txt
::::::::::::::
::::::::::::::
Test_ee_z_bb/Events/run_01/log_sys_1.txt
::::::::::::::
::::::::::::::
Test_ee_z_bb/Events/run_01/log_sys_2.txt
::::::::::::::
::::::::::::::
Test_ee_z_bb/Events/run_01/log_sys_3.txt
::::::::::::::

Question information

Language:
English Edit question
Status:
Open
For:
MadGraph5_aMC@NLO Edit question
Assignee:
Olivier Mattelaer Edit question
Last query:
2016-10-03
Last reply:
2016-09-30

I am sorry to hear that you are encountering all sorts of issues.

It is a good idea to try to run the systematics script (i.e. replacement to
SysCalc) independently in order to understand what went wrong.
However, you must do so from within your current Event/run_<xxx> directory
so that the corresponding unweighted_events.lhe.gz file can be found.

Alternatively, you can also launch the systematics run only on the events
that have been generated. You can do so with

./bin/mg5
MG5_aMC> launch <PROC_OUTPUT> -i
PROC_OUTPUT> systematics run_<xxx>

Hopefully, the independent run above can provide more information on what
went wrong exactly.

On Fri, Sep 30, 2016 at 11:27 AM, Richard Ruiz <
<email address hidden>> wrote:

> New question #402622 on MadGraph5_aMC@NLO:
> https://answers.launchpad.net/mg5amcnlo/+question/402622
>
> Hi Olivier,
>
> In MG5_aMC_v2_5_0_beta2, lhe_parser.py is telling me that
> unweighted_events.lhe.gz does not exist. I am not even sure where to begin
> debugging on this issue. My setup is below. Beta2 was downloaded this
> afternoon. Suggestions?
>
> Best,
> Richard
>
> MG5_aMC>generate e+ e- > z > b b~; output Test_ee_z_bb; launch
> >shower=PYTHIA8
>
> In return, I get the following:
> INFO: Combining Events
> === Results Summary for run: run_01 tag: tag_1 ===
>
> Cross-section : 0.05605 +- 2.075e-05 pb
> Nb of events : 10000
>
> INFO: Running Systematics computation
> INFO: Idle: 1, Running: 3, Completed: 0 [ current time: 19h14 ]
> WARNING: program /usr/bin/python -O /home/richard/Scripts/
> MadGraph/MG5_aMC_v2_5_0_beta2/Test_ee_z_bb/bin/internal/systematics.py
> unweighted_events.lhe.gz ./tmp_2_unweighted_events.lhe.gz
> --from_card=internal --start_event=5000 --stop_event=7500
> --result=./log_sys_2.txt --lhapdf_config=lhapdf-config launch ends with non
> zero status: 1. Stop all computation
> Command "generate_events run_01" interrupted with error:
> Exception : program /usr/bin/python -O /home/richard/Scripts/
> MadGraph/MG5_aMC_v2_5_0_beta2/Test_ee_z_bb/bin/internal/systematics.py
> unweighted_events.lhe.gz ./tmp_2_unweighted_events.lhe.gz
> --from_card=internal --start_event=5000 --stop_event=7500
> --result=./log_sys_2.txt --lhapdf_config=lhapdf-config launch ends with non
> zero status: 1. Stop all computation
> Please report this bug on https://bugs.launchpad.net/mg5amcnlo
> More information is found in '/home/richard/Scripts/
> MadGraph/MG5_aMC_v2_5_0_beta2/Test_ee_z_bb/run_01_tag_1_debug.log'.
> Please attach this file to your report.
>
>
>
>
> A little more information:
> MG5_aMC>shell /usr/bin/python -O /.../MG5_aMC_v2_5_0_beta2/
> Test_ee_z_bb/bin/internal/systematics.py unweighted_events.lhe.gz
> ./tmp_2_unweighted_events.lhe.gz --from_card=internal --start_event=5000
> --stop_event=7500 --result=./log_sys_2.txt --lhapdf_config=lhapdf-config
> root: running shell command: /usr/bin/python -O /.../MG5_aMC_v2_5_0_beta2/
> Test_ee_z_bb/bin/internal/systematics.py unweighted_events.lhe.gz
> ./tmp_2_unweighted_events.lhe.gz --from_card=internal --start_event=5000
> --stop_event=7500 --result=./log_sys_2.txt --lhapdf_config=lhapdf-config
> Traceback (most recent call last):
> File "/.../MG5_aMC_v2_5_0_beta2/Test_ee_z_bb/bin/internal/systematics.py",
> line 764, in <module>
> call_systematics(sys.argv[1:])
> File "/.../MG5_aMC_v2_5_0_beta2/Test_ee_z_bb/bin/internal/systematics.py",
> line 719, in call_systematics
> lhe = lhe_parser.EventFile(input)
> File "/.../MG5_aMC_v2_5_0_beta2/Test_ee_z_bb/bin/internal/lhe_parser.py",
> line 177, in __init__
> super(EventFile, self).__init__(path, mode, *args, **opt)
> File "/usr/lib/python2.7/gzip.py", line 94, in __init__
> fileobj = self.myfileobj = __builtin__.open(filename, mode or 'rb')
> IOError: [Errno 2] No such file or directory: 'unweighted_events.lhe.gz'
> MG5_aMC>
>
>
>
> More so:
> MG5_aMC>shell ls Test_ee_z_bb/Events/run_01
> root: running shell command: ls Test_ee_z_bb/Events/run_01
> log_sys_0.txt log_sys_2.txt parton_systematics.log
> tmp_0_unweighted_events.lhe.gz tmp_2_unweighted_events.lhe.gz
> unweighted_events.lhe.gz
> log_sys_1.txt log_sys_3.txt run_01_tag_1_banner.txt
> tmp_1_unweighted_events.lhe.gz tmp_3_unweighted_events.lhe.gz
>
>
> Lastly:MG5_aMC>shell more Test_ee_z_bb/Events/run_01/log_sys_*.txt
> root: running shell command: more Test_ee_z_bb/Events/run_01/log_sys_*.txt
> ::::::::::::::
> Test_ee_z_bb/Events/run_01/log_sys_0.txt
> ::::::::::::::
> ::::::::::::::
> Test_ee_z_bb/Events/run_01/log_sys_1.txt
> ::::::::::::::
> ::::::::::::::
> Test_ee_z_bb/Events/run_01/log_sys_2.txt
> ::::::::::::::
> ::::::::::::::
> Test_ee_z_bb/Events/run_01/log_sys_3.txt
> ::::::::::::::
>
>
>
>
> --
> You received this question notification because you are an answer
> contact for MadGraph5_aMC@NLO.
>

--
Valentin

Waiting for further information regarding some checks requested on the user end.

Richard Ruiz (rruiz) said : #3

Hi Valentin,

No need to apologize! Olivier asked me to beta-test and break things.

Unfortunately, running the suggested commands gave the same error output. However, running the problematic python command in the run_01 directory gave a bit more information:

$ /usr/bin/python -O /.../MG5_aMC_v2_5_0_beta2/Test_ee_z_bb/bin/internal/systematics.py unweighted_events.lhe.gz ./tmp_1_unweighted_events.lhe.gz --start_event=2500 --stop_event=5000 --result=./log_sys_1.txt --lhapdf_config=lhapdf-config
#starting from event #2500
#stopping at event #5000
#Will Compute 44 weights per event.
Traceback (most recent call last):
  File "/.../MG5_aMC_v2_5_0_beta2/Test_ee_z_bb/bin/internal/systematics.py", line 764, in <module>
    call_systematics(sys.argv[1:])
  File "/.../MG5_aMC_v2_5_0_beta2/Test_ee_z_bb/bin/internal/systematics.py", line 758, in call_systematics
    obj = Systematics(input, output, log=log,**opts)
  File "/.../MG5_aMC_v2_5_0_beta2/Test_ee_z_bb/bin/internal/systematics.py", line 192, in __init__
    from models.model_reader import Alphas_Runner
ImportError: No module named models.model_reader

However, I am unsure if this output is related to running systematics.py outside of the MG environment.

Best,
Richard

Can you help with this problem?

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

To post a message you must log in.