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 1.888/1.888, allocations: 209.3 MB / 224.8 MB, free: 204 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004533/0.0004535, allocations: 12 kB / 282.5 MB, free: 9.633 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.299/0.2995, allocations: 48.7 MB / 331.2 MB, free: 6.508 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Damper2): time 0.1061/0.4057, allocations: 71.74 MB / 402.9 MB, free: 6.629 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.04313/0.4489, allocations: 15.94 MB / 418.9 MB, free: 6.637 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01551/0.4644, allocations: 351.2 kB / 419.2 MB, free: 6.293 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01187/0.4763, allocations: 3.647 MB / 422.9 MB, free: 2.629 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.03548/0.5118, allocations: 10.06 MB / 432.9 MB, free: 8.547 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005599/0.5175, allocations: 1.077 MB / 434 MB, free: 7.469 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.009148/0.5267, allocations: 3.99 MB / 438 MB, free: 3.473 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01662/0.5433, allocations: 8.48 MB / 446.5 MB, free: 10.91 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00417/0.5476, allocations: 1.764 MB / 448.2 MB, free: 9.141 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005063/0.5527, allocations: 2.57 MB / 450.8 MB, free: 6.562 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001555/0.5543, allocations: 276 kB / 451.1 MB, free: 6.293 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003046/0.5573, allocations: 0.831 MB / 451.9 MB, free: 5.461 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004489/0.5618, allocations: 2.794 MB / 454.7 MB, free: 2.66 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00271/0.5646, allocations: 1.415 MB / 456.1 MB, free: 1.234 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01434/0.579, allocations: 9.328 MB / 465.4 MB, free: 7.883 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.083e-06/0.579, allocations: 0 / 465.4 MB, free: 7.883 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.073e-06/0.579, allocations: 0 / 465.4 MB, free: 7.883 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.000263/0.5793, allocations: 0 / 465.4 MB, free: 7.883 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.01636/0.5957, allocations: 6.747 MB / 472.2 MB, free: 1.047 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.126e-05/0.5957, allocations: 8.031 kB / 472.2 MB, free: 1.039 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.5719/1.168, allocations: 3.261 MB / 475.5 MB, free: 26.79 MB / 394.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009942/1.178, allocations: 4.375 MB / 479.8 MB, free: 26.16 MB / 394.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005211/1.178, allocations: 456.1 kB / 480.3 MB, free: 26.14 MB / 394.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002057/1.18, allocations: 0.5771 MB / 480.8 MB, free: 26.14 MB / 394.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05704/1.237, allocations: 21.54 MB / 0.4906 GB, free: 22.89 MB / 394.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004369/1.238, allocations: 74 kB / 0.4907 GB, free: 22.88 MB / 394.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002225/1.24, allocations: 278.9 kB / 0.491 GB, free: 22.88 MB / 394.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.01268/1.253, allocations: 3.536 MB / 0.4944 GB, free: 22.49 MB / 394.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.07064/1.324, allocations: 17.5 MB / 0.5115 GB, free: 11.36 MB / 394.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1116/1.435, allocations: 70.24 MB / 0.5801 GB, free: 296 kB / 442.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.05407/1.489, allocations: 14.58 MB / 0.5943 GB, free: 2.945 MB / 458.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02922/1.519, allocations: 14.39 MB / 0.6084 GB, free: 8.336 MB / 474.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.04953/1.568, allocations: 12.47 MB / 0.6206 GB, free: 12.6 MB / 490.8 MB Notification: Performance of pre-optimization done (n=287): time 7.903e-06/1.568, allocations: 0 / 0.6206 GB, free: 12.6 MB / 490.8 MB Notification: Performance of matching and sorting (n=323): time 0.395/1.963, allocations: 43.63 MB / 0.6632 GB, free: 209.7 MB / 0.4949 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.868e-05/1.963, allocations: 160.9 kB / 0.6633 GB, free: 209.6 MB / 0.4949 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01169/1.975, allocations: 6.353 MB / 0.6695 GB, free: 207.3 MB / 0.4949 GB Notification: Performance of collectPreVariables (initialization): time 0.0005771/1.976, allocations: 71.12 kB / 0.6696 GB, free: 207.2 MB / 0.4949 GB Notification: Performance of collectInitialEqns (initialization): time 0.004201/1.98, allocations: 5.141 MB / 0.6746 GB, free: 203.3 MB / 0.4949 GB Notification: Performance of collectInitialBindings (initialization): time 0.001582/1.981, allocations: 1.24 MB / 0.6758 GB, free: 202.4 MB / 0.4949 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007726/1.982, allocations: 199.4 kB / 0.676 GB, free: 202.2 MB / 0.4949 GB Notification: Performance of setup shared object (initialization): time 0.0005531/1.983, allocations: 0.7204 MB / 0.6767 GB, free: 201.7 MB / 0.4949 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007963/1.991, allocations: 3.298 MB / 0.6799 GB, free: 200.7 MB / 0.4949 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01048/2.001, allocations: 9.093 MB / 0.6888 GB, free: 191.9 MB / 0.4949 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01058/2.012, allocations: 5.248 MB / 0.6939 GB, free: 189.5 MB / 0.4949 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001485/2.012, allocations: 60 kB / 0.694 GB, free: 189.5 MB / 0.4949 GB Notification: Performance of matching and sorting (n=1271) (initialization): time 0.02637/2.039, allocations: 12.09 MB / 0.7058 GB, free: 177.7 MB / 0.4949 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001872/2.039, allocations: 124.7 kB / 0.7059 GB, free: 177.6 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002291/2.039, allocations: 204 kB / 0.7061 GB, free: 177.4 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00101/2.04, allocations: 0.5287 MB / 0.7066 GB, free: 176.9 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00942/2.049, allocations: 2.402 MB / 0.709 GB, free: 174.4 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003057/2.053, allocations: 2.713 MB / 0.7116 GB, free: 171.6 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008978/2.062, allocations: 0.5657 MB / 0.7122 GB, free: 171 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001461/2.063, allocations: 0.5727 MB / 0.7127 GB, free: 170.5 MB / 0.4949 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 931 * 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 (1243): * Single equations (assignments): 1238 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.006689/2.07, allocations: 3.378 MB / 0.716 GB, free: 167.1 MB / 0.4949 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001075/2.071, allocations: 0.5399 MB / 0.7166 GB, free: 166.5 MB / 0.4949 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009519/2.08, allocations: 4.483 MB / 0.7209 GB, free: 162 MB / 0.4949 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.314e-05/2.081, allocations: 40.89 kB / 0.721 GB, free: 162 MB / 0.4949 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.225e-05/2.081, allocations: 3.984 kB / 0.721 GB, free: 162 MB / 0.4949 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.487e-05/2.081, allocations: 19.95 kB / 0.721 GB, free: 161.9 MB / 0.4949 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02863/2.109, allocations: 13.51 MB / 0.7342 GB, free: 148 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.48e-05/2.109, allocations: 28 kB / 0.7342 GB, free: 148 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00341/2.113, allocations: 0.6872 MB / 0.7349 GB, free: 147.3 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.458e-05/2.113, allocations: 44 kB / 0.7349 GB, free: 147.3 MB / 0.4949 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003894/2.113, allocations: 98.92 kB / 0.735 GB, free: 147.2 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.343e-05/2.113, allocations: 59.78 kB / 0.7351 GB, free: 147.1 MB / 0.4949 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.649e-05/2.113, allocations: 43.81 kB / 0.7351 GB, free: 147.1 MB / 0.4949 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01105/2.124, allocations: 6.48 MB / 0.7415 GB, free: 140.1 MB / 0.4949 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002556/2.127, allocations: 0.8725 MB / 0.7423 GB, free: 139.2 MB / 0.4949 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001121/2.128, allocations: 90.16 kB / 0.7424 GB, free: 139.1 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003548/2.132, allocations: 183.8 kB / 0.7426 GB, free: 138.9 MB / 0.4949 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007555/2.133, allocations: 284.4 kB / 0.7428 GB, free: 138.6 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002855/2.133, allocations: 123.9 kB / 0.743 GB, free: 138.5 MB / 0.4949 GB Notification: Performance of sorting global known variables: time 0.00786/2.141, allocations: 3.994 MB / 0.7469 GB, free: 134.5 MB / 0.4949 GB Notification: Performance of sort global known variables: time 1.331e-06/2.141, allocations: 0 / 0.7469 GB, free: 134.5 MB / 0.4949 GB Notification: Performance of remove unused functions: time 0.009798/2.151, allocations: 1.597 MB / 0.7484 GB, free: 132.9 MB / 0.4949 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 123 * 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 (308): * Single equations (assignments): 303 * 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.000884/2.151, allocations: 274.1 kB / 0.7487 GB, free: 132.6 MB / 0.4949 GB Notification: Performance of simCode: created initialization part: time 0.01453/2.166, allocations: 7.336 MB / 0.7559 GB, free: 125.3 MB / 0.4949 GB Notification: Performance of simCode: created event and clocks part: time 2.054e-05/2.166, allocations: 4 kB / 0.7559 GB, free: 125.3 MB / 0.4949 GB Notification: Performance of simCode: created simulation system equations: time 0.004271/2.17, allocations: 1.833 MB / 0.7576 GB, free: 123.5 MB / 0.4949 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004246/2.175, allocations: 0.6964 MB / 0.7583 GB, free: 122.8 MB / 0.4949 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03412/2.209, allocations: 19.51 MB / 0.7774 GB, free: 102.9 MB / 0.4949 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009723/2.219, allocations: 5.266 MB / 0.7825 GB, free: 97.56 MB / 0.4949 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00201/2.221, allocations: 487.4 kB / 0.783 GB, free: 97.08 MB / 0.4949 GB Notification: Performance of SimCode: time 1.75e-06/2.221, allocations: 0 / 0.783 GB, free: 97.08 MB / 0.4949 GB Notification: Performance of Templates: time 0.4036/2.624, allocations: 103.6 MB / 0.8842 GB, free: 172.9 MB / 0.4949 GB