Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.968/1.968, allocations: 194.9 MB / 208.4 MB, free: 3.258 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.853e-05/3.873e-05, allocations: 4 kB / 255.4 MB, free: 3.105 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0993/0.09937, allocations: 44.5 MB / 299.9 MB, free: 6.543 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4308/0.5302, allocations: 80.65 MB / 380.6 MB, free: 12.81 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003049/0.5306, allocations: 85.53 kB / 380.7 MB, free: 12.81 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1908/0.7214, allocations: 51.28 MB / 431.9 MB, free: 13.25 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.815e-06/0.7215, allocations: 0 / 431.9 MB, free: 13.25 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001232/0.7217, allocations: 50.38 kB / 432 MB, free: 13.25 MB / 330.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.008585/0.7303, allocations: 2.417 MB / 434.4 MB, free: 11.71 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.3e-05/0.7303, allocations: 11.28 kB / 434.4 MB, free: 11.71 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002306/0.7326, allocations: 0.5556 MB / 435 MB, free: 11.55 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01584/0.7485, allocations: 1.952 MB / 436.9 MB, free: 9.656 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005384/0.754, allocations: 1.388 MB / 438.3 MB, free: 8.52 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003149/0.7544, allocations: 227.4 kB / 438.5 MB, free: 8.395 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001697/0.7561, allocations: 303.2 kB / 438.8 MB, free: 8.199 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03396/0.7901, allocations: 8.831 MB / 447.7 MB, free: 15.6 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002134/0.7903, allocations: 59.47 kB / 447.7 MB, free: 15.54 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001158/0.7915, allocations: 150.2 kB / 447.9 MB, free: 15.42 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002422/0.7939, allocations: 0.7887 MB / 448.7 MB, free: 14.62 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03011/0.8241, allocations: 7.041 MB / 455.7 MB, free: 7.582 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05911/0.8833, allocations: 38.02 MB / 493.7 MB, free: 440 kB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03883/0.9222, allocations: 5.229 MB / 498.9 MB, free: 11.02 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002465/0.9247, allocations: 0.9039 MB / 499.8 MB, free: 10.1 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008126/0.9328, allocations: 3.348 MB / 0.4914 GB, free: 6.668 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.099e-05/0.9329, allocations: 50.48 kB / 0.4914 GB, free: 6.609 MB / 394.7 MB Notification: Performance of pre-optimization done (n=104): time 5.47e-06/0.933, allocations: 0 / 0.4914 GB, free: 6.609 MB / 394.7 MB Notification: Performance of matching and sorting (n=104): time 0.07755/1.011, allocations: 8.061 MB / 0.4993 GB, free: 14.53 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001348/1.011, allocations: 195.9 kB / 0.4995 GB, free: 14.3 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006436/1.017, allocations: 2.657 MB / 0.5021 GB, free: 11.62 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002527/1.017, allocations: 41.7 kB / 0.5021 GB, free: 11.57 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002694/1.02, allocations: 2.411 MB / 0.5045 GB, free: 9.172 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009448/1.021, allocations: 477.4 kB / 0.505 GB, free: 8.707 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006355/1.022, allocations: 108 kB / 0.5051 GB, free: 8.602 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0005281/1.022, allocations: 0.5301 MB / 0.5056 GB, free: 8.062 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004387/1.027, allocations: 1.443 MB / 0.507 GB, free: 6.613 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2751/1.302, allocations: 4.967 MB / 0.5118 GB, free: 113.7 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006987/1.309, allocations: 2.679 MB / 0.5144 GB, free: 113.7 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001425/1.309, allocations: 36.28 kB / 0.5145 GB, free: 113.7 MB / 410.7 MB Notification: Performance of matching and sorting (n=695) (initialization): time 0.01722/1.326, allocations: 6.057 MB / 0.5204 GB, free: 113.2 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.668e-05/1.327, allocations: 58.06 kB / 0.5205 GB, free: 113.2 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002024/1.327, allocations: 132 kB / 0.5206 GB, free: 113.2 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000268/1.327, allocations: 179.6 kB / 0.5208 GB, free: 113.2 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01044/1.338, allocations: 1.508 MB / 0.5222 GB, free: 113.1 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003345/1.338, allocations: 244.6 kB / 0.5225 GB, free: 113 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005875/1.344, allocations: 0.7464 MB / 0.5232 GB, free: 113 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001276/1.345, allocations: 342.3 kB / 0.5235 GB, free: 113 MB / 410.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.001587/1.347, allocations: 0.5228 MB / 0.524 GB, free: 112.8 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006421/1.347, allocations: 247 kB / 0.5243 GB, free: 112.7 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002155/1.35, allocations: 0.7027 MB / 0.5249 GB, free: 112.6 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.402e-05/1.35, allocations: 15.44 kB / 0.525 GB, free: 112.6 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.285e-05/1.35, allocations: 3.906 kB / 0.525 GB, free: 112.6 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.908e-05/1.35, allocations: 7.547 kB / 0.525 GB, free: 112.6 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006675/1.356, allocations: 2.266 MB / 0.5272 GB, free: 112.4 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.272e-05/1.356, allocations: 3.719 kB / 0.5272 GB, free: 112.4 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005021/1.362, allocations: 464.3 kB / 0.5276 GB, free: 112.4 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.159e-05/1.362, allocations: 3.781 kB / 0.5276 GB, free: 112.4 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002661/1.362, allocations: 37.45 kB / 0.5277 GB, free: 112.4 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.406e-06/1.362, allocations: 3.5 kB / 0.5277 GB, free: 112.4 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.592e-06/1.362, allocations: 7.391 kB / 0.5277 GB, free: 112.4 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004388/1.366, allocations: 2.572 MB / 0.5302 GB, free: 111.5 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008266/1.367, allocations: 300.7 kB / 0.5305 GB, free: 111.3 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005472/1.368, allocations: 30.17 kB / 0.5305 GB, free: 111.3 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001828/1.37, allocations: 48 kB / 0.5306 GB, free: 111.3 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002615/1.37, allocations: 69.05 kB / 0.5306 GB, free: 111.3 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001262/1.37, allocations: 33.53 kB / 0.5307 GB, free: 111.3 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.004519/1.375, allocations: 1.79 MB / 0.5324 GB, free: 111.1 MB / 410.7 MB Notification: Performance of sort global known variables: time 8.12e-07/1.375, allocations: 0 / 0.5324 GB, free: 111.1 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.005567/1.38, allocations: 0.8259 MB / 0.5332 GB, free: 111.1 MB / 410.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.005019/1.385, allocations: 3.505 MB / 0.5366 GB, free: 109.4 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.007622/1.393, allocations: 3.314 MB / 0.5399 GB, free: 109.1 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 9.187e-06/1.393, allocations: 0 / 0.5399 GB, free: 109.1 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001348/1.394, allocations: 0.5945 MB / 0.5404 GB, free: 109.1 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001832/1.396, allocations: 229.8 kB / 0.5407 GB, free: 109.1 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0235/1.42, allocations: 7.438 MB / 0.5479 GB, free: 106 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004625/1.424, allocations: 2.426 MB / 0.5503 GB, free: 105 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002985/1.427, allocations: 1.23 MB / 0.5515 GB, free: 104 MB / 410.7 MB Notification: Performance of SimCode: time 1.302e-06/1.427, allocations: 3.938 kB / 0.5515 GB, free: 104 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.716/5.143, allocations: 56.03 MB / 0.6062 GB, free: 61.36 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses_res.mat does not exist to compare? outputFormat=mat