Skip to content

Fix exportSSVTemplate for nested systems - #1736

Merged
arun3688 merged 1 commit into
OpenModelica:masterfrom
arun3688:nested-ssv-template
Dec 3, 2026
Merged

arun3688 merged 1 commit into
OpenModelica:masterfrom
arun3688:nested-ssv-template

Conversation

@arun3688

@arun3688 arun3688 commented Dec 3, 2026

Copy link
Copy Markdown
Collaborator

Purpose

The SSV template of a nested model was wrong (#1172):

  • names of elements in subsystems did not have the path of the subsystem,
  • the template of a subsystem did not include its elements,
  • values from referenced SSV files were not used.

System.startValues now collects the start values in the same order as the instantiated model sets them, with SSM mappings applied. The templates write these values with names relative to the exported element. Test exportSSVTemplateNested1.py shows all three cases.

Assisted-by: Claude Code

The SSV template of a nested model was wrong (OpenModelica#1172):
- names of elements in subsystems did not have the path of the subsystem,
- the template of a subsystem did not include its elements,
- values from referenced SSV files were not used.

System.startValues now collects the start values in the same order as
the instantiated model sets them, with SSM mappings applied. The
templates write these values with names relative to the exported
element. Test exportSSVTemplateNested1.py shows all three cases.

Assisted-by: Claude Code
@codecov

codecov Bot commented Dec 3, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 33.27%. Comparing base (ecbc84a) to head (fdfff32).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1736   +/-   ##
=======================================
  Coverage   33.27%   33.27%           
=======================================
  Files          74       74           
  Lines       14943    14943           
  Branches     9584     9584           
=======================================
  Hits         4973     4973           
  Misses       8434     8434           
  Partials     1536     1536           
Flag Coverage Δ
linux 33.27% <ø> (ø)

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
arun3688 merged commit 9ce3f6a into OpenModelica:master Dec 3, 2026
6 checks passed
@arun3688
arun3688 deleted the nested-ssv-template branch December 3, 2026 14:46
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