Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Forces.Damper.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Damper,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Forces_Damper",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.978/1.978, allocations: 209.2 MB / 224.8 MB, free: 1.551 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004434/0.0004433, allocations: 8 kB / 282.7 MB, free: 9.688 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.115/0.1155, allocations: 48.71 MB / 331.4 MB, free: 8.891 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5315/0.6471, allocations: 94.47 MB / 425.8 MB, free: 6.539 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002651/0.6474, allocations: 75.95 kB / 425.9 MB, free: 6.465 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.003/1.651, allocations: 144.4 MB / 0.5569 GB, free: 76.06 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.026e-06/1.651, allocations: 0 / 0.5569 GB, free: 76.06 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0005137/1.651, allocations: 144 kB / 0.5571 GB, free: 75.92 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2739 * Number of variables: 2739 Notification: Performance of Generate backend data structure: time 0.03598/1.687, allocations: 6.878 MB / 0.5638 GB, free: 68.96 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.394e-05/1.687, allocations: 12.03 kB / 0.5638 GB, free: 68.95 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.008066/1.695, allocations: 1.364 MB / 0.5651 GB, free: 67.57 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04103/1.737, allocations: 3.613 MB / 0.5687 GB, free: 63.94 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03652/1.773, allocations: 7.655 MB / 0.5761 GB, free: 56.22 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001286/1.774, allocations: 0.5948 MB / 0.5767 GB, free: 55.62 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006645/1.781, allocations: 0.7849 MB / 0.5775 GB, free: 54.84 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.08087/1.862, allocations: 21.78 MB / 0.5988 GB, free: 31.43 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005612/1.863, allocations: 99.02 kB / 0.5988 GB, free: 31.33 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004332/1.867, allocations: 379.8 kB / 0.5992 GB, free: 30.96 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006886/1.874, allocations: 1.937 MB / 0.6011 GB, free: 29.02 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.08641/1.96, allocations: 17.61 MB / 0.6183 GB, free: 11.38 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4609/2.421, allocations: 79.33 MB / 0.6958 GB, free: 29.25 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03272/2.454, allocations: 6.57 MB / 0.7022 GB, free: 28.57 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02643/2.481, allocations: 9.753 MB / 0.7117 GB, free: 26.24 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.957e-05/2.481, allocations: 68.31 kB / 0.7118 GB, free: 26.2 MB / 426.7 MB Notification: Performance of pre-optimization done (n=284): time 7.024e-06/2.481, allocations: 0 / 0.7118 GB, free: 26.2 MB / 426.7 MB Notification: Performance of matching and sorting (n=320): time 0.1335/2.614, allocations: 24.94 MB / 0.7361 GB, free: 21.08 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.529e-05/2.615, allocations: 164.3 kB / 0.7363 GB, free: 20.92 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01456/2.629, allocations: 5.399 MB / 0.7416 GB, free: 19.69 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007077/2.63, allocations: 73.59 kB / 0.7416 GB, free: 19.62 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004448/2.634, allocations: 5.028 MB / 0.7465 GB, free: 15.7 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001901/2.636, allocations: 1.215 MB / 0.7477 GB, free: 14.81 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001177/2.638, allocations: 196.8 kB / 0.7479 GB, free: 14.66 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0007494/2.638, allocations: 0.7158 MB / 0.7486 GB, free: 14.17 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01005/2.648, allocations: 2.866 MB / 0.7514 GB, free: 13.3 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0144/2.663, allocations: 8.578 MB / 0.7598 GB, free: 4.777 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01381/2.677, allocations: 4.812 MB / 0.7645 GB, free: 3.012 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002728/2.677, allocations: 57.88 kB / 0.7645 GB, free: 3.012 MB / 426.7 MB Notification: Performance of matching and sorting (n=1260) (initialization): time 0.03642/2.714, allocations: 11.09 MB / 0.7754 GB, free: 13.61 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000186/2.714, allocations: 92 kB / 0.7755 GB, free: 13.52 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004154/2.714, allocations: 200 kB / 0.7756 GB, free: 13.32 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004127/2.715, allocations: 300 kB / 0.7759 GB, free: 13.03 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0159/2.731, allocations: 2.383 MB / 0.7783 GB, free: 10.95 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005381/2.731, allocations: 406.7 kB / 0.7786 GB, free: 10.6 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01189/2.743, allocations: 0.6227 MB / 0.7793 GB, free: 10.06 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002422/2.745, allocations: 0.564 MB / 0.7798 GB, free: 9.508 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: 69 (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 (1236): * Single equations (assignments): 1233 * Array equations: 3 * Algorithm blocks: 0 * 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.01066/2.756, allocations: 3.371 MB / 0.7831 GB, free: 6.543 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001553/2.758, allocations: 0.536 MB / 0.7836 GB, free: 6 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01302/2.771, allocations: 3.38 MB / 0.7869 GB, free: 3.102 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.489e-05/2.771, allocations: 43.66 kB / 0.787 GB, free: 3.062 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.646e-05/2.771, allocations: 3.656 kB / 0.787 GB, free: 3.062 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.91e-05/2.771, allocations: 13.5 kB / 0.787 GB, free: 3.062 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04783/2.819, allocations: 13.78 MB / 0.8004 GB, free: 7.48 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.009e-05/2.819, allocations: 32 kB / 0.8005 GB, free: 7.449 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004824/2.824, allocations: 0.5957 MB / 0.8011 GB, free: 6.938 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.752e-05/2.824, allocations: 52 kB / 0.8011 GB, free: 6.887 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005711/2.825, allocations: 103 kB / 0.8012 GB, free: 6.793 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.706e-05/2.825, allocations: 62.75 kB / 0.8013 GB, free: 6.738 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.466e-05/2.825, allocations: 55.75 kB / 0.8013 GB, free: 6.684 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0202/2.845, allocations: 12.14 MB / 0.8132 GB, free: 9.324 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003997/2.849, allocations: 0.8391 MB / 0.814 GB, free: 8.535 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002192/2.851, allocations: 98.75 kB / 0.8141 GB, free: 8.445 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005793/2.857, allocations: 199.6 kB / 0.8143 GB, free: 8.297 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001038/2.858, allocations: 296.9 kB / 0.8146 GB, free: 8.074 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004283/2.859, allocations: 123.4 kB / 0.8147 GB, free: 7.957 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.01326/2.872, allocations: 3.785 MB / 0.8184 GB, free: 4.855 MB / 474.7 MB Notification: Performance of sort global known variables: time 4.358e-06/2.872, allocations: 4 kB / 0.8184 GB, free: 4.852 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01358/2.886, allocations: 1.551 MB / 0.8199 GB, free: 3.309 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 147 * Number of states: 7 (body.frame_a.r_0[1],body.v_0[1],prismatic1.s,prismatic1.v,heatCapacitor.T,prismatic2.s,prismatic2.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (301): * Single equations (assignments): 298 * Array equations: 3 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 0.3583/3.244, allocations: 18.65 MB / 0.8381 GB, free: 108.7 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.02069/3.265, allocations: 6.45 MB / 0.8444 GB, free: 108.6 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 3.2e-05/3.265, allocations: 3.875 kB / 0.8444 GB, free: 108.6 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004813/3.27, allocations: 1.532 MB / 0.8459 GB, free: 108.6 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006387/3.276, allocations: 0.694 MB / 0.8466 GB, free: 108.6 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4371/3.713, allocations: 176.3 MB / 1.019 GB, free: 155.7 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01706/3.73, allocations: 5.247 MB / 1.024 GB, free: 154.8 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009239/3.74, allocations: 3.545 MB / 1.027 GB, free: 154.8 MB / 0.5105 GB Notification: Performance of SimCode: time 1.242e-06/3.74, allocations: 1.156 kB / 1.027 GB, free: 154.8 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.207/8.947, allocations: 127.4 MB / 1.152 GB, free: 74.05 MB / 0.5105 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Forces.Damper_res.mat does not exist to compare? outputFormat=mat