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.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_cpp_Modelica_StateGraph_Examples_FirstExample_Variant3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.573/1.573, allocations: 171.1 MB / 186.7 MB, free: 1.121 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003501/0.0003501, allocations: 12 kB / 233.3 MB, free: 0.8359 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07993/0.08031, allocations: 38.76 MB / 272.1 MB, free: 9.988 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3345/0.4149, allocations: 66.22 MB / 338.3 MB, free: 0.6875 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003086/0.4152, allocations: 67.97 kB / 338.4 MB, free: 0.6211 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0151/0.4304, allocations: 2.935 MB / 341.3 MB, free: 13.68 MB / 282.7 MB Notification: Performance of FrontEnd: time 3.005e-06/0.4304, allocations: 0 / 341.3 MB, free: 13.68 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.329e-05/0.4304, allocations: 4.875 kB / 341.3 MB, free: 13.67 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: 58 * Number of variables: 58 Notification: Performance of Generate backend data structure: time 0.0009502/0.4314, allocations: 455.6 kB / 341.8 MB, free: 13.18 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.496e-05/0.4315, allocations: 8.031 kB / 341.8 MB, free: 13.18 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001149/0.4316, allocations: 62.48 kB / 341.8 MB, free: 13.11 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001017/0.4317, allocations: 27.7 kB / 341.9 MB, free: 13.08 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004145/0.4322, allocations: 215 kB / 342.1 MB, free: 12.83 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.74e-05/0.4322, allocations: 24.55 kB / 342.1 MB, free: 12.8 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.54e-05/0.4323, allocations: 27.95 kB / 342.1 MB, free: 12.78 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008638/0.4332, allocations: 266 kB / 342.4 MB, free: 12.49 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.748e-05/0.4333, allocations: 0 / 342.4 MB, free: 12.49 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.8e-05/0.4333, allocations: 11.98 kB / 342.4 MB, free: 12.48 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.536e-05/0.4333, allocations: 4 kB / 342.4 MB, free: 12.48 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006781/0.434, allocations: 173.6 kB / 342.6 MB, free: 12.31 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002079/0.4361, allocations: 0.9444 MB / 343.5 MB, free: 11.29 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005571/0.4367, allocations: 155.4 kB / 343.7 MB, free: 11.13 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.735e-05/0.4368, allocations: 4.172 kB / 343.7 MB, free: 11.12 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003614/0.4372, allocations: 111.5 kB / 343.8 MB, free: 11 MB / 282.7 MB Notification: Performance of pre-optimization done (n=23): time 3.557e-06/0.4372, allocations: 0 / 343.8 MB, free: 11 MB / 282.7 MB Notification: Performance of matching and sorting (n=23): time 0.0008512/0.438, allocations: 222.6 kB / 344 MB, free: 10.78 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.298e-05/0.4381, allocations: 55.41 kB / 344 MB, free: 10.71 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002045/0.4383, allocations: 144.8 kB / 344.2 MB, free: 10.57 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 6.678e-05/0.4384, allocations: 41.7 kB / 344.2 MB, free: 10.52 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002052/0.4387, allocations: 202.9 kB / 344.4 MB, free: 10.32 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001018/0.4388, allocations: 59.3 kB / 344.5 MB, free: 10.26 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.876e-05/0.4388, allocations: 11.94 kB / 344.5 MB, free: 10.25 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001657/0.439, allocations: 318.8 kB / 344.8 MB, free: 9.926 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002119/0.4392, allocations: 64.62 kB / 344.9 MB, free: 9.859 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002605/0.4395, allocations: 135.7 kB / 345 MB, free: 9.699 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002187/0.4397, allocations: 67.92 kB / 345.1 MB, free: 9.633 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.098e-06/0.4397, allocations: 4 kB / 345.1 MB, free: 9.629 MB / 282.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0006171/0.4404, allocations: 241.3 kB / 345.3 MB, free: 9.387 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.11e-05/0.4404, allocations: 4 kB / 345.3 MB, free: 9.383 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.096e-05/0.4404, allocations: 4 kB / 345.3 MB, free: 9.379 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.35e-05/0.4405, allocations: 4 kB / 345.3 MB, free: 9.375 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000242/0.4407, allocations: 39.81 kB / 345.4 MB, free: 9.336 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.648e-06/0.4407, allocations: 4.281 kB / 345.4 MB, free: 9.332 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001687/0.4409, allocations: 27.83 kB / 345.4 MB, free: 9.305 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.036e-05/0.441, allocations: 16 kB / 345.4 MB, free: 9.289 MB / 282.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.000205/0.4412, allocations: 148.3 kB / 345.6 MB, free: 9.137 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.04e-05/0.4413, allocations: 23.8 kB / 345.6 MB, free: 9.113 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005104/0.4418, allocations: 190.3 kB / 345.8 MB, free: 8.922 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.4e-06/0.4418, allocations: 0 / 345.8 MB, free: 8.922 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.023e-06/0.4418, allocations: 7.953 kB / 345.8 MB, free: 8.914 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.979e-06/0.4418, allocations: 4 kB / 345.8 MB, free: 8.91 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001079/0.4429, allocations: 0.5798 MB / 346.4 MB, free: 8.27 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.076e-06/0.4429, allocations: 0 / 346.4 MB, free: 8.27 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001287/0.4431, allocations: 15.98 kB / 346.4 MB, free: 8.254 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.284e-06/0.4431, allocations: 3.953 kB / 346.4 MB, free: 8.25 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.877e-05/0.4431, allocations: 4 kB / 346.4 MB, free: 8.246 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.873e-06/0.4431, allocations: 8 kB / 346.4 MB, free: 8.238 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.4431, allocations: 0 / 346.4 MB, free: 8.238 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004542/0.4436, allocations: 275.6 kB / 346.7 MB, free: 7.953 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.192e-05/0.4437, allocations: 88.92 kB / 346.7 MB, free: 7.848 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.822e-05/0.4437, allocations: 7.953 kB / 346.7 MB, free: 7.84 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001367/0.4439, allocations: 7.984 kB / 346.8 MB, free: 7.832 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.411e-05/0.444, allocations: 23.97 kB / 346.8 MB, free: 7.809 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.292e-05/0.444, allocations: 12 kB / 346.8 MB, free: 7.797 MB / 282.7 MB Notification: Performance of sorting global known variables: time 7.835e-05/0.4441, allocations: 96.53 kB / 346.9 MB, free: 7.703 MB / 282.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.4441, allocations: 0 / 346.9 MB, free: 7.703 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004243/0.4446, allocations: 40 kB / 346.9 MB, free: 7.664 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.0008326/0.4454, allocations: 0.8136 MB / 347.7 MB, free: 6.824 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0004895/0.4459, allocations: 187.7 kB / 347.9 MB, free: 6.641 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.866e-06/0.4459, allocations: 0 / 347.9 MB, free: 6.641 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001989/0.4461, allocations: 84.22 kB / 348 MB, free: 6.559 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002693/0.4464, allocations: 23.94 kB / 348 MB, free: 6.535 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002626/0.4491, allocations: 2.354 MB / 350.4 MB, free: 4.094 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000381/0.4495, allocations: 0.7406 MB / 351.1 MB, free: 3.328 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001651/0.4497, allocations: 63.48 kB / 351.2 MB, free: 3.266 MB / 282.7 MB Notification: Performance of SimCode: time 1.213e-06/0.4497, allocations: 0 / 351.2 MB, free: 3.266 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.321/2.77, allocations: 2.992 MB / 354.2 MB, free: 284 kB / 282.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat does not exist to compare? outputFormat=mat