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/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.069/2.069, allocations: 209.4 MB / 217.3 MB, free: 4.164 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.239e-05/2.224e-05, allocations: 4 kB / 271.3 MB, free: 14.12 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2627/0.2627, allocations: 48.69 MB / 320 MB, free: 14.42 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1731/0.4358, allocations: 94.15 MB / 414.2 MB, free: 2.281 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004017/0.4363, allocations: 71.97 kB / 414.2 MB, free: 2.211 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.744/1.18, allocations: 141.5 MB / 0.5427 GB, free: 17.09 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.065e-06/1.18, allocations: 0 / 0.5427 GB, free: 17.09 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0005439/1.181, allocations: 151.9 kB / 0.5428 GB, free: 16.94 MB / 378.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.03246/1.213, allocations: 6.622 MB / 0.5493 GB, free: 10.23 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.21e-05/1.214, allocations: 12.02 kB / 0.5493 GB, free: 10.22 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04239/1.256, allocations: 3.621 MB / 0.5529 GB, free: 6.582 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02082/1.277, allocations: 7.632 MB / 0.5603 GB, free: 14.88 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005898/1.277, allocations: 260 kB / 0.5606 GB, free: 14.63 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003289/1.281, allocations: 467.8 kB / 0.561 GB, free: 14.17 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02757/1.308, allocations: 11.31 MB / 0.572 GB, free: 2.848 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04166/1.35, allocations: 16.54 MB / 0.5882 GB, free: 0.6992 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004132/1.351, allocations: 95.06 kB / 0.5883 GB, free: 0.6055 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002675/1.353, allocations: 51.95 kB / 0.5883 GB, free: 0.5547 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.2568/1.61, allocations: 1.937 MB / 0.5902 GB, free: 65.82 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09757/1.708, allocations: 77.1 MB / 0.6655 GB, free: 20.38 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005585/1.713, allocations: 3.331 MB / 0.6688 GB, free: 19.01 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003507/1.717, allocations: 1.888 MB / 0.6706 GB, free: 18.28 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001597/1.718, allocations: 1.77 MB / 0.6723 GB, free: 16.7 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004229/1.723, allocations: 2.012 MB / 0.6743 GB, free: 16 MB / 410.7 MB Notification: Performance of pre-optimization done (n=290): time 8.155e-06/1.723, allocations: 4.219 kB / 0.6743 GB, free: 16 MB / 410.7 MB Notification: Performance of matching and sorting (n=320): time 0.06289/1.786, allocations: 18.11 MB / 0.692 GB, free: 9.25 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.301e-05/1.786, allocations: 156.7 kB / 0.6922 GB, free: 9.09 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00897/1.795, allocations: 4.444 MB / 0.6965 GB, free: 7.418 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005396/1.795, allocations: 32.55 kB / 0.6965 GB, free: 7.387 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004639/1.8, allocations: 5.277 MB / 0.7017 GB, free: 3.305 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001437/1.801, allocations: 1.185 MB / 0.7028 GB, free: 2.434 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007781/1.802, allocations: 0 / 0.7028 GB, free: 2.434 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.000673/1.803, allocations: 0.7272 MB / 0.7035 GB, free: 1.945 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005469/1.808, allocations: 2.498 MB / 0.706 GB, free: 1.066 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01144/1.82, allocations: 8.371 MB / 0.7142 GB, free: 7.918 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009847/1.83, allocations: 4.514 MB / 0.7186 GB, free: 4.348 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002324/1.83, allocations: 60 kB / 0.7186 GB, free: 4.289 MB / 426.7 MB Notification: Performance of matching and sorting (n=1298) (initialization): time 0.02581/1.856, allocations: 9.478 MB / 0.7279 GB, free: 11.9 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002328/1.856, allocations: 122.6 kB / 0.728 GB, free: 11.77 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003316/1.857, allocations: 223.6 kB / 0.7282 GB, free: 11.56 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004567/1.857, allocations: 308 kB / 0.7285 GB, free: 11.26 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01076/1.868, allocations: 2.467 MB / 0.7309 GB, free: 9.117 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000445/1.868, allocations: 413 kB / 0.7313 GB, free: 8.754 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009944/1.878, allocations: 473.6 kB / 0.7318 GB, free: 8.387 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002261/1.881, allocations: 0.5874 MB / 0.7323 GB, free: 7.805 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 960 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1273): * Single equations (assignments): 1269 * 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.003196/1.884, allocations: 0.6365 MB / 0.733 GB, free: 7.172 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001157/1.885, allocations: 493.6 kB / 0.7334 GB, free: 6.684 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007539/1.892, allocations: 2.863 MB / 0.7362 GB, free: 4.223 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.076e-05/1.893, allocations: 32 kB / 0.7363 GB, free: 4.191 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.415e-05/1.893, allocations: 0 / 0.7363 GB, free: 4.191 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.255e-05/1.893, allocations: 24.92 kB / 0.7363 GB, free: 4.184 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03128/1.924, allocations: 11.83 MB / 0.7478 GB, free: 10.01 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.136e-05/1.924, allocations: 31.89 kB / 0.7479 GB, free: 9.984 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003246/1.927, allocations: 0.5982 MB / 0.7484 GB, free: 9.473 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.396e-05/1.927, allocations: 48 kB / 0.7485 GB, free: 9.426 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004088/1.928, allocations: 57.72 kB / 0.7485 GB, free: 9.375 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.064e-05/1.928, allocations: 65.94 kB / 0.7486 GB, free: 9.316 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.697e-05/1.928, allocations: 43.81 kB / 0.7487 GB, free: 9.273 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2815/2.21, allocations: 10.04 MB / 0.7585 GB, free: 101.7 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002699/2.212, allocations: 0.7633 MB / 0.7592 GB, free: 101.6 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001306/2.214, allocations: 48.2 kB / 0.7592 GB, free: 101.6 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003984/2.218, allocations: 168.7 kB / 0.7594 GB, free: 101.6 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007901/2.219, allocations: 294.1 kB / 0.7597 GB, free: 101.6 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003445/2.219, allocations: 126.4 kB / 0.7598 GB, free: 101.6 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.007187/2.226, allocations: 2.897 MB / 0.7626 GB, free: 101.4 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.09e-06/2.226, allocations: 0 / 0.7626 GB, free: 101.4 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01088/2.237, allocations: 1.314 MB / 0.7639 GB, free: 101.4 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 138 * 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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (301): * Single equations (assignments): 296 * 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.0009056/2.238, allocations: 215 kB / 0.7641 GB, free: 101.3 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01155/2.25, allocations: 5.783 MB / 0.7698 GB, free: 101.2 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 2.49e-05/2.25, allocations: 6.188 kB / 0.7698 GB, free: 101.2 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003531/2.253, allocations: 1.533 MB / 0.7713 GB, free: 101.2 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004273/2.257, allocations: 0.5176 MB / 0.7718 GB, free: 101.2 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03301/2.291, allocations: 13.37 MB / 0.7848 GB, free: 97.66 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01208/2.303, allocations: 5.243 MB / 0.79 GB, free: 96.79 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001946/2.305, allocations: 451.1 kB / 0.7904 GB, free: 96.78 MB / 458.7 MB Notification: Performance of SimCode: time 2.409e-06/2.305, allocations: 0 / 0.7904 GB, free: 96.78 MB / 458.7 MB Notification: Performance of Templates: time 0.1269/2.432, allocations: 82.67 MB / 0.8711 GB, free: 51.5 MB / 458.7 MB