Skip to content

Fix FMI3 export value references#2297

Merged
robbr48 merged 3 commits intoHopsan:masterfrom
robbr48:fix_fmi3_export
Sep 24, 2025
Merged

Fix FMI3 export value references#2297
robbr48 merged 3 commits intoHopsan:masterfrom
robbr48:fix_fmi3_export

Conversation

@robbr48
Copy link
Contributor

@robbr48 robbr48 commented Sep 24, 2025

FMI 3 reserves both value references 0 (time) and 1 (timestep), unlike FMI 1 & 2 which only reserves 0. The Hopsan export used to handle this wrong, which caused an offset by 1 in exported FMUs.

@robbr48 robbr48 added this to the 2.23.1 milestone Sep 24, 2025
@robbr48 robbr48 self-assigned this Sep 24, 2025
@robbr48 robbr48 added the import/export:fmi FMI import/export or functionality label Sep 24, 2025
@robbr48 robbr48 changed the title Fix fmi3 export Fix FMI3 export value references Sep 24, 2025
@robbr48 robbr48 merged commit 573cf72 into Hopsan:master Sep 24, 2025
3 checks passed
@robbr48 robbr48 deleted the fix_fmi3_export branch September 24, 2025 09:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

import/export:fmi FMI import/export or functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant