pgFMU: Integrating Data Management with Physical System Modelling

By expressing physical laws and control strategies, interoperable physical system models such as Functional Mock-up Units (FMUs) are playing a major role in designing, simulating, and evaluating complex (cyber-)physical systems. However, existing FMU simulation software environments require significant user/developer effort when such models need to be tightly integrated with actual data from a database and/or model simulation results need to be stored in a database, e.g., as a part of larger user analytical workflows. Hence, users encounter substantial complexity and overhead when using such physical models to solve analytical problems based on real data. To address this issue, this paper proposes pgFMU an extension to the relational database management system PostgreSQL for integrating and conveniently using FMU-based physical models inside a database environment. pgFMU reduces the complexity in specifying (and executing) analytical workflows based on such simulation models (requiring on average 22x fewer code lines) while maintaining improved overall execution performance (up to 8.43x faster for multi-instance scenarios) due to the optimization techniques and integration between database and an FMU library. With pgFMU, cyber-physical data scientists are able to develop a typical FMU workflow up to 11.74x faster than using the standard FMU software stack. When combined with an existing in-DBMS analytics tool, pgFMU can increase the accuracy of Machine Learning models by up to 21.1%.

[1]  Torben Bach Pedersen,et al.  SolveDB: Integrating Optimization Problem Solvers Into SQL Databases , 2016, SSDBM.

[2]  Johan Åkesson,et al.  JModelica---an Open Source Platform for Optimization of Modelica Models , 2009 .

[3]  Eamonn J. Keogh,et al.  Experimental comparison of representation methods and distance measures for time series data , 2010, Data Mining and Knowledge Discovery.

[4]  Michael Wetter,et al.  An FMI-based Framework for State and Parameter Estimation , 2014 .

[5]  Wes McKinney,et al.  Python for Data Analysis , 2012 .

[6]  Michael Wetter,et al.  ModestPy: An Open-Source Python Tool for Parameter Estimation in Functional Mock-up Units , 2018, Proceedings of The American Modelica Conference 2018, October 9-10, Somberg Conference Center, Cambridge MA, USA.

[7]  José M. F. Moura,et al.  Modeling of Future Cyber–Physical Energy Systems for Distributed Sensing and Control , 2010, IEEE Transactions on Systems, Man, and Cybernetics - Part A: Systems and Humans.

[8]  Johan Åkesson,et al.  Assimulo: A unified framework for ODE solvers , 2015, Math. Comput. Simul..

[9]  Bruce Momjian,et al.  PostgreSQL: Introduction and Concepts , 2000 .

[10]  T. Chai,et al.  Root mean square error (RMSE) or mean absolute error (MAE)? – Arguments against avoiding RMSE in the literature , 2014 .

[11]  Johan Åkesson,et al.  PyFMI: A Python Package for Simulation of Coupled Dynamic Models with the Functional Mock-up Interface , 2016 .

[12]  Krzysztof Arendt,et al.  MShoot: an Open Source Framework for Multiple Shooting MPC in Buildings , 2019 .

[13]  Adrian Pop,et al.  OpenModelica - A free open-source environment for system modeling, simulation, and teaching , 2006, 2006 IEEE Conference on Computer Aided Control System Design, 2006 IEEE International Conference on Control Applications, 2006 IEEE International Symposium on Intelligent Control.

[14]  Peter Fritzson,et al.  Modelica - a general object-oriented language for continuous and discrete-event system modeling and simulation , 2002, Proceedings 35th Annual Simulation Symposium. SS 2002.

[15]  Dan Suciu,et al.  Tiresias: the database oracle for how-to queries , 2012, SIGMOD Conference.

[16]  Torben Bach Pedersen,et al.  Prescriptive analytics: a survey of emerging trends and technologies , 2019, The VLDB Journal.

[17]  Kun Li,et al.  The MADlib Analytics Library or MAD Skills, the SQL , 2012, Proc. VLDB Endow..