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.868/1.868, allocations: 209.3 MB / 222.4 MB, free: 7.715 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.596e-05/2.643e-05, allocations: 0 / 277.8 MB, free: 15.31 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08874/0.0888, allocations: 48.7 MB / 326.5 MB, free: 14.52 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3668/0.4557, allocations: 94.82 MB / 421.4 MB, free: 12.96 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000238/0.4559, allocations: 71.47 kB / 421.4 MB, free: 12.93 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8572/1.313, allocations: 145 MB / 0.5531 GB, free: 76.09 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.332e-06/1.313, allocations: 0 / 0.5531 GB, free: 76.09 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0003166/1.314, allocations: 147.4 kB / 0.5533 GB, free: 76.09 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.01951/1.333, allocations: 6.637 MB / 0.5598 GB, free: 73.32 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.287e-05/1.333, allocations: 7.344 kB / 0.5598 GB, free: 73.32 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02162/1.355, allocations: 3.618 MB / 0.5633 GB, free: 72.82 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02118/1.376, allocations: 7.637 MB / 0.5708 GB, free: 71.98 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007302/1.377, allocations: 0.5929 MB / 0.5713 GB, free: 71.96 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00344/1.38, allocations: 0.7762 MB / 0.5721 GB, free: 71.95 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05806/1.438, allocations: 21.55 MB / 0.5931 GB, free: 67.43 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004577/1.439, allocations: 98.88 kB / 0.5932 GB, free: 67.41 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003199/1.442, allocations: 380.4 kB / 0.5936 GB, free: 67.41 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004239/1.446, allocations: 1.94 MB / 0.5955 GB, free: 67.39 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04797/1.494, allocations: 17.2 MB / 0.6123 GB, free: 59.96 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3651/1.859, allocations: 79.42 MB / 0.6898 GB, free: 73.66 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02395/1.883, allocations: 6.516 MB / 0.6962 GB, free: 72.98 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004506/1.888, allocations: 2.056 MB / 0.6982 GB, free: 72.94 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02322/1.911, allocations: 9.778 MB / 0.7078 GB, free: 70.86 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01922/1.93, allocations: 4.329 MB / 0.712 GB, free: 70.73 MB / 442.7 MB Notification: Performance of pre-optimization done (n=287): time 2.064e-05/1.931, allocations: 0 / 0.712 GB, free: 70.73 MB / 442.7 MB Notification: Performance of matching and sorting (n=323): time 0.09265/2.023, allocations: 22.7 MB / 0.7342 GB, free: 66.25 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.17e-05/2.023, allocations: 166.8 kB / 0.7343 GB, free: 66.09 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01152/2.035, allocations: 5.265 MB / 0.7395 GB, free: 65.57 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005436/2.035, allocations: 75.58 kB / 0.7395 GB, free: 65.54 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004678/2.04, allocations: 5.12 MB / 0.7445 GB, free: 62.63 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001474/2.042, allocations: 1.236 MB / 0.7457 GB, free: 61.93 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008455/2.043, allocations: 199.9 kB / 0.7459 GB, free: 61.93 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0006326/2.043, allocations: 0.714 MB / 0.7466 GB, free: 61.6 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005995/2.049, allocations: 2.642 MB / 0.7492 GB, free: 61.57 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009359/2.059, allocations: 8.363 MB / 0.7574 GB, free: 54.21 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009205/2.068, allocations: 4.671 MB / 0.7619 GB, free: 53.9 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001994/2.068, allocations: 57.66 kB / 0.762 GB, free: 53.9 MB / 442.7 MB Notification: Performance of matching and sorting (n=1265) (initialization): time 0.02469/2.093, allocations: 10.6 MB / 0.7723 GB, free: 50.9 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001925/2.093, allocations: 121.8 kB / 0.7725 GB, free: 50.87 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002492/2.093, allocations: 203.8 kB / 0.7727 GB, free: 50.87 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003421/2.094, allocations: 298.6 kB / 0.7729 GB, free: 50.87 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01103/2.105, allocations: 2.405 MB / 0.7753 GB, free: 50.59 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003657/2.105, allocations: 405.4 kB / 0.7757 GB, free: 50.5 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01027/2.115, allocations: 0.6436 MB / 0.7763 GB, free: 50.32 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001813/2.117, allocations: 0.5639 MB / 0.7769 GB, free: 50.25 MB / 442.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 () * 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.002645/2.12, allocations: 0.8586 MB / 0.7777 GB, free: 49.55 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001062/2.121, allocations: 0.5455 MB / 0.7782 GB, free: 49.24 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007742/2.129, allocations: 3.215 MB / 0.7814 GB, free: 47.98 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.482e-05/2.129, allocations: 34.12 kB / 0.7814 GB, free: 47.98 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.691e-05/2.129, allocations: 3.875 kB / 0.7814 GB, free: 47.98 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.61e-05/2.129, allocations: 13.83 kB / 0.7814 GB, free: 47.98 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03164/2.161, allocations: 13.46 MB / 0.7946 GB, free: 38.65 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.145e-05/2.161, allocations: 35.75 kB / 0.7946 GB, free: 38.62 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003174/2.164, allocations: 0.6122 MB / 0.7952 GB, free: 38.1 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.103e-05/2.164, allocations: 52 kB / 0.7952 GB, free: 38.05 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000349/2.164, allocations: 103.8 kB / 0.7953 GB, free: 37.95 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.038e-05/2.164, allocations: 62.94 kB / 0.7954 GB, free: 37.89 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.112e-05/2.164, allocations: 59.75 kB / 0.7955 GB, free: 37.84 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009969/2.174, allocations: 11.79 MB / 0.807 GB, free: 24.73 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002732/2.177, allocations: 0.839 MB / 0.8078 GB, free: 23.94 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001258/2.179, allocations: 98.75 kB / 0.8079 GB, free: 23.85 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003876/2.182, allocations: 214.9 kB / 0.8081 GB, free: 23.68 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006581/2.183, allocations: 303.4 kB / 0.8084 GB, free: 23.46 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002752/2.183, allocations: 131.4 kB / 0.8085 GB, free: 23.34 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.007891/2.191, allocations: 3.646 MB / 0.8121 GB, free: 20.11 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.149e-06/2.191, allocations: 0 / 0.8121 GB, free: 20.11 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.01034/2.202, allocations: 1.562 MB / 0.8136 GB, free: 18.55 MB / 442.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) * 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.0008244/2.203, allocations: 259.2 kB / 0.8138 GB, free: 18.29 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01182/2.214, allocations: 6.225 MB / 0.8199 GB, free: 12.54 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.375e-05/2.214, allocations: 4 kB / 0.8199 GB, free: 12.54 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003593/2.218, allocations: 1.635 MB / 0.8215 GB, free: 11.03 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00469/2.223, allocations: 0.7117 MB / 0.8222 GB, free: 10.43 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03238/2.255, allocations: 13.62 MB / 0.8355 GB, free: 13.82 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01254/2.268, allocations: 5.259 MB / 0.8407 GB, free: 9.949 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002008/2.27, allocations: 476.8 kB / 0.8411 GB, free: 9.5 MB / 458.7 MB Notification: Performance of SimCode: time 2.236e-06/2.27, allocations: 0 / 0.8411 GB, free: 9.5 MB / 458.7 MB Notification: Performance of Templates: time 0.4159/2.686, allocations: 87.35 MB / 0.9264 GB, free: 86.66 MB / 474.7 MB