A compilation Error occurs when trying to compile /home/raseeb/MG5_aMC_v2_9_6/Test_S3M/Source.

Asked by raseeb haroon

I have gotten the Test_S3M file for the generation of a .lhe file.

I placed this folder in the MG5 main directory and then gave the third person permission using the command -> chmod -R a+rwx Test_S3M/

then I ran this using the command -> raseeb@raseeb:~/MG5_aMC_v2_9_6/Test_S3M$ ./bin/aMCatNLO

here I used the command "launch " which gave me the switches. The odd thing about the switches is that it shows madspin is not installed and the shower switch cant be changed. From here I pressed enter twice and encounter the following error.

ERROR:-

INFO: Update the dependent parameter of the param_card.dat
WARNING: missing MG5aMC code. Fail to update dependent parameter. This might create trouble for program like MadSpin/shower/...
INFO: Starting run
INFO: Compiling the code
INFO: For gauge cancellation, the width of 'YS3u1' has been set to zero.
INFO: MadSTR: Forcing width MDL_WXM to zero inside param_card.inc
INFO: MadSTR: Forcing width MP__MDL_WXM to zero inside param_card.inc
WARNING: The replacements above ensure poles cancelation, and affect all widths
   EXCEPT those which enter the resonance-treatment counterterms, which
   are taken from the param_card.
   Do NOT set these widths to zero in the param_card.
INFO: Using built-in libraries for PDFs
INFO: Compiling source...
Command "launch" interrupted with error:
MadGraph5Error : A compilation Error occurs when trying to compile /home/raseeb/MG5_aMC_v2_9_6/Test_S3M/Source.
 The compilation fails with the following output message:
     gfortran -O -fno-automatic -ffixed-line-length-132 -c alfas_functions.f
     alfas_functions.f:78: Error: Can't open included file 'timing_variables.inc'
     make: *** [makefile:14: alfas_functions.o] Error 1

Question information

Language:
English Edit question
Status:
Open
For:
MadGraph5_aMC@NLO Edit question
Assignee:
marco zaro Edit question
Last query:
Last reply:
Revision history for this message
marco zaro (marco-zaro) said :
#1

HI,
did you see any error at the end of the output command?
Do
Source/timing_variables.inc
and Source/PDF/timing_variables.inc
exist and are valid file?
Thanks,

Marco

Revision history for this message
raseeb haroon (raseebharoon) said :
#2

Hi,

Both of the files do not exist.

best regard,
raseeb

Revision history for this message
marco zaro (marco-zaro) said :
#3

Do you have any disk-quota issue?
can you try to do generate/output again and see how the output command ends?

Marco

Revision history for this message
raseeb haroon (raseebharoon) said :
#4

Hi,

I got this folder from someone else, they do not have a disk quota issue. I
also belive there were no errors while output. There is a
timinh_variable.inc file in the Subprocess folder.

best regards,
Raseeb

On Mon, Mar 20, 2023, 16:20 marco zaro <email address hidden>
wrote:

> Your question #705886 on MadGraph5_aMC@NLO changed:
> https://answers.launchpad.net/mg5amcnlo/+question/705886
>
> Status: Open => Needs information
>
> marco zaro requested more information:
> Do you have any disk-quota issue?
> can you try to do generate/output again and see how the output command
> ends?
>
> Marco
>
> --
> To answer this request for more information, you can either reply to
> this email or enter your reply at the following page:
> https://answers.launchpad.net/mg5amcnlo/+question/705886
>
> You received this question notification because you asked the question.
>

Revision history for this message
marco zaro (marco-zaro) said :
#5

ok, then symlink that file in Source and Source/PDF
Marcos-MacBook-Pro-5:Source marcozaro$ ls -ltr timing_variables.inc */timing_variables.inc
lrwxr-xr-x 1 marcozaro staff 36 Oct 13 11:04 timing_variables.inc -> ../SubProcesses/timing_variables.inc
lrwxr-xr-x 1 marcozaro staff 23 Oct 13 11:04 PDF/timing_variables.inc -> ../timing_variables.inc

and have a go… in any case, it may be that the folder is somehow corrupted, let me know

marco

> On 20 Mar 2023, at 12:05, raseeb haroon <email address hidden> wrote:
>
> Question #705886 on MadGraph5_aMC@NLO changed:
> https://answers.launchpad.net/mg5amcnlo/+question/705886
>
> Status: Needs information => Open
>
> raseeb haroon gave more information on the question:
> Hi,
>
> I got this folder from someone else, they do not have a disk quota issue. I
> also belive there were no errors while output. There is a
> timinh_variable.inc file in the Subprocess folder.
>
> best regards,
> Raseeb
>
> On Mon, Mar 20, 2023, 16:20 marco zaro <email address hidden>
> wrote:
>
>> Your question #705886 on MadGraph5_aMC@NLO changed:
>> https://answers.launchpad.net/mg5amcnlo/+question/705886
>>
>> Status: Open => Needs information
>>
>> marco zaro requested more information:
>> Do you have any disk-quota issue?
>> can you try to do generate/output again and see how the output command
>> ends?
>>
>> Marco
>>
>> --
>> To answer this request for more information, you can either reply to
>> this email or enter your reply at the following page:
>> https://answers.launchpad.net/mg5amcnlo/+question/705886
>>
>> You received this question notification because you asked the question.
>>
>
> --
> You received this question notification because you are assigned to this
> question.

Revision history for this message
raseeb haroon (raseebharoon) said :
#6

I have copied the file in both directories and run the command. Now launching gives this error->

ERROR:

Test_S3M>launch
The following switches determine which programs are run:
/================== Description ===================|=========== values ============|======== other options ========\
| 1. Type of perturbative computation | order = NLO | LO |
| 2. No MC@[N]LO matching / event generation | fixed_order = OFF | ON |
| 3. Shower the generated events | shower = OFF | Please install module |
| 4. Decay onshell particles | madspin = Not Avail. | Please install module |
| 5. Add weights to events for new hypp. | reweight = Not Avail. | Please install module |
| 6. Run MadAnalysis5 on the events generated | madanalysis = Not Avail. | Please install module |
\==================================================================================================================/
Either type the switch number (1 to 6) to change its setting,
Set any switch explicitly (e.g. type 'order=LO' at the prompt)
Type 'help' for the list of all valid option
Type '0', 'auto', 'done' or just press enter when you are done.[60s to answer]
>
INFO: will run in mode: noshower
WARNING: You have chosen not to run a parton shower.
    NLO events without showering are NOT physical.
    Please, shower the LesHouches events before using them for physics analyses.
    You have to choose NOW which parton-shower you WILL use and specify it in the run_card.
Do you want to edit a card (press enter to bypass editing)?
/------------------------------------------------------------\
| 1. param : param_card.dat |
| 2. run : run_card.dat |
\------------------------------------------------------------/
 you can also
   - enter the path to a valid card or banner.
   - use the 'set' command to modify a parameter directly.
     The set option works only for param_card and run_card.
     Type 'help set' for more information on this command.
   - call an external program (ASperGE/MadWidth/...).
     Type 'help' for the list of available command
 [0, done, 1, param, 2, run, enter path][90s to answer]
>
INFO: Update the dependent parameter of the param_card.dat
WARNING: missing MG5aMC code. Fail to update dependent parameter. This might create trouble for program like MadSpin/shower/...
INFO: Starting run
INFO: Compiling the code
INFO: For gauge cancellation, the width of 'YS3u1' has been set to zero.
INFO: MadSTR: Forcing width MDL_WXM to zero inside param_card.inc
INFO: MadSTR: Forcing width MP__MDL_WXM to zero inside param_card.inc
WARNING: The replacements above ensure poles cancelation, and affect all widths
   EXCEPT those which enter the resonance-treatment counterterms, which
   are taken from the param_card.
   Do NOT set these widths to zero in the param_card.
INFO: Using built-in libraries for PDFs
INFO: Compiling source...
INFO: ...done, continuing with P* directories
WARNING: Could not compile StdHEP because its source directory could not be found in the SOURCE folder.
 Check the MG5_aMC option 'output_dependencies'.
 This will prevent the use of HERWIG6/Pythia6 shower.
Error detected in "launch"
write debug file /home/raseeb/MG5_aMC_v2_9_6/Test_S3M/run_16_tag_1_debug.log
If you need help with this issue please contact us on https://answers.launchpad.net/mg5amcnlo
str : Could not compile CutTools because its source directory could not be found in the SOURCE folder.
  Check the MG5_aMC option 'output_dependencies.'

Revision history for this message
marco zaro (marco-zaro) said :
#7

Hi,
you cannot copy directories unless you have generated them with “output_dependencies = internal”
Otherwise the directory cannot “live” outside the MG5_aMC folder

Best,

Marco

> On 20 Mar 2023, at 14:05, raseeb haroon <email address hidden> wrote:
>
> Question #705886 on MadGraph5_aMC@NLO changed:
> https://answers.launchpad.net/mg5amcnlo/+question/705886
>
> Status: Answered => Open
>
> raseeb haroon is still having a problem:
>
> I have copied the file in both directories and run the command. Now launching gives this error->
>
> ERROR:
>
> Test_S3M>launch
> The following switches determine which programs are run:
> /================== Description ===================|=========== values ============|======== other options ========\
> | 1. Type of perturbative computation | order = NLO | LO |
> | 2. No MC@[N]LO matching / event generation | fixed_order = OFF | ON |
> | 3. Shower the generated events | shower = OFF | Please install module |
> | 4. Decay onshell particles | madspin = Not Avail. | Please install module |
> | 5. Add weights to events for new hypp. | reweight = Not Avail. | Please install module |
> | 6. Run MadAnalysis5 on the events generated | madanalysis = Not Avail. | Please install module |
> \==================================================================================================================/
> Either type the switch number (1 to 6) to change its setting,
> Set any switch explicitly (e.g. type 'order=LO' at the prompt)
> Type 'help' for the list of all valid option
> Type '0', 'auto', 'done' or just press enter when you are done.[60s to answer]
>>
> INFO: will run in mode: noshower
> WARNING: You have chosen not to run a parton shower.
> NLO events without showering are NOT physical.
> Please, shower the LesHouches events before using them for physics analyses.
> You have to choose NOW which parton-shower you WILL use and specify it in the run_card.
> Do you want to edit a card (press enter to bypass editing)?
> /------------------------------------------------------------\
> | 1. param : param_card.dat |
> | 2. run : run_card.dat |
> \------------------------------------------------------------/
> you can also
> - enter the path to a valid card or banner.
> - use the 'set' command to modify a parameter directly.
> The set option works only for param_card and run_card.
> Type 'help set' for more information on this command.
> - call an external program (ASperGE/MadWidth/...).
> Type 'help' for the list of available command
> [0, done, 1, param, 2, run, enter path][90s to answer]
>>
> INFO: Update the dependent parameter of the param_card.dat
> WARNING: missing MG5aMC code. Fail to update dependent parameter. This might create trouble for program like MadSpin/shower/...
> INFO: Starting run
> INFO: Compiling the code
> INFO: For gauge cancellation, the width of 'YS3u1' has been set to zero.
> INFO: MadSTR: Forcing width MDL_WXM to zero inside param_card.inc
> INFO: MadSTR: Forcing width MP__MDL_WXM to zero inside param_card.inc
> WARNING: The replacements above ensure poles cancelation, and affect all widths
> EXCEPT those which enter the resonance-treatment counterterms, which
> are taken from the param_card.
> Do NOT set these widths to zero in the param_card.
> INFO: Using built-in libraries for PDFs
> INFO: Compiling source...
> INFO: ...done, continuing with P* directories
> WARNING: Could not compile StdHEP because its source directory could not be found in the SOURCE folder.
> Check the MG5_aMC option 'output_dependencies'.
> This will prevent the use of HERWIG6/Pythia6 shower.
> Error detected in "launch"
> write debug file /home/raseeb/MG5_aMC_v2_9_6/Test_S3M/run_16_tag_1_debug.log
> If you need help with this issue please contact us on https://answers.launchpad.net/mg5amcnlo
> str : Could not compile CutTools because its source directory could not be found in the SOURCE folder.
> Check the MG5_aMC option 'output_dependencies.'
>
> --
> You received this question notification because you are assigned to this
> question.

Revision history for this message
raseeb haroon (raseebharoon) said :
#8

Hi,

I have one thing to clear up. Does the "output_dependencies = internal" command have to be used right before the output command?

Best,
Raseeb

Revision history for this message
marco zaro (marco-zaro) said :
#9

yes, this is correct

Marco

> On 20 Mar 2023, at 16:15, raseeb haroon <email address hidden> wrote:
>
> Question #705886 on MadGraph5_aMC@NLO changed:
> https://answers.launchpad.net/mg5amcnlo/+question/705886
>
> raseeb haroon posted a new comment:
> Hi,
>
> I have one thing to clear up. Does the "output_dependencies = internal"
> command have to be used right before the output command?
>
> Best,
> Raseeb
>
> --
> You received this question notification because you are assigned to this
> question.

Revision history for this message
raseeb haroon (raseebharoon) said :
#10

Hi,

Using the command "output_dependencies = internal" right before using the "output" command yields the following:-

MG5_aMC>output_dependencies = internal

Command "output_dependencies" not recognized, please try again

Best,
Raseeb

Revision history for this message
marco zaro (marco-zaro) said :
#11

> MG5_aMC>set output_dependencies = internal

cheers,

Marco

> On 21 Mar 2023, at 08:05, raseeb haroon <email address hidden> wrote:
>
> Question #705886 on MadGraph5_aMC@NLO changed:
> https://answers.launchpad.net/mg5amcnlo/+question/705886
>
> Status: Answered => Open
>
> raseeb haroon is still having a problem:
> Hi,
>
> Using the command "output_dependencies = internal" right before using
> the "output" command yields the following:-
>
>
> MG5_aMC>output_dependencies = internal
>
> Command "output_dependencies" not recognized, please try again
>
> Best,
> Raseeb
>
> --
> You received this question notification because you are assigned to this
> question.

Revision history for this message
raseeb haroon (raseebharoon) said :
#12

This time the output folder was made using the command "set output_dependencies = internal". But when I use launch this is the terminal:-

raseeb@raseeb:~/MG5_aMC_v2_9_6/Test_xxv2/bin$ ./aMCatNLO
launch in debug mode
INFO: ************************************************************
* *
* W E L C O M E to M A D G R A P H 5 *
* a M C @ N L O *
* *
* * * *
* * * * * *
* * * * * 5 * * * * *
* * * * * *
* * * *
* *
* VERSION 5.2.9.6 20xx-xx-xx *
* *
* The MadGraph5_aMC@NLO Development Team - Find us at *
* http://amcatnlo.cern.ch *
* *
* Type 'help' for in-line help. *
* *
************************************************************
INFO: load configuration from /home/raseeb/MG5_aMC_v2_9_6/Test_xxv2/Cards/amcatnlo_configuration.txt
INFO: load configuration from /home/raseeb/MG5_aMC_v2_9_6/Test_xxv2/Cards/amcatnlo_configuration.txt
Using default text editor "vi". Set another one in ./input/mg5_configuration.txt
Using default eps viewer "evince". Set another one in ./input/mg5_configuration.txt
Using default web browser "firefox". Set another one in ./input/mg5_configuration.txt
Start waiting for update. (more info in debug mode)
Traceback (most recent call last):
  File "/home/raseeb/MG5_aMC_v2_9_6/Test_xxv2/bin/./aMCatNLO", line 194, in <module>
    cmd_line = cmd_interface.aMCatNLOCmdShell()
  File "/home/raseeb/MG5_aMC_v2_9_6/Test_xxv2/bin/internal/amcatnlo_run_interface.py", line 1426, in __init__
    self.load_results_db()
  File "/home/raseeb/MG5_aMC_v2_9_6/Test_xxv2/bin/internal/misc.py", line 433, in deco_f_retry
    raise error.__class__('[Fail %i times] \n %s ' % (i+1, error))
UnboundLocalError: local variable 'error' referenced before assignment

Can you help with this problem?

Provide an answer of your own, or ask raseeb haroon for more information if necessary.

To post a message you must log in.