Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody,fileNamePrefix="Modelica_3_2_1_Modelica_Mechanics_MultiBody_Examples_Elementary_FreeBody",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.665/1.665, allocations: 171.3 MB / 178.4 MB, free: 160 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 4.371e-05/4.377e-05, allocations: 8 kB / 219.6 MB, free: 6.934 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2654/0.2655, allocations: 38.76 MB / 258.3 MB, free: 12.18 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1421/0.4076, allocations: 80.64 MB / 339 MB, free: 13.12 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000309/0.408, allocations: 87.88 kB / 339.1 MB, free: 13.04 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5019/0.9099, allocations: 69.86 MB / 408.9 MB, free: 65.98 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.355e-06/0.9099, allocations: 7.938 kB / 408.9 MB, free: 65.97 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0002279/0.9102, allocations: 72 kB / 409 MB, free: 65.9 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.02035/0.9305, allocations: 3.78 MB / 412.8 MB, free: 62.07 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.78e-05/0.9306, allocations: 12.03 kB / 412.8 MB, free: 62.06 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01629/0.9469, allocations: 2.133 MB / 414.9 MB, free: 59.92 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01684/0.9638, allocations: 4.418 MB / 419.3 MB, free: 55.48 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002191/0.9641, allocations: 116 kB / 419.5 MB, free: 55.37 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001823/0.9659, allocations: 212 kB / 419.7 MB, free: 55.16 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01264/0.9786, allocations: 5.186 MB / 424.9 MB, free: 49.97 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01906/0.9977, allocations: 8.109 MB / 433 MB, free: 40.91 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001901/0.998, allocations: 51.47 kB / 433 MB, free: 40.86 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001129/0.9991, allocations: 28 kB / 433 MB, free: 40.83 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001833/1.001, allocations: 0.877 MB / 433.9 MB, free: 39.96 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0553/1.056, allocations: 42.16 MB / 476.1 MB, free: 12.5 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004664/1.061, allocations: 2.295 MB / 478.4 MB, free: 10.06 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002733/1.064, allocations: 1.276 MB / 479.6 MB, free: 8.77 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001402/1.064, allocations: 19.36 kB / 479.7 MB, free: 8.758 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.514e-05/1.064, allocations: 55.11 kB / 479.7 MB, free: 8.695 MB / 330.7 MB Notification: Performance of pre-optimization done (n=124): time 4.709e-06/1.064, allocations: 0 / 479.7 MB, free: 8.695 MB / 330.7 MB Notification: Performance of matching and sorting (n=131): time 0.03084/1.095, allocations: 8.523 MB / 488.2 MB, free: 52 kB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001061/1.095, allocations: 145.1 kB / 488.4 MB, free: 15.88 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006231/1.101, allocations: 2.766 MB / 491.1 MB, free: 13.11 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003631/1.102, allocations: 25.7 kB / 491.2 MB, free: 13.08 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003091/1.105, allocations: 2.814 MB / 494 MB, free: 10.22 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00103/1.106, allocations: 0.5285 MB / 494.5 MB, free: 9.688 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006291/1.107, allocations: 4 kB / 494.5 MB, free: 9.684 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0005365/1.107, allocations: 0.5376 MB / 495.1 MB, free: 9.141 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00458/1.112, allocations: 1.768 MB / 496.8 MB, free: 7.367 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008102/1.12, allocations: 5.293 MB / 0.4904 GB, free: 284 kB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2389/1.359, allocations: 3.029 MB / 0.4933 GB, free: 87 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001118/1.359, allocations: 38.09 kB / 0.4933 GB, free: 87 MB / 346.7 MB Notification: Performance of matching and sorting (n=725) (initialization): time 0.01946/1.378, allocations: 7.035 MB / 0.5002 GB, free: 86.54 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.095e-05/1.379, allocations: 57.59 kB / 0.5003 GB, free: 86.54 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.006875/1.385, allocations: 2.337 MB / 0.5026 GB, free: 86.46 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005178/1.391, allocations: 1.117 MB / 0.5036 GB, free: 86.43 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006981/1.398, allocations: 1.277 MB / 0.5049 GB, free: 86.31 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006805/1.404, allocations: 4.54 MB / 0.5093 GB, free: 83.88 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006251/1.411, allocations: 271.9 kB / 0.5096 GB, free: 83.88 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001185/1.412, allocations: 353 kB / 0.5099 GB, free: 83.88 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 580 * 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 (687): * Single equations (assignments): 678 * 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.001144/1.413, allocations: 423.6 kB / 0.5103 GB, free: 83.65 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0086/1.422, allocations: 2.964 MB / 0.5132 GB, free: 83.54 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000821/1.423, allocations: 283.6 kB / 0.5135 GB, free: 83.54 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00816/1.431, allocations: 2.584 MB / 0.516 GB, free: 82.75 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.006842/1.438, allocations: 2.213 MB / 0.5182 GB, free: 82.05 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.07e-05/1.438, allocations: 3.5 kB / 0.5182 GB, free: 82.05 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.6e-05/1.438, allocations: 3.516 kB / 0.5182 GB, free: 82.05 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01284/1.451, allocations: 5.055 MB / 0.5231 GB, free: 80.05 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.165e-05/1.451, allocations: 3.469 kB / 0.5231 GB, free: 80.05 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002001/1.453, allocations: 216 kB / 0.5233 GB, free: 80.04 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005087/1.458, allocations: 1.025 MB / 0.5243 GB, free: 79.81 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002318/1.458, allocations: 21.25 kB / 0.5243 GB, free: 79.81 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007924/1.466, allocations: 4.892 MB / 0.5291 GB, free: 76.64 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001054/1.467, allocations: 1.42 MB / 0.5305 GB, free: 75.27 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01136/1.479, allocations: 4.847 MB / 0.5352 GB, free: 72.47 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009605/1.48, allocations: 342.3 kB / 0.5356 GB, free: 72.13 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007594/1.48, allocations: 14.86 kB / 0.5356 GB, free: 72.12 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002413/1.483, allocations: 101.9 kB / 0.5357 GB, free: 72.07 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003586/1.483, allocations: 84.14 kB / 0.5358 GB, free: 72.02 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000158/1.483, allocations: 38.92 kB / 0.5358 GB, free: 71.99 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.003828/1.487, allocations: 1.83 MB / 0.5376 GB, free: 70.39 MB / 346.7 MB Notification: Performance of sort global known variables: time 6.61e-07/1.487, allocations: 0 / 0.5376 GB, free: 70.39 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.006581/1.494, allocations: 0.8422 MB / 0.5384 GB, free: 69.56 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 12 ($STATESET4597358984.x[3],$STATESET4597358984.x[2],$STATESET4597358984.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 (99): * Single equations (assignments): 92 * 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.01142/1.505, allocations: 5.65 MB / 0.5439 GB, free: 64.57 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.01176/1.517, allocations: 4.843 MB / 0.5487 GB, free: 60.23 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 7.333e-06/1.517, allocations: 0 / 0.5487 GB, free: 60.23 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006074/1.523, allocations: 1.978 MB / 0.5506 GB, free: 58.5 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002585/1.526, allocations: 293.8 kB / 0.5509 GB, free: 58.25 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02442/1.55, allocations: 7.866 MB / 0.5586 GB, free: 51.46 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005644/1.556, allocations: 2.94 MB / 0.5614 GB, free: 49.21 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.007809/1.564, allocations: 1.743 MB / 0.5631 GB, free: 48.1 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003631/1.567, allocations: 1.565 MB / 0.5647 GB, free: 46.53 MB / 346.7 MB Notification: Performance of SimCode: time 1.683e-06/1.567, allocations: 0 / 0.5647 GB, free: 46.53 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3924/1.96, allocations: 62.83 MB / 0.626 GB, free: 85.07 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002171/1.96, allocations: 146.1 kB / 0.6261 GB, free: 84.89 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.477/6.437, allocations: 3.875 kB / 0.6262 GB, free: 84.89 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody_res.mat does not exist to compare? outputFormat=mat