Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_FreeBody",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.765/1.765, allocations: 171.2 MB / 183.8 MB, free: 12.07 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.754e-05/3.784e-05, allocations: 4 kB / 225.1 MB, free: 2.734 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.257/0.2571, allocations: 38.77 MB / 263.8 MB, free: 9.887 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1439/0.401, allocations: 81.3 MB / 345.1 MB, free: 8.461 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000313/0.4014, allocations: 83.95 kB / 345.2 MB, free: 8.379 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5238/0.9252, allocations: 71.44 MB / 416.7 MB, free: 56.92 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.294e-06/0.9253, allocations: 0 / 416.7 MB, free: 56.92 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0002198/0.9255, allocations: 71.98 kB / 416.7 MB, free: 56.85 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: 1295 * Number of variables: 1295 Notification: Performance of Generate backend data structure: time 0.0207/0.9462, allocations: 3.779 MB / 420.5 MB, free: 53.01 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.234e-05/0.9463, allocations: 11.97 kB / 420.5 MB, free: 53 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002868/0.9492, allocations: 0.6632 MB / 421.2 MB, free: 52.32 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01667/0.9659, allocations: 2.141 MB / 423.3 MB, free: 50.18 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01754/0.9835, allocations: 4.432 MB / 427.8 MB, free: 45.68 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003391/0.9839, allocations: 275.2 kB / 428 MB, free: 45.41 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001966/0.9859, allocations: 367.9 kB / 428.4 MB, free: 45.05 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02544/1.011, allocations: 9.011 MB / 437.4 MB, free: 35.08 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002335/1.012, allocations: 55.47 kB / 437.4 MB, free: 35.02 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001719/1.013, allocations: 179.9 kB / 437.6 MB, free: 34.85 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002009/1.015, allocations: 0.8801 MB / 438.5 MB, free: 33.96 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0216/1.037, allocations: 7.236 MB / 445.7 MB, free: 26.71 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0654/1.103, allocations: 43.17 MB / 488.9 MB, free: 14.1 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01419/1.117, allocations: 3.136 MB / 492 MB, free: 10.82 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003474/1.12, allocations: 1.369 MB / 493.4 MB, free: 9.438 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01675/1.137, allocations: 6.051 MB / 499.5 MB, free: 3.18 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.449e-05/1.137, allocations: 43.12 kB / 499.5 MB, free: 3.129 MB / 346.7 MB Notification: Performance of pre-optimization done (n=118): time 5.38e-06/1.137, allocations: 0 / 499.5 MB, free: 3.129 MB / 346.7 MB Notification: Performance of matching and sorting (n=125): time 0.3198/1.457, allocations: 8.933 MB / 0.4965 GB, free: 87.45 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001442/1.459, allocations: 1.611 MB / 0.4981 GB, free: 85.92 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007724/1.466, allocations: 3.121 MB / 0.5011 GB, free: 85.59 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003773/1.467, allocations: 45.78 kB / 0.5012 GB, free: 85.56 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002428/1.469, allocations: 2.724 MB / 0.5038 GB, free: 83.95 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009702/1.47, allocations: 0.5244 MB / 0.5044 GB, free: 83.67 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007533/1.471, allocations: 103.6 kB / 0.5045 GB, free: 83.67 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0004544/1.472, allocations: 0.54 MB / 0.505 GB, free: 83.35 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004659/1.476, allocations: 1.809 MB / 0.5068 GB, free: 83.33 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006993/1.483, allocations: 5.216 MB / 0.5118 GB, free: 78.89 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006968/1.49, allocations: 3.048 MB / 0.5148 GB, free: 78.88 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001408/1.49, allocations: 32.72 kB / 0.5149 GB, free: 78.88 MB / 346.7 MB Notification: Performance of matching and sorting (n=695) (initialization): time 0.02165/1.512, allocations: 7.485 MB / 0.5222 GB, free: 76.54 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001129/1.512, allocations: 57.88 kB / 0.5222 GB, free: 76.54 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0118/1.524, allocations: 2.375 MB / 0.5245 GB, free: 75.81 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008299/1.532, allocations: 1.132 MB / 0.5256 GB, free: 75.59 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00997/1.542, allocations: 1.22 MB / 0.5268 GB, free: 75.44 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01055/1.553, allocations: 4.702 MB / 0.5314 GB, free: 72.17 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009886/1.563, allocations: 369.5 kB / 0.5318 GB, free: 72.07 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001664/1.565, allocations: 339.9 kB / 0.5321 GB, free: 72.03 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 556 * Number of states: 0 () * Number of discrete variables: 33 (spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],body.color[3],body.color[2],body.color[1],body.body.sphereColor[3],body.body.sphereColor[2],body.body.sphereColor[1],body.frameTranslation.color[3],body.frameTranslation.color[2],body.frameTranslation.color[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],bar2.color[3],bar2.color[2],bar2.color[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (657): * Single equations (assignments): 648 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 1 {3 1} Notification: Performance of prepare postOptimizeDAE: time 0.002832/1.568, allocations: 0.5213 MB / 0.5326 GB, free: 71.59 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001343/1.569, allocations: 297.4 kB / 0.5329 GB, free: 71.43 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01278/1.582, allocations: 2.65 MB / 0.5355 GB, free: 70.52 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0107/1.593, allocations: 2.25 MB / 0.5377 GB, free: 69.28 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.987e-05/1.593, allocations: 4 kB / 0.5377 GB, free: 69.27 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.137e-05/1.593, allocations: 7.031 kB / 0.5377 GB, free: 69.27 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01283/1.606, allocations: 3.357 MB / 0.541 GB, free: 66.66 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.965e-05/1.606, allocations: 0 / 0.541 GB, free: 66.66 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002794/1.609, allocations: 211.7 kB / 0.5412 GB, free: 66.49 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007915/1.617, allocations: 1.035 MB / 0.5422 GB, free: 65.78 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004958/1.617, allocations: 30.42 kB / 0.5422 GB, free: 65.76 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01207/1.629, allocations: 4.99 MB / 0.5471 GB, free: 61.12 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001741/1.631, allocations: 1.472 MB / 0.5485 GB, free: 59.56 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01749/1.649, allocations: 4.847 MB / 0.5533 GB, free: 55.34 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001557/1.65, allocations: 367.1 kB / 0.5536 GB, free: 54.98 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001527/1.652, allocations: 22.58 kB / 0.5536 GB, free: 54.96 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004735/1.657, allocations: 127.1 kB / 0.5538 GB, free: 54.89 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007506/1.657, allocations: 74.59 kB / 0.5538 GB, free: 54.84 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003884/1.658, allocations: 42.92 kB / 0.5539 GB, free: 54.81 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.007667/1.666, allocations: 2.146 MB / 0.556 GB, free: 52.92 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.974e-06/1.666, allocations: 4.109 kB / 0.556 GB, free: 52.92 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.01265/1.678, allocations: 0.9251 MB / 0.5569 GB, free: 52 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 12 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body.v_0[1],body.v_0[2],body.v_0[3],body.body.frame_a.r_0[1],body.body.frame_a.r_0[2],body.body.frame_a.r_0[3],body.body.w_a[1],body.body.w_a[2],body.body.w_a[3]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (93): * Single equations (assignments): 86 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(3,100.0%),(4,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01977/1.698, allocations: 5.655 MB / 0.5624 GB, free: 46.97 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.01841/1.717, allocations: 5.002 MB / 0.5673 GB, free: 42.45 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.078e-05/1.717, allocations: 0 / 0.5673 GB, free: 42.45 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008986/1.726, allocations: 1.99 MB / 0.5692 GB, free: 40.7 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004214/1.73, allocations: 355.4 kB / 0.5696 GB, free: 40.4 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03421/1.764, allocations: 8.409 MB / 0.5778 GB, free: 33.13 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006681/1.771, allocations: 2.943 MB / 0.5806 GB, free: 30.55 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003922/1.775, allocations: 1.597 MB / 0.5822 GB, free: 28.95 MB / 346.7 MB Notification: Performance of SimCode: time 1.923e-06/1.775, allocations: 0 / 0.5822 GB, free: 28.95 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.939/6.714, allocations: 130.1 MB / 0.7093 GB, free: 28.5 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.FreeBody_res.mat does not exist to compare? outputFormat=mat