Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravity",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.892/1.892, allocations: 171.3 MB / 178.8 MB, free: 168 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.735e-05/2.734e-05, allocations: 8 kB / 219.6 MB, free: 7.312 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2525/0.2526, allocations: 38.76 MB / 258.3 MB, free: 12.04 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1302/0.3829, allocations: 75.02 MB / 333.4 MB, free: 2.785 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002973/0.3832, allocations: 83.95 kB / 333.4 MB, free: 2.703 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4483/0.8316, allocations: 58.21 MB / 391.6 MB, free: 80.16 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.154e-06/0.8316, allocations: 0 / 391.6 MB, free: 80.16 MB / 314.7 MB Notification: Performance of Transformations before backend: time 9.346e-05/0.8317, allocations: 44.53 kB / 391.7 MB, free: 80.16 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: 908 * Number of variables: 908 Notification: Performance of Generate backend data structure: time 0.02432/0.8561, allocations: 3.436 MB / 395.1 MB, free: 78.26 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.729e-05/0.8561, allocations: 14.61 kB / 395.1 MB, free: 78.25 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01922/0.8754, allocations: 2.316 MB / 397.5 MB, free: 76.46 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0166/0.892, allocations: 4.829 MB / 402.3 MB, free: 71.73 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001057/0.8921, allocations: 72 kB / 402.4 MB, free: 71.66 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007956/0.8929, allocations: 139.9 kB / 402.5 MB, free: 71.53 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00965/0.9026, allocations: 5.538 MB / 408 MB, free: 65.99 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0125/0.9151, allocations: 7.815 MB / 415.8 MB, free: 57.34 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000123/0.9153, allocations: 47.53 kB / 415.9 MB, free: 57.29 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004903/0.9158, allocations: 24 kB / 415.9 MB, free: 57.27 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001518/0.9173, allocations: 0.7299 MB / 416.6 MB, free: 56.54 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04473/0.9621, allocations: 36.54 MB / 453.2 MB, free: 19.02 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005563/0.9677, allocations: 3.161 MB / 456.4 MB, free: 15.7 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003783/0.9715, allocations: 2.164 MB / 458.5 MB, free: 13.52 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000127/0.9716, allocations: 23.64 kB / 458.5 MB, free: 13.5 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.573e-05/0.9717, allocations: 50.44 kB / 458.6 MB, free: 13.45 MB / 314.7 MB Notification: Performance of pre-optimization done (n=122): time 3.988e-06/0.9717, allocations: 0 / 458.6 MB, free: 13.45 MB / 314.7 MB Notification: Performance of matching and sorting (n=136): time 0.05138/1.023, allocations: 13.55 MB / 472.1 MB, free: 15.71 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001031/1.023, allocations: 170.8 kB / 472.3 MB, free: 15.51 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004632/1.028, allocations: 2.288 MB / 474.6 MB, free: 13.2 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005048/1.028, allocations: 25.7 kB / 474.6 MB, free: 13.17 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002002/1.03, allocations: 2.12 MB / 476.7 MB, free: 11.02 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001065/1.032, allocations: 0.5554 MB / 477.3 MB, free: 10.46 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003876/1.032, allocations: 0 / 477.3 MB, free: 10.46 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0004234/1.032, allocations: 0.5253 MB / 477.8 MB, free: 9.922 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005146/1.038, allocations: 2.231 MB / 480.1 MB, free: 7.684 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00801/1.046, allocations: 5.203 MB / 485.3 MB, free: 0.9766 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008156/1.054, allocations: 3.327 MB / 488.6 MB, free: 13.65 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.432e-05/1.054, allocations: 28.19 kB / 488.6 MB, free: 13.62 MB / 346.7 MB Notification: Performance of matching and sorting (n=648) (initialization): time 0.0322/1.086, allocations: 8.467 MB / 497.1 MB, free: 5.129 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.822e-05/1.086, allocations: 52 kB / 497.1 MB, free: 5.078 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01998/1.106, allocations: 4.429 MB / 0.4898 GB, free: 0.6289 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.2656/1.372, allocations: 2.156 MB / 0.4919 GB, free: 96.06 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008108/1.38, allocations: 1.233 MB / 0.4931 GB, free: 96.06 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008317/1.388, allocations: 7.127 MB / 0.5001 GB, free: 91.21 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007905/1.396, allocations: 488.7 kB / 0.5005 GB, free: 91.21 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007916/1.397, allocations: 317.2 kB / 0.5008 GB, free: 91.21 MB / 346.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 (602): * Single equations (assignments): 587 * 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 {1,1} * 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.000942/1.398, allocations: 360.9 kB / 0.5012 GB, free: 91.1 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.02347/1.422, allocations: 5.189 MB / 0.5063 GB, free: 90.99 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00115/1.423, allocations: 238.3 kB / 0.5065 GB, free: 90.98 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001678/1.424, allocations: 386.2 kB / 0.5068 GB, free: 90.95 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02642/1.451, allocations: 4.506 MB / 0.5112 GB, free: 90.83 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.678e-05/1.451, allocations: 9.422 kB / 0.5113 GB, free: 90.83 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.162e-05/1.451, allocations: 6.281 kB / 0.5113 GB, free: 90.83 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01693/1.468, allocations: 5.009 MB / 0.5162 GB, free: 89.46 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.516e-05/1.468, allocations: 3.062 kB / 0.5162 GB, free: 89.46 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004056/1.472, allocations: 283.8 kB / 0.5164 GB, free: 89.45 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01866/1.491, allocations: 2.343 MB / 0.5187 GB, free: 89.15 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003792/1.491, allocations: 30.62 kB / 0.5187 GB, free: 89.14 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01242/1.504, allocations: 8.613 MB / 0.5272 GB, free: 83.45 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001846/1.505, allocations: 2.779 MB / 0.5299 GB, free: 80.74 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02468/1.53, allocations: 7.984 MB / 0.5377 GB, free: 76.54 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008131/1.531, allocations: 307.7 kB / 0.538 GB, free: 76.23 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007293/1.532, allocations: 15.84 kB / 0.538 GB, free: 76.22 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003633/1.535, allocations: 248.9 kB / 0.5382 GB, free: 76.1 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005403/1.536, allocations: 106.9 kB / 0.5383 GB, free: 76.04 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002277/1.536, allocations: 46.17 kB / 0.5384 GB, free: 76 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.002613/1.539, allocations: 1.523 MB / 0.5398 GB, free: 74.67 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.31e-07/1.539, allocations: 0 / 0.5398 GB, free: 74.67 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.005534/1.544, allocations: 0.8605 MB / 0.5407 GB, free: 73.82 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 24 ($STATESET49.x[3],$STATESET49.x[2],$STATESET49.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],$STATESET48.x[3],$STATESET48.x[2],$STATESET48.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.0248/1.569, allocations: 8.873 MB / 0.5493 GB, free: 65.44 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.01487/1.584, allocations: 6.241 MB / 0.5554 GB, free: 59.14 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5.741e-06/1.584, allocations: 0 / 0.5554 GB, free: 59.14 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009639/1.594, allocations: 3.344 MB / 0.5587 GB, free: 55.68 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002612/1.596, allocations: 231.9 kB / 0.5589 GB, free: 55.46 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02461/1.621, allocations: 8.45 MB / 0.5672 GB, free: 47.16 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002743/1.624, allocations: 2.349 MB / 0.5695 GB, free: 44.79 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003039/1.627, allocations: 1.187 MB / 0.5706 GB, free: 43.61 MB / 346.7 MB Notification: Performance of SimCode: time 1.302e-06/1.627, allocations: 0 / 0.5706 GB, free: 43.61 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.703/6.33, allocations: 146.4 MB / 0.7136 GB, free: 41.31 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity_res.mat does not exist to compare? outputFormat=mat