Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Blocks.Continuous.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/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.2_cpp_ModelicaTest.Blocks.Continuous") Notification: Performance of loadModel(ModelicaTest): time 2.383/2.383, allocations: 235.1 MB / 243 MB, free: 9.598 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 1.6e-05/1.607e-05, allocations: 0 / 303.2 MB, free: 13.31 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2733/0.2733, allocations: 54.86 MB / 358 MB, free: 14.95 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.137/0.4103, allocations: 88.89 MB / 446.9 MB, free: 5.934 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000215/0.4106, allocations: 67.95 kB / 447 MB, free: 5.867 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06068/0.4713, allocations: 13.65 MB / 460.6 MB, free: 8.18 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.96e-06/0.4713, allocations: 0 / 460.6 MB, free: 8.18 MB / 394.7 MB Notification: Performance of Transformations before backend: time 7.543e-05/0.4714, allocations: 20 kB / 460.7 MB, free: 8.16 MB / 394.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.002215/0.4736, allocations: 0.8995 MB / 461.6 MB, free: 7.215 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.222e-05/0.4737, allocations: 8.031 kB / 461.6 MB, free: 7.207 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002842/0.474, allocations: 86.97 kB / 461.7 MB, free: 7.121 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001336/0.4754, allocations: 0.5072 MB / 462.2 MB, free: 6.57 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.216e-05/0.4754, allocations: 12 kB / 462.2 MB, free: 6.559 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001231/0.4756, allocations: 39.78 kB / 462.2 MB, free: 6.52 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008917/0.4765, allocations: 321.4 kB / 462.5 MB, free: 6.207 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001/0.4775, allocations: 425.1 kB / 462.9 MB, free: 5.762 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.691e-05/0.4775, allocations: 4 kB / 462.9 MB, free: 5.758 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.581e-05/0.4776, allocations: 0 / 462.9 MB, free: 5.758 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.724e-05/0.4776, allocations: 12 kB / 463 MB, free: 5.746 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0047/0.4823, allocations: 1.88 MB / 464.8 MB, free: 3.805 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001093/0.4835, allocations: 444.3 kB / 465.3 MB, free: 3.344 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004272/0.4839, allocations: 186.5 kB / 465.4 MB, free: 3.152 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.366e-05/0.484, allocations: 8 kB / 465.5 MB, free: 3.145 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.521e-05/0.4841, allocations: 46.58 kB / 465.5 MB, free: 3.09 MB / 394.7 MB Notification: Performance of pre-optimization done (n=42): time 4.008e-06/0.4841, allocations: 0 / 465.5 MB, free: 3.09 MB / 394.7 MB Notification: Performance of matching and sorting (n=43): time 0.001975/0.4861, allocations: 0.7202 MB / 466.2 MB, free: 2.359 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.977e-05/0.4862, allocations: 136.5 kB / 466.4 MB, free: 2.195 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008146/0.487, allocations: 455.5 kB / 466.8 MB, free: 1.742 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 7.968e-05/0.4871, allocations: 29.78 kB / 466.8 MB, free: 1.707 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003029/0.4874, allocations: 342.8 kB / 467.2 MB, free: 1.371 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002414/0.4877, allocations: 157.6 kB / 467.3 MB, free: 1.215 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.978e-05/0.4878, allocations: 4 kB / 467.3 MB, free: 1.211 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001946/0.488, allocations: 334.8 kB / 467.6 MB, free: 0.875 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004856/0.4885, allocations: 185.1 kB / 467.8 MB, free: 0.6914 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005851/0.4891, allocations: 291.7 kB / 468.1 MB, free: 380 kB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005261/0.4896, allocations: 221.3 kB / 468.3 MB, free: 160 kB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.301e-06/0.4896, allocations: 0 / 468.3 MB, free: 160 kB / 394.7 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.2647/0.7543, allocations: 0.5079 MB / 468.8 MB, free: 95.19 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002442/0.7546, allocations: 1.053 MB / 469.9 MB, free: 94.11 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.283e-05/0.7546, allocations: 2.781 kB / 469.9 MB, free: 94.11 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.087e-05/0.7547, allocations: 6.547 kB / 469.9 MB, free: 94.11 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009318/0.7556, allocations: 150.3 kB / 470 MB, free: 94.11 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.788e-05/0.7557, allocations: 6.891 kB / 470.1 MB, free: 94.11 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000766/0.7564, allocations: 80.73 kB / 470.1 MB, free: 94.11 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.856e-05/0.7565, allocations: 23.67 kB / 470.2 MB, free: 94.11 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.511e-05/0.7566, allocations: 8.062 kB / 470.2 MB, free: 94.11 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0012/0.7578, allocations: 465.2 kB / 470.6 MB, free: 94.1 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.098e-05/0.7578, allocations: 3.125 kB / 470.6 MB, free: 94.1 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.808e-05/0.7578, allocations: 6.391 kB / 470.6 MB, free: 94.1 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008296/0.7587, allocations: 144.8 kB / 470.8 MB, free: 94.1 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.386e-05/0.7587, allocations: 8.359 kB / 470.8 MB, free: 94.1 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004432/0.7592, allocations: 59.45 kB / 470.8 MB, free: 94.1 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.856e-05/0.7593, allocations: 24.09 kB / 470.9 MB, free: 94.1 MB / 394.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.0001715/0.7594, allocations: 118 kB / 471 MB, free: 94 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002574/0.7597, allocations: 70.08 kB / 471 MB, free: 93.99 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000218/0.7599, allocations: 72.84 kB / 471.1 MB, free: 93.98 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.146e-05/0.76, allocations: 5.484 kB / 471.1 MB, free: 93.98 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.757e-06/0.76, allocations: 1.062 kB / 471.1 MB, free: 93.98 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.202e-05/0.76, allocations: 2.875 kB / 471.1 MB, free: 93.98 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001477/0.7615, allocations: 0.7229 MB / 471.8 MB, free: 93.72 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.729e-06/0.7615, allocations: 3.953 kB / 471.9 MB, free: 93.71 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001026/0.7626, allocations: 114.6 kB / 472 MB, free: 93.71 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.018e-05/0.7626, allocations: 3.094 kB / 472 MB, free: 93.71 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.904e-05/0.7627, allocations: 11.34 kB / 472 MB, free: 93.71 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.883e-06/0.7627, allocations: 4.281 kB / 472 MB, free: 93.71 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.927e-06/0.7627, allocations: 1.531 kB / 472 MB, free: 93.71 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001606/0.7643, allocations: 0.9422 MB / 472.9 MB, free: 93.39 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003255/0.7647, allocations: 193.6 kB / 473.1 MB, free: 93.29 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001253/0.7648, allocations: 6.25 kB / 473.1 MB, free: 93.29 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007594/0.7656, allocations: 60.16 kB / 473.2 MB, free: 93.29 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001518/0.7658, allocations: 34.38 kB / 473.2 MB, free: 93.29 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.136e-05/0.7658, allocations: 16 kB / 473.2 MB, free: 93.29 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0006093/0.7664, allocations: 351.5 kB / 473.6 MB, free: 93.2 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.058e-06/0.7665, allocations: 0 / 473.6 MB, free: 93.2 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001162/0.7676, allocations: 161.6 kB / 473.7 MB, free: 93.2 MB / 394.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.0001918/0.7678, allocations: 115.8 kB / 473.8 MB, free: 93.11 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001667/0.7695, allocations: 0.7061 MB / 474.5 MB, free: 93.1 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.102e-06/0.7696, allocations: 1.344 kB / 474.5 MB, free: 93.1 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004789/0.7701, allocations: 207 kB / 474.8 MB, free: 93.1 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001093/0.7712, allocations: 152.8 kB / 474.9 MB, free: 93.09 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002724/0.7739, allocations: 1.155 MB / 476.1 MB, free: 92.68 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004971/0.7744, allocations: 0.9452 MB / 477 MB, free: 91.98 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003253/0.7748, allocations: 39.73 kB / 477 MB, free: 91.97 MB / 394.7 MB Notification: Performance of SimCode: time 1.834e-06/0.7748, allocations: 4.719 kB / 477 MB, free: 91.97 MB / 394.7 MB Notification: Performance of Templates: time 0.01343/0.7882, allocations: 7.829 MB / 484.9 MB, free: 91.52 MB / 394.7 MB