Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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@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.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 2.009/2.009, allocations: 209.3 MB / 224.8 MB, free: 192 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004378/0.0004379, allocations: 12 kB / 282.6 MB, free: 9.59 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3636/0.364, allocations: 48.69 MB / 331.3 MB, free: 6.48 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1466/0.5106, allocations: 94.91 MB / 426.2 MB, free: 15.5 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002669/0.511, allocations: 83.95 kB / 426.3 MB, free: 15.42 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7326/1.244, allocations: 144.8 MB / 0.5577 GB, free: 38.18 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.79e-06/1.244, allocations: 4 kB / 0.5577 GB, free: 38.18 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0003117/1.244, allocations: 151.9 kB / 0.5578 GB, free: 38.03 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.01966/1.264, allocations: 6.979 MB / 0.5647 GB, free: 30.95 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.095e-05/1.264, allocations: 8.031 kB / 0.5647 GB, free: 30.95 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02001/1.284, allocations: 3.621 MB / 0.5682 GB, free: 27.31 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0201/1.304, allocations: 7.659 MB / 0.5757 GB, free: 19.58 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007312/1.305, allocations: 0.6014 MB / 0.5763 GB, free: 18.98 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003506/1.308, allocations: 0.7809 MB / 0.577 GB, free: 18.2 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05826/1.366, allocations: 21.84 MB / 0.5984 GB, free: 10.73 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004565/1.367, allocations: 91.16 kB / 0.5984 GB, free: 10.64 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003372/1.37, allocations: 375.8 kB / 0.5988 GB, free: 10.27 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004722/1.375, allocations: 1.949 MB / 0.6007 GB, free: 8.316 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05497/1.43, allocations: 17.7 MB / 0.618 GB, free: 6.594 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3618/1.792, allocations: 79.4 MB / 0.6955 GB, free: 24.36 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02467/1.817, allocations: 6.676 MB / 0.702 GB, free: 23.66 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02208/1.839, allocations: 9.768 MB / 0.7116 GB, free: 21.06 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.02051/1.859, allocations: 4.417 MB / 0.7159 GB, free: 20.37 MB / 426.7 MB Notification: Performance of pre-optimization done (n=287): time 7.62e-06/1.859, allocations: 0 / 0.7159 GB, free: 20.37 MB / 426.7 MB Notification: Performance of matching and sorting (n=323): time 0.09849/1.958, allocations: 25.11 MB / 0.7404 GB, free: 12.12 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.961e-05/1.958, allocations: 158.5 kB / 0.7406 GB, free: 11.96 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01193/1.97, allocations: 5.418 MB / 0.7459 GB, free: 10.12 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005554/1.971, allocations: 79.77 kB / 0.7459 GB, free: 10.05 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004687/1.975, allocations: 5.121 MB / 0.7509 GB, free: 6.121 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001529/1.977, allocations: 1.233 MB / 0.7521 GB, free: 5.227 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008767/1.978, allocations: 196.5 kB / 0.7523 GB, free: 5.074 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0006448/1.978, allocations: 0.7158 MB / 0.753 GB, free: 4.59 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007669/1.986, allocations: 2.915 MB / 0.7559 GB, free: 2.336 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01402/2, allocations: 8.652 MB / 0.7643 GB, free: 7.832 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01235/2.013, allocations: 4.875 MB / 0.7691 GB, free: 3.633 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002068/2.013, allocations: 63.47 kB / 0.7691 GB, free: 3.574 MB / 442.7 MB Notification: Performance of matching and sorting (n=1265) (initialization): time 0.0321/2.045, allocations: 11.18 MB / 0.7801 GB, free: 10.06 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002335/2.045, allocations: 121.8 kB / 0.7802 GB, free: 9.938 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003431/2.046, allocations: 204 kB / 0.7804 GB, free: 9.738 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004373/2.046, allocations: 300 kB / 0.7807 GB, free: 9.445 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01093/2.057, allocations: 2.405 MB / 0.783 GB, free: 7.355 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005324/2.058, allocations: 402.3 kB / 0.7834 GB, free: 7.004 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01036/2.068, allocations: 0.645 MB / 0.784 GB, free: 6.453 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00202/2.07, allocations: 0.56 MB / 0.7846 GB, free: 5.898 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.009372/2.079, allocations: 3.38 MB / 0.7879 GB, free: 2.93 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001312/2.081, allocations: 0.536 MB / 0.7884 GB, free: 2.387 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2952/2.376, allocations: 3.664 MB / 0.792 GB, free: 101.8 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.097e-05/2.376, allocations: 37.06 kB / 0.792 GB, free: 101.8 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.678e-05/2.376, allocations: 1 kB / 0.792 GB, free: 101.8 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.149e-05/2.376, allocations: 21.28 kB / 0.792 GB, free: 101.8 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03417/2.41, allocations: 13.65 MB / 0.8054 GB, free: 100 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.045e-05/2.41, allocations: 32.69 kB / 0.8054 GB, free: 100 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003504/2.414, allocations: 0.6101 MB / 0.806 GB, free: 100 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.801e-05/2.414, allocations: 51.84 kB / 0.806 GB, free: 100 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004457/2.415, allocations: 102.6 kB / 0.8061 GB, free: 100 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.439e-05/2.415, allocations: 69.69 kB / 0.8062 GB, free: 100 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.515e-05/2.415, allocations: 50.75 kB / 0.8062 GB, free: 100 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01328/2.428, allocations: 12.08 MB / 0.818 GB, free: 91.26 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002905/2.431, allocations: 0.8382 MB / 0.8189 GB, free: 91.17 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001465/2.432, allocations: 103.7 kB / 0.819 GB, free: 91.16 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003898/2.436, allocations: 216.3 kB / 0.8192 GB, free: 91.16 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006735/2.437, allocations: 293.8 kB / 0.8194 GB, free: 91.14 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002881/2.437, allocations: 132.4 kB / 0.8196 GB, free: 91.14 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.009059/2.446, allocations: 3.788 MB / 0.8233 GB, free: 90.93 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.136e-06/2.446, allocations: 0 / 0.8233 GB, free: 90.93 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01094/2.457, allocations: 1.562 MB / 0.8248 GB, free: 90.93 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.0009102/2.458, allocations: 276.8 kB / 0.8251 GB, free: 90.84 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01511/2.473, allocations: 6.586 MB / 0.8315 GB, free: 90.55 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 2.441e-05/2.474, allocations: 3.656 kB / 0.8315 GB, free: 90.55 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004408/2.478, allocations: 1.731 MB / 0.8332 GB, free: 90.41 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004884/2.483, allocations: 0.7152 MB / 0.8339 GB, free: 90.38 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03737/2.52, allocations: 19.33 MB / 0.8528 GB, free: 81.43 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01135/2.532, allocations: 5.263 MB / 0.8579 GB, free: 79.72 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001919/2.534, allocations: 479.9 kB / 0.8584 GB, free: 79.69 MB / 458.7 MB Notification: Performance of SimCode: time 2.096e-06/2.534, allocations: 0 / 0.8584 GB, free: 79.69 MB / 458.7 MB Notification: Performance of Templates: time 0.1322/2.666, allocations: 87.36 MB / 0.9437 GB, free: 13.27 MB / 458.7 MB