Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Damper,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Forces_Damper",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.511/2.511, allocations: 235 MB / 247.6 MB, free: 14.37 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.593e-05/4.602e-05, allocations: 8 kB / 305 MB, free: 5.562 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4299/0.43, allocations: 54.86 MB / 359.9 MB, free: 2.324 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1878/0.6179, allocations: 101.1 MB / 460.9 MB, free: 11.77 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000305/0.6182, allocations: 77.27 kB / 461 MB, free: 11.7 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9976/1.616, allocations: 144.5 MB / 0.5913 GB, free: 94.49 MB / 458.7 MB Notification: Performance of FrontEnd: time 3.176e-06/1.616, allocations: 0 / 0.5913 GB, free: 94.49 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.000547/1.616, allocations: 142.6 kB / 0.5914 GB, free: 94.49 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: 2739 * Number of variables: 2739 Notification: Performance of Generate backend data structure: time 0.03687/1.653, allocations: 6.547 MB / 0.5978 GB, free: 90.19 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.789e-05/1.653, allocations: 10.66 kB / 0.5978 GB, free: 90.19 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.008516/1.662, allocations: 1.364 MB / 0.5992 GB, free: 89.29 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04632/1.708, allocations: 3.622 MB / 0.6027 GB, free: 86.32 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04001/1.748, allocations: 7.629 MB / 0.6102 GB, free: 78.73 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001151/1.75, allocations: 0.5975 MB / 0.6107 GB, free: 78.17 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006229/1.756, allocations: 0.7784 MB / 0.6115 GB, free: 77.41 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1135/1.87, allocations: 21.44 MB / 0.6324 GB, free: 54.35 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008415/1.87, allocations: 99.14 kB / 0.6325 GB, free: 54.25 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005814/1.876, allocations: 379.8 kB / 0.6329 GB, free: 53.88 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.008429/1.885, allocations: 1.933 MB / 0.6348 GB, free: 51.95 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.09636/1.981, allocations: 16.88 MB / 0.6513 GB, free: 35.04 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6413/2.623, allocations: 79.33 MB / 0.7287 GB, free: 48.33 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03235/2.655, allocations: 6.461 MB / 0.7351 GB, free: 47.65 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00571/2.661, allocations: 2.048 MB / 0.7371 GB, free: 47.61 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02858/2.689, allocations: 9.741 MB / 0.7466 GB, free: 45.28 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.232e-05/2.689, allocations: 65.41 kB / 0.7466 GB, free: 45.24 MB / 474.7 MB Notification: Performance of pre-optimization done (n=284): time 7.424e-06/2.69, allocations: 0 / 0.7466 GB, free: 45.24 MB / 474.7 MB Notification: Performance of matching and sorting (n=320): time 0.1212/2.811, allocations: 22.62 MB / 0.7687 GB, free: 40.49 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.903e-05/2.811, allocations: 160.8 kB / 0.7689 GB, free: 40.33 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01314/2.824, allocations: 5.252 MB / 0.774 GB, free: 39.69 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007231/2.825, allocations: 77.2 kB / 0.7741 GB, free: 39.66 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004343/2.829, allocations: 5.024 MB / 0.779 GB, free: 35.98 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001803/2.831, allocations: 1.214 MB / 0.7802 GB, free: 35.1 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001202/2.832, allocations: 196.3 kB / 0.7803 GB, free: 34.95 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.000936/2.833, allocations: 0.7134 MB / 0.781 GB, free: 34.46 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007275/2.841, allocations: 2.629 MB / 0.7836 GB, free: 33.59 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01118/2.852, allocations: 8.293 MB / 0.7917 GB, free: 25.09 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01072/2.863, allocations: 4.636 MB / 0.7962 GB, free: 23.73 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002376/2.863, allocations: 55.53 kB / 0.7963 GB, free: 23.73 MB / 474.7 MB Notification: Performance of matching and sorting (n=1260) (initialization): time 0.02813/2.891, allocations: 9.98 MB / 0.806 GB, free: 20.86 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001693/2.891, allocations: 93.47 kB / 0.8061 GB, free: 20.86 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003568/2.892, allocations: 204.7 kB / 0.8063 GB, free: 20.7 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003456/2.892, allocations: 296 kB / 0.8066 GB, free: 20.41 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01529/2.907, allocations: 2.387 MB / 0.8089 GB, free: 18.34 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004269/2.908, allocations: 404.6 kB / 0.8093 GB, free: 17.98 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01214/2.92, allocations: 0.6197 MB / 0.8099 GB, free: 17.45 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002287/2.922, allocations: 0.5608 MB / 0.8105 GB, free: 16.9 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: 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 () * 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.003241/2.926, allocations: 0.8611 MB / 0.8113 GB, free: 16.04 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001386/2.927, allocations: 0.5399 MB / 0.8118 GB, free: 15.49 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009427/2.936, allocations: 3.188 MB / 0.815 GB, free: 12.73 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.183e-05/2.937, allocations: 36 kB / 0.815 GB, free: 12.7 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.651e-05/2.937, allocations: 0.5625 kB / 0.815 GB, free: 12.7 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.387e-05/2.937, allocations: 14.25 kB / 0.815 GB, free: 12.7 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03888/2.976, allocations: 13.49 MB / 0.8282 GB, free: 1.051 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.655e-05/2.976, allocations: 32 kB / 0.8282 GB, free: 1.02 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004748/2.98, allocations: 0.5974 MB / 0.8288 GB, free: 0.5078 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.245e-05/2.981, allocations: 52 kB / 0.8288 GB, free: 468 kB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005543/2.981, allocations: 99.84 kB / 0.8289 GB, free: 372 kB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.351e-05/2.981, allocations: 62.89 kB / 0.829 GB, free: 316 kB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.356e-05/2.981, allocations: 55.75 kB / 0.829 GB, free: 260 kB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0163/2.998, allocations: 11.95 MB / 0.8407 GB, free: 2.98 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003647/3.001, allocations: 0.8341 MB / 0.8415 GB, free: 2.191 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00193/3.003, allocations: 98.55 kB / 0.8416 GB, free: 2.105 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005645/3.009, allocations: 200.5 kB / 0.8418 GB, free: 1.949 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009346/3.01, allocations: 289.6 kB / 0.8421 GB, free: 1.734 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003634/3.01, allocations: 127.1 kB / 0.8422 GB, free: 1.613 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0167/3.027, allocations: 3.968 MB / 0.8461 GB, free: 15.21 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.312e-06/3.027, allocations: 0 / 0.8461 GB, free: 15.21 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01316/3.04, allocations: 1.56 MB / 0.8476 GB, free: 13.66 MB / 0.4948 GB 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 () * 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.01949/3.06, allocations: 18.47 MB / 0.8657 GB, free: 10.52 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01662/3.076, allocations: 5.834 MB / 0.8713 GB, free: 5.18 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 3.348e-05/3.077, allocations: 4.938 kB / 0.8714 GB, free: 5.176 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.004145/3.081, allocations: 1.421 MB / 0.8727 GB, free: 3.875 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006896/3.088, allocations: 0.6977 MB / 0.8734 GB, free: 3.281 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06015/3.148, allocations: 15.9 MB / 0.8889 GB, free: 3.648 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01471/3.163, allocations: 5.25 MB / 0.8941 GB, free: 14.39 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009414/3.172, allocations: 3.541 MB / 0.8975 GB, free: 10.85 MB / 0.5417 GB Notification: Performance of SimCode: time 1.974e-06/3.172, allocations: 0 / 0.8975 GB, free: 10.85 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.406/8.578, allocations: 127.6 MB / 1.022 GB, free: 106.1 MB / 0.5417 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Forces.Damper_res.mat does not exist to compare? outputFormat=mat