Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

extraSimFlags entry gets overridden #40

Open
bilderbuchi opened this issue Sep 12, 2023 · 1 comment
Open

extraSimFlags entry gets overridden #40

bilderbuchi opened this issue Sep 12, 2023 · 1 comment
Assignees

Comments

@bilderbuchi
Copy link

bilderbuchi commented Sep 12, 2023

According to the Readme, I am defining an entry "extraSimFlags": "-lv=LOG_NLS" in the config file entry for a library, expecting to see Nonlinear System logging messages that could help troubleshoot a failing test (that does not fail on my local machine).

Unfortunately, in the logs I find:

Regular simulation: ./mymodel -abortSlowSimulation -alarm=480 -lv=LOG_NLS -lv LOG_STATS
stdout | warning | Command line option 'lv' specified again. Value has been overriden from 'LOG_NLS' to 'LOG_STATS'.

So, unexpectedly, it does not seem possible to define this extra/additional simulation flag.

A quick search in the codebase finds

cmd = cmd + " -lv LOG_STATS"
which is probably responsible for this problem.

Expected behaviour

Extra simulation flags are added in addition to default ones.

@casella
Copy link
Collaborator

casella commented Sep 12, 2023

@bilderbuchi a similar issue was solved in OpenModelica/OpenModelica#7860, while others are still pending, see OpenModelica/OpenModelica#7861.

Maybe @mahge can comment on that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants