Skip to content

Applied changes to handle root SSDs with subsystems where subsystem o… - #1710

Closed
larsviktorlarsson wants to merge 2 commits into
OpenModelica:masterfrom
larsviktorlarsson:master
Closed

larsviktorlarsson wants to merge 2 commits into
OpenModelica:masterfrom
larsviktorlarsson:master

Conversation

@larsviktorlarsson

@larsviktorlarsson larsviktorlarsson commented Nov 18, 2026 •

Copy link
Copy Markdown

Purpose

So, I have an .ssp file (attached as zip) with root ssds that contain subsystems (the stimuli ssds). In these SSDs, I have subsystem outputs connected to root system outputs. Then, the simulator only copies the values, since it does not recognise that there is FMU information coming upstream (if I understood it correctly). So, the root outputs are not updated.

Approach

I used copilot to help me out with a solution. Essentially it follows the connections until it finds an FMU and then creates a live link.
ParkerSimPack.zip

@CLAassistant

CLAassistant commented Nov 18, 2026 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@arun3688

arun3688 commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

@larsviktorlarsson can you please sign the CLA https://cla-assistant.io/OpenModelica/OMSimulator?pullRequest=1710, so that we can merge your PR, I have added tests which checks your changes so that is nice

@codecov

codecov Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 32.45%. Comparing base (fbb3029) to head (5d62085).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1710   +/-   ##
=======================================
  Coverage   32.45%   32.45%           
=======================================
  Files          74       74           
  Lines       14773    14773           
  Branches     9508     9508           
=======================================
  Hits         4794     4794           
  Misses       8488     8488           
  Partials     1491     1491           
Flag Coverage Δ
linux 32.45% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@arun3688

Copy link
Copy Markdown
Contributor

@larsviktorlarsson thank you for the report and the fix. This is now fixed on master with 7ffac32 (#1717). I used your approach. I moved this logic from InstantiatedModel to System.generateJson, so that the boundary connections are already resolved when the simulation units are created. The test NestedSystemSimulation4.py covers this case. Please pull the latest changes from master and test it

@arun3688 arun3688 closed this Nov 26, 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.

3 participants