Running command: translateModel(ModelicaTest.MultiBody.Forces.Torque,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.Torque") Notification: Performance of loadModel(ModelicaTest): time 2.343/2.343, allocations: 234.9 MB / 250.1 MB, free: 10.02 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 5.729e-05/5.72e-05, allocations: 4.047 kB / 308 MB, free: 15.99 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3718/0.3719, allocations: 54.86 MB / 362.8 MB, free: 12.05 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Torque): time 0.1133/0.4853, allocations: 71.4 MB / 434.2 MB, free: 6.285 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.04661/0.532, allocations: 15.11 MB / 449.4 MB, free: 7.129 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01704/0.5491, allocations: 379.1 kB / 449.7 MB, free: 6.758 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01358/0.5627, allocations: 3.787 MB / 453.5 MB, free: 2.953 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.03926/0.602, allocations: 10.15 MB / 463.7 MB, free: 8.777 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006137/0.6082, allocations: 0.8425 MB / 464.5 MB, free: 7.934 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.0521/0.6604, allocations: 17.23 MB / 481.7 MB, free: 6.684 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01435/0.6748, allocations: 6.682 MB / 488.4 MB, free: 15.93 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003608/0.6784, allocations: 1.297 MB / 489.7 MB, free: 14.63 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004904/0.6834, allocations: 2.03 MB / 491.7 MB, free: 12.6 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003703/0.6871, allocations: 0.987 MB / 492.7 MB, free: 11.61 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00189/0.6891, allocations: 192 kB / 492.9 MB, free: 11.42 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004624/0.6938, allocations: 2.521 MB / 495.4 MB, free: 8.895 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002464/0.6963, allocations: 436 kB / 495.9 MB, free: 8.469 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.389/1.085, allocations: 8.916 MB / 0.493 GB, free: 25.88 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.728e-06/1.085, allocations: 0 / 0.493 GB, free: 25.88 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.055e-06/1.085, allocations: 0.7188 kB / 0.493 GB, free: 25.88 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0004174/1.086, allocations: 0 / 0.493 GB, free: 25.88 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: 2388 * Number of variables: 2388 Notification: Performance of Generate backend data structure: time 0.02562/1.111, allocations: 6.661 MB / 0.4995 GB, free: 23.27 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.718e-05/1.112, allocations: 9.062 kB / 0.4995 GB, free: 23.27 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1198/1.231, allocations: 11.95 MB / 0.5111 GB, free: 22.66 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01553/1.247, allocations: 4.814 MB / 0.5158 GB, free: 21.87 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004756/1.247, allocations: 390.5 kB / 0.5162 GB, free: 21.86 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002899/1.25, allocations: 0.502 MB / 0.5167 GB, free: 21.85 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04277/1.293, allocations: 15.77 MB / 0.5321 GB, free: 16.82 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000346/1.294, allocations: 69.03 kB / 0.5322 GB, free: 16.81 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002268/1.296, allocations: 246.2 kB / 0.5324 GB, free: 16.81 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00662/1.303, allocations: 2.83 MB / 0.5352 GB, free: 16.25 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03959/1.342, allocations: 13.17 MB / 0.548 GB, free: 7.27 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1199/1.462, allocations: 61.19 MB / 0.6078 GB, free: 4.082 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03044/1.493, allocations: 6.746 MB / 0.6144 GB, free: 14.78 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02662/1.519, allocations: 9.334 MB / 0.6235 GB, free: 7.91 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.518e-05/1.519, allocations: 64.78 kB / 0.6235 GB, free: 7.855 MB / 490.7 MB Notification: Performance of pre-optimization done (n=269): time 8.045e-06/1.519, allocations: 4 kB / 0.6235 GB, free: 7.852 MB / 490.7 MB Notification: Performance of matching and sorting (n=311): time 0.2626/1.782, allocations: 32.09 MB / 0.6549 GB, free: 9.473 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002296/1.782, allocations: 242.7 kB / 0.6551 GB, free: 9.188 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02524/1.808, allocations: 6.459 MB / 0.6614 GB, free: 2.746 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.001357/1.809, allocations: 69.7 kB / 0.6615 GB, free: 2.672 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.00777/1.817, allocations: 4.563 MB / 0.6659 GB, free: 14.12 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.003419/1.82, allocations: 1.18 MB / 0.6671 GB, free: 12.95 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002127/1.823, allocations: 176 kB / 0.6673 GB, free: 12.78 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.001386/1.824, allocations: 0.6989 MB / 0.6679 GB, free: 12.07 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01591/1.84, allocations: 3.66 MB / 0.6715 GB, free: 8.398 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02304/1.863, allocations: 8.915 MB / 0.6802 GB, free: 12.96 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02157/1.885, allocations: 5.598 MB / 0.6857 GB, free: 7.535 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002507/1.885, allocations: 52.28 kB / 0.6857 GB, free: 7.484 MB / 0.5417 GB Notification: Performance of matching and sorting (n=1181) (initialization): time 0.3836/2.269, allocations: 13.66 MB / 0.6991 GB, free: 221.1 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001475/2.269, allocations: 88.47 kB / 0.6992 GB, free: 221.1 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003728/2.269, allocations: 183.9 kB / 0.6993 GB, free: 221.1 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00811/2.277, allocations: 1.826 MB / 0.7011 GB, free: 221.1 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0136/2.291, allocations: 2.106 MB / 0.7032 GB, free: 221.1 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02514/2.316, allocations: 12.32 MB / 0.7152 GB, free: 215.2 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01136/2.328, allocations: 0.5347 MB / 0.7157 GB, free: 215 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002072/2.33, allocations: 0.5388 MB / 0.7163 GB, free: 215 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 845 * Number of states: 0 () * Number of discrete variables: 60 (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],torque2.connectionLineColor[3],torque2.connectionLineColor[2],torque2.connectionLineColor[1],torque2.torqueColor[3],torque2.torqueColor[2],torque2.torqueColor[1],torque1.connectionLineColor[3],torque1.connectionLineColor[2],torque1.connectionLineColor[1],torque1.torqueColor[3],torque1.torqueColor[2],torque1.torqueColor[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 (1099): * Single equations (assignments): 1092 * Array equations: 5 * 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.009297/2.339, allocations: 3.175 MB / 0.7194 GB, free: 213.7 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001879/2.341, allocations: 0.5874 MB / 0.7199 GB, free: 213.7 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02245/2.363, allocations: 6.969 MB / 0.7267 GB, free: 211.2 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.421e-05/2.364, allocations: 29.59 kB / 0.7268 GB, free: 211.2 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.21e-05/2.364, allocations: 11.06 kB / 0.7268 GB, free: 211.2 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.409e-05/2.364, allocations: 11.53 kB / 0.7268 GB, free: 211.2 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04727/2.411, allocations: 15.52 MB / 0.742 GB, free: 197 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.1e-05/2.411, allocations: 4 kB / 0.742 GB, free: 197 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005438/2.417, allocations: 0.521 MB / 0.7425 GB, free: 196.5 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007176/2.424, allocations: 1.531 MB / 0.744 GB, free: 195 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001001/2.425, allocations: 57.08 kB / 0.744 GB, free: 195 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02344/2.448, allocations: 11.49 MB / 0.7552 GB, free: 183.4 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.183e-06/2.448, allocations: 4 kB / 0.7552 GB, free: 183.4 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02885/2.477, allocations: 12.16 MB / 0.7671 GB, free: 171.4 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004674/2.482, allocations: 1.183 MB / 0.7683 GB, free: 170.2 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002408/2.484, allocations: 56.55 kB / 0.7683 GB, free: 170.2 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006019/2.49, allocations: 204.4 kB / 0.7685 GB, free: 170 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001223/2.492, allocations: 193.4 kB / 0.7687 GB, free: 169.8 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003638/2.492, allocations: 81 kB / 0.7688 GB, free: 169.7 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.01022/2.502, allocations: 4.636 MB / 0.7733 GB, free: 165.1 MB / 0.5417 GB Notification: Performance of sort global known variables: time 2.324e-06/2.502, allocations: 0 / 0.7733 GB, free: 165.1 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01056/2.513, allocations: 1.69 MB / 0.7749 GB, free: 163.4 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * 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 (254): * Single equations (assignments): 249 * 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.00138/2.514, allocations: 217.1 kB / 0.7752 GB, free: 163.2 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.02088/2.535, allocations: 8.981 MB / 0.7839 GB, free: 154.6 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.075e-05/2.535, allocations: 0 / 0.7839 GB, free: 154.6 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.009253/2.545, allocations: 3.482 MB / 0.7873 GB, free: 151.1 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006543/2.551, allocations: 0.7085 MB / 0.788 GB, free: 150.5 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04305/2.594, allocations: 19.06 MB / 0.8066 GB, free: 131.4 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01033/2.605, allocations: 5.041 MB / 0.8116 GB, free: 126.3 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003504/2.608, allocations: 475.3 kB / 0.812 GB, free: 125.8 MB / 0.5417 GB Notification: Performance of SimCode: time 1.352e-06/2.608, allocations: 0 / 0.812 GB, free: 125.8 MB / 0.5417 GB Notification: Performance of Templates: time 0.6535/3.262, allocations: 148.4 MB / 0.9569 GB, free: 192.6 MB / 0.5417 GB