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.794/1.794, allocations: 171.2 MB / 183.8 MB, free: 12.03 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.283e-05/3.299e-05, allocations: 4 kB / 225.1 MB, free: 2.695 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3058/0.3058, allocations: 38.76 MB / 263.8 MB, free: 9.871 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1621/0.468, allocations: 75.69 MB / 339.5 MB, free: 14.07 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003895/0.4684, allocations: 83.95 kB / 339.6 MB, free: 13.99 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4837/0.9521, allocations: 59.01 MB / 398.6 MB, free: 73.93 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.846e-06/0.9522, allocations: 0 / 398.6 MB, free: 73.93 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.000132/0.9523, allocations: 44 kB / 398.6 MB, free: 73.89 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.02588/0.9782, allocations: 3.451 MB / 402.1 MB, free: 70.39 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.152e-05/0.9783, allocations: 8.031 kB / 402.1 MB, free: 70.39 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001959/0.9802, allocations: 486.1 kB / 402.6 MB, free: 69.92 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01999/1, allocations: 2.32 MB / 404.9 MB, free: 67.6 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01852/1.019, allocations: 4.836 MB / 409.7 MB, free: 62.77 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002631/1.019, allocations: 167.1 kB / 409.9 MB, free: 62.63 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001615/1.021, allocations: 233.6 kB / 410.1 MB, free: 62.42 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02745/1.048, allocations: 8.476 MB / 418.6 MB, free: 53.16 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001667/1.049, allocations: 47.53 kB / 418.6 MB, free: 53.11 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001105/1.05, allocations: 126.5 kB / 418.8 MB, free: 53.01 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001808/1.051, allocations: 0.7184 MB / 419.5 MB, free: 52.29 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02966/1.081, allocations: 9.453 MB / 428.9 MB, free: 42.83 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05259/1.134, allocations: 37.72 MB / 466.7 MB, free: 4.012 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02062/1.155, allocations: 4.014 MB / 470.7 MB, free: 15.84 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005645/1.16, allocations: 2.205 MB / 472.9 MB, free: 13.61 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001971/1.16, allocations: 17 kB / 472.9 MB, free: 13.6 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.931e-05/1.161, allocations: 46.52 kB / 472.9 MB, free: 13.54 MB / 330.7 MB Notification: Performance of pre-optimization done (n=122): time 5.109e-06/1.161, allocations: 3.938 kB / 473 MB, free: 13.54 MB / 330.7 MB Notification: Performance of matching and sorting (n=136): time 0.07623/1.237, allocations: 14.5 MB / 487.4 MB, free: 14.86 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.003241/1.24, allocations: 3.059 MB / 490.5 MB, free: 11.48 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006693/1.247, allocations: 2.611 MB / 493.1 MB, free: 8.855 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006027/1.247, allocations: 45.69 kB / 493.2 MB, free: 8.805 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00241/1.25, allocations: 2.047 MB / 495.2 MB, free: 6.73 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001414/1.251, allocations: 0.567 MB / 495.8 MB, free: 6.156 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007807/1.252, allocations: 95.94 kB / 495.9 MB, free: 6.062 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0004799/1.253, allocations: 0.5093 MB / 496.4 MB, free: 5.543 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00673/1.259, allocations: 2.294 MB / 498.7 MB, free: 3.242 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2464/1.506, allocations: 5.156 MB / 0.492 GB, free: 92.34 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008633/1.515, allocations: 3.357 MB / 0.4953 GB, free: 92.33 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000279/1.515, allocations: 33.44 kB / 0.4953 GB, free: 92.33 MB / 346.7 MB Notification: Performance of matching and sorting (n=627) (initialization): time 0.03294/1.548, allocations: 8.956 MB / 0.5041 GB, free: 91.73 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001126/1.548, allocations: 49.62 kB / 0.5041 GB, free: 91.73 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01979/1.568, allocations: 4.492 MB / 0.5085 GB, free: 91.24 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01464/1.583, allocations: 2.18 MB / 0.5106 GB, free: 90.98 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008162/1.591, allocations: 1.196 MB / 0.5118 GB, free: 90.84 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009705/1.601, allocations: 7.392 MB / 0.519 GB, free: 85.11 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008595/1.609, allocations: 0.5576 MB / 0.5196 GB, free: 85.04 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001472/1.611, allocations: 297.6 kB / 0.5199 GB, free: 85 MB / 346.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 (581): * Single equations (assignments): 566 * 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.001719/1.612, allocations: 468.7 kB / 0.5203 GB, free: 84.68 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008031/1.613, allocations: 257.3 kB / 0.5205 GB, free: 84.68 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00137/1.615, allocations: 416.3 kB / 0.5209 GB, free: 84.42 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0203/1.635, allocations: 4.56 MB / 0.5254 GB, free: 83.32 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.906e-05/1.635, allocations: 7.25 kB / 0.5254 GB, free: 83.32 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.619e-05/1.635, allocations: 5.438 kB / 0.5254 GB, free: 83.32 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01451/1.65, allocations: 5.343 MB / 0.5306 GB, free: 80.18 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.438e-05/1.65, allocations: 0 / 0.5306 GB, free: 80.18 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003159/1.653, allocations: 280.2 kB / 0.5309 GB, free: 79.98 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01589/1.669, allocations: 2.368 MB / 0.5332 GB, free: 78.52 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006528/1.67, allocations: 47.5 kB / 0.5332 GB, free: 78.48 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01347/1.683, allocations: 8.838 MB / 0.5419 GB, free: 70.23 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002087/1.685, allocations: 2.88 MB / 0.5447 GB, free: 67.19 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02693/1.712, allocations: 8.102 MB / 0.5526 GB, free: 59.33 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001018/1.713, allocations: 341 kB / 0.5529 GB, free: 58.99 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001131/1.714, allocations: 35.98 kB / 0.553 GB, free: 58.95 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004353/1.719, allocations: 263.5 kB / 0.5532 GB, free: 58.7 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008348/1.72, allocations: 99.81 kB / 0.5533 GB, free: 58.6 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002579/1.72, allocations: 45.45 kB / 0.5534 GB, free: 58.55 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.004301/1.724, allocations: 1.82 MB / 0.5551 GB, free: 56.73 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.072e-06/1.724, allocations: 0 / 0.5551 GB, free: 56.73 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.00641/1.731, allocations: 0.9236 MB / 0.556 GB, free: 55.81 MB / 346.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.02771/1.759, allocations: 8.984 MB / 0.5648 GB, free: 46.76 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.01848/1.777, allocations: 6.432 MB / 0.5711 GB, free: 40.24 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 9.548e-06/1.777, allocations: 0 / 0.5711 GB, free: 40.24 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01045/1.788, allocations: 3.389 MB / 0.5744 GB, free: 36.71 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002906/1.791, allocations: 281.4 kB / 0.5747 GB, free: 36.45 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02941/1.82, allocations: 8.641 MB / 0.5831 GB, free: 27.85 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004094/1.824, allocations: 2.346 MB / 0.5854 GB, free: 25.48 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003563/1.828, allocations: 1.19 MB / 0.5866 GB, free: 24.29 MB / 346.7 MB Notification: Performance of SimCode: time 1.934e-06/1.828, allocations: 0 / 0.5866 GB, free: 24.29 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.598/6.426, allocations: 148 MB / 0.7311 GB, free: 11.35 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