Dynamic and Variable-Structure System Modeling for Equation-Based Languages: Applications, Methods and Tools
2025 (English)Doctoral thesis, monograph (Other academic)
Abstract [en]
Modeling and simulation are used to solve real-world problems safely and efficiently. For example, we can conduct simulations and analyze the results by constructing digital models of cyber-physical systems to make informed decisions. The field of Modeling and Simulation has recently grown and is tackling systems with increased complexity and size. Hence, modeling and simulating cyber-physical systems are becoming increasingly complex, requiring traditional modeling languages and tools to adapt. Modelica is an open-standard declarative equation-based object-oriented language used to model various systems. Existing tools allow modelers to model and simulate large, complex systems. However, the language and existing tooling cannot express some concepts, such as radical structural changes to the components or the behavior of systems during simulation. We propose several language extensions to support modeling variable-structure systems (VSS), that is, systems in which the system’s structure may radically change during simulation. To achieve these goals, we have developed a new modeling framework that supports the language itself alongside several extensions. The proposed extensions can handle explicit and implicit modeling of VSS by new operators and, consequently, new semantics for the language. Furthermore, we introduce and investigate additional features in terms of operators and semantics to aid VSS modeling and simulation.
One such extension is dynamic-overconstrained connectors (DOCC), which are helpful, for instance, when modeling AC transmission systems, particularly large ones. In the thesis we provide a technique to better handle such models by relaxing existing modeling constraints. Another extension is the inclusion of a experimental operator for inline integration and investigating the practical benefits of its introduction. The environment has been used to develop a new language that merges aspects of Context-Oriented Programming and declarative equation-based modeling, utilizing the introduced primitives. Furthermore, we have also validated the framework by using it to simulate relvant and recent climate models.
Explicit VSS modeling is based on extensions, which provide the possibility of switching configuration at runtime between model definitions resolved at compile time. The implicit modeling supports reconfiguration during runtime via recompilation. A just-in-time compiler was implemented to handle the new semantics using the symbolic-numeric programming language Julia. We investigate the performance of our new framework and compare it to existing state-of-the-art tooling on models with over 100,000 equations.
The results show that the extensions, framework and methods are viable for simulating both regular models and models with structural variability. We demonstrate that the Modelica language can be extended to support systems with variable structures by providing additional operators and enhanced runtime system support.
Place, publisher, year, edition, pages
Linköping: Linköping University Electronic Press, 2025. , p. 288
Series
Linköping Studies in Science and Technology. Dissertations, ISSN 0345-7524 ; 2491
National Category
Computer Sciences
Identifiers
URN: urn:nbn:se:liu:diva-219400DOI: 10.3384/9789181183375ISBN: 9789181183368 (print)ISBN: 9789181183375 (electronic)OAI: oai:DiVA.org:liu-219400DiVA, id: diva2:2013190
Public defence
2025-12-10, Ada Lovelace, B-building, Campus Valla, Linköping, 13:15 (English)
Opponent
Supervisors
Note
Funding Agencies: The research presented in this thesis has been supported by Vinnova in the European ITEA3 research project OpenCPS, the ITEA3 EMPHYSIS Project, the EMISYS project, the ITEA3 EMBrACE project, and the ITEA4 OpenScaling Project. Support has also been recvieved from the European Union HUBCAP Project. Furthermore, support has been received from the Swedish Government in the ELLIIT Cloud Tooling for CPS Project. Support has also been received from Stiftelsen för Strategisk forskning in the LARGEDYN Project. The Open Source Modelica Consortium supports the continuous development of the OpenModelica framework and we are grateful for their support.
2025-11-122025-11-122025-11-17Bibliographically approved