Kamp, Tobias and Bürger, Christoff and Rein, Johannes and Brembeck, Jonathan (2025) Hybrid Simulation Models for Embedded Applications: A Modelica and eFMI approach. In: Proceedings of the 16th International Modelica&FMI Conference (218), pp. 545-555. 16th International Modelica & FMI Conference, 2025-09-08 - 2025-09-10, Lucerne, Switzerland. doi: 10.3384/ecp218555. ISBN 978-91-8118-266-8. ISSN 1650-3740.
|
PDF
442kB |
Official URL: https://ecp.ep.liu.se/index.php/modelica/article/view/1341
Abstract
Hybrid simulation models combine physics equations with trainable components to improve simulation results and performance. Physics-enhanced neural ordinary differential equations (PeN-ODE) are a promising type of hybrid models that combine artificial neural networks (NN) with the differential equations of a dynamic system. Dynamic simulation models are often part of embedded control algorithms of cyber-physical systems (CPS); compliance with the safety and real-time requirements of such embedded environments is, however, challenging. In this work, we propose a workflow to incorporate trained NNs in Modelica models to form hybrid simulation models that are PeN-ODEs. We thereby focus on the transformation steps from equation-based trained PeN- ODEs in Modelica towards causal solutions suited for the embedded domain - up to and including MISRA C:2023 compliance checks and final software-in-the-loop (SiL) tests of generated production code in the modeling environment - for which we leverage eFMI standard compliant tools (Dymola and Software Production Engineering). It is of particular interest how the trained NNs of the hybrid model are implemented. We present two approaches: (1) generation of C code using existing Open Neural Network Exchange (ONNX) tooling and (2) pure Modelica code with the tensor-flow represented as multidimensional equations. Both approaches are discussed, highlighting why (2) is, in the long run, a better option given the eFMI technology space.
| Item URL in elib: | https://elib.dlr.de/217608/ | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Document Type: | Conference or Workshop Item (Speech) | ||||||||||||||||||||
| Additional Information: | This work has been supported by the Swedish Agency for Innovation Systems (Vinnova1, grant number 2023- 00969) and the German Federal Ministry of Education and Research (BMBF2, grant number FKZ 1IS23062A) within the ITEA 4 Project Open standards for SCALable virtual engineerING and operation (OpenSCALING3, ITEA Project 22013) | ||||||||||||||||||||
| Title: | Hybrid Simulation Models for Embedded Applications: A Modelica and eFMI approach | ||||||||||||||||||||
| Authors: |
| ||||||||||||||||||||
| Date: | September 2025 | ||||||||||||||||||||
| Journal or Publication Title: | Proceedings of the 16th International Modelica&FMI Conference | ||||||||||||||||||||
| Refereed publication: | Yes | ||||||||||||||||||||
| Open Access: | Yes | ||||||||||||||||||||
| Gold Open Access: | No | ||||||||||||||||||||
| In SCOPUS: | No | ||||||||||||||||||||
| In ISI Web of Science: | No | ||||||||||||||||||||
| DOI: | 10.3384/ecp218555 | ||||||||||||||||||||
| Page Range: | pp. 545-555 | ||||||||||||||||||||
| Editors: |
| ||||||||||||||||||||
| Series Name: | Linköping Electronic Conference Proceedings | ||||||||||||||||||||
| ISSN: | 1650-3740 | ||||||||||||||||||||
| ISBN: | 978-91-8118-266-8 | ||||||||||||||||||||
| Status: | Published | ||||||||||||||||||||
| Keywords: | Hybrid modeling, neural network, machine learning, embedded system, Modelica, eFMI, Physics- enhanced Neural ODE, recalibration | ||||||||||||||||||||
| Event Title: | 16th International Modelica & FMI Conference | ||||||||||||||||||||
| Event Location: | Lucerne, Switzerland | ||||||||||||||||||||
| Event Type: | international Conference | ||||||||||||||||||||
| Event Start Date: | 8 September 2025 | ||||||||||||||||||||
| Event End Date: | 10 September 2025 | ||||||||||||||||||||
| Organizer: | Modelica Association | ||||||||||||||||||||
| HGF - Research field: | Aeronautics, Space and Transport | ||||||||||||||||||||
| HGF - Program: | Transport | ||||||||||||||||||||
| HGF - Program Themes: | Road Transport | ||||||||||||||||||||
| DLR - Research area: | Transport | ||||||||||||||||||||
| DLR - Program: | V ST Straßenverkehr | ||||||||||||||||||||
| DLR - Research theme (Project): | V - V&V4NGC - Methoden, Prozesse und Werkzeugketten für die Validierung & Verifikation von NGC | ||||||||||||||||||||
| Location: | Oberpfaffenhofen | ||||||||||||||||||||
| Institutes and Institutions: | Institute of Vehicle Concepts > Vehicle System Dynamics and Control | ||||||||||||||||||||
| Deposited By: | Kamp, Tobias | ||||||||||||||||||||
| Deposited On: | 05 Nov 2025 09:42 | ||||||||||||||||||||
| Last Modified: | 15 Jun 2026 16:55 |
Repository Staff Only: item control page