Unable to run MG5 v3.1 on mac

Asked by Rishabh

I tried to calculate cross section of p p to ta+ ta- and it gave me the following error
Error detected in "generate_events "
write debug file /Users/rishabhjain/Desktop/Research_work/Softwares/MG5_aMC_v3_1_0/pptata_emvv2/run_01_tag_1_debug.log
If you need help with this issue please contact us on https://answers.launchpad.net/mg5amcnlo
str : A compilation Error occurs when trying to compile /Users/rishabhjain/Desktop/Research_work/Softwares/MG5_aMC_v3_1_0/pptata_emvv2/Source.
 The compilation fails with the following output message:
     gfortran -w -fPIC -O -ffixed-line-length-132 -c -o StringCast.o StringCast.f
     gfortran -w -fPIC -O -ffixed-line-length-132 -c -o ranmar.o ranmar.f
     gfortran -w -fPIC -O -ffixed-line-length-132 -c -o alfas_functions.o alfas_functions.f
     gfortran -w -fPIC -O -ffixed-line-length-132 -c -o transpole.o transpole.f
     gfortran -w -fPIC -O -ffixed-line-length-132 -c -o invarients.o invarients.f
     gfortran -w -fPIC -O -ffixed-line-length-132 -c -o hfill.o hfill.f
     gfortran -w -fPIC -O -ffixed-line-length-132 -c -o pawgraphs.o pawgraphs.f
     gfortran -w -fPIC -O -ffixed-line-length-132 -c -o ran1.o ran1.f
     gfortran -w -fPIC -O -ffixed-line-length-132 -c -o rw_events.o rw_events.f
     gfortran -w -fPIC -O -ffixed-line-length-132 -c -o rw_routines.o rw_routines.f
     gfortran -w -fPIC -O -ffixed-line-length-132 -c -o kin_functions.o kin_functions.f
     gfortran -w -fPIC -O -ffixed-line-length-132 -c -o open_file.o open_file.f
     gfortran -w -fPIC -O -ffixed-line-length-132 -c -o basecode.o basecode.f
     gfortran -w -fPIC -O -ffixed-line-length-132 -c -o setrun.o setrun.f
     gfortran -w -fPIC -O -ffixed-line-length-132 -c -o run_printout.o run_printout.f
     gfortran -w -fPIC -O -ffixed-line-length-132 -c -o dgauss.o dgauss.f
     gfortran -w -fPIC -O -ffixed-line-length-132 -c -o readgrid.o readgrid.f
     gfortran -w -fPIC -O -ffixed-line-length-132 -c -o getissud.o getissud.f
     cd DHELAS; make
     cd PDF; make
     gfortran -w -fPIC -O -ffixed-line-length-132 -c -o aloha_functions.o aloha_functions.f
     gfortran -w -fPIC -O -ffixed-line-length-132 -c -o Ctq6Pdf.o Ctq6Pdf.f
     gfortran -w -fPIC -O -ffixed-line-length-132 -c -o FFV4P1N_3.o FFV4P1N_3.f
     cd MODEL; make
     gfortran -w -fPIC -O -ffixed-line-length-132 -c -o pdfwrap.o pdfwrap.f
     gfortran -w -fPIC -O -ffixed-line-length-132 -c -o FFV5_3.o FFV5_3.f
     cd CERNLIB; make
     gfortran -w -fPIC -O -ffixed-line-length-132 -c -o FFV2_3.o FFV2_3.f
     gfortran -w -fPIC -O -ffixed-line-length-132 -c -o couplings.o couplings.f
     gfortran -w -fPIC -O -ffixed-line-length-132 -c -o opendata.o opendata.f
     gfortran -w -fPIC -O -ffixed-line-length-132 -c -o abend.o abend.f
     gfortran -w -fPIC -O -ffixed-line-length-132 -c -o pdf.o pdf.f
     gfortran -w -fPIC -O -ffixed-line-length-132 -c -o FFFF1_2.o FFFF1_2.f
     gfortran -w -fPIC -O -ffixed-line-length-132 -c -o FFV3_3.o FFV3_3.f
     gfortran -w -fPIC -O -ffixed-line-length-132 -c -o dlsqp2.o dlsqp2.f
     cd BIAS/dummy; make
     gfortran -w -fPIC -O -ffixed-line-length-132 -c -o lha_read.o lha_read.f
     gfortran -w -fPIC -O -ffixed-line-length-132 -c -o FFV1P1N_2.o FFV1P1N_2.f
     gfortran -w -fPIC -O -ffixed-line-length-132 -c -o PhotonFlux.o PhotonFlux.f
     gfortran -w -fPIC -O -ffixed-line-length-132 -c -o dummy.o dummy.f
     gfortran -w -fPIC -O -ffixed-line-length-132 -c -o lenocc.o lenocc.f
     gfortran -w -fPIC -O -ffixed-line-length-132 -c -o FFV4_0.o FFV4_0.f
     gfortran -w -fPIC -O -ffixed-line-length-132 -c -o printout.o printout.f
     gfortran -w -fPIC -O -ffixed-line-length-132 -c -o FFV2P1N_3.o FFV2P1N_3.f
     ar cru ../../../lib/libbias.a dummy.o
     gfortran -w -fPIC -O -ffixed-line-length-132 -c -o pdg2pdf.o pdg2pdf.f
     gfortran -w -fPIC -O -ffixed-line-length-132 -c -o mtlprt.o mtlprt.f
     gfortran -w -fPIC -O -ffixed-line-length-132 -c -o rw_para.o rw_para.f
     gfortran -w -fPIC -O -ffixed-line-length-132 -c -o NNPDFDriver.o NNPDFDriver.f
     gfortran -w -fPIC -O -ffixed-line-length-132 -c -o model_functions.o model_functions.f
     gfortran -w -fPIC -O -ffixed-line-length-132 -c -o mtlset.o mtlset.f
     gfortran -w -fPIC -O -ffixed-line-length-132 -c -o couplings1.o couplings1.f
     model_functions.f:552:14:

       552 | FFCT2=FRHO(S,1)
           | 1
     Error: Type mismatch in argument 's' at (1); passed COMPLEX(8) to REAL(8)
     model_functions.f:561:14:

       561 | FFCT3=FA1(S,1)
           | 1
     Error: Type mismatch in argument 's' at (1); passed COMPLEX(8) to REAL(8)
     model_functions.f:570:16:

       570 | FFCT3F1=BRHO(S,1)
           | 1
     Error: Type mismatch in argument 's' at (1); passed COMPLEX(8) to REAL(8)
     model_functions.f:579:16:

       579 | FFCT3F0=BRHO(S,0)
           | 1
     Error: Type mismatch in argument 's' at (1); passed COMPLEX(8) to REAL(8)
     gfortran -w -fPIC -O -ffixed-line-length-132 -c -o FFV1P0_3.o FFV1P0_3.f
     make[1]: *** [model_functions.o] Error 1
     make[1]: *** Waiting for unfinished jobs....
     gfortran -w -fPIC -O -ffixed-line-length-132 -c -o radmul.o radmul.f
     gfortran -w -fPIC -O -ffixed-line-length-132 -c -o FFV2_0.o FFV2_0.f
     make: *** [../lib/libmodel.a] Error 2
     make: *** Waiting for unfinished jobs....
     gfortran -w -fPIC -O -ffixed-line-length-132 -c -o FFV1P1N_1.o FFV1P1N_1.f
     gfortran -w -fPIC -O -ffixed-line-length-132 -c -o FFV1_0.o FFV1_0.f
     gfortran -w -fPIC -O -ffixed-line-length-132 -c -o FFV4P1N_1.o FFV4P1N_1.f
     gfortran -w -fPIC -O -ffixed-line-length-132 -c -o FFV2P1N_2.o FFV2P1N_2.f
     ar cru ../../lib/libpdf.a Ctq6Pdf.o pdfwrap.o opendata.o pdf.o PhotonFlux.o pdg2pdf.o NNPDFDriver.o
     gfortran -w -fPIC -O -ffixed-line-length-132 -c -o FFV4P1N_2.o FFV4P1N_2.f
     gfortran -w -fPIC -O -ffixed-line-length-132 -c -o FFV2P1N_1.o FFV2P1N_1.f
     gfortran -w -fPIC -O -ffixed-line-length-132 -c -o FFFF1_3.o FFFF1_3.f
     gfortran -w -fPIC -O -ffixed-line-length-132 -c -o FFV1P1N_3.o FFV1P1N_3.f
     ar cru ../../lib/libcernlib.a abend.o dlsqp2.o lenocc.o mtlprt.o mtlset.o radmul.o
     ar cru ../../lib/libdhelas.a aloha_functions.o FFV4P1N_3.o FFV5_3.o FFV2_3.o FFFF1_2.o FFV3_3.o FFV1P1N_2.o FFV4_0.o FFV2P1N_3.o FFV1P0_3.o FFV2_0.o FFV1P1N_1.o FFV1_0.o FFV4P1N_1.o FFV2P1N_2.o FFV4P1N_2.o FFV2P1N_1.o FFFF1_3.o FFV1P1N_3.o
     ranlib ../../lib/libcernlib.a
     ranlib ../../lib/libpdf.a
     ranlib ../../lib/libdhelas.a
     ranlib ../../../lib/libbias.a

 Please try to fix this compilations issue and retry.
 Help might be found at https://answers.launchpad.net/mg5amcnlo.
 If you think that this is a bug, you can report this at https://bugs.launchpad.net/mg5amcnlo

Here is my proc_card.dat
import model sm-lepton_masses
import model /Users/rishabhjain/Desktop/Research_work/Softwares/MG5_aM\
C_v3_1_0/models/sm__taudecay_UFO-lepton_masses
generate p p > ta+ ta- , (ta+ > e+ ve vt~ /w-),(ta- > mu- vm~ vt / w-)
add process p p > ta+ ta- , (ta+ > mu+ vm vt~ /w-),(ta- > e- ve~ vt / \
w-)
output pptata_emvv2

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

I'm also on mac and it does work so I do not think that this is the reason of the crash.
Which version of gfortran did you install?

Cheers,

Olivier

> On 25 Jun 2021, at 05:25, Rishabh <email address hidden> wrote:
>
> generate p p > ta+ ta- , (ta+ > e+ ve vt~ /w-),(ta- > mu- vm~ vt / w-)
> add process p p > ta+ ta- , (ta+ > mu+ vm vt~ /w-),(ta- > e- ve~ vt / \
> w-)

Revision history for this message
Olivier Mattelaer (olivier-mattelaer) said :
#2

Looking a bit more, i guess that your issue might be that your UFO model is not up-to-date and bugged.

indeed I do not even have any warning when compiling with my compiler

> [MODEL]$ make
> gfortran -w -fPIC -O -fbounds-check -ffixed-line-length-132 -c -o couplings.o couplings.f
> gfortran -w -fPIC -O -fbounds-check -ffixed-line-length-132 -c -o lha_read.o lha_read.f
> gfortran -w -fPIC -O -fbounds-check -ffixed-line-length-132 -c -o printout.o printout.f
> gfortran -w -fPIC -O -fbounds-check -ffixed-line-length-132 -c -o rw_para.o rw_para.f
> gfortran -w -fPIC -O -fbounds-check -ffixed-line-length-132 -c -o model_functions.o model_functions.f
> gfortran -w -fPIC -O -fbounds-check -ffixed-line-length-132 -c -o couplings1.o couplings1.f
> gfortran -w -fPIC -O -fbounds-check -ffixed-line-length-132 -c -o couplings2.o couplings2.f
> ar cru ../../lib/libmodel.a couplings.o lha_read.o printout.o rw_para.o model_functions.o couplings1.o couplings2.o
> ranlib ../../lib/libmodel.a

and when looking at the type definition in the latest version of the model, you can see that everything is complex as it should (while some entry should be real in your model0

> [MODEL]$ grep frho . -rin
> ./model_functions.f:178: DOUBLE COMPLEX S,FRHO
> ./model_functions.f:179: EXTERNAL FRHO
> ./model_functions.f:181: FFCT2=FRHO(S,1)
> ./model_functions.f:212: DOUBLE COMPLEX FUNCTION FRHO(S,MODE) ! Frho=f2
> ./model_functions.f:218: FRHO=DSQRT(2D0)*BRHO(S,MODE)
> Binary file ./model_functions.o matches
> [MODEL]$ grep fFcT2 . -rin
> ./model_functions.f:176: DOUBLE COMPLEX FUNCTION FFCT2(S)
> ./model_functions.f:181: FFCT2=FRHO(S,1)

Those line are directly coming from the UFO model.
So if you use an old version of the model (i.e. if you generate that model a while ago --the model is generated the first time you do
import model sm-lepton_masses
add model taudecay_UFO

then it can explain the reason of such issue.

Cheers,

Olivier

> On 25 Jun 2021, at 12:41, Olivier Mattelaer <email address hidden> wrote:
>
> Question #697726 on MadGraph5_aMC@NLO changed:
> https://answers.launchpad.net/mg5amcnlo/+question/697726
>
> Status: Open => Answered
>
> Olivier Mattelaer proposed the following answer:
> I'm also on mac and it does work so I do not think that this is the reason of the crash.
> Which version of gfortran did you install?
>
> Cheers,
>
> Olivier
>
>> On 25 Jun 2021, at 05:25, Rishabh <email address hidden> wrote:
>>
>> generate p p > ta+ ta- , (ta+ > e+ ve vt~ /w-),(ta- > mu- vm~ vt / w-)
>> add process p p > ta+ ta- , (ta+ > mu+ vm vt~ /w-),(ta- > e- ve~ vt / \
>> w-)
>
> --
> 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 Rishabh for more information if necessary.

To post a message you must log in.