Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant3.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.FirstExample_Variant3,fileNamePrefix="Modelica_3_2_1_Modelica_StateGraph_Examples_FirstExample_Variant3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.69/1.69, allocations: 171.2 MB / 186.1 MB, free: 1.035 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003539/0.0003538, allocations: 8 kB / 233.4 MB, free: 2.258 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08395/0.08433, allocations: 38.77 MB / 272.1 MB, free: 11.41 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3472/0.4315, allocations: 66.21 MB / 338.3 MB, free: 6.648 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003011/0.4319, allocations: 66.97 kB / 338.4 MB, free: 6.613 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01524/0.4472, allocations: 2.938 MB / 341.3 MB, free: 4.059 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.42e-05/0.4472, allocations: 0.875 kB / 341.3 MB, free: 4.059 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.615e-05/0.4473, allocations: 7.938 kB / 341.4 MB, free: 4.051 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 58 * Number of variables: 58 Notification: Performance of Generate backend data structure: time 0.0009392/0.4482, allocations: 455.7 kB / 341.8 MB, free: 3.578 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.772e-05/0.4483, allocations: 8.031 kB / 341.8 MB, free: 3.57 MB / 266.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001108/0.4484, allocations: 60.41 kB / 341.9 MB, free: 3.516 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.707e-05/0.4486, allocations: 23.72 kB / 341.9 MB, free: 3.492 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00041/0.449, allocations: 217.5 kB / 342.1 MB, free: 3.254 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.765e-05/0.4491, allocations: 23 kB / 342.1 MB, free: 3.242 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.783e-05/0.4492, allocations: 27.14 kB / 342.1 MB, free: 3.223 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008486/0.45, allocations: 267.8 kB / 342.4 MB, free: 3.004 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.751e-05/0.4501, allocations: 0 / 342.4 MB, free: 3.004 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.253e-05/0.4501, allocations: 7.75 kB / 342.4 MB, free: 3.004 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.952e-05/0.4502, allocations: 8 kB / 342.4 MB, free: 2.996 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000641/0.4508, allocations: 172.6 kB / 342.6 MB, free: 2.879 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001953/0.4528, allocations: 0.9506 MB / 343.5 MB, free: 1.98 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005247/0.4533, allocations: 147.6 kB / 343.7 MB, free: 1.871 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.145e-05/0.4534, allocations: 192 / 343.7 MB, free: 1.871 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003464/0.4538, allocations: 115.7 kB / 343.8 MB, free: 1.77 MB / 266.7 MB Notification: Performance of pre-optimization done (n=23): time 2.825e-06/0.4538, allocations: 0 / 343.8 MB, free: 1.77 MB / 266.7 MB Notification: Performance of matching and sorting (n=23): time 0.0008095/0.4546, allocations: 214.8 kB / 344 MB, free: 1.598 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.866e-05/0.4547, allocations: 55.16 kB / 344.1 MB, free: 1.535 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000203/0.4549, allocations: 145.6 kB / 344.2 MB, free: 1.402 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.8e-05/0.455, allocations: 33.27 kB / 344.2 MB, free: 1.367 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001445/0.4551, allocations: 144 kB / 344.4 MB, free: 1.23 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.248e-05/0.4552, allocations: 57.38 kB / 344.4 MB, free: 1.184 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.354e-05/0.4553, allocations: 7 kB / 344.4 MB, free: 1.184 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001775/0.4555, allocations: 328.3 kB / 344.8 MB, free: 0.8594 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002542/0.4557, allocations: 62 kB / 344.8 MB, free: 0.8164 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003236/0.4561, allocations: 137.4 kB / 345 MB, free: 0.6797 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002693/0.4564, allocations: 73.09 kB / 345 MB, free: 0.6328 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.809e-06/0.4564, allocations: 0 / 345 MB, free: 0.6328 MB / 266.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.000822/0.4572, allocations: 245.2 kB / 345.3 MB, free: 452 kB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.635e-05/0.4573, allocations: 5.094 kB / 345.3 MB, free: 448 kB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.028e-05/0.4573, allocations: 4 kB / 345.3 MB, free: 444 kB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.59e-05/0.4573, allocations: 4 kB / 345.3 MB, free: 440 kB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003264/0.4577, allocations: 43.56 kB / 345.3 MB, free: 400 kB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.826e-05/0.4577, allocations: 7.984 kB / 345.3 MB, free: 392 kB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000241/0.458, allocations: 15.62 kB / 345.3 MB, free: 380 kB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.263e-05/0.458, allocations: 19.31 kB / 345.4 MB, free: 364 kB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 30 ($PRE.transition1.enableFire,$PRE.transition2.enableFire,$whenCondition2,$whenCondition1,$PRE.initialStep.localActive,initialStep.localActive,$PRE.initialStep.newActive,initialStep.newActive,$PRE.initialStep.oldActive,initialStep.oldActive,initialStep.active,transition1.enableFire,transition1.fire,$PRE.transition1.t_start,transition1.t_start,$PRE.step.localActive,step.localActive,$PRE.step.newActive,step.newActive,$PRE.step.oldActive,step.oldActive,step.active,transition2.enableFire,$PRE.timer.entryTime,timer.entryTime,SetBoolean1.y,stateGraphRoot.activeSteps,stateGraphRoot.resume,stateGraphRoot.suspend,transition1.condition) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 40 * 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.0002715/0.4583, allocations: 153.4 kB / 345.5 MB, free: 220 kB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.511e-05/0.4584, allocations: 19.8 kB / 345.5 MB, free: 200 kB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006814/0.4591, allocations: 194.7 kB / 345.7 MB, free: 52 kB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.172e-05/0.4591, allocations: 4 kB / 345.7 MB, free: 48 kB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.997e-06/0.4591, allocations: 3.953 kB / 345.7 MB, free: 44 kB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.054e-05/0.4592, allocations: 3.984 kB / 345.7 MB, free: 40 kB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001465/0.4606, allocations: 0.5776 MB / 346.3 MB, free: 15.48 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.598e-06/0.4607, allocations: 0 / 346.3 MB, free: 15.48 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001858/0.4609, allocations: 15.98 kB / 346.3 MB, free: 15.47 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.123e-05/0.4609, allocations: 3.953 kB / 346.3 MB, free: 15.46 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.562e-05/0.4609, allocations: 6.25 kB / 346.3 MB, free: 15.46 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.09e-06/0.461, allocations: 4 kB / 346.3 MB, free: 15.46 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.809e-06/0.461, allocations: 3.938 kB / 346.3 MB, free: 15.46 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006418/0.4616, allocations: 267.8 kB / 346.6 MB, free: 15.22 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.248e-05/0.4617, allocations: 92.92 kB / 346.7 MB, free: 15.11 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.851e-05/0.4618, allocations: 11.94 kB / 346.7 MB, free: 15.1 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000218/0.462, allocations: 7.375 kB / 346.7 MB, free: 15.09 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001186/0.4622, allocations: 19.47 kB / 346.7 MB, free: 15.08 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.362e-05/0.4622, allocations: 7.875 kB / 346.7 MB, free: 15.07 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001128/0.4624, allocations: 100.2 kB / 346.8 MB, free: 14.98 MB / 282.7 MB Notification: Performance of sort global known variables: time 5.11e-07/0.4624, allocations: 0 / 346.8 MB, free: 14.98 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0006968/0.4631, allocations: 41 kB / 346.9 MB, free: 14.95 MB / 282.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: 19 (step.active,step.localActive,transition1.enableFire,initialStep.localActive,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.newActive,initialStep.oldActive,initialStep.active,transition1.fire,transition1.t_start,step.newActive,step.oldActive,transition2.enableFire,timer.entryTime,SetBoolean1.y,stateGraphRoot.activeSteps) * Number of discrete states: 2 (initialStep.newActive,step.newActive) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.00109/0.4642, allocations: 0.8171 MB / 347.7 MB, free: 14.15 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0006618/0.4649, allocations: 185.3 kB / 347.9 MB, free: 14.01 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.347e-06/0.4649, allocations: 0.5625 kB / 347.9 MB, free: 14.01 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002881/0.4652, allocations: 87.27 kB / 348 MB, free: 13.95 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000395/0.4656, allocations: 22.62 kB / 348 MB, free: 13.93 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0036/0.4692, allocations: 2.325 MB / 350.3 MB, free: 11.67 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003809/0.4697, allocations: 0.7406 MB / 351.1 MB, free: 10.91 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.000155/0.4698, allocations: 21.95 kB / 351.1 MB, free: 10.88 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001602/0.47, allocations: 64.59 kB / 351.1 MB, free: 10.85 MB / 282.7 MB Notification: Performance of SimCode: time 1.172e-06/0.47, allocations: 0 / 351.1 MB, free: 10.85 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0281/0.4981, allocations: 3.3 MB / 354.4 MB, free: 7.613 MB / 282.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000275/0.4985, allocations: 192 kB / 354.6 MB, free: 7.359 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.475/2.974, allocations: 0 / 354.6 MB, free: 7.359 MB / 282.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat does not exist to compare? outputFormat=mat