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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/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 2.09/2.09, allocations: 209.3 MB / 224.9 MB, free: 1.211 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004394/0.0004396, allocations: 12 kB / 282.6 MB, free: 9.73 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08681/0.08727, allocations: 48.72 MB / 331.3 MB, free: 8.922 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3325/0.4199, allocations: 83.42 MB / 414.7 MB, free: 1.73 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002239/0.4201, allocations: 67.97 kB / 414.8 MB, free: 1.664 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06446/0.4846, allocations: 14.62 MB / 429.4 MB, free: 3.031 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.622e-06/0.4847, allocations: 0 / 429.4 MB, free: 3.031 MB / 346.7 MB Notification: Performance of Transformations before backend: time 7.471e-05/0.4847, allocations: 23.94 kB / 429.4 MB, free: 3.008 MB / 346.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.00281/0.4876, allocations: 1.063 MB / 430.5 MB, free: 1.891 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.433e-05/0.4876, allocations: 8.031 kB / 430.5 MB, free: 1.883 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002829/0.4879, allocations: 87.02 kB / 430.6 MB, free: 1.797 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001624/0.4896, allocations: 0.558 MB / 431.1 MB, free: 1.195 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.796e-05/0.4897, allocations: 33 kB / 431.2 MB, free: 1.164 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000128/0.4898, allocations: 51.91 kB / 431.2 MB, free: 1.113 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001493/0.4913, allocations: 0.5569 MB / 431.8 MB, free: 0.5234 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.461e-05/0.4913, allocations: 4 kB / 431.8 MB, free: 0.5195 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.35e-05/0.4914, allocations: 16 kB / 431.8 MB, free: 0.5039 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.266e-05/0.4915, allocations: 15.98 kB / 431.8 MB, free: 500 kB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001485/0.493, allocations: 481.7 kB / 432.3 MB, free: 16 kB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004837/0.4978, allocations: 1.959 MB / 434.2 MB, free: 13.98 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001741/0.4996, allocations: 0.5857 MB / 434.8 MB, free: 13.37 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.021e-05/0.4997, allocations: 8.344 kB / 434.8 MB, free: 13.36 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.866e-05/0.4997, allocations: 46.59 kB / 434.9 MB, free: 13.3 MB / 362.7 MB Notification: Performance of pre-optimization done (n=42): time 3.507e-06/0.4998, allocations: 0 / 434.9 MB, free: 13.3 MB / 362.7 MB Notification: Performance of matching and sorting (n=43): time 0.003591/0.5034, allocations: 1.156 MB / 436 MB, free: 12.14 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001255/0.5035, allocations: 170.2 kB / 436.2 MB, free: 11.93 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001123/0.5047, allocations: 0.5229 MB / 436.7 MB, free: 11.41 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 7.834e-05/0.5048, allocations: 41.7 kB / 436.8 MB, free: 11.36 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003144/0.5051, allocations: 334.9 kB / 437.1 MB, free: 11.03 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002171/0.5053, allocations: 173.5 kB / 437.3 MB, free: 10.86 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.57e-05/0.5054, allocations: 8 kB / 437.3 MB, free: 10.85 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001863/0.5056, allocations: 334.8 kB / 437.6 MB, free: 10.52 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000883/0.5065, allocations: 277 kB / 437.9 MB, free: 10.25 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009841/0.5075, allocations: 389.7 kB / 438.2 MB, free: 9.824 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009532/0.5084, allocations: 313.2 kB / 438.5 MB, free: 9.52 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.911e-06/0.5085, allocations: 3.953 kB / 438.5 MB, free: 9.516 MB / 362.7 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.002184/0.5107, allocations: 0.7321 MB / 439.3 MB, free: 8.781 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.294e-05/0.5107, allocations: 4 kB / 439.3 MB, free: 8.777 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.21e-05/0.5107, allocations: 4 kB / 439.3 MB, free: 8.773 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.352e-05/0.5108, allocations: 4.281 kB / 439.3 MB, free: 8.77 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008353/0.5116, allocations: 151.8 kB / 439.4 MB, free: 8.621 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.456e-05/0.5116, allocations: 4 kB / 439.4 MB, free: 8.617 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007581/0.5124, allocations: 91.62 kB / 439.5 MB, free: 8.527 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.2e-05/0.5125, allocations: 19.98 kB / 439.6 MB, free: 8.508 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 () * Number of clocked 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.0004473/0.5129, allocations: 201 kB / 439.8 MB, free: 8.305 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002178/0.5132, allocations: 79.05 kB / 439.8 MB, free: 8.227 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001984/0.5134, allocations: 81.64 kB / 439.9 MB, free: 8.145 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.207e-05/0.5134, allocations: 7.984 kB / 439.9 MB, free: 8.137 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.173e-05/0.5134, allocations: 4 kB / 439.9 MB, free: 8.133 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.172e-06/0.5135, allocations: 3.938 kB / 439.9 MB, free: 8.129 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001784/0.5152, allocations: 0.8257 MB / 440.7 MB, free: 7.246 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.199e-06/0.5153, allocations: 4 kB / 440.8 MB, free: 7.242 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008922/0.5162, allocations: 107.9 kB / 440.9 MB, free: 7.137 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.69e-06/0.5162, allocations: 0 / 440.9 MB, free: 7.137 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.059e-05/0.5163, allocations: 23.98 kB / 440.9 MB, free: 7.113 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.537e-06/0.5163, allocations: 0 / 440.9 MB, free: 7.113 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.239e-06/0.5163, allocations: 4 kB / 440.9 MB, free: 7.109 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002947/0.5193, allocations: 1.214 MB / 442.1 MB, free: 5.859 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003969/0.5197, allocations: 192.3 kB / 442.3 MB, free: 5.652 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001411/0.5199, allocations: 12 kB / 442.3 MB, free: 5.641 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007767/0.5207, allocations: 63.94 kB / 442.4 MB, free: 5.578 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001389/0.5208, allocations: 39.89 kB / 442.4 MB, free: 5.539 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.964e-05/0.5209, allocations: 12 kB / 442.4 MB, free: 5.527 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.00091/0.5218, allocations: 435 kB / 442.8 MB, free: 5.105 MB / 362.7 MB Notification: Performance of sort global known variables: time 9.51e-07/0.5218, allocations: 0 / 442.8 MB, free: 5.105 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0007736/0.5226, allocations: 112 kB / 442.9 MB, free: 4.996 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 () * Number of clocked 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.0002179/0.5228, allocations: 123.8 kB / 443.1 MB, free: 4.863 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001933/0.5248, allocations: 0.6211 MB / 443.7 MB, free: 4.242 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.298e-06/0.5248, allocations: 0 / 443.7 MB, free: 4.242 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000914/0.5257, allocations: 295.9 kB / 444 MB, free: 3.953 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001108/0.5269, allocations: 155.8 kB / 444.1 MB, free: 3.805 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003772/0.5306, allocations: 1.684 MB / 445.8 MB, free: 2.078 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007885/0.5315, allocations: 0.9489 MB / 446.8 MB, free: 1.105 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000376/0.5319, allocations: 47.42 kB / 446.8 MB, free: 1.059 MB / 362.7 MB Notification: Performance of SimCode: time 1.663e-06/0.5319, allocations: 0 / 446.8 MB, free: 1.059 MB / 362.7 MB Notification: Performance of Templates: time 0.01631/0.5482, allocations: 8.001 MB / 454.8 MB, free: 9.066 MB / 378.7 MB