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.1_cpp_ModelicaTest.MultiBody.Forces.Torque2") Notification: Performance of loadModel(ModelicaTest): time 1.83/1.83, allocations: 209.3 MB / 221.9 MB, free: 7.734 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.168e-05/3.186e-05, allocations: 4 kB / 273.1 MB, free: 3.664 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08839/0.08844, allocations: 48.7 MB / 321.8 MB, free: 2.871 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3712/0.4597, allocations: 98.5 MB / 420.3 MB, free: 13.33 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000234/0.4599, allocations: 78.81 kB / 420.3 MB, free: 13.29 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.235/1.695, allocations: 239.9 MB / 0.6447 GB, free: 35.78 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.121e-06/1.695, allocations: 0 / 0.6447 GB, free: 35.78 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0007212/1.696, allocations: 252 kB / 0.645 GB, free: 35.53 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: 4446 * Number of variables: 4446 Notification: Performance of Generate backend data structure: time 0.03855/1.734, allocations: 12.34 MB / 0.657 GB, free: 23.09 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.047e-05/1.734, allocations: 8.031 kB / 0.657 GB, free: 23.08 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06594/1.8, allocations: 12.82 MB / 0.6695 GB, free: 10.23 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03674/1.837, allocations: 13.28 MB / 0.6825 GB, free: 12.84 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001424/1.839, allocations: 0.9586 MB / 0.6834 GB, free: 11.88 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005831/1.844, allocations: 1.273 MB / 0.6847 GB, free: 10.61 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3651/2.21, allocations: 29.74 MB / 0.7137 GB, free: 47.8 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0009108/2.21, allocations: 145.5 kB / 0.7139 GB, free: 47.8 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005047/2.216, allocations: 0.5908 MB / 0.7145 GB, free: 47.8 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005342/2.221, allocations: 2.859 MB / 0.7172 GB, free: 47.77 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06414/2.285, allocations: 23.85 MB / 0.7405 GB, free: 47.7 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1869/2.472, allocations: 127.7 MB / 0.8652 GB, free: 8.473 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.3559/2.828, allocations: 14.58 MB / 0.8795 GB, free: 100.7 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.02316/2.851, allocations: 7.967 MB / 0.8872 GB, free: 100.6 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06822/2.92, allocations: 19.84 MB / 0.9066 GB, free: 97.84 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001141/2.92, allocations: 96.47 kB / 0.9067 GB, free: 97.8 MB / 490.7 MB Notification: Performance of pre-optimization done (n=562): time 1.874e-05/2.92, allocations: 1.438 kB / 0.9067 GB, free: 97.8 MB / 490.7 MB Notification: Performance of matching and sorting (n=646): time 0.2338/3.154, allocations: 59.11 MB / 0.9644 GB, free: 82.5 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001328/3.154, allocations: 388.2 kB / 0.9648 GB, free: 82.11 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02444/3.178, allocations: 10.62 MB / 0.9752 GB, free: 78.37 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001389/3.18, allocations: 127.8 kB / 0.9753 GB, free: 78.26 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.006567/3.186, allocations: 7.998 MB / 0.9831 GB, free: 71.86 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003376/3.19, allocations: 2.38 MB / 0.9854 GB, free: 70.09 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002634/3.192, allocations: 317.9 kB / 0.9857 GB, free: 69.84 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.001744/3.194, allocations: 0.9672 MB / 0.9867 GB, free: 69.07 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0141/3.208, allocations: 6.621 MB / 0.9931 GB, free: 63.12 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01861/3.227, allocations: 14.96 MB / 1.008 GB, free: 45.37 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01875/3.246, allocations: 9.881 MB / 1.017 GB, free: 37.57 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002971/3.246, allocations: 87.56 kB / 1.017 GB, free: 37.48 MB / 490.7 MB Notification: Performance of matching and sorting (n=2017) (initialization): time 0.05443/3.3, allocations: 23.23 MB / 1.04 GB, free: 18.31 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002094/3.301, allocations: 136 kB / 1.04 GB, free: 18.18 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003361/3.301, allocations: 292 kB / 1.041 GB, free: 17.89 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01048/3.312, allocations: 3.298 MB / 1.044 GB, free: 15.45 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01713/3.329, allocations: 3.755 MB / 1.047 GB, free: 12.28 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3523/3.681, allocations: 22.62 MB / 1.07 GB, free: 74.99 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01727/3.698, allocations: 0.9313 MB / 1.07 GB, free: 74.99 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003726/3.702, allocations: 0.8894 MB / 1.071 GB, free: 74.99 MB / 490.7 MB 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.005735/3.708, allocations: 1.274 MB / 1.073 GB, free: 74.87 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003352/3.711, allocations: 1.074 MB / 1.074 GB, free: 74.87 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03584/3.747, allocations: 14.6 MB / 1.088 GB, free: 74.52 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001125/3.747, allocations: 65.58 kB / 1.088 GB, free: 74.52 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.866e-05/3.747, allocations: 18.56 kB / 1.088 GB, free: 74.52 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000145/3.748, allocations: 32.86 kB / 1.088 GB, free: 74.52 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07997/3.828, allocations: 32.36 MB / 1.12 GB, free: 68.23 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.777e-05/3.828, allocations: 10.69 kB / 1.12 GB, free: 68.23 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008934/3.837, allocations: 1.282 MB / 1.121 GB, free: 68.2 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009609/3.846, allocations: 2.831 MB / 1.124 GB, free: 67.64 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001535/3.848, allocations: 125.4 kB / 1.124 GB, free: 67.57 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03436/3.882, allocations: 21.09 MB / 1.144 GB, free: 56.5 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.524e-05/3.882, allocations: 15.34 kB / 1.144 GB, free: 56.5 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04563/3.928, allocations: 26.08 MB / 1.17 GB, free: 43.99 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.007216/3.935, allocations: 2.183 MB / 1.172 GB, free: 42.21 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003709/3.939, allocations: 119 kB / 1.172 GB, free: 42.1 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008706/3.948, allocations: 447.4 kB / 1.172 GB, free: 41.82 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002021/3.95, allocations: 410.8 kB / 1.173 GB, free: 41.58 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007875/3.951, allocations: 169 kB / 1.173 GB, free: 41.42 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.01785/3.968, allocations: 7.652 MB / 1.181 GB, free: 34.7 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.135e-06/3.969, allocations: 0 / 1.181 GB, free: 34.7 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01866/3.987, allocations: 3.107 MB / 1.184 GB, free: 31.6 MB / 490.7 MB 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.001751/3.989, allocations: 301.8 kB / 1.184 GB, free: 31.38 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.03017/4.019, allocations: 16.09 MB / 1.2 GB, free: 17.51 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.18e-05/4.019, allocations: 0 / 1.2 GB, free: 17.51 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01395/4.033, allocations: 6.924 MB / 1.206 GB, free: 11.39 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009051/4.042, allocations: 1.347 MB / 1.208 GB, free: 10.27 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3767/4.419, allocations: 27.18 MB / 1.234 GB, free: 93.51 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02317/4.442, allocations: 8.875 MB / 1.243 GB, free: 92.48 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00608/4.448, allocations: 0.8425 MB / 1.244 GB, free: 92.48 MB / 0.4948 GB Notification: Performance of SimCode: time 2.583e-06/4.448, allocations: 0.875 kB / 1.244 GB, free: 92.48 MB / 0.4948 GB Notification: Performance of Templates: time 1.222/5.671, allocations: 370 MB / 1.605 GB, free: 125.2 MB / 0.5261 GB