Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.344/2.344, allocations: 234.9 MB / 251.1 MB, free: 9.551 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004348/0.0004351, allocations: 8 kB / 314.9 MB, free: 9.613 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3458/0.3463, allocations: 54.86 MB / 369.8 MB, free: 10.73 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1846/0.531, allocations: 101.6 MB / 471.4 MB, free: 4.973 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003152/0.5313, allocations: 87.95 kB / 471.5 MB, free: 4.887 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8821/1.413, allocations: 146 MB / 0.603 GB, free: 15.57 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.595e-06/1.413, allocations: 0 / 0.603 GB, free: 15.57 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0004213/1.414, allocations: 151.9 kB / 0.6032 GB, free: 15.42 MB / 442.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.02777/1.442, allocations: 6.967 MB / 0.61 GB, free: 8.359 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.32e-05/1.442, allocations: 12.02 kB / 0.61 GB, free: 8.348 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02985/1.472, allocations: 3.617 MB / 0.6135 GB, free: 4.715 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02815/1.5, allocations: 7.679 MB / 0.621 GB, free: 12.96 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009639/1.501, allocations: 0.5936 MB / 0.6216 GB, free: 12.37 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004597/1.505, allocations: 0.7846 MB / 0.6224 GB, free: 11.59 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.7267/2.232, allocations: 21.89 MB / 0.6437 GB, free: 61.02 MB / 458.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007046/2.233, allocations: 94.53 kB / 0.6438 GB, free: 61.02 MB / 458.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004429/2.237, allocations: 380.9 kB / 0.6442 GB, free: 61.02 MB / 458.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005404/2.243, allocations: 1.932 MB / 0.6461 GB, free: 61 MB / 458.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06581/2.309, allocations: 17.7 MB / 0.6634 GB, free: 60.94 MB / 458.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1219/2.431, allocations: 79.41 MB / 0.7409 GB, free: 25.66 MB / 474.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03108/2.462, allocations: 6.666 MB / 0.7474 GB, free: 23.77 MB / 474.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02785/2.49, allocations: 9.788 MB / 0.757 GB, free: 18.98 MB / 474.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.02584/2.516, allocations: 4.409 MB / 0.7613 GB, free: 18.29 MB / 474.8 MB Notification: Performance of pre-optimization done (n=287): time 1.018e-05/2.516, allocations: 0 / 0.7613 GB, free: 18.29 MB / 474.8 MB Notification: Performance of matching and sorting (n=323): time 0.1325/2.648, allocations: 24.69 MB / 0.7854 GB, free: 1.047 MB / 474.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001242/2.648, allocations: 158.6 kB / 0.7855 GB, free: 0.8594 MB / 474.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0179/2.666, allocations: 6.117 MB / 0.7915 GB, free: 11.92 MB / 490.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0007356/2.667, allocations: 73.7 kB / 0.7916 GB, free: 11.84 MB / 490.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.00705/2.674, allocations: 5.125 MB / 0.7966 GB, free: 7.23 MB / 490.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.002301/2.677, allocations: 1.23 MB / 0.7978 GB, free: 6.141 MB / 490.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001409/2.678, allocations: 196 kB / 0.798 GB, free: 5.949 MB / 490.8 MB Notification: Performance of setup shared object (initialization): time 0.001139/2.679, allocations: 0.7177 MB / 0.7987 GB, free: 5.34 MB / 490.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01122/2.69, allocations: 2.915 MB / 0.8015 GB, free: 2.949 MB / 490.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01818/2.709, allocations: 8.67 MB / 0.81 GB, free: 8.105 MB / 0.4949 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01584/2.725, allocations: 4.876 MB / 0.8148 GB, free: 3.203 MB / 0.4949 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002232/2.725, allocations: 60.55 kB / 0.8148 GB, free: 3.145 MB / 0.4949 GB Notification: Performance of matching and sorting (n=1265) (initialization): time 0.3831/3.108, allocations: 11.15 MB / 0.8257 GB, free: 101.2 MB / 0.4949 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001838/3.108, allocations: 119.7 kB / 0.8258 GB, free: 101.2 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003063/3.109, allocations: 207.7 kB / 0.826 GB, free: 101.2 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003316/3.109, allocations: 296.5 kB / 0.8263 GB, free: 101.2 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01464/3.123, allocations: 2.409 MB / 0.8286 GB, free: 101.2 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003853/3.124, allocations: 408.2 kB / 0.829 GB, free: 101.2 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01122/3.135, allocations: 0.6369 MB / 0.8297 GB, free: 101.2 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001824/3.137, allocations: 0.5692 MB / 0.8302 GB, free: 101.2 MB / 0.4949 GB 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 () * Number of clocked 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.008689/3.146, allocations: 3.364 MB / 0.8335 GB, free: 101.1 MB / 0.4949 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001177/3.147, allocations: 0.5427 MB / 0.834 GB, free: 101.1 MB / 0.4949 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01098/3.158, allocations: 3.481 MB / 0.8374 GB, free: 100.9 MB / 0.4949 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.974e-05/3.158, allocations: 34.45 kB / 0.8375 GB, free: 100.9 MB / 0.4949 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.396e-05/3.158, allocations: 0 / 0.8375 GB, free: 100.9 MB / 0.4949 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.72e-05/3.158, allocations: 19.77 kB / 0.8375 GB, free: 100.9 MB / 0.4949 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03529/3.193, allocations: 13.65 MB / 0.8508 GB, free: 98.87 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.746e-05/3.194, allocations: 32.53 kB / 0.8508 GB, free: 98.87 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004391/3.198, allocations: 0.6106 MB / 0.8514 GB, free: 98.83 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.877e-05/3.198, allocations: 53.58 kB / 0.8515 GB, free: 98.83 MB / 0.4949 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003184/3.198, allocations: 98.06 kB / 0.8516 GB, free: 98.83 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.223e-05/3.198, allocations: 67.7 kB / 0.8516 GB, free: 98.81 MB / 0.4949 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.426e-05/3.198, allocations: 54.22 kB / 0.8517 GB, free: 98.8 MB / 0.4949 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01338/3.212, allocations: 6.105 MB / 0.8577 GB, free: 96.96 MB / 0.4949 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00297/3.215, allocations: 0.8479 MB / 0.8585 GB, free: 96.61 MB / 0.4949 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00155/3.216, allocations: 96.62 kB / 0.8586 GB, free: 96.61 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004788/3.221, allocations: 219.5 kB / 0.8588 GB, free: 96.61 MB / 0.4949 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006894/3.222, allocations: 296.5 kB / 0.8591 GB, free: 96.56 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002805/3.222, allocations: 125.3 kB / 0.8592 GB, free: 96.56 MB / 0.4949 GB Notification: Performance of sorting global known variables: time 0.01014/3.232, allocations: 3.796 MB / 0.8629 GB, free: 96.34 MB / 0.4949 GB Notification: Performance of sort global known variables: time 8.31e-07/3.232, allocations: 0 / 0.8629 GB, free: 96.34 MB / 0.4949 GB Notification: Performance of remove unused functions: time 0.0106/3.243, allocations: 1.564 MB / 0.8644 GB, free: 96.34 MB / 0.4949 GB 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) * Number of clocked states: 0 () * 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.001054/3.244, allocations: 283.1 kB / 0.8647 GB, free: 96.21 MB / 0.4949 GB Notification: Performance of simCode: created initialization part: time 0.01739/3.262, allocations: 6.588 MB / 0.8711 GB, free: 95.5 MB / 0.4949 GB Notification: Performance of simCode: created event and clocks part: time 3.227e-05/3.262, allocations: 6.031 kB / 0.8711 GB, free: 95.5 MB / 0.4949 GB Notification: Performance of simCode: created simulation system equations: time 0.005308/3.267, allocations: 1.729 MB / 0.8728 GB, free: 95.37 MB / 0.4949 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005302/3.272, allocations: 0.7062 MB / 0.8735 GB, free: 95.35 MB / 0.4949 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04308/3.315, allocations: 19.4 MB / 0.8925 GB, free: 85.21 MB / 0.4949 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01217/3.328, allocations: 5.258 MB / 0.8976 GB, free: 83.5 MB / 0.4949 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002448/3.33, allocations: 473.5 kB / 0.898 GB, free: 83.48 MB / 0.4949 GB Notification: Performance of SimCode: time 1.373e-06/3.33, allocations: 4 kB / 0.898 GB, free: 83.48 MB / 0.4949 GB Notification: Performance of Templates: time 0.184/3.514, allocations: 87.38 MB / 0.9834 GB, free: 13.46 MB / 0.4949 GB