TL;DR
This paper proposes a set of requirements for a future "hybrid cosimulation" standard, extending the existing Functional Mock-up Interface (FMI) standard. It addresses the challenge of simulating systems that combine continuous dynamics with discrete events, a capability lacking in current FMI versions, by defining a suite of test components and compositions to verify such a standard.
What Problem Does This Paper Address?
Modern systems, especially cyber-physical systems, often exhibit a mix of continuous behaviors (like physical processes) and discrete events (like mode switches or sensor triggers). Simulating these "hybrid systems" requires tools that can handle both types of dynamics and their interactions seamlessly. The Functional Mock-up Interface (FMI) is a standard for interoperability between simulation tools, but its current version (FMI 2.0) primarily focuses on continuous dynamics, leaving a gap in its ability to effectively model and simulate hybrid systems, particularly in its cosimulation mechanism. This paper aims to define the necessary requirements for a future FMI extension that would support this crucial hybrid cosimulation capability.
Methods
The authors propose a methodology centered around defining a comprehensive set of "test components" and "test compositions." Each test component represents a fundamental building block for hybrid systems, with a mathematically defined "ideal behavior" that serves as a benchmark. These components are designed to cover a spectrum of hybrid system functionalities, from simple signal generation to more complex behaviors like zero-crossing detection and integration with resets. The paper then outlines how these components can be combined into "test compositions" to verify the coordination and interaction requirements between different simulation tools. Acceptance criteria are provided for each component and composition, allowing for the evaluation of whether a practical implementation (like an FMU) conforms to the ideal behavior. The authors also emphasize the importance of "superdense time" and "piecewise continuous signals" as foundational concepts for modeling hybrid systems accurately.
Datasets
Not discussed in the paper. The paper focuses on defining requirements and test cases rather than empirical evaluation on existing datasets.
Key Insights and Ideas
- The Need for Hybrid Cosimulation: Existing cosimulation standards, like FMI 2.0, are optimized for continuous dynamics and struggle with the nuances of discrete events and instantaneous changes, which are critical for modeling hybrid systems.
- Superdense Time is Crucial: To accurately represent discrete events and their impact on continuous systems, the concept of "superdense time" (where multiple events can occur at the same real-time instant, distinguished by microsteps) is essential.
- Piecewise Continuity as a Foundation: Signals in hybrid systems are often "piecewise continuous." This property is vital for numerical solvers to handle discontinuities gracefully and maintain accuracy, and it forms a basis for the proposed test components.
- A Minimalist Approach to Requirements: The authors aim to define a "barely sufficient" set of components and requirements, prioritizing flexibility and interoperability by preferring weaker contracts between components.
- Idealized Behavior as a Benchmark: Defining mathematical ideals for component behavior provides a clear, tool-independent target for testing and verification, allowing for the evaluation of practical implementations against a gold standard.
Key Results
The paper defines a suite of 11 test components and several test compositions that cover essential hybrid system modeling capabilities. These include:
- Signal Generation: Constant Signal Generator, Periodic Piecewise Constant Signal Generator, Periodic Discrete Signal Generator.
- Signal Manipulation: Gain, Adder, Sampler, Discrete Time Delay, Discrete Microstep Delay.
- Event Detection and Response: Triggered Constant, Modal Model with Discrete Control, Zero-Crossing Detector.
- Integration: Integrator (with variants for different numerical methods), Integrator with Reset.
These components, when combined, are intended to test the ability of a hybrid cosimulation standard to handle:
- Zero-latency interactions.
- Discontinuous signals that are piecewise continuous.
- Step-size rejection for event detection and accuracy.
- Reaction to discrete events and production of discrete outputs.
- Accurate representation of discontinuities using superdense time.
- Monitoring of continuous inputs for discrete event generation.
Limitations and Future Work
The authors acknowledge that the defined components are not a comprehensive library but a minimal set for testing hybrid cosimulation capabilities. They suggest that these components would need further generalization and parameterization for practical library use. Future work would involve developing a formal FMI standard extension based on these requirements and validating it with actual simulation tools. The paper also highlights the need for mechanisms to handle unpredictable breakpoints and for FMUs to influence host simulator step sizes, which are areas for further research and standardization.
Summary updated