Running command: translateModel(ModelicaTest.MultiBody.Forces.ForcesAndTorques,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Revolute1.phi|Revolute1.w|Revolute2.phi|Revolute2.w|Revolute3.phi|Revolute3.w|Revolute4.phi|Revolute4.w",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Forces.ForcesAndTorques") Notification: Performance of loadModel(ModelicaTest): time 2.137/2.137, allocations: 235 MB / 247.6 MB, free: 14.37 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.608e-05/2.621e-05, allocations: 0 / 304.9 MB, free: 5.656 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.323/0.323, allocations: 54.86 MB / 359.8 MB, free: 2.664 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1576/0.4807, allocations: 104 MB / 463.7 MB, free: 8.977 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002226/0.481, allocations: 79.95 kB / 463.8 MB, free: 8.898 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7755/1.257, allocations: 148.7 MB / 0.5982 GB, free: 89.95 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.389e-06/1.257, allocations: 0 / 0.5982 GB, free: 89.95 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0003703/1.257, allocations: 151.9 kB / 0.5983 GB, free: 89.95 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2760 * Number of variables: 2760 Notification: Performance of Generate backend data structure: time 0.02228/1.279, allocations: 7.383 MB / 0.6055 GB, free: 83.92 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.217e-05/1.279, allocations: 8.031 kB / 0.6055 GB, free: 83.91 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03656/1.316, allocations: 7.319 MB / 0.6127 GB, free: 76.57 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02121/1.337, allocations: 7.896 MB / 0.6204 GB, free: 68.59 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005519/1.338, allocations: 0.5816 MB / 0.621 GB, free: 68.01 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002986/1.341, allocations: 0.7614 MB / 0.6217 GB, free: 67.25 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04164/1.382, allocations: 18.76 MB / 0.64 GB, free: 46.98 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000327/1.383, allocations: 95.06 kB / 0.6401 GB, free: 46.89 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001985/1.385, allocations: 371.8 kB / 0.6405 GB, free: 46.52 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003495/1.388, allocations: 1.825 MB / 0.6423 GB, free: 44.69 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06355/1.452, allocations: 15.07 MB / 0.657 GB, free: 29.59 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4084/1.86, allocations: 81.71 MB / 0.7368 GB, free: 45.27 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02937/1.89, allocations: 8.623 MB / 0.7452 GB, free: 44.57 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007846/1.898, allocations: 4.62 MB / 0.7497 GB, free: 44.51 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02351/1.921, allocations: 11.7 MB / 0.7611 GB, free: 42.48 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.599e-05/1.921, allocations: 73.78 kB / 0.7612 GB, free: 42.44 MB / 474.7 MB Notification: Performance of pre-optimization done (n=347): time 8.948e-06/1.921, allocations: 2.219 kB / 0.7612 GB, free: 42.44 MB / 474.7 MB Notification: Performance of matching and sorting (n=389): time 0.1071/2.028, allocations: 31.49 MB / 0.792 GB, free: 33.55 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.645e-05/2.029, allocations: 248.5 kB / 0.7922 GB, free: 33.29 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01226/2.041, allocations: 6.494 MB / 0.7985 GB, free: 30.98 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007711/2.042, allocations: 84.52 kB / 0.7986 GB, free: 30.9 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003381/2.045, allocations: 5.014 MB / 0.8035 GB, free: 26.9 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001774/2.047, allocations: 1.446 MB / 0.8049 GB, free: 25.84 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009254/2.048, allocations: 194 kB / 0.8051 GB, free: 25.69 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0006055/2.048, allocations: 0.7333 MB / 0.8058 GB, free: 25.2 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008572/2.057, allocations: 4.02 MB / 0.8098 GB, free: 23.8 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0118/2.069, allocations: 9.523 MB / 0.8191 GB, free: 14.69 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01133/2.08, allocations: 6.161 MB / 0.8251 GB, free: 9.742 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001473/2.08, allocations: 56 kB / 0.8251 GB, free: 9.688 MB / 474.7 MB Notification: Performance of matching and sorting (n=1297) (initialization): time 0.0328/2.113, allocations: 14.15 MB / 0.8389 GB, free: 14.09 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001709/2.113, allocations: 88 kB / 0.839 GB, free: 14 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002995/2.114, allocations: 200.5 kB / 0.8392 GB, free: 13.81 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005588/2.119, allocations: 1.722 MB / 0.8409 GB, free: 12.51 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01145/2.131, allocations: 2.425 MB / 0.8433 GB, free: 10.46 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02078/2.152, allocations: 11.41 MB / 0.8544 GB, free: 208 kB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01028/2.162, allocations: 0.5704 MB / 0.855 GB, free: 15.73 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002169/2.164, allocations: 0.5795 MB / 0.8555 GB, free: 15.17 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 892 * Number of states: 0 () * Number of discrete variables: 66 (fixed4.color[3],fixed4.color[2],fixed4.color[1],fixed2.color[3],fixed2.color[2],fixed2.color[1],Revolute4.cylinderColor[3],Revolute4.cylinderColor[2],Revolute4.cylinderColor[1],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.cylinderColor[1],Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],forceAndTorque2.connectionLineColor[3],forceAndTorque2.connectionLineColor[2],forceAndTorque2.connectionLineColor[1],forceAndTorque2.torqueColor[3],forceAndTorque2.torqueColor[2],forceAndTorque2.torqueColor[1],forceAndTorque2.forceColor[3],forceAndTorque2.forceColor[2],forceAndTorque2.forceColor[1],forceAndTorque1.connectionLineColor[3],forceAndTorque1.connectionLineColor[2],forceAndTorque1.connectionLineColor[1],forceAndTorque1.torqueColor[3],forceAndTorque1.torqueColor[2],forceAndTorque1.torqueColor[1],forceAndTorque1.forceColor[3],forceAndTorque1.forceColor[2],forceAndTorque1.forceColor[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[1],fixed3.color[3],fixed3.color[2],fixed3.color[1],body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.body.sphereColor[1],Revolute1.cylinderColor[3],Revolute1.cylinderColor[2],Revolute1.cylinderColor[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 (1225): * Single equations (assignments): 1220 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 23,(2,100.0%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002175/2.166, allocations: 0.8582 MB / 0.8564 GB, free: 14.31 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001705/2.168, allocations: 0.644 MB / 0.857 GB, free: 13.66 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0195/2.188, allocations: 8.124 MB / 0.8649 GB, free: 7.035 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.047e-05/2.188, allocations: 42.03 kB / 0.865 GB, free: 6.996 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.029e-05/2.188, allocations: 11.95 kB / 0.865 GB, free: 6.984 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.912e-05/2.188, allocations: 22.33 kB / 0.865 GB, free: 6.98 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04898/2.237, allocations: 18.19 MB / 0.8828 GB, free: 5.191 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.727e-05/2.237, allocations: 4.844 kB / 0.8828 GB, free: 5.188 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00515/2.242, allocations: 0.7732 MB / 0.8835 GB, free: 4.414 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005207/2.247, allocations: 1.421 MB / 0.8849 GB, free: 2.988 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008307/2.248, allocations: 71.95 kB / 0.885 GB, free: 2.918 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02007/2.268, allocations: 10.6 MB / 0.8953 GB, free: 8.055 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.429e-05/2.268, allocations: 12.69 kB / 0.8954 GB, free: 8.043 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3237/2.592, allocations: 14.35 MB / 0.9094 GB, free: 145.3 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004715/2.597, allocations: 1.319 MB / 0.9107 GB, free: 145.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002418/2.599, allocations: 76.19 kB / 0.9107 GB, free: 145.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005476/2.605, allocations: 256.2 kB / 0.911 GB, free: 145.2 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00131/2.606, allocations: 239.2 kB / 0.9112 GB, free: 145.2 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005623/2.607, allocations: 103.4 kB / 0.9113 GB, free: 145.2 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.01285/2.62, allocations: 4.648 MB / 0.9158 GB, free: 144.9 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.965e-06/2.62, allocations: 1.5 kB / 0.9158 GB, free: 144.9 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01224/2.632, allocations: 1.876 MB / 0.9177 GB, free: 144.9 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 32 * Number of states: 8 (Revolute1.phi,Revolute1.w,Revolute3.phi,Revolute3.w,Revolute2.phi,Revolute2.w,Revolute4.phi,Revolute4.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (329): * Single equations (assignments): 324 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(4,75.0%) 18,(4,75.0%) 18} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001116/2.633, allocations: 228 kB / 0.9179 GB, free: 144.8 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.019/2.652, allocations: 9.634 MB / 0.9273 GB, free: 144.6 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.112e-05/2.652, allocations: 0 / 0.9273 GB, free: 144.6 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.008/2.66, allocations: 3.918 MB / 0.9311 GB, free: 144.3 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005251/2.665, allocations: 0.7754 MB / 0.9319 GB, free: 144.3 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03559/2.701, allocations: 16.01 MB / 0.9475 GB, free: 139.9 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0108/2.712, allocations: 5.642 MB / 0.953 GB, free: 138.1 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003172/2.715, allocations: 0.5116 MB / 0.9535 GB, free: 138.1 MB / 0.5261 GB Notification: Performance of SimCode: time 1.899e-06/2.715, allocations: 2.75 kB / 0.9535 GB, free: 138.1 MB / 0.5261 GB Notification: Performance of Templates: time 0.5601/3.275, allocations: 165.3 MB / 1.115 GB, free: 149.9 MB / 0.5261 GB