Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Forces.Damper2.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Forces.Damper2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|heatCapacitor.T|prismatic.s|prismatic.v|prismatic1.s|prismatic1.v|prismatic2.s|prismatic2.v|trapezoid.T_start|trapezoid.count",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Forces.Damper2") Notification: Performance of loadModel(ModelicaTest): time 2.27/2.27, allocations: 235 MB / 248.1 MB, free: 14.55 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.607e-05/2.629e-05, allocations: 0 / 309.7 MB, free: 1.539 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3298/0.3298, allocations: 54.86 MB / 364.5 MB, free: 5.34 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1961/0.526, allocations: 101.5 MB / 466.1 MB, free: 10.81 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002183/0.5262, allocations: 79.62 kB / 466.1 MB, free: 10.74 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8064/1.333, allocations: 145 MB / 0.5968 GB, free: 95.58 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.34e-06/1.333, allocations: 3.938 kB / 0.5968 GB, free: 95.58 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0003423/1.333, allocations: 145.8 kB / 0.597 GB, free: 95.57 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2741 * Number of variables: 2741 Notification: Performance of Generate backend data structure: time 0.02454/1.358, allocations: 6.63 MB / 0.6034 GB, free: 89.66 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.543e-05/1.358, allocations: 12.03 kB / 0.6035 GB, free: 89.64 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02543/1.383, allocations: 3.617 MB / 0.607 GB, free: 86.01 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02582/1.409, allocations: 7.638 MB / 0.6144 GB, free: 78.31 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007139/1.41, allocations: 0.5936 MB / 0.615 GB, free: 77.71 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003374/1.413, allocations: 0.7851 MB / 0.6158 GB, free: 76.93 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05534/1.469, allocations: 21.55 MB / 0.6368 GB, free: 53.75 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004023/1.469, allocations: 95.14 kB / 0.6369 GB, free: 53.66 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003158/1.472, allocations: 379.8 kB / 0.6373 GB, free: 53.29 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003902/1.476, allocations: 1.937 MB / 0.6392 GB, free: 51.34 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04617/1.522, allocations: 17.18 MB / 0.656 GB, free: 34.13 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4525/1.975, allocations: 79.42 MB / 0.7335 GB, free: 47.9 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02295/1.998, allocations: 6.508 MB / 0.7399 GB, free: 47.22 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004398/2.002, allocations: 2.06 MB / 0.7419 GB, free: 47.17 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02194/2.024, allocations: 9.779 MB / 0.7514 GB, free: 44.85 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.02016/2.044, allocations: 4.329 MB / 0.7557 GB, free: 44.71 MB / 474.7 MB Notification: Performance of pre-optimization done (n=287): time 1.03e-05/2.045, allocations: 3.969 kB / 0.7557 GB, free: 44.71 MB / 474.7 MB Notification: Performance of matching and sorting (n=323): time 0.09432/2.139, allocations: 22.71 MB / 0.7778 GB, free: 39.93 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.318e-05/2.139, allocations: 160 kB / 0.778 GB, free: 39.77 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01187/2.151, allocations: 5.264 MB / 0.7831 GB, free: 39.12 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005611/2.151, allocations: 78.89 kB / 0.7832 GB, free: 39.09 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004658/2.156, allocations: 5.123 MB / 0.7882 GB, free: 35.15 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001454/2.158, allocations: 1.231 MB / 0.7894 GB, free: 34.26 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009726/2.159, allocations: 196.7 kB / 0.7896 GB, free: 34.11 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0009961/2.16, allocations: 0.7222 MB / 0.7903 GB, free: 33.62 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00686/2.166, allocations: 2.641 MB / 0.7929 GB, free: 32.75 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009784/2.176, allocations: 8.361 MB / 0.8011 GB, free: 24.21 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009509/2.186, allocations: 4.67 MB / 0.8056 GB, free: 22.79 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001814/2.186, allocations: 60.69 kB / 0.8057 GB, free: 22.79 MB / 474.7 MB Notification: Performance of matching and sorting (n=1265) (initialization): time 0.02496/2.211, allocations: 10.61 MB / 0.816 GB, free: 16.2 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001846/2.211, allocations: 121.1 kB / 0.8162 GB, free: 16.08 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002584/2.212, allocations: 204 kB / 0.8163 GB, free: 15.88 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003321/2.212, allocations: 300.8 kB / 0.8166 GB, free: 15.59 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01032/2.222, allocations: 2.4 MB / 0.819 GB, free: 13.5 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003432/2.223, allocations: 404.7 kB / 0.8194 GB, free: 13.14 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01032/2.233, allocations: 0.6383 MB / 0.82 GB, free: 12.6 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001875/2.235, allocations: 0.5693 MB / 0.8205 GB, free: 12.04 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 925 * Number of states: 0 () * Number of discrete variables: 74 ($whenCondition1,$PRE.trapezoid.T_start,trapezoid.T_start,$PRE.trapezoid.count,trapezoid.count,fixedTranslation1.color[3],fixedTranslation1.color[2],fixedTranslation1.color[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],force2.connectionLineColor[3],force2.connectionLineColor[2],force2.connectionLineColor[1],force2.forceColor[3],force2.forceColor[2],force2.forceColor[1],prismatic2.boxColor[3],prismatic2.boxColor[2],prismatic2.boxColor[1],damper2.color_b[3],damper2.color_b[2],damper2.color_b[1],damper2.color_a[3],damper2.color_a[2],damper2.color_a[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],force1.connectionLineColor[3],force1.connectionLineColor[2],force1.connectionLineColor[1],force1.forceColor[3],force1.forceColor[2],force1.forceColor[1],prismatic1.boxColor[3],prismatic1.boxColor[2],prismatic1.boxColor[1],damper1.color_b[3],damper1.color_b[2],damper1.color_b[1],damper1.color_a[3],damper1.color_a[2],damper1.color_a[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],force.connectionLineColor[3],force.connectionLineColor[2],force.connectionLineColor[1],force.forceColor[3],force.forceColor[2],force.forceColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],damper.color_b[3],damper.color_b[2],damper.color_b[1],damper.color_a[3],damper.color_a[2],damper.color_a[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1240): * Single equations (assignments): 1236 * Array equations: 3 * Algorithm blocks: 1 * 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.002507/2.237, allocations: 0.8615 MB / 0.8214 GB, free: 11.18 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001042/2.238, allocations: 0.5399 MB / 0.8219 GB, free: 10.63 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007646/2.246, allocations: 3.217 MB / 0.8251 GB, free: 7.844 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.993e-05/2.246, allocations: 32 kB / 0.8251 GB, free: 7.812 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.724e-05/2.246, allocations: 0.6875 kB / 0.8251 GB, free: 7.812 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.421e-05/2.246, allocations: 14.16 kB / 0.8251 GB, free: 7.812 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03525/2.282, allocations: 13.58 MB / 0.8384 GB, free: 12.48 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.769e-05/2.282, allocations: 37.11 kB / 0.8384 GB, free: 12.45 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003508/2.285, allocations: 0.6129 MB / 0.839 GB, free: 11.93 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.864e-05/2.285, allocations: 48 kB / 0.839 GB, free: 11.88 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004697/2.286, allocations: 99.27 kB / 0.8391 GB, free: 11.79 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.126e-05/2.286, allocations: 66.8 kB / 0.8392 GB, free: 11.73 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.953e-05/2.286, allocations: 52.81 kB / 0.8392 GB, free: 11.68 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01604/2.302, allocations: 11.82 MB / 0.8508 GB, free: 14.62 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00328/2.305, allocations: 0.8394 MB / 0.8516 GB, free: 13.83 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001473/2.307, allocations: 103.4 kB / 0.8517 GB, free: 13.74 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004384/2.311, allocations: 216.6 kB / 0.8519 GB, free: 13.57 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008459/2.312, allocations: 309.5 kB / 0.8522 GB, free: 13.34 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003336/2.313, allocations: 130.7 kB / 0.8523 GB, free: 13.22 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.009902/2.322, allocations: 3.64 MB / 0.8559 GB, free: 9.996 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.029e-06/2.323, allocations: 0 / 0.8559 GB, free: 9.996 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01143/2.334, allocations: 1.564 MB / 0.8574 GB, free: 8.445 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 147 * Number of states: 7 (prismatic.s,prismatic.v,prismatic1.s,prismatic1.v,heatCapacitor.T,prismatic2.s,prismatic2.v) * Number of discrete variables: 3 ($whenCondition1,trapezoid.T_start,trapezoid.count) * Number of discrete states: 1 (trapezoid.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (304): * Single equations (assignments): 299 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.001005/2.335, allocations: 264.4 kB / 0.8577 GB, free: 8.188 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01465/2.35, allocations: 6.219 MB / 0.8637 GB, free: 2.438 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 2.747e-05/2.35, allocations: 4 kB / 0.8637 GB, free: 2.434 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.004402/2.354, allocations: 1.632 MB / 0.8653 GB, free: 0.9258 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005079/2.359, allocations: 0.7139 MB / 0.866 GB, free: 328 kB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03854/2.398, allocations: 13.62 MB / 0.8793 GB, free: 2.594 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0142/2.412, allocations: 5.254 MB / 0.8845 GB, free: 13.33 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002091/2.414, allocations: 483.4 kB / 0.8849 GB, free: 12.86 MB / 0.5261 GB Notification: Performance of SimCode: time 2.175e-06/2.414, allocations: 0 / 0.8849 GB, free: 12.86 MB / 0.5261 GB Notification: Performance of Templates: time 0.4526/2.867, allocations: 87.36 MB / 0.9702 GB, free: 152.5 MB / 0.5417 GB