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.1_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque") Notification: Performance of loadModel(Modelica): time 1.616/1.616, allocations: 171.2 MB / 183.8 MB, free: 12.07 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.7e-05/2.715e-05, allocations: 0 / 225 MB, free: 2.824 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2098/0.2099, allocations: 38.77 MB / 263.8 MB, free: 9.883 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.135/0.345, allocations: 88.92 MB / 352.7 MB, free: 0.8281 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002474/0.3453, allocations: 79.95 kB / 352.8 MB, free: 0.75 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5215/0.8668, allocations: 97.09 MB / 449.8 MB, free: 23.82 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.503e-06/0.8668, allocations: 0 / 449.8 MB, free: 23.82 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0002238/0.8671, allocations: 88 kB / 449.9 MB, free: 23.73 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1732 * Number of variables: 1732 Notification: Performance of Generate backend data structure: time 0.01364/0.8807, allocations: 4.67 MB / 454.6 MB, free: 19 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.995e-05/0.8808, allocations: 12.02 kB / 454.6 MB, free: 18.98 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0235/0.9043, allocations: 4.49 MB / 459.1 MB, free: 14.48 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0145/0.9188, allocations: 5.046 MB / 464.2 MB, free: 9.371 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000413/0.9193, allocations: 357.4 kB / 464.5 MB, free: 9.02 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001966/0.9213, allocations: 475.8 kB / 465 MB, free: 8.555 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02974/0.951, allocations: 11.89 MB / 476.9 MB, free: 11.61 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002533/0.9513, allocations: 63.41 kB / 476.9 MB, free: 11.55 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001749/0.9531, allocations: 227.9 kB / 477.1 MB, free: 11.33 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002347/0.9555, allocations: 1.203 MB / 478.3 MB, free: 10.12 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02664/0.9821, allocations: 9.627 MB / 488 MB, free: 492 kB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2812/1.263, allocations: 52.83 MB / 0.5281 GB, free: 29.98 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01876/1.282, allocations: 5.165 MB / 0.5332 GB, free: 29.3 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007505/1.29, allocations: 2.609 MB / 0.5357 GB, free: 29.27 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02708/1.317, allocations: 8.039 MB / 0.5436 GB, free: 27.52 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.811e-05/1.317, allocations: 57.98 kB / 0.5436 GB, free: 27.48 MB / 346.7 MB Notification: Performance of pre-optimization done (n=216): time 1.185e-05/1.317, allocations: 3.844 kB / 0.5436 GB, free: 27.48 MB / 346.7 MB Notification: Performance of matching and sorting (n=237): time 0.07469/1.392, allocations: 16.68 MB / 0.5599 GB, free: 24.08 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.379e-05/1.392, allocations: 182 kB / 0.5601 GB, free: 23.89 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008154/1.4, allocations: 4.154 MB / 0.5641 GB, free: 22.45 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004479/1.401, allocations: 60.8 kB / 0.5642 GB, free: 22.39 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002312/1.403, allocations: 3.298 MB / 0.5674 GB, free: 19.91 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001131/1.404, allocations: 0.8848 MB / 0.5683 GB, free: 19.26 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006561/1.405, allocations: 133.4 kB / 0.5684 GB, free: 19.16 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0004162/1.405, allocations: 0.5843 MB / 0.569 GB, free: 18.73 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005241/1.41, allocations: 2.452 MB / 0.5714 GB, free: 17.89 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006866/1.417, allocations: 6.283 MB / 0.5775 GB, free: 11.88 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007182/1.425, allocations: 3.913 MB / 0.5813 GB, free: 10.73 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001048/1.425, allocations: 39.44 kB / 0.5814 GB, free: 10.73 MB / 346.7 MB Notification: Performance of matching and sorting (n=864) (initialization): time 0.02046/1.445, allocations: 8.824 MB / 0.59 GB, free: 5.871 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001053/1.445, allocations: 68.88 kB / 0.5901 GB, free: 5.805 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001468/1.445, allocations: 140 kB / 0.5902 GB, free: 5.668 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002722/1.448, allocations: 0.9114 MB / 0.5911 GB, free: 4.973 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0073/1.456, allocations: 1.597 MB / 0.5926 GB, free: 3.609 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009095/1.465, allocations: 5.771 MB / 0.5983 GB, free: 14.41 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00688/1.472, allocations: 378.3 kB / 0.5986 GB, free: 14.09 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001417/1.473, allocations: 399.8 kB / 0.599 GB, free: 13.71 MB / 362.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.001441/1.475, allocations: 0.6037 MB / 0.5996 GB, free: 13.11 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001095/1.476, allocations: 422.1 kB / 0.6 GB, free: 12.69 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01029/1.486, allocations: 4.238 MB / 0.6041 GB, free: 9.207 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.015e-05/1.486, allocations: 28.94 kB / 0.6042 GB, free: 9.18 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.634e-05/1.486, allocations: 4 kB / 0.6042 GB, free: 9.176 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.182e-05/1.486, allocations: 10.36 kB / 0.6042 GB, free: 9.176 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02582/1.512, allocations: 10.34 MB / 0.6143 GB, free: 0.7383 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.837e-05/1.512, allocations: 8 kB / 0.6143 GB, free: 0.7305 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003152/1.515, allocations: 474.2 kB / 0.6147 GB, free: 384 kB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003727/1.519, allocations: 0.769 MB / 0.6155 GB, free: 0 / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007107/1.52, allocations: 63.12 kB / 0.6155 GB, free: 0 / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01007/1.53, allocations: 5.322 MB / 0.6207 GB, free: 11.25 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.26e-05/1.53, allocations: 7.938 kB / 0.6208 GB, free: 11.24 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01772/1.548, allocations: 8.234 MB / 0.6288 GB, free: 3.625 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002776/1.55, allocations: 0.8241 MB / 0.6296 GB, free: 2.852 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001117/1.552, allocations: 40 kB / 0.6296 GB, free: 2.812 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003076/1.555, allocations: 140.6 kB / 0.6298 GB, free: 2.723 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005076/1.555, allocations: 155.1 kB / 0.6299 GB, free: 2.621 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002706/1.555, allocations: 70.22 kB / 0.63 GB, free: 2.559 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.007957/1.563, allocations: 2.982 MB / 0.6329 GB, free: 0 / 378.7 MB Notification: Performance of sort global known variables: time 1.324e-06/1.563, allocations: 336 / 0.6329 GB, free: 0 / 378.7 MB Notification: Performance of remove unused functions: time 0.2652/1.829, allocations: 1.198 MB / 0.6341 GB, free: 89.8 MB / 378.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.0006888/1.829, allocations: 195.8 kB / 0.6343 GB, free: 89.71 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.01126/1.841, allocations: 5.84 MB / 0.64 GB, free: 89.57 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 9.23e-06/1.841, allocations: 0 / 0.64 GB, free: 89.57 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004313/1.845, allocations: 2.201 MB / 0.6421 GB, free: 89.44 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003179/1.848, allocations: 478.2 kB / 0.6426 GB, free: 89.42 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02051/1.869, allocations: 9.754 MB / 0.6521 GB, free: 87.58 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006021/1.875, allocations: 3.768 MB / 0.6558 GB, free: 86.77 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001914/1.877, allocations: 339.7 kB / 0.6561 GB, free: 86.76 MB / 378.7 MB Notification: Performance of SimCode: time 2.04e-06/1.877, allocations: 0.875 kB / 0.6561 GB, free: 86.76 MB / 378.7 MB Notification: Performance of Templates: time 0.1169/1.994, allocations: 84.11 MB / 0.7382 GB, free: 32.8 MB / 378.7 MB