MG5 crashes while generating events

Bug #1495975 reported by Nishita
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
MadGraph5_aMC@NLO
Invalid
Undecided
Unassigned

Bug Description

Hello,

I'm trying to generate events using a modified model with an extra singlet using the latest (2.3.2.2) version. It crashes with the following error:

Error when reading /Users/nishita/Code/MG5_aMC/bin/DM_monojet/SubProcesses/P0_gg_xksixksig/G1.2/results.dat
Command "generate_events run_01" interrupted with error:
ValueError : need more than 5 values to unpack

The debug log is attached.

I also noticed the errors (3 times):

Fortran runtime error: Array reference out of bounds for array 'amp2', upper bound of dimension 1 exceeded (in file 'matrix1.f', at line 109)

during running.

Thanks for you time.

Nishita.

Revision history for this message
Nishita (nish-des) wrote :
Revision history for this message
Olivier Mattelaer (olivier-mattelaer) wrote : Re: [Bug 1495975] [NEW] MG5 crashes while generating events

Hi,

Could you attach the model?
Such that I can try to reproduce the problem.

Thanks,

Olivier
On 15 Sep 2015, at 14:29, Nishita <email address hidden> wrote:

> Public bug reported:
>
> Hello,
>
> I'm trying to generate events using a modified model with an extra
> singlet using the latest (2.3.2.2) version. It crashes with the
> following error:
>
> Error when reading /Users/nishita/Code/MG5_aMC/bin/DM_monojet/SubProcesses/P0_gg_xksixksig/G1.2/results.dat
> Command "generate_events run_01" interrupted with error:
> ValueError : need more than 5 values to unpack
>
> The debug log is attached.
>
> I also noticed the errors (3 times):
>
> Fortran runtime error: Array reference out of bounds for array 'amp2',
> upper bound of dimension 1 exceeded (in file 'matrix1.f', at line 109)
>
> during running.
>
> Thanks for you time.
>
> Nishita.
>
> ** Affects: mg5amcnlo
> Importance: Undecided
> Status: New
>
> ** Attachment added: "run_01_tag_1_debug.log"
> https://bugs.launchpad.net/bugs/1495975/+attachment/4465159/+files/run_01_tag_1_debug.log
>
> --
> You received this bug notification because you are subscribed to
> MadGraph5_aMC@NLO.
> https://bugs.launchpad.net/bugs/1495975
>
> Title:
> MG5 crashes while generating events
>
> Status in MadGraph5_aMC@NLO:
> New
>
> Bug description:
> Hello,
>
> I'm trying to generate events using a modified model with an extra
> singlet using the latest (2.3.2.2) version. It crashes with the
> following error:
>
> Error when reading /Users/nishita/Code/MG5_aMC/bin/DM_monojet/SubProcesses/P0_gg_xksixksig/G1.2/results.dat
> Command "generate_events run_01" interrupted with error:
> ValueError : need more than 5 values to unpack
>
> The debug log is attached.
>
> I also noticed the errors (3 times):
>
> Fortran runtime error: Array reference out of bounds for array 'amp2',
> upper bound of dimension 1 exceeded (in file 'matrix1.f', at line 109)
>
> during running.
>
> Thanks for you time.
>
> Nishita.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/mg5amcnlo/+bug/1495975/+subscriptions

Revision history for this message
Nishita (nish-des) wrote :
Download full text (3.3 KiB)

Hi Olivier,

Here it is.
Thanks!

Nishita.

> On 15 Sep 2015, at 18:11, Olivier Mattelaer <email address hidden> wrote:
>
> Hi,
>
> Could you attach the model?
> Such that I can try to reproduce the problem.
>
> Thanks,
>
> Olivier
> On 15 Sep 2015, at 14:29, Nishita <email address hidden> wrote:
>
>> Public bug reported:
>>
>> Hello,
>>
>> I'm trying to generate events using a modified model with an extra
>> singlet using the latest (2.3.2.2) version. It crashes with the
>> following error:
>>
>> Error when reading /Users/nishita/Code/MG5_aMC/bin/DM_monojet/SubProcesses/P0_gg_xksixksig/G1.2/results.dat
>> Command "generate_events run_01" interrupted with error:
>> ValueError : need more than 5 values to unpack
>>
>> The debug log is attached.
>>
>> I also noticed the errors (3 times):
>>
>> Fortran runtime error: Array reference out of bounds for array 'amp2',
>> upper bound of dimension 1 exceeded (in file 'matrix1.f', at line 109)
>>
>> during running.
>>
>> Thanks for you time.
>>
>> Nishita.
>>
>> ** Affects: mg5amcnlo
>> Importance: Undecided
>> Status: New
>>
>> ** Attachment added: "run_01_tag_1_debug.log"
>> https://bugs.launchpad.net/bugs/1495975/+attachment/4465159/+files/run_01_tag_1_debug.log
>>
>> --
>> You received this bug notification because you are subscribed to
>> MadGraph5_aMC@NLO.
>> https://bugs.launchpad.net/bugs/1495975
>>
>> Title:
>> MG5 crashes while generating events
>>
>> Status in MadGraph5_aMC@NLO:
>> New
>>
>> Bug description:
>> Hello,
>>
>> I'm trying to generate events using a modified model with an extra
>> singlet using the latest (2.3.2.2) version. It crashes with the
>> following error:
>>
>> Error when reading /Users/nishita/Code/MG5_aMC/bin/DM_monojet/SubProcesses/P0_gg_xksixksig/G1.2/results.dat
>> Command "generate_events run_01" interrupted with error:
>> ValueError : need more than 5 values to unpack
>>
>> The debug log is attached.
>>
>> I also noticed the errors (3 times):
>>
>> Fortran runtime error: Array reference out of bounds for array 'amp2',
>> upper bound of dimension 1 exceeded (in file 'matrix1.f', at line 109)
>>
>> during running.
>>
>> Thanks for you time.
>>
>> Nishita.
>>
>> To manage notifications about this bug go to:
>> https://bugs.launchpad.net/mg5amcnlo/+bug/1495975/+subscriptions
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1495975
>
> Title:
> MG5 crashes while generating events
>
> Status in MadGraph5_aMC@NLO:
> New
>
> Bug description:
> Hello,
>
> I'm trying to generate events using a modified model with an extra
> singlet using the latest (2.3.2.2) version. It crashes with the
> following error:
>
> Error when reading /Users/nishita/Code/MG5_aMC/bin/DM_monojet/SubProcesses/P0_gg_xksixksig/G1.2/results.dat
> Command "generate_events run_01" interrupted with error:
> ValueError : need more than 5 values to unpack
>
> The debug log is attached.
>
> I also noticed the errors (3 times):
>
> Fortran runtime error: Array reference out of bounds for array 'amp2',
> upper bound of dimension 1 exceeded (in file 'matrix1.f', ...

Read more...

Revision history for this message
Olivier Mattelaer (olivier-mattelaer) wrote :
Download full text (4.1 KiB)

Hi Nishita,

The bad news is that I’m not able to reproduce your error on my computer (even with all debug flag activated).

I’ve take a look at the line/file that you mention:
>> (in file 'matrix1.f', at line 109)

and this is kind of impossible to have an overflow on that line.
Could you check the following two file:
SubProcesses/P0_gg_xksixksig/maxamps.inc
and check which value is written for MAXAMPS (second line of the file, in my file I have 12)
and in SubProcesses/P0_gg_xksixksig/matrix1.f at line 28.
the value given for NDIAGS (I have 12 as well).

The only explanation to the bug that you report is that the second number is larger than the first one.
But since those files are created by python it is really weird if you would have different value than me for those.

So in all cases in completely in the dark about that bug.

Cheers,

Olivier

On 15 Sep 2015, at 17:11, Olivier Mattelaer <email address hidden> wrote:

> Hi,
>
> Could you attach the model?
> Such that I can try to reproduce the problem.
>
> Thanks,
>
> Olivier
> On 15 Sep 2015, at 14:29, Nishita <email address hidden> wrote:
>
>> Public bug reported:
>>
>> Hello,
>>
>> I'm trying to generate events using a modified model with an extra
>> singlet using the latest (2.3.2.2) version. It crashes with the
>> following error:
>>
>> Error when reading /Users/nishita/Code/MG5_aMC/bin/DM_monojet/SubProcesses/P0_gg_xksixksig/G1.2/results.dat
>> Command "generate_events run_01" interrupted with error:
>> ValueError : need more than 5 values to unpack
>>
>> The debug log is attached.
>>
>> I also noticed the errors (3 times):
>>
>> Fortran runtime error: Array reference out of bounds for array 'amp2',
>> upper bound of dimension 1 exceeded (in file 'matrix1.f', at line 109)
>>
>> during running.
>>
>> Thanks for you time.
>>
>> Nishita.
>>
>> ** Affects: mg5amcnlo
>> Importance: Undecided
>> Status: New
>>
>> ** Attachment added: "run_01_tag_1_debug.log"
>> https://bugs.launchpad.net/bugs/1495975/+attachment/4465159/+files/run_01_tag_1_debug.log
>>
>> --
>> You received this bug notification because you are subscribed to
>> MadGraph5_aMC@NLO.
>> https://bugs.launchpad.net/bugs/1495975
>>
>> Title:
>> MG5 crashes while generating events
>>
>> Status in MadGraph5_aMC@NLO:
>> New
>>
>> Bug description:
>> Hello,
>>
>> I'm trying to generate events using a modified model with an extra
>> singlet using the latest (2.3.2.2) version. It crashes with the
>> following error:
>>
>> Error when reading /Users/nishita/Code/MG5_aMC/bin/DM_monojet/SubProcesses/P0_gg_xksixksig/G1.2/results.dat
>> Command "generate_events run_01" interrupted with error:
>> ValueError : need more than 5 values to unpack
>>
>> The debug log is attached.
>>
>> I also noticed the errors (3 times):
>>
>> Fortran runtime error: Array reference out of bounds for array 'amp2',
>> upper bound of dimension 1 exceeded (in file 'matrix1.f', at line 109)
>>
>> during running.
>>
>> Thanks for you time.
>>
>> Nishita.
>>
>> To manage notifications about this bug go to:
>> https://bugs.launchpad.net/mg5amcnlo/+bug/1495975/+subscriptions
>
> --
> You received this bug notification beca...

Read more...

Revision history for this message
Nishita (nish-des) wrote :
Download full text (5.7 KiB)

Hi Olivier,

The numbers are the same (12) for both MAXAMPS and NDIAGS. I tried redoing the full thing and I still get an error.

I can run it without errors for p p > ksi ksi~ and also for p p > ksi ksi~ u (or d)
But the runtime errors are present for p p > ksi ksi~ j (or g)

Any ideas what else I can try?

Thanks.

Best,
Nishita.

> On 16 Sep 2015, at 00:13, Olivier Mattelaer <email address hidden> wrote:
>
> Hi Nishita,
>
> The bad news is that I’m not able to reproduce your error on my computer
> (even with all debug flag activated).
>
> I’ve take a look at the line/file that you mention:
>>> (in file 'matrix1.f', at line 109)
>
> and this is kind of impossible to have an overflow on that line.
> Could you check the following two file:
> SubProcesses/P0_gg_xksixksig/maxamps.inc
> and check which value is written for MAXAMPS (second line of the file, in my file I have 12)
> and in SubProcesses/P0_gg_xksixksig/matrix1.f at line 28.
> the value given for NDIAGS (I have 12 as well).
>
> The only explanation to the bug that you report is that the second number is larger than the first one.
> But since those files are created by python it is really weird if you would have different value than me for those.
>
> So in all cases in completely in the dark about that bug.
>
> Cheers,
>
> Olivier
>
> On 15 Sep 2015, at 17:11, Olivier Mattelaer
> <email address hidden> wrote:
>
>> Hi,
>>
>> Could you attach the model?
>> Such that I can try to reproduce the problem.
>>
>> Thanks,
>>
>> Olivier
>> On 15 Sep 2015, at 14:29, Nishita <email address hidden> wrote:
>>
>>> Public bug reported:
>>>
>>> Hello,
>>>
>>> I'm trying to generate events using a modified model with an extra
>>> singlet using the latest (2.3.2.2) version. It crashes with the
>>> following error:
>>>
>>> Error when reading /Users/nishita/Code/MG5_aMC/bin/DM_monojet/SubProcesses/P0_gg_xksixksig/G1.2/results.dat
>>> Command "generate_events run_01" interrupted with error:
>>> ValueError : need more than 5 values to unpack
>>>
>>> The debug log is attached.
>>>
>>> I also noticed the errors (3 times):
>>>
>>> Fortran runtime error: Array reference out of bounds for array 'amp2',
>>> upper bound of dimension 1 exceeded (in file 'matrix1.f', at line 109)
>>>
>>> during running.
>>>
>>> Thanks for you time.
>>>
>>> Nishita.
>>>
>>> ** Affects: mg5amcnlo
>>> Importance: Undecided
>>> Status: New
>>>
>>> ** Attachment added: "run_01_tag_1_debug.log"
>>> https://bugs.launchpad.net/bugs/1495975/+attachment/4465159/+files/run_01_tag_1_debug.log
>>>
>>> --
>>> You received this bug notification because you are subscribed to
>>> MadGraph5_aMC@NLO.
>>> https://bugs.launchpad.net/bugs/1495975
>>>
>>> Title:
>>> MG5 crashes while generating events
>>>
>>> Status in MadGraph5_aMC@NLO:
>>> New
>>>
>>> Bug description:
>>> Hello,
>>>
>>> I'm trying to generate events using a modified model with an extra
>>> singlet using the latest (2.3.2.2) version. It crashes with the
>>> following error:
>>>
>>> Error when reading /Users/nishita/Code/MG5_aMC/bin/DM_monojet/SubProcesses/P0_gg_xksixksig/G1.2/results.dat
>>> Command "generate_events run_01" in...

Read more...

Revision history for this message
Olivier Mattelaer (olivier-mattelaer) wrote :
Download full text (8.8 KiB)

Dear Nishita,

> The numbers are the same (12) for both MAXAMPS and NDIAGS.

This is perfect.

Could you check what is line 109 in your matrix1.f
>> SubProcesses/P0_gg_xksixksig/matrix1.f

in my case, I have:
      IF (MULTI_CHANNEL) THEN
        DO I=1,NDIAGS
          AMP2(I)=0D0
        ENDDO

the 109 is the “AMP2(I)=0D0” one.

the statement of your code is “Array reference out of bounds for array 'amp2',
 upper bound of dimension 1 exceeded (in file ‘matrix1.f’, at line 109)”.

The dimension of AMP2 is given by MAXAMPS.
Therefore if MAXAMPS is NDIAGS, the code can not crash!
So my only idea is that either you do not have the same line or that you use a bugged compiler.
Both are very unlikely but I’m really running out of ideas.

One variation of the compilation problem is if you change some compiler flag by default on your system.
I’m not even sure that such flag exists, but if at the system level you change the counting behaviour of fortran then
it will explain the problem.
this can happens if you have the FFLAGS define globally
can you do
echo $FFLAGS
to see if that variable is define?
if it returns something try to run
export FFLAGS=
and rerun (in the same shell)
One other variable that can be tested is the following one:
echo $FC

One test that can be done is to check such kind of points is the following replace the above piece of code by the following one:
      IF (MULTI_CHANNEL) THEN
        DO I=1,NDIAGS
    write(*,*) I,”/“,NDIAGS
          AMP2(I)=0D0
        ENDDO

Then you can look at the log for that run and check if indeed “I” is sometimes larger than 12 and/or if NDIAGS change value at some point.
(which should not be technically possible)

The log that you have to look at is in the following path:
DM_monojet/SubProcesses/P0_gg_xksixksig/G1.2/

and is either log.txt or run_01_log.txt

Cheers,

Olivier

On 16 Sep 2015, at 14:28, Nishita <email address hidden> wrote:

> Hi Olivier,
>
> The numbers are the same (12) for both MAXAMPS and NDIAGS. I tried
> redoing the full thing and I still get an error.
>
> I can run it without errors for p p > ksi ksi~ and also for p p > ksi ksi~ u (or d)
> But the runtime errors are present for p p > ksi ksi~ j (or g)
>
> Any ideas what else I can try?
>
> Thanks.
>
> Best,
> Nishita.
>
>
>
>> On 16 Sep 2015, at 00:13, Olivier Mattelaer <email address hidden> wrote:
>>
>> Hi Nishita,
>>
>> The bad news is that I’m not able to reproduce your error on my computer
>> (even with all debug flag activated).
>>
>> I’ve take a look at the line/file that you mention:
>>>> (in file 'matrix1.f', at line 109)
>>
>> and this is kind of impossible to have an overflow on that line.
>> Could you check the following two file:
>> SubProcesses/P0_gg_xksixksig/maxamps.inc
>> and check which value is written for MAXAMPS (second line of the file, in my file I have 12)
>> and in SubProcesses/P0_gg_xksixksig/matrix1.f at line 28.
>> the value given for NDIAGS (I have 12 as well).
>>
>> The only explanation to the bug that you report is that the second number is larger than the first one.
>> But since those files are created by python it is really weird if you would have different valu...

Read more...

Revision history for this message
Olivier Mattelaer (olivier-mattelaer) wrote :

Hi,

Did you make any progress on this? Can I help you on it?

Cheers,

Olivier

Revision history for this message
Nishita (nish-des) wrote : Re: [Bug 1495975] Re: MG5 crashes while generating events

Hi Olivier,

It's same in my Mac still. But I managed to install a working copy on my office Linux machine for now.

Thanks for asking. I'll let you know once I find what was wrong.

Best,
Nishita.

> On 25 Sep 2015, at 18:35, Olivier Mattelaer <email address hidden> wrote:
>
> Hi,
>
> Did you make any progress on this? Can I help you on it?
>
> Cheers,
>
> Olivier
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1495975
>
> Title:
> MG5 crashes while generating events
>
> Status in MadGraph5_aMC@NLO:
> New
>
> Bug description:
> Hello,
>
> I'm trying to generate events using a modified model with an extra
> singlet using the latest (2.3.2.2) version. It crashes with the
> following error:
>
> Error when reading /Users/nishita/Code/MG5_aMC/bin/DM_monojet/SubProcesses/P0_gg_xksixksig/G1.2/results.dat
> Command "generate_events run_01" interrupted with error:
> ValueError : need more than 5 values to unpack
>
> The debug log is attached.
>
> I also noticed the errors (3 times):
>
> Fortran runtime error: Array reference out of bounds for array 'amp2',
> upper bound of dimension 1 exceeded (in file 'matrix1.f', at line 109)
>
> during running.
>
> Thanks for you time.
>
> Nishita.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/mg5amcnlo/+bug/1495975/+subscriptions

Changed in mg5amcnlo:
status: New → Incomplete
Changed in mg5amcnlo:
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.