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.99/1.99, allocations: 194.9 MB / 208.4 MB, free: 3.254 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.343e-05/3.357e-05, allocations: 4 kB / 255.5 MB, free: 3.09 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0947/0.09477, allocations: 44.51 MB / 300 MB, free: 6.52 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.43/0.5249, allocations: 80.66 MB / 380.6 MB, free: 12.39 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002946/0.5252, allocations: 83.72 kB / 380.7 MB, free: 12.39 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1924/0.7177, allocations: 51.24 MB / 431.9 MB, free: 12.73 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.014e-06/0.7177, allocations: 0 / 431.9 MB, free: 12.73 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001101/0.7179, allocations: 49.88 kB / 432 MB, free: 12.73 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.008108/0.726, allocations: 2.41 MB / 434.4 MB, free: 11.19 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.343e-05/0.7261, allocations: 11.62 kB / 434.4 MB, free: 11.18 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002154/0.7282, allocations: 0.5573 MB / 435 MB, free: 11.02 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01561/0.7439, allocations: 1.953 MB / 436.9 MB, free: 9.094 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005038/0.749, allocations: 1.387 MB / 438.3 MB, free: 7.957 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003385/0.7494, allocations: 228.1 kB / 438.5 MB, free: 7.832 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001829/0.7512, allocations: 304.1 kB / 438.8 MB, free: 7.633 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03425/0.7855, allocations: 8.79 MB / 447.6 MB, free: 15.51 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002154/0.7858, allocations: 55.47 kB / 447.7 MB, free: 15.45 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00114/0.7869, allocations: 150.1 kB / 447.8 MB, free: 15.33 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002438/0.7894, allocations: 0.8005 MB / 448.6 MB, free: 14.52 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03031/0.8197, allocations: 6.885 MB / 455.5 MB, free: 7.637 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05931/0.8791, allocations: 38.02 MB / 493.5 MB, free: 488 kB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03912/0.9183, allocations: 5.211 MB / 498.7 MB, free: 11.09 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002564/0.9209, allocations: 0.9079 MB / 499.6 MB, free: 10.16 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008608/0.9296, allocations: 3.336 MB / 0.4912 GB, free: 6.746 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.858e-05/0.9297, allocations: 54.5 kB / 0.4912 GB, free: 6.684 MB / 394.7 MB Notification: Performance of pre-optimization done (n=104): time 5.49e-06/0.9297, allocations: 0 / 0.4912 GB, free: 6.684 MB / 394.7 MB Notification: Performance of matching and sorting (n=104): time 0.07299/1.003, allocations: 8.055 MB / 0.4991 GB, free: 14.61 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001184/1.003, allocations: 203.8 kB / 0.4993 GB, free: 14.37 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006856/1.01, allocations: 2.657 MB / 0.5019 GB, free: 11.7 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002418/1.01, allocations: 37.7 kB / 0.5019 GB, free: 11.65 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002787/1.013, allocations: 2.41 MB / 0.5043 GB, free: 9.25 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009116/1.014, allocations: 485.7 kB / 0.5048 GB, free: 8.777 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006253/1.014, allocations: 100 kB / 0.5048 GB, free: 8.68 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0004727/1.015, allocations: 0.5301 MB / 0.5054 GB, free: 8.141 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004147/1.019, allocations: 1.451 MB / 0.5068 GB, free: 6.684 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2693/1.288, allocations: 4.932 MB / 0.5116 GB, free: 113.3 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006929/1.295, allocations: 2.681 MB / 0.5142 GB, free: 113.3 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001307/1.296, allocations: 36.69 kB / 0.5143 GB, free: 113.3 MB / 410.7 MB Notification: Performance of matching and sorting (n=695) (initialization): time 0.01687/1.312, allocations: 5.699 MB / 0.5198 GB, free: 112.9 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001148/1.313, allocations: 66.38 kB / 0.5199 GB, free: 112.9 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002103/1.313, allocations: 124 kB / 0.52 GB, free: 112.9 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000255/1.313, allocations: 183 kB / 0.5202 GB, free: 112.9 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01068/1.324, allocations: 1.506 MB / 0.5216 GB, free: 112.8 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003113/1.324, allocations: 248.5 kB / 0.5219 GB, free: 112.7 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00589/1.33, allocations: 0.7446 MB / 0.5226 GB, free: 112.7 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00126/1.331, allocations: 341.4 kB / 0.5229 GB, free: 112.7 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.001187/1.333, allocations: 0.5234 MB / 0.5234 GB, free: 112.5 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006161/1.333, allocations: 247 kB / 0.5237 GB, free: 112.4 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001945/1.335, allocations: 0.6997 MB / 0.5244 GB, free: 112.3 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.956e-05/1.335, allocations: 12.67 kB / 0.5244 GB, free: 112.3 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.174e-05/1.335, allocations: 3.875 kB / 0.5244 GB, free: 112.3 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.792e-05/1.335, allocations: 4.125 kB / 0.5244 GB, free: 112.3 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006096/1.341, allocations: 2.274 MB / 0.5266 GB, free: 112.1 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.27e-05/1.342, allocations: 3.938 kB / 0.5266 GB, free: 112.1 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004953/1.346, allocations: 467.2 kB / 0.5271 GB, free: 112.1 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.287e-05/1.347, allocations: 7.5 kB / 0.5271 GB, free: 112.1 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002455/1.347, allocations: 37.11 kB / 0.5271 GB, free: 112.1 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.949e-06/1.347, allocations: 7.438 kB / 0.5271 GB, free: 112.1 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.078e-06/1.347, allocations: 3.953 kB / 0.5271 GB, free: 112.1 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004265/1.351, allocations: 2.563 MB / 0.5296 GB, free: 111.3 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008016/1.352, allocations: 304.2 kB / 0.5299 GB, free: 111 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004977/1.353, allocations: 26.45 kB / 0.5299 GB, free: 111 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001696/1.354, allocations: 57.95 kB / 0.53 GB, free: 111 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001804/1.354, allocations: 52.45 kB / 0.53 GB, free: 111 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001158/1.355, allocations: 34.53 kB / 0.5301 GB, free: 111 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.004108/1.359, allocations: 1.794 MB / 0.5318 GB, free: 110.9 MB / 410.7 MB Notification: Performance of sort global known variables: time 8.31e-07/1.359, allocations: 0 / 0.5318 GB, free: 110.9 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.005951/1.365, allocations: 0.819 MB / 0.5326 GB, free: 110.8 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.004903/1.37, allocations: 3.51 MB / 0.536 GB, free: 109.2 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.007683/1.377, allocations: 3.146 MB / 0.5391 GB, free: 108.9 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 9.277e-06/1.377, allocations: 0 / 0.5391 GB, free: 108.9 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001269/1.379, allocations: 0.5952 MB / 0.5397 GB, free: 108.9 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001939/1.381, allocations: 229.4 kB / 0.5399 GB, free: 108.9 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02226/1.403, allocations: 7.439 MB / 0.5472 GB, free: 106.1 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0043/1.407, allocations: 2.42 MB / 0.5495 GB, free: 105 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002872/1.41, allocations: 1.235 MB / 0.5508 GB, free: 104.1 MB / 410.7 MB Notification: Performance of SimCode: time 2.204e-06/1.41, allocations: 0 / 0.5508 GB, free: 104.1 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.7/5.111, allocations: 55.23 MB / 0.6047 GB, free: 62.62 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