error in systematic calc with LO-matching

Asked by Sung Hak Lim

Dear MG5 team,

We are trying to use systematics error calculation module.

We tried the module with MLM matched sample, for example

 generate p p > t t~
 add process p p > t t~ j

for others, we use default in MG5 2.5.4 run_card.dat .

The error message is

WARNING: program /usr/bin/python -O /home/starlight/mgoutput/ttbarj_syst/bin/internal/systematics.py unweighted_events.lhe.gz ./tmp_1_unweighted_events.lhe.gz --from_card=internal --start_event=2500 --stop_event=5000 --result=./log_sys_1.txt --lhapdf_config=/home/starlight/local/bin/lhapdf-config launch ends with non zero status: 1. Stop all computation
INFO: Running Systematics computation
INFO: # events generated with PDF: NNPDF23_lo_as_0130_qed (247000)
INFO: #Will Compute 235 weights per event.
INFO: # currently at event 0 [elapsed time: 0.014 s]
Command "launch" interrupted with error:
AttributeError : 'NoneType' object has no attribute 'group'
Please report this bug on https://bugs.launchpad.net/mg5amcnlo
More information is found in '/home/starlight/mgoutput/ttbarj_syst/run_05_tag_1_debug.log'.
Please attach this file to your report.

It seems this error appears from regex parser in Event::parse_lo_weight in lhe_parser.py .

In the regex module in Event.loweight_pattern, it require one integer argument within <asrwt> </asrwt>

For example, if we do following LO event generation,

   generate p p > t t~

"text" variable in there contains

<rscale> 2 0.49988407E+03</rscale>
<asrwt>0</asrwt>
<pdfrwt beam="1"> 1 21 0.94808665E-01 0.49988407E+03</pdfrwt>
<pdfrwt beam="2"> 1 21 0.11028017E+00 0.49988407E+03</pdfrwt>
<totfact> 0.49484867E+02</totfact>

so regex module can parse this text. However, in MLM matching case, we got "text" variable

<rscale> 2 0.22576653E+03</rscale>
<asrwt> 1 0.35256304E+02</asrwt>
<pdfrwt beam="1"> 1 21 0.56545853E-01 0.22576653E+03</pdfrwt>
<pdfrwt beam="2"> 1 21 0.26650410E+00 0.35256304E+02</pdfrwt>
<totfact> 0.46029675E-01</totfact>

so regex module returns None.

Is this a bug?

Have a nice day!

Best wishes,
Sung Hak Lim and Amit Chakraborty

Question information

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

Hi,

That’s indeed a bug:
You can find the associated patch here:
https://answers.launchpad.net/mg5amcnlo/+question/620276

Cheers and thanks,

Olivier

> On 26 Apr 2017, at 08:08, Sung Hak Lim <email address hidden> wrote:
>
> New question #628596 on MadGraph5_aMC@NLO:
> https://answers.launchpad.net/mg5amcnlo/+question/628596
>
> Dear MG5 team,
>
> We are trying to use systematics error calculation module.
>
> We tried the module with MLM matched sample, for example
>
> generate p p > t t~
> add process p p > t t~ j
>
> for others, we use default in MG5 2.5.4 run_card.dat .
>
> The error message is
>
> WARNING: program /usr/bin/python -O /home/starlight/mgoutput/ttbarj_syst/bin/internal/systematics.py unweighted_events.lhe.gz ./tmp_1_unweighted_events.lhe.gz --from_card=internal --start_event=2500 --stop_event=5000 --result=./log_sys_1.txt --lhapdf_config=/home/starlight/local/bin/lhapdf-config launch ends with non zero status: 1. Stop all computation
> INFO: Running Systematics computation
> INFO: # events generated with PDF: NNPDF23_lo_as_0130_qed (247000)
> INFO: #Will Compute 235 weights per event.
> INFO: # currently at event 0 [elapsed time: 0.014 s]
> Command "launch" interrupted with error:
> AttributeError : 'NoneType' object has no attribute 'group'
> Please report this bug on https://bugs.launchpad.net/mg5amcnlo
> More information is found in '/home/starlight/mgoutput/ttbarj_syst/run_05_tag_1_debug.log'.
> Please attach this file to your report.
>
> It seems this error appears from regex parser in Event::parse_lo_weight in lhe_parser.py .
>
> In the regex module in Event.loweight_pattern, it require one integer argument within <asrwt> </asrwt>
>
> For example, if we do following LO event generation,
>
> generate p p > t t~
>
> "text" variable in there contains
>
> <rscale> 2 0.49988407E+03</rscale>
> <asrwt>0</asrwt>
> <pdfrwt beam="1"> 1 21 0.94808665E-01 0.49988407E+03</pdfrwt>
> <pdfrwt beam="2"> 1 21 0.11028017E+00 0.49988407E+03</pdfrwt>
> <totfact> 0.49484867E+02</totfact>
>
> so regex module can parse this text. However, in MLM matching case, we got "text" variable
>
> <rscale> 2 0.22576653E+03</rscale>
> <asrwt> 1 0.35256304E+02</asrwt>
> <pdfrwt beam="1"> 1 21 0.56545853E-01 0.22576653E+03</pdfrwt>
> <pdfrwt beam="2"> 1 21 0.26650410E+00 0.35256304E+02</pdfrwt>
> <totfact> 0.46029675E-01</totfact>
>
> so regex module returns None.
>
> Is this a bug?
>
> Have a nice day!
>
> Best wishes,
> Sung Hak Lim and Amit Chakraborty
>
>
>
>
>
>
>
>
>
> --
> You received this question notification because you are an answer
> contact for MadGraph5_aMC@NLO.

Revision history for this message
Sung Hak Lim (sunghak-lim) said :
#2

Thanks Olivier Mattelaer, that solved my question.