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.ExecutionPaths.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.ExecutionPaths,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_StateGraph_Examples_ExecutionPaths",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.546/1.546, allocations: 171.1 MB / 186.7 MB, free: 1.133 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003473/0.0003474, allocations: 8 kB / 233.3 MB, free: 0.8516 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07929/0.07968, allocations: 38.78 MB / 272.1 MB, free: 9.996 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3225/0.4022, allocations: 66.76 MB / 338.9 MB, free: 156 kB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002525/0.4025, allocations: 71.97 kB / 338.9 MB, free: 84 kB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04678/0.4493, allocations: 11.44 MB / 350.4 MB, free: 4.578 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.615e-06/0.4493, allocations: 0 / 350.4 MB, free: 4.578 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.416e-05/0.4494, allocations: 27.94 kB / 350.4 MB, free: 4.551 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: 233 * Number of variables: 233 Notification: Performance of Generate backend data structure: time 0.002107/0.4515, allocations: 0.9087 MB / 351.3 MB, free: 3.559 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.905e-05/0.4516, allocations: 8.031 kB / 351.3 MB, free: 3.551 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002591/0.4519, allocations: 147.7 kB / 351.5 MB, free: 3.398 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002232/0.4521, allocations: 94.95 kB / 351.6 MB, free: 3.305 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008842/0.453, allocations: 437.6 kB / 352 MB, free: 2.836 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001256/0.4531, allocations: 82 kB / 352.1 MB, free: 2.758 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002178/0.4534, allocations: 115.9 kB / 352.2 MB, free: 2.645 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002373/0.4558, allocations: 0.9182 MB / 353.1 MB, free: 1.699 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.128e-05/0.4558, allocations: 3.938 kB / 353.1 MB, free: 1.695 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001189/0.4559, allocations: 39.98 kB / 353.1 MB, free: 1.656 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.445e-05/0.456, allocations: 24 kB / 353.2 MB, free: 1.633 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002068/0.4581, allocations: 0.7222 MB / 353.9 MB, free: 0.9141 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004882/0.463, allocations: 2.353 MB / 356.2 MB, free: 14.48 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001584/0.4646, allocations: 0.657 MB / 356.9 MB, free: 13.81 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.339e-05/0.4647, allocations: 22.31 kB / 356.9 MB, free: 13.79 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001004/0.4657, allocations: 433.7 kB / 357.3 MB, free: 13.35 MB / 298.7 MB Notification: Performance of pre-optimization done (n=99): time 3.937e-06/0.4657, allocations: 0 / 357.3 MB, free: 13.35 MB / 298.7 MB Notification: Performance of matching and sorting (n=99): time 0.002348/0.4681, allocations: 0.8357 MB / 358.2 MB, free: 12.51 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.719e-05/0.4682, allocations: 98.06 kB / 358.3 MB, free: 12.39 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004314/0.4687, allocations: 303.2 kB / 358.6 MB, free: 12.09 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001477/0.4688, allocations: 69.69 kB / 358.6 MB, free: 12.02 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002903/0.4691, allocations: 351.6 kB / 359 MB, free: 11.67 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002988/0.4694, allocations: 241 kB / 359.2 MB, free: 11.43 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.876e-05/0.4695, allocations: 24 kB / 359.2 MB, free: 11.41 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001791/0.4697, allocations: 358.9 kB / 359.6 MB, free: 11.05 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007728/0.4705, allocations: 262.5 kB / 359.8 MB, free: 10.8 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009811/0.4715, allocations: 479.7 kB / 360.3 MB, free: 10.25 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007733/0.4723, allocations: 278.4 kB / 360.6 MB, free: 9.977 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.103e-06/0.4723, allocations: 0 / 360.6 MB, free: 9.977 MB / 298.7 MB Notification: Performance of matching and sorting (n=154) (initialization): time 0.00214/0.4744, allocations: 0.8479 MB / 361.4 MB, free: 9.121 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.9e-05/0.4745, allocations: 8 kB / 361.4 MB, free: 9.113 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.609e-05/0.4745, allocations: 4 kB / 361.4 MB, free: 9.109 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.514e-05/0.4746, allocations: 12 kB / 361.5 MB, free: 9.098 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007238/0.4753, allocations: 119.6 kB / 361.6 MB, free: 8.98 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.781e-05/0.4753, allocations: 12 kB / 361.6 MB, free: 8.969 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005582/0.4759, allocations: 80.02 kB / 361.7 MB, free: 8.891 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001241/0.476, allocations: 47.98 kB / 361.7 MB, free: 8.844 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 124 ($PRE.transition1.enableFire,$PRE.transition2.enableFire,$PRE.transition3.enableFire,$PRE.transition4.enableFire,$PRE.transition5.enableFire,$PRE.transition6.enableFire,$PRE.transition7.enableFire,$PRE.transition4a.enableFire,$PRE.transition6a.enableFire,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$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,$PRE.step2.localActive,step2.localActive,step2.outPort[1].reset,$PRE.step2.newActive,step2.newActive,$PRE.step2.oldActive,step2.oldActive,step2.active,transition3.enableFire,transition3.fire,$PRE.transition3.t_start,transition3.t_start,transition4.enableFire,transition4.fire,$PRE.transition4.t_start,transition4.t_start,$PRE.step3.localActive,step3.localActive,$PRE.step3.newActive,step3.newActive,$PRE.step3.oldActive,step3.oldActive,step3.active,$PRE.step4.localActive,step4.localActive,$PRE.step4.newActive,step4.newActive,$PRE.step4.oldActive,step4.oldActive,step4.active,transition5.enableFire,transition5.fire,$PRE.transition5.t_start,transition5.t_start,transition6.enableFire,transition6.fire,$PRE.transition6.t_start,transition6.t_start,$PRE.step5.localActive,step5.localActive,step5.inPort[1].set,$PRE.step5.newActive,step5.newActive,$PRE.step5.oldActive,step5.oldActive,step5.active,transition7.enableFire,setCondition.y,transition4a.enableFire,transition4a.fire,$PRE.transition4a.t_start,transition4a.t_start,$PRE.step4a.localActive,step4a.localActive,$PRE.step4a.newActive,step4a.newActive,$PRE.step4a.oldActive,step4a.oldActive,step4a.active,transition6a.enableFire,transition6a.fire,$PRE.transition6a.t_start,transition6a.t_start,alternative.split[2].available,alternative.split[3].available,Parallel1.inPort.occupied,Parallel1.outPort.available,stateGraphRoot.activeSteps,stateGraphRoot.resume,stateGraphRoot.suspend,transition6a.condition,transition4a.condition,transition6.condition,transition5.condition,transition4.condition,transition3.condition,transition2.condition,transition1.condition) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (154): * Single equations (assignments): 154 * 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.000635/0.4767, allocations: 303.5 kB / 362 MB, free: 8.531 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001364/0.4768, allocations: 51.44 kB / 362.1 MB, free: 8.48 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00202/0.4789, allocations: 0.7416 MB / 362.8 MB, free: 7.738 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.861e-05/0.4789, allocations: 12 kB / 362.8 MB, free: 7.727 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.135e-06/0.4789, allocations: 0 / 362.8 MB, free: 7.727 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.109e-05/0.479, allocations: 3.984 kB / 362.8 MB, free: 7.723 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004139/0.4831, allocations: 1.683 MB / 364.5 MB, free: 5.98 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.397e-06/0.4832, allocations: 4 kB / 364.5 MB, free: 5.977 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004946/0.4837, allocations: 71.83 kB / 364.6 MB, free: 5.906 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.409e-05/0.4837, allocations: 4 kB / 364.6 MB, free: 5.902 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.121e-05/0.4838, allocations: 16 kB / 364.6 MB, free: 5.887 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.433e-05/0.4838, allocations: 7.984 kB / 364.6 MB, free: 5.879 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.285e-06/0.4838, allocations: 0 / 364.6 MB, free: 5.879 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001744/0.4856, allocations: 0.8029 MB / 365.4 MB, free: 5.051 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001135/0.4857, allocations: 124.4 kB / 365.5 MB, free: 4.91 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001093/0.4858, allocations: 16 kB / 365.5 MB, free: 4.895 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004156/0.4863, allocations: 43.97 kB / 365.6 MB, free: 4.852 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003066/0.4866, allocations: 104.8 kB / 365.7 MB, free: 4.75 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.879e-05/0.4867, allocations: 39.94 kB / 365.7 MB, free: 4.711 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001949/0.4869, allocations: 152.5 kB / 365.9 MB, free: 4.562 MB / 298.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.4869, allocations: 0 / 365.9 MB, free: 4.562 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0008736/0.4878, allocations: 171.9 kB / 366 MB, free: 4.395 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 84 (transition4a.enableFire,transition4.enableFire,transition6a.enableFire,step4a.localActive,transition2.enableFire,step5.localActive,transition5.enableFire,transition6.enableFire,step4.localActive,step3.localActive,transition3.enableFire,transition1.enableFire,step2.localActive,step6.localActive,step1.localActive,step0.localActive,$cse1,$cse2,$cse3,$cse4,$cse5,$cse6,$cse7,$cse8,$cse9,$cse10,$cse11,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,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,step2.outPort[1].reset,step2.newActive,step2.oldActive,step2.active,transition3.fire,transition3.t_start,transition4.fire,transition4.t_start,step3.newActive,step3.oldActive,step3.active,step4.newActive,step4.oldActive,step4.active,transition5.fire,transition5.t_start,transition6.fire,transition6.t_start,step5.inPort[1].set,step5.newActive,step5.oldActive,step5.active,transition7.enableFire,setCondition.y,transition4a.fire,transition4a.t_start,step4a.newActive,step4a.oldActive,step4a.active,transition6a.fire,transition6a.t_start,alternative.split[2].available,alternative.split[3].available,Parallel1.inPort.occupied,Parallel1.outPort.available,stateGraphRoot.activeSteps) * Number of discrete states: 8 (step0.newActive,step1.newActive,step6.newActive,step2.newActive,step3.newActive,step4.newActive,step5.newActive,step4a.newActive) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (110): * Single equations (assignments): 94 * 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.002343/0.4902, allocations: 1.468 MB / 367.5 MB, free: 2.891 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001995/0.4922, allocations: 0.7406 MB / 368.2 MB, free: 2.152 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.407e-06/0.4922, allocations: 0 / 368.2 MB, free: 2.152 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009271/0.4931, allocations: 377.5 kB / 368.6 MB, free: 1.785 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006312/0.4938, allocations: 67.77 kB / 368.7 MB, free: 1.723 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009456/0.5033, allocations: 6.902 MB / 375.6 MB, free: 10.65 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007506/0.5041, allocations: 0.9549 MB / 376.5 MB, free: 9.66 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006821/0.5048, allocations: 267.3 kB / 376.8 MB, free: 9.398 MB / 314.7 MB Notification: Performance of SimCode: time 1.573e-06/0.5048, allocations: 0 / 376.8 MB, free: 9.398 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.601/3.106, allocations: 11.06 MB / 387.9 MB, free: 14.32 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.StateGraph.Examples.ExecutionPaths_res.mat does not exist to compare? outputFormat=mat