Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.694/1.694, allocations: 171.2 MB / 178.8 MB, free: 172 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 3.227e-05/3.238e-05, allocations: 4 kB / 219.6 MB, free: 7.32 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.255/0.255, allocations: 38.77 MB / 258.3 MB, free: 12.06 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1296/0.3847, allocations: 74.56 MB / 332.9 MB, free: 3.25 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003039/0.3851, allocations: 83.95 kB / 333 MB, free: 3.168 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4301/0.8152, allocations: 50.01 MB / 383 MB, free: 40.94 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.074e-06/0.8152, allocations: 0 / 383 MB, free: 40.94 MB / 314.7 MB Notification: Performance of Transformations before backend: time 9.899e-05/0.8154, allocations: 53.83 kB / 383 MB, free: 40.94 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1094 * Number of variables: 1094 Notification: Performance of Generate backend data structure: time 0.006609/0.822, allocations: 2.399 MB / 385.4 MB, free: 39.69 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.182e-05/0.822, allocations: 9.531 kB / 385.4 MB, free: 39.69 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01465/0.8367, allocations: 1.951 MB / 387.4 MB, free: 39.49 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004287/0.841, allocations: 1.396 MB / 388.8 MB, free: 39.05 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001365/0.8412, allocations: 93.62 kB / 388.9 MB, free: 39.05 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001207/0.8424, allocations: 181.8 kB / 389.1 MB, free: 39.05 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009609/0.8521, allocations: 4.136 MB / 393.2 MB, free: 39.02 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01522/0.8673, allocations: 6.835 MB / 400 MB, free: 36.5 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001885/0.8676, allocations: 50.56 kB / 400.1 MB, free: 36.47 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009796/0.8685, allocations: 27.19 kB / 400.1 MB, free: 36.47 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002043/0.8706, allocations: 0.7898 MB / 400.9 MB, free: 36.44 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04198/0.9126, allocations: 35.68 MB / 436.6 MB, free: 11.62 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003663/0.9163, allocations: 1.917 MB / 438.5 MB, free: 10.88 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001642/0.918, allocations: 0.8663 MB / 439.4 MB, free: 10.82 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.578e-05/0.9181, allocations: 23.69 kB / 439.4 MB, free: 10.82 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.342e-05/0.9181, allocations: 50.61 kB / 439.4 MB, free: 10.77 MB / 314.7 MB Notification: Performance of pre-optimization done (n=112): time 3.777e-06/0.9181, allocations: 0 / 439.4 MB, free: 10.77 MB / 314.7 MB Notification: Performance of matching and sorting (n=112): time 0.03774/0.9559, allocations: 5.232 MB / 444.7 MB, free: 9.988 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.539e-05/0.956, allocations: 221.5 kB / 444.9 MB, free: 9.73 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004025/0.96, allocations: 2.368 MB / 447.2 MB, free: 9.07 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001877/0.9603, allocations: 29.69 kB / 447.3 MB, free: 9.035 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001472/0.9617, allocations: 2.467 MB / 449.7 MB, free: 7.121 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000543/0.9623, allocations: 0.494 MB / 450.2 MB, free: 6.793 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002539/0.9626, allocations: 0 / 450.2 MB, free: 6.793 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0003192/0.9629, allocations: 0.5406 MB / 450.8 MB, free: 6.32 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002758/0.9657, allocations: 1.401 MB / 452.2 MB, free: 5.688 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004597/0.9703, allocations: 5.025 MB / 457.2 MB, free: 15.84 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006391/0.9767, allocations: 2.665 MB / 459.9 MB, free: 13.16 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001086/0.9769, allocations: 40 kB / 459.9 MB, free: 13.12 MB / 330.7 MB Notification: Performance of matching and sorting (n=722) (initialization): time 0.01509/0.992, allocations: 5.479 MB / 465.4 MB, free: 7.645 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000108/0.9921, allocations: 60 kB / 465.4 MB, free: 7.586 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001788/0.9923, allocations: 132 kB / 465.6 MB, free: 7.457 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002735/0.9926, allocations: 188 kB / 465.8 MB, free: 7.273 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01012/1.003, allocations: 1.556 MB / 467.3 MB, free: 5.715 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002658/1.003, allocations: 259.3 kB / 467.6 MB, free: 5.461 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005076/1.008, allocations: 0.6372 MB / 468.2 MB, free: 4.816 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007701/1.009, allocations: 352 kB / 468.5 MB, free: 4.473 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 598 * Number of states: 0 () * Number of discrete variables: 27 (spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],body4.sphereColor[3],body4.sphereColor[2],body4.sphereColor[1],body3.sphereColor[3],body3.sphereColor[2],body3.sphereColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (698): * Single equations (assignments): 695 * 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.000907/1.01, allocations: 430.2 kB / 469 MB, free: 4.051 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003435/1.013, allocations: 1.322 MB / 470.3 MB, free: 2.719 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005122/1.014, allocations: 233 kB / 470.5 MB, free: 2.488 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001885/1.016, allocations: 0.6824 MB / 471.2 MB, free: 1.797 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.905e-05/1.016, allocations: 19.98 kB / 471.2 MB, free: 1.777 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.019e-05/1.016, allocations: 3.438 kB / 471.2 MB, free: 1.777 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.77e-05/1.016, allocations: 7.984 kB / 471.2 MB, free: 1.77 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00715/1.023, allocations: 2.579 MB / 473.8 MB, free: 15.16 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.019e-05/1.023, allocations: 0 / 473.8 MB, free: 15.16 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00511/1.028, allocations: 479.4 kB / 474.3 MB, free: 14.69 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.568e-05/1.028, allocations: 4 kB / 474.3 MB, free: 14.69 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001301/1.028, allocations: 23.97 kB / 474.3 MB, free: 14.66 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.378e-06/1.028, allocations: 4 kB / 474.3 MB, free: 14.66 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.969e-06/1.028, allocations: 11.92 kB / 474.3 MB, free: 14.65 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004966/1.033, allocations: 2.639 MB / 477 MB, free: 11.95 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006707/1.034, allocations: 285.8 kB / 477.2 MB, free: 11.64 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004462/1.034, allocations: 19.92 kB / 477.3 MB, free: 11.62 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001514/1.036, allocations: 43.88 kB / 477.3 MB, free: 11.58 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002138/1.036, allocations: 55.86 kB / 477.4 MB, free: 11.53 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001248/1.036, allocations: 35.98 kB / 477.4 MB, free: 11.49 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.003398/1.04, allocations: 1.53 MB / 478.9 MB, free: 9.953 MB / 346.7 MB Notification: Performance of sort global known variables: time 5.71e-07/1.04, allocations: 0 / 478.9 MB, free: 9.953 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.005681/1.045, allocations: 0.7204 MB / 479.6 MB, free: 9.23 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 24 (body3.r_0[1],body3.r_0[2],body3.r_0[3],body3.v_0[1],body3.v_0[2],body3.v_0[3],body4.r_0[1],body4.r_0[2],body4.r_0[3],body4.v_0[1],body4.v_0[2],body4.v_0[3],body2.r_0[1],body2.r_0[2],body2.r_0[3],body2.v_0[1],body2.v_0[2],body2.v_0[3],body1.r_0[1],body1.r_0[2],body1.r_0[3],body1.v_0[1],body1.v_0[2],body1.v_0[3]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (88): * Single equations (assignments): 85 * 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.005748/1.051, allocations: 3.632 MB / 483.3 MB, free: 5.539 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.007785/1.059, allocations: 3.176 MB / 486.4 MB, free: 2.395 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 6.823e-06/1.059, allocations: 0 / 486.4 MB, free: 2.395 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001393/1.06, allocations: 0.6127 MB / 487.1 MB, free: 1.781 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001596/1.062, allocations: 182.1 kB / 487.2 MB, free: 1.602 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0216/1.084, allocations: 7.341 MB / 494.6 MB, free: 10.25 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004171/1.088, allocations: 2.429 MB / 497 MB, free: 7.793 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002937/1.091, allocations: 1.226 MB / 498.2 MB, free: 6.566 MB / 362.7 MB Notification: Performance of SimCode: time 1.232e-06/1.091, allocations: 0 / 498.2 MB, free: 6.566 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.671/4.762, allocations: 54.68 MB / 0.54 GB, free: 85.42 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses_res.mat does not exist to compare? outputFormat=mat