Skip to content

Start each FMI run with no OMSimulator settings - #402

Closed
sjoelund wants to merge 1 commit into
masterfrom
omsimulator-fresh-settings
Closed

sjoelund wants to merge 1 commit into
masterfrom
omsimulator-fresh-settings

Conversation

@sjoelund

@sjoelund sjoelund commented Nov 7, 2026

Copy link
Copy Markdown
Member

OMSimulator stores flags such as --tempDir in ~/.omsimulator/settings.json and reads them as defaults. Before OMSimulator #1636, parallel simulations could write the file at the same time and corrupt it. A corrupt file stays corrupt: OMSimulator does not save over a file it cannot parse (OpenModelica/OMSimulator#1695), so every simulation of the FMI jobs started with "Failed to load settings: ... parse error" and "Failed to save settings".

Remove the file before the FMI simulators run, so that OMSimulator starts with its own defaults and a file it can write.

An AI agent (Claude Opus 5.5) wrote this change. Not run locally in a full OMLT job.

Assisted-by: Claude Opus 5.5

OMSimulator stores flags such as --tempDir in
~/.omsimulator/settings.json and reads them as defaults. Before
OMSimulator #1636, parallel simulations could write the file at the
same time and corrupt it. A corrupt file stays corrupt: OMSimulator
does not save over a file it cannot parse, so every simulation of the
FMI jobs started with "Failed to load settings: ... parse error" and
"Failed to save settings".

Remove the file before the FMI simulators run, so that OMSimulator
starts with its own defaults and a file it can write.

Assisted-by: Claude Opus 5.5
@sjoelund sjoelund closed this Nov 7, 2026
@sjoelund
sjoelund deleted the omsimulator-fresh-settings branch November 7, 2026 07:23
@sjoelund

sjoelund commented Nov 7, 2026

Copy link
Copy Markdown
Member Author

Duplicate of #401

@sjoelund sjoelund marked this as a duplicate of #401 Nov 7, 2026
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