Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField,fileNamePrefix="Modelica_3_2_1_Modelica_Mechanics_MultiBody_Examples_Elementary_UserDefinedGravityField",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.709/1.709, allocations: 171.2 MB / 183.3 MB, free: 12.04 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.578e-05/3.592e-05, allocations: 7.984 kB / 225.1 MB, free: 2.207 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2588/0.2589, allocations: 38.76 MB / 263.9 MB, free: 9.797 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1874/0.4463, allocations: 80.96 MB / 344.8 MB, free: 8.715 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003764/0.4467, allocations: 79.95 kB / 344.9 MB, free: 8.637 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.482/0.9287, allocations: 57.68 MB / 402.6 MB, free: 70.87 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.225e-06/0.9288, allocations: 0 / 402.6 MB, free: 70.87 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001315/0.9289, allocations: 44 kB / 402.6 MB, free: 70.82 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: 948 * Number of variables: 948 Notification: Performance of Generate backend data structure: time 0.01009/0.939, allocations: 2.625 MB / 405.2 MB, free: 68.16 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.467e-05/0.9391, allocations: 12.03 kB / 405.3 MB, free: 68.15 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002138/0.9412, allocations: 494.7 kB / 405.7 MB, free: 67.68 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01454/0.9558, allocations: 1.923 MB / 407.7 MB, free: 65.75 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01397/0.9698, allocations: 3.384 MB / 411 MB, free: 62.36 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002808/0.9702, allocations: 185 kB / 411.2 MB, free: 62.18 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001719/0.9719, allocations: 247.9 kB / 411.5 MB, free: 61.94 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02126/0.9932, allocations: 6.773 MB / 418.2 MB, free: 54.47 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001878/0.9935, allocations: 39.59 kB / 418.3 MB, free: 54.43 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001378/0.9949, allocations: 119.9 kB / 418.4 MB, free: 54.31 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001745/0.9966, allocations: 0.7267 MB / 419.1 MB, free: 53.59 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01721/1.014, allocations: 5.843 MB / 425 MB, free: 47.73 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04656/1.061, allocations: 31.14 MB / 456.1 MB, free: 15.59 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01007/1.071, allocations: 2.615 MB / 458.7 MB, free: 12.82 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002587/1.073, allocations: 1.203 MB / 459.9 MB, free: 11.61 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01504/1.088, allocations: 5.142 MB / 465.1 MB, free: 6.312 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.871e-05/1.088, allocations: 46.5 kB / 465.1 MB, free: 6.258 MB / 314.7 MB Notification: Performance of pre-optimization done (n=97): time 4.859e-06/1.088, allocations: 0 / 465.1 MB, free: 6.258 MB / 314.7 MB Notification: Performance of matching and sorting (n=105): time 0.03512/1.124, allocations: 8.023 MB / 473.1 MB, free: 14.11 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001101/1.124, allocations: 137 kB / 473.3 MB, free: 13.94 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0071/1.131, allocations: 2.372 MB / 475.6 MB, free: 11.55 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003705/1.131, allocations: 41.64 kB / 475.7 MB, free: 11.5 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002614/1.134, allocations: 2.037 MB / 477.7 MB, free: 9.434 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009253/1.135, allocations: 426.7 kB / 478.1 MB, free: 9.012 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000711/1.136, allocations: 80 kB / 478.2 MB, free: 8.934 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0005757/1.136, allocations: 486.9 kB / 478.7 MB, free: 8.449 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004557/1.141, allocations: 1.386 MB / 480.1 MB, free: 7.059 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007471/1.148, allocations: 3.963 MB / 484 MB, free: 1.793 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006385/1.155, allocations: 2.316 MB / 486.4 MB, free: 15.48 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001046/1.155, allocations: 28 kB / 486.4 MB, free: 15.45 MB / 346.7 MB Notification: Performance of matching and sorting (n=529) (initialization): time 0.02002/1.175, allocations: 5.859 MB / 492.2 MB, free: 9.582 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001109/1.175, allocations: 44.94 kB / 492.3 MB, free: 9.539 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001625/1.175, allocations: 100.1 kB / 492.4 MB, free: 9.441 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004659/1.18, allocations: 0.8201 MB / 493.2 MB, free: 8.617 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006287/1.186, allocations: 0.9396 MB / 494.1 MB, free: 7.676 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01121/1.198, allocations: 4.282 MB / 498.4 MB, free: 3.254 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005593/1.203, allocations: 283.6 kB / 498.7 MB, free: 2.977 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002759/1.206, allocations: 263.9 kB / 499 MB, free: 2.719 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 420 * Number of states: 0 () * Number of discrete variables: 18 (fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[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 (493): * Single equations (assignments): 489 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002719/1.209, allocations: 424.3 kB / 499.4 MB, free: 2.301 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001313/1.21, allocations: 221.1 kB / 499.6 MB, free: 2.082 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2764/1.487, allocations: 2.116 MB / 0.4899 GB, free: 92.94 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.166e-05/1.487, allocations: 16.19 kB / 0.49 GB, free: 92.94 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.814e-05/1.487, allocations: 6.469 kB / 0.49 GB, free: 92.94 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.305e-05/1.487, allocations: 8.016 kB / 0.49 GB, free: 92.94 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01569/1.503, allocations: 5.066 MB / 0.4949 GB, free: 92.53 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.991e-05/1.503, allocations: 3.891 kB / 0.4949 GB, free: 92.53 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001397/1.504, allocations: 146.1 kB / 0.4951 GB, free: 92.53 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003569/1.508, allocations: 0.6721 MB / 0.4957 GB, free: 92.52 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001854/1.508, allocations: 26.69 kB / 0.4957 GB, free: 92.52 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007524/1.515, allocations: 3.825 MB / 0.4995 GB, free: 91.27 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.831e-06/1.515, allocations: 8.078 kB / 0.4995 GB, free: 91.27 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01006/1.526, allocations: 4.126 MB / 0.5035 GB, free: 90.73 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001504/1.527, allocations: 458.5 kB / 0.504 GB, free: 90.63 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000432/1.528, allocations: 16.81 kB / 0.504 GB, free: 90.63 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00182/1.529, allocations: 81.83 kB / 0.5041 GB, free: 90.63 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002673/1.53, allocations: 58.92 kB / 0.5041 GB, free: 90.63 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001322/1.53, allocations: 30.3 kB / 0.5041 GB, free: 90.63 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.003567/1.533, allocations: 1.643 MB / 0.5057 GB, free: 90.47 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.804e-06/1.533, allocations: 2.516 kB / 0.5057 GB, free: 90.47 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.004663/1.538, allocations: 0.6733 MB / 0.5064 GB, free: 90.43 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (rev.phi,rev.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (74): * Single equations (assignments): 70 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01093/1.549, allocations: 5.095 MB / 0.5114 GB, free: 88.08 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.007598/1.557, allocations: 3.381 MB / 0.5147 GB, free: 87.14 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 7.384e-06/1.557, allocations: 0 / 0.5147 GB, free: 87.14 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002154/1.559, allocations: 1.036 MB / 0.5157 GB, free: 86.71 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001975/1.561, allocations: 245 kB / 0.5159 GB, free: 86.59 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01638/1.577, allocations: 5.41 MB / 0.5212 GB, free: 84.7 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00409/1.582, allocations: 2.285 MB / 0.5234 GB, free: 83.67 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.007053/1.589, allocations: 1.311 MB / 0.5247 GB, free: 83.46 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00324/1.592, allocations: 1.094 MB / 0.5258 GB, free: 82.45 MB / 346.7 MB Notification: Performance of SimCode: time 1.813e-06/1.592, allocations: 0 / 0.5258 GB, free: 82.45 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1398/1.732, allocations: 49.01 MB / 0.5736 GB, free: 38 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001998/1.732, allocations: 203.8 kB / 0.5738 GB, free: 37.77 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.077/5.809, allocations: 0 / 0.5738 GB, free: 37.77 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField_res.mat does not exist to compare? outputFormat=mat