'Inappropriate ioctl for device' error automatic inputs MG

Asked by Sophie Williamson

Hi there,

I have been feeding MG parameter and launch cards to automate the running process. This has worked for various models. Now, I am trying to run the MG MSSM_slha2 model, and for my inputs to work I need to feed MG an "update to_slha2" command. Setting the Delphes, Pythia8 etc settings, and getting an update to slha2 works fine in manual mode, and nothing crashes.

However when I feed in a card, i.e. containing the same commands as typed manually:
shower=pythia8
detector=Delphes
madspin=OFF
analysis=OFF
0
update to_slha2
done

then MG doesn't seem to read in the update to_slha2. It doesn't explicitly tell me that it's reading in the other settings either, but if I type detector=OFF (for example) then the flag visibly changes in MG. Instead, the only thing I see written in my output is
'stty: 'standard input': Inappropriate ioctl for device'. I realise now that it has always done this for the other runs also, but as MG still seems to modify correctly the detector/analysis setting etc, it hasn't mattered. I just need MG to update to_slha2 when being fed a launch script.

I wonder whether this possibly isn't an MG problem at all and something related to my settings (I'm sshing onto a lab computer), but I can't seem to solve it and wondered whether it was something you had familiarity with.

Can you help at all?

Thanks a lot,

Sophie

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

Dear Sophie,

Concerning this, I have never heard of such message in conjunction of MG5
'stty: 'standard input': Inappropriate ioctl for device'.

Now when googling this error it seems that it might be related to your profile on your machine.
I found that link interesting
https://stackoverflow.com/questions/24623021/getting-stty-standard-input-inappropriate-ioctl-for-device-when-using-scp-thro

Otherwise, could you run in debug mode (--debug)
and copy here the full log appearing on screen (or in a file if you redirect it)
I have actually test the command with the latest version of the code and it is correctly recognised.

Cheers,

Olivier

Revision history for this message
Sophie Williamson (swilliamson) said :
#2

Hi Olivier,

Thanks for your response. Changing my bashrc as suggested in the post (unless I’m doing it incorrectly) doesn’t change anything for me unfortunately.

Running MG in debug mode from the main directory (./bin/mg5 —debug) doesn’t bring up anything interesting - just some lines in green like
'DEBUG: remove interactions: u s w+ at order: QED=1
DEBUG: remove interactions: s t w+ at order: QED=1 ‘.

What I am doing in my MSSM directory is
cat runs.proc | bin/generate_events

And this returns:

--------------------------------------------------------------------------------------------------------------------------------------------
INFO: load configuration from /misc/hubble/swilliamson/MG5_aMC_v2.6.3.2/MG5_aMC_v2_6_3_2/Recast/MSSM/Cards/me5_configuration.txt
INFO: load configuration from /misc/hubble/swilliamson/MG5_aMC_v2.6.3.2/MG5_aMC_v2_6_3_2/input/mg5_configuration.txt
INFO: load configuration from /misc/hubble/swilliamson/MG5_aMC_v2.6.3.2/MG5_aMC_v2_6_3_2/Recast/MSSM/Cards/me5_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
generate_events
stty: 'standard input': Inappropriate ioctl for device
The following switches determine which programs are run:
/===========================================================================\
| 1. Choose the shower/hadronization program shower = Pythia8 |
| 2. Choose the detector simulation program detector = Delphes |
| 3. Choose an analysis package (plot/convert) analysis = Not Avail. |
| 4. Decay onshell particles madspin = OFF |
| 5. Add weights to events for new hypp. reweight = OFF |
\===========================================================================/
Either type the switch number (1 to 5) to change its setting,
Set any switch explicitly (e.g. type 'shower=OFF' 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]
stty: 'standard input': Inappropriate ioctl for device
stty: 'standard input': Inappropriate ioctl for device
>The following switches determine which programs are run:
/===========================================================================\
| 1. Choose the shower/hadronization program shower = Pythia8 |
| 2. Choose the detector simulation program detector = Delphes |
| 3. Choose an analysis package (plot/convert) analysis = Not Avail. |
| 4. Decay onshell particles madspin = OFF |
| 5. Add weights to events for new hypp. reweight = OFF |
\===========================================================================/
Either type the switch number (1 to 5) to change its setting,
Set any switch explicitly (e.g. type 'shower=OFF' at the prompt)
Type 'help' for the list of all valid option
Type '0', 'auto', 'done' or just press enter when you are done.
stty: 'standard input': Inappropriate ioctl for device
stty: 'standard input': Inappropriate ioctl for device
>The following switches determine which programs are run:
/===========================================================================\
| 1. Choose the shower/hadronization program shower = Pythia8 |
| 2. Choose the detector simulation program detector = Delphes |
| 3. Choose an analysis package (plot/convert) analysis = Not Avail. |
| 4. Decay onshell particles madspin = OFF |
| 5. Add weights to events for new hypp. reweight = OFF |
\===========================================================================/
Either type the switch number (1 to 5) to change its setting,
Set any switch explicitly (e.g. type 'shower=OFF' at the prompt)
Type 'help' for the list of all valid option
Type '0', 'auto', 'done' or just press enter when you are done.
stty: 'standard input': Inappropriate ioctl for device
stty: 'standard input': Inappropriate ioctl for device
>The following switches determine which programs are run:
/===========================================================================\
| 1. Choose the shower/hadronization program shower = Pythia8 |
| 2. Choose the detector simulation program detector = Delphes |
| 3. Choose an analysis package (plot/convert) analysis = Not Avail. |
| 4. Decay onshell particles madspin = OFF |
| 5. Add weights to events for new hypp. reweight = OFF |
\===========================================================================/
Either type the switch number (1 to 5) to change its setting,
Set any switch explicitly (e.g. type 'shower=OFF' at the prompt)
Type 'help' for the list of all valid option
Type '0', 'auto', 'done' or just press enter when you are done.
stty: 'standard input': Inappropriate ioctl for device
>Do you want to edit a card (press enter to bypass editing)?
/------------------------------------------------------------\
| 1. param : param_card.dat |
| 2. run : run_card.dat |
| 3. pythia8 : pythia8_card.dat |
| 4. delphes : delphes_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, 3, pythia8, 4, enter path, ... ][90s to answer]
>INFO: Update the dependent parameter of the param_card.dat
WARNING: Param card is not complete: Block mse2 is simply missing.
                We will use model default for all missing value! Please cross-check that
                this correspond to your expectation.
WARNING: Param card is not complete: Block msu2 is simply missing.
                We will use model default for all missing value! Please cross-check that
                this correspond to your expectation.
WARNING: Param card is not complete: Block msq2 is simply missing.
                We will use model default for all missing value! Please cross-check that
                this correspond to your expectation.
WARNING: Param card is not complete: Block msl2 is simply missing.
                We will use model default for all missing value! Please cross-check that
                this correspond to your expectation.
WARNING: Param card is not complete: Block msd2 is simply missing.
                We will use model default for all missing value! Please cross-check that
                this correspond to your expectation.
Command "generate_events " interrupted with error:
MadGraph5Error : Invalid restriction card (not same block)
     set(['umix', 'ae', 'ad', 'sphenolowenergy', 'fwcoef', 'gauge', 'decay', 'minpar', 'staumix', 'imfwcoef', 'msoft', 'ye', 'yd', 'higgsboundsinputhiggscouplingsbosons', 'alpha', 'sminputs', 'yu', 'stopmix', 'nmix', 'higgsboundsinputhiggscouplingsfermions', 'sbotmix', 'extpar', 'vmix', 'mass', 'au', 'hmix']) != set(['umix', 'msoft', 'msu2', 'fralpha', 'msd2', 'msl2', 'decay', 'tu', 'selmix', 'td', 'te', 'usqmix', 'dsqmix', 'ye', 'yd', 'sminputs', 'yu', 'mse2', 'nmix', 'vmix', 'msq2', 'mass', 'hmix']).
     Missing block: te,msl2,dsqmix,tu,selmix,msu2,msq2,usqmix,td,fralpha,mse2,msd2
     Unknown block : higgsboundsinputhiggscouplingsfermions,sbotmix,ae,ad,extpar,sphenolowenergy,minpar,fwcoef,alpha,gauge,higgsboundsinputhiggscouplingsbosons,imfwcoef,au,staumix,stopmix
Please report this bug on https://bugs.launchpad.net/mg5amcnlo
More information is found in '/misc/hubble/swilliamson/MG5_aMC_v2.6.3.2/MG5_aMC_v2_6_3_2/Recast/MSSM/MSSM_MDO_1.300e+03.MSQ_3.000e+03_tag_1_debug.log'.
Please attach this file to your report.
quit

——————————————————————————————————————————————————————————————————————

My cat runs.proc contains what I typed in in my first query.

Thanks,

Sophie

> On 9 Dec 2018, at 13:13, Olivier Mattelaer <email address hidden> wrote:
>
> Your question #676707 on MadGraph5_aMC@NLO changed:
> https://answers.launchpad.net/mg5amcnlo/+question/676707
>
> Status: Open => Answered
>
> Olivier Mattelaer proposed the following answer:
> Dear Sophie,
>
>
> Concerning this, I have never heard of such message in conjunction of MG5
> 'stty: 'standard input': Inappropriate ioctl for device'.
>
> Now when googling this error it seems that it might be related to your profile on your machine.
> I found that link interesting
> https://stackoverflow.com/questions/24623021/getting-stty-standard-input-inappropriate-ioctl-for-device-when-using-scp-thro
>
> Otherwise, could you run in debug mode (--debug)
> and copy here the full log appearing on screen (or in a file if you redirect it)
> I have actually test the command with the latest version of the code and it is correctly recognised.
>
> Cheers,
>
> Olivier
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
> https://answers.launchpad.net/mg5amcnlo/+question/676707/+confirm?answer_id=0
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/mg5amcnlo/+question/676707
>
> You received this question notification because you asked the question.

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

Hi Sophie,

Looks like you are not using the "official" method for scripting.

In your case you should

1) add the line "generate_events" to your runs.proc file (put that commmand as the first line of the file)
2) run it as ./bin/madevent runs.proc

This will not use any stdin and likely solve the issue

Cheers,

Olivier

On 9 Dec 2018, at 16:46, Sophie Williamson <<email address hidden><mailto:<email address hidden>>> wrote:

 runs.proc | bin/generate_events

Can you help with this problem?

Provide an answer of your own, or ask Sophie Williamson for more information if necessary.

To post a message you must log in.