Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField,fileNamePrefix="Modelica_3_2_2_Modelica_Mechanics_MultiBody_Examples_Elementary_UserDefinedGravityField",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.012/2.012, allocations: 194.9 MB / 208 MB, free: 3.188 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.265e-05/3.267e-05, allocations: 4 kB / 255.5 MB, free: 2.621 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09615/0.09621, allocations: 44.51 MB / 300 MB, free: 6.055 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5425/0.6387, allocations: 86.7 MB / 386.7 MB, free: 12.65 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002456/0.639, allocations: 92.48 kB / 386.8 MB, free: 12.65 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2483/0.8874, allocations: 57.69 MB / 444.4 MB, free: 3.16 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.764e-06/0.8874, allocations: 0 / 444.4 MB, free: 3.16 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001343/0.8876, allocations: 44 kB / 444.5 MB, free: 3.117 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: 948 * Number of variables: 948 Notification: Performance of Generate backend data structure: time 0.009772/0.8974, allocations: 2.626 MB / 447.1 MB, free: 0.6445 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.499e-05/0.8974, allocations: 12.03 kB / 447.1 MB, free: 0.6328 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001649/0.8991, allocations: 490.4 kB / 447.6 MB, free: 344 kB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01496/0.9141, allocations: 1.925 MB / 449.5 MB, free: 14.43 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01783/0.932, allocations: 3.403 MB / 452.9 MB, free: 11.61 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003335/0.9324, allocations: 192.1 kB / 453.1 MB, free: 11.5 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001789/0.9342, allocations: 237.2 kB / 453.3 MB, free: 11.35 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02135/0.9555, allocations: 6.764 MB / 460.1 MB, free: 4.32 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001439/0.9557, allocations: 47.59 kB / 460.2 MB, free: 4.273 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007109/0.9565, allocations: 120.2 kB / 460.3 MB, free: 4.176 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001728/0.9582, allocations: 0.7184 MB / 461 MB, free: 3.457 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01828/0.9765, allocations: 5.842 MB / 466.8 MB, free: 13.61 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0516/1.028, allocations: 31.14 MB / 498 MB, free: 13.59 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01032/1.039, allocations: 2.615 MB / 0.4889 GB, free: 10.83 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002853/1.041, allocations: 1.199 MB / 0.49 GB, free: 9.617 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01462/1.056, allocations: 5.144 MB / 0.4951 GB, free: 4.34 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.896e-05/1.056, allocations: 42.56 kB / 0.4951 GB, free: 4.289 MB / 394.7 MB Notification: Performance of pre-optimization done (n=97): time 4.809e-06/1.056, allocations: 0 / 0.4951 GB, free: 4.289 MB / 394.7 MB Notification: Performance of matching and sorting (n=105): time 0.03489/1.091, allocations: 8.017 MB / 0.5029 GB, free: 12.15 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.494e-05/1.091, allocations: 137 kB / 0.5031 GB, free: 11.98 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005708/1.097, allocations: 2.372 MB / 0.5054 GB, free: 9.59 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003224/1.097, allocations: 41.7 kB / 0.5054 GB, free: 9.543 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003294/1.101, allocations: 2.045 MB / 0.5074 GB, free: 7.504 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008738/1.102, allocations: 429.4 kB / 0.5078 GB, free: 7.086 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004704/1.102, allocations: 80 kB / 0.5079 GB, free: 7.008 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0004028/1.102, allocations: 486.8 kB / 0.5084 GB, free: 6.523 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003767/1.106, allocations: 1.386 MB / 0.5097 GB, free: 5.133 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2725/1.379, allocations: 3.958 MB / 0.5136 GB, free: 108.2 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008442/1.387, allocations: 2.316 MB / 0.5158 GB, free: 108.2 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001281/1.388, allocations: 26.16 kB / 0.5159 GB, free: 108.2 MB / 410.7 MB Notification: Performance of matching and sorting (n=529) (initialization): time 0.02591/1.413, allocations: 5.863 MB / 0.5216 GB, free: 107.9 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001689/1.414, allocations: 44.66 kB / 0.5216 GB, free: 107.9 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002688/1.414, allocations: 94.92 kB / 0.5217 GB, free: 107.9 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005953/1.42, allocations: 0.8283 MB / 0.5225 GB, free: 107.9 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008096/1.428, allocations: 0.9375 MB / 0.5234 GB, free: 107.8 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01306/1.441, allocations: 4.291 MB / 0.5276 GB, free: 106.5 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007665/1.449, allocations: 284.8 kB / 0.5279 GB, free: 106.5 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001354/1.45, allocations: 253 kB / 0.5281 GB, free: 106.5 MB / 410.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.001735/1.452, allocations: 421.3 kB / 0.5285 GB, free: 106.3 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008695/1.453, allocations: 229.1 kB / 0.5288 GB, free: 106.3 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00977/1.463, allocations: 2.118 MB / 0.5308 GB, free: 106.2 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.535e-05/1.463, allocations: 11.78 kB / 0.5308 GB, free: 106.2 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.359e-05/1.463, allocations: 3.469 kB / 0.5308 GB, free: 106.2 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.996e-05/1.463, allocations: 10.09 kB / 0.5309 GB, free: 106.2 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01549/1.479, allocations: 5.06 MB / 0.5358 GB, free: 105.7 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.077e-05/1.479, allocations: 3.969 kB / 0.5358 GB, free: 105.7 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001433/1.48, allocations: 149.1 kB / 0.5359 GB, free: 105.7 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003671/1.484, allocations: 0.6751 MB / 0.5366 GB, free: 105.7 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003151/1.484, allocations: 23.53 kB / 0.5366 GB, free: 105.7 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007643/1.492, allocations: 3.84 MB / 0.5404 GB, free: 104.4 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.877e-06/1.492, allocations: 0 / 0.5404 GB, free: 104.4 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01024/1.502, allocations: 4.121 MB / 0.5444 GB, free: 103.4 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001466/1.504, allocations: 457.8 kB / 0.5448 GB, free: 103.1 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004773/1.504, allocations: 19.25 kB / 0.5449 GB, free: 103.1 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002039/1.506, allocations: 81.62 kB / 0.5449 GB, free: 103.1 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002891/1.506, allocations: 51.38 kB / 0.545 GB, free: 103.1 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001331/1.507, allocations: 32.84 kB / 0.545 GB, free: 103.1 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.003815/1.51, allocations: 1.652 MB / 0.5466 GB, free: 102.5 MB / 410.7 MB Notification: Performance of sort global known variables: time 6.81e-07/1.511, allocations: 3.938 kB / 0.5466 GB, free: 102.5 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.004946/1.515, allocations: 0.668 MB / 0.5473 GB, free: 102.4 MB / 410.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.01087/1.526, allocations: 5.094 MB / 0.5523 GB, free: 99.88 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.007802/1.534, allocations: 3.386 MB / 0.5556 GB, free: 98.7 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 8.797e-06/1.534, allocations: 4 kB / 0.5556 GB, free: 98.7 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002179/1.536, allocations: 1.028 MB / 0.5566 GB, free: 98.27 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001949/1.538, allocations: 229.3 kB / 0.5568 GB, free: 98.15 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01598/1.554, allocations: 5.416 MB / 0.5621 GB, free: 96.26 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002801/1.557, allocations: 2.283 MB / 0.5643 GB, free: 95.24 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.005369/1.563, allocations: 1.322 MB / 0.5656 GB, free: 95.14 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002433/1.565, allocations: 1.091 MB / 0.5667 GB, free: 94.27 MB / 410.7 MB Notification: Performance of SimCode: time 1.823e-06/1.565, allocations: 0 / 0.5667 GB, free: 94.27 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1141/1.679, allocations: 49.03 MB / 0.6145 GB, free: 54.26 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002199/1.68, allocations: 196.3 kB / 0.6147 GB, free: 54.04 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.048/5.728, allocations: 4 kB / 0.6147 GB, free: 54.03 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField_res.mat does not exist to compare? outputFormat=mat