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/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.155/2.155, allocations: 235.1 MB / 243 MB, free: 9.57 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 1.881e-05/1.887e-05, allocations: 4 kB / 303.2 MB, free: 13.27 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2944/0.2945, allocations: 54.85 MB / 358 MB, free: 14.95 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1945/0.4891, allocations: 100.9 MB / 458.9 MB, free: 9.945 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002451/0.4894, allocations: 79.95 kB / 459 MB, free: 9.867 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7701/1.259, allocations: 141.5 MB / 0.5864 GB, free: 12.29 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.142e-06/1.26, allocations: 0 / 0.5864 GB, free: 12.29 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0003745/1.26, allocations: 151.9 kB / 0.5865 GB, free: 12.14 MB / 426.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.02125/1.281, allocations: 6.622 MB / 0.593 GB, free: 5.426 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.194e-05/1.281, allocations: 16.03 kB / 0.593 GB, free: 5.41 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02191/1.303, allocations: 3.613 MB / 0.5965 GB, free: 1.781 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02364/1.327, allocations: 7.641 MB / 0.604 GB, free: 10.07 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005617/1.327, allocations: 263.9 kB / 0.6043 GB, free: 9.816 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003374/1.331, allocations: 467.9 kB / 0.6047 GB, free: 9.359 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02855/1.359, allocations: 11.31 MB / 0.6157 GB, free: 14.04 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3217/1.681, allocations: 16.53 MB / 0.6319 GB, free: 64.88 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005941/1.682, allocations: 90.59 kB / 0.632 GB, free: 64.88 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003082/1.685, allocations: 48.31 kB / 0.632 GB, free: 64.88 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004331/1.689, allocations: 1.94 MB / 0.6339 GB, free: 64.86 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09776/1.787, allocations: 77.11 MB / 0.7092 GB, free: 35.41 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005677/1.793, allocations: 3.33 MB / 0.7125 GB, free: 34.73 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003621/1.797, allocations: 1.888 MB / 0.7143 GB, free: 34.68 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001746/1.798, allocations: 1.769 MB / 0.716 GB, free: 33.16 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004399/1.803, allocations: 2.016 MB / 0.718 GB, free: 32.83 MB / 474.7 MB Notification: Performance of pre-optimization done (n=290): time 9.216e-06/1.803, allocations: 2.953 kB / 0.718 GB, free: 32.83 MB / 474.7 MB Notification: Performance of matching and sorting (n=320): time 0.06147/1.864, allocations: 18.11 MB / 0.7357 GB, free: 26.08 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.707e-05/1.864, allocations: 161.2 kB / 0.7359 GB, free: 25.92 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008937/1.873, allocations: 4.438 MB / 0.7402 GB, free: 24.32 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004981/1.874, allocations: 31.83 kB / 0.7402 GB, free: 24.29 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004715/1.879, allocations: 5.274 MB / 0.7454 GB, free: 20.28 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00141/1.88, allocations: 1.186 MB / 0.7465 GB, free: 19.41 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008024/1.881, allocations: 0 / 0.7465 GB, free: 19.41 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0007843/1.882, allocations: 0.7277 MB / 0.7472 GB, free: 18.91 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005636/1.887, allocations: 2.499 MB / 0.7497 GB, free: 18.04 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009539/1.897, allocations: 8.364 MB / 0.7578 GB, free: 9.227 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009262/1.906, allocations: 4.52 MB / 0.7623 GB, free: 7.73 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001687/1.906, allocations: 59.59 kB / 0.7623 GB, free: 7.73 MB / 474.7 MB Notification: Performance of matching and sorting (n=1298) (initialization): time 0.02396/1.93, allocations: 9.486 MB / 0.7716 GB, free: 4.434 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000188/1.931, allocations: 126.4 kB / 0.7717 GB, free: 4.402 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002256/1.931, allocations: 214.7 kB / 0.7719 GB, free: 4.398 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003457/1.931, allocations: 308.2 kB / 0.7722 GB, free: 4.398 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01028/1.942, allocations: 2.463 MB / 0.7746 GB, free: 4 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000475/1.942, allocations: 415.8 kB / 0.775 GB, free: 3.637 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0102/1.952, allocations: 473 kB / 0.7754 GB, free: 3.27 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002215/1.955, allocations: 0.5889 MB / 0.776 GB, free: 2.691 MB / 474.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.003022/1.958, allocations: 0.6431 MB / 0.7767 GB, free: 2.051 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001165/1.959, allocations: 493.6 kB / 0.7771 GB, free: 1.562 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007743/1.967, allocations: 2.867 MB / 0.7799 GB, free: 15.1 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.362e-05/1.967, allocations: 36 kB / 0.78 GB, free: 15.06 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.634e-05/1.967, allocations: 0 / 0.78 GB, free: 15.06 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.416e-05/1.967, allocations: 18.11 kB / 0.78 GB, free: 15.06 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03162/1.998, allocations: 11.81 MB / 0.7915 GB, free: 4.879 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.135e-05/1.999, allocations: 28 kB / 0.7915 GB, free: 4.852 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003218/2.002, allocations: 0.6025 MB / 0.7921 GB, free: 4.336 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.41e-05/2.002, allocations: 48 kB / 0.7922 GB, free: 4.289 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004369/2.002, allocations: 61.62 kB / 0.7922 GB, free: 4.234 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.597e-05/2.002, allocations: 62.09 kB / 0.7923 GB, free: 4.18 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.033e-05/2.002, allocations: 47.81 kB / 0.7923 GB, free: 4.133 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01357/2.016, allocations: 10.02 MB / 0.8021 GB, free: 9.363 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002717/2.019, allocations: 0.7709 MB / 0.8029 GB, free: 8.629 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001122/2.02, allocations: 47.12 kB / 0.8029 GB, free: 8.59 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003835/2.024, allocations: 162.9 kB / 0.8031 GB, free: 8.477 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007965/2.025, allocations: 297.3 kB / 0.8034 GB, free: 8.258 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003264/2.025, allocations: 127.1 kB / 0.8035 GB, free: 8.137 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.00751/2.033, allocations: 2.893 MB / 0.8063 GB, free: 5.641 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.263e-06/2.033, allocations: 0 / 0.8063 GB, free: 5.641 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01135/2.044, allocations: 1.322 MB / 0.8076 GB, free: 4.328 MB / 0.4948 GB 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.0009244/2.045, allocations: 217.3 kB / 0.8078 GB, free: 4.117 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.3001/2.345, allocations: 5.94 MB / 0.8136 GB, free: 112.5 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 2.452e-05/2.345, allocations: 6.703 kB / 0.8136 GB, free: 112.5 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.003899/2.349, allocations: 1.532 MB / 0.8151 GB, free: 112.5 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003841/2.353, allocations: 0.5229 MB / 0.8156 GB, free: 112.5 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03232/2.385, allocations: 13.36 MB / 0.8287 GB, free: 109 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01152/2.397, allocations: 5.249 MB / 0.8338 GB, free: 108.1 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001941/2.399, allocations: 454 kB / 0.8342 GB, free: 108.1 MB / 0.4948 GB Notification: Performance of SimCode: time 2.235e-06/2.399, allocations: 0 / 0.8342 GB, free: 108.1 MB / 0.4948 GB Notification: Performance of Templates: time 0.1278/2.527, allocations: 82.67 MB / 0.915 GB, free: 77.9 MB / 0.4948 GB