Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Blocks.Continuous.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: translateModel(ModelicaTest.Blocks.Continuous,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|criticalDamping.x.1.|criticalDamping.x.2.|derivative.x|firstOrder.y|integrator.y|limIntegrator.y|limPID.D.x|limPID.I.y|lowpassButterworth.x1.1.|lowpassButterworth.x2.1.|pI.x|pID.D.x|pID.I.y|secondOrder.y|secondOrder.yd|stateSpace.x.1.|stateSpace.x.2.|transferFunction.x_scaled.1.",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.Blocks.Continuous") Notification: Performance of loadModel(ModelicaTest): time 1.964/1.964, allocations: 209.4 MB / 217.3 MB, free: 4.164 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 1.796e-05/1.805e-05, allocations: 4 kB / 271.3 MB, free: 14.13 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2585/0.2585, allocations: 48.69 MB / 320 MB, free: 14.41 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.124/0.3825, allocations: 82.68 MB / 402.7 MB, free: 13.75 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002063/0.3828, allocations: 63.97 kB / 402.8 MB, free: 13.69 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06198/0.4448, allocations: 14.5 MB / 417.3 MB, free: 15.16 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.17e-06/0.4448, allocations: 0 / 417.3 MB, free: 15.16 MB / 362.7 MB Notification: Performance of Transformations before backend: time 7.989e-05/0.4449, allocations: 28.09 kB / 417.3 MB, free: 15.14 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 97 * Number of variables: 97 Notification: Performance of Generate backend data structure: time 0.002093/0.447, allocations: 0.9221 MB / 418.2 MB, free: 14.17 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.972e-05/0.4471, allocations: 8.031 kB / 418.2 MB, free: 14.16 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002213/0.4473, allocations: 90.92 kB / 418.3 MB, free: 14.07 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001317/0.4487, allocations: 0.5266 MB / 418.8 MB, free: 13.5 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.873e-05/0.4487, allocations: 16 kB / 418.8 MB, free: 13.48 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001131/0.4488, allocations: 35.89 kB / 418.9 MB, free: 13.45 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008419/0.4497, allocations: 317.5 kB / 419.2 MB, free: 13.14 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009838/0.4507, allocations: 430 kB / 419.6 MB, free: 12.69 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.727e-05/0.4507, allocations: 4 kB / 419.6 MB, free: 12.69 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.738e-05/0.4508, allocations: 0 / 419.6 MB, free: 12.69 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.586e-05/0.4508, allocations: 11.98 kB / 419.6 MB, free: 12.68 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004311/0.4552, allocations: 1.888 MB / 421.5 MB, free: 10.72 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001047/0.4562, allocations: 453.6 kB / 422 MB, free: 10.25 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004004/0.4567, allocations: 184.1 kB / 422.1 MB, free: 10.07 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.452e-05/0.4567, allocations: 8 kB / 422.1 MB, free: 10.06 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.654e-05/0.4568, allocations: 42.5 kB / 422.2 MB, free: 10.01 MB / 362.7 MB Notification: Performance of pre-optimization done (n=42): time 3.381e-06/0.4568, allocations: 0 / 422.2 MB, free: 10.01 MB / 362.7 MB Notification: Performance of matching and sorting (n=43): time 0.001763/0.4586, allocations: 0.7265 MB / 422.9 MB, free: 9.27 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001055/0.4587, allocations: 162.2 kB / 423.1 MB, free: 9.074 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007638/0.4595, allocations: 459.6 kB / 423.5 MB, free: 8.617 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.7e-05/0.4595, allocations: 25.7 kB / 423.5 MB, free: 8.586 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000296/0.4599, allocations: 342.8 kB / 423.9 MB, free: 8.25 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001945/0.4601, allocations: 157.6 kB / 424 MB, free: 8.094 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.709e-05/0.4601, allocations: 0 / 424 MB, free: 8.094 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001854/0.4603, allocations: 334.8 kB / 424.4 MB, free: 7.758 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004606/0.4608, allocations: 189 kB / 424.5 MB, free: 7.574 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005718/0.4614, allocations: 292.7 kB / 424.8 MB, free: 7.246 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005019/0.4619, allocations: 225.3 kB / 425 MB, free: 7.027 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.614e-06/0.4619, allocations: 0 / 425 MB, free: 7.027 MB / 362.7 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.001242/0.4631, allocations: 0.5145 MB / 425.6 MB, free: 6.508 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.249e-05/0.4632, allocations: 8 kB / 425.6 MB, free: 6.5 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.336e-06/0.4632, allocations: 320 / 425.6 MB, free: 6.5 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.815e-05/0.4632, allocations: 12 kB / 425.6 MB, free: 6.488 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008339/0.4641, allocations: 143.8 kB / 425.7 MB, free: 6.348 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.221e-05/0.4641, allocations: 4 kB / 425.7 MB, free: 6.344 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006947/0.4648, allocations: 91.52 kB / 425.8 MB, free: 6.254 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.251e-05/0.4649, allocations: 16 kB / 425.8 MB, free: 6.238 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (68): * Single equations (assignments): 68 * 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.0001773/0.4651, allocations: 120.8 kB / 425.9 MB, free: 6.113 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002062/0.4653, allocations: 75.14 kB / 426 MB, free: 6.039 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001968/0.4655, allocations: 73.17 kB / 426.1 MB, free: 5.957 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.544e-06/0.4656, allocations: 4 kB / 426.1 MB, free: 5.953 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.642e-06/0.4656, allocations: 48 / 426.1 MB, free: 5.953 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.545e-05/0.4656, allocations: 11.97 kB / 426.1 MB, free: 5.941 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001493/0.4671, allocations: 0.721 MB / 426.8 MB, free: 5.176 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.277e-06/0.4671, allocations: 0 / 426.8 MB, free: 5.176 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008932/0.468, allocations: 123.8 kB / 426.9 MB, free: 5.055 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.96e-06/0.468, allocations: 0 / 426.9 MB, free: 5.055 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.513e-05/0.4681, allocations: 11.98 kB / 427 MB, free: 5.043 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.559e-06/0.4681, allocations: 4 kB / 427 MB, free: 5.039 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.465e-06/0.4682, allocations: 0 / 427 MB, free: 5.039 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001691/0.4699, allocations: 0.9447 MB / 427.9 MB, free: 4.062 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003469/0.4702, allocations: 196.2 kB / 428.1 MB, free: 3.852 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001154/0.4704, allocations: 7.984 kB / 428.1 MB, free: 3.844 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007681/0.4711, allocations: 59.94 kB / 428.2 MB, free: 3.785 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000142/0.4713, allocations: 31.95 kB / 428.2 MB, free: 3.754 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.408e-05/0.4714, allocations: 19.98 kB / 428.2 MB, free: 3.734 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.00059/0.472, allocations: 355.2 kB / 428.6 MB, free: 3.395 MB / 362.7 MB Notification: Performance of sort global known variables: time 8.01e-07/0.472, allocations: 0 / 428.6 MB, free: 3.395 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0007303/0.4727, allocations: 96 kB / 428.7 MB, free: 3.301 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 18 (limPID.I.y,limPID.D.x,transferFunction.x_scaled[1],stateSpace.x[1],stateSpace.x[2],lowpassButterworth.x1[1],lowpassButterworth.x2[1],criticalDamping.x[1],criticalDamping.x[2],integrator.y,limIntegrator.y,derivative.x,firstOrder.y,secondOrder.y,secondOrder.yd,pI.x,pID.I.y,pID.D.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 43 * 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 Backend phase and start with SimCode phase: time 0.0001953/0.4729, allocations: 111.2 kB / 428.8 MB, free: 3.184 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001039/0.474, allocations: 435.7 kB / 429.2 MB, free: 2.758 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.326e-06/0.474, allocations: 0.625 kB / 429.2 MB, free: 2.758 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004838/0.4745, allocations: 219.6 kB / 429.4 MB, free: 2.543 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009748/0.4755, allocations: 135.1 kB / 429.5 MB, free: 2.41 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002731/0.4782, allocations: 1.159 MB / 430.7 MB, free: 1.207 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007689/0.479, allocations: 0.9489 MB / 431.6 MB, free: 240 kB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002973/0.4793, allocations: 47.38 kB / 431.7 MB, free: 192 kB / 362.7 MB Notification: Performance of SimCode: time 1.863e-06/0.4794, allocations: 0 / 431.7 MB, free: 192 kB / 362.7 MB Notification: Performance of Templates: time 0.015/0.4944, allocations: 7.897 MB / 439.6 MB, free: 8.316 MB / 378.7 MB