Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody") Notification: Performance of loadModel(Modelica): time 1.995/1.995, allocations: 225.8 MB / 239.3 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.818e-05/2.82e-05, allocations: 4 kB / 292.1 MB, free: 8.82 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1305/0.1305, allocations: 50.41 MB / 342.6 MB, free: 6.391 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3885/0.519, allocations: 95.76 MB / 438.3 MB, free: 14.61 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002392/0.5193, allocations: 86.39 kB / 438.4 MB, free: 14.57 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2961/0.8154, allocations: 74.51 MB / 0.5009 GB, free: 8.324 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.634e-06/0.8155, allocations: 4 kB / 0.5009 GB, free: 8.32 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002216/0.8157, allocations: 79.88 kB / 0.501 GB, free: 8.242 MB / 426.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.01644/0.8322, allocations: 3.854 MB / 0.5047 GB, free: 4.328 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.458e-05/0.8322, allocations: 8.031 kB / 0.5047 GB, free: 4.32 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01252/0.8448, allocations: 2.152 MB / 0.5068 GB, free: 2.16 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01483/0.8596, allocations: 4.33 MB / 0.5111 GB, free: 13.77 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004198/0.8601, allocations: 287.4 kB / 0.5113 GB, free: 13.48 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001721/0.8618, allocations: 375.8 kB / 0.5117 GB, free: 13.12 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0245/0.8864, allocations: 9.215 MB / 0.5207 GB, free: 2.941 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001971/0.8866, allocations: 59.47 kB / 0.5207 GB, free: 2.883 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001104/0.8877, allocations: 183.9 kB / 0.5209 GB, free: 2.703 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001781/0.8895, allocations: 0.896 MB / 0.5218 GB, free: 1.809 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2717/1.161, allocations: 7.294 MB / 0.5289 GB, free: 103.7 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05448/1.216, allocations: 43.89 MB / 0.5718 GB, free: 76.62 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01065/1.226, allocations: 3.407 MB / 0.5751 GB, free: 75.48 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00256/1.229, allocations: 1.413 MB / 0.5765 GB, free: 74.88 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01253/1.242, allocations: 6.861 MB / 0.5832 GB, free: 70.94 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.35e-05/1.242, allocations: 47.22 kB / 0.5832 GB, free: 70.89 MB / 442.7 MB Notification: Performance of pre-optimization done (n=132): time 5.674e-06/1.242, allocations: 0 / 0.5832 GB, free: 70.89 MB / 442.7 MB Notification: Performance of matching and sorting (n=139): time 0.02919/1.271, allocations: 9.274 MB / 0.5923 GB, free: 67.25 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001099/1.272, allocations: 1.616 MB / 0.5939 GB, free: 65.64 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006224/1.278, allocations: 3.115 MB / 0.5969 GB, free: 64.54 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003037/1.279, allocations: 45.47 kB / 0.597 GB, free: 64.5 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00192/1.281, allocations: 2.755 MB / 0.5996 GB, free: 62.31 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007362/1.281, allocations: 0.5673 MB / 0.6002 GB, free: 61.91 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004495/1.282, allocations: 109.7 kB / 0.6003 GB, free: 61.83 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0003152/1.282, allocations: 0.5444 MB / 0.6008 GB, free: 61.41 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003863/1.286, allocations: 1.847 MB / 0.6026 GB, free: 60.8 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00552/1.292, allocations: 5.259 MB / 0.6078 GB, free: 55.49 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005756/1.297, allocations: 3.1 MB / 0.6108 GB, free: 54.41 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000111/1.298, allocations: 38.34 kB / 0.6108 GB, free: 54.41 MB / 442.7 MB Notification: Performance of matching and sorting (n=712) (initialization): time 0.02386/1.321, allocations: 7.93 MB / 0.6186 GB, free: 51.95 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.559e-05/1.322, allocations: 58.03 kB / 0.6186 GB, free: 51.95 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0119/1.333, allocations: 3.134 MB / 0.6217 GB, free: 51.19 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01043/1.344, allocations: 1.938 MB / 0.6236 GB, free: 50.56 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004906/1.349, allocations: 1.253 MB / 0.6248 GB, free: 49.46 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008501/1.357, allocations: 5.677 MB / 0.6304 GB, free: 44.28 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005726/1.363, allocations: 376 kB / 0.6307 GB, free: 43.98 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001128/1.364, allocations: 344.7 kB / 0.631 GB, free: 43.65 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 559 * 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 (674): * Single equations (assignments): 665 * 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.001249/1.366, allocations: 0.5238 MB / 0.6316 GB, free: 43.13 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006796/1.366, allocations: 304.1 kB / 0.6318 GB, free: 42.83 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006591/1.373, allocations: 2.736 MB / 0.6345 GB, free: 40.65 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005391/1.378, allocations: 2.315 MB / 0.6368 GB, free: 38.8 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.721e-05/1.378, allocations: 4 kB / 0.6368 GB, free: 38.8 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.019e-05/1.378, allocations: 7.891 kB / 0.6368 GB, free: 38.79 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01779/1.396, allocations: 7.818 MB / 0.6444 GB, free: 32.57 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.81e-05/1.396, allocations: 0 / 0.6444 GB, free: 32.57 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001385/1.398, allocations: 224.2 kB / 0.6446 GB, free: 32.39 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003684/1.401, allocations: 1.045 MB / 0.6457 GB, free: 31.68 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002813/1.402, allocations: 31.84 kB / 0.6457 GB, free: 31.65 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005932/1.408, allocations: 4.965 MB / 0.6505 GB, free: 27.02 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0009342/1.409, allocations: 1.469 MB / 0.652 GB, free: 25.46 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00905/1.418, allocations: 5.041 MB / 0.6569 GB, free: 21.04 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009844/1.419, allocations: 364.4 kB / 0.6572 GB, free: 20.67 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000729/1.42, allocations: 32.31 kB / 0.6573 GB, free: 20.64 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002127/1.422, allocations: 121.2 kB / 0.6574 GB, free: 20.57 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004237/1.422, allocations: 82.41 kB / 0.6575 GB, free: 20.52 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001855/1.422, allocations: 49.94 kB / 0.6575 GB, free: 20.48 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.004981/1.427, allocations: 2.151 MB / 0.6596 GB, free: 18.42 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.273e-06/1.427, allocations: 0 / 0.6596 GB, free: 18.42 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.006213/1.434, allocations: 0.966 MB / 0.6606 GB, free: 17.46 MB / 442.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 {(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.0005515/1.434, allocations: 183.8 kB / 0.6607 GB, free: 17.28 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.009973/1.444, allocations: 4.908 MB / 0.6655 GB, free: 12.34 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.491e-06/1.444, allocations: 0 / 0.6655 GB, free: 12.34 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004292/1.449, allocations: 1.984 MB / 0.6675 GB, free: 10.29 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002461/1.451, allocations: 356 kB / 0.6678 GB, free: 9.945 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0158/1.467, allocations: 7.378 MB / 0.675 GB, free: 2.555 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005444/1.472, allocations: 2.985 MB / 0.6779 GB, free: 15.55 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001175/1.474, allocations: 255.4 kB / 0.6782 GB, free: 15.3 MB / 458.7 MB Notification: Performance of SimCode: time 1.807e-06/1.474, allocations: 0 / 0.6782 GB, free: 15.3 MB / 458.7 MB Notification: Performance of Templates: time 0.4161/1.89, allocations: 110 MB / 0.7856 GB, free: 66.33 MB / 458.7 MB