Skip to content

Skip the ME runner for a --daeMode model - #334

Merged
sjoelund merged 1 commit into
masterfrom
daemode-fmu
Aug 27, 2026
Merged

Skip the ME runner for a --daeMode model#334
sjoelund merged 1 commit into
masterfrom
daemode-fmu

Conversation

@sjoelund

Copy link
Copy Markdown
Member

A --daeMode model has no explicit ODE and so no FMI Model Exchange interface; omc exports the artifact as Co-Simulation only. The me runner would ask the artifact for an interface it does not declare, so it is left out and the model is still measured by the sim and cs ones.

Which flags a model asks for is read from its
__OpenModelica_commandLineOptions annotation, and from customCommands for a config that sets the flag globally. Only looked up on the artifact path, so the C runs pay nothing for it.

Assisted-by: Claude Opus 5 (1M context)

A --daeMode model has no explicit ODE and so no FMI Model Exchange
interface; omc exports the artifact as Co-Simulation only. The `me`
runner would ask the artifact for an interface it does not declare, so
it is left out and the model is still measured by the `sim` and `cs`
ones.

Which flags a model asks for is read from its
__OpenModelica_commandLineOptions annotation, and from customCommands
for a config that sets the flag globally. Only looked up on the artifact
path, so the C runs pay nothing for it.

Assisted-by: Claude Opus 5 (1M context)
@sjoelund
sjoelund enabled auto-merge (squash) August 27, 2026 08:06
@sjoelund
sjoelund merged commit b332b2a into master Aug 27, 2026
7 checks passed
@sjoelund
sjoelund deleted the daemode-fmu branch August 27, 2026 08:58
@casella

casella commented Aug 27, 2026

Copy link
Copy Markdown
Collaborator

How do you define a --daeMode model? One that thas the annotation to set the compile flag --daeMode?

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.

2 participants