Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|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.|body.v_0.1.|body.v_0.2.|body.v_0.3.",fileNamePrefix="Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody") Notification: Performance of loadModel(Modelica): time 2.11/2.11, allocations: 224.7 MB / 241.1 MB, free: 1.691 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.61e-05/2.597e-05, allocations: 4 kB / 294.6 MB, free: 11.41 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1097/0.1098, allocations: 50.42 MB / 345 MB, free: 8.953 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody): time 0.05026/0.1601, allocations: 31.65 MB / 376.6 MB, free: 9.211 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.02235/0.1825, allocations: 7.649 MB / 384.3 MB, free: 1.539 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007519/0.1901, allocations: 167.6 kB / 384.4 MB, free: 1.375 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005969/0.1961, allocations: 1.59 MB / 386 MB, free: 15.77 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01812/0.2143, allocations: 4.585 MB / 390.6 MB, free: 11.18 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00304/0.2174, allocations: 487.2 kB / 391.1 MB, free: 10.7 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.004536/0.2219, allocations: 1.451 MB / 392.5 MB, free: 9.246 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00719/0.2292, allocations: 3.314 MB / 395.9 MB, free: 5.895 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001824/0.2311, allocations: 0.7247 MB / 396.6 MB, free: 5.168 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002448/0.2336, allocations: 1.075 MB / 397.7 MB, free: 4.09 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002816/0.2364, allocations: 0.8464 MB / 398.5 MB, free: 3.242 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001137/0.2376, allocations: 104 kB / 398.6 MB, free: 3.141 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002876/0.2405, allocations: 1.305 MB / 399.9 MB, free: 1.832 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001368/0.242, allocations: 244 kB / 400.2 MB, free: 1.594 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.3596/0.6016, allocations: 4.783 MB / 404.9 MB, free: 7.75 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.23e-06/0.6016, allocations: 0 / 404.9 MB, free: 7.75 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.607e-06/0.6017, allocations: 0 / 404.9 MB, free: 7.75 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0003063/0.602, allocations: 1.219 kB / 404.9 MB, free: 7.75 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: 1330 * Number of variables: 1330 Notification: Performance of Generate backend data structure: time 0.01333/0.6153, allocations: 3.438 MB / 408.4 MB, free: 6.176 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.864e-05/0.6154, allocations: 8.844 kB / 408.4 MB, free: 6.176 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01446/0.6298, allocations: 2.178 MB / 410.6 MB, free: 5.926 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006965/0.6369, allocations: 2.083 MB / 412.6 MB, free: 5.449 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002754/0.6372, allocations: 211.7 kB / 412.8 MB, free: 5.441 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002709/0.6399, allocations: 372.1 kB / 413.2 MB, free: 5.434 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02688/0.6668, allocations: 8.939 MB / 422.2 MB, free: 3.68 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001488/0.667, allocations: 37.83 kB / 422.2 MB, free: 3.676 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008542/0.6679, allocations: 137.4 kB / 422.3 MB, free: 3.676 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004344/0.6723, allocations: 1.641 MB / 424 MB, free: 3.645 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0239/0.6962, allocations: 7.58 MB / 431.5 MB, free: 2.375 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06508/0.7613, allocations: 35.25 MB / 466.8 MB, free: 6.277 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01504/0.7764, allocations: 3.457 MB / 470.3 MB, free: 3.422 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01803/0.7945, allocations: 6.847 MB / 477.1 MB, free: 13.05 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.111e-05/0.7946, allocations: 43.22 kB / 477.1 MB, free: 13 MB / 378.7 MB Notification: Performance of pre-optimization done (n=132): time 6.522e-06/0.7946, allocations: 0 / 477.1 MB, free: 13 MB / 378.7 MB Notification: Performance of matching and sorting (n=139): time 0.04986/0.8445, allocations: 11.4 MB / 488.5 MB, free: 1.41 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.002001/0.8465, allocations: 1.631 MB / 490.2 MB, free: 15.61 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00902/0.8556, allocations: 3.266 MB / 493.4 MB, free: 12.35 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005894/0.8563, allocations: 41.7 kB / 493.5 MB, free: 12.3 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003658/0.8599, allocations: 2.745 MB / 496.2 MB, free: 9.566 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001285/0.8613, allocations: 0.5654 MB / 496.8 MB, free: 9.004 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008106/0.8621, allocations: 107.5 kB / 496.9 MB, free: 8.902 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0005173/0.8627, allocations: 0.5381 MB / 497.4 MB, free: 8.355 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0059/0.8686, allocations: 1.927 MB / 499.4 MB, free: 6.422 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009539/0.8782, allocations: 5.348 MB / 0.4929 GB, free: 15.4 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008564/0.8868, allocations: 3.135 MB / 0.4959 GB, free: 12.38 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.00012/0.887, allocations: 43.95 kB / 0.496 GB, free: 12.34 MB / 410.7 MB Notification: Performance of matching and sorting (n=710) (initialization): time 0.03655/0.9235, allocations: 8.656 MB / 0.5044 GB, free: 4.398 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001182/0.9237, allocations: 57 kB / 0.5045 GB, free: 4.344 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.02044/0.9442, allocations: 3.482 MB / 0.5079 GB, free: 0.8633 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02045/0.9647, allocations: 2.246 MB / 0.5101 GB, free: 14.6 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007895/0.9726, allocations: 1.246 MB / 0.5113 GB, free: 13.47 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01882/0.9915, allocations: 7.248 MB / 0.5184 GB, free: 6.02 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006825/0.9983, allocations: 382.4 kB / 0.5187 GB, free: 5.648 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001464/0.9999, allocations: 340 kB / 0.5191 GB, free: 5.316 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 557 * Number of states: 0 () * Number of discrete variables: 36 (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.groundColor[3],world.groundColor[2],world.groundColor[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 (672): * Single equations (assignments): 663 * Array equations: 5 * 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 {(4,100.0%),(3,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 prepare postOptimizeDAE: time 0.005668/1.006, allocations: 1.817 MB / 0.5208 GB, free: 3.602 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009533/1.007, allocations: 304 kB / 0.5211 GB, free: 3.301 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01042/1.017, allocations: 2.766 MB / 0.5238 GB, free: 0.5156 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.008738/1.026, allocations: 2.36 MB / 0.5261 GB, free: 14.15 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.989e-05/1.026, allocations: 4 kB / 0.5261 GB, free: 14.15 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.303e-05/1.026, allocations: 3.984 kB / 0.5261 GB, free: 14.14 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02697/1.053, allocations: 7.85 MB / 0.5338 GB, free: 6.219 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.789e-05/1.053, allocations: 0 / 0.5338 GB, free: 6.219 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002347/1.055, allocations: 225.8 kB / 0.534 GB, free: 6.008 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005953/1.061, allocations: 1.058 MB / 0.5351 GB, free: 4.941 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004498/1.062, allocations: 31.98 kB / 0.5351 GB, free: 4.91 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01024/1.072, allocations: 5.061 MB / 0.54 GB, free: 15.61 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001648/1.074, allocations: 1.493 MB / 0.5415 GB, free: 13.98 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01487/1.089, allocations: 5.096 MB / 0.5465 GB, free: 8.82 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001255/1.09, allocations: 373 kB / 0.5468 GB, free: 8.434 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001139/1.091, allocations: 24 kB / 0.5468 GB, free: 8.41 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003221/1.094, allocations: 127.8 kB / 0.547 GB, free: 8.285 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006382/1.095, allocations: 84.52 kB / 0.547 GB, free: 8.199 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002039/1.095, allocations: 39.98 kB / 0.5471 GB, free: 8.16 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.006461/1.102, allocations: 2.273 MB / 0.5493 GB, free: 5.898 MB / 458.7 MB Notification: Performance of sort global known variables: time 9.62e-07/1.102, allocations: 0 / 0.5493 GB, free: 5.898 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.007472/1.109, allocations: 0.9948 MB / 0.5503 GB, free: 4.906 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 (105): * Single equations (assignments): 98 * 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 {(4,100.0%),(3,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.001032/1.11, allocations: 184.5 kB / 0.5505 GB, free: 4.73 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01629/1.127, allocations: 5.239 MB / 0.5556 GB, free: 15.79 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 8.095e-06/1.127, allocations: 0 / 0.5556 GB, free: 15.79 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007182/1.134, allocations: 2.005 MB / 0.5575 GB, free: 13.73 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003543/1.138, allocations: 365.7 kB / 0.5579 GB, free: 13.37 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03172/1.169, allocations: 10.33 MB / 0.568 GB, free: 2.996 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.3673/1.537, allocations: 2.979 MB / 0.5709 GB, free: 176.8 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001588/1.538, allocations: 258 kB / 0.5711 GB, free: 176.8 MB / 474.7 MB Notification: Performance of SimCode: time 1.553e-06/1.538, allocations: 1.219 kB / 0.5711 GB, free: 176.8 MB / 474.7 MB Notification: Performance of Templates: time 0.1918/1.73, allocations: 111.6 MB / 0.6801 GB, free: 81.3 MB / 474.7 MB