MadGraph 5 install failing Acceptance tests

Asked by Pierre-Philippe Ouimet on 2018-02-13

I have recently installed MadGraph 5 on my Mac. I am not the most computer literate person in the world and last time I did any programming was in 2000 for my Masters. Please have patience with me.

System details:

Mac OS version 10.12.6
iMac, Late 2015

Issue:

MadGraph appears to run but when testing the installation using the test suite I encountered a problem. The install passed the Unit tests, but when I run the Acceptance tests using the command

./tests/test_manager.py -p A

I get the following error message:

Command "reweight /var/folders/lz/xxfvgpgs52jf0dy2lk5xk37c0000gn/T/acc_test_mg5yCGWIw/MGPROC/Events/run_01/unweighted_events.lhe.gz_0.lhe -from_cards --multicore=create" interrupted with error:
MadGraph5Error : A compilation Error occurs when trying to compile /private/var/folders/lz/xxfvgpgs52jf0dy2lk5xk37c0000gn/T/acc_test_mg5yCGWIw/MGPROC/rw_me/SubProcesses.
        The compilation fails with the following output message:
            gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c -o P1_gg_hg/matrix.o P1_gg_hg/matrix.f
            gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c -o P1_gu_hu/matrix.o P1_gu_hu/matrix.f
            gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c -o P1_gux_hux/matrix.o P1_gux_hux/matrix.f
            gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c -o P1_uux_hg/matrix.o P1_uux_hg/matrix.f
            gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c -o all_matrix.o all_matrix.f
            ar cru ../lib//libmatrix.a P1_gg_hg/matrix.o P1_gu_hu/matrix.o P1_gux_hux/matrix.o P1_uux_hg/matrix.o all_matrix.o
            ranlib ../lib//libmatrix.a
            f2py --f77exec=gfortran -L../lib/ -ldhelas -lmodel -lmatrix -c all_matrix.f */matrix.f -m allmatrix2py
            /bin/bash: f2py: command not found
            make: *** [allmatrix2py.so] Error 127

        Please try to fix this compilations issue and retry.

If you'd suggest a next step to fix the problem, I'd be much obliged.

Question information

Language:
English Edit question
Status:
Answered
For:
MadGraph5_aMC@NLO Edit question
Assignee:
No assignee Edit question
Last query:
2018-02-13
Last reply:
2018-02-15

Hi Pierre-Philippe,

Running the acceptance suite is actually something design for developer.
And this is going to check many features of the code including those requiring additional packages.
When possible, the test will install himself code that they need but in this case not.

> f2py --f77exec=gfortran -L../lib/ -ldhelas -lmodel -lmatrix -c all_matrix.f */matrix.f -m allmatrix2py
> /bin/bash: f2py: command not found

the test needs the "f2py" executable to be available on your machine.

The easiest way to install that executable is to install numpy
and it will then be installed in
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/bin//f2py
(I personally added that path to my $PATH)

Cheers,

Olivier

>

> On 13 Feb 2018, at 19:22, Pierre-Philippe Ouimet <email address hidden> wrote:
>
> New question #664366 on MadGraph5_aMC@NLO:
> https://answers.launchpad.net/mg5amcnlo/+question/664366
>
> I have recently installed MadGraph 5 on my Mac. I am not the most computer literate person in the world and last time I did any programming was in 2000 for my Masters. Please have patience with me.
>
> System details:
>
> Mac OS version 10.12.6
> iMac, Late 2015
>
> Issue:
>
> MadGraph appears to run but when testing the installation using the test suite I encountered a problem. The install passed the Unit tests, but when I run the Acceptance tests using the command
>
> ./tests/test_manager.py -p A
>
> I get the following error message:
>
> Command "reweight /var/folders/lz/xxfvgpgs52jf0dy2lk5xk37c0000gn/T/acc_test_mg5yCGWIw/MGPROC/Events/run_01/unweighted_events.lhe.gz_0.lhe -from_cards --multicore=create" interrupted with error:
> MadGraph5Error : A compilation Error occurs when trying to compile /private/var/folders/lz/xxfvgpgs52jf0dy2lk5xk37c0000gn/T/acc_test_mg5yCGWIw/MGPROC/rw_me/SubProcesses.
> The compilation fails with the following output message:
> gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c -o P1_gg_hg/matrix.o P1_gg_hg/matrix.f
> gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c -o P1_gu_hu/matrix.o P1_gu_hu/matrix.f
> gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c -o P1_gux_hux/matrix.o P1_gux_hux/matrix.f
> gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c -o P1_uux_hg/matrix.o P1_uux_hg/matrix.f
> gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c -o all_matrix.o all_matrix.f
> ar cru ../lib//libmatrix.a P1_gg_hg/matrix.o P1_gu_hu/matrix.o P1_gux_hux/matrix.o P1_uux_hg/matrix.o all_matrix.o
> ranlib ../lib//libmatrix.a
> f2py --f77exec=gfortran -L../lib/ -ldhelas -lmodel -lmatrix -c all_matrix.f */matrix.f -m allmatrix2py
> /bin/bash: f2py: command not found
> make: *** [allmatrix2py.so] Error 127
>
> Please try to fix this compilations issue and retry.
>
> If you'd suggest a next step to fix the problem, I'd be much obliged.
>
> --
> 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 Pierre-Philippe Ouimet for more information if necessary.

To post a message you must log in.