Skip to main content
Log in

Parallel simulation of cyber-physical systems

  • S.I. : Verifiability in Systems and Data Engineering
  • Published:
Innovations in Systems and Software Engineering Aims and scope Submit manuscript

Abstract

Model-based design (MBD) in systems engineering is a well-accepted technique to abstract, analyze, verify, and validate complex systems. In MBD, we design a mathematical model of the system to virtually execute and test systems via model simulations to understand the system dynamics better. Computing model simulations has their challenges; one is to ensure that the simulation trajectory preserves the model semantics. Besides, computing many simulation trajectories over a long time-horizon must be time efficient for rapid respond to system engineers. In this work, we address these challenges in simulating models of cyber-physical systems (CPS), particularly systems possessing mixed discrete–continuous dynamics. We focus on the subclass of CPS’s hybrid automata models, where Jump predicates are restricted to polygonal constraints and present a numerical simulation engine that can efficiently compute many random simulations in parallel by exploiting the parallel computing capability in modern multicore processors. Our simulation engine implements a lock-free parallel breadth-first-search (BFS)-like algorithm and is implemented in the model-checking tool XSpeed. In addition, an application of our simulation engine in property verification of CPS models has been illustrated on two benchmarks. Some model coverage metrics have been defined that users of the tool can specify to set the desired thoroughness of testing with simulations. We demonstrate the performance gains of our simulation engine over SpaceEx and CORA, the modern model checkers and simulators for affine hybrid systems.

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

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Fig. 1
Fig. 2
Fig. 3
Fig. 4
Fig. 5
Fig. 6
Fig. 7
Fig. 8
Fig. 9

Similar content being viewed by others

References

  1. Mathworks: Types of Model Coverage. https://in.mathworks.com/help/slcoverage/ug/types-of-model-coverage.html

  2. Althoff M (2010) Reachability analysis and its application to the safety assessment of autonomous cars. PhD thesis, Technische Universität München

  3. Althoff M, Bak S, Bao Z, Forets M, Frehse G, Freire D, Kochdumper N, Li Y, Mitra S, Ray R, Schilling C, Schupp S, Wetzlinger M (2020) Arch-comp20 category report: continuous and hybrid systems with linear continuous dynamics. In: Frehse G, Althoff M (eds) ARCH20. 7th international workshop on applied verification of continuous and hybrid systems (ARCH20). EPiC series in computing, vol 74, pp 16–48. EasyChair. doi: https://doi.org/10.29007/7dt2,https://easychair.org/publications/paper/DRpS

  4. Althoff M, Grebenyuk D (2016) Implementation of interval arithmetic in cora 2016. In: ARCH@ CPSWeek, pp 91–105

  5. Alur R (2015) Principles of cyber-physical systems. MIT Press, Cambridge

    Google Scholar 

  6. Alur R, Courcoubetis C, Henzinger TA, Ho PH (1992) Hybrid automata: an algorithmic approach to the specification and verification of hybrid systems. In: Hybrid systems. Springer, pp 209–229

  7. Alur R, Dill DL (1994) A theory of timed automata. Theor Comput Sci 126(2):183–235

    Article  MathSciNet  Google Scholar 

  8. Ammann P, Offutt J (2016) Introduction to software testing. Cambridge University Press, Cambridge

    Book  Google Scholar 

  9. Antoulas AC, Sorensen DC, Gugercin S (2001) A survey of model reduction methods for large-scale systems. Contemp Math 280:193–219

    Article  MathSciNet  Google Scholar 

  10. Bak S, Duggirala PS (2017) Hylaa: a tool for computing simulation-equivalent reachability for linear systems. In: Proceedings of the 20th international conference on hybrid systems: computation and control, pp 173–178. ACM

  11. Brand D, Zafiropulo P (1983) On communicating finite-state machines. J ACM (JACM) 30(2):323–342

    Article  MathSciNet  Google Scholar 

  12. Coddington EA, Levinson N (1955) Theory of ordinary differential equations. Tata McGraw-Hill Education, New York

    MATH  Google Scholar 

  13. Damm W, Harel D (2001) Lscs: breathing life into message sequence charts. Form Methods Syst Des 19(1):45–80

    Article  Google Scholar 

  14. Donze A (2010) Breach: a toolbox for verification and parameter synthesis of hybrid systems. In: Computer-aided verification, pp 167–170

  15. Duggirala PS, Mitra S, Viswanathan M, Potok M (2015) C2e2: a verification tool for stateflow models. In: International conference on tools and algorithms for the construction and analysis of systems, pp 68–82. Springer

  16. Fehnker A, Ivancic F (2004) Benchmarks for hybrid systems verification. In: HSCC, vol 4, pp 326–341. Springer

  17. Frehse G, Le Guernic C, Donzé A, Cotton S, Ray R, Lebeltel O, Ripado R, Girard A, Dang T, Maler O (2011) SpaceEx: scalable verification of hybrid systems. In: Proceedings of CAV. LNCS, vol 6806, pp 379–395. Springer

  18. Gurung A, Deka A, Bartocci E, Bogomolov S, Grosu R, Ray R (2016) Parallel reachability analysis for hybrid systems. In: 2016 ACM/IEEE international conference on formal methods and models for system design (MEMOCODE), pp 12–22. IEEE

  19. Gurung A, Ray R, Bartocci E, Bogomolov S, Grosu R (2018) Parallel reachability analysis of hybrid systems in XSpeed. Int J Softw Tools Technol Transf 1–23

  20. Hainry E (2008) Reachability in linear dynamical systems. In: Conference on computability in Europe, pp 241–250. Springer

  21. Henzinger TA (2000) The theory of hybrid automata. In: Verification of digital and hybrid systems, pp 265–292. Springer

  22. Holzmann GJ (2012) Parallelizing the SPIN model checker. In: Proceedings of SPIN 2012. LNCS, vol 7385, pp 155–171. Springer

  23. Jensen JC, Chang DH, Lee EA (2011) A model-based design methodology for cyber-physical systems. In: 2011 7th international wireless communications and mobile computing conference, pp 1666–1671. IEEE

  24. Jin X, Deshmukh JV, Kapinski J, Ueda K, Butts K (2014) Powertrain control verification benchmark. In: Proceedings of the 17th international conference on Hybrid systems: computation and control, pp 253–262. ACM

  25. Lee EA, Seshia SA (2016) Introduction to embedded systems: a cyber-physical systems approach. Mit Press, Cambridge

    MATH  Google Scholar 

  26. Lygeros J, Tomlin C, Sastry S (1999) Hybrid systems: modeling, analysis and control, preprint

  27. Makhlouf IB, Kowalewski S (2014) Networked cooperative platoon of vehicles for testing methods and verification tools. In: ARCH@ CPSWeek, pp 37–42

  28. Mathworks: Model-Based Design (2020), https://www.mathworks.com/solutions/model-based-design.html

  29. Paterno F (1999) Model-based design and evaluation of interactive applications. Springer, Berlin

    MATH  Google Scholar 

  30. Ray R, Gurung A, Das B, Bartocci E, Bogomolov S, Grosu R (2015) XSpeed: accelerating reachability analysis on multi-core processors. In: Piterman N (ed) Hardware and software: verification and testing - 11th international Haifa verification conference, HVC 2015, Haifa, Israel, November 17–19, 2015, Proceedings. Lecture Notes in Computer Science, vol. 9434, pp. 3–18. Springer. https://doi.org/10.1007/978-3-319-26287-1_1,

  31. Reisig W (2012) Petri nets: an introduction, vol 4. Springer, Berlin

    MATH  Google Scholar 

  32. Serban R, Hindmarsh AC (2005) Cvodes: the sensitivity-enabled ode solver in sundials. In: ASME 2005 international design engineering technical conferences and computers and information in engineering conference, pp 257–269. American Society of Mechanical Engineers

  33. Skogestad S, Postlethwaite I (2005) Multivariable feedback control: analysis and design. Wiley, New York

    MATH  Google Scholar 

  34. Strathmann T, Oehlerking J (2015) Verifying properties of an electro-mechanical braking system. In: ARCH@ CPSWeek, pp 49–56

  35. Zutshi A, Sankaranarayanan S, Deshmukh JV, Kapinski J (2013) A trajectory splicing approach to concretizing counterexamples for hybrid systems. In: Proceedings of the 52nd IEEE conference on decision and control, CDC 2013, December 10–13, 2013, pp 3918–3925

Download references

Acknowledgements

Rajarshi Ray gratefully acknowledges financial support from the Science and Engineering Research Board (SERB) project with file number IMP/2018/000523. Amit Gurung is grateful to Martin Luther Christian University, Shillong, Meghalaya, for partially supporting the work under Project Grant No. Seed-Grant/559/2017-5567.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Kamal Das.

Additional information

Publisher's Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Rights and permissions

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Das, K., Gurung, A. & Ray, R. Parallel simulation of cyber-physical systems. Innovations Syst Softw Eng 17, 319–331 (2021). https://doi.org/10.1007/s11334-021-00391-w

Download citation

  • Received:

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s11334-021-00391-w

Keywords

Navigation