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/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.219/2.219, allocations: 235.1 MB / 243 MB, free: 9.586 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.064e-05/3.073e-05, allocations: 4 kB / 303.3 MB, free: 13.2 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3437/0.3437, allocations: 54.85 MB / 358.1 MB, free: 14.95 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.202/0.5458, allocations: 100.9 MB / 459 MB, free: 9.934 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002952/0.5461, allocations: 83.89 kB / 459.1 MB, free: 9.852 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9522/1.498, allocations: 141.5 MB / 0.5865 GB, free: 12.27 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.705e-06/1.498, allocations: 4 kB / 0.5865 GB, free: 12.26 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0004584/1.499, allocations: 148 kB / 0.5866 GB, free: 12.12 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.02787/1.527, allocations: 6.636 MB / 0.5931 GB, free: 5.395 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.78e-05/1.527, allocations: 11.97 kB / 0.5931 GB, free: 5.383 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03064/1.558, allocations: 3.617 MB / 0.5967 GB, free: 1.75 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02849/1.586, allocations: 7.637 MB / 0.6041 GB, free: 10.05 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006876/1.587, allocations: 260 kB / 0.6044 GB, free: 9.793 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00475/1.592, allocations: 467.9 kB / 0.6048 GB, free: 9.336 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03375/1.625, allocations: 11.31 MB / 0.6158 GB, free: 14.02 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.4318/2.057, allocations: 16.52 MB / 0.632 GB, free: 64.97 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001052/2.058, allocations: 93 kB / 0.6321 GB, free: 64.97 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005509/2.064, allocations: 51.53 kB / 0.6321 GB, free: 64.97 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.009457/2.074, allocations: 1.933 MB / 0.634 GB, free: 64.95 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1879/2.261, allocations: 77.11 MB / 0.7093 GB, free: 35.5 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01028/2.272, allocations: 3.328 MB / 0.7126 GB, free: 34.82 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006769/2.279, allocations: 1.884 MB / 0.7144 GB, free: 34.77 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003303/2.282, allocations: 1.78 MB / 0.7161 GB, free: 33.26 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.008353/2.29, allocations: 2.005 MB / 0.7181 GB, free: 32.92 MB / 474.7 MB Notification: Performance of pre-optimization done (n=290): time 1.824e-05/2.291, allocations: 3.781 kB / 0.7181 GB, free: 32.92 MB / 474.7 MB Notification: Performance of matching and sorting (n=320): time 0.1307/2.421, allocations: 18.12 MB / 0.7358 GB, free: 26.17 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001064/2.421, allocations: 161.3 kB / 0.736 GB, free: 26.01 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01535/2.437, allocations: 4.44 MB / 0.7403 GB, free: 24.41 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008437/2.438, allocations: 29.33 kB / 0.7403 GB, free: 24.38 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.007751/2.446, allocations: 5.278 MB / 0.7455 GB, free: 20.36 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002451/2.448, allocations: 1.189 MB / 0.7466 GB, free: 19.48 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001442/2.45, allocations: 0 / 0.7466 GB, free: 19.48 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0009475/2.451, allocations: 0.7279 MB / 0.7473 GB, free: 18.99 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006769/2.457, allocations: 2.498 MB / 0.7498 GB, free: 18.11 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01179/2.469, allocations: 8.368 MB / 0.758 GB, free: 9.305 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01114/2.48, allocations: 4.512 MB / 0.7624 GB, free: 7.793 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002705/2.481, allocations: 58.56 kB / 0.7624 GB, free: 7.793 MB / 474.7 MB Notification: Performance of matching and sorting (n=1298) (initialization): time 0.02793/2.509, allocations: 9.477 MB / 0.7717 GB, free: 4.5 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002101/2.509, allocations: 132.3 kB / 0.7718 GB, free: 4.465 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003304/2.509, allocations: 207.1 kB / 0.772 GB, free: 4.465 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003494/2.51, allocations: 312.7 kB / 0.7723 GB, free: 4.465 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01612/2.526, allocations: 2.46 MB / 0.7747 GB, free: 4.137 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005312/2.526, allocations: 412.6 kB / 0.7751 GB, free: 3.773 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01217/2.539, allocations: 472.4 kB / 0.7755 GB, free: 3.41 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002665/2.541, allocations: 0.5833 MB / 0.7761 GB, free: 2.832 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.003973/2.545, allocations: 0.6428 MB / 0.7767 GB, free: 2.191 MB / 474.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01228/2.558, allocations: 3.249 MB / 0.7799 GB, free: 15.66 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001799/2.559, allocations: 493.6 kB / 0.7804 GB, free: 15.17 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01023/2.57, allocations: 2.866 MB / 0.7832 GB, free: 12.71 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.294e-05/2.57, allocations: 36 kB / 0.7832 GB, free: 12.67 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.599e-05/2.57, allocations: 0 / 0.7832 GB, free: 12.67 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.512e-05/2.57, allocations: 17.39 kB / 0.7832 GB, free: 12.67 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03808/2.608, allocations: 11.82 MB / 0.7948 GB, free: 2.488 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.647e-05/2.608, allocations: 36.92 kB / 0.7948 GB, free: 2.453 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005072/2.613, allocations: 0.6033 MB / 0.7954 GB, free: 1.938 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.423e-05/2.613, allocations: 48 kB / 0.7954 GB, free: 1.891 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005613/2.614, allocations: 51.75 kB / 0.7955 GB, free: 1.844 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.459e-05/2.614, allocations: 62.89 kB / 0.7955 GB, free: 1.789 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.538e-05/2.614, allocations: 51.81 kB / 0.7956 GB, free: 1.738 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01561/2.63, allocations: 10.02 MB / 0.8054 GB, free: 6.965 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003233/2.633, allocations: 0.7661 MB / 0.8061 GB, free: 6.238 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001645/2.635, allocations: 47.56 kB / 0.8062 GB, free: 6.195 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005257/2.64, allocations: 169.5 kB / 0.8063 GB, free: 6.078 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001282/2.641, allocations: 293.6 kB / 0.8066 GB, free: 5.863 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005606/2.642, allocations: 123.3 kB / 0.8067 GB, free: 5.746 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.008961/2.651, allocations: 2.899 MB / 0.8096 GB, free: 3.246 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.022e-06/2.651, allocations: 0 / 0.8096 GB, free: 3.246 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01273/2.664, allocations: 1.315 MB / 0.8109 GB, free: 1.938 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.376/3.04, allocations: 17.28 MB / 0.8277 GB, free: 97.92 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01457/3.055, allocations: 5.786 MB / 0.8334 GB, free: 97.82 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 3.748e-05/3.055, allocations: 3.969 kB / 0.8334 GB, free: 97.82 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.005454/3.06, allocations: 1.529 MB / 0.8349 GB, free: 97.81 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007113/3.067, allocations: 0.5311 MB / 0.8354 GB, free: 97.79 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06974/3.137, allocations: 15.46 MB / 0.8505 GB, free: 94.06 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01372/3.151, allocations: 5.247 MB / 0.8556 GB, free: 93.19 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0085/3.159, allocations: 3.475 MB / 0.859 GB, free: 93.18 MB / 0.4948 GB Notification: Performance of SimCode: time 1.573e-06/3.159, allocations: 0 / 0.859 GB, free: 93.18 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.932/8.091, allocations: 124.6 MB / 0.9807 GB, free: 13.6 MB / 0.4948 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