Repository navigation
Add FMI3 support - #817
Draft
davidhjp01 wants to merge 8 commits into
Draft
Add FMI3 support#817davidhjp01 wants to merge 8 commits into
davidhjp01 wants to merge 8 commits into
Conversation
Member
Author
|
Unfortunately, at some point, my local git history re-wrote the whole git graph that led to completely diverged git history from the first commit. This could not be easily replayed and merged into libcosim master, so I had to create a single commit that contains all changes.. |
Cpp-Linter Report
|
Pin CI to clang-format 23.1.6 and use clang-tidy 23; verify the formatter version and increase lint parallelism. Document the tool versions and add status messages to clang-check.ps1.
Use the GCC 14 container to match Linux Release runtimes and configure Conan shared dependencies. Pin clang-format 23.1.6 and install LLVM tooling without sudo; update version validation for Debian and Ubuntu output.
Add explicit includes and IWYU annotations across public headers to make dependencies self-contained, and update FMI headers and namespaces. Enhance clang-check.ps1 to summarize emitted diagnostics by tool pass and report failures. Remove redundant clang-format version verification from the quality workflow and update contributing guidance for the new summaries and FMI 3 cleanup behavior.
…ting configurations
Invoke extensionless and `.py` run-clang-tidy scripts through Python 3 or the `py -3` launcher, while retaining direct invocation for native executables and command wrappers. Document the Windows runner behavior in CONTRIBUTING.md.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
FMI 3 Co-Simulation support
Summary
Add a bounded FMI 3.0.2 Co-Simulation implementation to the existing importer
and execution framework, while retaining FMI 1 and FMI 2 support. FMI 3 FMUs
can be used directly or alongside FMI 1/2 FMUs in a connected simulation.
Changes
through their Co-Simulation interface. Keep the instantiation token separate
from FMI 1/2 UUIDs and identify cached FMI 3 archives independently of that
token.
widths, Boolean, String, Binary and Enumeration values, plus whole arrays.
Validate types, permissions, dimensions and flattened value counts; support
structural parameters and permitted runtime reconfiguration.
logging, Event Mode and Intermediate Update callbacks. Support capability-
gated FMU state, serialization, derivatives and variable dependencies.
returns, Clock schedules and Clock-associated data. Add fixed-step
decimation, event-iteration limits and supported execution snapshots.
scenarios. Add OSP 0.2.0 and SSP 2.0 configuration support for exact
values and fixed-shape arrays, including OSP Clock sources.
systems, event and Clock behavior, invalid inputs, capability checks and
failure paths. Separate test FMU generation from normal test builds and add
a manually dispatched fixture-building workflow.
implemented FMI 3 features, together with documentation and quality CI.
Scope and limitations
only those interfaces are rejected. FMI 3 Clock support is for
Co-Simulation, not Scheduled Execution.
lifecycle state. Early return must be negotiated; events cannot be handled
away from a completed communication point without it.
return, event delivery can be delayed. Clock-capable participants cannot
use fixed-step decimation, and ECCO does not support decimation.
not implicitly converted. Runtime array resizing does not renegotiate
connections in an existing execution.
variable-size connector dimensions and mapping transformations are not
supported.
Test coverage
The branch adds tests using Reference FMUs and purpose-built fixtures for
values, lifecycle and status handling, events, Clocks, callbacks, snapshots,
derivatives, configuration, and mixed FMI versions. FMU fixtures must be
provisioned separately before running the relevant tests.