Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses,fileNamePrefix="Modelica_3_2_1_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.684/1.684, allocations: 171.2 MB / 178.4 MB, free: 176 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.68e-05/2.688e-05, allocations: 4 kB / 219.6 MB, free: 6.938 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2726/0.2727, allocations: 38.76 MB / 258.4 MB, free: 12.3 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1501/0.4228, allocations: 74.57 MB / 332.9 MB, free: 3.297 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003046/0.4231, allocations: 79.95 kB / 333 MB, free: 3.219 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4112/0.8343, allocations: 50.01 MB / 383 MB, free: 80.75 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.145e-06/0.8344, allocations: 3.938 kB / 383 MB, free: 80.75 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001007/0.8345, allocations: 50.69 kB / 383.1 MB, free: 80.75 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.006806/0.8413, allocations: 2.405 MB / 385.5 MB, free: 79.5 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.081e-05/0.8414, allocations: 11.44 kB / 385.5 MB, free: 79.5 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01442/0.8558, allocations: 1.951 MB / 387.4 MB, free: 79.3 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004264/0.8601, allocations: 1.386 MB / 388.8 MB, free: 78.88 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001374/0.8603, allocations: 100.8 kB / 388.9 MB, free: 78.87 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001163/0.8615, allocations: 174.8 kB / 389.1 MB, free: 78.87 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00953/0.871, allocations: 4.139 MB / 393.2 MB, free: 78.16 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01399/0.8851, allocations: 6.826 MB / 400 MB, free: 72.5 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001705/0.8853, allocations: 55.47 kB / 400.1 MB, free: 72.45 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005316/0.8858, allocations: 32 kB / 400.1 MB, free: 72.41 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001853/0.8877, allocations: 0.7877 MB / 400.9 MB, free: 71.7 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04248/0.9302, allocations: 35.68 MB / 436.6 MB, free: 35.04 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003959/0.9342, allocations: 1.922 MB / 438.5 MB, free: 32.95 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002241/0.9365, allocations: 0.876 MB / 439.4 MB, free: 32.06 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.821e-05/0.9366, allocations: 8 kB / 439.4 MB, free: 32.05 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.01e-05/0.9367, allocations: 50.5 kB / 439.5 MB, free: 31.99 MB / 314.7 MB Notification: Performance of pre-optimization done (n=112): time 4.448e-06/0.9367, allocations: 0 / 439.5 MB, free: 31.99 MB / 314.7 MB Notification: Performance of matching and sorting (n=112): time 0.03851/0.9752, allocations: 5.241 MB / 444.7 MB, free: 26.73 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.908e-05/0.9753, allocations: 213.7 kB / 444.9 MB, free: 26.47 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004587/0.9799, allocations: 2.37 MB / 447.3 MB, free: 24.09 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002477/0.9802, allocations: 25.7 kB / 447.3 MB, free: 24.05 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001836/0.9821, allocations: 2.433 MB / 449.7 MB, free: 21.58 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007373/0.9828, allocations: 0.494 MB / 450.2 MB, free: 21.08 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004454/0.9833, allocations: 4 kB / 450.2 MB, free: 21.08 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0004055/0.9837, allocations: 0.5735 MB / 450.8 MB, free: 20.5 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003081/0.9868, allocations: 1.397 MB / 452.2 MB, free: 19.09 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005038/0.9919, allocations: 5.019 MB / 457.2 MB, free: 12.22 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005202/0.9971, allocations: 2.672 MB / 459.9 MB, free: 9.547 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.984e-05/0.9972, allocations: 40 kB / 459.9 MB, free: 9.508 MB / 314.7 MB Notification: Performance of matching and sorting (n=722) (initialization): time 0.01405/1.011, allocations: 5.498 MB / 465.4 MB, free: 4.008 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.168e-05/1.011, allocations: 64 kB / 465.5 MB, free: 3.945 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001528/1.012, allocations: 132 kB / 465.6 MB, free: 3.816 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002086/1.012, allocations: 188.8 kB / 465.8 MB, free: 3.633 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01003/1.022, allocations: 1.556 MB / 467.4 MB, free: 2.074 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001962/1.022, allocations: 263 kB / 467.6 MB, free: 1.816 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005483/1.028, allocations: 0.633 MB / 468.2 MB, free: 1.176 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001072/1.029, allocations: 352.3 kB / 468.6 MB, free: 0.832 MB / 314.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.0008055/1.03, allocations: 422.2 kB / 469 MB, free: 424 kB / 314.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003317/1.033, allocations: 1.327 MB / 470.3 MB, free: 15.08 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005914/1.033, allocations: 237 kB / 470.6 MB, free: 14.84 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002053/1.036, allocations: 0.6897 MB / 471.3 MB, free: 14.14 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.122e-05/1.036, allocations: 12 kB / 471.3 MB, free: 14.13 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.453e-05/1.036, allocations: 4 kB / 471.3 MB, free: 14.13 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.55e-05/1.036, allocations: 3.984 kB / 471.3 MB, free: 14.12 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008022/1.044, allocations: 2.583 MB / 473.9 MB, free: 11.51 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.477e-05/1.044, allocations: 3.25 kB / 473.9 MB, free: 11.51 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005308/1.049, allocations: 479.3 kB / 474.3 MB, free: 11.04 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.823e-05/1.049, allocations: 8 kB / 474.3 MB, free: 11.04 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002707/1.049, allocations: 23.97 kB / 474.4 MB, free: 11.01 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.012e-05/1.049, allocations: 4 kB / 474.4 MB, free: 11.01 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.083e-06/1.049, allocations: 8.031 kB / 474.4 MB, free: 11 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005215/1.055, allocations: 2.635 MB / 477 MB, free: 8.301 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007566/1.056, allocations: 289.8 kB / 477.3 MB, free: 7.996 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005642/1.056, allocations: 15.98 kB / 477.3 MB, free: 7.98 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001696/1.058, allocations: 39.88 kB / 477.3 MB, free: 7.941 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002481/1.058, allocations: 59.91 kB / 477.4 MB, free: 7.883 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001306/1.058, allocations: 35.98 kB / 477.4 MB, free: 7.848 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.003952/1.062, allocations: 1.527 MB / 479 MB, free: 6.312 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.172e-06/1.062, allocations: 0 / 479 MB, free: 6.312 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.006111/1.068, allocations: 0.7203 MB / 479.7 MB, free: 5.59 MB / 330.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.006011/1.074, allocations: 3.644 MB / 483.3 MB, free: 1.887 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.007949/1.082, allocations: 3.158 MB / 486.5 MB, free: 14.76 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 8.937e-06/1.082, allocations: 1.062 kB / 486.5 MB, free: 14.76 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001446/1.084, allocations: 0.6144 MB / 487.1 MB, free: 14.14 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001622/1.086, allocations: 184.7 kB / 487.3 MB, free: 13.96 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02366/1.109, allocations: 7.03 MB / 494.3 MB, free: 6.926 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004913/1.114, allocations: 2.417 MB / 496.7 MB, free: 4.48 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.008184/1.122, allocations: 1.714 MB / 498.4 MB, free: 2.758 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00345/1.126, allocations: 1.179 MB / 499.6 MB, free: 1.578 MB / 346.7 MB Notification: Performance of SimCode: time 1.433e-06/1.126, allocations: 0 / 499.6 MB, free: 1.578 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3623/1.488, allocations: 47.46 MB / 0.5343 GB, free: 74.19 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002641/1.489, allocations: 181.7 kB / 0.5344 GB, free: 73.99 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.797/5.286, allocations: 0 / 0.5344 GB, free: 73.99 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses_res.mat does not exist to compare? outputFormat=mat