Abstract
Physical systems can be naturally modeled by combining continuous and discrete models. Such hybrid models may simplify the modeling task of complex system, as well as increase simulation performance. Moreover, modern simulation engines can often efficiently generate simulation traces, but how do we know that the simulation results are correct? If we detect an error, is the error in the model or in the simulation itself? This paper discusses the problem of simulation safety, with the focus on hybrid modeling and simulation. In particular, two key aspects are studied: safe zero-crossing detection and deterministic hybrid event handling. The problems and solutions are discussed and partially implemented in Modelica and Ptolemy II.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Similar content being viewed by others
Notes
- 1.
All examples in the paper are available here: http://www.modelyze.org/limbo.
References
Alur, R., Courcoubetis, C., Henzinger, T.A., Ho, P.-H.: Hybrid automata: an algorithmic approach to the specification and verification of hybrid systems. In: Grossman, R.L., Nerode, A., Ravn, A.P., Rischel, H. (eds.) HS 1991–1992. LNCS, vol. 736, pp. 209–229. Springer, Heidelberg (1993). https://doi.org/10.1007/3-540-57318-6_30
Bourke, T., Pouzet, M.: Zélus: a synchronous language with ODEs. In: Proceedings of the 16th International Conference on Hybrid Systems: Computation and Control (HSCC), pp. 113–118. ACM (2013)
Broman, D., Fritzson, P., Furic, S.: Types in the Modelica language. In: Proceedings of the Fifth International Modelica Conference, Vienna, Austria, pp. 303–315 (2006)
Broman, D., Greenberg, L., Lee, E.A., Masin, M., Tripakis, S., Wetter, M.: Requirements for hybrid cosimulation standards. In: Proceedings of 18th ACM International Conference on Hybrid Systems: Computation and Control (HSCC), pp. 179–188. ACM (2015)
Broman, D., Siek, J.G.: Modelyze: a gradually typed host language for embedding equation-based modeling languages. Technical Report UCB/EECS-2012-173, EECS Department, University of California, Berkeley (2012)
Cardelli, L.: Type systems. In: The Computer Science and Engineering Handbook, chap. 97. 2 edn. (2004)
Cellier, F.E.: Continuous System Modeling. Springer, New York (1991). https://doi.org/10.1007/978-1-4757-3922-0
Cremona, F., Lohstroh, M., Broman, D., Lee, E.A., Masin, M., Tripakis, S.: Hybrid co-simulation: it’s about time. Softw. Syst. Model. 17, 1–25 (2017)
Fritzson, P., Aronsson, P., Lundvall, H., Nyström, K., Pop, A., Saldamli, L., Broman, D.: The OpenModelica modeling, simulation, and software development environment. Simul. News Europe 15(44/45), 8–16 (2005)
Golomb, S.W.: Mathematical models: uses and limitations. IEEE Trans. Reliab. 20(3), 130–131 (1971)
Johansson, K.H., Egerstedt, M., Lygeros, J., Sastry, S.: On the regularization of Zeno hybrid automata. Syst. Control Lett. 38(3), 141–150 (1999)
Lee, E.A.: Constructive models of discrete and continuous physical phenomena. IEEE Access 2, 797–821 (2014)
Lee, E.A.: Fundamental limits of cyber-physical systems modeling. ACM Trans. Cyber-Phys. Syst. 1(1), 3 (2016)
Modelica Association: Modelica - a unified object-oriented language for physical systems modeling - language specification version 3.4 (2017). http://www.modelica.org
Nilsson, H., Peterson, J., Hudak, P.: Functional hybrid modeling. In: Dahl, V., Wadler, P. (eds.) PADL 2003. LNCS, vol. 2562, pp. 376–390. Springer, Heidelberg (2003). https://doi.org/10.1007/3-540-36388-2_25
Ptolemaeus, C. (ed.): System Design, Modeling, and Simulation using Ptolemy II. Ptolemy.org, London (2014). http://ptolemy.org/books/Systems
Tiller, M.M.: Modelica by Example. Online book (2017). http://book.xogeny.com/. Accessed 9 Sept 2017
Acknowledgments
I would like to thank Edward for the really great collaboration we have had over the years. And, congratulations on your birthday! I would also like to thank Cludio Gomes, Oscar Eriksson, and the anonymous reviewers for many useful comments. Finally, I would like to acknowledge and thank Bernhard Rumpe for pointing out the connection between nondeterminism in models and underspecification.
This project is financially supported by the Swedish Foundation for Strategic Research (FFL15-0032).
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2018 Springer International Publishing AG, part of Springer Nature
About this chapter
Cite this chapter
Broman, D. (2018). Hybrid Simulation Safety: Limbos and Zero Crossings. In: Lohstroh, M., Derler, P., Sirjani, M. (eds) Principles of Modeling. Lecture Notes in Computer Science(), vol 10760. Springer, Cham. https://doi.org/10.1007/978-3-319-95246-8_7
Download citation
DOI: https://doi.org/10.1007/978-3-319-95246-8_7
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-319-95245-1
Online ISBN: 978-3-319-95246-8
eBook Packages: Computer ScienceComputer Science (R0)