Archived OpenModelica forums. Posting is disabled.

Alternative forums include GitHub discussions or StackOverflow (make sure to read the Stack Overflow rules; you need to have well-formed questions)


Forgot password? | Forgot username? | Register

Internal error function lexer failed

Internal error function lexer failed

when i check or simulate some of my model, the following translation error is shown

Code:

[2] 09:06:43 Translation Error

[C:/dev/OM64bit/OMCompiler/Compiler/NFFrontEnd/NFUnit.mo: 883:7-883:68]: Internal error function lexer failed

but the simulation seems to work just fine. I'm trying to make a minimal working model and will share it as soon as i'm done.

any idea why OM throw that error?

Edit:
so the problem is, i defiend a unitless Real parameter as

Code:

parameter Real Kp(unit="-")

and it seems OpenModelica does not like that

Edited by: Arinomo23 - Sep-22-21 07:15:42

Re: Internal error function lexer failed

Re: Internal error function lexer failed

Thanks for the info!

There are 0 guests and 0 other users also viewing this topic
You are here: