Current Organizations / Institutes

The organizations/institutes from the scholar's latest article


John Tinnerholm has a total of 15 co-authors. Here are the top co-authors by number of shared publications:


Latest Publications

  • Open Access

    Dynamic and Variable-Structure System Modeling for Equation-Based Languages : Applications, Methods and Tools

    by John Tinnerholm

    Modeling and simulation are used to solve real-world problems safely and efficiently. For example, we can conduct simulations and analyze the results by constructing digital models of cyber-physica ...

  • Open Access

    Proposal for A Context-oriented Modelica Contributing to Variable Structure Systems

    by Zizhe Wang, Manuel Krombholz, Uwe Aßmann, John Tinnerholm, Christian Gutsche, Volodymyr Prokopets, Sebastian Götz

    Context-aware systems are widespread in our daily lives, but modeling languages that address the notion of context are rare. Variable structure systems (VSS) allow for structural and behavioral changes in physical models at runtime (while the simulation is running) based on different situations. It is desirable to explicitly describe under which contextual situation a specific variant of the simulation model should be used and how to implement the switching between these variants at runtime. In this case, contexts could be used to control the variability of context-aware systems. Equation-based modeling languages are suitable for modeling complex multi-domain, multi-physical systems, and among them, Modelica is the state-of-the-art. Unfortunately, the capabilities for VSS in Modelica are strongly limited. As a result, several frameworks have been proposed to address this problem by supporting different VSS types. However, it remains unclear which framework contributes to which VSS type. Furthermore, approaches have been developed to support VSS, but none can explicitly describe contexts and their transitions. In this work, we first introduce VSS and its different types. Then, we provide an overview of which framework targets which VSS type. Finally, we propose a new language extension based on Modelica, ContextModelica, that provides semantics for the direct context definition, enabling the use of context to control and manage variability.


  • Open Access

    High-Level Programming of FPGA-Accelerated Systems with Parallel Patterns

    by Björn Birath, August Ernstsson, John Tinnerholm, Christoph Kessler

    As a result of frequency and power limitations, multi-core processors and accelerators are becoming more and more prevalent in today’s systems. To fully utilize such systems, heterogeneous parallel programming is needed, but this introduces new complexities to the development. High-level frameworks such as SkePU have been introduced to help alleviate these complexities. SkePU is a skeleton programming framework based on a set of programming constructs implementing computational parallel patterns, while presenting a sequential interface to the programmer. Using the various skeleton backends, SkePU programs can execute, without source code modification, on multiple types of hardware such as CPUs, GPUs, and clusters. This paper presents the design and implementation of a new backend for SkePU, adding support for FPGAs. We also evaluate the effect of FPGA-specific optimizations in the new backend and compare it with the existing GPU backend, where the actual devices used are of similar vintage and price point. For simple examples, we find that the FPGA-backend’s performance is similar to that of the existing backend for GPUs, while it falls behind in more complex tasks. Finally, some shortcomings in the backend are highlighted and discussed, along with potential solutions.


  • Open Access

    A Semi-Automatic Translator from System Dynamics to Modelica with Application to Socio-Bio-Physical Systems

    by John Tinnerholm, Mariano Zapatero, Adrian Pop, Peter Fritzson, Rodrigo Castro

    System Dynamics is a modelling paradigm that has been applied to a wide range of systems, from economic to physical and from managerial to ecological. The main strength of the paradigm is its ease of use. A System Dynamics modeller does not need to focus on equations; instead, models are expressed in terms of stocks and flows. Modelica, on the other hand, is an equation-based modelling language capable of multi-domain modelling using equations. It gives the user more freedom but requires more mathematical focus and skills. Therefore, a unification of equation-based modelling and the System Dynamics paradigm is seen as highly beneficial. Advantages include the ability for System Dynamics modellers to use the tools available in the Modelica ecosystem. Furthermore, it allows the integration of System Dynamics models into Modelica models. To achieve this goal, we developed an XMILE-to-Modelica translator that maps System Dynamics models represented in the XMILE standard exchange format to Modelica models. We also applied a Modelica-to-Julia translator to demonstrate the generality of the approach.We translated several models to test the correctness of the translator. In particular, the Earth System Climate Interpretable Model (ESCIMO) was translated from its original version in the Vensim toolkit into the OpenModelica toolkit, and a correct validation was obtained by comparing simulation results between simulators. Our work improves tool interoperability and further demonstrates the feasibility of using Modelica as a unified, standard language to integrate models created using System Dynamics, including large and complex socio-biophysical systems.


  • A Composable and Extensible Environment for Equation-based Modeling and Simulation of Variable Structured Systems in Modelica

    by John Tinnerholm

    Modeling and Simulation are usually used to solve real-world problems safely and efficiently by constructing digital models of Cyber-Physical Systems. The models can be simulated and analyzed with r ...


  • Open Access

    A Modular, Extensible, and Modelica-Standard-Compliant OpenModelica Compiler Framework in Julia Supporting Structural Variability

    by John Tinnerholm, Adrian Pop, Martin Sjölund

    Nowadays, industrial products are getting increasingly complex, and time-to-market is significantly shorter. Modeling and simulation tools for cyber-physical systems need to keep up with the increased complexity. This paper presents OpenModelica.jl, a modular and extensible Modelica compiler framework in Julia targeting ModelingToolkit.jl and supporting Variable Structured Systems. We extended the Modelica language with three new operators to support continuous-time mode-switching and reconfiguration via recompilation at runtime. Therefore, our compiler supports the Modelica language and variable structure systems via the aforementioned extensions. To our knowledge, there are no other Modelica tools available that support both standard Modelica and variable structure systems. We evaluated our framework using a standardized benchmark suite, in terms of simulation, compilation and recompilation performance. The results concerning compilation and simulation time performance were compared with the results of running the existing OpenModelica compiler with the same set of models. A custom benchmark was devised to estimate the cost in terms of recompilation when simulating variable structure systems. The performance experiments showed that OpenModelica.jl is currently about four times slower in terms of compilation time when compiling a transmission line model with tens of thousands of equations and variables. The difference in simulation performance between the two compilers was negligable. Furthermore, the impact of recompilation during the simulation was usually small compared with the simulation time for long simulations. The results are promising for a prototype, and we outline approaches to further improve both compilation and simulation performance as future research.