Running command: translateModel(ModelicaTest.MultiBody.Forces.Torque3,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.Torque3") Notification: Performance of loadModel(ModelicaTest): time 1.945/1.945, allocations: 209.3 MB / 224.4 MB, free: 0.5234 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.008e-05/4.007e-05, allocations: 4 kB / 276.1 MB, free: 15.87 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3971/0.3972, allocations: 48.71 MB / 324.9 MB, free: 2.879 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Torque3): time 0.2118/0.609, allocations: 138 MB / 462.8 MB, free: 5.281 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.4442/1.053, allocations: 27.85 MB / 490.7 MB, free: 392 kB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.04468/1.098, allocations: 0.7129 MB / 491.4 MB, free: 392 kB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.04257/1.141, allocations: 7.564 MB / 499 MB, free: 0 / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.07866/1.219, allocations: 19.37 MB / 0.5062 GB, free: 10.73 MB / 426.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01187/1.231, allocations: 1.521 MB / 0.5077 GB, free: 10.29 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.09647/1.328, allocations: 33.72 MB / 0.5406 GB, free: 12.14 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03072/1.359, allocations: 13.37 MB / 0.5536 GB, free: 2.617 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006429/1.365, allocations: 2.23 MB / 0.5558 GB, free: 1.156 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00866/1.374, allocations: 3.609 MB / 0.5594 GB, free: 14.52 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005624/1.38, allocations: 1.081 MB / 0.5604 GB, free: 13.61 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003221/1.383, allocations: 308 kB / 0.5607 GB, free: 13.3 MB / 458.7 MB Notification: Performance of NFScalarize.scalarize: time 0.008121/1.391, allocations: 4.496 MB / 0.5651 GB, free: 10.02 MB / 458.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004548/1.396, allocations: 0.7656 MB / 0.5658 GB, free: 9.25 MB / 458.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0271/1.423, allocations: 16.07 MB / 0.5815 GB, free: 11.29 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.888e-06/1.423, allocations: 0 / 0.5815 GB, free: 11.29 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.926e-06/1.423, allocations: 0 / 0.5815 GB, free: 11.29 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0007826/1.424, allocations: 0 / 0.5815 GB, free: 11.29 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: 4176 * Number of variables: 4176 Notification: Performance of Generate backend data structure: time 0.0641/1.488, allocations: 11.51 MB / 0.5928 GB, free: 0.7227 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.967e-05/1.488, allocations: 8.031 kB / 0.5928 GB, free: 0.7148 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2336/1.721, allocations: 22.16 MB / 0.6144 GB, free: 11.86 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02731/1.749, allocations: 8.586 MB / 0.6228 GB, free: 5.801 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009502/1.75, allocations: 0.7068 MB / 0.6235 GB, free: 5.406 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004811/1.755, allocations: 0.9431 MB / 0.6244 GB, free: 4.785 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.08602/1.841, allocations: 28.25 MB / 0.652 GB, free: 15.34 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006303/1.841, allocations: 107.4 kB / 0.6521 GB, free: 15.29 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004277/1.846, allocations: 439.8 kB / 0.6525 GB, free: 15.17 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.01206/1.858, allocations: 4.736 MB / 0.6571 GB, free: 11.33 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.6377/2.496, allocations: 23.8 MB / 0.6804 GB, free: 226.6 MB / 0.5262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2128/2.708, allocations: 103.3 MB / 0.7812 GB, free: 145.3 MB / 0.5262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0676/2.776, allocations: 14.21 MB / 0.7951 GB, free: 131 MB / 0.5262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003873/2.78, allocations: 2.35 MB / 0.7974 GB, free: 128.3 MB / 0.5262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001406/2.78, allocations: 98.81 kB / 0.7975 GB, free: 128.2 MB / 0.5262 GB Notification: Performance of pre-optimization done (n=559): time 1.083e-05/2.78, allocations: 0 / 0.7975 GB, free: 128.2 MB / 0.5262 GB Notification: Performance of matching and sorting (n=643): time 0.2889/3.069, allocations: 66.23 MB / 0.8622 GB, free: 61.56 MB / 0.5262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001369/3.069, allocations: 321.8 kB / 0.8625 GB, free: 61.18 MB / 0.5262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02252/3.092, allocations: 9.649 MB / 0.8719 GB, free: 51.55 MB / 0.5262 GB Notification: Performance of collectPreVariables (initialization): time 0.002048/3.094, allocations: 125.7 kB / 0.872 GB, free: 51.43 MB / 0.5262 GB Notification: Performance of collectInitialEqns (initialization): time 0.00634/3.1, allocations: 7.281 MB / 0.8791 GB, free: 44.15 MB / 0.5262 GB Notification: Performance of collectInitialBindings (initialization): time 0.004139/3.104, allocations: 2.332 MB / 0.8814 GB, free: 41.83 MB / 0.5262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00294/3.107, allocations: 288 kB / 0.8817 GB, free: 41.55 MB / 0.5262 GB Notification: Performance of setup shared object (initialization): time 0.001454/3.109, allocations: 0.9141 MB / 0.8826 GB, free: 40.62 MB / 0.5262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01758/3.127, allocations: 6.665 MB / 0.8891 GB, free: 33.95 MB / 0.5262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02252/3.149, allocations: 14.19 MB / 0.903 GB, free: 16.09 MB / 0.5262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0227/3.172, allocations: 9.542 MB / 0.9123 GB, free: 6.531 MB / 0.5262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002289/3.172, allocations: 72 kB / 0.9123 GB, free: 6.461 MB / 0.5262 GB Notification: Performance of matching and sorting (n=1853) (initialization): time 0.4009/3.573, allocations: 23.45 MB / 0.9352 GB, free: 199.8 MB / 0.5262 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002898/3.574, allocations: 116.7 kB / 0.9354 GB, free: 199.8 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005802/3.574, allocations: 264.6 kB / 0.9356 GB, free: 199.8 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01594/3.59, allocations: 3.508 MB / 0.939 GB, free: 199.2 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02375/3.614, allocations: 3.41 MB / 0.9424 GB, free: 198.8 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04827/3.662, allocations: 24.52 MB / 0.9663 GB, free: 186.2 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01804/3.68, allocations: 0.877 MB / 0.9672 GB, free: 185.9 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00354/3.684, allocations: 0.8059 MB / 0.968 GB, free: 185.8 MB / 0.5262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1193 * Number of states: 0 () * Number of discrete variables: 105 (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],body4.color[3],body4.color[2],body4.color[1],body4.body.sphereColor[3],body4.body.sphereColor[2],body4.body.sphereColor[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],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 (1733): * Single equations (assignments): 1726 * 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.02148/3.705, allocations: 5.244 MB / 0.9731 GB, free: 183.5 MB / 0.5262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004783/3.71, allocations: 0.9469 MB / 0.974 GB, free: 183.5 MB / 0.5262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.07072/3.781, allocations: 15.05 MB / 0.9887 GB, free: 173.9 MB / 0.5262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000148/3.781, allocations: 65.86 kB / 0.9888 GB, free: 173.8 MB / 0.5262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001056/3.781, allocations: 20 kB / 0.9888 GB, free: 173.8 MB / 0.5262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002127/3.782, allocations: 33.42 kB / 0.9888 GB, free: 173.8 MB / 0.5262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1229/3.904, allocations: 32 MB / 1.02 GB, free: 142.3 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001273/3.905, allocations: 4 kB / 1.02 GB, free: 142.3 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01563/3.92, allocations: 1.15 MB / 1.021 GB, free: 141.1 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01945/3.94, allocations: 3.058 MB / 1.024 GB, free: 138.1 MB / 0.5262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00222/3.942, allocations: 123.5 kB / 1.024 GB, free: 138 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04618/3.988, allocations: 23 MB / 1.047 GB, free: 114.7 MB / 0.5262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.157e-06/3.988, allocations: 12.03 kB / 1.047 GB, free: 114.7 MB / 0.5262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06384/4.052, allocations: 24.63 MB / 1.071 GB, free: 89.89 MB / 0.5262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.008296/4.061, allocations: 2.101 MB / 1.073 GB, free: 87.76 MB / 0.5262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004971/4.066, allocations: 112 kB / 1.073 GB, free: 87.65 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01153/4.077, allocations: 483 kB / 1.073 GB, free: 87.18 MB / 0.5262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002609/4.08, allocations: 391.8 kB / 1.074 GB, free: 86.8 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001874/4.082, allocations: 167.7 kB / 1.074 GB, free: 86.64 MB / 0.5262 GB Notification: Performance of sorting global known variables: time 0.01675/4.099, allocations: 6.967 MB / 1.081 GB, free: 79.71 MB / 0.5262 GB Notification: Performance of sort global known variables: time 6.31e-07/4.099, allocations: 3.906 kB / 1.081 GB, free: 79.71 MB / 0.5262 GB Notification: Performance of remove unused functions: time 0.01806/4.117, allocations: 2.982 MB / 1.084 GB, free: 76.73 MB / 0.5262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 26 * Number of states: 16 (Revolute5.phi,Revolute5.w,Revolute6.phi,Revolute6.w,Revolute7.phi,Revolute7.w,Revolute8.phi,Revolute8.w,Revolute1.phi,Revolute1.w,Revolute2.phi,Revolute2.w,Revolute3.phi,Revolute3.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 (554): * Single equations (assignments): 547 * 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.002677/4.119, allocations: 307.7 kB / 1.084 GB, free: 76.43 MB / 0.5262 GB Notification: Performance of simCode: created initialization part: time 0.05551/4.175, allocations: 16.57 MB / 1.1 GB, free: 59.92 MB / 0.5262 GB Notification: Performance of simCode: created event and clocks part: time 2.212e-05/4.175, allocations: 0 / 1.1 GB, free: 59.92 MB / 0.5262 GB Notification: Performance of simCode: created simulation system equations: time 0.0325/4.207, allocations: 7.319 MB / 1.107 GB, free: 52.54 MB / 0.5262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01507/4.223, allocations: 1.199 MB / 1.108 GB, free: 51.35 MB / 0.5262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4633/4.686, allocations: 34.34 MB / 1.142 GB, free: 189.7 MB / 0.5262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02595/4.712, allocations: 8.307 MB / 1.15 GB, free: 188.6 MB / 0.5262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007985/4.72, allocations: 0.78 MB / 1.151 GB, free: 188.6 MB / 0.5262 GB Notification: Performance of SimCode: time 1.984e-06/4.72, allocations: 0 / 1.151 GB, free: 188.6 MB / 0.5262 GB Notification: Performance of Templates: time 0.9715/5.692, allocations: 348.1 MB / 1.491 GB, free: 59.43 MB / 0.5262 GB