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.39/2.39, allocations: 234.9 MB / 250.5 MB, free: 9.77 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004473/0.0004474, allocations: 12 kB / 314.5 MB, free: 9.691 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.358/0.3585, allocations: 54.86 MB / 369.4 MB, free: 12.67 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1818/0.5404, allocations: 101.6 MB / 471 MB, free: 6.898 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003183/0.5408, allocations: 79.95 kB / 471.1 MB, free: 6.82 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8458/1.387, allocations: 144.9 MB / 0.6015 GB, free: 30.8 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.765e-06/1.387, allocations: 0 / 0.6015 GB, free: 30.8 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0003705/1.387, allocations: 148 kB / 0.6016 GB, free: 30.66 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.02546/1.412, allocations: 6.975 MB / 0.6084 GB, free: 23.59 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.975e-05/1.413, allocations: 12.03 kB / 0.6084 GB, free: 23.58 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00596/1.419, allocations: 1.368 MB / 0.6098 GB, free: 22.2 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02864/1.447, allocations: 3.621 MB / 0.6133 GB, free: 18.56 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02534/1.473, allocations: 7.668 MB / 0.6208 GB, free: 10.83 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007963/1.473, allocations: 0.5936 MB / 0.6214 GB, free: 10.23 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004354/1.478, allocations: 0.781 MB / 0.6221 GB, free: 9.449 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07807/1.556, allocations: 21.84 MB / 0.6435 GB, free: 1.98 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004309/1.556, allocations: 91.14 kB / 0.6436 GB, free: 1.891 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002961/1.559, allocations: 387.8 kB / 0.6439 GB, free: 1.512 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00565/1.565, allocations: 1.933 MB / 0.6458 GB, free: 15.57 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.07001/1.635, allocations: 17.7 MB / 0.6631 GB, free: 13.85 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4637/2.099, allocations: 79.4 MB / 0.7406 GB, free: 37.19 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03024/2.129, allocations: 6.67 MB / 0.7471 GB, free: 36.5 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02306/2.152, allocations: 9.779 MB / 0.7567 GB, free: 34.16 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.02476/2.177, allocations: 4.411 MB / 0.761 GB, free: 34.02 MB / 474.7 MB Notification: Performance of pre-optimization done (n=287): time 7.354e-06/2.177, allocations: 0 / 0.761 GB, free: 34.02 MB / 474.7 MB Notification: Performance of matching and sorting (n=323): time 0.1228/2.3, allocations: 25.1 MB / 0.7855 GB, free: 28.08 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.166e-05/2.3, allocations: 169.9 kB / 0.7857 GB, free: 27.91 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01256/2.313, allocations: 5.423 MB / 0.791 GB, free: 26.09 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006858/2.314, allocations: 75.38 kB / 0.7911 GB, free: 26.02 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005479/2.319, allocations: 5.124 MB / 0.7961 GB, free: 22.11 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001913/2.321, allocations: 1.229 MB / 0.7973 GB, free: 21.21 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001064/2.322, allocations: 193.8 kB / 0.7974 GB, free: 21.07 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0005872/2.323, allocations: 0.7199 MB / 0.7981 GB, free: 20.58 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009329/2.332, allocations: 2.91 MB / 0.801 GB, free: 19.71 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01328/2.345, allocations: 8.639 MB / 0.8094 GB, free: 11.17 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01302/2.358, allocations: 4.874 MB / 0.8142 GB, free: 7.242 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002186/2.359, allocations: 60 kB / 0.8142 GB, free: 7.184 MB / 474.7 MB Notification: Performance of matching and sorting (n=1265) (initialization): time 0.0348/2.394, allocations: 11.21 MB / 0.8252 GB, free: 13.97 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002083/2.394, allocations: 125.3 kB / 0.8253 GB, free: 13.85 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004078/2.394, allocations: 204 kB / 0.8255 GB, free: 13.65 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003995/2.395, allocations: 300.8 kB / 0.8258 GB, free: 13.36 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01568/2.41, allocations: 2.395 MB / 0.8281 GB, free: 11.27 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005452/2.411, allocations: 404.9 kB / 0.8285 GB, free: 10.92 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01183/2.423, allocations: 0.6473 MB / 0.8291 GB, free: 10.37 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002222/2.425, allocations: 0.5696 MB / 0.8297 GB, free: 9.805 MB / 490.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 () * 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.01014/2.435, allocations: 3.371 MB / 0.833 GB, free: 6.844 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001424/2.437, allocations: 0.5399 MB / 0.8335 GB, free: 6.297 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01273/2.449, allocations: 3.479 MB / 0.8369 GB, free: 3.324 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.773e-05/2.45, allocations: 38.19 kB / 0.837 GB, free: 3.289 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.635e-05/2.45, allocations: 3.312 kB / 0.837 GB, free: 3.289 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.94e-05/2.45, allocations: 15.7 kB / 0.837 GB, free: 3.289 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04185/2.492, allocations: 13.65 MB / 0.8503 GB, free: 7.516 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.204e-05/2.492, allocations: 33 kB / 0.8503 GB, free: 7.484 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00474/2.496, allocations: 0.6111 MB / 0.8509 GB, free: 6.961 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.629e-05/2.496, allocations: 48 kB / 0.851 GB, free: 6.914 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004166/2.497, allocations: 95.89 kB / 0.8511 GB, free: 6.824 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.287e-05/2.497, allocations: 67.03 kB / 0.8511 GB, free: 6.766 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.16e-05/2.497, allocations: 55.75 kB / 0.8512 GB, free: 6.711 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01968/2.517, allocations: 12.09 MB / 0.863 GB, free: 9.41 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003526/2.52, allocations: 0.8374 MB / 0.8638 GB, free: 8.547 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00174/2.522, allocations: 95.97 kB / 0.8639 GB, free: 8.453 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005196/2.527, allocations: 215.8 kB / 0.8641 GB, free: 8.242 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009526/2.528, allocations: 308.2 kB / 0.8644 GB, free: 7.938 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003287/2.529, allocations: 128 kB / 0.8645 GB, free: 7.812 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.01174/2.54, allocations: 3.792 MB / 0.8682 GB, free: 4.023 MB / 0.5105 GB Notification: Performance of sort global known variables: time 5.61e-07/2.54, allocations: 7.844 kB / 0.8682 GB, free: 4.02 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01221/2.553, allocations: 1.556 MB / 0.8698 GB, free: 2.469 MB / 0.5105 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.3757/2.928, allocations: 18.58 MB / 0.8879 GB, free: 116.2 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01871/2.947, allocations: 6.584 MB / 0.8943 GB, free: 116.1 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 2.837e-05/2.947, allocations: 9.812 kB / 0.8943 GB, free: 116.1 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.005291/2.953, allocations: 1.725 MB / 0.896 GB, free: 116.1 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005551/2.958, allocations: 0.7138 MB / 0.8967 GB, free: 116.1 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4511/3.409, allocations: 176.5 MB / 1.069 GB, free: 178.3 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01239/3.422, allocations: 5.256 MB / 1.074 GB, free: 177.4 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008052/3.43, allocations: 3.471 MB / 1.078 GB, free: 177.4 MB / 0.5573 GB Notification: Performance of SimCode: time 1.704e-06/3.43, allocations: 6.719 kB / 1.078 GB, free: 177.4 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.166/8.596, allocations: 128 MB / 1.203 GB, free: 101 MB / 0.5573 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