Skip to main content

Formalising Cosimulation Models

  • Conference paper
  • First Online:
Software Engineering and Formal Methods (SEFM 2017)

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

Included in the following conference series:

Abstract

Cosimulation techniques are popular in the design and early testing of cyber-physical systems. Such systems are typically composed of heterogeneous components and specified using a variety of languages and tools; this makes their formal analysis beyond simulation challenging. We here present work on formalised models and proofs about cosimulations in our theorem prover Isabelle/UTP, illustrated by an industrial case study from the railways sector. Novel contributions are a mechanised encoding of the FMI framework for cosimulation, simplification and translation of (case-study) models into languages supported by our proof system, and an encoding of an FMI instantiation.

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

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 84.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 107.00
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

References

  1. Modelica Association: Functional Mock-up Interface for Model Exchange and Co-Simulation. Technical Report Document Version 2.0, Linköping University (Sweden), July 2014. http://fmi-standard.org/downloads/

  2. Cavalcanti, A., Sampaio, A., Woodcock, J.: A refinement strategy for \({ Circus}\). Form. Asp. Comput. 15(2), 146–181 (2003)

    Article  MATH  Google Scholar 

  3. Cavalcanti, A., Woodcock, J., Amálio, N.: Behavioural models for FMI co-simulations. In: Sampaio, A., Wang, F. (eds.) ICTAC 2016. LNCS, vol. 9965, pp. 255–273. Springer, Cham (2016). https://doi.org/10.1007/978-3-319-46750-4_15

    Chapter  Google Scholar 

  4. Chaochen, Z., Hoare, T., Ravn, A.P.: A calculus of durations. Inf. Process. Lett. 40(5), 269–276 (1991)

    Article  MathSciNet  MATH  Google Scholar 

  5. Broman, D., et al.: Determinate composition of FMUs for co-simulation. In: Proceedings of EMSOFT 2013, pp. 2:1–2:12. IEEE Press, September 2013

    Google Scholar 

  6. Larsen, P.G., et al.: Tutorial for Overture/VDM-RT. Technical Report TR-005, September 2015. http://overturetool.org/documentation/tutorials.html

  7. Blochwitz, T., et al.: The functional mockup interface for tool independent exchange of simulation models. In: Proceedings of the 8th International Modelica Conference (2011)

    Google Scholar 

  8. Foster, S., Cavalcanti, A., Canham, S., Pierce, K., Woodcock, J.: Final Semantics of VDM-RT. Deliverable 2.2b, INTO-CPS Project, H2020 Grant 644047, December 2016. http://projects.au.dk/fileadmin/D2.2b_Final_VDM-RT_Semantics.pdf

  9. Foster, S., Thiele, B., Cavalcanti, A., Woodcock, J.: Towards a UTP semantics for modelica. In: Bowen, J.P., Zhu, H. (eds.) UTP 2016. LNCS, vol. 10134, pp. 44–64. Springer, Cham (2017). https://doi.org/10.1007/978-3-319-52228-9_3

    Chapter  Google Scholar 

  10. Foster, S., Zeyda, F., Woodcock, J.: Isabelle/UTP: a mechanised theory engineering framework. In: Naumann, D. (ed.) UTP 2014. LNCS, vol. 8963, pp. 21–41. Springer, Cham (2015). https://doi.org/10.1007/978-3-319-14806-9_2

    Google Scholar 

  11. Gomes, C., Thule, C., Broman, D., Larsen, P.G., Vangheluwe, H.: Co-simulation: state of the art. ArXiv e-prints, arXiv:1702.00686, February 2017

  12. Jifeng, H., Qin, L.: A hybrid relational modelling language. In: Gibson-Robinson, T., Hopcroft, P., Lazić, R. (eds.) Concurrency, Security, and Puzzles. LNCS, vol. 10160, pp. 124–143. Springer, Cham (2017). https://doi.org/10.1007/978-3-319-51046-0_7

    Chapter  Google Scholar 

  13. Hoare, T.: Communicating Sequential Processes. Prentice-Hall, Upper Saddle River (1985)

    MATH  Google Scholar 

  14. Immler, F., Hölzl, J.: Numerical analysis of ordinary differential equations in Isabelle/HOL. In: Beringer, L., Felty, A. (eds.) ITP 2012. LNCS, vol. 7406, pp. 377–392. Springer, Heidelberg (2012). https://doi.org/10.1007/978-3-642-32347-8_26

    Chapter  Google Scholar 

  15. Iugan, L.G., Boucheneb, H., Nicolescu, G.: A generic conceptual framework based on formal representation for the design of continuous/discrete co-simulation tools. Des. Autom. Embed. Syst. 19(3), 243–275 (2015)

    Article  Google Scholar 

  16. Jones, C.B.: Systematic Software Development using VDM. Prentice-Hall, Upper Saddle River (1990)

    MATH  Google Scholar 

  17. Lausdahl, K., Verhoef, M., Larsen, P.G., Wolff, S.: Overview of VDM-RT constructs and semantic issues. In Proceedings of the 8th Overture Workshop, CS-TR, vol. 1224, pp. 57–67, September 2010

    Google Scholar 

  18. Modelica Association: Modelica® – A Unified Object-Oriented Language for Systems Modeling, Language Specification, Version 3.4, April 2017. https://www.modelica.org/documents/

  19. Morgan, C.: Programming from Specifications. Prentice-Hall, Upper Saddle River (1996)

    MATH  Google Scholar 

  20. Petzold, L.: Differential/algebraic equations are not ODEs. SIAM J. Sci. Stat. Comput. 3(3), 367–384 (1982)

    Article  MathSciNet  MATH  Google Scholar 

  21. van Amerongen, J., Kleijn, C., Gamble, C.: Continuous-time modelling in 20-sim. In: Fitzgerald, J., Larsen, P.G., Verhoef, M. (eds.) Collaborative Design for Embedded Systems, pp. 27–59. Springer, Heidelberg (2014). https://doi.org/10.1007/978-3-642-54118-6_3

    Chapter  Google Scholar 

  22. Woodcock, J., Davies, J.: Using Z: Specification, Refinement, and Proof. Prentice-Hall, Upper Saddle River (1996)

    MATH  Google Scholar 

  23. Zeyda, F., Foster, S., Cavalcanti, A.: Mechanisation of the FMI. Technical report, University of York, UK, June 2017. https://github.com/isabelle-utp/utp-main/blob/master/fmi/fmi_report.pdf

Download references

Acknowledgement

We would like to thank the anonymous reviewers for their valuable comments. The work was funded by the INTO-CPS EC grant 644047.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Frank Zeyda .

Editor information

Editors and Affiliations

A Constructs

A Constructs

Summary of constructs used in our models in the Figs. 2 and 4.

Table 1. Overview of relevant operators on actions.

Rights and permissions

Reprints and permissions

Copyright information

© 2018 Springer International Publishing AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Zeyda, F., Ouy, J., Foster, S., Cavalcanti, A. (2018). Formalising Cosimulation Models. In: Cerone, A., Roveri, M. (eds) Software Engineering and Formal Methods. SEFM 2017. Lecture Notes in Computer Science(), vol 10729. Springer, Cham. https://doi.org/10.1007/978-3-319-74781-1_31

Download citation

  • DOI: https://doi.org/10.1007/978-3-319-74781-1_31

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-319-74780-4

  • Online ISBN: 978-3-319-74781-1

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics