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.312/2.312, allocations: 234.9 MB / 250.1 MB, free: 9.938 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.021e-05/3.023e-05, allocations: 4 kB / 308 MB, free: 15.92 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.369/0.3691, allocations: 54.85 MB / 362.9 MB, free: 12.09 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Torque2): time 0.665/1.034, allocations: 150.6 MB / 0.5014 GB, free: 180 kB / 426.7 MB Notification: Performance of NFInst.instExpressions: time 0.08728/1.121, allocations: 30.17 MB / 0.5308 GB, free: 14.77 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.04491/1.166, allocations: 0.7812 MB / 0.5316 GB, free: 14.77 MB / 442.7 MB Notification: Performance of NFTyping.typeComponents: time 0.03478/1.201, allocations: 8.1 MB / 0.5395 GB, free: 10.93 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 0.08729/1.289, allocations: 21.13 MB / 0.5601 GB, free: 3.812 MB / 442.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01256/1.301, allocations: 1.596 MB / 0.5617 GB, free: 3.355 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 0.1004/1.402, allocations: 34.11 MB / 0.595 GB, free: 9.477 MB / 474.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03006/1.432, allocations: 14.23 MB / 0.6089 GB, free: 14.91 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006794/1.439, allocations: 2.435 MB / 0.6113 GB, free: 13 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009431/1.448, allocations: 3.835 MB / 0.615 GB, free: 9.809 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006209/1.454, allocations: 1.103 MB / 0.6161 GB, free: 8.859 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002945/1.457, allocations: 320 kB / 0.6164 GB, free: 8.547 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 0.008723/1.466, allocations: 4.838 MB / 0.6211 GB, free: 4.48 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004661/1.471, allocations: 0.8242 MB / 0.6219 GB, free: 3.656 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02728/1.498, allocations: 17 MB / 0.6386 GB, free: 4.883 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/1.498, allocations: 0 / 0.6386 GB, free: 4.883 MB / 0.4948 GB Notification: Performance of FrontEnd: time 3.617e-06/1.498, allocations: 0 / 0.6386 GB, free: 4.883 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.00082/1.499, allocations: 0 / 0.6386 GB, free: 4.883 MB / 0.4948 GB 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.05124/1.55, allocations: 12.44 MB / 0.6507 GB, free: 9.465 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.904e-05/1.55, allocations: 12.03 kB / 0.6507 GB, free: 9.453 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2582/1.809, allocations: 22.31 MB / 0.6725 GB, free: 4.449 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03091/1.84, allocations: 9.222 MB / 0.6815 GB, free: 13.47 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001052/1.841, allocations: 0.7453 MB / 0.6822 GB, free: 13.05 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00548/1.846, allocations: 0.9945 MB / 0.6832 GB, free: 12.4 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.7244/2.571, allocations: 29.91 MB / 0.7124 GB, free: 219 MB / 0.5418 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008639/2.572, allocations: 114.2 kB / 0.7125 GB, free: 219 MB / 0.5418 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004732/2.576, allocations: 472.7 kB / 0.713 GB, free: 218.7 MB / 0.5418 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.01187/2.588, allocations: 5.059 MB / 0.7179 GB, free: 216.9 MB / 0.5418 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.08141/2.67, allocations: 24.91 MB / 0.7422 GB, free: 196.8 MB / 0.5418 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2109/2.881, allocations: 112 MB / 0.8516 GB, free: 83.77 MB / 0.5418 GB Notification: Performance of preOpt comSubExp (simulation): time 0.06374/2.945, allocations: 14.12 MB / 0.8654 GB, free: 69.48 MB / 0.5418 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05094/2.996, allocations: 19.93 MB / 0.8848 GB, free: 49.39 MB / 0.5418 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.103e-05/2.996, allocations: 95.12 kB / 0.8849 GB, free: 49.29 MB / 0.5418 GB Notification: Performance of pre-optimization done (n=562): time 1.041e-05/2.996, allocations: 4 kB / 0.8849 GB, free: 49.28 MB / 0.5418 GB Notification: Performance of matching and sorting (n=646): time 0.6588/3.655, allocations: 71.68 MB / 0.9549 GB, free: 195 MB / 0.5418 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00021/3.655, allocations: 391.4 kB / 0.9553 GB, free: 194.6 MB / 0.5418 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.03763/3.693, allocations: 11.32 MB / 0.9664 GB, free: 190.9 MB / 0.5418 GB Notification: Performance of collectPreVariables (initialization): time 0.002344/3.695, allocations: 123.6 kB / 0.9665 GB, free: 190.8 MB / 0.5418 GB Notification: Performance of collectInitialEqns (initialization): time 0.009656/3.705, allocations: 7.96 MB / 0.9743 GB, free: 184.4 MB / 0.5418 GB Notification: Performance of collectInitialBindings (initialization): time 0.005311/3.71, allocations: 2.376 MB / 0.9766 GB, free: 182.6 MB / 0.5418 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003642/3.714, allocations: 312.2 kB / 0.9769 GB, free: 182.4 MB / 0.5418 GB Notification: Performance of setup shared object (initialization): time 0.001855/3.716, allocations: 0.9737 MB / 0.9778 GB, free: 181.8 MB / 0.5418 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02335/3.739, allocations: 6.961 MB / 0.9846 GB, free: 179.4 MB / 0.5418 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02508/3.764, allocations: 15.34 MB / 0.9996 GB, free: 165.9 MB / 0.5418 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02487/3.789, allocations: 10.11 MB / 1.009 GB, free: 159.3 MB / 0.5418 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003173/3.789, allocations: 84 kB / 1.01 GB, free: 159.2 MB / 0.5418 GB Notification: Performance of matching and sorting (n=2027) (initialization): time 0.07093/3.86, allocations: 24.81 MB / 1.034 GB, free: 135 MB / 0.5418 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002224/3.861, allocations: 132.2 kB / 1.034 GB, free: 134.9 MB / 0.5418 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004258/3.861, allocations: 292 kB / 1.034 GB, free: 134.6 MB / 0.5418 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01486/3.876, allocations: 3.539 MB / 1.038 GB, free: 131.1 MB / 0.5418 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02453/3.901, allocations: 3.692 MB / 1.041 GB, free: 127.4 MB / 0.5418 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04716/3.948, allocations: 24.58 MB / 1.065 GB, free: 102.3 MB / 0.5418 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0197/3.968, allocations: 0.9333 MB / 1.066 GB, free: 101.3 MB / 0.5418 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003976/3.972, allocations: 0.8919 MB / 1.067 GB, free: 100.4 MB / 0.5418 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1333 * 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 (1887): * Single equations (assignments): 1876 * Array equations: 7 * 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.01604/3.988, allocations: 5.644 MB / 1.073 GB, free: 94.77 MB / 0.5418 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003889/3.992, allocations: 1.076 MB / 1.074 GB, free: 93.68 MB / 0.5418 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04732/4.039, allocations: 15.17 MB / 1.088 GB, free: 78.46 MB / 0.5418 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001049/4.039, allocations: 72 kB / 1.088 GB, free: 78.39 MB / 0.5418 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.806e-05/4.039, allocations: 19.94 kB / 1.089 GB, free: 78.37 MB / 0.5418 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001709/4.039, allocations: 31.88 kB / 1.089 GB, free: 78.34 MB / 0.5418 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0966/4.136, allocations: 33.24 MB / 1.121 GB, free: 45.07 MB / 0.5418 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001051/4.136, allocations: 12 kB / 1.121 GB, free: 45.06 MB / 0.5418 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01174/4.148, allocations: 1.175 MB / 1.122 GB, free: 43.89 MB / 0.5418 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01397/4.162, allocations: 3.057 MB / 1.125 GB, free: 40.82 MB / 0.5418 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002053/4.164, allocations: 120 kB / 1.125 GB, free: 40.7 MB / 0.5418 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4153/4.579, allocations: 23.06 MB / 1.148 GB, free: 176.2 MB / 0.5418 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.474e-05/4.579, allocations: 16.91 kB / 1.148 GB, free: 176.2 MB / 0.5418 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06507/4.645, allocations: 26.94 MB / 1.174 GB, free: 163.3 MB / 0.5418 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00909/4.654, allocations: 2.246 MB / 1.176 GB, free: 162.7 MB / 0.5418 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005502/4.659, allocations: 120.4 kB / 1.176 GB, free: 162.7 MB / 0.5418 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01201/4.671, allocations: 445.3 kB / 1.177 GB, free: 162.6 MB / 0.5418 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002654/4.674, allocations: 413.3 kB / 1.177 GB, free: 162.5 MB / 0.5418 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001908/4.676, allocations: 170 kB / 1.177 GB, free: 162.5 MB / 0.5418 GB Notification: Performance of sorting global known variables: time 0.02106/4.697, allocations: 8.215 MB / 1.185 GB, free: 159.8 MB / 0.5418 GB Notification: Performance of sort global known variables: time 1.252e-06/4.697, allocations: 0 / 1.185 GB, free: 159.8 MB / 0.5418 GB Notification: Performance of remove unused functions: time 0.02103/4.718, allocations: 3.162 MB / 1.189 GB, free: 158.1 MB / 0.5418 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.002745/4.721, allocations: 314.2 kB / 1.189 GB, free: 157.8 MB / 0.5418 GB Notification: Performance of simCode: created initialization part: time 0.04139/4.762, allocations: 17.17 MB / 1.206 GB, free: 142.9 MB / 0.5418 GB Notification: Performance of simCode: created event and clocks part: time 1.811e-05/4.762, allocations: 4 kB / 1.206 GB, free: 142.9 MB / 0.5418 GB Notification: Performance of simCode: created simulation system equations: time 0.02149/4.784, allocations: 7.325 MB / 1.213 GB, free: 136.5 MB / 0.5418 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01253/4.797, allocations: 1.342 MB / 1.214 GB, free: 135.4 MB / 0.5418 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08953/4.886, allocations: 36.68 MB / 1.25 GB, free: 99.19 MB / 0.5418 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02175/4.908, allocations: 8.878 MB / 1.259 GB, free: 90.27 MB / 0.5418 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007682/4.916, allocations: 0.8547 MB / 1.259 GB, free: 89.42 MB / 0.5418 GB Notification: Performance of SimCode: time 2.205e-06/4.916, allocations: 0 / 1.259 GB, free: 89.42 MB / 0.5418 GB Notification: Performance of Templates: time 1.449/6.364, allocations: 374.4 MB / 1.625 GB, free: 93.71 MB / 0.5418 GB