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: "" <> buildModelFMU(Modelica.StateGraph.Examples.ShowCompositeStep,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_StateGraph_Examples_ShowCompositeStep",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.988/1.988, allocations: 194.9 MB / 211.7 MB, free: 2.988 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003485/0.0003486, allocations: 8 kB / 264 MB, free: 13.5 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09451/0.0949, allocations: 44.52 MB / 308.5 MB, free: 0.9102 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3984/0.4934, allocations: 72.5 MB / 381 MB, free: 14.94 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002679/0.4937, allocations: 73.94 kB / 381.1 MB, free: 14.94 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05287/0.5466, allocations: 13.53 MB / 394.6 MB, free: 13.82 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.966e-06/0.5466, allocations: 0 / 394.6 MB, free: 13.82 MB / 314.7 MB Notification: Performance of Transformations before backend: time 6.005e-05/0.5467, allocations: 30.41 kB / 394.7 MB, free: 13.81 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.002468/0.5492, allocations: 0.9521 MB / 395.6 MB, free: 13.2 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.133e-05/0.5493, allocations: 7.719 kB / 395.6 MB, free: 13.2 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003743/0.5497, allocations: 158.2 kB / 395.8 MB, free: 13.15 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002533/0.5499, allocations: 100.3 kB / 395.9 MB, free: 13.11 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009454/0.5509, allocations: 497.8 kB / 396.4 MB, free: 12.86 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001096/0.551, allocations: 86.06 kB / 396.4 MB, free: 12.86 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002121/0.5512, allocations: 117.2 kB / 396.6 MB, free: 12.86 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002685/0.5539, allocations: 1.03 MB / 397.6 MB, free: 12.74 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.588e-05/0.554, allocations: 3.875 kB / 397.6 MB, free: 12.74 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001447/0.5542, allocations: 39.8 kB / 397.6 MB, free: 12.74 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.333e-05/0.5542, allocations: 23.31 kB / 397.6 MB, free: 12.74 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00235/0.5566, allocations: 0.8405 MB / 398.5 MB, free: 12.7 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005901/0.5625, allocations: 2.902 MB / 401.4 MB, free: 11.1 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001952/0.5645, allocations: 0.7341 MB / 402.1 MB, free: 10.98 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001108/0.5647, allocations: 15.48 kB / 402.1 MB, free: 10.98 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001089/0.5658, allocations: 426.7 kB / 402.6 MB, free: 10.84 MB / 314.7 MB Notification: Performance of pre-optimization done (n=104): time 5.591e-06/0.5658, allocations: 0 / 402.6 MB, free: 10.84 MB / 314.7 MB Notification: Performance of matching and sorting (n=104): time 0.002478/0.5683, allocations: 0.9397 MB / 403.5 MB, free: 10.66 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.267e-05/0.5684, allocations: 86.19 kB / 403.6 MB, free: 10.59 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004874/0.5689, allocations: 318.6 kB / 403.9 MB, free: 10.42 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002198/0.5692, allocations: 78.88 kB / 404 MB, free: 10.38 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000265/0.5694, allocations: 375.1 kB / 404.3 MB, free: 10.12 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002919/0.5697, allocations: 251.5 kB / 404.6 MB, free: 9.969 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.805e-05/0.5698, allocations: 26.25 kB / 404.6 MB, free: 9.969 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001136/0.5699, allocations: 363.3 kB / 405 MB, free: 9.637 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009104/0.5709, allocations: 312.2 kB / 405.3 MB, free: 9.594 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009933/0.5719, allocations: 0.537 MB / 405.8 MB, free: 9.301 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009532/0.5729, allocations: 321.8 kB / 406.1 MB, free: 9.27 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.046e-05/0.5729, allocations: 1.344 kB / 406.1 MB, free: 9.27 MB / 314.7 MB Notification: Performance of matching and sorting (n=165) (initialization): time 0.002365/0.5753, allocations: 0.9566 MB / 407.1 MB, free: 9.074 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.095e-05/0.5753, allocations: 7.75 kB / 407.1 MB, free: 9.074 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.697e-05/0.5754, allocations: 3.844 kB / 407.1 MB, free: 9.074 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.858e-05/0.5754, allocations: 15.5 kB / 407.1 MB, free: 9.074 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008101/0.5762, allocations: 128.6 kB / 407.2 MB, free: 9.031 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.684e-05/0.5763, allocations: 16.36 kB / 407.2 MB, free: 9.027 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000673/0.577, allocations: 74.77 kB / 407.3 MB, free: 9.004 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001429/0.5771, allocations: 52.55 kB / 407.4 MB, free: 9 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.0008005/0.5779, allocations: 363.3 kB / 407.7 MB, free: 8.812 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001796/0.5781, allocations: 54.47 kB / 407.8 MB, free: 8.785 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00193/0.5801, allocations: 0.778 MB / 408.6 MB, free: 8.617 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.383e-05/0.5801, allocations: 11.62 kB / 408.6 MB, free: 8.617 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.105e-06/0.5801, allocations: 0 / 408.6 MB, free: 8.617 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.686e-05/0.5802, allocations: 3.984 kB / 408.6 MB, free: 8.613 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004131/0.5843, allocations: 1.83 MB / 410.4 MB, free: 7.926 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.293e-06/0.5844, allocations: 3.938 kB / 410.4 MB, free: 7.922 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004931/0.5849, allocations: 69.7 kB / 410.5 MB, free: 7.902 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.132e-05/0.5849, allocations: 3.875 kB / 410.5 MB, free: 7.902 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.504e-05/0.585, allocations: 27.03 kB / 410.5 MB, free: 7.895 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.937e-06/0.585, allocations: 3.875 kB / 410.5 MB, free: 7.895 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.026e-06/0.585, allocations: 3.969 kB / 410.5 MB, free: 7.895 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001605/0.5866, allocations: 0.8142 MB / 411.3 MB, free: 7.641 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001052/0.5867, allocations: 127.9 kB / 411.4 MB, free: 7.512 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001274/0.5869, allocations: 23.45 kB / 411.5 MB, free: 7.508 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000427/0.5873, allocations: 42.56 kB / 411.5 MB, free: 7.5 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003786/0.5877, allocations: 133.8 kB / 411.6 MB, free: 7.441 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.06e-05/0.5878, allocations: 38.92 kB / 411.7 MB, free: 7.434 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001976/0.588, allocations: 167.3 kB / 411.8 MB, free: 7.336 MB / 314.7 MB Notification: Performance of sort global known variables: time 3.9e-07/0.588, allocations: 3.969 kB / 411.8 MB, free: 7.336 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0009801/0.589, allocations: 174 kB / 412 MB, free: 7.332 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.002024/0.5911, allocations: 1.437 MB / 413.5 MB, free: 6.508 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002014/0.5931, allocations: 0.8312 MB / 414.3 MB, free: 6.387 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.869e-06/0.5932, allocations: 0 / 414.3 MB, free: 6.387 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008892/0.5941, allocations: 395.3 kB / 414.7 MB, free: 6.328 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006801/0.5948, allocations: 79.2 kB / 414.8 MB, free: 6.309 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009421/0.6042, allocations: 7.567 MB / 422.3 MB, free: 0.75 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007366/0.605, allocations: 0.9679 MB / 423.3 MB, free: 15.93 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007942/0.6058, allocations: 289.9 kB / 423.6 MB, free: 15.89 MB / 330.7 MB Notification: Performance of SimCode: time 1.272e-06/0.6058, allocations: 0 / 423.6 MB, free: 15.89 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.77/3.376, allocations: 12.48 MB / 436 MB, free: 9.621 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.StateGraph.Examples.ShowCompositeStep_res.mat does not exist to compare? outputFormat=mat