Skip to content

Revise event iteration and super-dense time instant handling - #2176

Merged
chrbertsch merged 5 commits into
mainfrom
events-and-clocks
Jun 10, 2026
Merged

Revise event iteration and super-dense time instant handling#2176
chrbertsch merged 5 commits into
mainfrom
events-and-clocks

Conversation

@chrbertsch

Copy link
Copy Markdown
Collaborator

resolves #2158

Updated recommendations for event iteration and concluded super-dense time instants.
@chrbertsch
chrbertsch requested a review from klausschuch June 9, 2026 09:17
@chrbertsch
chrbertsch marked this pull request as ready for review June 9, 2026 09:34
@Tc-Fast

Tc-Fast commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

The whole paragraph is still non-normative. Is this intended?

Comment thread docs/2_3_common_states.adoc Outdated
Co-authored-by: Klaus Schuch <klaus.schuch@avl.com>
Comment thread docs/2_3_common_states.adoc Outdated
Co-authored-by: Nikolai Fast <n.fast@beckhoff.de>
Comment thread docs/2_3_common_states.adoc Outdated
Comment thread docs/2_3_common_states.adoc Outdated
Each super-dense time instant represents a distinct event occurring at the same simulation time.
If any event originating from the continuous time mode (for a ME FMU) resp. step mode (for a CS FMU) is present, its event iteration must be performed during the first super-dense time instant.
Each super-dense time instant must conclude with a call to <<fmi3UpdateDiscreteStates>>.
If any event originating from the continuous time mode (for a ME FMU) resp. step mode (for a CS FMU) is present, it is recommended that its event iteration gets handled during the first super-dense time instant.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
If any event originating from the continuous time mode (for a ME FMU) resp. step mode (for a CS FMU) is present, it is recommended that its event iteration gets handled during the first super-dense time instant.
If any non-clocked event is present, it is recommended that its event iteration gets handled during the first super-dense time instant.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hans: in Modelica we would handle the clocks fist, and not iterate on the clocks.
Elmir: What about the "not iterate on the clocks" in Modelica.
Hans: For non clocked-part you can have a cascade of events (e.g. for multiple clutches) in an event iteration.
Christian: what about triggered clocks in Modelica?
Hans: they exist also. You have to wait until they are triggered.

Comment thread docs/2_3_common_states.adoc Outdated
@chrbertsch
chrbertsch merged commit 83233fe into main Jun 10, 2026
8 checks passed
@chrbertsch
chrbertsch deleted the events-and-clocks branch June 10, 2026 07:54
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.

Improve desciption of fmi3SetClock

3 participants