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.291/2.291, allocations: 234.9 MB / 250.5 MB, free: 9.551 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000439/0.0004392, allocations: 15.98 kB / 314.3 MB, free: 9.598 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3441/0.3446, allocations: 54.87 MB / 369.2 MB, free: 10.73 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Damper2): time 0.09564/0.4402, allocations: 71.76 MB / 440.9 MB, free: 2.777 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.04012/0.4804, allocations: 15.98 MB / 456.9 MB, free: 2.754 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01391/0.4943, allocations: 347.2 kB / 457.3 MB, free: 2.414 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01128/0.5057, allocations: 3.647 MB / 460.9 MB, free: 14.75 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.03405/0.5397, allocations: 10.05 MB / 471 MB, free: 4.672 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005305/0.5451, allocations: 1.069 MB / 472 MB, free: 3.602 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.2912/0.8363, allocations: 3.991 MB / 476 MB, free: 4.742 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01495/0.8513, allocations: 8.463 MB / 484.5 MB, free: 4.117 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003726/0.8551, allocations: 1.768 MB / 486.2 MB, free: 4.117 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004264/0.8594, allocations: 2.565 MB / 488.8 MB, free: 4.109 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00164/0.8611, allocations: 276.4 kB / 489.1 MB, free: 4.109 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002967/0.8641, allocations: 0.8367 MB / 489.9 MB, free: 4.105 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003654/0.8678, allocations: 2.801 MB / 492.7 MB, free: 4.105 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002287/0.8701, allocations: 1.416 MB / 494.1 MB, free: 4.074 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01121/0.8813, allocations: 9.312 MB / 0.4917 GB, free: 1.895 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.99e-06/0.8814, allocations: 0 / 0.4917 GB, free: 1.895 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.162e-06/0.8814, allocations: 0 / 0.4917 GB, free: 1.895 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0003327/0.8817, allocations: 0 / 0.4917 GB, free: 1.895 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.01568/0.8974, allocations: 6.748 MB / 0.4982 GB, free: 13.86 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.921e-05/0.8975, allocations: 11.44 kB / 0.4983 GB, free: 13.86 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01622/0.9137, allocations: 3.269 MB / 0.5014 GB, free: 12.41 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01013/0.9239, allocations: 4.377 MB / 0.5057 GB, free: 11.09 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004822/0.9244, allocations: 455 kB / 0.5062 GB, free: 11.08 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002242/0.9267, allocations: 0.5772 MB / 0.5067 GB, free: 11.07 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05699/0.9837, allocations: 21.54 MB / 0.5278 GB, free: 11.96 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003366/0.9841, allocations: 66.83 kB / 0.5278 GB, free: 11.93 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002132/0.9862, allocations: 291 kB / 0.5281 GB, free: 11.84 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00759/0.9938, allocations: 3.533 MB / 0.5315 GB, free: 8.926 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05249/1.046, allocations: 17.49 MB / 0.5486 GB, free: 11.85 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1186/1.165, allocations: 70.24 MB / 0.6172 GB, free: 0.7656 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.05532/1.22, allocations: 14.58 MB / 0.6315 GB, free: 2.789 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03178/1.252, allocations: 14.38 MB / 0.6455 GB, free: 4.207 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.05047/1.303, allocations: 12.47 MB / 0.6577 GB, free: 7.676 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=287): time 1.063e-05/1.303, allocations: 3.984 kB / 0.6577 GB, free: 7.672 MB / 0.5261 GB Notification: Performance of matching and sorting (n=323): time 0.4254/1.728, allocations: 43.63 MB / 0.7003 GB, free: 205.5 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.946e-05/1.728, allocations: 172.5 kB / 0.7005 GB, free: 205.3 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01133/1.74, allocations: 6.351 MB / 0.7067 GB, free: 199 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0006359/1.74, allocations: 73.7 kB / 0.7067 GB, free: 198.9 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.004412/1.745, allocations: 5.14 MB / 0.7117 GB, free: 193.8 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001546/1.746, allocations: 1.242 MB / 0.713 GB, free: 192.5 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000876/1.747, allocations: 192 kB / 0.7131 GB, free: 192.3 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0006369/1.748, allocations: 0.7168 MB / 0.7138 GB, free: 191.6 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007405/1.755, allocations: 3.304 MB / 0.7171 GB, free: 188.3 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01025/1.766, allocations: 9.093 MB / 0.7259 GB, free: 176.5 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0101/1.776, allocations: 5.246 MB / 0.7311 GB, free: 171.2 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001508/1.776, allocations: 64 kB / 0.7311 GB, free: 171.1 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1271) (initialization): time 0.02691/1.803, allocations: 12.09 MB / 0.7429 GB, free: 159 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001855/1.803, allocations: 129.3 kB / 0.7431 GB, free: 158.9 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002235/1.803, allocations: 204 kB / 0.7433 GB, free: 158.7 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001021/1.804, allocations: 0.5282 MB / 0.7438 GB, free: 158.1 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01014/1.815, allocations: 2.402 MB / 0.7461 GB, free: 155.7 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003117/1.818, allocations: 2.716 MB / 0.7488 GB, free: 152.9 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009083/1.827, allocations: 0.5601 MB / 0.7493 GB, free: 152.3 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001654/1.829, allocations: 0.5703 MB / 0.7499 GB, free: 151.7 MB / 0.5261 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.007482/1.836, allocations: 3.385 MB / 0.7532 GB, free: 148.3 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001023/1.837, allocations: 0.5437 MB / 0.7537 GB, free: 147.8 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01031/1.847, allocations: 4.483 MB / 0.7581 GB, free: 143.3 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.177e-05/1.848, allocations: 33.56 kB / 0.7581 GB, free: 143.2 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.331e-05/1.848, allocations: 7.875 kB / 0.7581 GB, free: 143.2 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.08e-05/1.848, allocations: 11.95 kB / 0.7581 GB, free: 143.2 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03096/1.879, allocations: 13.52 MB / 0.7713 GB, free: 129.3 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.395e-05/1.879, allocations: 28 kB / 0.7714 GB, free: 129.2 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003608/1.882, allocations: 0.6906 MB / 0.772 GB, free: 128.6 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.756e-05/1.882, allocations: 48 kB / 0.7721 GB, free: 128.5 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004161/1.883, allocations: 91.94 kB / 0.7722 GB, free: 128.4 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.498e-05/1.883, allocations: 59.78 kB / 0.7722 GB, free: 128.4 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.611e-05/1.883, allocations: 43.81 kB / 0.7723 GB, free: 128.3 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01151/1.894, allocations: 6.477 MB / 0.7786 GB, free: 121.3 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002636/1.897, allocations: 0.8764 MB / 0.7795 GB, free: 120.4 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001244/1.898, allocations: 87.98 kB / 0.7795 GB, free: 120.3 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003643/1.902, allocations: 187.8 kB / 0.7797 GB, free: 120.1 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006984/1.903, allocations: 280.4 kB / 0.78 GB, free: 119.9 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002756/1.903, allocations: 120 kB / 0.7801 GB, free: 119.8 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.008039/1.911, allocations: 3.987 MB / 0.784 GB, free: 115.8 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.042e-06/1.911, allocations: 0 / 0.784 GB, free: 115.8 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.009777/1.921, allocations: 1.596 MB / 0.7856 GB, free: 114.2 MB / 0.5261 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.000924/1.922, allocations: 281.1 kB / 0.7858 GB, free: 113.9 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01487/1.937, allocations: 7.333 MB / 0.793 GB, free: 106.6 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 2.123e-05/1.937, allocations: 8.312 kB / 0.793 GB, free: 106.6 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.004359/1.941, allocations: 1.838 MB / 0.7948 GB, free: 104.7 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004436/1.946, allocations: 0.6952 MB / 0.7955 GB, free: 104 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03544/1.981, allocations: 19.5 MB / 0.8145 GB, free: 84.12 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01042/1.992, allocations: 5.272 MB / 0.8197 GB, free: 78.81 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002078/1.994, allocations: 491.4 kB / 0.8201 GB, free: 78.33 MB / 0.5261 GB Notification: Performance of SimCode: time 1.792e-06/1.994, allocations: 0 / 0.8201 GB, free: 78.33 MB / 0.5261 GB Notification: Performance of Templates: time 0.4251/2.419, allocations: 103.7 MB / 0.9213 GB, free: 173.7 MB / 0.5261 GB