Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_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: "" <> buildModelFMU(Modelica.StateGraph.Examples.ShowCompositeStep,fileNamePrefix="Modelica_3_2_1_Modelica_StateGraph_Examples_ShowCompositeStep",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.7/1.7, allocations: 171.2 MB / 186.1 MB, free: 1.039 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003557/0.0003557, allocations: 8 kB / 233.4 MB, free: 2.273 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08321/0.0836, allocations: 38.77 MB / 272.1 MB, free: 11.42 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.354/0.4377, allocations: 67.19 MB / 339.3 MB, free: 6.043 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002515/0.438, allocations: 68.22 kB / 339.4 MB, free: 6.008 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05466/0.4927, allocations: 13.53 MB / 352.9 MB, free: 10.59 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.805e-06/0.4927, allocations: 0 / 352.9 MB, free: 10.59 MB / 282.7 MB Notification: Performance of Transformations before backend: time 7.356e-05/0.4928, allocations: 27.94 kB / 352.9 MB, free: 10.57 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.002527/0.4953, allocations: 0.956 MB / 353.9 MB, free: 9.598 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.207e-05/0.4954, allocations: 8.031 kB / 353.9 MB, free: 9.59 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003573/0.4958, allocations: 153.6 kB / 354.1 MB, free: 9.492 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002648/0.496, allocations: 90.97 kB / 354.1 MB, free: 9.402 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001099/0.4972, allocations: 0.4938 MB / 354.6 MB, free: 8.977 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001238/0.4973, allocations: 94.17 kB / 354.7 MB, free: 8.926 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002676/0.4976, allocations: 117.3 kB / 354.8 MB, free: 8.848 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002975/0.5006, allocations: 1.028 MB / 355.9 MB, free: 8.129 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.211e-05/0.5007, allocations: 0 / 355.9 MB, free: 8.129 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001342/0.5008, allocations: 45.5 kB / 355.9 MB, free: 8.117 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.047e-05/0.5009, allocations: 28 kB / 355.9 MB, free: 8.09 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002575/0.5034, allocations: 0.8328 MB / 356.8 MB, free: 7.543 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006061/0.5095, allocations: 2.898 MB / 359.7 MB, free: 5.273 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001797/0.5114, allocations: 0.7404 MB / 360.4 MB, free: 4.805 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.142e-05/0.5115, allocations: 12.81 kB / 360.4 MB, free: 4.797 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001068/0.5126, allocations: 435.9 kB / 360.9 MB, free: 4.48 MB / 282.7 MB Notification: Performance of pre-optimization done (n=104): time 4.198e-06/0.5126, allocations: 3.938 kB / 360.9 MB, free: 4.477 MB / 282.7 MB Notification: Performance of matching and sorting (n=104): time 0.002645/0.5153, allocations: 0.9472 MB / 361.8 MB, free: 3.801 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.83e-05/0.5154, allocations: 75.58 kB / 361.9 MB, free: 3.719 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005194/0.5159, allocations: 321.6 kB / 362.2 MB, free: 3.461 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001986/0.5161, allocations: 79.69 kB / 362.3 MB, free: 3.406 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003147/0.5165, allocations: 315 kB / 362.6 MB, free: 3.145 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003393/0.5168, allocations: 252.5 kB / 362.8 MB, free: 2.938 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.167e-05/0.5169, allocations: 28.5 kB / 362.9 MB, free: 2.93 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0002015/0.5171, allocations: 372.6 kB / 363.2 MB, free: 2.582 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009642/0.5181, allocations: 311.2 kB / 363.5 MB, free: 2.391 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001606/0.5197, allocations: 0.5298 MB / 364 MB, free: 1.914 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001651/0.5214, allocations: 321.2 kB / 364.4 MB, free: 1.727 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.351e-05/0.5215, allocations: 0 / 364.4 MB, free: 1.727 MB / 282.7 MB Notification: Performance of matching and sorting (n=165) (initialization): time 0.004948/0.5265, allocations: 0.9787 MB / 365.3 MB, free: 1.016 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.581e-05/0.5266, allocations: 9.906 kB / 365.4 MB, free: 1.008 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.088e-05/0.5267, allocations: 4 kB / 365.4 MB, free: 1.004 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.697e-05/0.5267, allocations: 20 kB / 365.4 MB, free: 0.9844 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001406/0.5282, allocations: 118.8 kB / 365.5 MB, free: 0.875 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.19e-05/0.5282, allocations: 15.94 kB / 365.5 MB, free: 0.8594 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001064/0.5293, allocations: 78.78 kB / 365.6 MB, free: 0.8047 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003449/0.5297, allocations: 53.61 kB / 365.6 MB, free: 0.7617 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.001144/0.5309, allocations: 349.1 kB / 366 MB, free: 0.5 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002324/0.5311, allocations: 59.28 kB / 366 MB, free: 452 kB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002492/0.5336, allocations: 0.7819 MB / 366.8 MB, free: 15.92 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.126e-05/0.5337, allocations: 12 kB / 366.8 MB, free: 15.91 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.328e-06/0.5337, allocations: 0 / 366.8 MB, free: 15.91 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.776e-05/0.5338, allocations: 7.984 kB / 366.8 MB, free: 15.9 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004678/0.5385, allocations: 1.822 MB / 368.7 MB, free: 14.4 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.095e-06/0.5385, allocations: 3.938 kB / 368.7 MB, free: 14.39 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005488/0.5391, allocations: 79.77 kB / 368.7 MB, free: 14.32 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.36e-05/0.5391, allocations: 4 kB / 368.7 MB, free: 14.31 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.85e-05/0.5392, allocations: 23.94 kB / 368.8 MB, free: 14.29 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.02e-05/0.5392, allocations: 8 kB / 368.8 MB, free: 14.28 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.5392, allocations: 0 / 368.8 MB, free: 14.28 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001898/0.5411, allocations: 0.8083 MB / 369.6 MB, free: 13.46 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001408/0.5413, allocations: 124.4 kB / 369.7 MB, free: 13.32 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001505/0.5415, allocations: 27.98 kB / 369.7 MB, free: 13.29 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004564/0.5419, allocations: 47.92 kB / 369.8 MB, free: 13.24 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004102/0.5424, allocations: 128.8 kB / 369.9 MB, free: 13.12 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001022/0.5425, allocations: 35.98 kB / 369.9 MB, free: 13.08 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002381/0.5427, allocations: 166 kB / 370.1 MB, free: 12.93 MB / 298.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.5427, allocations: 0 / 370.1 MB, free: 12.93 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.00096/0.5437, allocations: 179.9 kB / 370.3 MB, free: 12.75 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.002493/0.5462, allocations: 1.439 MB / 371.7 MB, free: 11.28 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.002367/0.5486, allocations: 0.8394 MB / 372.6 MB, free: 10.45 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.258e-06/0.5487, allocations: 0 / 372.6 MB, free: 10.45 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00105/0.5497, allocations: 401.5 kB / 372.9 MB, free: 10.05 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006577/0.5504, allocations: 72.47 kB / 373 MB, free: 9.98 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01116/0.5616, allocations: 7.571 MB / 380.6 MB, free: 2.234 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007062/0.5624, allocations: 0.9667 MB / 381.6 MB, free: 1.242 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0006969/0.5631, allocations: 126.1 kB / 381.7 MB, free: 1.117 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007016/0.5638, allocations: 279.3 kB / 382 MB, free: 0.8438 MB / 298.7 MB Notification: Performance of SimCode: time 1.142e-06/0.5638, allocations: 0 / 382 MB, free: 0.8438 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05352/0.6173, allocations: 13.27 MB / 395.2 MB, free: 3.613 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002627/0.6176, allocations: 179.1 kB / 395.4 MB, free: 3.371 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.242/3.859, allocations: 4 kB / 395.4 MB, free: 3.367 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.StateGraph.Examples.ShowCompositeStep_res.mat does not exist to compare? outputFormat=mat