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 2.035/2.035, allocations: 209.3 MB / 224.4 MB, free: 0.5117 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.525e-05/3.527e-05, allocations: 0 / 276.1 MB, free: 15.86 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3589/0.359, allocations: 48.7 MB / 324.8 MB, free: 2.895 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Torque2): time 0.2374/0.5964, allocations: 150.5 MB / 475.4 MB, free: 8.711 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.4448/1.041, allocations: 30.12 MB / 0.4936 GB, free: 15.79 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0422/1.084, allocations: 0.7879 MB / 0.4944 GB, free: 15.79 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 0.02989/1.113, allocations: 8.092 MB / 0.5023 GB, free: 12.87 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.08417/1.198, allocations: 21.13 MB / 0.5229 GB, free: 7.004 MB / 426.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01273/1.21, allocations: 1.613 MB / 0.5245 GB, free: 6.543 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.1003/1.311, allocations: 34.1 MB / 0.5578 GB, free: 3.273 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03225/1.343, allocations: 14.23 MB / 0.5717 GB, free: 9.055 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007183/1.35, allocations: 2.427 MB / 0.5741 GB, free: 7.465 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009328/1.36, allocations: 3.826 MB / 0.5778 GB, free: 4.672 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006049/1.366, allocations: 1.098 MB / 0.5789 GB, free: 3.746 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003647/1.37, allocations: 324 kB / 0.5792 GB, free: 3.43 MB / 458.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0091/1.379, allocations: 4.837 MB / 0.5839 GB, free: 15.88 MB / 474.7 MB Notification: Performance of NFVerifyModel.verify: time 0.005071/1.384, allocations: 0.8164 MB / 0.5847 GB, free: 15.07 MB / 474.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02774/1.412, allocations: 16.98 MB / 0.6013 GB, free: 320 kB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.861e-06/1.412, allocations: 4 kB / 0.6013 GB, free: 316 kB / 474.7 MB Notification: Performance of FrontEnd: time 3.526e-06/1.412, allocations: 0 / 0.6013 GB, free: 316 kB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0008874/1.413, allocations: 0 / 0.6013 GB, free: 316 kB / 474.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.0497/1.462, allocations: 12.43 MB / 0.6134 GB, free: 4.914 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.353e-05/1.462, allocations: 8.031 kB / 0.6134 GB, free: 4.906 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.253/1.715, allocations: 22.31 MB / 0.6352 GB, free: 15.91 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03089/1.746, allocations: 9.214 MB / 0.6442 GB, free: 9.352 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001072/1.748, allocations: 0.7514 MB / 0.645 GB, free: 8.934 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004982/1.753, allocations: 0.9883 MB / 0.6459 GB, free: 8.285 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.08977/1.842, allocations: 29.89 MB / 0.6751 GB, free: 1.176 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006593/1.843, allocations: 116.8 kB / 0.6752 GB, free: 1.066 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003966/1.847, allocations: 463 kB / 0.6757 GB, free: 0.9414 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.5572/2.404, allocations: 5.049 MB / 0.6806 GB, free: 231.9 MB / 0.5262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.08569/2.49, allocations: 24.89 MB / 0.7049 GB, free: 225.2 MB / 0.5262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2025/2.693, allocations: 111.9 MB / 0.8142 GB, free: 114.8 MB / 0.5262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0623/2.755, allocations: 14.13 MB / 0.828 GB, free: 100.6 MB / 0.5262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04947/2.804, allocations: 19.94 MB / 0.8474 GB, free: 80.5 MB / 0.5262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.957e-05/2.805, allocations: 97.09 kB / 0.8475 GB, free: 80.4 MB / 0.5262 GB Notification: Performance of pre-optimization done (n=562): time 1.004e-05/2.805, allocations: 0 / 0.8475 GB, free: 80.4 MB / 0.5262 GB Notification: Performance of matching and sorting (n=646): time 0.3345/3.139, allocations: 71.67 MB / 0.9175 GB, free: 8.086 MB / 0.5262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001389/3.139, allocations: 382.1 kB / 0.9179 GB, free: 7.637 MB / 0.5262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.3302/3.47, allocations: 11.33 MB / 0.9289 GB, free: 209.9 MB / 0.5262 GB Notification: Performance of collectPreVariables (initialization): time 0.00202/3.472, allocations: 124.1 kB / 0.9291 GB, free: 209.8 MB / 0.5262 GB Notification: Performance of collectInitialEqns (initialization): time 0.008503/3.48, allocations: 7.955 MB / 0.9368 GB, free: 206.3 MB / 0.5262 GB Notification: Performance of collectInitialBindings (initialization): time 0.004778/3.485, allocations: 2.372 MB / 0.9391 GB, free: 204.6 MB / 0.5262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003493/3.489, allocations: 311.6 kB / 0.9394 GB, free: 204.3 MB / 0.5262 GB Notification: Performance of setup shared object (initialization): time 0.002103/3.491, allocations: 0.9688 MB / 0.9404 GB, free: 203.7 MB / 0.5262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02165/3.512, allocations: 6.972 MB / 0.9472 GB, free: 201.4 MB / 0.5262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02636/3.539, allocations: 15.33 MB / 0.9622 GB, free: 187.8 MB / 0.5262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02408/3.563, allocations: 10.11 MB / 0.972 GB, free: 184 MB / 0.5262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002845/3.563, allocations: 81.38 kB / 0.9721 GB, free: 184 MB / 0.5262 GB Notification: Performance of matching and sorting (n=2027) (initialization): time 0.07207/3.635, allocations: 24.81 MB / 0.9964 GB, free: 174.9 MB / 0.5262 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002139/3.636, allocations: 130.9 kB / 0.9965 GB, free: 174.9 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004761/3.636, allocations: 297.5 kB / 0.9968 GB, free: 174.9 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01545/3.652, allocations: 3.536 MB / 1 GB, free: 174.2 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02467/3.676, allocations: 3.697 MB / 1.004 GB, free: 171.4 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05351/3.73, allocations: 24.57 MB / 1.028 GB, free: 147.4 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01986/3.75, allocations: 0.9368 MB / 1.029 GB, free: 146.5 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003951/3.754, allocations: 0.8882 MB / 1.03 GB, free: 145.6 MB / 0.5262 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.01628/3.77, allocations: 5.65 MB / 1.035 GB, free: 139.9 MB / 0.5262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004324/3.775, allocations: 1.072 MB / 1.036 GB, free: 138.9 MB / 0.5262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04645/3.821, allocations: 15.18 MB / 1.051 GB, free: 123.6 MB / 0.5262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001332/3.821, allocations: 64 kB / 1.051 GB, free: 123.6 MB / 0.5262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.248e-05/3.821, allocations: 20 kB / 1.051 GB, free: 123.6 MB / 0.5262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001938/3.822, allocations: 35.88 kB / 1.051 GB, free: 123.5 MB / 0.5262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1007/3.922, allocations: 33.22 MB / 1.084 GB, free: 90.26 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001202/3.922, allocations: 12 kB / 1.084 GB, free: 90.25 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01189/3.934, allocations: 1.175 MB / 1.085 GB, free: 89.07 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01407/3.948, allocations: 3.059 MB / 1.088 GB, free: 86 MB / 0.5262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002077/3.951, allocations: 124 kB / 1.088 GB, free: 85.88 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06207/4.013, allocations: 23.05 MB / 1.11 GB, free: 62.31 MB / 0.5262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.022e-05/4.013, allocations: 19.89 kB / 1.11 GB, free: 62.29 MB / 0.5262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0825/4.095, allocations: 26.96 MB / 1.137 GB, free: 34.64 MB / 0.5262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.008904/4.104, allocations: 2.248 MB / 1.139 GB, free: 32.36 MB / 0.5262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005227/4.109, allocations: 120 kB / 1.139 GB, free: 32.25 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01184/4.121, allocations: 435.4 kB / 1.139 GB, free: 31.82 MB / 0.5262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002635/4.124, allocations: 418.2 kB / 1.14 GB, free: 31.42 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001872/4.126, allocations: 172 kB / 1.14 GB, free: 31.25 MB / 0.5262 GB Notification: Performance of sorting global known variables: time 0.4379/4.564, allocations: 8.215 MB / 1.148 GB, free: 185.9 MB / 0.5262 GB Notification: Performance of sort global known variables: time 1.062e-06/4.564, allocations: 0 / 1.148 GB, free: 185.9 MB / 0.5262 GB Notification: Performance of remove unused functions: time 0.02116/4.585, allocations: 3.155 MB / 1.151 GB, free: 185.9 MB / 0.5262 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.002772/4.588, allocations: 315.8 kB / 1.151 GB, free: 185.8 MB / 0.5262 GB Notification: Performance of simCode: created initialization part: time 0.04349/4.631, allocations: 17.17 MB / 1.168 GB, free: 181.5 MB / 0.5262 GB Notification: Performance of simCode: created event and clocks part: time 1.601e-05/4.632, allocations: 2.781 kB / 1.168 GB, free: 181.5 MB / 0.5262 GB Notification: Performance of simCode: created simulation system equations: time 0.02102/4.653, allocations: 7.318 MB / 1.175 GB, free: 178.7 MB / 0.5262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01285/4.665, allocations: 1.349 MB / 1.177 GB, free: 178.1 MB / 0.5262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09115/4.757, allocations: 36.66 MB / 1.212 GB, free: 159.6 MB / 0.5262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0216/4.778, allocations: 8.885 MB / 1.221 GB, free: 153.9 MB / 0.5262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007734/4.786, allocations: 0.8471 MB / 1.222 GB, free: 153.1 MB / 0.5262 GB Notification: Performance of SimCode: time 2.104e-06/4.786, allocations: 0 / 1.222 GB, free: 153.1 MB / 0.5262 GB Notification: Performance of Templates: time 1.347/6.133, allocations: 374 MB / 1.587 GB, free: 157.8 MB / 0.5262 GB