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 1.987/1.987, allocations: 194.9 MB / 208.4 MB, free: 3.246 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.585e-05/3.599e-05, allocations: 4 kB / 255.4 MB, free: 3.09 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09669/0.09676, allocations: 44.5 MB / 299.9 MB, free: 6.531 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.43/0.5268, allocations: 81.32 MB / 381.2 MB, free: 12.78 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003219/0.5272, allocations: 88.09 kB / 381.3 MB, free: 12.78 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2561/0.7833, allocations: 59.18 MB / 440.5 MB, free: 6.262 MB / 330.7 MB Notification: Performance of FrontEnd: time 4.419e-06/0.7834, allocations: 4 kB / 440.5 MB, free: 6.258 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.000158/0.7835, allocations: 43.94 kB / 440.6 MB, free: 6.215 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: 908 * Number of variables: 908 Notification: Performance of Generate backend data structure: time 0.02742/0.811, allocations: 3.445 MB / 444 MB, free: 2.902 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.028e-05/0.811, allocations: 8.031 kB / 444 MB, free: 2.895 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0022/0.8133, allocations: 490.5 kB / 444.5 MB, free: 2.594 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02164/0.8349, allocations: 2.358 MB / 446.8 MB, free: 268 kB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02071/0.8557, allocations: 4.837 MB / 451.7 MB, free: 12.29 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003552/0.8561, allocations: 172.6 kB / 451.9 MB, free: 12.19 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00178/0.8579, allocations: 231.5 kB / 452.1 MB, free: 12.04 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03065/0.8886, allocations: 8.459 MB / 460.5 MB, free: 2.941 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001836/0.8888, allocations: 59.56 kB / 460.6 MB, free: 2.883 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008437/0.8897, allocations: 113.1 kB / 460.7 MB, free: 2.793 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001983/0.8917, allocations: 0.7333 MB / 461.4 MB, free: 2.062 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0329/0.9246, allocations: 9.445 MB / 470.9 MB, free: 8.617 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06225/0.9869, allocations: 37.73 MB / 0.4967 GB, free: 1.777 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02175/1.009, allocations: 4.028 MB / 0.5006 GB, free: 13.59 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005699/1.015, allocations: 2.2 MB / 0.5028 GB, free: 11.38 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001961/1.015, allocations: 15.36 kB / 0.5028 GB, free: 11.36 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.27e-05/1.015, allocations: 50.48 kB / 0.5028 GB, free: 11.3 MB / 410.7 MB Notification: Performance of pre-optimization done (n=122): time 5.611e-06/1.015, allocations: 0 / 0.5028 GB, free: 11.3 MB / 410.7 MB Notification: Performance of matching and sorting (n=136): time 0.354/1.369, allocations: 14.49 MB / 0.517 GB, free: 114.3 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.002622/1.372, allocations: 3.042 MB / 0.52 GB, free: 111.4 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007115/1.379, allocations: 2.618 MB / 0.5225 GB, free: 111.2 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006326/1.379, allocations: 44.38 kB / 0.5226 GB, free: 111.1 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002199/1.382, allocations: 2.053 MB / 0.5246 GB, free: 110.3 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001334/1.383, allocations: 0.5622 MB / 0.5251 GB, free: 110.1 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009682/1.384, allocations: 93.69 kB / 0.5252 GB, free: 110.1 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0005193/1.385, allocations: 0.5119 MB / 0.5257 GB, free: 109.8 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006637/1.391, allocations: 2.298 MB / 0.5279 GB, free: 109.7 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008353/1.4, allocations: 5.174 MB / 0.533 GB, free: 106 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007874/1.408, allocations: 3.361 MB / 0.5363 GB, free: 106 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001138/1.408, allocations: 28.22 kB / 0.5363 GB, free: 106 MB / 410.7 MB Notification: Performance of matching and sorting (n=627) (initialization): time 0.03327/1.441, allocations: 9.167 MB / 0.5453 GB, free: 105 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.123e-05/1.441, allocations: 46.66 kB / 0.5453 GB, free: 105 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.02043/1.462, allocations: 4.657 MB / 0.5499 GB, free: 103.9 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01638/1.478, allocations: 2.351 MB / 0.5522 GB, free: 103.7 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007477/1.486, allocations: 1.165 MB / 0.5533 GB, free: 103.5 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01165/1.497, allocations: 8.117 MB / 0.5612 GB, free: 97.59 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008576/1.506, allocations: 0.5699 MB / 0.5618 GB, free: 97.5 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001513/1.507, allocations: 305.5 kB / 0.5621 GB, free: 97.46 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 466 * 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 (575): * Single equations (assignments): 560 * 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.001932/1.509, allocations: 467 kB / 0.5625 GB, free: 97.14 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008648/1.51, allocations: 252.4 kB / 0.5627 GB, free: 97 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001437/1.512, allocations: 416 kB / 0.5631 GB, free: 96.75 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02005/1.532, allocations: 4.56 MB / 0.5676 GB, free: 95.64 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.724e-05/1.532, allocations: 3.875 kB / 0.5676 GB, free: 95.64 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.8e-05/1.532, allocations: 7.781 kB / 0.5676 GB, free: 95.64 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01458/1.547, allocations: 5.334 MB / 0.5728 GB, free: 93.59 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.176e-05/1.547, allocations: 4 kB / 0.5728 GB, free: 93.59 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003105/1.55, allocations: 284.7 kB / 0.5731 GB, free: 93.57 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01577/1.566, allocations: 2.369 MB / 0.5754 GB, free: 92.92 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006553/1.566, allocations: 44.89 kB / 0.5755 GB, free: 92.89 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01327/1.58, allocations: 8.832 MB / 0.5841 GB, free: 84.59 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002161/1.582, allocations: 2.895 MB / 0.5869 GB, free: 81.52 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02624/1.608, allocations: 8.091 MB / 0.5948 GB, free: 74.92 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001095/1.609, allocations: 335.4 kB / 0.5951 GB, free: 74.59 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001268/1.611, allocations: 34.7 kB / 0.5952 GB, free: 74.56 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004447/1.615, allocations: 263.9 kB / 0.5954 GB, free: 74.42 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000906/1.616, allocations: 111.7 kB / 0.5955 GB, free: 74.36 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002678/1.616, allocations: 40.55 kB / 0.5956 GB, free: 74.33 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.004285/1.621, allocations: 1.817 MB / 0.5973 GB, free: 72.71 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.192e-06/1.621, allocations: 0 / 0.5973 GB, free: 72.71 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.006701/1.627, allocations: 0.9386 MB / 0.5982 GB, free: 71.79 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 24 ($STATESET2.x[3],$STATESET2.x[2],$STATESET2.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],$STATESET1.x[3],$STATESET1.x[2],$STATESET1.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.02861/1.656, allocations: 8.982 MB / 0.607 GB, free: 64.15 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01828/1.674, allocations: 6.676 MB / 0.6135 GB, free: 57.36 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.036e-05/1.674, allocations: 4.188 kB / 0.6135 GB, free: 57.35 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01071/1.685, allocations: 3.394 MB / 0.6169 GB, free: 53.82 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003214/1.688, allocations: 285.2 kB / 0.6171 GB, free: 53.54 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03103/1.719, allocations: 8.636 MB / 0.6256 GB, free: 44.93 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004398/1.724, allocations: 2.355 MB / 0.6279 GB, free: 42.56 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003652/1.728, allocations: 1.187 MB / 0.629 GB, free: 41.37 MB / 410.7 MB Notification: Performance of SimCode: time 1.363e-06/1.728, allocations: 0 / 0.629 GB, free: 41.37 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.072/6.8, allocations: 148.4 MB / 0.774 GB, free: 31.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