Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Forces.Damper2.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/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.1_cpp_ModelicaTest.MultiBody.Forces.Damper2") Notification: Performance of loadModel(ModelicaTest): time 1.944/1.944, allocations: 209.2 MB / 225.4 MB, free: 0.543 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004684/0.0004685, allocations: 12 kB / 283.1 MB, free: 9.691 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3669/0.3674, allocations: 48.7 MB / 331.8 MB, free: 6.496 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1695/0.537, allocations: 94.91 MB / 426.7 MB, free: 15.49 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000292/0.5374, allocations: 79.97 kB / 426.8 MB, free: 15.41 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8714/1.409, allocations: 146 MB / 0.5593 GB, free: 36.98 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.276e-06/1.409, allocations: 4 kB / 0.5593 GB, free: 36.98 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0003708/1.409, allocations: 144 kB / 0.5595 GB, free: 36.84 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: 2741 * Number of variables: 2741 Notification: Performance of Generate backend data structure: time 0.02892/1.438, allocations: 6.975 MB / 0.5663 GB, free: 29.77 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.656e-05/1.438, allocations: 12.03 kB / 0.5663 GB, free: 29.76 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03012/1.468, allocations: 3.617 MB / 0.5698 GB, free: 26.12 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02613/1.495, allocations: 7.669 MB / 0.5773 GB, free: 18.39 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008249/1.495, allocations: 0.5936 MB / 0.5779 GB, free: 17.79 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004452/1.5, allocations: 0.7848 MB / 0.5787 GB, free: 17.01 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07929/1.579, allocations: 21.9 MB / 0.6001 GB, free: 9.477 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006968/1.58, allocations: 95.09 kB / 0.6002 GB, free: 9.383 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005177/1.585, allocations: 379.8 kB / 0.6005 GB, free: 9.012 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00646/1.592, allocations: 1.937 MB / 0.6024 GB, free: 7.07 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.07541/1.667, allocations: 17.7 MB / 0.6197 GB, free: 5.34 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4782/2.145, allocations: 79.39 MB / 0.6972 GB, free: 24.17 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03227/2.178, allocations: 6.668 MB / 0.7037 GB, free: 23.47 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02855/2.206, allocations: 9.785 MB / 0.7133 GB, free: 20.42 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0264/2.233, allocations: 4.408 MB / 0.7176 GB, free: 19.73 MB / 426.7 MB Notification: Performance of pre-optimization done (n=287): time 6.783e-06/2.233, allocations: 3.719 kB / 0.7176 GB, free: 19.73 MB / 426.7 MB Notification: Performance of matching and sorting (n=323): time 0.1295/2.362, allocations: 24.68 MB / 0.7417 GB, free: 11.51 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.36e-05/2.362, allocations: 162.9 kB / 0.7419 GB, free: 11.34 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01632/2.379, allocations: 6.086 MB / 0.7478 GB, free: 9.211 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000734/2.38, allocations: 72.61 kB / 0.7479 GB, free: 9.145 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00584/2.385, allocations: 5.118 MB / 0.7529 GB, free: 5.215 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00208/2.388, allocations: 1.232 MB / 0.7541 GB, free: 4.227 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001269/2.389, allocations: 192 kB / 0.7543 GB, free: 4.039 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0008705/2.39, allocations: 0.7169 MB / 0.755 GB, free: 3.43 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01033/2.4, allocations: 2.917 MB / 0.7578 GB, free: 1.043 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02683/2.427, allocations: 9.23 MB / 0.7668 GB, free: 7.816 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01601/2.443, allocations: 4.884 MB / 0.7716 GB, free: 3.613 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002815/2.443, allocations: 56 kB / 0.7716 GB, free: 3.559 MB / 442.7 MB Notification: Performance of matching and sorting (n=1265) (initialization): time 0.03891/2.482, allocations: 11.18 MB / 0.7826 GB, free: 10.08 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002269/2.483, allocations: 124.5 kB / 0.7827 GB, free: 9.957 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004314/2.483, allocations: 204 kB / 0.7829 GB, free: 9.758 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004274/2.484, allocations: 304 kB / 0.7832 GB, free: 9.461 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01643/2.5, allocations: 2.401 MB / 0.7855 GB, free: 7.375 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005823/2.501, allocations: 399.3 kB / 0.7859 GB, free: 7.023 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01209/2.513, allocations: 0.649 MB / 0.7865 GB, free: 6.477 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00245/2.515, allocations: 0.5652 MB / 0.7871 GB, free: 5.918 MB / 458.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 () * 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.01147/2.527, allocations: 3.372 MB / 0.7904 GB, free: 2.68 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001547/2.528, allocations: 0.5398 MB / 0.7909 GB, free: 2.133 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.378/2.906, allocations: 3.482 MB / 0.7943 GB, free: 101.7 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.406e-05/2.906, allocations: 35.27 kB / 0.7943 GB, free: 101.7 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.703e-05/2.907, allocations: 1.469 kB / 0.7943 GB, free: 101.7 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.589e-05/2.907, allocations: 14.89 kB / 0.7943 GB, free: 101.7 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04303/2.95, allocations: 13.65 MB / 0.8077 GB, free: 99.9 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.227e-05/2.95, allocations: 32.94 kB / 0.8077 GB, free: 99.9 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004903/2.955, allocations: 0.6071 MB / 0.8083 GB, free: 99.9 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.762e-05/2.955, allocations: 51.53 kB / 0.8083 GB, free: 99.9 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005821/2.955, allocations: 96.83 kB / 0.8084 GB, free: 99.9 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.211e-05/2.956, allocations: 66.91 kB / 0.8085 GB, free: 99.9 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.27e-05/2.956, allocations: 60.75 kB / 0.8086 GB, free: 99.9 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01564/2.971, allocations: 6.11 MB / 0.8145 GB, free: 98.1 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003506/2.975, allocations: 0.8413 MB / 0.8154 GB, free: 98 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002174/2.977, allocations: 99.41 kB / 0.8154 GB, free: 98 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005566/2.983, allocations: 217.5 kB / 0.8157 GB, free: 98 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009681/2.984, allocations: 304.1 kB / 0.8159 GB, free: 97.98 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003512/2.984, allocations: 127.8 kB / 0.8161 GB, free: 97.98 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.01151/2.996, allocations: 3.792 MB / 0.8198 GB, free: 97.76 MB / 458.7 MB Notification: Performance of sort global known variables: time 9.82e-07/2.996, allocations: 0 / 0.8198 GB, free: 97.76 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01148/3.007, allocations: 1.56 MB / 0.8213 GB, free: 97.76 MB / 458.7 MB 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.001168/3.008, allocations: 279.1 kB / 0.8216 GB, free: 97.68 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01847/3.027, allocations: 6.586 MB / 0.828 GB, free: 97.39 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 3.269e-05/3.027, allocations: 2.938 kB / 0.828 GB, free: 97.39 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005456/3.032, allocations: 1.727 MB / 0.8297 GB, free: 97.26 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005976/3.038, allocations: 0.7096 MB / 0.8304 GB, free: 97.24 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04773/3.086, allocations: 19.4 MB / 0.8493 GB, free: 88.07 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01396/3.1, allocations: 5.267 MB / 0.8545 GB, free: 86.36 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002619/3.103, allocations: 470 kB / 0.8549 GB, free: 86.34 MB / 458.7 MB Notification: Performance of SimCode: time 2.324e-06/3.103, allocations: 3.25 kB / 0.8549 GB, free: 86.34 MB / 458.7 MB Notification: Performance of Templates: time 0.2079/3.311, allocations: 87.38 MB / 0.9402 GB, free: 19.17 MB / 458.7 MB