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.
Similar content being viewed by others
Explore related subjects
Discover the latest articles, news and stories from top researchers in related subjects.References
Mathworks: Types of Model Coverage. https://in.mathworks.com/help/slcoverage/ug/types-of-model-coverage.html
Althoff M (2010) Reachability analysis and its application to the safety assessment of autonomous cars. PhD thesis, Technische Universität München
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
Althoff M, Grebenyuk D (2016) Implementation of interval arithmetic in cora 2016. In: ARCH@ CPSWeek, pp 91–105
Alur R (2015) Principles of cyber-physical systems. MIT Press, Cambridge
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
Alur R, Dill DL (1994) A theory of timed automata. Theor Comput Sci 126(2):183–235
Ammann P, Offutt J (2016) Introduction to software testing. Cambridge University Press, Cambridge
Antoulas AC, Sorensen DC, Gugercin S (2001) A survey of model reduction methods for large-scale systems. Contemp Math 280:193–219
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
Brand D, Zafiropulo P (1983) On communicating finite-state machines. J ACM (JACM) 30(2):323–342
Coddington EA, Levinson N (1955) Theory of ordinary differential equations. Tata McGraw-Hill Education, New York
Damm W, Harel D (2001) Lscs: breathing life into message sequence charts. Form Methods Syst Des 19(1):45–80
Donze A (2010) Breach: a toolbox for verification and parameter synthesis of hybrid systems. In: Computer-aided verification, pp 167–170
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
Fehnker A, Ivancic F (2004) Benchmarks for hybrid systems verification. In: HSCC, vol 4, pp 326–341. Springer
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
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
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
Hainry E (2008) Reachability in linear dynamical systems. In: Conference on computability in Europe, pp 241–250. Springer
Henzinger TA (2000) The theory of hybrid automata. In: Verification of digital and hybrid systems, pp 265–292. Springer
Holzmann GJ (2012) Parallelizing the SPIN model checker. In: Proceedings of SPIN 2012. LNCS, vol 7385, pp 155–171. Springer
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
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
Lee EA, Seshia SA (2016) Introduction to embedded systems: a cyber-physical systems approach. Mit Press, Cambridge
Lygeros J, Tomlin C, Sastry S (1999) Hybrid systems: modeling, analysis and control, preprint
Makhlouf IB, Kowalewski S (2014) Networked cooperative platoon of vehicles for testing methods and verification tools. In: ARCH@ CPSWeek, pp 37–42
Mathworks: Model-Based Design (2020), https://www.mathworks.com/solutions/model-based-design.html
Paterno F (1999) Model-based design and evaluation of interactive applications. Springer, Berlin
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,
Reisig W (2012) Petri nets: an introduction, vol 4. Springer, Berlin
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
Skogestad S, Postlethwaite I (2005) Multivariable feedback control: analysis and design. Wiley, New York
Strathmann T, Oehlerking J (2015) Verifying properties of an electro-mechanical braking system. In: ARCH@ CPSWeek, pp 49–56
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
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
Corresponding author
Additional information
Publisher's Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Rights and permissions
About this article
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
Received:
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s11334-021-00391-w