Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Damper2,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Forces_Damper2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.843/1.843, allocations: 209.3 MB / 221.9 MB, free: 1.938 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.812e-05/3.828e-05, allocations: 4 kB / 273.1 MB, free: 0.6406 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1163/0.1164, allocations: 48.71 MB / 321.8 MB, free: 15.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4288/0.5452, allocations: 94.8 MB / 416.6 MB, free: 11.07 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002932/0.5456, allocations: 75.95 kB / 416.7 MB, free: 11 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8846/1.43, allocations: 145 MB / 0.5485 GB, free: 89.71 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.083e-06/1.43, allocations: 0 / 0.5485 GB, free: 89.71 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0004005/1.431, allocations: 145.5 kB / 0.5486 GB, free: 89.71 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.02483/1.456, allocations: 6.635 MB / 0.5551 GB, free: 86.9 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.186e-05/1.456, allocations: 8.5 kB / 0.5551 GB, free: 86.9 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00605/1.462, allocations: 1.373 MB / 0.5565 GB, free: 86.8 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02901/1.491, allocations: 3.618 MB / 0.56 GB, free: 86.23 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02611/1.517, allocations: 7.642 MB / 0.5675 GB, free: 83.53 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00081/1.518, allocations: 0.59 MB / 0.568 GB, free: 83.3 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004426/1.522, allocations: 0.7825 MB / 0.5688 GB, free: 83.07 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07365/1.596, allocations: 21.55 MB / 0.5898 GB, free: 64.25 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005893/1.597, allocations: 95.14 kB / 0.5899 GB, free: 64.15 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004277/1.601, allocations: 389.2 kB / 0.5903 GB, free: 63.82 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005329/1.606, allocations: 1.937 MB / 0.5922 GB, free: 61.88 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06197/1.668, allocations: 17.19 MB / 0.609 GB, free: 44.68 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4581/2.126, allocations: 79.41 MB / 0.6865 GB, free: 28.15 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04432/2.171, allocations: 6.526 MB / 0.6929 GB, free: 27.47 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005556/2.176, allocations: 2.06 MB / 0.6949 GB, free: 27.42 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02634/2.203, allocations: 9.772 MB / 0.7045 GB, free: 25.09 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.02519/2.228, allocations: 4.329 MB / 0.7087 GB, free: 24.95 MB / 426.7 MB Notification: Performance of pre-optimization done (n=287): time 9.447e-06/2.228, allocations: 3.75 kB / 0.7087 GB, free: 24.95 MB / 426.7 MB Notification: Performance of matching and sorting (n=323): time 0.1156/2.344, allocations: 22.7 MB / 0.7309 GB, free: 20.2 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.266e-05/2.344, allocations: 163.7 kB / 0.731 GB, free: 20.04 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01267/2.357, allocations: 5.27 MB / 0.7362 GB, free: 18.48 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007441/2.357, allocations: 76.17 kB / 0.7362 GB, free: 18.41 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005944/2.363, allocations: 5.128 MB / 0.7412 GB, free: 14.46 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002054/2.365, allocations: 1.229 MB / 0.7424 GB, free: 13.57 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001265/2.367, allocations: 197.6 kB / 0.7426 GB, free: 13.42 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0008081/2.368, allocations: 0.7176 MB / 0.7433 GB, free: 12.93 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007461/2.375, allocations: 2.643 MB / 0.7459 GB, free: 12.07 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01123/2.386, allocations: 8.363 MB / 0.7541 GB, free: 3.527 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01496/2.401, allocations: 4.667 MB / 0.7586 GB, free: 2.023 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002744/2.402, allocations: 57.22 kB / 0.7587 GB, free: 2.023 MB / 426.7 MB Notification: Performance of matching and sorting (n=1265) (initialization): time 0.03953/2.441, allocations: 10.61 MB / 0.769 GB, free: 13.79 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003206/2.442, allocations: 117.9 kB / 0.7692 GB, free: 13.67 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005536/2.442, allocations: 208 kB / 0.7694 GB, free: 13.47 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006765/2.443, allocations: 300 kB / 0.7696 GB, free: 13.18 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02178/2.465, allocations: 2.405 MB / 0.772 GB, free: 11.09 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007092/2.465, allocations: 400.9 kB / 0.7724 GB, free: 10.74 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01215/2.478, allocations: 0.6394 MB / 0.773 GB, free: 10.2 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002433/2.48, allocations: 0.5669 MB / 0.7735 GB, free: 9.637 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: 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.003659/2.484, allocations: 0.8621 MB / 0.7744 GB, free: 8.773 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001501/2.485, allocations: 0.5437 MB / 0.7749 GB, free: 8.223 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01019/2.496, allocations: 3.203 MB / 0.7781 GB, free: 5.449 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.077e-05/2.496, allocations: 41.44 kB / 0.7781 GB, free: 5.41 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.661e-05/2.496, allocations: 0 / 0.7781 GB, free: 5.41 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.05e-05/2.496, allocations: 18.58 kB / 0.7781 GB, free: 5.406 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04083/2.537, allocations: 13.47 MB / 0.7913 GB, free: 9.789 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.567e-05/2.537, allocations: 37.48 kB / 0.7913 GB, free: 9.754 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004715/2.542, allocations: 0.6065 MB / 0.7919 GB, free: 9.238 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.407e-05/2.542, allocations: 48 kB / 0.7919 GB, free: 9.191 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002962/2.542, allocations: 99.47 kB / 0.792 GB, free: 9.098 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.377e-05/2.542, allocations: 72.98 kB / 0.7921 GB, free: 9.035 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.072e-05/2.542, allocations: 55.7 kB / 0.7922 GB, free: 8.98 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01523/2.557, allocations: 11.8 MB / 0.8037 GB, free: 11.87 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003478/2.561, allocations: 0.8405 MB / 0.8045 GB, free: 11.07 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001666/2.563, allocations: 103.5 kB / 0.8046 GB, free: 10.98 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005282/2.568, allocations: 216.7 kB / 0.8048 GB, free: 10.82 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009164/2.569, allocations: 296.5 kB / 0.8051 GB, free: 10.6 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003267/2.569, allocations: 129.8 kB / 0.8052 GB, free: 10.48 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.01093/2.58, allocations: 3.641 MB / 0.8088 GB, free: 7.25 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.032e-06/2.58, allocations: 0 / 0.8088 GB, free: 7.25 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01125/2.591, allocations: 1.564 MB / 0.8103 GB, free: 5.695 MB / 474.7 MB 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.01781/2.609, allocations: 18.31 MB / 0.8282 GB, free: 2.711 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.3229/2.932, allocations: 6.215 MB / 0.8342 GB, free: 139.3 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 3.278e-05/2.932, allocations: 5.219 kB / 0.8342 GB, free: 139.3 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00484/2.937, allocations: 1.636 MB / 0.8358 GB, free: 139.3 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007052/2.944, allocations: 0.7082 MB / 0.8365 GB, free: 139.3 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07514/3.019, allocations: 15.95 MB / 0.8521 GB, free: 135.5 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01288/3.032, allocations: 5.265 MB / 0.8573 GB, free: 134.6 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007841/3.04, allocations: 3.472 MB / 0.8606 GB, free: 134.6 MB / 490.7 MB Notification: Performance of SimCode: time 1.893e-06/3.04, allocations: 0 / 0.8606 GB, free: 134.6 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.977/8.017, allocations: 129.7 MB / 0.9873 GB, free: 44.35 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Forces.Damper2_res.mat does not exist to compare? outputFormat=mat