Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_UserDefinedGravityField",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.034/2.034, allocations: 194.9 MB / 208.4 MB, free: 3.254 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.146e-05/3.175e-05, allocations: 4 kB / 255.4 MB, free: 3.102 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09688/0.09695, allocations: 44.5 MB / 299.9 MB, free: 6.543 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4524/0.5494, allocations: 86.7 MB / 386.6 MB, free: 12.82 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003048/0.5498, allocations: 86.81 kB / 386.7 MB, free: 12.82 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.24/0.7898, allocations: 57.68 MB / 444.4 MB, free: 3.59 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.024e-06/0.7898, allocations: 0 / 444.4 MB, free: 3.59 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001578/0.79, allocations: 44 kB / 444.4 MB, free: 3.547 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.01062/0.8006, allocations: 2.63 MB / 447.1 MB, free: 1.074 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.356e-05/0.8007, allocations: 16.03 kB / 447.1 MB, free: 1.059 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002097/0.8028, allocations: 490.2 kB / 447.6 MB, free: 0.7617 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01516/0.818, allocations: 1.929 MB / 449.5 MB, free: 14.85 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01437/0.8324, allocations: 3.399 MB / 452.9 MB, free: 12.04 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002926/0.8328, allocations: 184.2 kB / 453.1 MB, free: 11.93 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001604/0.8344, allocations: 242.7 kB / 453.3 MB, free: 11.78 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02163/0.856, allocations: 6.766 MB / 460.1 MB, free: 4.715 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001961/0.8563, allocations: 43.59 kB / 460.1 MB, free: 4.672 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001163/0.8575, allocations: 118.4 kB / 460.2 MB, free: 4.574 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001935/0.8594, allocations: 0.7184 MB / 461 MB, free: 3.855 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01839/0.8779, allocations: 5.842 MB / 466.8 MB, free: 14.01 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0533/0.9312, allocations: 31.15 MB / 497.9 MB, free: 13.98 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01035/0.9417, allocations: 2.609 MB / 0.4888 GB, free: 11.23 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003054/0.9448, allocations: 1.203 MB / 0.49 GB, free: 10.01 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01732/0.9621, allocations: 5.145 MB / 0.495 GB, free: 4.734 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.718e-05/0.9623, allocations: 38.56 kB / 0.4951 GB, free: 4.688 MB / 394.7 MB Notification: Performance of pre-optimization done (n=97): time 5.711e-06/0.9623, allocations: 0 / 0.4951 GB, free: 4.688 MB / 394.7 MB Notification: Performance of matching and sorting (n=105): time 0.03431/0.9966, allocations: 8.02 MB / 0.5029 GB, free: 12.55 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001022/0.9968, allocations: 140.9 kB / 0.503 GB, free: 12.38 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006192/1.003, allocations: 2.372 MB / 0.5053 GB, free: 9.984 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003501/1.003, allocations: 33.7 kB / 0.5054 GB, free: 9.945 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002339/1.006, allocations: 2.029 MB / 0.5074 GB, free: 7.922 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009422/1.007, allocations: 433.4 kB / 0.5078 GB, free: 7.504 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006449/1.007, allocations: 80 kB / 0.5078 GB, free: 7.426 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0004443/1.008, allocations: 495.7 kB / 0.5083 GB, free: 6.93 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004264/1.012, allocations: 1.386 MB / 0.5097 GB, free: 5.539 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006974/1.019, allocations: 3.963 MB / 0.5135 GB, free: 280 kB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2991/1.318, allocations: 2.309 MB / 0.5158 GB, free: 108.5 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.888e-05/1.318, allocations: 30.28 kB / 0.5158 GB, free: 108.5 MB / 410.7 MB Notification: Performance of matching and sorting (n=529) (initialization): time 0.01821/1.337, allocations: 5.783 MB / 0.5215 GB, free: 108.2 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.644e-05/1.337, allocations: 55.95 kB / 0.5215 GB, free: 108.2 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001671/1.337, allocations: 92.3 kB / 0.5216 GB, free: 108.2 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004591/1.342, allocations: 0.8226 MB / 0.5224 GB, free: 108.2 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006109/1.348, allocations: 0.9371 MB / 0.5233 GB, free: 108.1 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009539/1.357, allocations: 4.298 MB / 0.5275 GB, free: 106.7 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005251/1.363, allocations: 281.1 kB / 0.5278 GB, free: 106.7 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001082/1.364, allocations: 260.7 kB / 0.528 GB, free: 106.7 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.001046/1.365, allocations: 420.8 kB / 0.5284 GB, free: 106.5 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006886/1.366, allocations: 230.6 kB / 0.5287 GB, free: 106.5 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007138/1.373, allocations: 2.111 MB / 0.5307 GB, free: 106.4 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.442e-05/1.373, allocations: 12.78 kB / 0.5307 GB, free: 106.4 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.277e-05/1.373, allocations: 8.828 kB / 0.5307 GB, free: 106.4 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.739e-05/1.373, allocations: 3.844 kB / 0.5308 GB, free: 106.4 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01511/1.388, allocations: 5.062 MB / 0.5357 GB, free: 105.9 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.151e-05/1.388, allocations: 3.844 kB / 0.5357 GB, free: 105.9 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001419/1.39, allocations: 143.3 kB / 0.5358 GB, free: 105.9 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003702/1.393, allocations: 0.6753 MB / 0.5365 GB, free: 105.9 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002895/1.394, allocations: 23.28 kB / 0.5365 GB, free: 105.9 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00748/1.401, allocations: 3.842 MB / 0.5403 GB, free: 104.7 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.677e-06/1.401, allocations: 0 / 0.5403 GB, free: 104.7 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0101/1.411, allocations: 4.125 MB / 0.5443 GB, free: 103.8 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001577/1.413, allocations: 451.1 kB / 0.5447 GB, free: 103.6 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004771/1.413, allocations: 19.06 kB / 0.5447 GB, free: 103.5 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00192/1.415, allocations: 82.94 kB / 0.5448 GB, free: 103.5 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002998/1.416, allocations: 56.77 kB / 0.5449 GB, free: 103.5 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001317/1.416, allocations: 32.61 kB / 0.5449 GB, free: 103.5 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.003786/1.42, allocations: 1.649 MB / 0.5465 GB, free: 102.9 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.222e-06/1.42, allocations: 2.078 kB / 0.5465 GB, free: 102.9 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.004906/1.425, allocations: 0.6714 MB / 0.5472 GB, free: 102.8 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.01131/1.436, allocations: 5.094 MB / 0.5522 GB, free: 100.3 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.007694/1.444, allocations: 3.39 MB / 0.5555 GB, free: 99.15 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.851e-06/1.444, allocations: 0 / 0.5555 GB, free: 99.15 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002075/1.446, allocations: 1.028 MB / 0.5565 GB, free: 98.72 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001894/1.448, allocations: 233.3 kB / 0.5567 GB, free: 98.61 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01657/1.464, allocations: 5.701 MB / 0.5623 GB, free: 96.53 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003466/1.468, allocations: 2.293 MB / 0.5645 GB, free: 95.51 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002442/1.47, allocations: 1.127 MB / 0.5656 GB, free: 94.64 MB / 410.7 MB Notification: Performance of SimCode: time 1.232e-06/1.47, allocations: 3.938 kB / 0.5656 GB, free: 94.64 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.707/5.178, allocations: 62.04 MB / 0.6262 GB, free: 42.66 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.UserDefinedGravityField_res.mat does not exist to compare? outputFormat=mat