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.ExecutionPaths.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.ExecutionPaths,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_StateGraph_Examples_ExecutionPaths",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.933/1.933, allocations: 194.8 MB / 211.7 MB, free: 3 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006571/0.000657, allocations: 8 kB / 264 MB, free: 13.5 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09836/0.09908, allocations: 44.51 MB / 308.5 MB, free: 0.9297 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3999/0.499, allocations: 72.08 MB / 380.6 MB, free: 14.84 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002694/0.4994, allocations: 67.5 kB / 380.7 MB, free: 14.84 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04467/0.5441, allocations: 11.44 MB / 392.1 MB, free: 13.81 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.645e-06/0.5441, allocations: 0 / 392.1 MB, free: 13.81 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.794e-05/0.5442, allocations: 27.41 kB / 392.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: 233 * Number of variables: 233 Notification: Performance of Generate backend data structure: time 0.001923/0.5461, allocations: 0.9137 MB / 393 MB, free: 13.2 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.867e-05/0.5462, allocations: 7.719 kB / 393.1 MB, free: 13.2 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002366/0.5464, allocations: 142.5 kB / 393.2 MB, free: 13.16 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001966/0.5466, allocations: 97.41 kB / 393.3 MB, free: 13.11 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007594/0.5474, allocations: 438 kB / 393.7 MB, free: 12.86 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.853e-05/0.5475, allocations: 88.55 kB / 393.8 MB, free: 12.86 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001707/0.5477, allocations: 100.8 kB / 393.9 MB, free: 12.86 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002061/0.5498, allocations: 0.9296 MB / 394.8 MB, free: 12.74 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.16e-05/0.5498, allocations: 0 / 394.8 MB, free: 12.74 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001076/0.55, allocations: 37.94 kB / 394.9 MB, free: 12.74 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.244e-05/0.55, allocations: 27.5 kB / 394.9 MB, free: 12.74 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001789/0.5518, allocations: 0.7233 MB / 395.6 MB, free: 12.73 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004235/0.556, allocations: 2.336 MB / 398 MB, free: 11.88 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001344/0.5574, allocations: 0.6646 MB / 398.6 MB, free: 11.8 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.453e-05/0.5575, allocations: 12.45 kB / 398.6 MB, free: 11.8 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008682/0.5584, allocations: 441.9 kB / 399.1 MB, free: 11.71 MB / 314.7 MB Notification: Performance of pre-optimization done (n=99): time 3.667e-06/0.5584, allocations: 7.875 kB / 399.1 MB, free: 11.7 MB / 314.7 MB Notification: Performance of matching and sorting (n=99): time 0.00204/0.5605, allocations: 0.8286 MB / 399.9 MB, free: 11.62 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.121e-05/0.5606, allocations: 100.3 kB / 400 MB, free: 11.52 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000416/0.561, allocations: 297.5 kB / 400.3 MB, free: 11.39 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001571/0.5612, allocations: 72.94 kB / 400.4 MB, free: 11.36 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002046/0.5614, allocations: 352.6 kB / 400.7 MB, free: 11.12 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002303/0.5616, allocations: 253.3 kB / 401 MB, free: 10.99 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.114e-05/0.5617, allocations: 22 kB / 401 MB, free: 10.99 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 9.923e-05/0.5618, allocations: 357.5 kB / 401.3 MB, free: 10.68 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006767/0.5625, allocations: 263.2 kB / 401.6 MB, free: 10.68 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007817/0.5633, allocations: 475.2 kB / 402 MB, free: 10.46 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006645/0.564, allocations: 275.1 kB / 402.3 MB, free: 10.43 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.247e-06/0.564, allocations: 3.844 kB / 402.3 MB, free: 10.43 MB / 314.7 MB Notification: Performance of matching and sorting (n=154) (initialization): time 0.001849/0.5659, allocations: 0.8526 MB / 403.2 MB, free: 10.27 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.587e-05/0.5659, allocations: 7.75 kB / 403.2 MB, free: 10.27 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.591e-05/0.5659, allocations: 8.422 kB / 403.2 MB, free: 10.26 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.174e-05/0.566, allocations: 11.38 kB / 403.2 MB, free: 10.26 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006558/0.5667, allocations: 118.1 kB / 403.3 MB, free: 10.23 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.239e-05/0.5667, allocations: 11.75 kB / 403.3 MB, free: 10.22 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005495/0.5672, allocations: 76.81 kB / 403.4 MB, free: 10.2 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001129/0.5674, allocations: 49.14 kB / 403.4 MB, free: 10.19 MB / 314.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.0005699/0.568, allocations: 302.6 kB / 403.7 MB, free: 10.02 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001121/0.5681, allocations: 46.81 kB / 403.8 MB, free: 10 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001724/0.5698, allocations: 0.742 MB / 404.5 MB, free: 9.832 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.432e-05/0.5699, allocations: 15.27 kB / 404.5 MB, free: 9.828 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.566e-06/0.5699, allocations: 4 kB / 404.5 MB, free: 9.824 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.835e-05/0.5699, allocations: 9.312 kB / 404.6 MB, free: 9.816 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00369/0.5736, allocations: 1.659 MB / 406.2 MB, free: 9.164 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.766e-06/0.5737, allocations: 1.281 kB / 406.2 MB, free: 9.164 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000486/0.5741, allocations: 74.83 kB / 406.3 MB, free: 9.141 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.458e-05/0.5742, allocations: 7.812 kB / 406.3 MB, free: 9.137 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.259e-05/0.5743, allocations: 20.42 kB / 406.3 MB, free: 9.133 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.117e-05/0.5743, allocations: 3.781 kB / 406.3 MB, free: 9.133 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.406e-06/0.5743, allocations: 5.234 kB / 406.3 MB, free: 9.129 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001447/0.5757, allocations: 0.7901 MB / 407.1 MB, free: 8.863 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.63e-05/0.5758, allocations: 124 kB / 407.2 MB, free: 8.738 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001047/0.576, allocations: 26.91 kB / 407.3 MB, free: 8.734 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003919/0.5764, allocations: 46.45 kB / 407.3 MB, free: 8.719 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003001/0.5767, allocations: 111.5 kB / 407.4 MB, free: 8.672 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.323e-05/0.5768, allocations: 34.3 kB / 407.5 MB, free: 8.668 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001611/0.5769, allocations: 151.5 kB / 407.6 MB, free: 8.578 MB / 314.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.577, allocations: 4 kB / 407.6 MB, free: 8.574 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0008477/0.5778, allocations: 174.1 kB / 407.8 MB, free: 8.559 MB / 314.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.001845/0.5797, allocations: 1.47 MB / 409.2 MB, free: 7.664 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001743/0.5814, allocations: 0.7357 MB / 410 MB, free: 7.547 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.827e-06/0.5815, allocations: 3.812 kB / 410 MB, free: 7.547 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007541/0.5822, allocations: 369 kB / 410.3 MB, free: 7.492 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005918/0.5829, allocations: 80.78 kB / 410.4 MB, free: 7.469 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007161/0.59, allocations: 6.887 MB / 417.3 MB, free: 2.281 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006035/0.5907, allocations: 0.9524 MB / 418.3 MB, free: 17.48 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006035/0.5913, allocations: 261.7 kB / 418.5 MB, free: 17.44 MB / 330.7 MB Notification: Performance of SimCode: time 1.643e-06/0.5913, allocations: 0 / 418.5 MB, free: 17.44 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.639/3.23, allocations: 11.05 MB / 429.6 MB, free: 11.84 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.StateGraph.Examples.ExecutionPaths_res.mat does not exist to compare? outputFormat=mat