Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/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.325/2.325, allocations: 234.9 MB / 251.1 MB, free: 9.711 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004404/0.0004406, allocations: 12 kB / 314.9 MB, free: 9.766 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.432/0.4325, allocations: 54.85 MB / 369.8 MB, free: 12.81 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2133/0.6459, allocations: 89.64 MB / 459.4 MB, free: 3.035 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002678/0.6462, allocations: 67.97 kB / 459.5 MB, free: 2.969 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07136/0.7176, allocations: 13.77 MB / 473.3 MB, free: 5.156 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.665e-06/0.7176, allocations: 0 / 473.3 MB, free: 5.156 MB / 394.7 MB Notification: Performance of Transformations before backend: time 9.358e-05/0.7177, allocations: 23.94 kB / 473.3 MB, free: 5.133 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.003957/0.7217, allocations: 1.03 MB / 474.3 MB, free: 4.055 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.661e-05/0.7218, allocations: 8.031 kB / 474.3 MB, free: 4.047 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003765/0.7222, allocations: 86.97 kB / 474.4 MB, free: 3.961 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002031/0.7242, allocations: 0.5424 MB / 475 MB, free: 3.375 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.24e-05/0.7243, allocations: 33 kB / 475 MB, free: 3.34 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001755/0.7245, allocations: 51.91 kB / 475 MB, free: 3.289 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001934/0.7265, allocations: 0.556 MB / 475.6 MB, free: 2.707 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.927e-05/0.7266, allocations: 0 / 475.6 MB, free: 2.707 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.91e-05/0.7266, allocations: 16 kB / 475.6 MB, free: 2.691 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.875e-05/0.7267, allocations: 12 kB / 475.6 MB, free: 2.68 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002088/0.7288, allocations: 477.8 kB / 476.1 MB, free: 2.215 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006465/0.7353, allocations: 1.971 MB / 478.1 MB, free: 172 kB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002363/0.7377, allocations: 0.5806 MB / 478.6 MB, free: 15.56 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.018e-05/0.7378, allocations: 4.062 kB / 478.6 MB, free: 15.56 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.757e-05/0.7379, allocations: 42.59 kB / 478.7 MB, free: 15.51 MB / 410.7 MB Notification: Performance of pre-optimization done (n=42): time 3.487e-06/0.7379, allocations: 0 / 478.7 MB, free: 15.51 MB / 410.7 MB Notification: Performance of matching and sorting (n=43): time 0.004956/0.7429, allocations: 1.155 MB / 479.8 MB, free: 14.34 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001104/0.743, allocations: 144.4 kB / 480 MB, free: 14.17 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00156/0.7446, allocations: 0.5901 MB / 480.6 MB, free: 13.57 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001831/0.7448, allocations: 37.7 kB / 480.6 MB, free: 13.53 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003459/0.7452, allocations: 342.8 kB / 480.9 MB, free: 13.19 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002949/0.7455, allocations: 169.5 kB / 481.1 MB, free: 13.02 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.544e-05/0.7456, allocations: 8 kB / 481.1 MB, free: 13.02 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001713/0.7458, allocations: 330.8 kB / 481.4 MB, free: 12.68 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001281/0.7471, allocations: 280.9 kB / 481.7 MB, free: 12.41 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001426/0.7485, allocations: 388.9 kB / 482.1 MB, free: 11.99 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001369/0.7499, allocations: 309.2 kB / 482.4 MB, free: 11.69 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.821e-06/0.75, allocations: 4 kB / 482.4 MB, free: 11.69 MB / 410.7 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.003114/0.7531, allocations: 0.7213 MB / 483.1 MB, free: 10.96 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001659/0.7533, allocations: 171.3 kB / 483.3 MB, free: 10.75 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.224e-05/0.7533, allocations: 4 kB / 483.3 MB, free: 10.75 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.63e-05/0.7534, allocations: 15.94 kB / 483.3 MB, free: 10.73 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001348/0.7548, allocations: 147.8 kB / 483.5 MB, free: 10.59 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.416e-05/0.7548, allocations: 11.92 kB / 483.5 MB, free: 10.58 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001125/0.7559, allocations: 91.62 kB / 483.6 MB, free: 10.49 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.006e-05/0.7561, allocations: 16 kB / 483.6 MB, free: 10.47 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.455e-05/0.7561, allocations: 4 kB / 483.6 MB, free: 10.47 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002712/0.7588, allocations: 0.6645 MB / 484.2 MB, free: 9.805 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.025e-05/0.7589, allocations: 0 / 484.2 MB, free: 9.805 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.848e-05/0.7589, allocations: 8 kB / 484.2 MB, free: 9.797 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001269/0.7602, allocations: 148 kB / 484.4 MB, free: 9.652 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.024e-05/0.7602, allocations: 4 kB / 484.4 MB, free: 9.648 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006849/0.7609, allocations: 79.59 kB / 484.5 MB, free: 9.57 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.619e-05/0.761, allocations: 19.98 kB / 484.5 MB, free: 9.551 MB / 410.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.0006406/0.7617, allocations: 272.9 kB / 484.8 MB, free: 9.273 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003038/0.762, allocations: 71.16 kB / 484.8 MB, free: 9.203 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002994/0.7623, allocations: 89.66 kB / 484.9 MB, free: 9.105 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.013e-05/0.7623, allocations: 4 kB / 484.9 MB, free: 9.102 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.237e-06/0.7623, allocations: 0 / 484.9 MB, free: 9.102 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.905e-06/0.7624, allocations: 0 / 484.9 MB, free: 9.102 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002283/0.7647, allocations: 0.8219 MB / 485.7 MB, free: 8.223 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.026e-05/0.7647, allocations: 0 / 485.7 MB, free: 8.223 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001418/0.7661, allocations: 115.9 kB / 485.9 MB, free: 8.109 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.368e-05/0.7662, allocations: 4 kB / 485.9 MB, free: 8.105 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001136/0.7663, allocations: 11.98 kB / 485.9 MB, free: 8.094 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.033e-05/0.7663, allocations: 4 kB / 485.9 MB, free: 8.09 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/0.7664, allocations: 0 / 485.9 MB, free: 8.09 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004065/0.7704, allocations: 1.182 MB / 487.1 MB, free: 6.891 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005502/0.771, allocations: 192.3 kB / 487.2 MB, free: 6.684 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000189/0.7713, allocations: 16 kB / 487.3 MB, free: 6.668 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001111/0.7724, allocations: 59.94 kB / 487.3 MB, free: 6.609 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002107/0.7726, allocations: 39.94 kB / 487.4 MB, free: 6.57 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.797e-05/0.7727, allocations: 19.98 kB / 487.4 MB, free: 6.551 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001171/0.7739, allocations: 423 kB / 487.8 MB, free: 6.145 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.012e-06/0.7739, allocations: 0 / 487.8 MB, free: 6.145 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001298/0.7752, allocations: 195.9 kB / 488 MB, free: 5.953 MB / 410.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.0002739/0.7755, allocations: 119.1 kB / 488.1 MB, free: 5.828 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004222/0.7798, allocations: 0.9725 MB / 489.1 MB, free: 4.855 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.685e-06/0.7798, allocations: 0 / 489.1 MB, free: 4.855 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001312/0.7812, allocations: 299.8 kB / 489.4 MB, free: 4.562 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001569/0.7828, allocations: 158.5 kB / 489.5 MB, free: 4.41 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004853/0.7876, allocations: 1.678 MB / 491.2 MB, free: 2.691 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000807/0.7885, allocations: 0.9455 MB / 492.1 MB, free: 1.715 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004784/0.789, allocations: 43.44 kB / 492.2 MB, free: 1.672 MB / 410.7 MB Notification: Performance of SimCode: time 1.423e-06/0.7891, allocations: 0 / 492.2 MB, free: 1.672 MB / 410.7 MB Notification: Performance of Templates: time 0.02179/0.8109, allocations: 7.949 MB / 0.4884 GB, free: 9.738 MB / 426.7 MB