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: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Damper2,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Forces_Damper2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.438/2.438, allocations: 235 MB / 248.1 MB, free: 14.58 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.907e-05/4.913e-05, allocations: 4 kB / 309.8 MB, free: 1.453 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4066/0.4067, allocations: 54.85 MB / 364.6 MB, free: 5.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1832/0.59, allocations: 101.5 MB / 466.2 MB, free: 10.84 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000245/0.5903, allocations: 75.95 kB / 466.2 MB, free: 10.77 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9139/1.504, allocations: 145 MB / 0.5969 GB, free: 95.53 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.074e-06/1.504, allocations: 0 / 0.5969 GB, free: 95.53 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0003836/1.505, allocations: 148.8 kB / 0.5971 GB, free: 95.52 MB / 458.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.02644/1.531, allocations: 6.636 MB / 0.6035 GB, free: 89.67 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.743e-05/1.531, allocations: 8.031 kB / 0.6035 GB, free: 89.66 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006464/1.538, allocations: 1.372 MB / 0.6049 GB, free: 88.28 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02975/1.568, allocations: 3.621 MB / 0.6084 GB, free: 84.64 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02711/1.595, allocations: 7.642 MB / 0.6159 GB, free: 76.93 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008378/1.596, allocations: 0.5939 MB / 0.6165 GB, free: 76.34 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004552/1.6, allocations: 0.7847 MB / 0.6172 GB, free: 75.55 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07613/1.676, allocations: 21.55 MB / 0.6383 GB, free: 52.38 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006404/1.677, allocations: 95.16 kB / 0.6384 GB, free: 52.29 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00504/1.682, allocations: 383.8 kB / 0.6387 GB, free: 51.91 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005602/1.688, allocations: 1.933 MB / 0.6406 GB, free: 49.97 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.063/1.751, allocations: 17.19 MB / 0.6574 GB, free: 32.76 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5115/2.262, allocations: 79.41 MB / 0.7349 GB, free: 47.84 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03165/2.294, allocations: 6.511 MB / 0.7413 GB, free: 47.15 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005262/2.299, allocations: 2.062 MB / 0.7433 GB, free: 47.1 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02717/2.327, allocations: 9.778 MB / 0.7529 GB, free: 44.78 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.02516/2.352, allocations: 4.336 MB / 0.7571 GB, free: 44.64 MB / 474.7 MB Notification: Performance of pre-optimization done (n=287): time 7.354e-06/2.352, allocations: 0 / 0.7571 GB, free: 44.64 MB / 474.7 MB Notification: Performance of matching and sorting (n=323): time 0.1213/2.473, allocations: 22.7 MB / 0.7793 GB, free: 39.86 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.719e-05/2.473, allocations: 164.1 kB / 0.7794 GB, free: 39.7 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01276/2.486, allocations: 5.272 MB / 0.7846 GB, free: 39.04 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006906/2.487, allocations: 75.8 kB / 0.7846 GB, free: 38.98 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005451/2.492, allocations: 5.122 MB / 0.7897 GB, free: 35.03 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001869/2.494, allocations: 1.23 MB / 0.7909 GB, free: 34.14 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001204/2.496, allocations: 193.2 kB / 0.791 GB, free: 33.99 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0008041/2.496, allocations: 0.7164 MB / 0.7917 GB, free: 33.5 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007425/2.504, allocations: 2.644 MB / 0.7943 GB, free: 32.63 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01146/2.515, allocations: 8.363 MB / 0.8025 GB, free: 24.09 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01094/2.526, allocations: 4.672 MB / 0.807 GB, free: 22.66 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002288/2.527, allocations: 56.34 kB / 0.8071 GB, free: 22.66 MB / 474.7 MB Notification: Performance of matching and sorting (n=1265) (initialization): time 0.02853/2.555, allocations: 10.6 MB / 0.8175 GB, free: 15.91 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000192/2.555, allocations: 125.6 kB / 0.8176 GB, free: 15.79 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002956/2.556, allocations: 204 kB / 0.8178 GB, free: 15.59 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003206/2.556, allocations: 300.8 kB / 0.8181 GB, free: 15.29 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01544/2.571, allocations: 2.404 MB / 0.8204 GB, free: 13.21 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000436/2.572, allocations: 399.8 kB / 0.8208 GB, free: 12.86 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0122/2.584, allocations: 0.6506 MB / 0.8214 GB, free: 12.3 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002171/2.586, allocations: 0.5642 MB / 0.822 GB, free: 11.75 MB / 474.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.003209/2.59, allocations: 0.8578 MB / 0.8228 GB, free: 10.89 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001222/2.591, allocations: 0.536 MB / 0.8233 GB, free: 10.34 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009635/2.601, allocations: 3.214 MB / 0.8265 GB, free: 7.559 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.576e-05/2.601, allocations: 32 kB / 0.8265 GB, free: 7.527 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.682e-05/2.601, allocations: 0 / 0.8265 GB, free: 7.527 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.296e-05/2.601, allocations: 23.8 kB / 0.8265 GB, free: 7.52 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04116/2.642, allocations: 13.52 MB / 0.8397 GB, free: 12.01 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.042e-05/2.642, allocations: 36 kB / 0.8398 GB, free: 11.98 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005029/2.647, allocations: 0.6034 MB / 0.8404 GB, free: 11.46 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.003e-05/2.647, allocations: 52 kB / 0.8404 GB, free: 11.41 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004962/2.648, allocations: 99.56 kB / 0.8405 GB, free: 11.32 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.742e-05/2.648, allocations: 76.72 kB / 0.8406 GB, free: 11.25 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.878e-05/2.648, allocations: 49.38 kB / 0.8406 GB, free: 11.21 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01897/2.667, allocations: 11.97 MB / 0.8523 GB, free: 14.48 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003766/2.671, allocations: 0.8402 MB / 0.8531 GB, free: 13.69 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001846/2.673, allocations: 100.2 kB / 0.8532 GB, free: 13.6 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00566/2.678, allocations: 219.2 kB / 0.8534 GB, free: 13.43 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001017/2.679, allocations: 299.8 kB / 0.8537 GB, free: 13.21 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003377/2.68, allocations: 131.2 kB / 0.8538 GB, free: 13.09 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.01053/2.69, allocations: 3.643 MB / 0.8574 GB, free: 9.859 MB / 0.4948 GB Notification: Performance of sort global known variables: time 9.12e-07/2.69, allocations: 0 / 0.8574 GB, free: 9.859 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01213/2.703, allocations: 1.563 MB / 0.8589 GB, free: 8.309 MB / 0.4948 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) * 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.01983/2.722, allocations: 18.3 MB / 0.8768 GB, free: 5.332 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01712/2.74, allocations: 6.215 MB / 0.8829 GB, free: 15.27 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 2.867e-05/2.74, allocations: 8.25 kB / 0.8829 GB, free: 15.26 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.005206/2.745, allocations: 1.637 MB / 0.8845 GB, free: 13.63 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00642/2.751, allocations: 0.7059 MB / 0.8852 GB, free: 12.95 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06072/2.812, allocations: 15.97 MB / 0.9008 GB, free: 12.49 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01475/2.827, allocations: 5.254 MB / 0.9059 GB, free: 7.227 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00942/2.836, allocations: 3.471 MB / 0.9093 GB, free: 3.754 MB / 0.5417 GB Notification: Performance of SimCode: time 1.413e-06/2.836, allocations: 0 / 0.9093 GB, free: 3.754 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.68/8.516, allocations: 129.7 MB / 1.036 GB, free: 97.32 MB / 0.5417 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Forces.Damper2_res.mat does not exist to compare? outputFormat=mat