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_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody") Notification: Performance of loadModel(Modelica): time 1.673/1.673, allocations: 171.1 MB / 186.3 MB, free: 1.336 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.989e-05/2.991e-05, allocations: 4 kB / 228.1 MB, free: 7.984 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08412/0.08418, allocations: 38.77 MB / 266.9 MB, free: 1.133 MB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody): time 0.04655/0.1308, allocations: 30.15 MB / 297 MB, free: 2.891 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.2575/0.3883, allocations: 7.234 MB / 304.3 MB, free: 3.059 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008635/0.397, allocations: 161.4 kB / 304.4 MB, free: 3.059 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006898/0.404, allocations: 1.553 MB / 306 MB, free: 3.055 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01762/0.4216, allocations: 4.348 MB / 310.3 MB, free: 2.809 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003004/0.4247, allocations: 489.8 kB / 310.8 MB, free: 2.66 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.004433/0.4292, allocations: 1.409 MB / 312.2 MB, free: 2.41 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006967/0.4362, allocations: 3.302 MB / 315.5 MB, free: 1.398 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002218/0.4385, allocations: 0.7061 MB / 316.2 MB, free: 1.312 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00279/0.4413, allocations: 1.04 MB / 317.3 MB, free: 1.07 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00326/0.4446, allocations: 0.8239 MB / 318.1 MB, free: 0.8555 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001391/0.4461, allocations: 101 kB / 318.2 MB, free: 0.8555 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002531/0.4486, allocations: 1.261 MB / 319.5 MB, free: 0.5898 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001679/0.4504, allocations: 225.7 kB / 319.7 MB, free: 0.5898 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008696/0.4591, allocations: 4.715 MB / 324.4 MB, free: 14.05 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.559e-06/0.4592, allocations: 0 / 324.4 MB, free: 14.05 MB / 266.7 MB Notification: Performance of FrontEnd: time 3.447e-06/0.4592, allocations: 0 / 324.4 MB, free: 14.05 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0002778/0.4595, allocations: 0 / 324.4 MB, free: 14.05 MB / 266.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.01225/0.4717, allocations: 3.362 MB / 327.7 MB, free: 11.97 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.372e-05/0.4718, allocations: 9 kB / 327.8 MB, free: 11.97 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01414/0.486, allocations: 2.145 MB / 329.9 MB, free: 10.95 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006971/0.493, allocations: 2.204 MB / 332.1 MB, free: 9.223 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002878/0.4933, allocations: 206.6 kB / 332.3 MB, free: 9.105 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002295/0.4957, allocations: 364.4 kB / 332.7 MB, free: 8.863 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02618/0.5219, allocations: 8.676 MB / 341.3 MB, free: 1.898 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001592/0.5221, allocations: 43.58 kB / 341.4 MB, free: 1.855 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007299/0.5228, allocations: 131.4 kB / 341.5 MB, free: 1.816 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004696/0.5276, allocations: 1.613 MB / 343.1 MB, free: 488 kB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.025/0.5526, allocations: 7.359 MB / 350.5 MB, free: 9.883 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0704/0.6231, allocations: 34.48 MB / 385 MB, free: 6.543 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01432/0.6375, allocations: 3.17 MB / 388.1 MB, free: 3.223 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01598/0.6535, allocations: 6.037 MB / 394.2 MB, free: 13.02 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.118e-05/0.6536, allocations: 51.05 kB / 394.2 MB, free: 12.96 MB / 330.7 MB Notification: Performance of pre-optimization done (n=118): time 5.2e-06/0.6536, allocations: 4 kB / 394.2 MB, free: 12.95 MB / 330.7 MB Notification: Performance of matching and sorting (n=125): time 0.04889/0.7025, allocations: 11.02 MB / 405.2 MB, free: 1.715 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.002009/0.7046, allocations: 1.623 MB / 406.9 MB, free: 15.92 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00853/0.7132, allocations: 3.261 MB / 410.1 MB, free: 12.66 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000418/0.7136, allocations: 41.7 kB / 410.2 MB, free: 12.61 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003327/0.717, allocations: 2.708 MB / 412.9 MB, free: 9.91 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001111/0.7181, allocations: 0.5243 MB / 413.4 MB, free: 9.391 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006842/0.7189, allocations: 111 kB / 413.5 MB, free: 9.285 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0005441/0.7194, allocations: 0.5302 MB / 414 MB, free: 8.746 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005618/0.7251, allocations: 1.876 MB / 415.9 MB, free: 6.863 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009538/0.7347, allocations: 5.275 MB / 421.2 MB, free: 15.86 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008317/0.743, allocations: 3.068 MB / 424.3 MB, free: 12.8 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000126/0.7432, allocations: 36 kB / 424.3 MB, free: 12.76 MB / 362.7 MB Notification: Performance of matching and sorting (n=693) (initialization): time 0.02563/0.7689, allocations: 7.647 MB / 431.9 MB, free: 5.098 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001185/0.769, allocations: 60.25 kB / 432 MB, free: 5.039 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.009309/0.7784, allocations: 2.488 MB / 434.5 MB, free: 2.539 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006798/0.7852, allocations: 1.268 MB / 435.8 MB, free: 1.258 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007677/0.7929, allocations: 1.22 MB / 437 MB, free: 36 kB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2523/1.045, allocations: 5.068 MB / 442 MB, free: 117.4 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009588/1.055, allocations: 373.5 kB / 442.4 MB, free: 117.4 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00163/1.057, allocations: 345 kB / 442.7 MB, free: 117.3 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 554 * 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 (655): * Single equations (assignments): 646 * 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.006644/1.063, allocations: 1.789 MB / 444.5 MB, free: 117 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001072/1.064, allocations: 295.8 kB / 444.8 MB, free: 117 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01345/1.078, allocations: 2.691 MB / 447.5 MB, free: 116.1 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01135/1.089, allocations: 2.293 MB / 449.8 MB, free: 115.4 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.726e-05/1.089, allocations: 2.75 kB / 449.8 MB, free: 115.4 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.376e-05/1.089, allocations: 6.578 kB / 449.8 MB, free: 115.4 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01047/1.1, allocations: 3.361 MB / 453.2 MB, free: 114.2 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.474e-05/1.1, allocations: 0 / 453.2 MB, free: 114.2 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002177/1.102, allocations: 204.1 kB / 453.4 MB, free: 114.2 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0057/1.108, allocations: 1.06 MB / 454.4 MB, free: 113.9 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003499/1.108, allocations: 25.81 kB / 454.5 MB, free: 113.9 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00861/1.117, allocations: 5.062 MB / 459.5 MB, free: 110.6 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001211/1.118, allocations: 1.493 MB / 461 MB, free: 109.2 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01271/1.131, allocations: 4.916 MB / 465.9 MB, free: 107.3 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001106/1.132, allocations: 370.4 kB / 466.3 MB, free: 107.1 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000965/1.133, allocations: 23.62 kB / 466.3 MB, free: 107.1 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002777/1.136, allocations: 128.5 kB / 466.4 MB, free: 107.1 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004334/1.136, allocations: 82.53 kB / 466.5 MB, free: 107.1 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001679/1.137, allocations: 38.73 kB / 466.6 MB, free: 107.1 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.005087/1.142, allocations: 2.265 MB / 468.8 MB, free: 106 MB / 362.7 MB Notification: Performance of sort global known variables: time 8.52e-07/1.142, allocations: 0.5625 kB / 468.8 MB, free: 106 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.006552/1.148, allocations: 0.9474 MB / 469.8 MB, free: 105.9 MB / 362.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.0008444/1.149, allocations: 168.7 kB / 469.9 MB, free: 105.8 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.01355/1.163, allocations: 5.12 MB / 475.1 MB, free: 103 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 7.093e-06/1.163, allocations: 0 / 475.1 MB, free: 103 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006272/1.169, allocations: 1.973 MB / 477 MB, free: 101 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003102/1.172, allocations: 362.7 kB / 477.4 MB, free: 100.7 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02073/1.193, allocations: 10.07 MB / 487.5 MB, free: 90.61 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005156/1.198, allocations: 2.936 MB / 490.4 MB, free: 87.64 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001292/1.2, allocations: 252.6 kB / 490.6 MB, free: 87.4 MB / 362.7 MB Notification: Performance of SimCode: time 1.272e-06/1.2, allocations: 0 / 490.6 MB, free: 87.4 MB / 362.7 MB Notification: Performance of Templates: time 0.4332/1.633, allocations: 108.9 MB / 0.5855 GB, free: 104.1 MB / 362.7 MB