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.236/2.236, allocations: 234.9 MB / 250.5 MB, free: 9.465 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006998/0.0007002, allocations: 16 kB / 314.4 MB, free: 9.469 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3005/0.3012, allocations: 54.86 MB / 369.3 MB, free: 10.7 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1516/0.4528, allocations: 101.6 MB / 470.9 MB, free: 4.938 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002424/0.4531, allocations: 83.89 kB / 471 MB, free: 4.855 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8055/1.259, allocations: 144.8 MB / 0.6014 GB, free: 0.6953 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.404e-06/1.259, allocations: 0 / 0.6014 GB, free: 0.6953 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0003802/1.259, allocations: 147.9 kB / 0.6015 GB, free: 0.5508 MB / 426.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.02294/1.282, allocations: 6.971 MB / 0.6083 GB, free: 9.484 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.441e-05/1.282, allocations: 12.03 kB / 0.6083 GB, free: 9.473 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02193/1.304, allocations: 3.621 MB / 0.6119 GB, free: 5.836 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02362/1.328, allocations: 7.667 MB / 0.6194 GB, free: 14.1 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009434/1.329, allocations: 0.5936 MB / 0.6199 GB, free: 13.5 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003639/1.332, allocations: 0.7809 MB / 0.6207 GB, free: 12.72 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3967/1.729, allocations: 21.84 MB / 0.642 GB, free: 62.01 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004456/1.73, allocations: 96.2 kB / 0.6421 GB, free: 62.01 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003117/1.733, allocations: 379 kB / 0.6425 GB, free: 62.01 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004233/1.737, allocations: 1.938 MB / 0.6444 GB, free: 61.99 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05055/1.788, allocations: 17.7 MB / 0.6617 GB, free: 61.94 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1/1.888, allocations: 79.41 MB / 0.7392 GB, free: 27.02 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02441/1.912, allocations: 6.671 MB / 0.7457 GB, free: 25.13 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02137/1.934, allocations: 9.782 MB / 0.7553 GB, free: 20.34 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.02002/1.954, allocations: 4.408 MB / 0.7596 GB, free: 19.65 MB / 474.7 MB Notification: Performance of pre-optimization done (n=287): time 8.037e-06/1.954, allocations: 0 / 0.7596 GB, free: 19.65 MB / 474.7 MB Notification: Performance of matching and sorting (n=323): time 0.1008/2.054, allocations: 25.11 MB / 0.7841 GB, free: 3.273 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001336/2.055, allocations: 165.8 kB / 0.7843 GB, free: 3.082 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01673/2.071, allocations: 5.555 MB / 0.7897 GB, free: 14.83 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005787/2.072, allocations: 77.39 kB / 0.7898 GB, free: 14.75 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.006524/2.079, allocations: 5.126 MB / 0.7948 GB, free: 10.14 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001948/2.081, allocations: 1.232 MB / 0.796 GB, free: 9.051 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001068/2.082, allocations: 196 kB / 0.7962 GB, free: 8.859 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.001033/2.083, allocations: 0.7139 MB / 0.7969 GB, free: 8.254 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008612/2.091, allocations: 2.915 MB / 0.7997 GB, free: 5.859 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01448/2.106, allocations: 8.635 MB / 0.8081 GB, free: 11 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0122/2.118, allocations: 4.874 MB / 0.8129 GB, free: 6.102 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001851/2.118, allocations: 56 kB / 0.8129 GB, free: 6.047 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1265) (initialization): time 0.3308/2.449, allocations: 11.14 MB / 0.8238 GB, free: 99.74 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001916/2.449, allocations: 126.2 kB / 0.8239 GB, free: 99.71 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003176/2.45, allocations: 202.5 kB / 0.8241 GB, free: 99.71 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000428/2.45, allocations: 299.2 kB / 0.8244 GB, free: 99.71 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01061/2.461, allocations: 2.403 MB / 0.8268 GB, free: 99.71 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004698/2.461, allocations: 402.2 kB / 0.8272 GB, free: 99.71 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00995/2.471, allocations: 0.6456 MB / 0.8278 GB, free: 99.71 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001813/2.473, allocations: 0.5627 MB / 0.8283 GB, free: 99.71 MB / 0.4948 GB 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 () * Number of clocked 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.008069/2.481, allocations: 3.37 MB / 0.8316 GB, free: 99.59 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001017/2.482, allocations: 0.5512 MB / 0.8322 GB, free: 99.59 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009427/2.492, allocations: 3.479 MB / 0.8356 GB, free: 99.39 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.601e-05/2.492, allocations: 34.55 kB / 0.8356 GB, free: 99.39 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.477e-05/2.492, allocations: 2.781 kB / 0.8356 GB, free: 99.39 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.368e-05/2.492, allocations: 25.36 kB / 0.8356 GB, free: 99.39 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03198/2.524, allocations: 13.64 MB / 0.8489 GB, free: 97.61 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.36e-05/2.524, allocations: 33.06 kB / 0.849 GB, free: 97.61 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003332/2.527, allocations: 0.6072 MB / 0.8496 GB, free: 97.61 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.056e-05/2.527, allocations: 49.69 kB / 0.8496 GB, free: 97.61 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003993/2.528, allocations: 103.3 kB / 0.8497 GB, free: 97.61 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.108e-05/2.528, allocations: 67.88 kB / 0.8498 GB, free: 97.61 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.052e-05/2.528, allocations: 50.94 kB / 0.8498 GB, free: 97.61 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01253/2.541, allocations: 12.08 MB / 0.8616 GB, free: 88.86 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003088/2.544, allocations: 0.8387 MB / 0.8624 GB, free: 88.52 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001631/2.545, allocations: 100.4 kB / 0.8625 GB, free: 88.52 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00417/2.55, allocations: 218.7 kB / 0.8628 GB, free: 88.52 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007327/2.55, allocations: 299 kB / 0.863 GB, free: 88.49 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003273/2.551, allocations: 131.1 kB / 0.8632 GB, free: 88.49 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.009543/2.56, allocations: 3.793 MB / 0.8669 GB, free: 88.28 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.391e-06/2.56, allocations: 0 / 0.8669 GB, free: 88.28 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01095/2.571, allocations: 1.557 MB / 0.8684 GB, free: 88.28 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) * Number of clocked states: 0 () * 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.0009886/2.572, allocations: 282 kB / 0.8687 GB, free: 88.19 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.0148/2.587, allocations: 6.583 MB / 0.8751 GB, free: 88.07 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 2.662e-05/2.587, allocations: 7.406 kB / 0.8751 GB, free: 88.07 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.004396/2.592, allocations: 1.73 MB / 0.8768 GB, free: 87.95 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005185/2.597, allocations: 0.7026 MB / 0.8775 GB, free: 87.93 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04006/2.637, allocations: 19.33 MB / 0.8963 GB, free: 78.91 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01212/2.649, allocations: 5.26 MB / 0.9015 GB, free: 77.2 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002009/2.651, allocations: 475.4 kB / 0.9019 GB, free: 77.18 MB / 0.4948 GB Notification: Performance of SimCode: time 1.799e-06/2.651, allocations: 0 / 0.9019 GB, free: 77.18 MB / 0.4948 GB Notification: Performance of Templates: time 0.1339/2.785, allocations: 87.38 MB / 0.9873 GB, free: 10.44 MB / 0.4948 GB