Repository navigation
Conversation
Explain importer control over discrete-state evaluation, the call order required for up-to-date getter results, and the UpdateDiscreteStates fallback and clock deactivation consequences. Align capability descriptions and algebraic-loop guidance, and remove the unsupported discrete-state manipulation claim. Resolves: modelica#2194
masoud-najafi
left a comment
There was a problem hiding this comment.
Some phrases have been repeated. But globally it's fine.
There was a problem hiding this comment.
🟡 Changes recommended
The transition rules allow stale evaluations and leave dependency tracing, Jacobians, and clocked-output sequencing unresolved.
4 open issues
What changed in this PR
Clarifies FMI’s Event Mode contract for providesEvaluateDiscreteStates, explaining how importers control discrete-state evaluation separately from getter-triggered computations.
Changes:
- Specifies evaluation and getter calling order for current transition results.
- Explains the
fmi3UpdateDiscreteStatesfallback and Clock deactivation consequences. - Aligns algebraic-loop and capability guidance, removing the unsupported state-manipulation claim.
| File | Description |
|---|---|
| docs/4_4_co-simulation_schema.adoc | Clarifies Co-Simulation capability semantics and calling-order requirements. |
| docs/3_4_model_exchange_schema.adoc | Adds matching Model Exchange capability guidance. |
| docs/2_3_common_states.adoc | Details evaluation ordering, fallback behavior, and clocked-value access. |
| docs/2_2_common_mechanisms.adoc | Aligns partition, selective-computation, and algebraic-loop guidance. |
Review effort: Balanced
…om/clagms/fmi-standard into Clairfy_fmi3EvaluateDiscreteStates
…outside the example.
…cks, so recording clocks after that call does not make sense.
|
Based on the paper shared by Karl (Link), the discrete-time state-space model can be expressed as: Implementation Note: |
|
Notes from the FMI-design meeting 2026-11-30:
|

Explain importer control over discrete-state evaluation, the call order required for up-to-date getter results, and the UpdateDiscreteStates fallback and clock deactivation consequences.
Align capability descriptions and algebraic-loop guidance, and remove the unsupported discrete-state manipulation claim.
Resolves: #2194
Changes
The following are screenshots of the most relevant changes.
Clocked Partition Specification (Section 2.2.8.3. Model Partitions and Clocked Variables)
Algebraic Loops (Section 2.2.11. Algebraic Loops)
Event Mode Table (Section 2.3.5. State: Event Mode)
Allowed function calls (just below table):
Tables 40 and 42
Example of Event Mode with Clocks (Section 4.3.4. Event Mode with Clocks)
The example was previously recording clocks after the call to FMI3UpdateDiscreteStates, which contradicts the standard, since those clocks would be de-activated by the call to FMI3UpdateDiscreteStates and therefore corresponding clocked variables would not be observable.