Modelica Conferences https://ecp.ep.liu.se/index.php/modelica <p>The Modelica Conference is the main event for users, library developers, tool vendors and language designers to share their knowledge and learn about the latest scientific and industrial progress related to Modelica and to the Functional Mockup Interface.</p> en-US Fri, 22 Dec 2023 00:00:00 +0100 OJS 3.3.0.16 http://blogs.law.harvard.edu/tech/rss 60 Calibration Workflow for Mechanical and Thermal Applications https://ecp.ep.liu.se/index.php/modelica/article/view/981 The calibration of models against measurement data is important to ensure model dynamics that are close to its real-world system. Derivative-free minimizing methods can be used for any model calibration regardless of continuous differentiability requirements, and find a (local) minimum in a reasonable number of iteration steps. A user-friendly, python-based calibration Dash app to use with the cloud-based Modelica platform Modelon Impact is introduced. Basic calibration setup is done through the GUI of the app and graphical feedback (i.e. plots) is provided. Two example calibrations are shown: A mechanical Furuta pendulum that only uses Modelica Standard Library components is calibrated against real-world measurement data, and a low-fidelity heat exchanger testbench model that uses Modelon’s Air Conditioning Library is calibrated against a corresponding high-fidelity model. Tim Willert, Peter Sundström Copyright (c) 2023 Tim Willert, Peter Sundström https://creativecommons.org/licenses/by/4.0/ https://ecp.ep.liu.se/index.php/modelica/article/view/981 Fri, 22 Dec 2023 00:00:00 +0100 SSP in a Modelica Environment https://ecp.ep.liu.se/index.php/modelica/article/view/982 System Structure and Parameterization (SSP) is a tool independent standard to define complete systems. Dymola now supports import and export of SSP files; this paper describes how the SSP support was implemented and discusses some of the constraints and unavoidable compromises. Dag Brück Copyright (c) 2023 Dag Brück https://creativecommons.org/licenses/by/4.0/ https://ecp.ep.liu.se/index.php/modelica/article/view/982 Fri, 22 Dec 2023 00:00:00 +0100 An FMI- and SSP-based Model Integration Methodology for a Digital Twin Platform of a Holistic Railway Infrastructure System https://ecp.ep.liu.se/index.php/modelica/article/view/908 <p>Nowadays, the digitalization of large-scale railway infrastructure systems is a major trend, which helps to reduce the life-cycle costs of the railway transportation. For this purpose, the Digital Twin (DT) technology can be used to interoperate different digital data and models, belonging to the railway infrastructure system, in a virtual platform for predictive maintenance, diagnostics and condition monitoring in the railway sector. However, the simulation models of the infrastructure system are tool-dependent, lack ease-of-use and platform compatibility. Therefore, we have to customise them in order to make them more representative and then integrate easily and tool-independently into the DT platform. For this purpose, we propose to use the Functional Mock-up Interface (FMI) and System Structure Parameterization (SSP) technologies as open interface standards between the models and software tools. In this work, we demonstrate the application of the FMI and SSP standards separately for two use cases, which include a multibody simulation (MBS) model of a railway vehicle and residual life time (RLT) calculation of a steel bridge.</p> Ozan Kugu, Shiyang Zhou, Rebecca Nowak, Gabor Müller, Stefan H. Reiterer, Alexander Meierhofer, Stefan Lachinger, Lukas Wurth, Manfred Grafinger Copyright (c) 2023 Ozan Kugu, Shiyang Zhou, Rebecca Nowak, Gabor Müller, Stefan H. Reiterer, Alexander Meierhofer, Stefan Lachinger, Lukas Wurth, Manfred Grafinger https://creativecommons.org/licenses/by/4.0/ https://ecp.ep.liu.se/index.php/modelica/article/view/908 Fri, 22 Dec 2023 00:00:00 +0100 PNRG – A Library for Modeling Variable Structure Energy Grids in Modelica using Energetic Petri Nets https://ecp.ep.liu.se/index.php/modelica/article/view/983 Operating energy grids with a high share of renewable energy sources (RES) requires system reconfiguration as a response to environmental condition changes. To understand them better, simulations are needed and Modelica is an excellent choice for that. Energy grids with event-based reconfigurations are an instance of variable structure systems (VSS). However, the full support of VSS in Modelica is challenging and topic of ongoing research. Petri nets (PNs) offer a formalism for modeling VSS. The capability to simulate PNs in Modelica gives an opportunity to model VSS in Modelica. This paper presents an approach to utilize PNs in Modelica for modeling variable structure energy grids. Therefore, we introduce energetic Petri nets, a special type of PNs and an experimental library called PNRG for PN-based energy system modeling is presented. Furthermore, possibilities and limits of modeling VSS energy grids are discussed and an outlook how to develop this technique is provided. Christian Gutsche, Zizhe Wang, Sebastian Götz, Volodymyr Prokopets, Uwe Aßmann Copyright (c) 2023 Christian Gutsche, Zizhe Wang, Sebastian Götz, Volodymyr Prokopets, Uwe Aßmann https://creativecommons.org/licenses/by/4.0/ https://ecp.ep.liu.se/index.php/modelica/article/view/983 Fri, 22 Dec 2023 00:00:00 +0100 Energy Efficiency Measures for Existing Factory Buildings https://ecp.ep.liu.se/index.php/modelica/article/view/984 To contribute to carbon neutrality, energy efficiency measures in existing factories must be evaluated holistically, considering not only production and technical building equipment but also the building itself. In this study, a package is introduced as part of a simulation library which aims to identify integrated energy efficiency measures. The package enables the user to simulate building related efficiency measures independently or combined with machines and technical building equipment. Special focus is placed on the efficiency measure hereafter referred to as enclosure, which designates a thermally activated construction around a number of machines to facilitate the capturing of waste heat emitted to the ambient air. A comparison with measured data shows a good agreement of the return temperature for stationary conditions. Furthermore an application example for the package is given. Xenia Kirschstein, Anja Schaffarczyk, Miriam Schuster, Nadja Bishara Copyright (c) 2023 Xenia Kirschstein, Anja Schaffarczyk, Miriam Schuster, Nadja Bishara https://creativecommons.org/licenses/by/4.0/ https://ecp.ep.liu.se/index.php/modelica/article/view/984 Fri, 22 Dec 2023 00:00:00 +0100 Hybrid Power Systems Simulation and Optimization Utilizing SSP and FMI https://ecp.ep.liu.se/index.php/modelica/article/view/985 Collaborative model-based development of the hybrid power system often requires large-scale co-simulation and system parameter optimization. In this study, we investigate an architecture for parallel processing simulation of SSP (System Structure and Parametrization) and FMI (Functional Mock-up Interface), which enables high-speed computation by multi-core distribution. We combine Bayesian optimization and co-simulation, then we build a collaborative development platform for hybrid power systems design. We report performance experiments using hybrid electric vehicle simulation model published by JAMBE (Japan Automotive Model-Based Engineering center). Dai Araki, Magnus Sandell Copyright (c) 2023 Dai Araki, Magnus Sandell https://creativecommons.org/licenses/by/4.0/ https://ecp.ep.liu.se/index.php/modelica/article/view/985 Fri, 22 Dec 2023 00:00:00 +0100 Simulation of Vehicle Headlamp Levelling systems https://ecp.ep.liu.se/index.php/modelica/article/view/986 Adjustment systems are used in vehicle headlamps to regulate the flare on the street. The kinematic system within the headlamp is driven automatically based on level sensor signals and can additionally be manually set to a start position. In modern cars the automatic vehicle headlamp levelling is legal duty due to the strong cut-off line (COL) between dark and light. This COL can be measured in a workshop but not during operation. Due to the complex kinematics including nonlinear contacts, friction and damping a Modelica model is used to calculate the position of the COL. The results show a characteristic hysteresis of the horizonal position during automatic movement. The simulation results are compared to measurements and show good agreement. Filip Cieslar, Martin Düsing Copyright (c) 2023 Filip Cieslar, Martin Düsing https://creativecommons.org/licenses/by/4.0/ https://ecp.ep.liu.se/index.php/modelica/article/view/986 Fri, 22 Dec 2023 00:00:00 +0100 Piecewise-Steady-State Modelica Simulations for the Conceptual Design Phase of Industrial Processes https://ecp.ep.liu.se/index.php/modelica/article/view/987 The conceptual design of industrial processes is challenging as relatively little information about the eventually selected equipment and their operation is known in this early design stage. Furthermore, the systems are increasingly integrated with themselves, and their design must be addressed systematically. Simulation can assist in better understanding the effects of design decisions on the resulting system performance. To facilitate the simulation of industrial processes in this early design phase, this paper proposes an approach to modeling system components specifically aimed at employing known key design parameters and assuming steady-state behavior of the process for a certain period of time (e.g. one hour). A solution over a longer period of time (e.g. for a year) can then be obtained by simulating a multitude of such shorter periods, leading to the piecewise-steady-state solution. The proposed approach is developed with an exemplary case study, based on a real industrial site. The resulting model computes the annual load profile within the range of seconds for the given case study. Raphael Agner, Jonas Grand, Andrin Duss, Beat Wellig Copyright (c) 2023 Raphael Agner, Jonas Grand, Andrin Duss, Beat Wellig https://creativecommons.org/licenses/by/4.0/ https://ecp.ep.liu.se/index.php/modelica/article/view/987 Fri, 22 Dec 2023 00:00:00 +0100 Modeling and Control Design of an Educational Magnetic Levitation System https://ecp.ep.liu.se/index.php/modelica/article/view/988 A magnetic levitation system is a perfect educational example of a nonlinear unstable system. Only with suitable control, a small permanent magnet can be held floating stable below a coil. After modeling and simulation of the system, control of the system can be developed. At the end, the control algorithm can be coded on a microcontroller, connected to a pilot plant. Anton Haumer Copyright (c) 2023 Anton Haumer https://creativecommons.org/licenses/by/4.0/ https://ecp.ep.liu.se/index.php/modelica/article/view/988 Fri, 22 Dec 2023 00:00:00 +0100 Coupling of Thermal and Electrical Systems for the Simulation of ECS Architectures https://ecp.ep.liu.se/index.php/modelica/article/view/989 This work is focused on the coupling of two complex models based on different underlying physics: a vapor compression refrigerating system and its electrical drive system. The main challenge was to correctly handle the large simulation time constant difference which is three orders of magnitude smaller for the electrical system. The two models have been originally developed following very specific requirements (i.e. high numerical robustness and low time consumption) for their suitable use in simulations of large and complex aircraft Environmental Control Systems (ECS). The direct coupling of both systems has been observed to cause numerical instabilities, therefore, a coupling approach based on non-invasive dynamic relaxations has been implemented. The resulting combined simulations have shown to be numerically stable for the complete range of operating conditions and for a wide range of time steps. Nicolás Ablanque, Sriram Gurumurthy, Santiago Torras, Antonello Monti, Joaquim Rigola, Carles Oliet Copyright (c) 2023 Nicolás Ablanque, Sriram Gurumurthy, Santiago Torras, Antonello Monti, Joaquim Rigola, Carles Oliet https://creativecommons.org/licenses/by/4.0/ https://ecp.ep.liu.se/index.php/modelica/article/view/989 Fri, 22 Dec 2023 00:00:00 +0100 A Penalty Function-based Modelica Library for Multi-body Contact Collision https://ecp.ep.liu.se/index.php/modelica/article/view/990 Contact collisions are prevalent in mechanical multi-body systems and have always been a significant limiting factor for engineering technology development. This paper examines the fundamental types of contact in multi-body dynamics systems and explores their inherent topological relationships. Based on the multi-body dynamics theory and penalty function contact algorithm, this paper constructed the multi-body dynamics contact model using Modelica, which is a multi-domain unified modeling language. To enhance the applicability of the contact model library in the modeling of multi-body system, the contact model provides a connection interface compatible with the multi-body library in the Modelica standard library. Ziheng Zhu, Hualong Zhao, Xueqi Ma, Yuhui Liu, Lu Chen, Fanli Zhou Copyright (c) 2023 Ziheng Zhu, Hualong Zhao, Xueqi Ma, Yuhui Liu, Lu Chen, Fanli Zhou https://creativecommons.org/licenses/by/4.0/ https://ecp.ep.liu.se/index.php/modelica/article/view/990 Fri, 22 Dec 2023 00:00:00 +0100 Automatic Optimization of Energy Supply Systems in Buildings and City Quarters based on Modelica Models https://ecp.ep.liu.se/index.php/modelica/article/view/991 The evaluation and analysis of complex energy supply systems with Modelica models is more and more an integral part of the building design processes. Dynamic system modeling became there especially important regarding analyses of the use of storage and the integration of volatile renewable resources as well as intelligent control. However, this still requires extensive engineering work and time-consuming modeling efforts, although the basic work steps are largely comparable and based on the same fundamentals. Therefore, the open interfaces to and from Modelica offer extensive possibilities for automation and generalization of these processes. This paper describes such a new integrative and automated optimization framework for energy systems of buildings and districts, which uses Modelica models and FMUs iteratively for the identification of optimal system configurations. Torsten Schwan, David Feige, Leonhard Wenzel, Charlotte Voelckner, Martin Leuschke Copyright (c) 2023 Torsten Schwan, David Feige, Leonhard Wenzel, Charlotte Voelckner, Martin Leuschke https://creativecommons.org/licenses/by/4.0/ https://ecp.ep.liu.se/index.php/modelica/article/view/991 Fri, 22 Dec 2023 00:00:00 +0100 MARCO: An Experimental High-Performance Compiler for Large-Scale Modelica Models https://ecp.ep.liu.se/index.php/modelica/article/view/909 This paper introduces MARCO, a research compiler aimed at the efficient generation of efficient simulation code from a large-scale Modelica model. MARCO’s design goals, requirements, and specifications are dis- cussed in the paper, as well as the software architec- ture, the current development status, and a future develop- ment roadmap. The results of two test cases demonstrate MARCO’s capability to handle non-trivial Modelica mod- els with over 10 million equations very efficiently. Giovanni Agosta, Francesco Casella, Daniele Cattaneo, Stefano Cherubin, Alberto Leva, Michele Scuttari, Federico Terraneo Copyright (c) 2023 Giovanni Agosta, Francesco Casella, Daniele Cattaneo, Stefano Cherubin, Alberto Leva, Michele Scuttari, Federico Terraneo https://creativecommons.org/licenses/by/4.0/ https://ecp.ep.liu.se/index.php/modelica/article/view/909 Fri, 22 Dec 2023 00:00:00 +0100 Control development and sizing analysis for a 5th generation district heating and cooling network using Modelica https://ecp.ep.liu.se/index.php/modelica/article/view/910 5th generation district heating and cooling networks (5GDHC) are a relatively new concept. They are based on the idea that a single district loop at a ambient temperature range can be used for heating and cooling simultaneously. This paper improves on a 5GDHC called the reservoir network. The study updates the sewage heat exchanger plant model to more realistically represent seasonal changes, uses the novel pump models with variable efficiency, introduces a ground coupled district pipe model to consider the inertia of the district network and a new control strategy for storage and sewage heat exchanger was implemented. the new approach reduced operating costs, mainly due to pumping cost for storage, sewage heat exchanger plant and distribution pump, while increasing the overall robustness of the approach in different sizing conditions. Thanks to the new controller, the pumping consumption was reduced by 21% with respect to the baseline, while showing that the approach is robust against design changes such as reduction in borehole field size and increasing the sewage heat exchanger size, since the pumping energy savings become 29%. Lastly borehole field temperature stability was analyzed through a 40Y simulation. Ettore Zanetti, David Blum, Michael Wetter Copyright (c) 2023 Ettore Zanetti, David Blum, Michael Wetter https://creativecommons.org/licenses/by/4.0/ https://ecp.ep.liu.se/index.php/modelica/article/view/910 Fri, 22 Dec 2023 00:00:00 +0100 Simulation Model as a Service (SMaaS): A concept for integrated deployment, execution and tracking of system simulation models https://ecp.ep.liu.se/index.php/modelica/article/view/911 System simulation is dealing with increasingly multiphysical and cyber-physical systems that involve multiple engineering domains. In development and production, system manufacturers often rely on supplier parts and their digital representations. To deal with this inherently collaborative setting in a more efficient way we propose a concept of Simulation Model as a Service (SMaaS) developed at simercator. In this article, we apply established workflows from software engineering to system simulation to create more efficient workflows, discuss the compliance with technical, economic, and regulatory requirements, and present a software for digital supply chain management that implements SMaaS. Philipp Emanuel Stelzig, Benjamin Rodenberg Copyright (c) 2023 Philipp Emanuel Stelzig, Benjamin Rodenberg https://creativecommons.org/licenses/by/4.0/ https://ecp.ep.liu.se/index.php/modelica/article/view/911 Fri, 22 Dec 2023 00:00:00 +0100 MoPyRegtest: A Python package for continuous integration-friendly regression testing of Modelica libraries https://ecp.ep.liu.se/index.php/modelica/article/view/912 Regression testing is a commonly used strategy in continuous integration workflows to ensure reproduceability of outputs. It is widely in software engineering and model development, including Modelica. In this article we introduce the open source regression testing framework MoPyRegtest written in Python. Its primary focus is to provide Modelica library developers with a simple regression testing tool that features test automation and can integration with continuous integration toolchains, in particular for open source developments. In order to simulate the Modelica models for testing analysis, we provide an interface to Modelica simulation tools that support Modelica Scripting with .mos files. Our current implementation works with OpenModelica. We outline the design and functionality of MoPyRegtest and showcase its potential usefulness for open source development of Modelica models and libraries. Philipp Emanuel Stelzig Copyright (c) 2023 Philipp Emanuel Stelzig https://creativecommons.org/licenses/by/4.0/ https://ecp.ep.liu.se/index.php/modelica/article/view/912 Fri, 22 Dec 2023 00:00:00 +0100 Object-Oriented Modelling of Flexible Cables based on Absolute Nodal Coordinate Formulation https://ecp.ep.liu.se/index.php/modelica/article/view/913 Cable-pulley system consists of several segments of cables, winches, and pulleys, which is used in a wide range of engineering applications such as lifting equipment and pulley systems, however its dynamics simulation has been a tough issue in the Modelica community. The absolute nodal coordinate formulation (ANCF) uses global displacements and slopes at nodes to describe the geometry of the deformed body, which allows the derivation of constant mass matrices and zero-valued quadratic velocity dependent centrifugal and Coriolis forces, demonstrating its powerful capacity to model flexible multi-body systems for nearly two decades. This paper presents an object-oriented approach to model cable-pulley system, where flexible cables are discretized using ANCF cable elements. It is compatible with the Modelica Multibody Library by using a unified Frame interface and enables coupled analysis of cables and rigid bodies. The paper provides a rich set of application examples showing the ease and efficiency of the Modelica-based component drag-and-drop modelling way for modelling cable-pulley system. Jianchen Wu, Baokun Zhang, Dedong Liang, Yujie Guo, Lu Chen, Ji Ding, Fanli Zhou Copyright (c) 2023 Jianchen Wu, Baokun Zhang, Dedong Liang, Yujie Guo, Lu Chen, Ji Ding, Fanli Zhou https://creativecommons.org/licenses/by/4.0/ https://ecp.ep.liu.se/index.php/modelica/article/view/913 Fri, 22 Dec 2023 00:00:00 +0100 Development of a novel quasi-2D PEM Electrolyzer Model in Modelica https://ecp.ep.liu.se/index.php/modelica/article/view/914 To increase the efficiency of PEM electrolysis, simulation models are required that accurately describe the system's electrochemical and thermal behavior in a computationally efficient manner and are thus suitable for developing control strategies. Therefore, a pseudo-2D PEM electrolyzer model is presented in this paper, which is a compromise between the previously developed models regarding their model complexity. The electrochemical behavior is described with equations commonly used in the literature and the thermal behavior with correlations for gas-liquid heat transfer. Preliminary validation indicates that the model can describe the electrochemical behavior and thermal dynamics of a PEM electrolysis stack with good accuracy. Ansgar Reimann, Paul Kohlenbach, Lars Röntzsch Copyright (c) 2023 Ansgar Reimann, Paul Kohlenbach, Lars Röntzsch https://creativecommons.org/licenses/by/4.0/ https://ecp.ep.liu.se/index.php/modelica/article/view/914 Fri, 22 Dec 2023 00:00:00 +0100 Modelica Association Standards and Surrogate Modeling to Enable Multi-Fidelity Simulations https://ecp.ep.liu.se/index.php/modelica/article/view/915 System simulations are particularly useful when analyzing complex systems. Simulations are often cheaper and safer than physical tests of the actual system(s) of interest. Models can be additionally created for systems that do not exist to find solutions that are impossible to analyze experimentally in early life-cycle stages. Models used in system simulations require appropriate input data to give results with the required fidelity and, in the end, credibility. Integration is often challenging as each system commonly constitutes contributions from several engineering domains. Relying on relevant open standards for information exchange is seen as a means of mitigation. The results of the presented work encompass a developed methodology that allows Computational Fluid Dynamics (CFD) results to be integrated into a simulator using system identification and open standards. Reduced Order Models (ROMs) are generated based on results from a CFD analysis. These ROMs are coupled to lumped parameter system simulation models through the mechanisms of the System Structure and Parameterization (SSP) and Functional Mock-up Interface (FMI) standards. In addition, several important factors to consider before using the proposed methodology are presented. These include the intended use of the ROM, knowing the flow inside the system, what resources are available, and any potential licensing issues. Olle Lindqvist, Robert Hällqvist, Raghu Chaitanya Munjulury Copyright (c) 2023 Olle Lindqvist, Robert Hällqvist, Raghu Chaitanya Munjulury https://creativecommons.org/licenses/by/4.0/ https://ecp.ep.liu.se/index.php/modelica/article/view/915 Fri, 22 Dec 2023 00:00:00 +0100 Distributed Parameter Pneumatics https://ecp.ep.liu.se/index.php/modelica/article/view/916 Pneumatics is a branch of engineering that deals with the use of pressurized air or gases to create mechanical motion. It involves the study and application of systems and components such as air compressors, valves, cylinders, and actuators to control and transmit power through the use of compressed air. For highly dynamic events in pneumatic systems, such as fast switching processes in automation technology, lumped-parameter simulation is not sufficient to correctly calculate the pressure build-up in pipes. The propagation and reflections of different pressure waves and refraction waves cannot be accounted for by the zero-dimensional models provided by the Modelica.Fluid library. Therefore, a method for calculating such events using the finite volume method is presented in this paper. The library presented in this work, uses Gudonov's scheme and an arbitrary Riemann-solver and gas model to calculate the time evolution inside 1D or 2D discretized pneumatic components as well as systems composed of these components. Felix Fischer, Katharina Schmitz Copyright (c) 2023 Felix Fischer, Katharina Schmitz https://creativecommons.org/licenses/by/4.0/ https://ecp.ep.liu.se/index.php/modelica/article/view/916 Fri, 22 Dec 2023 00:00:00 +0100 A renewable heat plant Modelica library for dynamic optimization with Optimica https://ecp.ep.liu.se/index.php/modelica/article/view/917 Almost half of the energy consumed globally is under the form of heat, produced mainly through fossil fuels. Switching to using renewable energy instead is a real challenge. Combining renewable thermal energy with thermal storage is a complex system to operate. To harness the full potential of thermal plants, advanced control strategies need to be implemented. Dynamic real-time optimization (DRTO) seems promising to fine tune controller setpoints of plants. The goal of our study is to ultimately enable DRTO by using Optimica because of its ease of use and Modelica’s modularity. This paper presents a Modelica library developed to first perform offline dynamic optimization with Optimica, and would ultimately be used in a DRTO strategy. The library enables to model a renewable thermal plant composed of solar thermals, heat pumps and thermal storages. The model of each subcomponent has been validated. Initial dynamic optimizations of plant operation give promising results. Thomas Colin De Verdiere, Sylvain Serra, Sabine Sochard, Pierre Garcia, Pierre Delmas, Jean-Michel Reneaume Copyright (c) 2023 Thomas Colin De Verdiere, Sylvain Serra, Sabine Sochard, Pierre Garcia, Pierre Delmas, Jean-Michel Reneaume https://creativecommons.org/licenses/by/4.0/ https://ecp.ep.liu.se/index.php/modelica/article/view/917 Fri, 22 Dec 2023 00:00:00 +0100 Efficient Global Multi Parameter Calibration for Complex System Models Using Machine-Learning Surrogates https://ecp.ep.liu.se/index.php/modelica/article/view/918 In this work, we adress challenges associated with multi parameter calibration of complex system models of high computational expense. We propose to replace the Modelica Model for screening of parameter space by a computational effective Machine-Learning Surrogate, followed by a polishing with a gradient-based optimizer coupled to the Modelica Model. Our results show the superiority of this approach compared to common-used optimization strategies. We can resign on determining initial optimization values while using a small number of Modelica model calls, paving the path towards efficient global optimization. The Machine Learning Surrogate, namely a Physics Enhanced Latent Space Variational Autoencoder (PELS-VAE), is able to capture the impact of most influential parameters on small training sets and delivers sufficiently good starting values to the gradient-based optimizer. In order to make this paper self-contained, we give a sound overview to the necessary theory, namely Global Sensitivity Analysis with Sobol Indices and Variational Autoencoders. Julius Aka, Johannes Brunnemann, Svenne Freund, Arne Speerforck Copyright (c) 2023 Julius Aka, Johannes Brunnemann, Svenne Freund, Arne Speerforck https://creativecommons.org/licenses/by/4.0/ https://ecp.ep.liu.se/index.php/modelica/article/view/918 Fri, 22 Dec 2023 00:00:00 +0100 Fast Charge Algorithm Development for Battery Packs under Electrochemical and Thermal Constraints with JModelica.org https://ecp.ep.liu.se/index.php/modelica/article/view/919 Strict operating boundaries on commercial lithium ion cells are defined to mitigate the effect of aging (loss of capacity and increase in internal resistance), as well as avoiding safety hazards, like the appearance of lithium plating during charge, which can lead to internal short circuit and subsequent thermal runnaway. Therefore, to develop fast charge algorithms that maximize charging speeds, electrochemical and thermal constraints must be considered. Most studies so far have focused on the single cell problem, whereas pack-level fast charge challenge has been tackled directly by the industry. The reason is that the temperature difference between cells within a battery pack is often considered small, and therefore that optimal charging profiles can be extrapolated from single cell investigations. In practice, temperature spread can reach up to 10 K from coldest to warmest points in the pack, and at least 5 K between same position of different cells. With this in mind, a Nonlinear Model Predictive Control (NLMPC) scheme is proposed that considers both electrochemical and thermal constraints at pack level, establishing, at least on a theoretical basis, the practical limits of fast charge. We demonstrate how active thermal management, i.e., controlling the fluid inlet temperature, is critical to reducing charging times below 40 min (from 0% to 80% state of charge), and discuss some challenges when using online optimization-based control techniques Alberto Romero, Johannes Angerer Copyright (c) 2023 Alberto Romero, Johannes Angerer https://creativecommons.org/licenses/by/4.0/ https://ecp.ep.liu.se/index.php/modelica/article/view/919 Fri, 22 Dec 2023 00:00:00 +0100 Comparative Study and Validation of Photovoltaic Model Formulations for the IBPSA Modelica Library based on Rooftop Measurement Data https://ecp.ep.liu.se/index.php/modelica/article/view/920 Domain-overarching system models are crucial to investigate sector coupling concepts. Specifically, the coupling of building and electrical energy systems becomes crucial to integrate renewable energy sources such as photovoltaic power systems (PV). For such interdisciplinary simulation models, Modelica is a suitable language. However, most open-source Modelica libraries are either domain-specific or lack simple-to-parameterize PV models. We close this gap by developing a PV model for the IBPSA Modelica library. The model comprises two I-V-characteristic models and three mounting-dependent approaches to calculate the cell temperature. The I-V-characteristic models follow a single- and two-diodes approach. This study uses measurement data from a rooftop PV system in Berlin, Germany, for validation. The focus lies on comparing the implemented single- and two-diodes approach. Results prove that both models accurately calculate the modules’ DC power output and cell temperature. The two-diodes approach slightly outperforms the single-diode one at the expense of a higher parameterization effort. Laura Maier, Christoph Nytsch-Geusen, Lucas Westermann, Kushagra Mathur, Michael Wetter, Dirk Müller Copyright (c) 2023 Laura Maier, Christoph Nytsch-Geusen, Lucas Westermann, Kushagra Mathur, Michael Wetter, Dirk Müller https://creativecommons.org/licenses/by/4.0/ https://ecp.ep.liu.se/index.php/modelica/article/view/920 Fri, 22 Dec 2023 00:00:00 +0100 Paving the way for Hybrid Twins using Neural Functional Mock-Up Units https://ecp.ep.liu.se/index.php/modelica/article/view/921 Porting Neural Ordinary Differential Equations (NeuralODEs), the combination of an artificial neural network and an ODE solver, to real engineering applications is still a challenging venture. However, we will show that Neural Functional Mock-up Units (NeuralFMUs), an evolved subgroup of NeuralODEs that contain Functional Mock-up Units (FMUs), are able to cope with these challenges. This paper briefly introduces to the topics NeuralODE and NeuralFMU and describes the procedure and considerations to apply this technique to a real engineering use case. Further, different workflows to apply NeuralFMUs dependent on tool capabilities and use case requirements are discussed. The presented method is illustrated with the creation of a Hybrid Twin of an hydraulic excavator arm, which has various challenges such as discontinuity, nonlinearity, oscillations and characteristic maps. Finally we will show, that the created Hybrid Twin, on basis of measurement data from a real system, gives more accurate results compared to a conventional simulation model based on first principles. Tobias Thummerer, Artem Kolesnikov, Julia Gundermann, Denis Ritz, Lars Mikelsons Copyright (c) 2023 Tobias Thummerer, Artem Kolesnikov, Julia Gundermann, Denis Ritz, Lars Mikelsons https://creativecommons.org/licenses/by/4.0/ https://ecp.ep.liu.se/index.php/modelica/article/view/921 Fri, 22 Dec 2023 00:00:00 +0100 Modeling and simulation of dynamically constrained objects for limited structurally variable systems in Modelica https://ecp.ep.liu.se/index.php/modelica/article/view/922 This work introduces a new solution for the modeling and simulation of dynamically constrained objects for limited structurally variable systems purely in Modelica. A combination of a collision detection algorithm, the limitation of collisions, and a method to constrain objects based on forces leads to a constraint network in Modelica. It allows a stable and accurate simulation of applications such as robot tool changers in a flexible way without the need for predefined connections in the model. Robert Reiser, Matthias J. Reiner Copyright (c) 2023 Robert Reiser, Matthias J. Reiner https://creativecommons.org/licenses/by/4.0/ https://ecp.ep.liu.se/index.php/modelica/article/view/922 Fri, 22 Dec 2023 00:00:00 +0100 A Graph-Based Meta-Data Model for DevOps: Extensions to SSP and SysML2 and a Review on the DCP standard https://ecp.ep.liu.se/index.php/modelica/article/view/923 Computer simulation has become a vital tool for modeling complex systems. However, the development and deployment of simulation models often involve multiple stages, tools, and teams, which can lead to significant challenges in maintaining quality, reliability, and efficiency. DevOps, a set of practices that combines software development and IT operations, has emerged as a promising approach to streamline the simulation development. However, most system engineers are not DevOps specialists and there are a lot of manual steps involved when writing build pipelines and configurations of simulations. For this purpose, an abstract graph-based meta-data model was presented in previous work to provide an automation framework for DevOps with simulations. In this work we want to continue our investigations by expanding and harmonizing this approach to better work with established standards like SSP, SysML2 and DCP and demonstrating it's application on real-life use cases. Stefan H. Reiterer, Clemens Schiffer, Mario Schwaiger Copyright (c) 2023 Stefan H. Reiterer, Clemens Schiffer, Mario Schwaiger https://creativecommons.org/licenses/by/4.0/ https://ecp.ep.liu.se/index.php/modelica/article/view/923 Fri, 22 Dec 2023 00:00:00 +0100 Introducing Dialectic Mechanics https://ecp.ep.liu.se/index.php/modelica/article/view/924 This paper introduces a new method for mechanical systems with its own interface that enables the object-oriented formulation of very stiff contacts. It thereby suppresses high frequencies and yields stable replacement dynamics leading to an equivalent steady state. Potential applications are the efficient modeling and simulation of robotic manipulation or the easier handling of what formerly have been variable-structure systems. Dirk Zimmer, Carsten Oldemeyer Copyright (c) 2023 Dirk Zimmer, Carsten Oldemeyer https://creativecommons.org/licenses/by/4.0/ https://ecp.ep.liu.se/index.php/modelica/article/view/924 Fri, 22 Dec 2023 00:00:00 +0100 Pseudo Array Causalization https://ecp.ep.liu.se/index.php/modelica/article/view/925 In the current state-of-the-art modeling tools for simulation, it is common to describe system behavior symbolically using mixed continuous and discrete differential-algebraic equations, so called hybrid DAEs. To correctly resolve higher index problems, hybrid systems and to efficiently use ODE solvers, a matching and sorting problem has to be solved, commonly referred to as causalization. Typically multidimensional equations and variables are scalarized, which leads to excessive build time and generated code size in the case of large systems. An algorithm will be presented, that preserves array structures as much as possible while still solving the problem of causalization in scalar fashion. Test results carried out in the OpenModelica tool show a reduction in build time of one/two orders of magnitude and of a factor two/three in the simulation run time for models of the ScalableTestSuite library. Karim Abdelhak, Francesco Casella, Bernhard Bachmann Copyright (c) 2023 Karim Abdelhak, Francesco Casella, Bernhard Bachmann https://creativecommons.org/licenses/by/4.0/ https://ecp.ep.liu.se/index.php/modelica/article/view/925 Fri, 22 Dec 2023 00:00:00 +0100 Understanding and Improving Model Performance at Small Mass Flow Rates in Fluid System Models https://ecp.ep.liu.se/index.php/modelica/article/view/926 This paper provides a detailed analysis of the reasons behind the poor simulation performance observed when mass flow rates become very small, commonly referred to as zero mass flow issues. By using simple example models, we effectively demonstrate the underlying causes of these simulation performance issues. We highlight various contributing factors that play a significant role in exacerbating the problem. Furthermore, we propose and examine countermeasures to mitigate these challenges. These countermeasures include modifications to the model itself, utilization of available settings in simulation tools, and adjustments to the solver. By implementing and evaluating these countermeasures, we illustrate their impact on improving simulation performance in scenarios involving low mass flow rates. Robert Flesch, Annika Kuhlmann, Johannes Brunnemann, Eiden Jörg Copyright (c) 2023 Robert Flesch, Annika Kuhlmann, Johannes Brunnemann, Eiden Jörg https://creativecommons.org/licenses/by/4.0/ https://ecp.ep.liu.se/index.php/modelica/article/view/926 Fri, 22 Dec 2023 00:00:00 +0100 Hybrid data driven/thermal simulation model for comfort assessment https://ecp.ep.liu.se/index.php/modelica/article/view/927 Machine learning models improve the speed and quality of physical models. However, they require a large amount of data, which is often difficult and costly to acquire. Predicting thermal comfort, for example, requires a controlled environment, with participants presenting various characteristics (age, gender, ...). This paper proposes a method for hybridizing real data with simulated data for thermal comfort prediction. The simulations are performed using Modelica Language. A benchmarking study is realized to compare different machine learning methods. Obtained results look very promising with an F1 score of 0.999 obtained using the random forest model. Romain Barbedienne, Sara Yasmine Ouerk, Mouadh Yagoubi, Hassan Bouia, Aurélie Kaemmerlen, Benoit Charrier Copyright (c) 2023 Romain Barbedienne, Sara Yasmine Ouerk, Mouadh Yagoubi, Hassan Bouia, Aurélie Kaemmerlen, Benoit Charrier https://creativecommons.org/licenses/by/4.0/ https://ecp.ep.liu.se/index.php/modelica/article/view/927 Fri, 22 Dec 2023 00:00:00 +0100 ThermalSystemsControlLibrary: A Modelica Library for Developing Control Strategies of Industrial Energy Systems https://ecp.ep.liu.se/index.php/modelica/article/view/928 The transformation of energy-intensive industries towards greenhouse gas neutrality leads to increasing complexity of industrial energy supply systems. This affects particularly thermal energy systems due to waste heat utilization measures as well as the integration of renewable energy sources and further storage capacities. This complexity is also reflected in the control strategies of such systems, which makes the development of dynamic simulation models for testing them a research field of growing interest. The ThermalSystemsControlLibrary is a novel Modelica library, which aims at standardized modeling of industrial energy supply systems for control strategy development. Based on a generic data model, all components cover physical as well as control modeling and are particularly suitable for testing supervisory control strategies within external frameworks using the FMI standard. The library is validated for an exemplary use case of an industrial energy supply system comparing two different supervisory control strategies. Fabian Borst, Michael Georg Frank, Lukas Theisinger, Matthias Weigold Copyright (c) 2023 Fabian Borst, Michael Georg Frank, Lukas Theisinger, Matthias Weigold https://creativecommons.org/licenses/by/4.0/ https://ecp.ep.liu.se/index.php/modelica/article/view/928 Fri, 22 Dec 2023 00:00:00 +0100 HVAC and Control Templates for the Modelica Buildings Library https://ecp.ep.liu.se/index.php/modelica/article/view/929 This article reports on our experience in creating Modelica models for systems with thousands of configurations and closed-loop controls. The development of such templates required exploration of class parameterization techniques and data structures for handling large sets of equipment parameters. By describing these issues and the approach taken, we show how the Modelica language can support advanced templating logic. The main limitation we encountered relates to parameter assignment and propagation. The interpretation of parameter attributes at user interface runtime, or the handling of non-trivial constructs involving record classes at compile time is not consistently supported by Modelica tools. This leads to choices that are difficult to make when looking for a generic implementation. Antoine Gautier, Michael Wetter, Jianjun Hu, Hubertus Tummescheit Copyright (c) 2023 Antoine Gautier, Michael Wetter, Jianjun Hu, Hubertus Tummescheit https://creativecommons.org/licenses/by/4.0/ https://ecp.ep.liu.se/index.php/modelica/article/view/929 Fri, 22 Dec 2023 00:00:00 +0100 Modeling and Simulation of the Hydrogen Value Chain with ThermoSysPro and Modelica https://ecp.ep.liu.se/index.php/modelica/article/view/930 Hydrogen will play a key role in the global energy transition if we are able to produce it with low-carbon emissions. However, clean hydrogen production today is mostly limited to demonstration projects ranging from 2 up to 20 MW. Modeling the way low-carbon hydrogen is produced, stored and used will allow us to significantly improve our understanding of how clean hydrogen could be produced and thus increase the production efficiency. In this paper, we show that the newest version of ThermoSysPro (TSP), an open-source Modelica library for modeling energy systems, provides a suitable framework to model and simulate the hydrogen production, storage and consumption. The model presented in this paper contains three electrolyzers, a storage station and a vehicle station. We present how the model was built, which components were adapted and how, and show that its simulation can be useful in the design phase, as well as for diagnosis purposes. Sebastian Vallejo Jimenez, Luis Corona Mesa-Moles, Damien Faille, Dina Irofti Copyright (c) 2023 Sebastian Vallejo Jimenez, Luis Corona Mesa-Moles, Damien Faille, Dina Irofti https://creativecommons.org/licenses/by/4.0/ https://ecp.ep.liu.se/index.php/modelica/article/view/930 Fri, 22 Dec 2023 00:00:00 +0100 Dialectic Mechanics: Extension for Real-Time Simulation https://ecp.ep.liu.se/index.php/modelica/article/view/931 Dialectic mechanics was introduced as an approximative modeling alternative to the classic Newtonian formulation of mechanics. It allows for additional freedom in placing a systems eigenvalues to facilitate simulation of systems, that are not suitable for most integration methods, when modeled according to the classic approach. The original idea of dialectic mechanics enables the suppression of high frequencies, but may still yield very stiff systems unsuitable for explicit integration methods. An additional term is added to enable real-time simulation with explicit methods. The goal of this paper is an analysis of the resulting equations and a comparison to the classic Newtonian formulation, aiming for an understanding of which applications most benefit from using dialectic mechanics. Carsten Oldemeyer, Dirk Zimmer Copyright (c) 2023 Carsten Oldemeyer, Dirk Zimmer https://creativecommons.org/licenses/by/4.0/ https://ecp.ep.liu.se/index.php/modelica/article/view/931 Fri, 22 Dec 2023 00:00:00 +0100 Testing the verification and validation capability of a DCP based interface for distributed real-time applications https://ecp.ep.liu.se/index.php/modelica/article/view/932 Cyber-physical systems are composed of a variety of elements developed by different vendors that are often geographically distributed. Therefore, its development process presents a double challenge: each element has to be developed individually and, at the same time, a correct interaction with the rest of the elements has to be ensured. In a previous work, we proposed and developed an interface, based on the non-proprietary Distributed Co-simulation Protocol standard, to ease the interaction between these elements. In this paper, we improve it to be applicable in a variety of hardware platforms and we test its applicability for the verification and validation process. To do so, firstly, we prove that our interface is hardware agnostic, demonstrating its easy implementation on different platforms. Secondly, we test its applicability in different X-in-the-Loop simulations. Finally, we also test its behaviour in distributed real-time executions, a necessary requirement for linking elements from different suppliers and helping to preserve their Intellectual Property. Mikel Segura, Alejandro J. Calderón, Tomaso Poggi, Rafael Barcena Copyright (c) 2023 Mikel Segura, Alejandro J. Calderón, Tomaso Poggi, Rafael Barcena https://creativecommons.org/licenses/by/4.0/ https://ecp.ep.liu.se/index.php/modelica/article/view/932 Fri, 22 Dec 2023 00:00:00 +0100 Towards the separate compilation of Modelica: modularity and interfaces for the index reduction of incomplete DAE systems https://ecp.ep.liu.se/index.php/modelica/article/view/933 A key feature of the Modelica language is its object-oriented nature: components are instances of classes and they can aggregate other components, so that extremely large models can be efficiently designed as ``trees of components''. However, the structural analysis of Modelica models, a necessary step for generating simulation code, often relies on the flattening of this hierarchical structure, which undermines the scalability of the language and results in widely-used Modelica tools not being able to compile and simulate such large models. In this paper, we propose a novel method for the modular structural analysis of Modelica models. An adaptation of Pryce's Sigma-method for non-square DAE systems, along with a carefully crafted notion of component interface, make it possible to fully exploit the object tree structure of a model. The structural analysis of a component class can be performed once and for all, only requiring the information provided by the interface of its child components. The resulting method alleviates the exponential computation costs that can be yielded by model flattening; hence, its scalability makes it ideally suited for the modeling and simulation of large cyber-physical systems. Albert Benveniste, Benoît Caillaud, Mathias Malandain, Joan Thibault Copyright (c) 2023 Albert Benveniste, Benoît Caillaud, Mathias Malandain, Joan Thibault https://creativecommons.org/licenses/by/4.0/ https://ecp.ep.liu.se/index.php/modelica/article/view/933 Fri, 22 Dec 2023 00:00:00 +0100 Object-Oriented Formulation and Simulation of Models using Linear Implicit Equilibrium Dynamics https://ecp.ep.liu.se/index.php/modelica/article/view/934 New robust and yet powerful Modelica libraries as the DLR ThermoFluid Stream library or the introduction of dialectic mechanics use a special modeling approach that uses linear implicit equilibrium dynamics. In this paper, we study the basic motivation of this approach, its benefits and drawbacks before finally showing how to get from the models to applicable simulation code. Dirk Zimmer Copyright (c) 2023 Dirk Zimmer https://creativecommons.org/licenses/by/4.0/ https://ecp.ep.liu.se/index.php/modelica/article/view/934 Fri, 22 Dec 2023 00:00:00 +0100 Accelerating the simulation of equation-based models by replacing non-linear algebraic loops with error-controlled machine learning surrogates https://ecp.ep.liu.se/index.php/modelica/article/view/935 When simulating a Modelica model, non-linear algebraic loops may be present, which involves solving multiple equations simultaneously. The classical Newton-Raphson method is commonly employed for solving a non-linear equation system (NLS). However, the computational burden of using this method during simulation can be significant. To tackle this issue, utilizing artificial neural networks (ANNs) to approximate the solution of algebraic loops is a promising approach. While ANN surrogates offer fast performance, ensuring the correctness of the computed solution or quantifying reliability can be challenging. This publication presents a prototype, based on the OpenModelica compiler (OMC), that automates the extraction of time-consuming algebraic loops. It generates training data, trains ANNs using machine learning (ML) methods, and replaces the algebraic loops with ANN surrogates in the simulation code. A hybrid approach, combining the trained surrogate with the nonlinear Newton solver, is then used to compute the solution with a desired level of accuracy. Andreas Heuermann, Philip Hannebohm, Matthias Schäfer, Bernhard Bachmann Copyright (c) 2023 Andreas Heuermann, Philip Hannebohm, Matthias Schäfer, Bernhard Bachmann https://creativecommons.org/licenses/by/4.0/ https://ecp.ep.liu.se/index.php/modelica/article/view/935 Fri, 22 Dec 2023 00:00:00 +0100 Exploiting Modelica and the OpenIPSL for University Campus Microgrid Model Development https://ecp.ep.liu.se/index.php/modelica/article/view/936 The need for modeling different aspects of microgrid design and operation has seen the development of various tools over time for different analysis purposes. In this study, Modelica has been adopted as the language of choice to construct a University Campus Microgrid model, utilizing the Modelica Standard Library and the OpenIPSL library. This paper explores the advantages of utilizing Modelica for campus microgrid modeling, emphasizing its benefits and unique features. Modelica features, such as the use of record structures and replaceable templates prove to be particularly advantageous for the modeling task, enabling flexibility and efficiency in the modeling process. Furthermore, comprehensive validation tests are conducted to ensure the accuracy and reliability of sub-systems (e.g. specific power generator systems), before assembling the microgrid network model as a whole. The results demonstrate the efficacy of Modelica in accurately modeling and simulating microgrids, highlighting its potential for advancing microgrid research and development. Fernando Fachini, Srijita Bhattacharjee, Miguel Aguilera, Luigi Vanfretti, Giuseppe Laera, Tetiana Bogodorova, Ardeshir Moftakhari, Michael Huylo, Atila Novoselac Copyright (c) 2023 Fernando Fachini, Srijita Bhattacharjee, Miguel Aguilera, Luigi Vanfretti, Giuseppe Laera, Tetiana Bogodorova, Ardeshir Moftakhari, Michael Huylo, Atila Novoselac https://creativecommons.org/licenses/by/4.0/ https://ecp.ep.liu.se/index.php/modelica/article/view/936 Fri, 22 Dec 2023 00:00:00 +0100 Application of the OpenModelica-Matlab Interface to Integrated Simulation and Successive Linearization Based Model Predictive Control https://ecp.ep.liu.se/index.php/modelica/article/view/937 This paper presents the implementation of successive linearization based model predictive control (SLMPC) efforts through the interfacing of OpenModelica and Matlab using the OMMatlab tool. The dynamic system (here a chemical process) and the model predictive control (MPC) algorithm are implemented in OpenModelica and Matlab, respectively. The model linearization procedure is carried out through OMMatlab, which is highly optimized in terms of run-time by using a single executable file and adapting it at each sample time. Also, necessary theories for a continuous model discretization are discussed for both nonlinear Modelica and linearized continuous models. A procedure for constructing an Extended Kalman Filter (EKF) from a continuous Modelica model is also presented. The usability of the OpenModelica-Matlab interface for SLMPC is demonstrated by control of liquid levels in a tanks-in-series problem. Mohammad Hadi Alizadeh, Ali M. Sahlodin, Arunkumar Palanisamy, Francesco Casella, Peter Fritzson Copyright (c) 2023 Mohammad Hadi Alizadeh, Ali M. Sahlodin, Arunkumar Palanisamy, Francesco Casella, Peter Fritzson https://creativecommons.org/licenses/by/4.0/ https://ecp.ep.liu.se/index.php/modelica/article/view/937 Fri, 22 Dec 2023 00:00:00 +0100 Parameter Estimation of Modelica Building Models Using CasADi https://ecp.ep.liu.se/index.php/modelica/article/view/938 Predictive control can substantially improve the energy performance of buildings during operation, but it requires a model of the building to be implemented. Gray-box model identification starts from a physics-based model (white-box element) and complements it with measurements from the operation of the building (black-box element). The level of detail of the original model is limited by the optimization problem that needs to be solved when estimating its parameters. Consequently, it is common to heavily simplify building models hindering the intelligibility of their parameters and limiting their application potential. This paper investigates the accuracy and scalability of different transcription methods for parameter estimation of building models. The methodology starts from a Modelica model as an initial guess which is transferred to CasADi using the Functional Mockup Interface to solve the parameter estimation problem. The study demonstrates the high effectiveness of multiple shooting. Single shooting and direct collocation could be more suitable for setups with faster integration times or with increased granularity in the training data, respectively. Carlos Durán Cañas, Javier Arroyo, Joris Gillis, Lieve Helsen Copyright (c) 2023 Carlos Durán Cañas, Javier Arroyo, Joris Gillis, Lieve Helsen https://creativecommons.org/licenses/by/4.0/ https://ecp.ep.liu.se/index.php/modelica/article/view/938 Fri, 22 Dec 2023 00:00:00 +0100 Presentation, Validation and Application of the EnergyProcess Library https://ecp.ep.liu.se/index.php/modelica/article/view/939 Green production of hydrogen and its derivatives is becoming a cornerstone of industry decarbonation. Apart from the technological development point of view, optimizing the overall production chains dynamically is essential for the competitiveness of these systems. In this paper, we describe how we built, validated and used a Modelica-based library dedicated to the simulation and optimization of energy process for the production of green molecules. Especially, models of complex media, salt cavity hydrogen storage and electrolysis module are presented. An example application shows that the models of the library are particularly handy for the modeling of a 5MW electrolysis module, which is used for the calibration of an optimization model. Francois Nepveu, Sylvain Mathonniere, Nicolas Lamaison, Gael Enee Copyright (c) 2023 Francois Nepveu, Sylvain Mathonniere, Nicolas Lamaison, Gael Enee https://creativecommons.org/licenses/by/4.0/ https://ecp.ep.liu.se/index.php/modelica/article/view/939 Fri, 22 Dec 2023 00:00:00 +0100 Import and Export of Functional Mockup Units in CasADi https://ecp.ep.liu.se/index.php/modelica/article/view/940 This paper presents the recently added support for import and export of functional mockup units (FMUs) in CasADi, an open-source software framework for numerical optimization. Of particular interest is the efficient calculation of derivatives, especially in the context of sensitivity analysis and dynamic optimization. We show how the import interface allows for both first and second derivatives can be efficiently and accurately calculated and - importantly - validated for correctness. We also outline the FMU export interface, which leverages CasADi mature and efficient support for forward and adjoint derivative calculation and C code generation. Finally, potential future developments of the support are discussed. Joel Andersson Copyright (c) 2023 Joel Andersson https://creativecommons.org/licenses/by/4.0/ https://ecp.ep.liu.se/index.php/modelica/article/view/940 Mon, 11 Mar 2024 00:00:00 +0100 On the Characteristics of One-Dimensional Compressible Flow https://ecp.ep.liu.se/index.php/modelica/article/view/941 Eigen decomposition of the governing equations that describe one-dimensional compressible flow has been presented. Analytical solution of the characteristics of the flow was derived. Simulation studies were conducted to support the theoretical analyses and wave propagation results were discussed in detail. It was found that acoustic effect due to the dynamic momentum led to a significant slowdown in the simulation and could be neglected in models without significant loss in accuracy for applications where energy transfer is of greater interest. Hongtao Qiao, Takashi Kobayashi, Christopher Laughman, Scott Bortoff Copyright (c) 2023 Hongtao Qiao, Takashi Kobayashi, Christopher Laughman, Scott Bortoff https://creativecommons.org/licenses/by/4.0/ https://ecp.ep.liu.se/index.php/modelica/article/view/941 Fri, 22 Dec 2023 00:00:00 +0100 LargeTESModelingToolkit: A Modelica Library for Large-scale Thermal Energy Storage Modeling and Simulation https://ecp.ep.liu.se/index.php/modelica/article/view/942 This paper introduces the LargeTESModelingToolkit, a novel Modelica library for modeling and simulation of large-scale pit and tank thermal energy storage. This first comprehensive Modelica library in the field provides the flexibility and tools needed to develop new storage models tailored to the desired application. It also offers researchers and industrial users pre-built storage models for simulation studies to answer the relevant questions for an optimized design at storage and system level. In this paper we present the library’s key features and structure, and introduce the underlying physical and mathematical foundations and modeling approaches. Moreover, we discuss the validation of the models, present the first results, and show the library’s applicability using an exemplary simulation case study. Michael Reisenbichler-S., Franz Wotawa, Keith O’Donovan, Carles Ribas Tugores, Franz Hengel Copyright (c) 2023 Michael Reisenbichler-S., Franz Wotawa, Keith O’Donovan, Carles Ribas Tugores, Franz Hengel https://creativecommons.org/licenses/by/4.0/ https://ecp.ep.liu.se/index.php/modelica/article/view/942 Fri, 22 Dec 2023 00:00:00 +0100 Dynamic Modeling and Experimental Validation of Dishwasher with Heat Pump System https://ecp.ep.liu.se/index.php/modelica/article/view/943 Integration of heat pump systems with conventional dishwashers or household water heaters using electric heaters offers a promising solution to significantly reduce expected energy consumption. In this study, a comprehensive approach was undertaken to develop sub-models for each component of the heat pump dishwasher. These sub-models were subsequently integrated to form a complete cycle model of the heat pump dishwasher. The specific components modeled included the compressor, evaporator, condenser, and capillary tube. Furthermore, an algorithm was devised to ensure the proper functioning of all the individual models, in accordance with the operational principles of the dishwasher. To validate the model, the temperature variation within the dishwasher during the heating and cooling phases was compared against experimental data. The maximum deviation observed in the cabinet temperature of the dishwasher was found to be 1 °C, with a corresponding deviation of 0.5 minutes in the cycle duration. Moreover, the maximum deviation in power consumption amounted to 2.4%, while a maximum deviation of 2.9% was noted in energy consumption. The results obtained from the model closely aligned with the experimental outcomes, thereby confirming its accuracy and reliability. Erdoğan Mert Şeren, Mutlu İpek Copyright (c) 2023 Erdoğan Mert Şeren, Mutlu İpek https://creativecommons.org/licenses/by/4.0/ https://ecp.ep.liu.se/index.php/modelica/article/view/943 Fri, 22 Dec 2023 00:00:00 +0100 A Library to Simulate Processes in the Factory Hall https://ecp.ep.liu.se/index.php/modelica/article/view/944 The Modelica language is well suited to model systems with discrete and continuous dynamics. If one wants to model the flow of items through manufacturing steps such as preparation, mounting, or transport in the shop floor, this feature is crucial. The library ProcessSimulation can be used to model such processes. By default, it omits the technical details of the process steps, and focuses on the flow of material items through the process steps. In addition to that, a base model to calculate the energy consumption in the different manufacturing steps is provided. It can be enriched with technical details of the components. The library can be used for the calculation of (net) energy consumption, but also for task planning. Julia Gundermann, Torsten Blochwitz Copyright (c) 2023 Julia Gundermann, Torsten Blochwitz https://creativecommons.org/licenses/by/4.0/ https://ecp.ep.liu.se/index.php/modelica/article/view/944 Fri, 22 Dec 2023 00:00:00 +0100 Modelica 3.6 - Changes, Benefits and Implementation https://ecp.ep.liu.se/index.php/modelica/article/view/945 The latest release of the Modelica Language Specification version 3.6 brings several benefits to users, and this paper will discuss the changes and the benefits for the clearer parameter defaults, clearer start-value priority, selective model extension, and multi-lingual support. The benefits only occur when the features are implemented in Modelica tools, and to facilitate that, the paper will discuss the design choices when implementing the new standard in Dymola 2023x Refresh 1 and 3DEXPERIENCE 2023x FD03. Hans Olsson Copyright (c) 2023 Hans Olsson https://creativecommons.org/licenses/by/4.0/ https://ecp.ep.liu.se/index.php/modelica/article/view/945 Fri, 22 Dec 2023 00:00:00 +0100 Modelica models in SSP https://ecp.ep.liu.se/index.php/modelica/article/view/946 This is a proposed optional extension for SSP 2.0 that defines how Modelica models can be referenced in SSP. It specifies the mapping of key Modelica concepts to SSP, which necessitates a few small extensions. The purpose is to broaden the scope of SSP to embrace the more powerful modeling concepts of Modelica, for environments that can support it. Dag Brück Copyright (c) 2023 Dag Brück https://creativecommons.org/licenses/by/4.0/ https://ecp.ep.liu.se/index.php/modelica/article/view/946 Fri, 22 Dec 2023 00:00:00 +0100 Beyond FMI - Towards New Applications with Layered Standards https://ecp.ep.liu.se/index.php/modelica/article/view/947 The FMI standard - just like any other standard - faces the challenge of balancing generality with enabling specific use cases. Including every domain or use-case specific extension in the core standard would significantly increase its length, making it unreadable and unimplementable. To allow for extensions of the core standard for specific use cases, the Modelica Association developed the concept of layered standards, first in the SSP standard and later in FMI. This paper presents the concept of layered standards and describes the layered standards currently under development by the FMI Project: XCP support of FMUs, network communication, and structured variables and regular maps in FMI 3.0. Christian Bertsch, Markus Süvern, Torsten Sommer, Klaus Schuch, Kevin Reim, Pierre R., Benedikt Menne, Andreas Junghanns, Torsten Blochwitz, Matthias Blesken, Patrick Täuber Copyright (c) 2023 Christian Bertsch, Matthias Blesken, Torsten Blochwitz, Andreas Junghanns, Benedikt Menne, Pierre R., Kevin Reim, Klaus Schuch, Torsten Sommer, Markus Süvern, Patrick Täuber https://creativecommons.org/licenses/by/4.0/ https://ecp.ep.liu.se/index.php/modelica/article/view/947 Fri, 22 Dec 2023 00:00:00 +0100 Low-order aquifer thermal energy storage model for geothermal system simulation https://ecp.ep.liu.se/index.php/modelica/article/view/948 This paper presents a low order aquifer thermal energy storage (ATES) model for simulation of combined subsurface and above-surface energy systems. The model is included in the Modelica IBPSA Library, which is a free open-source library with basic models for building and district energy and control systems. The model uses a lumped-component method, in which the transient conductive-convective heat and mass transfer equation is radially discretized. To verify the accuracy of the model, we present an intra-model comparison from a simulation test suite. Results show that the Modelica ATES model is in good agreement, with a normalized mean bias error for yearly variation of aquifer temperatures of 1.6×10−2 and 9×10−5 at 1 m and 10 m distance from the well. Alessandro Maccarini, Michael Wetter, Davide Varesano, Martin Bloemendal, Alireza Afshari, Angelo Zarrella Copyright (c) 2023 Alessandro Maccarini, Michael Wetter, Davide Varesano, Martin Bloemendal, Alireza Afshari, Angelo Zarrella https://creativecommons.org/licenses/by/4.0/ https://ecp.ep.liu.se/index.php/modelica/article/view/948 Fri, 22 Dec 2023 00:00:00 +0100 Heat Consumer Model for Robust and Fast Simulations of District Heating Networks https://ecp.ep.liu.se/index.php/modelica/article/view/949 Dynamic thermo-hydraulic simulations of district heating networks are an essential tool to investigate concepts for their sustainable design and operation. The way the numerous heat consumers are modeled has crucial impact on the simulation performance. The proposed model for heat consumers is designed to require low computational effort by using a simplified modeling approach, avoiding state events and limiting its dynamics, while still reproducing their main characteristics. It is tested for a demonstration network, showing its ability to yield realistic results throughout the whole range of operational states including undersupply situations. The results show that the heat consumer model itself requires little time to simulate but still significantly influences the simulation time. Fast dynamics and including a bypass in the model increase the simulation time, so that users should sensibly choose how to use these options. Furthermore, heat consumer models triggering unnecessary state events result in the highest computational effort. Johannes Zipplies, Janybek Orozaliev, Klaus Vajen Copyright (c) 2023 Johannes Zipplies, Janybek Orozaliev, Klaus Vajen https://creativecommons.org/licenses/by/4.0/ https://ecp.ep.liu.se/index.php/modelica/article/view/949 Mon, 11 Mar 2024 00:00:00 +0100 Convection of Chemicals and Other Substances with ThermoSysPro https://ecp.ep.liu.se/index.php/modelica/article/view/950 Digital twins are a powerful support tool for plant operation: they provide further understanding on ongoing phenomena and allow realistic projection of the current plant state into the future. Among other twins, EDF is developing a digital twin of the chemistry of the secondary circuits of its nuclear plants. Such a tool will give access to the pH in any point of the circuit and in any operating condition (e.g. partial load, power transients...), outperforming the current, limited, monitoring techniques. It is expected to help operators and engineers to better monitor the circuit (e.g. for erosion corrosion) and anticipate the consequences on equipment of different operating strategies (e.g. for amines’ injection pumps maintenance). ThermoSysPro, the EDF R&D’s thermal-hydraulic library, is the bedrock of the tool under development. To meet the needs of the target application, modeling of amines convection and some related chemistry, allowing the computation of pH, are introduced in a new version of the library. Moreover, the presented approach aims at proposing a general framework allowing the convection of custom substances (i.e. easily customized by the end user following its needs). This will open the door for a wide range of other applications: radioactive substances, pollution (e.g. salted water ingress coming from a heat-exchanger leak), just to cite a few, could be modeled in ThermoSysPro to augment the scope of the digital twins. Giorgio Simonini, Arnaud Duval, Sarah Hocine-Rastic, Mathilde Praud Copyright (c) 2023 Giorgio Simonini, Arnaud Duval, Sarah Hocine-Rastic, Mathilde Praud https://creativecommons.org/licenses/by/4.0/ https://ecp.ep.liu.se/index.php/modelica/article/view/950 Fri, 22 Dec 2023 00:00:00 +0100 Using the DLR Thermofluid Stream Library for Thermal Management of Fuel Cell Systems in Aviation https://ecp.ep.liu.se/index.php/modelica/article/view/951 For more environmental friendly aircraft, different propulsion systems are considered. Either fuel cell or fully electrically driven aircraft come along with challenging heat dissipation tasks. An intelligent thermal management system is essential to prevent failures and to ensure a reliable operation of the propulsion system. The exploration space for appropriate cooling systems seems endless, hence it is vital to rely on robust modeling libraries that enable a quick design and simulation of different architectures. The open source DLR Thermofluid Stream Library (TFS) forms such a basis and proved to be expedient in that sense. This paper gives an overview of a complete fuel cell system for future aircraft that covers the most essential subsystems and is modeled solely of components contained in the TFS. The focus is on different cooling systems and methods that can be quickly investigated in the context of the overall fuel cell system throughout an entire flight mission. Niels Weber, Camiel Cartignij, Dirk Zimmer Copyright (c) 2023 Niels Weber, Camiel Cartignij, Dirk Zimmer https://creativecommons.org/licenses/by/4.0/ https://ecp.ep.liu.se/index.php/modelica/article/view/951 Fri, 22 Dec 2023 00:00:00 +0100 Supporting Infinitely Fast Processes in Continuous System Modeling https://ecp.ep.liu.se/index.php/modelica/article/view/952 In this article, we examine the consequences of introducing a new construct into an equation-based language to model infinitely fast processes. We do this by extending the equation-based language Modelica with a special time constant, Θ. Θ provides modelers with an additional language construct that they can utilize both to improve performance of numerical integration for existing models as well as formulating and simulating models that existing tools struggle with. We present two cases where clear net benefits of introducing this new operator are illustrated. The first being an artificial DAE-System using a monotonic function, the second being an electrical circuit with and without a parasitic capacitance Based on or observations we believe that by enabling modelers to express common idealizations using Θwe can improve both performance and maintainability, since idealizations made by the modeler are encoded explicitly in the model. John Kristofer Tinnerholm, Francesco Casella, Adrian Pop Copyright (c) 2023 John Kristofer Tinnerholm, Francesco Casella, Adrian Pop https://creativecommons.org/licenses/by/4.0/ https://ecp.ep.liu.se/index.php/modelica/article/view/952 Fri, 22 Dec 2023 00:00:00 +0100 A Modelica Library to Add Contact Dynamics and Terramechanics to Multi-Body Mechanics https://ecp.ep.liu.se/index.php/modelica/article/view/953 The Contact Dynamics library extends the multi-body Modelica Standard Library with contact calculation to the environment, namely soft soil and hard obstacles. A focus is on terramechanics, i. e. wheels driving on soft and dry soil, and a handful of models are implemented. Additionally, a Hertz contact model for hard and elastic contact, between bodies themselves or to obstacles in the environment (e. g. rocks in the soft soil), is available as well. The capabilities of the library have been key in the development of rovers for planetary exploration such as the upcoming MMX mission to the Martian moon Phobos. Fabian Buse, Antoine Pignède, Stefan Barthelmes Copyright (c) 2023 Fabian Buse, Antoine Pignède, Stefan Barthelmes https://creativecommons.org/licenses/by/4.0/ https://ecp.ep.liu.se/index.php/modelica/article/view/953 Fri, 22 Dec 2023 00:00:00 +0100 Bodylight.js 2.0 - Web components for FMU simulation, visualisation and animation in standard web browser https://ecp.ep.liu.se/index.php/modelica/article/view/954 Simulators used in teaching and education comprises a mathematical model of the system under study and user interface that allows to control model inputs and visualize model state and results in an intuitive way. This paper presents web components - that can be used to build in-browser web simulator. The models used for the web simulators must be written in standard Modelica language and compiled as standard FMU (Functional mockup unit). The toolchain version Bodylight.js 2.0 contains tools to compile FMU into WebAssembly language able to be executed directly by web browser. Bodylight.js 2.0 web components can be then used to combine model, interactive animation and charts into rich web document in HTML or Markdown syntax only without any other programming or scripting. Tomas Kulhanek, Arnost Mladek, Jiri Kofranek, Filip Jezek Copyright (c) 2023 Tomas Kulhanek, Arnost Mladek, Jiri Kofranek, Filip Jezek https://creativecommons.org/licenses/by/4.0/ https://ecp.ep.liu.se/index.php/modelica/article/view/954 Mon, 11 Mar 2024 00:00:00 +0100 Design ideas behind Bioprocess Library for Modelica https://ecp.ep.liu.se/index.php/modelica/article/view/955 In this paper I describe key design ideas behind the Bioprocess Library. The library facilitates modelling and simulation of bioprocesses mainly for the pharmaceutical industry. It borrows some structures from MSL Fluid and Media but differs in central design choices and is much simpler. A typical application consists of both configuration of standard components from the library and tailor-made Modelica code defining the application dependent medium and bioprocess reactions. The guiding idea is that configuration of components works well for defining the setup of process equipment for a production line, while more flexibility is needed for modelling bioprocess reactions and therefore equations are used. Another central design idea is that components of equipment are centrally adapted to the medium used. One could say that the library is parameterised with the application media and reaction models. The focus of this paper is structural aspects of the library rather than the content. Jan Peter Axelsson Copyright (c) 2023 Jan Peter Axelsson https://creativecommons.org/licenses/by/4.0/ https://ecp.ep.liu.se/index.php/modelica/article/view/955 Mon, 11 Mar 2024 00:00:00 +0100 Creating cardiovascular and respiratory models using Physiolibrary 3.0 https://ecp.ep.liu.se/index.php/modelica/article/view/956 The free open-source library called Physiolibrary (https://github.com/MarekMatejak/Physiolibrary) in version 3.0 recast components from physiological domains such as hydraulic (cardiovascular), thermal, osmotic and chemical into Modelica Standard Library (MSL) concept of Fluid/Media. Components are expanded to include gases transports, acid-base, electrolytes, nutrients delivery and endocrines by simple selecting pre-packaged media. They can be connected directly (the same medium) or across membranes (different media), allowing small physiological models to be easily coupled within more quantitative ones with minimal effort. Marek Mateják Copyright (c) 2023 Marek Mateják https://creativecommons.org/licenses/by/4.0/ https://ecp.ep.liu.se/index.php/modelica/article/view/956 Fri, 22 Dec 2023 00:00:00 +0100 Design proposal of a standardized Base Modelica language https://ecp.ep.liu.se/index.php/modelica/article/view/957 This paper is presenting the design proposal of a simplified version of the Modelica language. Base Modelica is designed to serve as an intermediate representation enabling a clean separation of front-end and back-end matters when processing a Modelica model. Furthermore, is it intended as a basis to restructure the Modelica Language Specification considering two parts: the basic features and the advanced language constructs. After discussing the motivation, solution approach, and risks, the paper is highlighting a selection of design choices that have been made for the current pre-release version of the language. Code examples are given to illustrate and highlight various aspects of the language. Open issues, conclusions, and an outlook finalize the paper. By attracting more tool vendors and researchers to work with this intermediate representation the whole Modelica community is expected to benefit from new utilities to inspect, analyze, optimize and process equations-based models in general and Modelica models in particular. Gerd Kurzbach, Oliver Lenord, Hans Olsson, Martin Sjölund, Henrik Tidefelt Copyright (c) 2023 Gerd Kurzbach, Oliver Lenord, Hans Olsson, Martin Sjölund, Henrik Tidefelt https://creativecommons.org/licenses/by/4.0/ https://ecp.ep.liu.se/index.php/modelica/article/view/957 Fri, 22 Dec 2023 00:00:00 +0100 A preCICE-FMI Runner to Couple FMUs to PDE-Based Simulations https://ecp.ep.liu.se/index.php/modelica/article/view/958 Partitioned simulation or co-simulation allows simulating complex systems by breaking them up into smaller subsystems. The Functional Mock-Up Interface (FMI) enables co-simulation for models based on ODEs and DAEs, but typically not PDEs. However, only PDE-based models are able to accurately simulate physical aspects requiring spatial resolution, such as heat transfer or fluid-structure interaction. We present a preCICE-FMI runner software to integrate FMUs with the open-source coupling library preCICE. preCICE couples PDE-based simulation programs, such as OpenFOAM or FEniCS, in a black-box fashion to achieve partitioned multi-physics simulations. The runner serves as an importer to execute any FMU and to steer the simulation. Additionally, it calls preCICE to communicate and coordinate with other programs. The software is written in Python and relies on the Python package FMPy. We showcase two example cases for the coupling of FMUs to ODE- and PDE-based models. Leonard Willeke, David Schneider, Benjamin Uekermann Copyright (c) 2023 Leonard Willeke, David Schneider, Benjamin Uekermann https://creativecommons.org/licenses/by/4.0/ https://ecp.ep.liu.se/index.php/modelica/article/view/958 Fri, 22 Dec 2023 00:00:00 +0100 Secure Exchange of Black-Box Simulation Models using FMI in the Industrial Context https://ecp.ep.liu.se/index.php/modelica/article/view/959 <p>FMI is a standard for exchanging simulation models in a platform-agnostic way, also in form of black-box models. In the industrial context, it is common to exchange such black-box simulation models especially between partners. Using and running such models, though, is a security issue as there is no way to verify and validate the content of the models. This security issue must be addressed especially in the industrial context where security is considered high priority in general. Based on an exemplary model exchange, possible attacks are analyzed in this work. By using cryptography, three different approaches to pack the additional metadata are presented that aim at providing end-to-end integrity checks to a black-box simulation models. Together with administrative measures, this allows to define those FMUs to be trusted and executed. For sake of completeness, a prototype was implemented to help with the cryptographic processes and show the effectiveness of the provided solution.</p> <p><strong><em>Please note that the PDF was replaced by another PDF on 2024-03-12 since a completely different paper was uploaded previously.</em></strong></p> Christian Wolf, Miriam Schleipen, Georg Frey Copyright (c) 2023 Christian Wolf, Miriam Schleipen, Georg Frey https://creativecommons.org/licenses/by/4.0/ https://ecp.ep.liu.se/index.php/modelica/article/view/959 Fri, 22 Dec 2023 00:00:00 +0100 The Common Requirement Modeling Language https://ecp.ep.liu.se/index.php/modelica/article/view/960 CRML (the Common Requirement Modeling Language) is a new language for the formal expression of requirements. The ambition is to release the language as an open standard integrated into the open source modeling and simulation tool OpenModelica and interoperable with the open systems engineering standard SysMLv2. CRML allows to express requirements as multidisciplinary spatiotemporal constraints that can be verified against system design by co-simulating requirements models with behavioral models. Particular attention is paid to the following aspects. The requirements models must be easily legible and sharable between disciplines and stakeholders and must capture realistic constraints on the system, including time-dependent constraints with probabilistic criteria, in recognition of the fact that no constraint can be fulfilled at any time at any cost. The theoretical foundation of the language lies on 4-valued Boolean algebra, set theory and function theory. The coupling of the requirements models to the behavioral models is obtained through the specification of bindings, the automatic generation of Modelica code from the CRML model and use of the FMI and SSP standards. CRML and the proposed methodology is compatible with SysMLv2, forming a comprehensive work-flow and tool-chain encompassing requirement analysis, system design and V&V. The final objective is to facilitate the demonstration of correctness of system behavior against assumptions and requirements by building a workflow around Model-Driven Engineering and Open Standards for automating the creation of verification simulators. Daniel Bouskela, Lena Buffoni, Audrey Jardin, Vince Molnair, Adrian Pop, Armin Zavada Copyright (c) 2023 Daniel Bouskela, Lena Buffoni, Audrey Jardin, Vince Molnair, Adrian Pop, Armin Zavada https://creativecommons.org/licenses/by/4.0/ https://ecp.ep.liu.se/index.php/modelica/article/view/960 Fri, 22 Dec 2023 00:00:00 +0100 Variable Structure System Simulation via Predefined Acausal Components https://ecp.ep.liu.se/index.php/modelica/article/view/961 This article outlines a new approach of the experimental open-source modeling and simulation system Modia to simulate systems where the number of variables and equations can be changed after compilation and also during simulation, without having to re-generate and rec-ompile the code. Details are given for heat transfer in an insulated rod, where the discretisation of the rod is completely hidden from the symbolic engine. It is discussed how this approach could also be used in a future version of Modelica and/or FMI. Furthermore, this feature is also used in various variants to speed up collision handling in 3D mechanical systems. For example, by rigidly fixing an object after it has been gripped, with or without calculating the elastic response, and thereby dynamically changing the number of degrees of freedom. Andrea Neumayr, Martin Otter Copyright (c) 2023 Andrea Neumayr, Martin Otter https://creativecommons.org/licenses/by/4.0/ https://ecp.ep.liu.se/index.php/modelica/article/view/961 Fri, 22 Dec 2023 00:00:00 +0100 MoCITempGen: Modelica Continuous Integration Template Generator https://ecp.ep.liu.se/index.php/modelica/article/view/962 Modelica enables an object-oriented approach to model complex systems in product development and research, and, thus, the development of various model libraries. Library development requires collaborative development in a team of multiple developers. A typical challenge in collaborative development, especially in the area of open source, is to create models of uniform quality despite different levels of knowledge among developers. Techniques such as Continuous Integration (CI) from the field of software development, can help to solve these challenges. However, the adaptation of CI for the area of Modelica model development currently requires the manual creation of complex templates and a high degree of manual configuration. In this paper we present MoCITempGen, an open source tool for automated generation of CI structures for the widely used modeling language Modelica. The tool is succesfully applied on two Modelica libraries to demonstrate the functionality. David Jansen, Fabian Wüllhorst, Sven Hinrichs, Dirk Müller Copyright (c) 2023 David Jansen, Fabian Wüllhorst, Sven Hinrichs, Dirk Müller https://creativecommons.org/licenses/by/4.0/ https://ecp.ep.liu.se/index.php/modelica/article/view/962 Fri, 22 Dec 2023 00:00:00 +0100 Steady State and Dynamic Simulation of a Small-Scale Hollow Fiber Membrane Humidifier https://ecp.ep.liu.se/index.php/modelica/article/view/963 Membrane humidifiers are often used in mobile Proton Exchange Membrane (PEM) fuel cell systems to humidify the supply air of the fuel cell. The purpose of a humidifier in a PEM fuel cell system is to prevent a dry-out of the fuel cell membrane. In this paper, a humidifier model based on the number of transfer units (NTU) approach is set-up in Modelica, calibrated and validated using measurement of a test rig. In a first step, the model is evaluated for steady state operating conditions. Second the developed membrane humidifier model is simulated with dynamically changing operating conditions that are typical for mobile applications. Those simulation results are then compared to measurements. The aim of our study is to evaluate the accuracy of the NTU humidifier model under various operating scenarios. Our results indicate that the NTU model is suitable to predict the water transfer under steady state as well as dynamically changing operating conditions with low deviations to measurements. Markus Pollak, Manuel Kutz, Christian Schulze, Wilhelm Tegethoff, Jürgen Köhler Copyright (c) 2023 Markus Pollak, Manuel Kutz, Christian Schulze, Wilhelm Tegethoff, Jürgen Köhler https://creativecommons.org/licenses/by/4.0/ https://ecp.ep.liu.se/index.php/modelica/article/view/963 Fri, 22 Dec 2023 00:00:00 +0100 Modeling Components of a Turbine-Generator System for Sub-Synchronous Oscillation Studies with Modelica https://ecp.ep.liu.se/index.php/modelica/article/view/964 In power systems, subsynchronous oscillations associated with the interaction between a mechanical rotor shaft and electrical system can lead to equipment damage if improperly mitigated. This paper describes the development of a scalable, multi-mass torsional shaft model and a synchronous machine model with DC offset torque components included using Modelica. When coupled, these models can be used to perform shaft torsional studies. Two methods of coupling the shaft with the rest of the turbine-generator system are devised and analyzed. A single-machine, infinite-bus test system using the torsional shaft model and generator model developed in this paper is proposed to observe the penetration of subsynchronous oscillations throughout an electrical system. The test system is then modified to model subsynchronous resonance leading to system instability. Analysis of the models described in this paper highlights the value of the Modelica_LinearSystems2 library in determining the torsional mode shapes and frequencies associated with a turbine-generator system model. Eric Segerstrom, Luigi Vanfretti, Chetan Mishra, Kevin D. Jones Copyright (c) 2023 Eric Segerstrom, Luigi Vanfretti, Chetan Mishra, Kevin D. Jones https://creativecommons.org/licenses/by/4.0/ https://ecp.ep.liu.se/index.php/modelica/article/view/964 Fri, 22 Dec 2023 00:00:00 +0100 DroneLibrary: Multi-domain Drone Modeling in Modelica https://ecp.ep.liu.se/index.php/modelica/article/view/965 In the development of complex, novel electrified aerial systems such as Unmanned Aerial Vehicles (UAVs) and electric vertical take-off and landing (eVTOL) systems, multi-domain modeling and simulation studies can provide indispensable insight on system design and performance. In this paper, a Modelica library used to model multi-domain drone models is introduced. This library models a drone in the electrical, mechanical, and control domains, with examples for applications such as battery-power analysis, virtual reality simulation and user interaction. Meaghan Podlaski, Luigi Vanfretti, Dietmar Winkler Copyright (c) 2023 Meaghan Podlaski, Luigi Vanfretti, Dietmar Winkler https://creativecommons.org/licenses/by/4.0/ https://ecp.ep.liu.se/index.php/modelica/article/view/965 Fri, 22 Dec 2023 00:00:00 +0100 Optimal Scheduling of IES Considering Thermal Transmission Delay Based on Modelica and Julia https://ecp.ep.liu.se/index.php/modelica/article/view/966 The Integrated Energy System (IES) enables integrated control and coordinated optimization of multiple energy flows. Due to the complexity of dynamic characteristics of multiple energy flows and the significant differences in time scales, thermodynamic problems occur during the operation of the system. In this paper, we propose an IES operation method that comprehensively considers thermodynamics to reduce the impact of thermal transmission delay on the system's operational strategy, including modeling, evaluation, and scheduling programs. Firstly, an IES model is established to describe the dynamic characteristics of the energy supply network. Secondly, a two-stage optimization scheduling model considering thermal transmission delay is established to reduce the impact of thermal transmission delay on the operation decisions of IES, and the thermal power imbalance rate index is proposed to measure the impact of thermodynamics. Finally, the proposed method's effectiveness is validated by utilizing a comprehensive energy system as an example and implementing it on the MWORKS platform using the Modelica and Julia languages. Yong Qiu, Jin Wang, Shubin Zhang, Yuan He, Haiming Zhang, Ji Ding, Fanli Zhou Copyright (c) 2023 Yong Qiu, Jin Wang, Shubin Zhang, Yuan He, Haiming Zhang, Ji Ding, Fanli Zhou https://creativecommons.org/licenses/by/4.0/ https://ecp.ep.liu.se/index.php/modelica/article/view/966 Fri, 22 Dec 2023 00:00:00 +0100 Simulation Study of Flow Instability in Parallel Multi-Channel Systems Based on Modelica https://ecp.ep.liu.se/index.php/modelica/article/view/967 In parallel channels of a nuclear reactor core, flow instability can cause a significant decrease in critical heat flux (CHF) or mechanical oscillation of the fuel components, endangering the normal operation of the reactor. The NUMAP software, developed based on the two-fluid six-equation theory and using the Modelica language, is a multi-domain unified modeling and simulation platform for nuclear power plants. In this paper, a parallel dual-channel system model was constructed based on the NUMAP software, referencing a high-temperature and high-pressure steam-water two-phase thermohydraulic experimental device, to simulate flow instability phenomena. The comparison with experimental data validated the transient analysis ability of the NUMAP software for flow instability phenomena. Based on this, the flow instability boundary of a parallel multi-channel system was calculated under the same operating conditions. When the number of parallel channels was 2, 3, and 4, the calculated flow instability boundary error did not exceed ±5%, verifying that a parallel dual-channel structure can be used to obtain the flow instability boundary when there are multiple parallel heating channels. qiushi Tong, xing LV, Kangjie Deng, Xiaokang Zeng, JI Ding, Fanli Zhou Copyright (c) 2023 qiushi Tong, xing LV, Kangjie Deng, Xiaokang Zeng, JI Ding, Fanli Zhou https://creativecommons.org/licenses/by/4.0/ https://ecp.ep.liu.se/index.php/modelica/article/view/967 Fri, 22 Dec 2023 00:00:00 +0100 Integration of Heat Flow through Borders between Adjacent Zones in AixLib's Reduced-Order Model https://ecp.ep.liu.se/index.php/modelica/article/view/968 For dynamically simulating the thermal behavior of a building, the reduced-order model (ROM) implemented in the Modelica IBPSA and AixLib libraries provides a time-efficient calculation method based on the standard VDI 6007-1. Additionally, the Python package TEASER features a possilibity to fill the model parameters with automatically generated typical and/or enriched building data. So far, both have not been capable of modelling heat flow through borders between thermal zones. In this contribution, we present the integration of this feature into the open-source software combination. Additional new features include non-constant soil temperatures and a new approach to estimate interior building elements in cases without proper knowledge. Calculation results are presented for an exemplary application and show satisfactory agreement with measured values. The respective code (including the example presented here) is in the process of being published as part of the AixLib and TEASER open-source repositiories. Philip Groesdonk, David Jansen, Jacob Estevam Schmiedt, Bernhard Hoffschmidt Copyright (c) 2023 Philip Groesdonk, David Jansen, Jacob Estevam Schmiedt, Bernhard Hoffschmidt https://creativecommons.org/licenses/by/4.0/ https://ecp.ep.liu.se/index.php/modelica/article/view/968 Fri, 22 Dec 2023 00:00:00 +0100 Electrode boiler model for ancillary service simulation https://ecp.ep.liu.se/index.php/modelica/article/view/969 A generic component-based model of an industrial electrode boiler with internal control systems is presented. A mechanistic modelling approach was taken to include as much process and control information as possible and to generate detailed simulation results. The model is intended for qualitative studies of electrode boiler dynamics in the context of district heating generation and power grid ancillary services in collaboration with other electric power consuming units. An example boiler control scheme is designed and included in the simulation model as this is paramount to the dynamic response of the system. Simulations of standstill, load changes, and startup from hot and cold state show that the strictest ancillary service requirements can be fulfilled when the boiler is kept at operating temperature. Rene Just Nielsen, Thomas Egsgaard Pedersen Copyright (c) 2023 Rene Just Nielsen, Thomas Egsgaard Pedersen https://creativecommons.org/licenses/by/4.0/ https://ecp.ep.liu.se/index.php/modelica/article/view/969 Fri, 22 Dec 2023 00:00:00 +0100 Heat Exchanger Surrogates for a Vapor Compression System https://ecp.ep.liu.se/index.php/modelica/article/view/970 Given the computationally intensive nature of heat exchanger simulators, utilizing a data-driven surrogate model for efficiently computing the heat exchanger outputs is desirable. This study focuses on developing integrated surrogate models of heat exchangers for a vapor compression system in Modelica. The surrogate models are designed to serve as steady-state equivalents based on an efficient physics-based model which was calibrated using reference data obtained from a more advanced simulation model. Subsequently, the calibrated model was employed to generate the training and testing data for the development of Gaussian Process (GP) and Multi-Layer Perceptron (MLP) surrogates. The obtained findings indicate that GPs exhibit high accuracy when applied to the heat exchanger's outputs with smooth behavior. GPs also demonstrate excellent data efficiency compared to MLPs. In cases where the GP struggles to model specific outputs effectively, MLPs are able to capture the more complex behavior. Moreover, hyperparameter optimization is employed to identify optimal MLP topologies. Finally, the fast and compact surrogate model was integrated into the Modelica/Dymola environment. This adaptation allowed the surrogate models to be directly combined with the physical model of the heat exchanger. Nasrulloh Ratu Bagus Satrio Loka, Nicolás Ablanque Mejía, Santiago Torras Ortiz, Sriram Karthik Gurumurthy, Antonello Monti, Joaquim Rigola, Carles Oliet, Ivo Couckuyt, Tom Dhaene Copyright (c) 2023 Nasrulloh Ratu Bagus Satrio Loka, Nicolás Ablanque Mejía, Santiago Torras Ortiz, Sriram Karthik Gurumurthy, Antonello Monti, Joaquim Rigola, Carles Oliet, Ivo Couckuyt, Tom Dhaene https://creativecommons.org/licenses/by/4.0/ https://ecp.ep.liu.se/index.php/modelica/article/view/970 Fri, 22 Dec 2023 00:00:00 +0100 5th Generation District Heating and Cooling Modelica Models for Prosumer Interaction Analysis https://ecp.ep.liu.se/index.php/modelica/article/view/971 5th Generation District Heating and Cooling (5GDHC) provides a promising pathway for decarbonising the thermal sector. To quantifying the synergies between heating, cooling, and electricity, complex thermofluid models are required. Modelica offers a potential solution for developing such models but there is a scarcity of accessible and usable models. This paper addresses this gap by presenting a comprehensive set of Modelica models for key elements of 5GDHC systems: prosumers, balancing units, and hydraulic interfaces. The models prioritise usability by facilitating the utilisation of Func-tional Mock-up Interface and Power Hardware-in-the-Loop (PHIL) methodologies. Component design, rele-vant controls and the applicability of PHIL setups are discussed. A theoretical case exemplifies hardware min-imisation, using only heat exchangers to investigate prosumer behaviour. The paper concludes with a discus-sion on the potential use of these models, opportunities for improvement, and the need for further research and experimental investigations in understanding 5GDHC systems. Orestis Angelidis, Daniel Zinsmeister, Anastasia Ioannou, Daniel Friedrich, Alan Thomson, Gioia Falcone Copyright (c) 2023 Orestis Angelidis, Daniel Zinsmeister, Anastasia Ioannou, Daniel Friedrich, Alan Thomson, Gioia Falcone https://creativecommons.org/licenses/by/4.0/ https://ecp.ep.liu.se/index.php/modelica/article/view/971 Fri, 22 Dec 2023 00:00:00 +0100 Status of the ClaRa Library: Detailed Transient Simulation of Complex Energy Systems https://ecp.ep.liu.se/index.php/modelica/article/view/972 This paper presents the current state of the open-source Modelica library ClaRa, which provides its users with the capability to proficiently tackle tasks in the disciplines of thermal hydraulics, instrumentation and control pertaining to power plants and other kind of energy systems. We provide a comprehensive overview of how the library has successfully broadened its scope over the years of its development, transcending the original focus on conventional power plants to encompass renewable power plants, waste heat utilization, general process plants, refrigeration cycles, heat pumps and beyond. The new version, ClaRa 1.8.1, brings an exciting addition to the already impressive suite of features - support for the utilization of various artificial intelligence models in Modelica simulation tools. Furthermore, the authors unveil ClaRa's ambition to serve as a potential publication platform for third-party models from a steadily growing community of ClaRa users. This is underscored by several application models. Finally, we also describe the funding scheme for maintenance of open source ClaRa by an extended commercial version, ClaRaPlus. Ales Vojacek, Johannes Brunnemann, Tim Hanke, Thomas Marx-Schubach, Jörg Eiden Copyright (c) 2023 Ales Vojacek, Johannes Brunnemann, Tim Hanke, Thomas Marx-Schubach, Jörg Eiden https://creativecommons.org/licenses/by/4.0/ https://ecp.ep.liu.se/index.php/modelica/article/view/972 Fri, 22 Dec 2023 00:00:00 +0100 Open-Source Models for Sand-Based Thermal Energy Storage in Heating Applications https://ecp.ep.liu.se/index.php/modelica/article/view/973 This paper presents a new open-source modeling package in the Modelica language for particle-based silica-sand thermal energy storage (TES) in heating applications, available at https://github.com/sbslab/modelica-sand. Silica sand is an abundant, low-cost, and efficient storage medium for concentrated solar power and electricity generation. Although uncommon today, solid particle TES could benefit building and district heating systems, particularly as building electrification and renewable energy penetration increases. To enable heating system design and evaluation with sand TES, this work developed and open-source released Modelica models from base classes through complete systems with both physical equipment and controls. This paper first presents the new models. Then, we demonstrate their application with a heating plant that supplies steam for district heating, while also providing power-to-heat grid services by storing excesses renewable electricity as thermal energy. Kathryn Hinkelman, David Milner, Wangda Zuo Copyright (c) 2023 Kathryn Hinkelman, David Milner, Wangda Zuo https://creativecommons.org/licenses/by/4.0/ https://ecp.ep.liu.se/index.php/modelica/article/view/973 Fri, 22 Dec 2023 00:00:00 +0100 An Open-Source Benchmark of IEEE Test Cases for Easily Testing a New Approach for Steady State Calculations in Power Systems https://ecp.ep.liu.se/index.php/modelica/article/view/974 Power systems modeling and simulation are essential to conduct studies on the electrical transmission system and ensure its security. For this purpose, RTE, the French Transmission System Operator (TSO), is developing Dynaωo, a hybrid Modelica/C++ open-source suite of simulation tools for power systems. Most power systems models for Dynaωo are developed in the Modelica language using the Dynaωo Modelica library. This paper presents a full Modelica standard electrical power system benchmark implemented using the Dynaωo library. The IEEE 14-bus system benchmark is modeled here for steady-state calculation, with an approach that replaces the static load flow. Two test cases are simulated using the OpenModelica environment showing differences in the final steady-state result. We show flexibility in modeling with this library where different system behaviors can be observed and where models with different levels of details can be replaced depending on the application: steady-state calculation, long-term stability, or short-term stability. Joy El Feghali, Quentin Cossart, Gautier Bureau, Baptiste Letellier, Ian Menezes, Florentine Rosiere, Marco Chiaramello Copyright (c) 2023 Joy El Feghali, Quentin Cossart, Gautier Bureau, Baptiste Letellier, Ian Menezes, Florentine Rosiere, Marco Chiaramello https://creativecommons.org/licenses/by/4.0/ https://ecp.ep.liu.se/index.php/modelica/article/view/974 Fri, 22 Dec 2023 00:00:00 +0100 Dropwise CondensationWater Drainage Model https://ecp.ep.liu.se/index.php/modelica/article/view/975 Modeling of condensation is important to estimating the residual water in small channels. The residual water that forms becomes a water source for permeable materials such as wooden structure or insulation. A model has been implemented in Modelica that will predict the amount of residual moisture after a period of water build up. This model includes parameters to relate droplet physics to a control volume. The parameters provide an macroscopic means of varying droplet adhesion force, droplet velocity, and drainage dynamics. Using CFD data as an example of real world data, this model has been correlated to demonstrate the effects of the parameters. Marcus Karel Richardson, Robert Francis Kunz Copyright (c) 2023 Marcus Karel Richardson, Robert Francis Kunz https://creativecommons.org/licenses/by/4.0/ https://ecp.ep.liu.se/index.php/modelica/article/view/975 Fri, 22 Dec 2023 00:00:00 +0100 Modeling Specialized Electric Power Generators, Excitation Systems and Prime Movers used by North American Utilities https://ecp.ep.liu.se/index.php/modelica/article/view/976 The North American Electric Reliability Corporation (NERC) is expected to mandate model validation of power plant equipment in the near future. This will create a need to validate models for a large fleet of existing and future power plants. Historically, model validation of synchronous generators, excitation system, turbine governor, and other power system equipment has been conducted in diverse platforms. As a contribution to the power system model implementation using Modelica language and validation against commercial tools this work continues to develop power system component models and enriching the Open-Instance Power System Library (OpenIPSL). As a part of the development of OpenIPSL this paper describes the development of models used by North American utilities that follow NERC modeling requirements, including models of a synchronous generator, an excitation system, a turbine and governor using Modelica language in Dymola. The component implementation process is described and the validation of the models implemented in Modelica against PSS/E using both a single machine infinite bus (SMIB) and multi-machine system models is illustrated. Shamimul Islam, Giuseppe Laera, Marcelo de Castro Fernandes, Luigi Vanfretti, Chetan Mishra, Kevin D. Jones Copyright (c) 2023 Shamimul Islam, Giuseppe Laera, Marcelo de Castro Fernandes, Luigi Vanfretti, Chetan Mishra, Kevin D. Jones https://creativecommons.org/licenses/by/4.0/ https://ecp.ep.liu.se/index.php/modelica/article/view/976 Fri, 22 Dec 2023 00:00:00 +0100 Numerically Efficient Degradation Model of Catalyst Layers in PEM Fuel Cells using Modelica https://ecp.ep.liu.se/index.php/modelica/article/view/977 Degradation of the catalyst layer is a major challenge for the commercialization of polymer electrolyte membrane fuel cells (PEMFCs). Numerical modeling helps to understand and analyse the degradation phenomena, to transfer results from accelerated stress tests (ASTs) to real applications and to optimize operating conditions regarding degradation. We implemented a typical catalyst degradation model for platinum used in literature in Modelica. A numerical analysis shows the problem of “stiffness” for these models, meaning the tremendous difference in time constants. Assuming the platinum ion concentration in the ionomer to be in quasi-equilibrium helps to reduce the “stiffness”, increases simulation speed and numerical robustness without any relevant inaccuracy. For a typical AST, the simulation speed can be more than doubled ending in a real-time factor of over 1,000. Thus, 500 hours of AST can be simulated within less than 30 minutes, which gives room for extensive analysis with the model. Jakob Trägner, Steffen Heinke, Wilhelm Tegethoff, Jürgen Köhler Copyright (c) 2023 Jakob Trägner, Steffen Heinke, Wilhelm Tegethoff, Jürgen Köhler https://creativecommons.org/licenses/by/4.0/ https://ecp.ep.liu.se/index.php/modelica/article/view/977 Fri, 22 Dec 2023 00:00:00 +0100 Race Car Cooling System Model for Real Time use in a Driving Simulator https://ecp.ep.liu.se/index.php/modelica/article/view/978 Powertrain performance optimization is one of main targets in racecar and road hypercar development. A key activity needed for both endothermal and electric powertrains is the cooling system sizing through simulation to make sure that the temperature limits are not exceeded in the most aggressive conditions minimizing or avoiding power derating. This article describes the implementation of a 1D cooling system simulation model integrated with a vehicle multibody model to be used real time in the Dallara dynamic driving simulator with human driver. This activity is the result of a collaboration between Dallara which uses the model implemented to develop and optimize the cooling system architecture of its vehicles, and Claytex which develops the libraries used to generate these simulation models. Massimo Stellato, Luca Bergianti, Alessandro Picarelli Copyright (c) 2023 Massimo Stellato, Luca Bergianti, Alessandro Picarelli https://creativecommons.org/licenses/by/4.0/ https://ecp.ep.liu.se/index.php/modelica/article/view/978 Fri, 22 Dec 2023 00:00:00 +0100 Switching and Averaging Models of a Bidirectional, Half-Bridge Based DC-DC converter with Load Distribution https://ecp.ep.liu.se/index.php/modelica/article/view/979 Batteries are used in numerous applications such as mobile devices, electric vehicles, home storage systems and islanded microgrids. Bidirectional DC-DC converters are vital for the integration of batteries, for the power conversion during (dis)charge and the battery management. Modeling of these is helpful, especially for the design of larger, more complex systems consisting of multiple DC-DC converters in parallel. Due to the high switching frequencies, the simulation of DC-DC converters is associated with increased computational time and effort. In this paper, three models of different complexity and accuracy are proposed for a bidirectional DC-DC converter consisting of two phase-shifted half-bridges. Two switching models, which differ mainly in the way the mosfets are driven, account for the individual switching operations and exhibit high accuracy. An averaging model replaces the switching elements with current and voltage sources providing the mean values. It is particularly suitable for multiple components and longer simulation durations. The dynamic behavior of the models is analyzed using the step responses of the load current. For validation, these are compared with the theoretical transfer function. The three models are analyzed comparatively in terms of computational time and effort. The calculation time of the averaging model has been reduced by two thirds compared to the strictly complementary switching model and by 96% relative to the model with diode emulation mode. The averaging model requires only one third of the computation time of the complementary switching model and only 3.5% of that of the model with diode emulation. Recommendations for the use of the models are given and a possible use case is shown. Two parallel connected DC-DC converters with load current sharing between them are simulated using the averaging model. Andrea Reindl, Andreas Lang, Michael Niemetz, Hans Meier Copyright (c) 2023 Andrea Reindl, Andreas Lang, Michael Niemetz, Hans Meier https://creativecommons.org/licenses/by/4.0/ https://ecp.ep.liu.se/index.php/modelica/article/view/979 Fri, 22 Dec 2023 00:00:00 +0100 Mass Conservation in Vapor Compression Cycles: A Method for Ensuring Consistency with Redundant Dynamic States https://ecp.ep.liu.se/index.php/modelica/article/view/980 This paper describes a method to resolve a potential inconsistency when employing redundant dynamic thermofluid states for modeling of vapor compression cycles. Following a brief introduction regarding the motivation and use of redundant thermofluid states, a series of test models ranging from simple component models to complex system models are developed to illustrate the potential inconsistency with Air Conditioning Library. Based on observations of the simulation results from these test models, a method for ensuring consistency is proposed and implemented. The method is then demonstrated on the test suite and evaluated for effectiveness, robustness, and computational efficiency. Daniel Andersson, John Batteh, Matthis Thorade, Lixiang Li Copyright (c) 2023 Daniel Andersson, John Batteh, Matthis Thorade, Lixiang Li https://creativecommons.org/licenses/by/4.0/ https://ecp.ep.liu.se/index.php/modelica/article/view/980 Fri, 22 Dec 2023 00:00:00 +0100