Skip to content

Drop allow flags from model annotations - #428

Merged
sjoelund merged 1 commit into
masterfrom
annotation-allow-flags
Nov 17, 2026
Merged

sjoelund merged 1 commit into
masterfrom
annotation-allow-flags

Conversation

@sjoelund

Copy link
Copy Markdown
Member

--warnNonStandardModelica reports non-standard Modelica unless --allowNonStandardModelica allows it. Some models set that flag in their __OpenModelica_commandLineOptions annotation (IDEAS LIDEAS.Validation), and omc applies the annotation during the translation. Thus these models give no warning and are not marked invalid.

If --warnNonStandardModelica is in the commands, testmodel.py now sets --ignoreCommandLineOptionsAnnotation and applies the other flags of the annotation itself. The .err file tells which flags it used.

See #426.

Assisted-by: Claude Opus 5.5

--warnNonStandardModelica reports non-standard Modelica unless
--allowNonStandardModelica allows it. Some models set that flag in their
__OpenModelica_commandLineOptions annotation (IDEAS LIDEAS.Validation),
and omc applies the annotation during the translation. Thus these models
give no warning and are not marked invalid.

If --warnNonStandardModelica is in the commands, testmodel.py now sets
--ignoreCommandLineOptionsAnnotation and applies the other flags of the
annotation itself. The .err file tells which flags it used.

See #426.

Assisted-by: Claude Opus 5.5
@sjoelund
sjoelund enabled auto-merge (squash) November 17, 2026 13:47
@sjoelund
sjoelund merged commit 314f32e into master Nov 17, 2026
7 checks passed
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

Successfully merging this pull request may close these issues.

1 participant