Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity,fileNamePrefix="Modelica_3_2_1_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravity",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.656/1.656, allocations: 171.3 MB / 178.4 MB, free: 164 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 4.094e-05/4.094e-05, allocations: 12 kB / 219.6 MB, free: 6.941 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2583/0.2584, allocations: 38.76 MB / 258.4 MB, free: 12.19 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1313/0.3897, allocations: 75.02 MB / 333.4 MB, free: 2.758 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002905/0.3901, allocations: 75.95 kB / 333.4 MB, free: 2.684 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5183/0.9084, allocations: 58.22 MB / 391.7 MB, free: 80.3 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.234e-06/0.9085, allocations: 0 / 391.7 MB, free: 80.3 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001039/0.9086, allocations: 46.5 kB / 391.7 MB, free: 80.29 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: 908 * Number of variables: 908 Notification: Performance of Generate backend data structure: time 0.02541/0.934, allocations: 3.432 MB / 395.1 MB, free: 78.39 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.97e-05/0.9341, allocations: 10.28 kB / 395.2 MB, free: 78.39 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02076/0.9549, allocations: 2.319 MB / 397.5 MB, free: 76.36 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02316/0.9781, allocations: 4.825 MB / 402.3 MB, free: 71.63 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000222/0.9784, allocations: 75.98 kB / 402.4 MB, free: 71.56 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001698/0.9801, allocations: 135.9 kB / 402.5 MB, free: 71.43 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01489/0.995, allocations: 5.539 MB / 408 MB, free: 65.89 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01914/1.014, allocations: 7.815 MB / 415.9 MB, free: 57.24 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001783/1.014, allocations: 51.53 kB / 415.9 MB, free: 57.19 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007192/1.015, allocations: 28 kB / 415.9 MB, free: 57.16 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002142/1.017, allocations: 0.722 MB / 416.7 MB, free: 56.44 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05066/1.068, allocations: 36.55 MB / 453.2 MB, free: 18.91 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005773/1.074, allocations: 3.161 MB / 456.4 MB, free: 15.6 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004185/1.078, allocations: 2.168 MB / 458.5 MB, free: 13.41 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001713/1.078, allocations: 19.73 kB / 458.6 MB, free: 13.4 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.088e-05/1.078, allocations: 50.5 kB / 458.6 MB, free: 13.34 MB / 314.7 MB Notification: Performance of pre-optimization done (n=122): time 5.37e-06/1.078, allocations: 3.984 kB / 458.6 MB, free: 13.34 MB / 314.7 MB Notification: Performance of matching and sorting (n=136): time 0.05242/1.131, allocations: 13.55 MB / 472.2 MB, free: 15.61 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.822e-05/1.131, allocations: 178.8 kB / 472.3 MB, free: 15.4 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004952/1.136, allocations: 2.284 MB / 474.6 MB, free: 13.09 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006833/1.137, allocations: 29.7 kB / 474.6 MB, free: 13.06 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002398/1.139, allocations: 2.117 MB / 476.8 MB, free: 10.91 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001236/1.14, allocations: 0.5515 MB / 477.3 MB, free: 10.35 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005463/1.141, allocations: 0 / 477.3 MB, free: 10.35 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0004186/1.141, allocations: 0.5205 MB / 477.8 MB, free: 9.82 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005443/1.147, allocations: 2.227 MB / 480.1 MB, free: 7.586 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008299/1.155, allocations: 5.207 MB / 485.3 MB, free: 0.875 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00815/1.163, allocations: 3.323 MB / 488.6 MB, free: 13.55 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.525e-05/1.163, allocations: 28.19 kB / 488.6 MB, free: 13.52 MB / 346.7 MB Notification: Performance of matching and sorting (n=648) (initialization): time 0.03165/1.195, allocations: 8.517 MB / 497.1 MB, free: 4.98 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.301e-05/1.195, allocations: 52 kB / 497.2 MB, free: 4.93 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01918/1.214, allocations: 4.437 MB / 0.4899 GB, free: 484 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.2382/1.453, allocations: 2.157 MB / 0.492 GB, free: 96.17 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008392/1.461, allocations: 1.23 MB / 0.4932 GB, free: 96.17 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008302/1.469, allocations: 7.128 MB / 0.5001 GB, free: 91.32 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008045/1.478, allocations: 484.4 kB / 0.5006 GB, free: 91.32 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001287/1.479, allocations: 315.6 kB / 0.5009 GB, free: 91.32 MB / 346.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 (602): * Single equations (assignments): 587 * 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 {1,1} * 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.001045/1.48, allocations: 366.2 kB / 0.5013 GB, free: 91.21 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.02011/1.5, allocations: 5.191 MB / 0.5063 GB, free: 91.1 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001079/1.501, allocations: 240.1 kB / 0.5065 GB, free: 91.09 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001317/1.502, allocations: 379.2 kB / 0.5069 GB, free: 91.06 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0186/1.521, allocations: 4.513 MB / 0.5113 GB, free: 90.94 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.482e-05/1.521, allocations: 4.656 kB / 0.5113 GB, free: 90.94 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.543e-05/1.521, allocations: 6.188 kB / 0.5113 GB, free: 90.94 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01344/1.535, allocations: 5.021 MB / 0.5162 GB, free: 89.55 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.837e-05/1.535, allocations: 0 / 0.5162 GB, free: 89.55 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00308/1.538, allocations: 283.8 kB / 0.5165 GB, free: 89.54 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01522/1.553, allocations: 2.338 MB / 0.5188 GB, free: 89.25 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006018/1.554, allocations: 32.27 kB / 0.5188 GB, free: 89.24 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0128/1.567, allocations: 8.615 MB / 0.5272 GB, free: 83.54 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001966/1.569, allocations: 2.773 MB / 0.5299 GB, free: 80.83 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02574/1.594, allocations: 7.985 MB / 0.5377 GB, free: 76.36 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008544/1.595, allocations: 309 kB / 0.538 GB, free: 76.05 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009091/1.596, allocations: 19.38 kB / 0.538 GB, free: 76.04 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003676/1.6, allocations: 249.2 kB / 0.5383 GB, free: 75.91 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006024/1.6, allocations: 107 kB / 0.5384 GB, free: 75.86 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002336/1.601, allocations: 41.44 kB / 0.5384 GB, free: 75.82 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.002844/1.604, allocations: 1.524 MB / 0.5399 GB, free: 74.49 MB / 346.7 MB Notification: Performance of sort global known variables: time 6.61e-07/1.604, allocations: 3.125 kB / 0.5399 GB, free: 74.49 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.005945/1.61, allocations: 0.858 MB / 0.5408 GB, free: 73.64 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 24 ($STATESET5615980937.x[3],$STATESET5615980937.x[2],$STATESET5615980937.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],$STATESET5615980936.x[3],$STATESET5615980936.x[2],$STATESET5615980936.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.02488/1.635, allocations: 8.865 MB / 0.5494 GB, free: 65.19 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.01523/1.65, allocations: 6.207 MB / 0.5555 GB, free: 58.93 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 7.594e-06/1.65, allocations: 4 kB / 0.5555 GB, free: 58.92 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00947/1.659, allocations: 3.336 MB / 0.5587 GB, free: 55.47 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00251/1.662, allocations: 235.1 kB / 0.559 GB, free: 55.25 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02613/1.688, allocations: 8.142 MB / 0.5669 GB, free: 47.25 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002912/1.691, allocations: 2.342 MB / 0.5692 GB, free: 44.89 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.00699/1.698, allocations: 1.672 MB / 0.5708 GB, free: 43.22 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003058/1.701, allocations: 1.155 MB / 0.572 GB, free: 42.06 MB / 346.7 MB Notification: Performance of SimCode: time 1.633e-06/1.701, allocations: 0 / 0.572 GB, free: 42.06 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3827/2.084, allocations: 60.85 MB / 0.6314 GB, free: 99.65 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002383/2.084, allocations: 153.8 kB / 0.6315 GB, free: 99.46 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.111/6.195, allocations: 0.9375 kB / 0.6315 GB, free: 99.46 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity_res.mat does not exist to compare? outputFormat=mat