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.911/1.911, allocations: 194.9 MB / 208.4 MB, free: 3.254 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.94e-05/2.961e-05, allocations: 4 kB / 255.3 MB, free: 3.191 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08046/0.08051, allocations: 44.49 MB / 299.8 MB, free: 6.637 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3601/0.4406, allocations: 94.64 MB / 394.5 MB, free: 18.92 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002462/0.4409, allocations: 81.8 kB / 394.6 MB, free: 18.92 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3699/0.8109, allocations: 97.18 MB / 491.7 MB, free: 12.48 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.493e-06/0.8109, allocations: 4 kB / 491.7 MB, free: 12.47 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002679/0.8112, allocations: 88 kB / 491.8 MB, free: 12.39 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.01687/0.8281, allocations: 4.673 MB / 496.5 MB, free: 7.648 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.114e-05/0.8282, allocations: 12.02 kB / 496.5 MB, free: 7.637 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02567/0.8539, allocations: 4.498 MB / 0.4893 GB, free: 3.125 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01716/0.8711, allocations: 5.044 MB / 0.4942 GB, free: 14.02 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005464/0.8717, allocations: 357.5 kB / 0.4945 GB, free: 13.67 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002326/0.874, allocations: 475.8 kB / 0.495 GB, free: 13.2 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03342/0.9075, allocations: 11.96 MB / 0.5067 GB, free: 188 kB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002607/0.9078, allocations: 51.56 kB / 0.5067 GB, free: 136 kB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.2371/1.145, allocations: 231.4 kB / 0.5069 GB, free: 68.59 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002404/1.147, allocations: 1.197 MB / 0.5081 GB, free: 68.58 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02658/1.174, allocations: 9.823 MB / 0.5177 GB, free: 68.54 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06735/1.241, allocations: 52.86 MB / 0.5693 GB, free: 38.23 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01722/1.259, allocations: 5.183 MB / 0.5744 GB, free: 36.45 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004438/1.263, allocations: 2.619 MB / 0.5769 GB, free: 35.36 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01681/1.28, allocations: 8.034 MB / 0.5848 GB, free: 31.48 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.322e-05/1.28, allocations: 54.22 kB / 0.5848 GB, free: 31.43 MB / 394.7 MB Notification: Performance of pre-optimization done (n=216): time 7.083e-06/1.28, allocations: 3.625 kB / 0.5848 GB, free: 31.43 MB / 394.7 MB Notification: Performance of matching and sorting (n=237): time 0.0566/1.337, allocations: 16.68 MB / 0.6011 GB, free: 25.75 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.824e-05/1.337, allocations: 184.4 kB / 0.6013 GB, free: 25.55 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009165/1.346, allocations: 4.155 MB / 0.6054 GB, free: 24.1 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005219/1.346, allocations: 62.73 kB / 0.6054 GB, free: 24.04 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002564/1.349, allocations: 3.287 MB / 0.6086 GB, free: 21.41 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001248/1.35, allocations: 0.8912 MB / 0.6095 GB, free: 20.76 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007133/1.351, allocations: 132.1 kB / 0.6096 GB, free: 20.66 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0005193/1.352, allocations: 0.5862 MB / 0.6102 GB, free: 20.23 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00528/1.357, allocations: 2.449 MB / 0.6126 GB, free: 18.46 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007318/1.364, allocations: 6.323 MB / 0.6188 GB, free: 10.71 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007391/1.372, allocations: 3.93 MB / 0.6226 GB, free: 7.527 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001096/1.372, allocations: 40 kB / 0.6227 GB, free: 7.488 MB / 394.7 MB Notification: Performance of matching and sorting (n=864) (initialization): time 0.02174/1.394, allocations: 9.216 MB / 0.6317 GB, free: 15.55 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001488/1.394, allocations: 64.19 kB / 0.6317 GB, free: 15.49 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002095/1.394, allocations: 140 kB / 0.6319 GB, free: 15.36 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003139/1.397, allocations: 0.9202 MB / 0.6328 GB, free: 14.65 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007668/1.405, allocations: 1.61 MB / 0.6343 GB, free: 13.28 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01067/1.416, allocations: 5.764 MB / 0.64 GB, free: 8.098 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006862/1.423, allocations: 383.9 kB / 0.6403 GB, free: 7.773 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001474/1.424, allocations: 401 kB / 0.6407 GB, free: 7.395 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.001954/1.426, allocations: 0.5945 MB / 0.6413 GB, free: 6.793 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001124/1.427, allocations: 426.5 kB / 0.6417 GB, free: 6.375 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01143/1.439, allocations: 4.242 MB / 0.6458 GB, free: 2.883 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.679e-05/1.439, allocations: 24 kB / 0.6459 GB, free: 2.859 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.883e-05/1.439, allocations: 4 kB / 0.6459 GB, free: 2.855 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.377e-05/1.439, allocations: 14.64 kB / 0.6459 GB, free: 2.852 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02991/1.469, allocations: 10.45 MB / 0.6561 GB, free: 10.64 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.152e-05/1.469, allocations: 4 kB / 0.6561 GB, free: 10.63 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003204/1.472, allocations: 468.7 kB / 0.6565 GB, free: 10.28 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00269/1.475, allocations: 0.7225 MB / 0.6572 GB, free: 9.77 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004981/1.475, allocations: 47.94 kB / 0.6573 GB, free: 9.727 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01023/1.486, allocations: 5.305 MB / 0.6625 GB, free: 4.988 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.274e-06/1.486, allocations: 7.938 kB / 0.6625 GB, free: 4.98 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2579/1.743, allocations: 8.314 MB / 0.6706 GB, free: 91.38 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002703/1.746, allocations: 0.8155 MB / 0.6714 GB, free: 91.29 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001266/1.748, allocations: 44.91 kB / 0.6714 GB, free: 91.29 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003177/1.751, allocations: 151 kB / 0.6716 GB, free: 91.29 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007076/1.751, allocations: 142.6 kB / 0.6717 GB, free: 91.29 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002957/1.752, allocations: 67.7 kB / 0.6718 GB, free: 91.29 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.007773/1.76, allocations: 2.97 MB / 0.6747 GB, free: 91.08 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.122e-06/1.76, allocations: 0 / 0.6747 GB, free: 91.08 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.007953/1.768, allocations: 1.149 MB / 0.6758 GB, free: 91.08 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.0007846/1.768, allocations: 195 kB / 0.676 GB, free: 90.99 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01228/1.781, allocations: 6.045 MB / 0.6819 GB, free: 90.85 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 9.967e-06/1.781, allocations: 3.875 kB / 0.6819 GB, free: 90.85 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004854/1.786, allocations: 2.23 MB / 0.6841 GB, free: 90.71 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003577/1.789, allocations: 478.9 kB / 0.6845 GB, free: 90.69 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02216/1.811, allocations: 9.779 MB / 0.6941 GB, free: 88.84 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007539/1.819, allocations: 3.769 MB / 0.6978 GB, free: 88.03 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001725/1.821, allocations: 341.5 kB / 0.6981 GB, free: 88.02 MB / 426.7 MB Notification: Performance of SimCode: time 2.146e-06/1.821, allocations: 0 / 0.6981 GB, free: 88.02 MB / 426.7 MB Notification: Performance of Templates: time 0.1253/1.946, allocations: 85.27 MB / 0.7814 GB, free: 43.6 MB / 426.7 MB