Conference article

FMU-proxy: A Framework for Distributed Access to Functional Mock-up Units

Lars Ivar Hatledal
Department of Ocean Operations and Civil Engineering, NTNU, Norway

Houxiang Zhang
Department of Ocean Operations and Civil Engineering, NTNU, Norway

Arne Styve
Department of ICT and Natural Sciences, NTNU, Norway

Geir Hovland
Department of Engineering Sciences, UiA, Norway

Download articlehttp://dx.doi.org/10.3384/ecp1915779

Published in: Proceedings of the 13th International Modelica Conference, Regensburg, Germany, March 4–6, 2019

Linköping Electronic Conference Proceedings 157:8, p. 8

Show more +

Published: 2019-02-01

ISBN: 978-91-7685-122-7

ISSN: 1650-3686 (print), 1650-3740 (online)

Abstract

The main goal of the Functional Mock-up Interface (FMI) standard is to allow simulation models to be shared across tools. To accomplish this, FMI relies on a combination of XML-files and compiled C-code packaged in a zip archive. This archive is called an Functional Mock-up Unit (FMU) and uses the extension .fmu. In theory, an FMU can support multiple platforms, however this is not always the case and depends on the type of binaries the exporting tool was able to provide. Furthermore, a library providing FMI support may not be available in a particular language, and/or it may not support the whole standard. Another issue is related to the protection of Intellectual Property (IP). While an FMU is free to only provide the C-code in binary form, other resources shipped with the FMU may be unprotected.

In order to overcome these challenges, this paper presents FMU-proxy, an open-source framework for accessing FMUs across languages and platforms. This is done by wrapping one or more FMUs behind a server program supporting multiple language independent Remote Procedure Call (RPC) technologies over several network protocols. Currently, Apache Thrift (TCP/IP, HTTP), gRPC (HTTP/2) and JSON-RPC (HTTP, WebSockets, TPC/IP, ZeroMQ) are supported. Together, they allow FMUs to be invoked from virtually any language on any platform. As users don’t have direct access to the FMU or the resources within it, IP is more effectively protected.

Keywords

RPC, FMI, Co-simulation, Model Exchange

References

No references available

Citations in Crossref