Abstract
Virtual evaluation of complex Cyber-Physical Systems (CPS) is essential for modern engineering but faces significant hurdles due to the heterogeneity of simulation tools. Building on the Command and Control Wind Tunnel (C2WT) framework, this paper introduces a model-based platform that integrates the Functional Mockup Interface (FMI) standard with High-Level Architecture (HLA). By automating the creation of HLA-compliant wrappers for Functional Mockup Units (FMUs), the platform enables rapid synthesis of distributed, multirate simulations, facilitating the comprehensive evaluation of composed CPS.
Introduction
Cyber-Physical Systems, such as autonomous vehicles or smart grids, integrate mechanical components, electronic controllers, and communication networks. Simulating these systems requires a "heterogeneous" approach because each domain operates under different Models of Computation (MoCs)—continuous time for physics, discrete logic for controllers, and discrete events for networks.
While the Functional Mockup Interface (FMI) has emerged as a standard for model exchange via Functional Mockup Units (FMUs), it lacks a robust, standardized "Master Algorithm" for coordinating multiple FMUs across distributed systems. On the other hand, the High-Level Architecture (HLA) is a proven standard for distributed simulation coordination but typically requires extensive, error-prone manual "glue code" for integration. This paper bridges this gap by providing an automated, model-based integration environment.
Methodology: Bridging FMI and HLA
The proposed platform leverages the Command and Control Wind Tunnel (C2WT) to automate the integration process. The workflow centers on a Domain-Specific Modeling Language (DSML) implemented in the Generic Modeling Environment (GME), allowing engineers to graphically define simulation architectures rather than writing manual code.
Key technical features include:
- HLA as the Simulation Bus: HLA handles the complexities of distributed time management, data distribution, and message passing.
- Automated FMU Wrapping: The platform uses model interpreters to automatically generate the "glue code" necessary to wrap standard FMUs as HLA "federates."
- Multirate Coordination: The system supports heterogeneous time steps, allowing fast-changing electronic components to run at different rates than slower thermal processes while maintaining global synchronization.
Case Study: Vehicle Thermal Management
The platform's efficacy was demonstrated through a complex Vehicle Thermal Management (VTM) case study. This simulation integrated multiple high-fidelity models, including a driver, engine, transmission, and a detailed four-heat-exchanger cooling stack.
The models were developed using specialized libraries (Vehicle Dynamics and Liquid Cooling) and exported as FMUs from Dymola. To further test heterogeneity, the researchers integrated the OMNeT++ network simulator to model the impact of CAN bus communication delays on the vehicle's physical performance.
Key Insights and Results
The evaluation yielded several critical findings:
- Accuracy and Performance: The distributed simulation results for metrics like vehicle speed and crankshaft velocity closely matched monolithic runs. While distributed execution introduced a ~50% performance overhead (9 minutes vs. 6 minutes for a 50-second simulation), the authors consider this a worthwhile trade-off for the flexibility of tool integration and distribution.
- Cyber-Physical Interaction: By incorporating OMNeT++, the study successfully quantified how network-level communication delays directly affect physical system behavior.
- Rapid Synthesis: The transition from manual coding to model-based generation reduced the setup time for complex simulations from weeks to hours.
Limitations and Future Work
Current limitations include the requirement for individual components to run faster than real-time for synchronization in real-time modes. Future research will focus on:
- Optimization: Reducing the performance overhead through better model tuning.
- Tool Expansion: Adding support for SystemC to enable hardware-level modeling.
- Human-in-the-Loop: Enhancing support for interactive simulations, such as driving or flight simulators, where human input is a critical component.
Summary updated