Skip to main content

Hybrid Simulation Safety: Limbos and Zero Crossings

  • Chapter
  • First Online:
Principles of Modeling

Part of the book series: Lecture Notes in Computer Science ((LNPSE,volume 10760))

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.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

eBook
USD 16.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Similar content being viewed by others

Notes

  1. 1.

    All examples in the paper are available here: http://www.modelyze.org/limbo.

References

  1. 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

    Chapter  Google Scholar 

  2. 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)

    Google Scholar 

  3. 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)

    Google Scholar 

  4. 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)

    Google Scholar 

  5. 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)

    Google Scholar 

  6. Cardelli, L.: Type systems. In: The Computer Science and Engineering Handbook, chap. 97. 2 edn. (2004)

    Google Scholar 

  7. Cellier, F.E.: Continuous System Modeling. Springer, New York (1991). https://doi.org/10.1007/978-1-4757-3922-0

    Book  MATH  Google Scholar 

  8. 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)

    Google Scholar 

  9. 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)

    Google Scholar 

  10. Golomb, S.W.: Mathematical models: uses and limitations. IEEE Trans. Reliab. 20(3), 130–131 (1971)

    Article  Google Scholar 

  11. Johansson, K.H., Egerstedt, M., Lygeros, J., Sastry, S.: On the regularization of Zeno hybrid automata. Syst. Control Lett. 38(3), 141–150 (1999)

    Article  MathSciNet  Google Scholar 

  12. Lee, E.A.: Constructive models of discrete and continuous physical phenomena. IEEE Access 2, 797–821 (2014)

    Article  Google Scholar 

  13. Lee, E.A.: Fundamental limits of cyber-physical systems modeling. ACM Trans. Cyber-Phys. Syst. 1(1), 3 (2016)

    Article  Google Scholar 

  14. Modelica Association: Modelica - a unified object-oriented language for physical systems modeling - language specification version 3.4 (2017). http://www.modelica.org

  15. 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

    Chapter  Google Scholar 

  16. Ptolemaeus, C. (ed.): System Design, Modeling, and Simulation using Ptolemy II. Ptolemy.org, London (2014). http://ptolemy.org/books/Systems

    Google Scholar 

  17. Tiller, M.M.: Modelica by Example. Online book (2017). http://book.xogeny.com/. Accessed 9 Sept 2017

Download references

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

Authors

Corresponding author

Correspondence to David Broman .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2018 Springer International Publishing AG, part of Springer Nature

About this chapter

Check for updates. Verify currency and authenticity via CrossMark

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)

Publish with us

Policies and ethics