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.971/1.971, allocations: 194.9 MB / 208.4 MB, free: 3.164 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.699e-05/3.688e-05, allocations: 4 kB / 255.5 MB, free: 3.086 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09395/0.09403, allocations: 44.5 MB / 300 MB, free: 6.504 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3979/0.492, allocations: 81.33 MB / 381.3 MB, free: 21.79 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003125/0.4924, allocations: 84.91 kB / 381.4 MB, free: 21.79 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2472/0.7396, allocations: 59.18 MB / 440.5 MB, free: 13.98 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.174e-06/0.7397, allocations: 0 / 440.5 MB, free: 13.98 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001518/0.7398, allocations: 40 kB / 440.6 MB, free: 13.95 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.02787/0.7677, allocations: 3.451 MB / 444 MB, free: 10.61 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.818e-05/0.7678, allocations: 8.031 kB / 444 MB, free: 10.61 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002334/0.7702, allocations: 486.8 kB / 444.5 MB, free: 10.29 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02169/0.7919, allocations: 2.36 MB / 446.9 MB, free: 7.949 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02012/0.8121, allocations: 4.842 MB / 451.7 MB, free: 3.902 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002948/0.8124, allocations: 170.5 kB / 451.9 MB, free: 3.785 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001638/0.8141, allocations: 231 kB / 452.1 MB, free: 3.613 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02968/0.8437, allocations: 8.44 MB / 460.5 MB, free: 10.98 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001709/0.844, allocations: 47.56 kB / 460.6 MB, free: 10.94 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009892/0.845, allocations: 115.9 kB / 460.7 MB, free: 10.82 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002054/0.847, allocations: 0.7379 MB / 461.4 MB, free: 10.09 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0328/0.8799, allocations: 9.305 MB / 470.7 MB, free: 0.7734 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06239/0.9423, allocations: 37.75 MB / 0.4966 GB, free: 9.781 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02165/0.9641, allocations: 4.009 MB / 0.5005 GB, free: 5.613 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005621/0.9697, allocations: 2.203 MB / 0.5026 GB, free: 3.395 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001583/0.9699, allocations: 8 kB / 0.5027 GB, free: 3.387 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.3e-05/0.97, allocations: 54.55 kB / 0.5027 GB, free: 3.324 MB / 394.7 MB Notification: Performance of pre-optimization done (n=122): time 4.729e-06/0.97, allocations: 3.938 kB / 0.5027 GB, free: 3.32 MB / 394.7 MB Notification: Performance of matching and sorting (n=136): time 0.33/1.3, allocations: 14.48 MB / 0.5168 GB, free: 98.62 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.002532/1.303, allocations: 3.042 MB / 0.5198 GB, free: 95.69 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006644/1.309, allocations: 2.621 MB / 0.5224 GB, free: 95.39 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006488/1.31, allocations: 43.67 kB / 0.5224 GB, free: 95.36 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001844/1.312, allocations: 2.049 MB / 0.5244 GB, free: 94.31 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001347/1.313, allocations: 0.5617 MB / 0.525 GB, free: 94.05 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001196/1.315, allocations: 99.16 kB / 0.5251 GB, free: 94.05 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0005083/1.315, allocations: 0.5117 MB / 0.5256 GB, free: 93.73 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006004/1.321, allocations: 2.291 MB / 0.5278 GB, free: 93.71 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007513/1.329, allocations: 5.146 MB / 0.5328 GB, free: 90.01 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007461/1.336, allocations: 3.359 MB / 0.5361 GB, free: 90 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.456e-05/1.336, allocations: 32.42 kB / 0.5361 GB, free: 89.99 MB / 394.7 MB Notification: Performance of matching and sorting (n=627) (initialization): time 0.03284/1.369, allocations: 8.883 MB / 0.5448 GB, free: 88.14 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.486e-05/1.369, allocations: 48.53 kB / 0.5449 GB, free: 88.14 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0202/1.39, allocations: 4.656 MB / 0.5494 GB, free: 87.02 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01618/1.406, allocations: 2.35 MB / 0.5517 GB, free: 86.73 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007669/1.413, allocations: 1.156 MB / 0.5528 GB, free: 86.6 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0113/1.425, allocations: 8.117 MB / 0.5608 GB, free: 80.65 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00854/1.433, allocations: 0.5733 MB / 0.5613 GB, free: 80.55 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001479/1.435, allocations: 300.5 kB / 0.5616 GB, free: 80.52 MB / 394.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.001363/1.436, allocations: 457.1 kB / 0.562 GB, free: 80.13 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008721/1.437, allocations: 258 kB / 0.5623 GB, free: 79.99 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001504/1.439, allocations: 419.6 kB / 0.5627 GB, free: 79.73 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01989/1.459, allocations: 4.554 MB / 0.5671 GB, free: 78.02 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.213e-05/1.459, allocations: 8 kB / 0.5671 GB, free: 78.02 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.679e-05/1.459, allocations: 3.891 kB / 0.5671 GB, free: 78.02 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01465/1.473, allocations: 5.357 MB / 0.5724 GB, free: 73.76 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.289e-05/1.474, allocations: 0 / 0.5724 GB, free: 73.76 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003192/1.477, allocations: 278.1 kB / 0.5726 GB, free: 73.57 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01573/1.492, allocations: 2.366 MB / 0.5749 GB, free: 72.11 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006632/1.493, allocations: 49.69 kB / 0.575 GB, free: 72.07 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0131/1.506, allocations: 8.83 MB / 0.5836 GB, free: 63.78 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.00205/1.508, allocations: 2.886 MB / 0.5864 GB, free: 60.71 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02665/1.535, allocations: 8.085 MB / 0.5943 GB, free: 54.06 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001094/1.536, allocations: 333.7 kB / 0.5946 GB, free: 53.71 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001095/1.537, allocations: 37.25 kB / 0.5947 GB, free: 53.68 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004501/1.542, allocations: 271.5 kB / 0.5949 GB, free: 53.41 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008954/1.543, allocations: 100.9 kB / 0.595 GB, free: 53.32 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000267/1.543, allocations: 48.58 kB / 0.5951 GB, free: 53.27 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.004452/1.548, allocations: 1.816 MB / 0.5969 GB, free: 51.45 MB / 394.7 MB Notification: Performance of sort global known variables: time 8.82e-07/1.548, allocations: 0 / 0.5969 GB, free: 51.45 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.006821/1.554, allocations: 0.9367 MB / 0.5978 GB, free: 50.52 MB / 394.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.02864/1.583, allocations: 8.99 MB / 0.6066 GB, free: 41.45 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.01796/1.601, allocations: 6.509 MB / 0.6129 GB, free: 34.84 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 7.033e-06/1.601, allocations: 0 / 0.6129 GB, free: 34.84 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01027/1.612, allocations: 3.371 MB / 0.6162 GB, free: 31.34 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003115/1.615, allocations: 279.9 kB / 0.6165 GB, free: 31.07 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03066/1.645, allocations: 8.627 MB / 0.6249 GB, free: 22.46 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004442/1.65, allocations: 2.345 MB / 0.6272 GB, free: 20.1 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003726/1.654, allocations: 1.19 MB / 0.6283 GB, free: 18.91 MB / 394.7 MB Notification: Performance of SimCode: time 2.495e-06/1.654, allocations: 0 / 0.6283 GB, free: 18.91 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.938/6.592, allocations: 147.7 MB / 0.7726 GB, free: 29.45 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