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.757/1.757, allocations: 171.2 MB / 183.8 MB, free: 12.04 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.53e-05/3.544e-05, allocations: 4 kB / 225.1 MB, free: 2.695 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.259/0.2591, allocations: 38.77 MB / 263.8 MB, free: 9.859 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1342/0.3933, allocations: 75.22 MB / 339.1 MB, free: 14.52 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003351/0.3937, allocations: 83.95 kB / 339.1 MB, free: 14.44 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4307/0.8245, allocations: 51.24 MB / 390.4 MB, free: 81.16 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.224e-06/0.8245, allocations: 4 kB / 390.4 MB, free: 81.16 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.000114/0.8246, allocations: 49.16 kB / 390.4 MB, free: 81.16 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.007159/0.8318, allocations: 2.404 MB / 392.8 MB, free: 79.66 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.057e-05/0.8319, allocations: 7.938 kB / 392.8 MB, free: 79.65 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001797/0.8337, allocations: 0.5565 MB / 393.4 MB, free: 79.11 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.015/0.8487, allocations: 1.956 MB / 395.4 MB, free: 77.14 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004611/0.8534, allocations: 1.39 MB / 396.8 MB, free: 75.72 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002111/0.8536, allocations: 224.2 kB / 397 MB, free: 75.52 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001496/0.8552, allocations: 302.2 kB / 397.3 MB, free: 75.25 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03064/0.8858, allocations: 8.832 MB / 406.1 MB, free: 65.54 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002094/0.8861, allocations: 59.45 kB / 406.2 MB, free: 65.48 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001153/0.8873, allocations: 154.5 kB / 406.3 MB, free: 65.35 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002205/0.8895, allocations: 0.785 MB / 407.1 MB, free: 64.56 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02847/0.918, allocations: 7.044 MB / 414.1 MB, free: 57.52 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05043/0.9685, allocations: 38.03 MB / 452.2 MB, free: 18.36 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03863/1.007, allocations: 5.225 MB / 457.4 MB, free: 12.95 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002201/1.009, allocations: 0.9118 MB / 458.3 MB, free: 12.02 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007635/1.017, allocations: 3.349 MB / 461.6 MB, free: 8.59 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.94e-05/1.017, allocations: 42.56 kB / 461.7 MB, free: 8.539 MB / 314.7 MB Notification: Performance of pre-optimization done (n=104): time 5.01e-06/1.017, allocations: 0 / 461.7 MB, free: 8.539 MB / 314.7 MB Notification: Performance of matching and sorting (n=104): time 0.07258/1.09, allocations: 8.06 MB / 469.8 MB, free: 472 kB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.107e-05/1.09, allocations: 187.9 kB / 469.9 MB, free: 240 kB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006955/1.097, allocations: 2.66 MB / 472.6 MB, free: 13.55 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002483/1.097, allocations: 41.7 kB / 472.6 MB, free: 13.51 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002813/1.1, allocations: 2.417 MB / 475.1 MB, free: 11.1 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000901/1.101, allocations: 473.8 kB / 475.5 MB, free: 10.64 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006409/1.102, allocations: 108 kB / 475.6 MB, free: 10.54 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0005422/1.102, allocations: 0.5378 MB / 476.2 MB, free: 9.988 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004238/1.106, allocations: 1.436 MB / 477.6 MB, free: 8.547 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007854/1.114, allocations: 4.967 MB / 482.6 MB, free: 1.785 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006777/1.121, allocations: 2.698 MB / 485.3 MB, free: 15.09 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001225/1.121, allocations: 36 kB / 485.3 MB, free: 15.05 MB / 346.7 MB Notification: Performance of matching and sorting (n=695) (initialization): time 0.01782/1.139, allocations: 6.04 MB / 491.3 MB, free: 9.008 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001333/1.139, allocations: 60 kB / 491.4 MB, free: 8.949 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002179/1.14, allocations: 128 kB / 491.5 MB, free: 8.824 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002706/1.14, allocations: 184 kB / 491.7 MB, free: 8.645 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01071/1.151, allocations: 1.505 MB / 493.2 MB, free: 7.137 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003/1.151, allocations: 243.1 kB / 493.4 MB, free: 6.898 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005684/1.157, allocations: 0.7542 MB / 494.2 MB, free: 6.137 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001197/1.158, allocations: 340 kB / 494.5 MB, free: 5.805 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.001073/1.159, allocations: 0.52 MB / 495 MB, free: 5.277 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006734/1.16, allocations: 248.8 kB / 495.3 MB, free: 5.031 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001971/1.162, allocations: 0.7042 MB / 496 MB, free: 4.316 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.808e-05/1.162, allocations: 12 kB / 496 MB, free: 4.305 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.869e-06/1.162, allocations: 0 / 496 MB, free: 4.305 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.673e-05/1.162, allocations: 7.984 kB / 496 MB, free: 4.297 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006519/1.168, allocations: 2.265 MB / 498.3 MB, free: 1.996 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.419e-05/1.168, allocations: 0 / 498.3 MB, free: 1.996 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005369/1.174, allocations: 467.4 kB / 498.7 MB, free: 1.539 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.619e-05/1.174, allocations: 4 kB / 498.7 MB, free: 1.535 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002641/1.174, allocations: 31.97 kB / 498.8 MB, free: 1.504 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.507e-05/1.174, allocations: 12.31 kB / 498.8 MB, free: 1.492 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.63e-06/1.174, allocations: 4 kB / 498.8 MB, free: 1.488 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2387/1.413, allocations: 2.574 MB / 0.4896 GB, free: 98.88 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000777/1.414, allocations: 302.2 kB / 0.4899 GB, free: 98.78 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006472/1.414, allocations: 27.95 kB / 0.4899 GB, free: 98.78 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001986/1.416, allocations: 51.56 kB / 0.49 GB, free: 98.78 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002735/1.417, allocations: 58.48 kB / 0.49 GB, free: 98.78 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001222/1.417, allocations: 32.06 kB / 0.4901 GB, free: 98.78 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.004414/1.421, allocations: 1.788 MB / 0.4918 GB, free: 98.62 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.132e-06/1.421, allocations: 0 / 0.4918 GB, free: 98.62 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.00544/1.427, allocations: 0.8188 MB / 0.4926 GB, free: 98.62 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.00513/1.432, allocations: 3.513 MB / 0.496 GB, free: 97.04 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.007511/1.44, allocations: 3.311 MB / 0.4993 GB, free: 96.91 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 9.768e-06/1.44, allocations: 0 / 0.4993 GB, free: 96.91 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001354/1.441, allocations: 0.5977 MB / 0.4999 GB, free: 96.89 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001983/1.443, allocations: 237.2 kB / 0.5001 GB, free: 96.88 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02253/1.466, allocations: 7.441 MB / 0.5073 GB, free: 94.03 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003641/1.469, allocations: 2.427 MB / 0.5097 GB, free: 92.96 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002666/1.472, allocations: 1.23 MB / 0.5109 GB, free: 92.03 MB / 346.7 MB Notification: Performance of SimCode: time 1.593e-06/1.472, allocations: 0 / 0.5109 GB, free: 92.03 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.745/5.217, allocations: 56.04 MB / 0.5656 GB, free: 44.05 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