Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.StateGraph.Examples.ShowCompositeStep.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: translateModel(Modelica.StateGraph.Examples.ShowCompositeStep,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|compositeStep.transition3.enableFire|compositeStep.transition4.enableFire|compositeStep.transition4a.enableFire|compositeStep.transition5.enableFire|compositeStep.transition6.enableFire|compositeStep.transition6a.enableFire|transition1.enableFire|transition2.enableFire|transition7.enableFire",fileNamePrefix="Modelica_3.2.2_Modelica.StateGraph.Examples.ShowCompositeStep") Notification: Performance of loadModel(Modelica): time 2.153/2.153, allocations: 194.9 MB / 211.7 MB, free: 2.996 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000405/0.0004051, allocations: 8 kB / 264.5 MB, free: 12.94 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1006/0.101, allocations: 44.5 MB / 309 MB, free: 376 kB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4322/0.5332, allocations: 72.49 MB / 381.5 MB, free: 15.45 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002334/0.5335, allocations: 74.02 kB / 381.6 MB, free: 15.45 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05572/0.5893, allocations: 13.54 MB / 395.1 MB, free: 14.31 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.246e-06/0.5893, allocations: 0 / 395.1 MB, free: 14.31 MB / 314.7 MB Notification: Performance of Transformations before backend: time 8.212e-05/0.5894, allocations: 35.03 kB / 395.2 MB, free: 14.3 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 252 * Number of variables: 252 Notification: Performance of Generate backend data structure: time 0.003465/0.5929, allocations: 0.9467 MB / 396.1 MB, free: 13.69 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.846e-05/0.593, allocations: 7.656 kB / 396.1 MB, free: 13.69 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005745/0.5936, allocations: 102.8 kB / 396.2 MB, free: 13.64 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001609/0.5952, allocations: 488.3 kB / 396.7 MB, free: 13.4 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002004/0.5955, allocations: 92.52 kB / 396.8 MB, free: 13.39 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000382/0.5959, allocations: 113 kB / 396.9 MB, free: 13.39 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00379/0.5997, allocations: 1.027 MB / 397.9 MB, free: 13.16 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.521e-05/0.5998, allocations: 7.844 kB / 397.9 MB, free: 13.16 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001804/0.6, allocations: 42.36 kB / 398 MB, free: 13.15 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.899e-05/0.6, allocations: 22.97 kB / 398 MB, free: 13.15 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003399/0.6034, allocations: 0.8347 MB / 398.8 MB, free: 13.01 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006907/0.6104, allocations: 2.906 MB / 401.7 MB, free: 11.41 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001668/0.6121, allocations: 0.7323 MB / 402.5 MB, free: 11.29 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.612e-05/0.6123, allocations: 15.41 kB / 402.5 MB, free: 11.29 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009694/0.6133, allocations: 429.1 kB / 402.9 MB, free: 11.15 MB / 314.7 MB Notification: Performance of pre-optimization done (n=104): time 4.278e-06/0.6133, allocations: 0 / 402.9 MB, free: 11.15 MB / 314.7 MB Notification: Performance of matching and sorting (n=104): time 0.002515/0.6158, allocations: 0.9443 MB / 403.9 MB, free: 10.98 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.394e-05/0.6159, allocations: 76.05 kB / 403.9 MB, free: 10.91 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000551/0.6165, allocations: 351.7 kB / 404.3 MB, free: 10.71 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002122/0.6167, allocations: 82.38 kB / 404.4 MB, free: 10.68 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00026/0.617, allocations: 313.6 kB / 404.7 MB, free: 10.48 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002831/0.6173, allocations: 249.3 kB / 404.9 MB, free: 10.34 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.063e-05/0.6174, allocations: 26.81 kB / 404.9 MB, free: 10.34 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001147/0.6175, allocations: 374.2 kB / 405.3 MB, free: 10 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008551/0.6184, allocations: 314.3 kB / 405.6 MB, free: 9.957 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009634/0.6193, allocations: 0.5369 MB / 406.1 MB, free: 9.668 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000903/0.6203, allocations: 325.2 kB / 406.5 MB, free: 9.637 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.819e-06/0.6203, allocations: 3.875 kB / 406.5 MB, free: 9.637 MB / 314.7 MB Notification: Performance of matching and sorting (n=165) (initialization): time 0.002315/0.6226, allocations: 0.9704 MB / 407.4 MB, free: 9.426 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.103e-05/0.6227, allocations: 7.812 kB / 407.4 MB, free: 9.426 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.68e-05/0.6227, allocations: 3.812 kB / 407.4 MB, free: 9.426 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.88e-05/0.6228, allocations: 15.38 kB / 407.5 MB, free: 9.426 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007061/0.6235, allocations: 126.2 kB / 407.6 MB, free: 9.383 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.328e-05/0.6235, allocations: 15.47 kB / 407.6 MB, free: 9.383 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006566/0.6242, allocations: 81.72 kB / 407.7 MB, free: 9.352 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001313/0.6243, allocations: 56.48 kB / 407.7 MB, free: 9.348 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * Number of states: 0 () * Number of discrete variables: 133 ($PRE.compositeStep.transition3.enableFire,$PRE.compositeStep.transition4.enableFire,$PRE.compositeStep.transition5.enableFire,$PRE.compositeStep.transition6.enableFire,$PRE.compositeStep.transition4a.enableFire,$PRE.compositeStep.transition6a.enableFire,$PRE.transition1.enableFire,$PRE.transition2.enableFire,$PRE.transition7.enableFire,stateGraphRoot.resume,stateGraphRoot.suspend,transition2.condition,transition1.condition,compositeStep.resume[1].set,compositeStep.suspend[1].reset,compositeStep.transition6a.condition,compositeStep.transition4a.condition,compositeStep.transition6.condition,compositeStep.transition5.condition,compositeStep.transition4.condition,compositeStep.transition3.condition,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,compositeStep.active,$PRE.compositeStep.newActive,compositeStep.newActive,compositeStep.activeSteps,compositeStep.transition3.enableFire,compositeStep.transition3.fire,$PRE.compositeStep.transition3.t_start,compositeStep.transition3.t_start,compositeStep.transition4.enableFire,compositeStep.transition4.fire,$PRE.compositeStep.transition4.t_start,compositeStep.transition4.t_start,$PRE.compositeStep.step3.localActive,compositeStep.step3.localActive,$PRE.compositeStep.step3.newActive,compositeStep.step3.newActive,$PRE.compositeStep.step3.oldActive,compositeStep.step3.oldActive,compositeStep.step3.active,$PRE.compositeStep.step4.localActive,compositeStep.step4.localActive,$PRE.compositeStep.step4.newActive,compositeStep.step4.newActive,$PRE.compositeStep.step4.oldActive,compositeStep.step4.oldActive,compositeStep.step4.active,compositeStep.transition5.enableFire,compositeStep.transition5.fire,$PRE.compositeStep.transition5.t_start,compositeStep.transition5.t_start,compositeStep.transition6.enableFire,compositeStep.transition6.fire,$PRE.compositeStep.transition6.t_start,compositeStep.transition6.t_start,compositeStep.transition4a.enableFire,compositeStep.transition4a.fire,$PRE.compositeStep.transition4a.t_start,compositeStep.transition4a.t_start,$PRE.compositeStep.step4a.localActive,compositeStep.step4a.localActive,$PRE.compositeStep.step4a.newActive,compositeStep.step4a.newActive,$PRE.compositeStep.step4a.oldActive,compositeStep.step4a.oldActive,compositeStep.step4a.active,compositeStep.transition6a.enableFire,compositeStep.transition6a.fire,$PRE.compositeStep.transition6a.t_start,compositeStep.transition6a.t_start,$PRE.compositeStep.initStep.localActive,compositeStep.initStep.localActive,compositeStep.initStep.outPort[1].reset,$PRE.compositeStep.initStep.newActive,compositeStep.initStep.newActive,$PRE.compositeStep.initStep.oldActive,compositeStep.initStep.oldActive,compositeStep.initStep.active,$PRE.compositeStep.exitStep.localActive,compositeStep.exitStep.localActive,compositeStep.exitStep.inPort[1].set,$PRE.compositeStep.exitStep.newActive,compositeStep.exitStep.newActive,$PRE.compositeStep.exitStep.oldActive,compositeStep.exitStep.oldActive,compositeStep.exitStep.active,compositeStep.Alternative1.split[2].available,compositeStep.Alternative1.split[3].available,$PRE.step0.localActive,step0.localActive,$PRE.step0.newActive,step0.newActive,$PRE.step0.oldActive,step0.oldActive,step0.active,transition1.enableFire,transition1.fire,$PRE.transition1.t_start,transition1.t_start,$PRE.step1.localActive,step1.localActive,$PRE.step1.newActive,step1.newActive,$PRE.step1.oldActive,step1.oldActive,step1.active,transition2.enableFire,transition2.fire,$PRE.transition2.t_start,transition2.t_start,$PRE.step6.localActive,step6.localActive,$PRE.step6.newActive,step6.newActive,$PRE.step6.oldActive,step6.oldActive,step6.active,transition7.enableFire,Parallel1.inPort.occupied,Parallel1.outPort.available,setCondition.y,stateGraphRoot.activeSteps,compositeStep.stateGraphRoot.resume,compositeStep.stateGraphRoot.suspend) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (165): * Single equations (assignments): 165 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006786/0.625, allocations: 349.1 kB / 408.1 MB, free: 9.172 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001339/0.6252, allocations: 50.66 kB / 408.1 MB, free: 9.145 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00187/0.6271, allocations: 0.7822 MB / 408.9 MB, free: 8.973 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.311e-05/0.6271, allocations: 15.64 kB / 408.9 MB, free: 8.969 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.416e-06/0.6271, allocations: 0 / 408.9 MB, free: 8.969 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.458e-05/0.6271, allocations: 7.969 kB / 408.9 MB, free: 8.961 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004025/0.6312, allocations: 1.826 MB / 410.8 MB, free: 8.27 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.695e-06/0.6312, allocations: 3.875 kB / 410.8 MB, free: 8.27 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004946/0.6317, allocations: 73.55 kB / 410.8 MB, free: 8.25 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.141e-05/0.6318, allocations: 3.906 kB / 410.8 MB, free: 8.25 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.75e-05/0.6318, allocations: 18.77 kB / 410.9 MB, free: 8.246 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.268e-06/0.6319, allocations: 3.781 kB / 410.9 MB, free: 8.246 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.6319, allocations: 0 / 410.9 MB, free: 8.246 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00166/0.6335, allocations: 0.8158 MB / 411.7 MB, free: 7.996 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001077/0.6337, allocations: 131.9 kB / 411.8 MB, free: 7.863 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001343/0.6338, allocations: 21.62 kB / 411.8 MB, free: 7.863 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004269/0.6343, allocations: 37.47 kB / 411.9 MB, free: 7.855 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003683/0.6346, allocations: 136.8 kB / 412 MB, free: 7.797 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.583e-05/0.6347, allocations: 29.48 kB / 412 MB, free: 7.793 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001919/0.6349, allocations: 172.6 kB / 412.2 MB, free: 7.691 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.232e-06/0.635, allocations: 0 / 412.2 MB, free: 7.691 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0009301/0.6359, allocations: 182.2 kB / 412.4 MB, free: 7.68 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 80 (compositeStep.transition4a.enableFire,compositeStep.transition4.enableFire,step6.localActive,transition2.enableFire,transition1.enableFire,step1.localActive,step0.localActive,compositeStep.exitStep.localActive,compositeStep.transition5.enableFire,compositeStep.transition6.enableFire,compositeStep.transition6a.enableFire,compositeStep.initStep.localActive,compositeStep.transition3.enableFire,compositeStep.step4a.localActive,compositeStep.step4.localActive,compositeStep.step3.localActive,$cse1,$cse2,$cse3,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,compositeStep.active,compositeStep.newActive,compositeStep.activeSteps,compositeStep.transition3.fire,compositeStep.transition3.t_start,compositeStep.transition4.fire,compositeStep.transition4.t_start,compositeStep.step3.newActive,compositeStep.step3.oldActive,compositeStep.step3.active,compositeStep.step4.newActive,compositeStep.step4.oldActive,compositeStep.step4.active,compositeStep.transition5.fire,compositeStep.transition5.t_start,compositeStep.transition6.fire,compositeStep.transition6.t_start,compositeStep.transition4a.fire,compositeStep.transition4a.t_start,compositeStep.step4a.newActive,compositeStep.step4a.oldActive,compositeStep.step4a.active,compositeStep.transition6a.fire,compositeStep.transition6a.t_start,compositeStep.initStep.outPort[1].reset,compositeStep.initStep.newActive,compositeStep.initStep.oldActive,compositeStep.initStep.active,compositeStep.exitStep.inPort[1].set,compositeStep.exitStep.newActive,compositeStep.exitStep.oldActive,compositeStep.exitStep.active,compositeStep.Alternative1.split[2].available,compositeStep.Alternative1.split[3].available,step0.newActive,step0.oldActive,step0.active,transition1.fire,transition1.t_start,step1.newActive,step1.oldActive,step1.active,transition2.fire,transition2.t_start,step6.newActive,step6.oldActive,step6.active,transition7.enableFire,Parallel1.inPort.occupied,Parallel1.outPort.available,setCondition.y,stateGraphRoot.activeSteps) * Number of discrete states: 9 (compositeStep.step3.newActive,compositeStep.step4.newActive,compositeStep.step4a.newActive,compositeStep.initStep.newActive,compositeStep.exitStep.newActive,compositeStep.newActive,step0.newActive,step1.newActive,step6.newActive) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (107): * Single equations (assignments): 91 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 16 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003143/0.6362, allocations: 177.8 kB / 412.5 MB, free: 7.555 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001976/0.6382, allocations: 0.8332 MB / 413.4 MB, free: 7.422 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.478e-06/0.6383, allocations: 0 / 413.4 MB, free: 7.422 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008783/0.6391, allocations: 404 kB / 413.8 MB, free: 7.367 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006401/0.6398, allocations: 74.55 kB / 413.8 MB, free: 7.352 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003759/0.6436, allocations: 1.579 MB / 415.4 MB, free: 6.504 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004794/0.6441, allocations: 0.9728 MB / 416.4 MB, free: 5.684 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0007379/0.6449, allocations: 119.6 kB / 416.5 MB, free: 5.629 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003699/0.6452, allocations: 80.92 kB / 416.6 MB, free: 5.605 MB / 314.7 MB Notification: Performance of SimCode: time 1.243e-06/0.6453, allocations: 0 / 416.6 MB, free: 5.605 MB / 314.7 MB Notification: Performance of Templates: time 0.02252/0.6678, allocations: 7.453 MB / 424 MB, free: 1.965 MB / 314.7 MB