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 2.029/2.029, allocations: 209.4 MB / 216.9 MB, free: 6.664 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.271e-05/2.27e-05, allocations: 0 / 267.6 MB, free: 5.324 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1061/0.1062, allocations: 48.7 MB / 316.3 MB, free: 4.527 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4428/0.5491, allocations: 94.38 MB / 410.7 MB, free: 14.44 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002534/0.5494, allocations: 80.55 kB / 410.8 MB, free: 14.4 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8801/1.43, allocations: 141.4 MB / 0.5393 GB, free: 81.89 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.064e-06/1.43, allocations: 0 / 0.5393 GB, free: 81.89 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0003575/1.43, allocations: 144.7 kB / 0.5394 GB, free: 81.89 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: 2741 * Number of variables: 2741 Notification: Performance of Generate backend data structure: time 0.02495/1.455, allocations: 6.635 MB / 0.5459 GB, free: 78.55 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.165e-05/1.455, allocations: 7.219 kB / 0.5459 GB, free: 78.55 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02928/1.484, allocations: 3.621 MB / 0.5494 GB, free: 76.91 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02613/1.511, allocations: 7.631 MB / 0.5569 GB, free: 72.86 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000581/1.511, allocations: 259.6 kB / 0.5571 GB, free: 72.72 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004424/1.516, allocations: 473 kB / 0.5576 GB, free: 72.26 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02906/1.545, allocations: 11.31 MB / 0.5686 GB, free: 60.95 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0454/1.59, allocations: 16.52 MB / 0.5848 GB, free: 42.82 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005367/1.591, allocations: 107 kB / 0.5849 GB, free: 42.71 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00411/1.595, allocations: 51.98 kB / 0.5849 GB, free: 42.66 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005594/1.6, allocations: 1.933 MB / 0.5868 GB, free: 40.73 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4625/2.063, allocations: 77.1 MB / 0.6621 GB, free: 44.02 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008158/2.071, allocations: 3.332 MB / 0.6653 GB, free: 43.35 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00499/2.076, allocations: 1.888 MB / 0.6672 GB, free: 43.3 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002298/2.079, allocations: 1.767 MB / 0.6689 GB, free: 41.79 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005695/2.084, allocations: 2.007 MB / 0.6709 GB, free: 41.65 MB / 426.7 MB Notification: Performance of pre-optimization done (n=290): time 8.976e-06/2.085, allocations: 4.422 kB / 0.6709 GB, free: 41.65 MB / 426.7 MB Notification: Performance of matching and sorting (n=320): time 0.08142/2.166, allocations: 18.12 MB / 0.6886 GB, free: 37.1 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.788e-05/2.166, allocations: 164 kB / 0.6887 GB, free: 36.94 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01053/2.177, allocations: 4.439 MB / 0.6931 GB, free: 36.49 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006912/2.177, allocations: 29.27 kB / 0.6931 GB, free: 36.46 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005593/2.183, allocations: 5.277 MB / 0.6982 GB, free: 33.21 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001906/2.185, allocations: 1.186 MB / 0.6994 GB, free: 32.52 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001195/2.186, allocations: 0 / 0.6994 GB, free: 32.52 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0008779/2.187, allocations: 0.7284 MB / 0.7001 GB, free: 32.18 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006823/2.194, allocations: 2.503 MB / 0.7026 GB, free: 31.93 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01092/2.205, allocations: 8.36 MB / 0.7107 GB, free: 23.12 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01009/2.215, allocations: 4.507 MB / 0.7151 GB, free: 21.82 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002532/2.215, allocations: 65.16 kB / 0.7152 GB, free: 21.82 MB / 426.7 MB Notification: Performance of matching and sorting (n=1298) (initialization): time 0.02661/2.242, allocations: 9.482 MB / 0.7244 GB, free: 18.97 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001796/2.242, allocations: 121.9 kB / 0.7246 GB, free: 18.94 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003313/2.243, allocations: 213.1 kB / 0.7248 GB, free: 18.94 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003679/2.243, allocations: 318 kB / 0.7251 GB, free: 18.94 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0157/2.259, allocations: 2.455 MB / 0.7275 GB, free: 18.65 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004015/2.259, allocations: 419.8 kB / 0.7279 GB, free: 18.56 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01191/2.271, allocations: 471.5 kB / 0.7283 GB, free: 18.52 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002443/2.273, allocations: 0.5905 MB / 0.7289 GB, free: 18.44 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 960 * 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 (1273): * Single equations (assignments): 1269 * 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.003367/2.277, allocations: 0.6359 MB / 0.7295 GB, free: 17.92 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.007949/2.285, allocations: 3.121 MB / 0.7326 GB, free: 15.82 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001356/2.286, allocations: 0.4894 MB / 0.733 GB, free: 15.33 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00814/2.294, allocations: 2.854 MB / 0.7358 GB, free: 12.88 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.348e-05/2.295, allocations: 36 kB / 0.7359 GB, free: 12.84 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.645e-05/2.295, allocations: 3.953 kB / 0.7359 GB, free: 12.84 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.752e-05/2.295, allocations: 14.62 kB / 0.7359 GB, free: 12.84 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03364/2.328, allocations: 11.82 MB / 0.7474 GB, free: 2.648 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.588e-05/2.328, allocations: 33.38 kB / 0.7475 GB, free: 2.617 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004822/2.333, allocations: 0.6 MB / 0.748 GB, free: 2.105 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.77e-05/2.333, allocations: 48 kB / 0.7481 GB, free: 2.059 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005512/2.334, allocations: 55.47 kB / 0.7481 GB, free: 2.008 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.844e-05/2.334, allocations: 63.83 kB / 0.7482 GB, free: 1.953 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.384e-05/2.334, allocations: 47.75 kB / 0.7483 GB, free: 1.906 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0149/2.349, allocations: 10.02 MB / 0.758 GB, free: 7.133 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003407/2.352, allocations: 0.7692 MB / 0.7588 GB, free: 6.398 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001758/2.354, allocations: 52.95 kB / 0.7588 GB, free: 6.355 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0051/2.359, allocations: 169.7 kB / 0.759 GB, free: 6.238 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001003/2.36, allocations: 290.8 kB / 0.7593 GB, free: 6.023 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003413/2.361, allocations: 125.8 kB / 0.7594 GB, free: 5.906 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.009244/2.37, allocations: 2.899 MB / 0.7622 GB, free: 3.41 MB / 442.7 MB Notification: Performance of sort global known variables: time 7.52e-07/2.37, allocations: 0 / 0.7622 GB, free: 3.41 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.01286/2.383, allocations: 1.315 MB / 0.7635 GB, free: 2.102 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 138 * 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 (301): * Single equations (assignments): 296 * 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.0179/2.401, allocations: 17.28 MB / 0.7804 GB, free: 224 kB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.0156/2.417, allocations: 5.789 MB / 0.786 GB, free: 10.93 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 3.096e-05/2.417, allocations: 8.25 kB / 0.7861 GB, free: 10.93 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004601/2.421, allocations: 1.53 MB / 0.7875 GB, free: 9.52 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005223/2.426, allocations: 0.5315 MB / 0.7881 GB, free: 9.07 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05691/2.483, allocations: 15.46 MB / 0.8032 GB, free: 11.25 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01455/2.498, allocations: 5.233 MB / 0.8083 GB, free: 7.406 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009071/2.507, allocations: 3.471 MB / 0.8117 GB, free: 4.176 MB / 490.7 MB Notification: Performance of SimCode: time 1.543e-06/2.507, allocations: 0 / 0.8117 GB, free: 4.176 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.017/7.524, allocations: 124.6 MB / 0.9334 GB, free: 104.2 MB / 0.4948 GB 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