Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity,fileNamePrefix="Modelica_3_2_2_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravity",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.013/2.013, allocations: 195 MB / 202.8 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.685e-05/2.696e-05, allocations: 4 kB / 249.7 MB, free: 14.82 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3051/0.3052, allocations: 44.5 MB / 294.2 MB, free: 14.33 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1496/0.4548, allocations: 80.66 MB / 374.9 MB, free: 1.18 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003438/0.4552, allocations: 83.95 kB / 375 MB, free: 1.098 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5133/0.9685, allocations: 58.39 MB / 433.4 MB, free: 90.56 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.926e-06/0.9686, allocations: 1.562 kB / 433.4 MB, free: 90.56 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001484/0.9688, allocations: 43.27 kB / 433.4 MB, free: 90.56 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 908 * Number of variables: 908 Notification: Performance of Generate backend data structure: time 0.02658/0.9954, allocations: 3.444 MB / 436.8 MB, free: 89.39 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.156e-05/0.9954, allocations: 7.469 kB / 436.8 MB, free: 89.39 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02028/1.016, allocations: 2.348 MB / 439.2 MB, free: 89.22 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01798/1.034, allocations: 4.86 MB / 444.1 MB, free: 88.78 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001912/1.034, allocations: 73.88 kB / 444.1 MB, free: 88.78 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001672/1.036, allocations: 138.7 kB / 444.3 MB, free: 88.78 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01184/1.048, allocations: 5.54 MB / 449.8 MB, free: 88.76 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01665/1.064, allocations: 7.803 MB / 457.6 MB, free: 85.08 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001512/1.064, allocations: 48.28 kB / 457.7 MB, free: 85.08 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007033/1.065, allocations: 24.5 kB / 457.7 MB, free: 85.08 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00172/1.067, allocations: 0.7275 MB / 458.4 MB, free: 84.96 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04956/1.117, allocations: 36.56 MB / 495 MB, free: 50.75 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006028/1.123, allocations: 3.164 MB / 498.1 MB, free: 47.44 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004445/1.127, allocations: 2.167 MB / 0.4886 GB, free: 45.25 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001821/1.127, allocations: 11.83 kB / 0.4886 GB, free: 45.25 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.503e-05/1.127, allocations: 51.62 kB / 0.4886 GB, free: 45.19 MB / 362.7 MB Notification: Performance of pre-optimization done (n=122): time 6.843e-06/1.127, allocations: 0 / 0.4886 GB, free: 45.19 MB / 362.7 MB Notification: Performance of matching and sorting (n=136): time 0.05469/1.182, allocations: 13.55 MB / 0.5019 GB, free: 31.46 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.202e-05/1.182, allocations: 174.7 kB / 0.502 GB, free: 31.26 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004531/1.187, allocations: 2.292 MB / 0.5043 GB, free: 28.95 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006641/1.188, allocations: 25.7 kB / 0.5043 GB, free: 28.92 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001843/1.189, allocations: 2.113 MB / 0.5064 GB, free: 26.77 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001417/1.191, allocations: 0.5516 MB / 0.5069 GB, free: 26.21 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000976/1.192, allocations: 0 / 0.5069 GB, free: 26.21 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000604/1.192, allocations: 0.5206 MB / 0.5074 GB, free: 25.68 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005349/1.198, allocations: 2.231 MB / 0.5096 GB, free: 23.45 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00729/1.205, allocations: 5.218 MB / 0.5147 GB, free: 16.72 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007421/1.213, allocations: 3.336 MB / 0.5179 GB, free: 13.38 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001037/1.213, allocations: 28 kB / 0.518 GB, free: 13.36 MB / 362.7 MB Notification: Performance of matching and sorting (n=648) (initialization): time 0.03237/1.245, allocations: 8.71 MB / 0.5265 GB, free: 4.609 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001008/1.245, allocations: 55.95 kB / 0.5265 GB, free: 4.555 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0199/1.265, allocations: 4.596 MB / 0.531 GB, free: 15.93 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01693/1.282, allocations: 2.32 MB / 0.5333 GB, free: 13.59 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008324/1.291, allocations: 1.205 MB / 0.5344 GB, free: 12.38 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01361/1.304, allocations: 7.823 MB / 0.5421 GB, free: 4.105 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008624/1.313, allocations: 495 kB / 0.5426 GB, free: 3.621 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001619/1.315, allocations: 319.7 kB / 0.5429 GB, free: 3.312 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 487 * Number of states: 0 () * Number of discrete variables: 15 (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 (596): * Single equations (assignments): 581 * Array equations: 7 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 6 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 4 {(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%)} * Non-linear Jacobian: 2 {4,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001578/1.316, allocations: 366 kB / 0.5432 GB, free: 2.945 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.02354/1.34, allocations: 5.19 MB / 0.5483 GB, free: 13.72 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001436/1.341, allocations: 236.9 kB / 0.5485 GB, free: 13.49 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001689/1.343, allocations: 385.7 kB / 0.5489 GB, free: 13.1 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02041/1.363, allocations: 4.513 MB / 0.5533 GB, free: 8.551 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.701e-05/1.364, allocations: 8 kB / 0.5533 GB, free: 8.543 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.729e-05/1.364, allocations: 12.44 kB / 0.5533 GB, free: 8.531 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01448/1.378, allocations: 4.995 MB / 0.5582 GB, free: 3.504 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.238e-05/1.378, allocations: 0 / 0.5582 GB, free: 3.504 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003106/1.381, allocations: 283.5 kB / 0.5585 GB, free: 3.227 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01607/1.397, allocations: 2.347 MB / 0.5607 GB, free: 0.8555 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004858/1.398, allocations: 31.89 kB / 0.5608 GB, free: 0.8242 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2764/1.674, allocations: 8.603 MB / 0.5692 GB, free: 102.5 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002101/1.676, allocations: 2.781 MB / 0.5719 GB, free: 99.87 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02673/1.703, allocations: 7.987 MB / 0.5797 GB, free: 99.21 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00105/1.704, allocations: 308.6 kB / 0.58 GB, free: 99.12 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00122/1.706, allocations: 14.98 kB / 0.58 GB, free: 99.12 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004371/1.71, allocations: 250.6 kB / 0.5802 GB, free: 99.12 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009356/1.711, allocations: 104 kB / 0.5803 GB, free: 99.12 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002523/1.711, allocations: 43.75 kB / 0.5804 GB, free: 99.12 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.003535/1.715, allocations: 1.523 MB / 0.5819 GB, free: 98.97 MB / 394.7 MB Notification: Performance of sort global known variables: time 9.82e-07/1.715, allocations: 6.844 kB / 0.5819 GB, free: 98.97 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.007082/1.722, allocations: 0.8612 MB / 0.5827 GB, free: 98.97 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 24 ($STATESET5478928777.x[3],$STATESET5478928777.x[2],$STATESET5478928777.x[1],body2.frame_a.r_0[1],body2.frame_a.r_0[2],body2.frame_a.r_0[3],body2.v_0[1],body2.v_0[2],body2.v_0[3],body2.w_a[1],body2.w_a[2],body2.w_a[3],$STATESET5478928776.x[3],$STATESET5478928776.x[2],$STATESET5478928776.x[1],body1.frame_a.r_0[1],body1.frame_a.r_0[2],body1.frame_a.r_0[3],body1.v_0[1],body1.v_0[2],body1.v_0[3],body1.w_a[1],body1.w_a[2],body1.w_a[3]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (92): * Single equations (assignments): 81 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 6 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 4 {(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%)} * Non-linear Jacobian: 2 {4,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02652/1.749, allocations: 8.866 MB / 0.5914 GB, free: 97.22 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.01661/1.765, allocations: 6.471 MB / 0.5977 GB, free: 94.94 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 8.125e-06/1.765, allocations: 0 / 0.5977 GB, free: 94.94 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01026/1.776, allocations: 3.339 MB / 0.601 GB, free: 93.47 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002867/1.778, allocations: 233.4 kB / 0.6012 GB, free: 93.37 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03317/1.812, allocations: 8.156 MB / 0.6091 GB, free: 90.58 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004736/1.816, allocations: 2.341 MB / 0.6114 GB, free: 89.55 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.007398/1.824, allocations: 1.667 MB / 0.6131 GB, free: 89.02 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003189/1.827, allocations: 1.143 MB / 0.6142 GB, free: 87.98 MB / 394.7 MB Notification: Performance of SimCode: time 1.212e-06/1.827, allocations: 0 / 0.6142 GB, free: 87.98 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1495/1.977, allocations: 62.08 MB / 0.6748 GB, free: 28.41 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002636/1.977, allocations: 147.9 kB / 0.6749 GB, free: 28.22 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.472/6.449, allocations: 2.516 kB / 0.6749 GB, free: 28.22 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity_res.mat does not exist to compare? outputFormat=mat