Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque") Notification: Performance of loadModel(Modelica): time 1.936/1.936, allocations: 194.9 MB / 208.4 MB, free: 3.25 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.77e-05/2.79e-05, allocations: 4 kB / 255.4 MB, free: 3.211 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07964/0.07969, allocations: 44.5 MB / 299.9 MB, free: 6.645 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.366/0.4457, allocations: 94.65 MB / 394.5 MB, free: 19.33 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002485/0.446, allocations: 83.62 kB / 394.6 MB, free: 19.33 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3631/0.8091, allocations: 97.18 MB / 491.8 MB, free: 12.61 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.437e-06/0.8092, allocations: 0 / 491.8 MB, free: 12.61 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002772/0.8094, allocations: 88 kB / 491.9 MB, free: 12.53 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1734 * Number of variables: 1734 Notification: Performance of Generate backend data structure: time 0.01635/0.8258, allocations: 4.67 MB / 496.5 MB, free: 7.793 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.722e-05/0.8259, allocations: 8.031 kB / 496.5 MB, free: 7.785 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02526/0.8512, allocations: 4.51 MB / 0.4893 GB, free: 3.262 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01673/0.8679, allocations: 5.034 MB / 0.4942 GB, free: 14.16 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005341/0.8685, allocations: 369.4 kB / 0.4946 GB, free: 13.8 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002176/0.8707, allocations: 467.9 kB / 0.495 GB, free: 13.34 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03258/0.9033, allocations: 11.9 MB / 0.5066 GB, free: 400 kB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002465/0.9036, allocations: 63.34 kB / 0.5067 GB, free: 336 kB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00147/0.9051, allocations: 235.9 kB / 0.5069 GB, free: 100 kB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.2318/1.137, allocations: 1.186 MB / 0.5081 GB, free: 68.93 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02658/1.163, allocations: 9.633 MB / 0.5175 GB, free: 68.91 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06724/1.231, allocations: 52.86 MB / 0.5691 GB, free: 38.5 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01698/1.248, allocations: 5.163 MB / 0.5742 GB, free: 36.73 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00419/1.252, allocations: 2.616 MB / 0.5767 GB, free: 35.64 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01649/1.269, allocations: 8.036 MB / 0.5846 GB, free: 31.77 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.978e-05/1.269, allocations: 58.25 kB / 0.5846 GB, free: 31.71 MB / 394.7 MB Notification: Performance of pre-optimization done (n=216): time 6.154e-06/1.269, allocations: 0 / 0.5846 GB, free: 31.71 MB / 394.7 MB Notification: Performance of matching and sorting (n=237): time 0.05774/1.326, allocations: 16.68 MB / 0.6009 GB, free: 26.03 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.518e-05/1.327, allocations: 184.7 kB / 0.6011 GB, free: 25.84 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008847/1.335, allocations: 4.163 MB / 0.6051 GB, free: 24.36 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004601/1.336, allocations: 57.61 kB / 0.6052 GB, free: 24.3 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00244/1.338, allocations: 3.286 MB / 0.6084 GB, free: 21.68 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001176/1.34, allocations: 0.8858 MB / 0.6093 GB, free: 21.03 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007104/1.34, allocations: 132 kB / 0.6094 GB, free: 20.93 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0004656/1.341, allocations: 0.5931 MB / 0.61 GB, free: 20.5 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005296/1.346, allocations: 2.45 MB / 0.6124 GB, free: 19.07 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007177/1.353, allocations: 6.279 MB / 0.6185 GB, free: 11.39 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007158/1.361, allocations: 3.93 MB / 0.6223 GB, free: 8.211 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001139/1.361, allocations: 40 kB / 0.6224 GB, free: 8.172 MB / 394.7 MB Notification: Performance of matching and sorting (n=864) (initialization): time 0.02177/1.383, allocations: 8.813 MB / 0.631 GB, free: 0.5508 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001081/1.383, allocations: 60.94 kB / 0.631 GB, free: 0.4922 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001469/1.383, allocations: 140 kB / 0.6312 GB, free: 364 kB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004437/1.387, allocations: 0.9995 MB / 0.6321 GB, free: 15.82 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007763/1.395, allocations: 1.594 MB / 0.6337 GB, free: 14.46 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01056/1.406, allocations: 5.771 MB / 0.6393 GB, free: 9.273 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006994/1.413, allocations: 380.5 kB / 0.6397 GB, free: 8.949 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001591/1.414, allocations: 398.8 kB / 0.6401 GB, free: 8.57 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 624 * Number of states: 0 () * Number of discrete variables: 39 (fixed2.color[3],fixed2.color[2],fixed2.color[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],forceAndTorque.connectionLineColor[3],forceAndTorque.connectionLineColor[2],forceAndTorque.connectionLineColor[1],forceAndTorque.torqueColor[3],forceAndTorque.torqueColor[2],forceAndTorque.torqueColor[1],forceAndTorque.forceColor[3],forceAndTorque.forceColor[2],forceAndTorque.forceColor[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],body.color[3],body.color[2],body.color[1],body.body.sphereColor[3],body.body.sphereColor[2],body.body.sphereColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (816): * Single equations (assignments): 812 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001967/1.416, allocations: 0.6073 MB / 0.6407 GB, free: 7.965 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001133/1.418, allocations: 422.6 kB / 0.6411 GB, free: 7.547 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01074/1.428, allocations: 4.244 MB / 0.6452 GB, free: 4.059 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.942e-05/1.428, allocations: 24.94 kB / 0.6452 GB, free: 4.035 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.684e-05/1.428, allocations: 4 kB / 0.6452 GB, free: 4.031 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.417e-05/1.428, allocations: 14.36 kB / 0.6453 GB, free: 4.027 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02747/1.456, allocations: 10.33 MB / 0.6554 GB, free: 11.6 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.127e-05/1.456, allocations: 4 kB / 0.6554 GB, free: 11.59 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003114/1.459, allocations: 484.5 kB / 0.6558 GB, free: 11.23 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002555/1.462, allocations: 0.7124 MB / 0.6565 GB, free: 10.73 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004534/1.462, allocations: 47.33 kB / 0.6566 GB, free: 10.68 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009926/1.472, allocations: 5.304 MB / 0.6617 GB, free: 5.934 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.141e-05/1.472, allocations: 7.938 kB / 0.6617 GB, free: 5.926 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2599/1.732, allocations: 8.483 MB / 0.67 GB, free: 92.12 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002719/1.735, allocations: 0.813 MB / 0.6708 GB, free: 92.03 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00112/1.736, allocations: 44.3 kB / 0.6709 GB, free: 92.03 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002842/1.739, allocations: 146.7 kB / 0.671 GB, free: 92.03 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005697/1.74, allocations: 149.2 kB / 0.6711 GB, free: 92.03 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002983/1.74, allocations: 68.89 kB / 0.6712 GB, free: 92.03 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.007237/1.747, allocations: 2.965 MB / 0.6741 GB, free: 91.83 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.061e-06/1.747, allocations: 0 / 0.6741 GB, free: 91.83 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.007814/1.755, allocations: 1.149 MB / 0.6752 GB, free: 91.83 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * Number of states: 4 (revolute2.phi,revolute2.w,revolute1.phi,revolute1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (198): * Single equations (assignments): 194 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(4,75.0%) 18} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007113/1.756, allocations: 188.5 kB / 0.6754 GB, free: 91.74 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01218/1.768, allocations: 5.838 MB / 0.6811 GB, free: 91.61 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 8.925e-06/1.768, allocations: 3 kB / 0.6811 GB, free: 91.61 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004681/1.773, allocations: 2.204 MB / 0.6833 GB, free: 91.48 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003473/1.776, allocations: 475.6 kB / 0.6837 GB, free: 91.46 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02227/1.798, allocations: 9.765 MB / 0.6933 GB, free: 89.61 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007434/1.806, allocations: 3.769 MB / 0.6969 GB, free: 88.8 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001849/1.808, allocations: 344.5 kB / 0.6973 GB, free: 88.79 MB / 426.7 MB Notification: Performance of SimCode: time 1.954e-06/1.808, allocations: 0 / 0.6973 GB, free: 88.79 MB / 426.7 MB Notification: Performance of Templates: time 0.125/1.933, allocations: 84.15 MB / 0.7794 GB, free: 46.45 MB / 426.7 MB