Skip to content

extraSimFlags entry gets overridden #40

Open

Description

@bilderbuchi

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.

Activity

  1. casella commented on Sep 12, 2023

    @casella
    Collaborator

    @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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions