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.1_cpp_ModelicaTest.MultiBody.Forces.Torque") Notification: Performance of loadModel(ModelicaTest): time 1.862/1.862, allocations: 209.3 MB / 221.9 MB, free: 7.738 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.883e-05/3.895e-05, allocations: 10.8 kB / 273.1 MB, free: 3.668 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09346/0.09352, allocations: 48.7 MB / 321.8 MB, free: 2.867 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3644/0.458, allocations: 94.59 MB / 416.3 MB, free: 1.219 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002148/0.4583, allocations: 72.97 kB / 416.4 MB, free: 1.184 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7369/1.195, allocations: 131.8 MB / 0.5354 GB, free: 71.24 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.48e-06/1.195, allocations: 0 / 0.5354 GB, free: 71.24 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0004143/1.196, allocations: 128 kB / 0.5355 GB, free: 71.24 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: 2384 * Number of variables: 2384 Notification: Performance of Generate backend data structure: time 0.02202/1.218, allocations: 6.656 MB / 0.542 GB, free: 68.68 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.384e-05/1.218, allocations: 9.219 kB / 0.542 GB, free: 68.68 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03751/1.255, allocations: 7.147 MB / 0.549 GB, free: 68.22 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02127/1.277, allocations: 7.431 MB / 0.5562 GB, free: 67.36 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005379/1.277, allocations: 0.5044 MB / 0.5567 GB, free: 67.34 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002668/1.28, allocations: 0.6568 MB / 0.5574 GB, free: 67.34 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03818/1.318, allocations: 15.98 MB / 0.573 GB, free: 63.37 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003452/1.318, allocations: 97.78 kB / 0.5731 GB, free: 63.36 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00215/1.321, allocations: 320.8 kB / 0.5734 GB, free: 63.36 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002683/1.323, allocations: 1.555 MB / 0.5749 GB, free: 63.34 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03196/1.355, allocations: 12.66 MB / 0.5872 GB, free: 63.29 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1032/1.459, allocations: 72.93 MB / 0.6585 GB, free: 22.57 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01886/1.477, allocations: 6.442 MB / 0.6648 GB, free: 17.16 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006047/1.484, allocations: 3.671 MB / 0.6684 GB, free: 13.79 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03848/1.522, allocations: 9.283 MB / 0.6774 GB, free: 5.992 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001178/1.522, allocations: 72.22 kB / 0.6775 GB, free: 5.918 MB / 442.7 MB Notification: Performance of pre-optimization done (n=269): time 1.368e-05/1.522, allocations: 0 / 0.6775 GB, free: 5.918 MB / 442.7 MB Notification: Performance of matching and sorting (n=311): time 0.369/1.891, allocations: 26.17 MB / 0.703 GB, free: 78.89 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.65e-05/1.891, allocations: 245.5 kB / 0.7033 GB, free: 78.64 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01218/1.904, allocations: 6.097 MB / 0.7092 GB, free: 78.13 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006473/1.904, allocations: 76.2 kB / 0.7093 GB, free: 78.1 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003166/1.907, allocations: 4.593 MB / 0.7138 GB, free: 75.94 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001411/1.909, allocations: 1.176 MB / 0.7149 GB, free: 75.27 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007305/1.91, allocations: 177.8 kB / 0.7151 GB, free: 75.27 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0005198/1.91, allocations: 0.6939 MB / 0.7158 GB, free: 74.93 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006565/1.917, allocations: 3.491 MB / 0.7192 GB, free: 74.91 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00924/1.926, allocations: 8.716 MB / 0.7277 GB, free: 68.14 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009931/1.936, allocations: 5.474 MB / 0.7331 GB, free: 68.1 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001125/1.936, allocations: 55.22 kB / 0.7331 GB, free: 68.1 MB / 442.7 MB Notification: Performance of matching and sorting (n=1176) (initialization): time 0.02885/1.965, allocations: 12.76 MB / 0.7456 GB, free: 66.63 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001331/1.965, allocations: 84.81 kB / 0.7456 GB, free: 66.63 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001855/1.965, allocations: 188.4 kB / 0.7458 GB, free: 66.63 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005126/1.971, allocations: 1.7 MB / 0.7475 GB, free: 66.34 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009386/1.98, allocations: 2.14 MB / 0.7496 GB, free: 66.09 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01767/1.998, allocations: 11.33 MB / 0.7606 GB, free: 60.07 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009641/2.007, allocations: 0.5387 MB / 0.7612 GB, free: 59.9 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001425/2.009, allocations: 0.5377 MB / 0.7617 GB, free: 59.83 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 850 * 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 (1104): * Single equations (assignments): 1099 * 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.001591/2.01, allocations: 0.7957 MB / 0.7625 GB, free: 59.18 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001262/2.012, allocations: 0.5846 MB / 0.763 GB, free: 58.86 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01456/2.026, allocations: 6.697 MB / 0.7696 GB, free: 56.5 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.921e-05/2.026, allocations: 33.66 kB / 0.7696 GB, free: 56.5 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.248e-05/2.026, allocations: 14.7 kB / 0.7696 GB, free: 56.5 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.744e-05/2.026, allocations: 14.95 kB / 0.7696 GB, free: 56.5 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03329/2.06, allocations: 15.11 MB / 0.7844 GB, free: 49.52 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.414e-05/2.06, allocations: 4 kB / 0.7844 GB, free: 49.52 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003991/2.064, allocations: 0.5645 MB / 0.7849 GB, free: 49.08 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004996/2.069, allocations: 1.419 MB / 0.7863 GB, free: 48.09 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004/2.069, allocations: 58.81 kB / 0.7864 GB, free: 48.04 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01684/2.086, allocations: 10.5 MB / 0.7966 GB, free: 38.64 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.469e-06/2.086, allocations: 4 kB / 0.7967 GB, free: 38.64 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02076/2.107, allocations: 11.74 MB / 0.8081 GB, free: 28.14 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003708/2.111, allocations: 1.147 MB / 0.8092 GB, free: 27.07 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00126/2.112, allocations: 63.03 kB / 0.8093 GB, free: 27.02 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003342/2.115, allocations: 206.9 kB / 0.8095 GB, free: 26.89 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005769/2.116, allocations: 191.9 kB / 0.8097 GB, free: 26.77 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003378/2.116, allocations: 79.75 kB / 0.8098 GB, free: 26.69 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.007946/2.124, allocations: 4.349 MB / 0.814 GB, free: 22.87 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.254e-06/2.124, allocations: 0 / 0.814 GB, free: 22.87 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.009876/2.134, allocations: 1.653 MB / 0.8156 GB, free: 21.22 MB / 442.7 MB 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.0007129/2.135, allocations: 212.2 kB / 0.8158 GB, free: 21.02 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01542/2.15, allocations: 8.391 MB / 0.824 GB, free: 13.43 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 8.784e-06/2.15, allocations: 0 / 0.824 GB, free: 13.43 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006265/2.157, allocations: 3.297 MB / 0.8272 GB, free: 10.47 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004297/2.161, allocations: 0.7207 MB / 0.8279 GB, free: 9.859 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0306/2.192, allocations: 13.92 MB / 0.8415 GB, free: 13.46 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01145/2.203, allocations: 5.023 MB / 0.8464 GB, free: 9.77 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002776/2.206, allocations: 476.2 kB / 0.8469 GB, free: 9.328 MB / 458.7 MB Notification: Performance of SimCode: time 2.352e-06/2.206, allocations: 7.938 kB / 0.8469 GB, free: 9.32 MB / 458.7 MB Notification: Performance of Templates: time 0.4699/2.676, allocations: 146.1 MB / 0.9896 GB, free: 9.223 MB / 458.7 MB