Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.StateGraph.Examples.ShowCompositeStep.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/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.1_cpp_Modelica.StateGraph.Examples.ShowCompositeStep") Notification: Performance of loadModel(Modelica): time 1.724/1.724, allocations: 171.2 MB / 187.3 MB, free: 1.043 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003632/0.0003632, allocations: 8 kB / 233.8 MB, free: 3.078 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.084/0.08439, allocations: 38.78 MB / 272.5 MB, free: 12.22 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3674/0.4518, allocations: 67.18 MB / 339.7 MB, free: 6.789 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002539/0.4522, allocations: 71.34 kB / 339.8 MB, free: 6.754 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05248/0.5047, allocations: 13.54 MB / 353.3 MB, free: 11.33 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.743e-06/0.5047, allocations: 0 / 353.3 MB, free: 11.33 MB / 282.7 MB Notification: Performance of Transformations before backend: time 6.14e-05/0.5048, allocations: 27.94 kB / 353.4 MB, free: 11.3 MB / 282.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.002172/0.507, allocations: 0.9474 MB / 354.3 MB, free: 10.34 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.049e-05/0.507, allocations: 8.031 kB / 354.3 MB, free: 10.34 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002887/0.5073, allocations: 98.95 kB / 354.4 MB, free: 10.24 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009942/0.5083, allocations: 0.4886 MB / 354.9 MB, free: 9.82 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001236/0.5085, allocations: 94.36 kB / 355 MB, free: 9.766 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002288/0.5087, allocations: 114.8 kB / 355.1 MB, free: 9.688 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002766/0.5115, allocations: 1.036 MB / 356.1 MB, free: 8.965 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.191e-05/0.5115, allocations: 0 / 356.1 MB, free: 8.965 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001259/0.5117, allocations: 48.23 kB / 356.2 MB, free: 8.949 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.178e-05/0.5117, allocations: 24 kB / 356.2 MB, free: 8.926 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00239/0.5141, allocations: 0.8391 MB / 357 MB, free: 8.367 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005787/0.5199, allocations: 2.895 MB / 359.9 MB, free: 6.105 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001852/0.5219, allocations: 0.7446 MB / 360.7 MB, free: 5.637 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.727e-05/0.522, allocations: 9 kB / 360.7 MB, free: 5.629 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001098/0.5231, allocations: 433.2 kB / 361.1 MB, free: 5.316 MB / 282.7 MB Notification: Performance of pre-optimization done (n=104): time 4.348e-06/0.5231, allocations: 0 / 361.1 MB, free: 5.316 MB / 282.7 MB Notification: Performance of matching and sorting (n=104): time 0.002679/0.5258, allocations: 0.9501 MB / 362.1 MB, free: 4.637 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.228e-05/0.5259, allocations: 76 kB / 362.1 MB, free: 4.555 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000541/0.5264, allocations: 345.3 kB / 362.5 MB, free: 4.277 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001693/0.5266, allocations: 76.94 kB / 362.6 MB, free: 4.227 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003074/0.5269, allocations: 376.1 kB / 362.9 MB, free: 3.902 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003054/0.5273, allocations: 249.9 kB / 363.2 MB, free: 3.699 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.835e-05/0.5274, allocations: 31.25 kB / 363.2 MB, free: 3.688 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001712/0.5275, allocations: 359.3 kB / 363.5 MB, free: 3.348 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009353/0.5285, allocations: 317 kB / 363.9 MB, free: 3.148 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001128/0.5296, allocations: 0.5397 MB / 364.4 MB, free: 2.664 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000939/0.5306, allocations: 319.2 kB / 364.7 MB, free: 2.484 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.514e-06/0.5306, allocations: 0 / 364.7 MB, free: 2.484 MB / 282.7 MB Notification: Performance of matching and sorting (n=165) (initialization): time 0.002463/0.5331, allocations: 0.9646 MB / 365.7 MB, free: 1.785 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.97e-05/0.5331, allocations: 11.94 kB / 365.7 MB, free: 1.773 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.947e-05/0.5332, allocations: 12.06 kB / 365.7 MB, free: 1.762 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.57e-05/0.5332, allocations: 12 kB / 365.7 MB, free: 1.75 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000734/0.534, allocations: 127.7 kB / 365.8 MB, free: 1.637 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.798e-05/0.534, allocations: 12 kB / 365.8 MB, free: 1.625 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006143/0.5346, allocations: 74.84 kB / 365.9 MB, free: 1.57 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001378/0.5348, allocations: 52.17 kB / 366 MB, free: 1.531 MB / 282.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.0007201/0.5355, allocations: 356.8 kB / 366.3 MB, free: 1.262 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001405/0.5357, allocations: 51.39 kB / 366.4 MB, free: 1.211 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002077/0.5378, allocations: 0.7858 MB / 367.1 MB, free: 0.6719 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.338e-05/0.5378, allocations: 8 kB / 367.2 MB, free: 0.6641 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.827e-06/0.5378, allocations: 8 kB / 367.2 MB, free: 0.6562 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.682e-05/0.5378, allocations: 7.969 kB / 367.2 MB, free: 0.6484 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004455/0.5423, allocations: 1.814 MB / 369 MB, free: 15.23 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.694e-06/0.5424, allocations: 0 / 369 MB, free: 15.23 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005103/0.5429, allocations: 75.83 kB / 369.1 MB, free: 15.15 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.211e-05/0.5429, allocations: 4 kB / 369.1 MB, free: 15.15 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.666e-05/0.543, allocations: 23.94 kB / 369.1 MB, free: 15.12 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.584e-06/0.543, allocations: 11.94 kB / 369.1 MB, free: 15.11 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.17e-06/0.543, allocations: 0 / 369.1 MB, free: 15.11 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001913/0.545, allocations: 0.816 MB / 369.9 MB, free: 14.28 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000126/0.5451, allocations: 124.5 kB / 370 MB, free: 14.14 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001365/0.5453, allocations: 20 kB / 370.1 MB, free: 14.12 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004271/0.5457, allocations: 47.92 kB / 370.1 MB, free: 14.07 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004073/0.5461, allocations: 136.8 kB / 370.2 MB, free: 13.94 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001051/0.5462, allocations: 31.98 kB / 370.3 MB, free: 13.91 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.000237/0.5465, allocations: 166 kB / 370.4 MB, free: 13.75 MB / 298.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.5465, allocations: 0 / 370.4 MB, free: 13.75 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0009032/0.5474, allocations: 175.9 kB / 370.6 MB, free: 13.57 MB / 298.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.0003304/0.5477, allocations: 183.2 kB / 370.8 MB, free: 13.38 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.002232/0.55, allocations: 0.8353 MB / 371.6 MB, free: 12.54 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.075e-06/0.55, allocations: 0 / 371.6 MB, free: 12.54 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00101/0.551, allocations: 393.9 kB / 372 MB, free: 12.16 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006072/0.5517, allocations: 81.08 kB / 372.1 MB, free: 12.09 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00396/0.5556, allocations: 1.603 MB / 373.7 MB, free: 10.44 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006763/0.5564, allocations: 0.9589 MB / 374.6 MB, free: 9.453 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005046/0.5569, allocations: 79.41 kB / 374.7 MB, free: 9.375 MB / 298.7 MB Notification: Performance of SimCode: time 8.81e-07/0.5569, allocations: 0 / 374.7 MB, free: 9.375 MB / 298.7 MB Notification: Performance of Templates: time 0.1424/0.6993, allocations: 9.764 MB / 384.5 MB, free: 15.59 MB / 314.7 MB