Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravity",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.229/2.229, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.734e-05/3.747e-05, allocations: 4 kB / 249.7 MB, free: 15.21 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3553/0.3553, allocations: 44.51 MB / 294.2 MB, free: 14.34 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1497/0.5051, allocations: 80.65 MB / 374.9 MB, free: 1.316 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003087/0.5055, allocations: 83.95 kB / 374.9 MB, free: 1.234 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5579/1.063, allocations: 58.39 MB / 433.3 MB, free: 90.48 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.355e-06/1.063, allocations: 0 / 433.3 MB, free: 90.48 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001468/1.064, allocations: 42.47 kB / 433.4 MB, free: 90.48 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.02631/1.09, allocations: 3.443 MB / 436.8 MB, free: 89.31 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.036e-05/1.09, allocations: 7.719 kB / 436.8 MB, free: 89.31 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02288/1.113, allocations: 2.349 MB / 439.2 MB, free: 89.14 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02439/1.137, allocations: 4.849 MB / 444 MB, free: 88.7 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002365/1.138, allocations: 78.12 kB / 444.1 MB, free: 88.7 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001716/1.139, allocations: 136.1 kB / 444.2 MB, free: 88.7 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01519/1.155, allocations: 5.534 MB / 449.8 MB, free: 88.68 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01957/1.174, allocations: 7.809 MB / 457.6 MB, free: 84.97 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001804/1.174, allocations: 51.27 kB / 457.6 MB, free: 84.96 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007722/1.175, allocations: 26.88 kB / 457.6 MB, free: 84.96 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002162/1.177, allocations: 0.7216 MB / 458.4 MB, free: 84.85 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05163/1.229, allocations: 36.56 MB / 494.9 MB, free: 50.98 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006039/1.235, allocations: 3.159 MB / 498.1 MB, free: 47.67 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00438/1.24, allocations: 2.16 MB / 0.4885 GB, free: 45.49 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001911/1.24, allocations: 23.86 kB / 0.4885 GB, free: 45.47 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.475e-05/1.24, allocations: 51.25 kB / 0.4886 GB, free: 45.41 MB / 362.7 MB Notification: Performance of pre-optimization done (n=122): time 4.969e-06/1.24, allocations: 0 / 0.4886 GB, free: 45.41 MB / 362.7 MB Notification: Performance of matching and sorting (n=136): time 0.05475/1.295, allocations: 13.55 MB / 0.5018 GB, free: 31.7 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.575e-05/1.295, allocations: 174.7 kB / 0.502 GB, free: 31.49 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00495/1.3, allocations: 2.292 MB / 0.5042 GB, free: 29.18 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006121/1.3, allocations: 33.7 kB / 0.5043 GB, free: 29.14 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001734/1.302, allocations: 2.116 MB / 0.5063 GB, free: 26.99 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001204/1.303, allocations: 0.5516 MB / 0.5069 GB, free: 26.43 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000653/1.304, allocations: 0 / 0.5069 GB, free: 26.43 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0003213/1.304, allocations: 0.5175 MB / 0.5074 GB, free: 25.91 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00502/1.309, allocations: 2.239 MB / 0.5096 GB, free: 23.66 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00709/1.317, allocations: 5.207 MB / 0.5146 GB, free: 16.95 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007243/1.324, allocations: 3.34 MB / 0.5179 GB, free: 13.6 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.046e-05/1.324, allocations: 32 kB / 0.5179 GB, free: 13.57 MB / 362.7 MB Notification: Performance of matching and sorting (n=648) (initialization): time 0.03302/1.357, allocations: 8.656 MB / 0.5264 GB, free: 4.883 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.231e-05/1.357, allocations: 52.92 kB / 0.5264 GB, free: 4.832 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0256/1.383, allocations: 4.587 MB / 0.5309 GB, free: 220 kB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01724/1.4, allocations: 2.331 MB / 0.5332 GB, free: 13.86 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008086/1.408, allocations: 1.201 MB / 0.5344 GB, free: 12.66 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01361/1.422, allocations: 7.828 MB / 0.542 GB, free: 4.383 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008476/1.43, allocations: 499 kB / 0.5425 GB, free: 3.895 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001312/1.432, allocations: 315.9 kB / 0.5428 GB, free: 3.586 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.001227/1.433, allocations: 366 kB / 0.5431 GB, free: 3.219 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.02288/1.456, allocations: 5.187 MB / 0.5482 GB, free: 14 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001225/1.457, allocations: 236.9 kB / 0.5484 GB, free: 13.76 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001699/1.459, allocations: 385.9 kB / 0.5488 GB, free: 13.38 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02103/1.48, allocations: 4.517 MB / 0.5532 GB, free: 8.824 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.591e-05/1.48, allocations: 7.938 kB / 0.5532 GB, free: 8.816 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.998e-05/1.48, allocations: 7.969 kB / 0.5532 GB, free: 8.809 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01489/1.495, allocations: 4.995 MB / 0.5581 GB, free: 3.777 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.831e-05/1.495, allocations: 4 kB / 0.5581 GB, free: 3.773 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00318/1.498, allocations: 286.8 kB / 0.5584 GB, free: 3.496 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01658/1.515, allocations: 2.335 MB / 0.5607 GB, free: 1.133 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000602/1.515, allocations: 31.94 kB / 0.5607 GB, free: 1.102 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3311/1.847, allocations: 8.609 MB / 0.5691 GB, free: 102.3 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002685/1.849, allocations: 2.771 MB / 0.5718 GB, free: 99.69 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03386/1.883, allocations: 7.992 MB / 0.5796 GB, free: 99.03 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009761/1.884, allocations: 315.1 kB / 0.5799 GB, free: 98.94 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001336/1.886, allocations: 14.64 kB / 0.5799 GB, free: 98.94 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004376/1.89, allocations: 247 kB / 0.5802 GB, free: 98.94 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009224/1.891, allocations: 102.6 kB / 0.5803 GB, free: 98.94 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002783/1.891, allocations: 49.3 kB / 0.5803 GB, free: 98.94 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.003438/1.895, allocations: 1.521 MB / 0.5818 GB, free: 98.79 MB / 394.7 MB Notification: Performance of sort global known variables: time 7.82e-07/1.895, allocations: 0 / 0.5818 GB, free: 98.79 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.006851/1.902, allocations: 0.8642 MB / 0.5826 GB, free: 98.79 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 24 ($STATESET4559077769.x[3],$STATESET4559077769.x[2],$STATESET4559077769.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],$STATESET4559077768.x[3],$STATESET4559077768.x[2],$STATESET4559077768.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.02608/1.928, allocations: 8.87 MB / 0.5913 GB, free: 97.05 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.01634/1.944, allocations: 6.49 MB / 0.5976 GB, free: 94.76 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 7.564e-06/1.944, allocations: 0 / 0.5976 GB, free: 94.76 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009881/1.954, allocations: 3.346 MB / 0.6009 GB, free: 93.29 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002625/1.957, allocations: 229.5 kB / 0.6011 GB, free: 93.19 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02787/1.985, allocations: 8.455 MB / 0.6094 GB, free: 90.23 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003368/1.988, allocations: 2.342 MB / 0.6117 GB, free: 89.21 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003335/1.991, allocations: 1.192 MB / 0.6128 GB, free: 88.31 MB / 394.7 MB Notification: Performance of SimCode: time 1.503e-06/1.992, allocations: 3.75 kB / 0.6128 GB, free: 88.31 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.807/6.799, allocations: 146.8 MB / 0.7562 GB, free: 100.5 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.PointGravity_res.mat does not exist to compare? outputFormat=mat