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.424/2.424, allocations: 235 MB / 247.6 MB, free: 14.34 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.478e-05/3.485e-05, allocations: 4 kB / 305 MB, free: 5.562 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4003/0.4004, allocations: 54.85 MB / 359.9 MB, free: 2.691 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1877/0.5882, allocations: 101.5 MB / 461.4 MB, free: 11.43 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002792/0.5885, allocations: 79.95 kB / 461.5 MB, free: 11.35 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9125/1.501, allocations: 145 MB / 0.5922 GB, free: 94.2 MB / 458.7 MB Notification: Performance of FrontEnd: time 3.106e-06/1.501, allocations: 0 / 0.5922 GB, free: 94.2 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0003799/1.501, allocations: 147.4 kB / 0.5924 GB, free: 94.19 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: 2741 * Number of variables: 2741 Notification: Performance of Generate backend data structure: time 0.02553/1.527, allocations: 6.637 MB / 0.5988 GB, free: 89.82 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.02e-05/1.527, allocations: 9.719 kB / 0.5988 GB, free: 89.82 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00633/1.533, allocations: 1.365 MB / 0.6002 GB, free: 88.92 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0295/1.563, allocations: 3.632 MB / 0.6037 GB, free: 85.57 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02555/1.589, allocations: 7.63 MB / 0.6112 GB, free: 77.98 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008115/1.589, allocations: 0.5959 MB / 0.6118 GB, free: 77.41 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00452/1.594, allocations: 0.7847 MB / 0.6125 GB, free: 76.62 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07458/1.669, allocations: 21.45 MB / 0.6335 GB, free: 53.55 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005301/1.669, allocations: 99.14 kB / 0.6336 GB, free: 53.46 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004267/1.673, allocations: 375.8 kB / 0.6339 GB, free: 53.09 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005464/1.679, allocations: 1.941 MB / 0.6358 GB, free: 51.14 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06288/1.742, allocations: 16.89 MB / 0.6523 GB, free: 34.23 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5065/2.248, allocations: 79.41 MB / 0.7299 GB, free: 48.25 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03233/2.281, allocations: 6.484 MB / 0.7362 GB, free: 47.57 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005738/2.287, allocations: 2.061 MB / 0.7382 GB, free: 47.52 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02867/2.315, allocations: 9.781 MB / 0.7478 GB, free: 45.2 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0259/2.341, allocations: 4.316 MB / 0.752 GB, free: 45.07 MB / 474.7 MB Notification: Performance of pre-optimization done (n=287): time 8.997e-06/2.341, allocations: 0 / 0.752 GB, free: 45.07 MB / 474.7 MB Notification: Performance of matching and sorting (n=323): time 0.123/2.464, allocations: 22.69 MB / 0.7741 GB, free: 40.27 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.916e-05/2.464, allocations: 167.7 kB / 0.7743 GB, free: 40.11 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01375/2.478, allocations: 5.265 MB / 0.7794 GB, free: 39.18 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007225/2.479, allocations: 77.7 kB / 0.7795 GB, free: 39.11 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005838/2.485, allocations: 5.124 MB / 0.7845 GB, free: 35.16 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002037/2.487, allocations: 1.231 MB / 0.7857 GB, free: 34.27 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001337/2.488, allocations: 198 kB / 0.7859 GB, free: 34.11 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.000916/2.489, allocations: 0.7214 MB / 0.7866 GB, free: 33.62 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007367/2.497, allocations: 2.642 MB / 0.7892 GB, free: 32.75 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01155/2.508, allocations: 8.31 MB / 0.7973 GB, free: 24.24 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01129/2.52, allocations: 4.662 MB / 0.8019 GB, free: 22.82 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002288/2.52, allocations: 61.06 kB / 0.8019 GB, free: 22.82 MB / 474.7 MB Notification: Performance of matching and sorting (n=1265) (initialization): time 0.02914/2.549, allocations: 10.04 MB / 0.8117 GB, free: 17.47 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001821/2.549, allocations: 117.7 kB / 0.8118 GB, free: 17.35 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003082/2.55, allocations: 204 kB / 0.812 GB, free: 17.15 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003325/2.55, allocations: 300 kB / 0.8123 GB, free: 16.86 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01591/2.566, allocations: 2.411 MB / 0.8147 GB, free: 14.77 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004156/2.566, allocations: 401.4 kB / 0.815 GB, free: 14.42 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01224/2.579, allocations: 0.6427 MB / 0.8157 GB, free: 13.87 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002196/2.581, allocations: 0.5633 MB / 0.8162 GB, free: 13.31 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: 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.003269/2.584, allocations: 0.86 MB / 0.8171 GB, free: 12.46 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001292/2.586, allocations: 0.5476 MB / 0.8176 GB, free: 11.9 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009128/2.595, allocations: 3.21 MB / 0.8207 GB, free: 9.121 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.518e-05/2.595, allocations: 32.78 kB / 0.8208 GB, free: 9.09 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.798e-05/2.595, allocations: 0 / 0.8208 GB, free: 9.09 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.516e-05/2.595, allocations: 18.3 kB / 0.8208 GB, free: 9.086 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04072/2.636, allocations: 13.44 MB / 0.8339 GB, free: 13.7 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.369e-05/2.636, allocations: 32 kB / 0.8339 GB, free: 13.67 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005098/2.641, allocations: 0.613 MB / 0.8345 GB, free: 13.15 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.127e-05/2.641, allocations: 52 kB / 0.8346 GB, free: 13.1 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005018/2.642, allocations: 99.75 kB / 0.8347 GB, free: 13 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.403e-05/2.642, allocations: 63.17 kB / 0.8347 GB, free: 12.95 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.826e-05/2.642, allocations: 53.7 kB / 0.8348 GB, free: 12.9 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01624/2.658, allocations: 11.84 MB / 0.8464 GB, free: 15.92 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003501/2.662, allocations: 0.8415 MB / 0.8472 GB, free: 15.12 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001532/2.663, allocations: 102.2 kB / 0.8473 GB, free: 15.04 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005137/2.668, allocations: 221.7 kB / 0.8475 GB, free: 14.87 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000824/2.669, allocations: 298.8 kB / 0.8478 GB, free: 14.64 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003261/2.669, allocations: 130 kB / 0.8479 GB, free: 14.52 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.01021/2.68, allocations: 3.645 MB / 0.8515 GB, free: 11.29 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.082e-06/2.68, allocations: 0 / 0.8515 GB, free: 11.29 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01233/2.692, allocations: 1.554 MB / 0.853 GB, free: 9.742 MB / 0.4948 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) * 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.0186/2.711, allocations: 18.3 MB / 0.8709 GB, free: 6.766 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01628/2.727, allocations: 5.898 MB / 0.8766 GB, free: 1.344 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 3.158e-05/2.727, allocations: 8 kB / 0.8766 GB, free: 1.336 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.004915/2.732, allocations: 1.587 MB / 0.8782 GB, free: 15.86 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005884/2.738, allocations: 0.7162 MB / 0.8789 GB, free: 15.18 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05752/2.796, allocations: 15.91 MB / 0.8944 GB, free: 14.78 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01418/2.81, allocations: 5.266 MB / 0.8996 GB, free: 9.508 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009008/2.819, allocations: 3.471 MB / 0.9029 GB, free: 6.035 MB / 0.5417 GB Notification: Performance of SimCode: time 1.743e-06/2.819, allocations: 0 / 0.9029 GB, free: 6.035 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.446/8.265, allocations: 128.2 MB / 1.028 GB, free: 100.8 MB / 0.5417 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