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.634/1.634, allocations: 171.2 MB / 183.8 MB, free: 11.94 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.303e-05/3.295e-05, allocations: 4 kB / 225.1 MB, free: 2.598 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2555/0.2556, allocations: 38.77 MB / 263.9 MB, free: 9.746 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.132/0.3876, allocations: 75.23 MB / 339.1 MB, free: 14.4 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003089/0.388, allocations: 83.95 kB / 339.2 MB, free: 14.32 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4182/0.8062, allocations: 51.24 MB / 390.4 MB, free: 80.98 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.084e-06/0.8062, allocations: 0 / 390.4 MB, free: 80.98 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.000105/0.8063, allocations: 55.28 kB / 390.5 MB, free: 80.98 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.00926/0.8156, allocations: 2.407 MB / 392.9 MB, free: 79.39 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.216e-05/0.8157, allocations: 8.031 kB / 392.9 MB, free: 79.38 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002602/0.8183, allocations: 0.5598 MB / 393.4 MB, free: 78.83 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02197/0.8403, allocations: 1.962 MB / 395.4 MB, free: 76.86 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006577/0.847, allocations: 1.387 MB / 396.8 MB, free: 75.44 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003854/0.8474, allocations: 227.7 kB / 397 MB, free: 75.24 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002043/0.8495, allocations: 302 kB / 397.3 MB, free: 74.96 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03557/0.8851, allocations: 8.801 MB / 406.1 MB, free: 65.29 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001814/0.8853, allocations: 55.47 kB / 406.2 MB, free: 65.23 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009134/0.8862, allocations: 157.9 kB / 406.3 MB, free: 65.1 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001967/0.8882, allocations: 0.7847 MB / 407.1 MB, free: 64.31 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02757/0.9158, allocations: 6.889 MB / 414 MB, free: 57.42 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06526/0.9811, allocations: 38.02 MB / 452 MB, free: 18.27 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04171/1.023, allocations: 5.211 MB / 457.2 MB, free: 12.88 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002154/1.025, allocations: 0.9078 MB / 458.1 MB, free: 11.95 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007402/1.033, allocations: 3.345 MB / 461.5 MB, free: 8.527 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.967e-05/1.033, allocations: 46.59 kB / 461.5 MB, free: 8.473 MB / 314.7 MB Notification: Performance of pre-optimization done (n=104): time 5.781e-06/1.033, allocations: 3.984 kB / 461.5 MB, free: 8.469 MB / 314.7 MB Notification: Performance of matching and sorting (n=104): time 0.06895/1.102, allocations: 8.045 MB / 469.6 MB, free: 416 kB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.288e-05/1.102, allocations: 191.9 kB / 469.8 MB, free: 180 kB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006235/1.108, allocations: 2.664 MB / 472.4 MB, free: 13.49 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000231/1.108, allocations: 42.17 kB / 472.5 MB, free: 13.44 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002537/1.111, allocations: 2.413 MB / 474.9 MB, free: 11.04 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008524/1.112, allocations: 477.7 kB / 475.3 MB, free: 10.57 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005098/1.112, allocations: 108 kB / 475.4 MB, free: 10.47 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.000459/1.113, allocations: 0.5301 MB / 476 MB, free: 9.93 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00398/1.117, allocations: 1.443 MB / 477.4 MB, free: 8.48 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01088/1.128, allocations: 4.937 MB / 482.4 MB, free: 1.754 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008607/1.136, allocations: 2.694 MB / 485 MB, free: 15.06 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001556/1.136, allocations: 36 kB / 485.1 MB, free: 15.02 MB / 346.7 MB Notification: Performance of matching and sorting (n=695) (initialization): time 0.01756/1.154, allocations: 5.685 MB / 490.8 MB, free: 9.336 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001256/1.154, allocations: 56 kB / 490.8 MB, free: 9.281 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000204/1.154, allocations: 128.9 kB / 490.9 MB, free: 9.156 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002805/1.155, allocations: 184 kB / 491.1 MB, free: 8.977 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01054/1.165, allocations: 1.509 MB / 492.6 MB, free: 7.465 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003287/1.166, allocations: 247 kB / 492.9 MB, free: 7.223 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005596/1.171, allocations: 0.7538 MB / 493.6 MB, free: 6.461 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001059/1.172, allocations: 336 kB / 494 MB, free: 6.133 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 577 * 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 (671): * Single equations (assignments): 668 * 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.0009785/1.173, allocations: 0.5207 MB / 494.5 MB, free: 5.605 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006467/1.174, allocations: 252.8 kB / 494.7 MB, free: 5.355 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001936/1.176, allocations: 0.6969 MB / 495.4 MB, free: 4.645 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.641e-05/1.176, allocations: 12 kB / 495.4 MB, free: 4.633 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.329e-05/1.176, allocations: 7.938 kB / 495.4 MB, free: 4.625 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.428e-05/1.176, allocations: 3.984 kB / 495.4 MB, free: 4.621 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006054/1.182, allocations: 2.273 MB / 497.7 MB, free: 2.312 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.296e-05/1.182, allocations: 4 kB / 497.7 MB, free: 2.309 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005185/1.187, allocations: 467.4 kB / 498.2 MB, free: 1.852 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.753e-05/1.187, allocations: 8 kB / 498.2 MB, free: 1.844 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001691/1.188, allocations: 35.97 kB / 498.2 MB, free: 1.809 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.658e-05/1.188, allocations: 11.95 kB / 498.2 MB, free: 1.797 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.27e-06/1.188, allocations: 3.938 kB / 498.2 MB, free: 1.793 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.232/1.42, allocations: 2.56 MB / 0.4891 GB, free: 98.54 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008128/1.421, allocations: 302.5 kB / 0.4894 GB, free: 98.44 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005242/1.421, allocations: 31.58 kB / 0.4894 GB, free: 98.44 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001636/1.423, allocations: 52.05 kB / 0.4894 GB, free: 98.44 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001729/1.423, allocations: 58.05 kB / 0.4895 GB, free: 98.44 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001238/1.423, allocations: 36.12 kB / 0.4895 GB, free: 98.44 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.003946/1.427, allocations: 1.786 MB / 0.4913 GB, free: 98.28 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.192e-06/1.427, allocations: 0 / 0.4913 GB, free: 98.28 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.00566/1.433, allocations: 0.8188 MB / 0.4921 GB, free: 98.28 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * 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 (81): * Single equations (assignments): 78 * 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.005008/1.438, allocations: 3.516 MB / 0.4955 GB, free: 96.71 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.007031/1.445, allocations: 3.149 MB / 0.4986 GB, free: 96.64 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 8.856e-06/1.445, allocations: 0 / 0.4986 GB, free: 96.64 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001275/1.446, allocations: 0.5853 MB / 0.4991 GB, free: 96.63 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001789/1.448, allocations: 238.7 kB / 0.4994 GB, free: 96.62 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02107/1.469, allocations: 7.432 MB / 0.5066 GB, free: 93.89 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0034/1.473, allocations: 2.421 MB / 0.509 GB, free: 92.82 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002446/1.475, allocations: 1.234 MB / 0.5102 GB, free: 91.88 MB / 346.7 MB Notification: Performance of SimCode: time 1.082e-06/1.475, allocations: 0 / 0.5102 GB, free: 91.88 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.488/4.963, allocations: 55.23 MB / 0.5641 GB, free: 45.1 MB / 346.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