Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_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_cpp_Modelica.StateGraph.Examples.ShowCompositeStep") Notification: Performance of loadModel(Modelica): time 1.901/1.901, allocations: 194.8 MB / 212.3 MB, free: 3.012 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003434/0.0003437, allocations: 8 kB / 264.5 MB, free: 13.64 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09627/0.09664, allocations: 44.51 MB / 309 MB, free: 1.062 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4249/0.5216, allocations: 72.49 MB / 381.5 MB, free: 14.95 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002794/0.5219, allocations: 71.8 kB / 381.5 MB, free: 14.95 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05204/0.574, allocations: 13.54 MB / 395.1 MB, free: 13.81 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.975e-06/0.574, allocations: 1.641 kB / 395.1 MB, free: 13.81 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.504e-05/0.5741, allocations: 27.25 kB / 395.1 MB, free: 13.8 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.002322/0.5764, allocations: 0.9501 MB / 396 MB, free: 13.19 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.363e-05/0.5765, allocations: 7.656 kB / 396 MB, free: 13.19 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003593/0.5768, allocations: 97.72 kB / 396.1 MB, free: 13.14 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001056/0.5779, allocations: 491.5 kB / 396.6 MB, free: 12.9 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001194/0.5781, allocations: 99.42 kB / 396.7 MB, free: 12.89 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002292/0.5783, allocations: 117 kB / 396.8 MB, free: 12.89 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002684/0.581, allocations: 1.033 MB / 397.9 MB, free: 12.78 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.839e-05/0.5811, allocations: 0 / 397.9 MB, free: 12.78 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001398/0.5812, allocations: 45.88 kB / 397.9 MB, free: 12.78 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.316e-05/0.5813, allocations: 23.38 kB / 397.9 MB, free: 12.78 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002546/0.5838, allocations: 0.8354 MB / 398.8 MB, free: 12.76 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006165/0.59, allocations: 2.911 MB / 401.7 MB, free: 11.23 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001938/0.592, allocations: 0.7221 MB / 402.4 MB, free: 11.12 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001177/0.5922, allocations: 16.61 kB / 402.4 MB, free: 11.12 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001149/0.5933, allocations: 428.7 kB / 402.8 MB, free: 10.97 MB / 314.7 MB Notification: Performance of pre-optimization done (n=104): time 4.699e-06/0.5934, allocations: 3.938 kB / 402.8 MB, free: 10.97 MB / 314.7 MB Notification: Performance of matching and sorting (n=104): time 0.002482/0.5959, allocations: 0.9522 MB / 403.8 MB, free: 10.79 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.767e-05/0.596, allocations: 74 kB / 403.9 MB, free: 10.73 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004911/0.5965, allocations: 347.4 kB / 404.2 MB, free: 10.54 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002045/0.5967, allocations: 74.22 kB / 404.3 MB, free: 10.5 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002483/0.597, allocations: 376.5 kB / 404.6 MB, free: 10.24 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003046/0.5973, allocations: 246.5 kB / 404.9 MB, free: 10.09 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.906e-05/0.5974, allocations: 31.44 kB / 404.9 MB, free: 10.09 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.000106/0.5975, allocations: 360.2 kB / 405.3 MB, free: 9.758 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008792/0.5984, allocations: 319.9 kB / 405.6 MB, free: 9.711 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001014/0.5994, allocations: 0.5353 MB / 406.1 MB, free: 9.426 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009659/0.6004, allocations: 323.7 kB / 406.4 MB, free: 9.395 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.878e-06/0.6004, allocations: 1.312 kB / 406.4 MB, free: 9.395 MB / 314.7 MB Notification: Performance of matching and sorting (n=165) (initialization): time 0.002429/0.6029, allocations: 0.9597 MB / 407.4 MB, free: 9.195 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.863e-05/0.6029, allocations: 7.719 kB / 407.4 MB, free: 9.195 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.796e-05/0.603, allocations: 7.781 kB / 407.4 MB, free: 9.195 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.621e-05/0.603, allocations: 12.34 kB / 407.4 MB, free: 9.195 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000744/0.6038, allocations: 121 kB / 407.5 MB, free: 9.156 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.717e-05/0.6038, allocations: 27.42 kB / 407.6 MB, free: 9.145 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000633/0.6045, allocations: 73.8 kB / 407.6 MB, free: 9.121 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001339/0.6046, allocations: 53.11 kB / 407.7 MB, free: 9.117 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.0007568/0.6054, allocations: 358.4 kB / 408 MB, free: 8.938 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001503/0.6055, allocations: 54.66 kB / 408.1 MB, free: 8.906 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001965/0.6075, allocations: 0.7818 MB / 408.9 MB, free: 8.738 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.416e-05/0.6076, allocations: 7.875 kB / 408.9 MB, free: 8.738 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.385e-06/0.6076, allocations: 0 / 408.9 MB, free: 8.738 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.511e-05/0.6076, allocations: 3.984 kB / 408.9 MB, free: 8.734 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004282/0.6119, allocations: 1.834 MB / 410.7 MB, free: 8.039 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.255e-06/0.612, allocations: 0 / 410.7 MB, free: 8.039 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005046/0.6125, allocations: 76.48 kB / 410.8 MB, free: 8.016 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.175e-05/0.6125, allocations: 3.906 kB / 410.8 MB, free: 8.016 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.93e-05/0.6126, allocations: 24.56 kB / 410.8 MB, free: 8.008 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.658e-06/0.6126, allocations: 3.875 kB / 410.8 MB, free: 8.008 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.344e-06/0.6126, allocations: 0 / 410.8 MB, free: 8.008 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001702/0.6143, allocations: 0.8157 MB / 411.6 MB, free: 7.758 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001042/0.6145, allocations: 127.8 kB / 411.8 MB, free: 7.629 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001357/0.6146, allocations: 24.86 kB / 411.8 MB, free: 7.625 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004332/0.6151, allocations: 40.41 kB / 411.8 MB, free: 7.617 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003796/0.6154, allocations: 134.5 kB / 412 MB, free: 7.562 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.226e-05/0.6156, allocations: 32.64 kB / 412 MB, free: 7.559 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002083/0.6158, allocations: 170.7 kB / 412.2 MB, free: 7.457 MB / 314.7 MB Notification: Performance of sort global known variables: time 2.244e-06/0.6158, allocations: 0 / 412.2 MB, free: 7.457 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0009532/0.6168, allocations: 181.9 kB / 412.3 MB, free: 7.445 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.0003026/0.6171, allocations: 169.5 kB / 412.5 MB, free: 7.324 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002039/0.6191, allocations: 0.8356 MB / 413.3 MB, free: 7.191 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.489e-06/0.6192, allocations: 0 / 413.3 MB, free: 7.191 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000897/0.6201, allocations: 401.9 kB / 413.7 MB, free: 7.133 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006218/0.6207, allocations: 73.5 kB / 413.8 MB, free: 7.117 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003714/0.6244, allocations: 1.588 MB / 415.4 MB, free: 6.246 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004752/0.625, allocations: 0.9682 MB / 416.4 MB, free: 5.43 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005393/0.6255, allocations: 77.34 kB / 416.4 MB, free: 5.414 MB / 314.7 MB Notification: Performance of SimCode: time 1.392e-06/0.6255, allocations: 3.938 kB / 416.4 MB, free: 5.41 MB / 314.7 MB Notification: Performance of Templates: time 0.02059/0.6461, allocations: 9.762 MB / 426.2 MB, free: 500 kB / 314.7 MB