Technische Universität Dresden
Context-Oriented Modelica for Advanced Variability Management
Abstract
dc:description.abstractContext-aware cyber-physical systems (CPS) require modeling and simulation frameworks that support dynamic adaptation and complex variability management. Modelica, a widely used equation-based modeling language for CPS, faces inherent limitations in handling such variability due to its static structure and lack of native support for variable structure systems (VSS). Traditional constructs in Modelica, including conditional statements (if-else and when), state machines, and state graphs, are often insufficient for capturing highly dynamic, context-driven system behavior, making context-aware VSS difficult to maintain and scale. This work introduces a context-oriented modeling paradigm for Modelica, combining FMI-based VSS for managing VSS simulation with Context Petri Nets (CoPN) as a new control mechanism for advanced variability management. FMI-based VSS enables structural variability by dynamically activating or deactivating submodels based on the active context, fully automated through the FMUVSS framework. CoPN provide a formal mechanism for representing and managing complex contextual dependencies, including weak inclusion, strong inclusion, exclusion, and requirement relations. The CoPNCompositor framework further automates CoPN composition and the generation of Modelica code from JSON-based context specifications, streamlining the modeling process and reducing manual effort. By integrating FMUVSS and CoPN, the proposed context-oriented Modelica approach is implemented in the ContextModelica framework, featuring a two-layer architecture that separates system models from control logic. This design allows existing models to remain unchanged while supporting dynamic, context-driven transitions and adaptive system behavior. Proof-of-concept applications in energy systems demonstrate the feasibility of the approach for managing advanced variability in complex CPS simulations. Overall, this work establishes a foundation for a context-oriented modeling paradigm that enables Modelica to handle variability more effectively. It also outlines the pathway toward a more generalized context-oriented modeling approach, discussing current limitations and future directions for its realization.
Degree
thesis:*- Level thesis:degree_level
- thesis.doctoral
- Department thesis:degree_department
- Computer Science
- Grantor dc:publisher
- Technische Universität Dresden
- Year dc:date.issued
- 2026
Author and committee
dc:creator, dc:contributor.*- Author dc:creator
-
- Wang, Zizhe
- Advisor dc:contributor.advisor
-
- Aßmann, Uwe
Subjects
dc:subject × 5Rights
dc:rights.accessrights- Statement dc:rights.accessrights
-
- free
- info:eu-repo/semantics/openAccess
- Language dc:language.dcterms_iso639_2
- eng
Identifiers
dc:identifier.*- Dc Publisher Identifier
- 2024114-8
- Ddb Identifier Erstkat Id
- 198003723X