Running command: translateModel(ModelicaTest.MultiBody.Forces.Torque2,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|Revolute5.phi|Revolute5.w|Revolute6.phi|Revolute6.w|Revolute7.phi|Revolute7.w|Revolute8.phi|Revolute8.w",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Forces.Torque2") Notification: Performance of loadModel(ModelicaTest): time 2.231/2.231, allocations: 235 MB / 247.6 MB, free: 14.39 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.143e-05/3.158e-05, allocations: 0.9375 kB / 304.9 MB, free: 5.668 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3447/0.3448, allocations: 54.85 MB / 359.8 MB, free: 2.664 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.161/0.5058, allocations: 105.3 MB / 465.1 MB, free: 7.637 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002481/0.5061, allocations: 76.55 kB / 465.1 MB, free: 7.562 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.069/1.575, allocations: 240.2 MB / 0.6889 GB, free: 12.95 MB / 474.7 MB Notification: Performance of FrontEnd: time 4.774e-06/1.575, allocations: 3.938 kB / 0.6889 GB, free: 12.94 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0008127/1.576, allocations: 255.9 kB / 0.6891 GB, free: 12.69 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4454 * Number of variables: 4454 Notification: Performance of Generate backend data structure: time 0.04508/1.621, allocations: 12.36 MB / 0.7012 GB, free: 236 kB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.674e-05/1.621, allocations: 8.031 kB / 0.7012 GB, free: 228 kB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.375/1.996, allocations: 12.81 MB / 0.7137 GB, free: 42.2 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03843/2.035, allocations: 13.28 MB / 0.7267 GB, free: 41.6 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001084/2.036, allocations: 0.9608 MB / 0.7276 GB, free: 41.57 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005338/2.041, allocations: 1.276 MB / 0.7289 GB, free: 41.56 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07636/2.118, allocations: 29.78 MB / 0.7579 GB, free: 35.45 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007314/2.119, allocations: 150.5 kB / 0.7581 GB, free: 35.44 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00439/2.123, allocations: 0.5904 MB / 0.7587 GB, free: 35.44 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005378/2.128, allocations: 2.865 MB / 0.7615 GB, free: 35.41 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06488/2.193, allocations: 23.87 MB / 0.7848 GB, free: 33.13 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5804/2.774, allocations: 127.8 MB / 0.9095 GB, free: 31.95 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.04896/2.823, allocations: 13.87 MB / 0.9231 GB, free: 31.2 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01297/2.836, allocations: 7.963 MB / 0.9309 GB, free: 31.12 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04074/2.877, allocations: 19.83 MB / 0.9502 GB, free: 28.35 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.026e-05/2.877, allocations: 94.69 kB / 0.9503 GB, free: 28.31 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=562): time 1.129e-05/2.877, allocations: 2.375 kB / 0.9503 GB, free: 28.31 MB / 0.5261 GB Notification: Performance of matching and sorting (n=646): time 0.2065/3.083, allocations: 59.13 MB / 1.008 GB, free: 15.26 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001305/3.083, allocations: 384.1 kB / 1.008 GB, free: 14.88 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02441/3.108, allocations: 10.61 MB / 1.019 GB, free: 11.05 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.001393/3.109, allocations: 127.5 kB / 1.019 GB, free: 10.92 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.006184/3.115, allocations: 8.01 MB / 1.027 GB, free: 3.625 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.003224/3.119, allocations: 2.381 MB / 1.029 GB, free: 1.516 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002298/3.121, allocations: 312 kB / 1.029 GB, free: 1.211 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.001513/3.123, allocations: 0.9676 MB / 1.03 GB, free: 432 kB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.05517/3.178, allocations: 8.846 MB / 1.039 GB, free: 0 / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02525/3.203, allocations: 14.96 MB / 1.054 GB, free: 14.24 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02161/3.225, allocations: 9.884 MB / 1.063 GB, free: 6.309 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003164/3.225, allocations: 84 kB / 1.063 GB, free: 6.227 MB / 0.5573 GB Notification: Performance of matching and sorting (n=2017) (initialization): time 0.07558/3.301, allocations: 23.96 MB / 1.087 GB, free: 5.301 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002731/3.301, allocations: 134.9 kB / 1.087 GB, free: 5.172 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005092/3.302, allocations: 296 kB / 1.087 GB, free: 4.883 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01178/3.313, allocations: 3.306 MB / 1.09 GB, free: 1.914 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01933/3.333, allocations: 3.759 MB / 1.094 GB, free: 14.15 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04246/3.375, allocations: 22.58 MB / 1.116 GB, free: 7.055 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01787/3.393, allocations: 0.9363 MB / 1.117 GB, free: 6.117 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003841/3.397, allocations: 0.8866 MB / 1.118 GB, free: 5.23 MB / 0.6042 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1343 * Number of states: 0 () * Number of discrete variables: 117 (fixed8.color[3],fixed8.color[2],fixed8.color[1],fixed7.color[3],fixed7.color[2],fixed7.color[1],Revolute8.cylinderColor[3],Revolute8.cylinderColor[2],Revolute8.cylinderColor[1],Revolute7.cylinderColor[3],Revolute7.cylinderColor[2],Revolute7.cylinderColor[1],Revolute6.cylinderColor[3],Revolute6.cylinderColor[2],Revolute6.cylinderColor[1],torque4.connectionLineColor[3],torque4.connectionLineColor[2],torque4.connectionLineColor[1],torque4.torqueColor[3],torque4.torqueColor[2],torque4.torqueColor[1],torque4.forceColor[3],torque4.forceColor[2],torque4.forceColor[1],torque3.connectionLineColor[3],torque3.connectionLineColor[2],torque3.connectionLineColor[1],torque3.torqueColor[3],torque3.torqueColor[2],torque3.torqueColor[1],torque3.forceColor[3],torque3.forceColor[2],torque3.forceColor[1],fixedRotation1.color[3],fixedRotation1.color[2],fixedRotation1.color[1],fixed6.color[3],fixed6.color[2],fixed6.color[1],body4.color[3],body4.color[2],body4.color[1],body4.body.sphereColor[3],body4.body.sphereColor[2],body4.body.sphereColor[1],fixed5.color[3],fixed5.color[2],fixed5.color[1],body3.color[3],body3.color[2],body3.color[1],body3.body.sphereColor[3],body3.body.sphereColor[2],body3.body.sphereColor[1],Revolute5.cylinderColor[3],Revolute5.cylinderColor[2],Revolute5.cylinderColor[1],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 (1897): * Single equations (assignments): 1890 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(2,100.0%) 23,(2,100.0%) 23,(2,100.0%) 23,(2,100.0%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005508/3.403, allocations: 1.279 MB / 1.119 GB, free: 3.938 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003223/3.406, allocations: 1.068 MB / 1.12 GB, free: 2.855 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03945/3.445, allocations: 14.59 MB / 1.134 GB, free: 4.215 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001098/3.445, allocations: 71.67 kB / 1.134 GB, free: 4.148 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.121e-05/3.446, allocations: 16 kB / 1.134 GB, free: 4.133 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001416/3.446, allocations: 31.89 kB / 1.134 GB, free: 4.102 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4188/3.865, allocations: 32.36 MB / 1.166 GB, free: 168.5 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.496e-05/3.865, allocations: 10.38 kB / 1.166 GB, free: 168.5 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008592/3.873, allocations: 1.284 MB / 1.167 GB, free: 168.5 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01024/3.884, allocations: 2.831 MB / 1.17 GB, free: 168.5 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001576/3.885, allocations: 129.5 kB / 1.17 GB, free: 168.5 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03504/3.92, allocations: 21.08 MB / 1.191 GB, free: 163.1 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.359e-05/3.92, allocations: 21.03 kB / 1.191 GB, free: 163.1 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04841/3.969, allocations: 26.08 MB / 1.216 GB, free: 156.6 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0078/3.977, allocations: 2.182 MB / 1.218 GB, free: 156.1 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003796/3.98, allocations: 121.9 kB / 1.219 GB, free: 156 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009676/3.99, allocations: 448.3 kB / 1.219 GB, free: 155.9 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002045/3.992, allocations: 411.4 kB / 1.219 GB, free: 155.9 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001282/3.993, allocations: 166.4 kB / 1.22 GB, free: 155.8 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.01869/4.012, allocations: 7.646 MB / 1.227 GB, free: 153.3 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1.243e-06/4.012, allocations: 0 / 1.227 GB, free: 153.3 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.02049/4.033, allocations: 3.11 MB / 1.23 GB, free: 152.9 MB / 0.6198 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 49 * Number of states: 16 (Revolute1.phi,Revolute1.w,Revolute3.phi,Revolute3.w,Revolute2.phi,Revolute2.w,Revolute4.phi,Revolute4.w,Revolute5.phi,Revolute5.w,Revolute7.phi,Revolute7.w,Revolute6.phi,Revolute6.w,Revolute8.phi,Revolute8.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (553): * Single equations (assignments): 546 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(4,75.0%) 18,(4,75.0%) 18,(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.003104/4.036, allocations: 297.8 kB / 1.23 GB, free: 152.7 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.03243/4.068, allocations: 16.09 MB / 1.246 GB, free: 147.5 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 1.389e-05/4.068, allocations: 3.938 kB / 1.246 GB, free: 147.5 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.01562/4.084, allocations: 6.924 MB / 1.253 GB, free: 144.9 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01011/4.094, allocations: 1.349 MB / 1.254 GB, free: 144.3 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06344/4.158, allocations: 27.07 MB / 1.281 GB, free: 125.7 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0205/4.178, allocations: 8.879 MB / 1.289 GB, free: 119.3 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005119/4.183, allocations: 0.8416 MB / 1.29 GB, free: 118.5 MB / 0.6198 GB Notification: Performance of SimCode: time 1.885e-06/4.183, allocations: 0 / 1.29 GB, free: 118.5 MB / 0.6198 GB Notification: Performance of Templates: time 1.282/5.465, allocations: 370.4 MB / 1.652 GB, free: 159 MB / 0.6198 GB