Launching a new model results in "ERROR: Illegal character '$' "

Asked by Oliver Fischer

Dear MadGraph5_aMC@NLO Team,

i generated a new model (including a heavy neutrino n1) with Feynrules 2.0.33.
Loading the generated UFO files into MG5_aMC and generating an event (e+ e- > ve n1) works well.

However the 'launch' command generates the following error message:
ERROR: Illegal character '$'
Error detected in "launch"
write debug file MG5_debug
If you need help with this issue please contact us on https://answers.launchpad.net/madgraph5
ModelError : Syntax error at 'Null' (LexToken(VARIABLE,'Null',1,15)).

Something about this error is found in the file MG5_debug. The last lines before the MadGraph5_aMC@NLO Options read:
File "/home/oliver/Work/Colliderstudies/Mad5_aMC@NLO/MG5_aMC_v2_2_1/madgraph/iolibs/ufo_expression_parsers.py", line 240, in p_error
    raise ModelError("Syntax error at '%s' (%s)." %(p.value,p))
ModelError: Syntax error at 'Null' (LexToken(VARIABLE,'Null',1,15)).

The model file only contains '$' characters at predefined positions from the template, i.e. M$ModelName, M$Information, etc.
Can you tell me what went wrong?

Thanks and best regards,
Oliver.

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

Hi,

> The model file only contains '$' characters at predefined positions from the template, i.e. M$ModelName, M$Information, etc.
> Can you tell me what went wrong?

I do not think that any of those should be part of the UFO model.

Without the full debug file, it is difficult to understand your problem.
Do I guess correctly that you are using the automatic width computation?
If yes, then the error is likely to be part of the decays.py file.

Does the code works if you remove it?
Do you have some $ in that file?

If yes, please contact the FR author since this is likely to be a bug in their side.

Cheers,

Olivier

On 28 Apr 2015, at 06:26, Oliver Fischer <email address hidden> wrote:

> New question #266026 on MadGraph5_aMC@NLO:
> https://answers.launchpad.net/mg5amcnlo/+question/266026
>
> Dear MadGraph5_aMC@NLO Team,
>
> i generated a new model (including a heavy neutrino n1) with Feynrules 2.0.33.
> Loading the generated UFO files into MG5_aMC and generating an event (e+ e- > ve n1) works well.
>
> However the 'launch' command generates the following error message:
> ERROR: Illegal character '$'
> Error detected in "launch"
> write debug file MG5_debug
> If you need help with this issue please contact us on https://answers.launchpad.net/madgraph5
> ModelError : Syntax error at 'Null' (LexToken(VARIABLE,'Null',1,15)).
>
> Something about this error is found in the file MG5_debug. The last lines before the MadGraph5_aMC@NLO Options read:
> File "/home/oliver/Work/Colliderstudies/Mad5_aMC@NLO/MG5_aMC_v2_2_1/madgraph/iolibs/ufo_expression_parsers.py", line 240, in p_error
> raise ModelError("Syntax error at '%s' (%s)." %(p.value,p))
> ModelError: Syntax error at 'Null' (LexToken(VARIABLE,'Null',1,15)).
>
> The model file only contains '$' characters at predefined positions from the template, i.e. M$ModelName, M$Information, etc.
> Can you tell me what went wrong?
>
> Thanks and best regards,
> Oliver.
>
> --
> You received this question notification because you are an answer
> contact for MadGraph5_aMC@NLO.

Revision history for this message
Oliver Fischer (oliver-fischer) said :
#2

Thanks for your fast response, Olivier!

The decay.py does not contain a '$' character, and i also am not
computing the widths at the moment (numerically set parameters).

I attach the debug file, maybe you can spot something?
It is also not impossible that something is wrong with the .fr file - i
will also get in touch with the authors of Feynrules this regarding.

Thanks again, regards.
Oliver

On 28.04.2015 12:26, Olivier Mattelaer wrote:
> Your question #266026 on MadGraph5_aMC@NLO changed:
> https://answers.launchpad.net/mg5amcnlo/+question/266026
>
> Status: Open => Answered
>
> Olivier Mattelaer proposed the following answer:
> Hi,
>
>> The model file only contains '$' characters at predefined positions from the template, i.e. M$ModelName, M$Information, etc.
>> Can you tell me what went wrong?
>
> I do not think that any of those should be part of the UFO model.
>
> Without the full debug file, it is difficult to understand your problem.
> Do I guess correctly that you are using the automatic width computation?
> If yes, then the error is likely to be part of the decays.py file.
>
> Does the code works if you remove it?
> Do you have some $ in that file?
>
> If yes, please contact the FR author since this is likely to be a bug in
> their side.
>
> Cheers,
>
> Olivier
>
> On 28 Apr 2015, at 06:26, Oliver Fischer
> <email address hidden> wrote:
>
>> New question #266026 on MadGraph5_aMC@NLO:
>> https://answers.launchpad.net/mg5amcnlo/+question/266026
>>
>> Dear MadGraph5_aMC@NLO Team,
>>
>> i generated a new model (including a heavy neutrino n1) with Feynrules 2.0.33.
>> Loading the generated UFO files into MG5_aMC and generating an event (e+ e- > ve n1) works well.
>>
>> However the 'launch' command generates the following error message:
>> ERROR: Illegal character '$'
>> Error detected in "launch"
>> write debug file MG5_debug
>> If you need help with this issue please contact us on https://answers.launchpad.net/madgraph5
>> ModelError : Syntax error at 'Null' (LexToken(VARIABLE,'Null',1,15)).
>>
>> Something about this error is found in the file MG5_debug. The last lines before the MadGraph5_aMC@NLO Options read:
>> File "/home/oliver/Work/Colliderstudies/Mad5_aMC@NLO/MG5_aMC_v2_2_1/madgraph/iolibs/ufo_expression_parsers.py", line 240, in p_error
>> raise ModelError("Syntax error at '%s' (%s)." %(p.value,p))
>> ModelError: Syntax error at 'Null' (LexToken(VARIABLE,'Null',1,15)).
>>
>> The model file only contains '$' characters at predefined positions from the template, i.e. M$ModelName, M$Information, etc.
>> Can you tell me what went wrong?
>>
>> Thanks and best regards,
>> Oliver.
>>
>> --
>> You received this question notification because you are an answer
>> contact for MadGraph5_aMC@NLO.

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

Hi Olivier,

the debug file can not be attach for question (this is stupid but this is the only default of this platform).
Could you send it to me by email?

Cheers,

Olivier
On 28 Apr 2015, at 07:36, Oliver Fischer <email address hidden> wrote:

> Question #266026 on MadGraph5_aMC@NLO changed:
> https://answers.launchpad.net/mg5amcnlo/+question/266026
>
> Status: Answered => Open
>
> Oliver Fischer is still having a problem:
> Thanks for your fast response, Olivier!
>
> The decay.py does not contain a '$' character, and i also am not
> computing the widths at the moment (numerically set parameters).
>
> I attach the debug file, maybe you can spot something?
> It is also not impossible that something is wrong with the .fr file - i
> will also get in touch with the authors of Feynrules this regarding.
>
> Thanks again, regards.
> Oliver
>
>
> On 28.04.2015 12:26, Olivier Mattelaer wrote:
>> Your question #266026 on MadGraph5_aMC@NLO changed:
>> https://answers.launchpad.net/mg5amcnlo/+question/266026
>>
>> Status: Open => Answered
>>
>> Olivier Mattelaer proposed the following answer:
>> Hi,
>>
>>> The model file only contains '$' characters at predefined positions from the template, i.e. M$ModelName, M$Information, etc.
>>> Can you tell me what went wrong?
>>
>> I do not think that any of those should be part of the UFO model.
>>
>> Without the full debug file, it is difficult to understand your problem.
>> Do I guess correctly that you are using the automatic width computation?
>> If yes, then the error is likely to be part of the decays.py file.
>>
>> Does the code works if you remove it?
>> Do you have some $ in that file?
>>
>> If yes, please contact the FR author since this is likely to be a bug in
>> their side.
>>
>> Cheers,
>>
>> Olivier
>>
>> On 28 Apr 2015, at 06:26, Oliver Fischer
>> <email address hidden> wrote:
>>
>>> New question #266026 on MadGraph5_aMC@NLO:
>>> https://answers.launchpad.net/mg5amcnlo/+question/266026
>>>
>>> Dear MadGraph5_aMC@NLO Team,
>>>
>>> i generated a new model (including a heavy neutrino n1) with Feynrules 2.0.33.
>>> Loading the generated UFO files into MG5_aMC and generating an event (e+ e- > ve n1) works well.
>>>
>>> However the 'launch' command generates the following error message:
>>> ERROR: Illegal character '$'
>>> Error detected in "launch"
>>> write debug file MG5_debug
>>> If you need help with this issue please contact us on https://answers.launchpad.net/madgraph5
>>> ModelError : Syntax error at 'Null' (LexToken(VARIABLE,'Null',1,15)).
>>>
>>> Something about this error is found in the file MG5_debug. The last lines before the MadGraph5_aMC@NLO Options read:
>>> File "/home/oliver/Work/Colliderstudies/Mad5_aMC@NLO/MG5_aMC_v2_2_1/madgraph/iolibs/ufo_expression_parsers.py", line 240, in p_error
>>> raise ModelError("Syntax error at '%s' (%s)." %(p.value,p))
>>> ModelError: Syntax error at 'Null' (LexToken(VARIABLE,'Null',1,15)).
>>>
>>> The model file only contains '$' characters at predefined positions from the template, i.e. M$ModelName, M$Information, etc.
>>> Can you tell me what went wrong?
>>>
>>> Thanks and best regards,
>>> Oliver.
>>>
>>> --
>>> You received this question notification because you are an answer
>>> contact for MadGraph5_aMC@NLO.
>
> --
> 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 Oliver Fischer for more information if necessary.

To post a message you must log in.