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_trunk_cpp_ModelicaTest.MultiBody.Forces.Torque2") Notification: Performance of loadModel(ModelicaTest): time 2.385/2.385, allocations: 269 MB / 284.1 MB, free: 3.648 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.91e-05/3.917e-05, allocations: 7.984 kB / 349 MB, free: 10.79 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1317/0.1317, allocations: 61.89 MB / 410.9 MB, free: 12.89 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Torque2): time 0.573/0.7048, allocations: 154.6 MB / 0.5523 GB, free: 12.75 MB / 474.7 MB Notification: Performance of NFInst.instExpressions: time 0.09497/0.7998, allocations: 31.06 MB / 0.5826 GB, free: 13.59 MB / 0.4948 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.03969/0.8396, allocations: 0.8107 MB / 0.5834 GB, free: 12.78 MB / 0.4948 GB Notification: Performance of NFTyping.typeComponents: time 0.02994/0.8696, allocations: 8.228 MB / 0.5915 GB, free: 4.512 MB / 0.4948 GB Notification: Performance of NFTyping.typeBindings: time 0.5278/1.397, allocations: 21.78 MB / 0.6127 GB, free: 5.023 MB / 0.5105 GB Notification: Performance of NFTyping.typeClassSections: time 0.01327/1.411, allocations: 1.582 MB / 0.6143 GB, free: 5.008 MB / 0.5105 GB Notification: Performance of NFFlatten.flatten: time 0.2244/1.635, allocations: 94.6 MB / 0.7067 GB, free: 5.004 MB / 0.5417 GB Notification: Performance of NFFlatten.resolveConnections: time 0.02894/1.664, allocations: 13.98 MB / 0.7203 GB, free: 11.02 MB / 0.5573 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006083/1.67, allocations: 2.223 MB / 0.7225 GB, free: 9.551 MB / 0.5573 GB Notification: Performance of NFSimplifyModel.simplify: time 0.007854/1.678, allocations: 3.381 MB / 0.7258 GB, free: 7.086 MB / 0.5573 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005211/1.683, allocations: 1.03 MB / 0.7268 GB, free: 6.23 MB / 0.5573 GB Notification: Performance of NFPackage.collectConstants: time 0.00291/1.686, allocations: 280 kB / 0.7271 GB, free: 5.957 MB / 0.5573 GB Notification: Performance of NFScalarize.scalarize: time 0.007766/1.694, allocations: 4.454 MB / 0.7314 GB, free: 2.676 MB / 0.5573 GB Notification: Performance of NFVerifyModel.verify: time 0.004315/1.699, allocations: 0.7578 MB / 0.7321 GB, free: 1.918 MB / 0.5573 GB Notification: Performance of NFConvertDAE.convert: time 0.02486/1.724, allocations: 15.43 MB / 0.7472 GB, free: 4.543 MB / 0.573 GB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/1.724, allocations: 2.812 kB / 0.7472 GB, free: 4.543 MB / 0.573 GB Notification: Performance of FrontEnd: time 3.347e-06/1.724, allocations: 0 / 0.7472 GB, free: 4.543 MB / 0.573 GB Notification: Performance of Transformations before backend: time 0.0007474/1.724, allocations: 4 kB / 0.7472 GB, free: 4.539 MB / 0.573 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4009 * Number of variables: 4009 Notification: Performance of Generate backend data structure: time 0.04008/1.764, allocations: 11.27 MB / 0.7582 GB, free: 10.23 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 5.623e-05/1.765, allocations: 12.03 kB / 0.7582 GB, free: 10.22 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2344/1.999, allocations: 22.13 MB / 0.7798 GB, free: 5.398 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02755/2.027, allocations: 8.198 MB / 0.7878 GB, free: 15.51 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008929/2.027, allocations: 0.6905 MB / 0.7885 GB, free: 15.12 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004525/2.032, allocations: 0.9279 MB / 0.7894 GB, free: 14.51 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.08467/2.117, allocations: 27.08 MB / 0.8159 GB, free: 9.574 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005767/2.117, allocations: 113.6 kB / 0.816 GB, free: 9.512 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003129/2.12, allocations: 435.9 kB / 0.8164 GB, free: 9.391 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.01619/2.137, allocations: 4.898 MB / 0.8212 GB, free: 5.324 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.07872/2.215, allocations: 22.53 MB / 0.8432 GB, free: 5.477 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.9077/3.123, allocations: 103.7 MB / 0.9444 GB, free: 222 MB / 0.6512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.05871/3.182, allocations: 12.57 MB / 0.9567 GB, free: 212.2 MB / 0.6512 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04271/3.225, allocations: 17.43 MB / 0.9737 GB, free: 194.6 MB / 0.6512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.52e-05/3.225, allocations: 90.11 kB / 0.9738 GB, free: 194.5 MB / 0.6512 GB Notification: Performance of pre-optimization done (n=459): time 8.656e-06/3.225, allocations: 4 kB / 0.9738 GB, free: 194.5 MB / 0.6512 GB Notification: Performance of matching and sorting (n=543): time 0.2829/3.508, allocations: 65.53 MB / 1.038 GB, free: 128.5 MB / 0.6512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001524/3.508, allocations: 372.7 kB / 1.038 GB, free: 128.1 MB / 0.6512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02541/3.533, allocations: 10.86 MB / 1.049 GB, free: 117.3 MB / 0.6512 GB Notification: Performance of collectPreVariables (initialization): time 0.001665/3.535, allocations: 106.9 kB / 1.049 GB, free: 117.2 MB / 0.6512 GB Notification: Performance of collectInitialEqns (initialization): time 0.006475/3.542, allocations: 7.322 MB / 1.056 GB, free: 109.8 MB / 0.6512 GB Notification: Performance of collectInitialBindings (initialization): time 0.003418/3.545, allocations: 2.013 MB / 1.058 GB, free: 107.8 MB / 0.6512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00259/3.548, allocations: 284 kB / 1.058 GB, free: 107.6 MB / 0.6512 GB Notification: Performance of setup shared object (initialization): time 0.001185/3.549, allocations: 0.904 MB / 1.059 GB, free: 106.7 MB / 0.6512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01546/3.564, allocations: 6.032 MB / 1.065 GB, free: 100.6 MB / 0.6512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02048/3.585, allocations: 13.86 MB / 1.079 GB, free: 82.93 MB / 0.6512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02037/3.605, allocations: 8.931 MB / 1.087 GB, free: 73.98 MB / 0.6512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002422/3.606, allocations: 80 kB / 1.087 GB, free: 73.91 MB / 0.6512 GB Notification: Performance of matching and sorting (n=1828) (initialization): time 0.06364/3.669, allocations: 22.31 MB / 1.109 GB, free: 51.58 MB / 0.6512 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002063/3.67, allocations: 120 kB / 1.109 GB, free: 51.46 MB / 0.6512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003728/3.67, allocations: 280 kB / 1.11 GB, free: 51.19 MB / 0.6512 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01528/3.685, allocations: 3.508 MB / 1.113 GB, free: 47.67 MB / 0.6512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02138/3.707, allocations: 3.259 MB / 1.116 GB, free: 44.4 MB / 0.6512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04766/3.754, allocations: 24.54 MB / 1.14 GB, free: 19.36 MB / 0.6512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01769/3.772, allocations: 0.8347 MB / 1.141 GB, free: 18.52 MB / 0.6512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003243/3.776, allocations: 0.8124 MB / 1.142 GB, free: 17.71 MB / 0.6512 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1254 * Number of states: 0 () * Number of discrete variables: 138 (torque4.torqueArrow.arrowLine.twoHeadedArrow,torque4.torqueArrow.headAtOrigin,torque4.forceArrow.arrowLine.twoHeadedArrow,torque4.forceArrow.headAtOrigin,torque3.torqueArrow.arrowLine.twoHeadedArrow,torque3.torqueArrow.headAtOrigin,torque3.forceArrow.arrowLine.twoHeadedArrow,torque3.forceArrow.headAtOrigin,torque2.torqueArrow.arrowLine.twoHeadedArrow,torque2.torqueArrow.headAtOrigin,torque1.torqueArrow.arrowLine.twoHeadedArrow,torque1.torqueArrow.headAtOrigin,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.forceArrow.color[3],torque4.forceArrow.color[2],torque4.forceArrow.color[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.forceArrow.color[3],torque3.forceArrow.color[2],torque3.forceArrow.color[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.groundColor[3],world.groundColor[2],world.groundColor[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 (1688): * Single equations (assignments): 1677 * 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.01391/3.79, allocations: 5.212 MB / 1.147 GB, free: 12.48 MB / 0.6512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003216/3.793, allocations: 0.9987 MB / 1.148 GB, free: 11.47 MB / 0.6512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.4275/4.22, allocations: 13.04 MB / 1.161 GB, free: 262.7 MB / 0.6512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000135/4.22, allocations: 57.33 kB / 1.161 GB, free: 262.7 MB / 0.6512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.809e-05/4.221, allocations: 16.56 kB / 1.161 GB, free: 262.7 MB / 0.6512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001881/4.221, allocations: 31.64 kB / 1.161 GB, free: 262.7 MB / 0.6512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.09743/4.318, allocations: 29.35 MB / 1.189 GB, free: 255.5 MB / 0.6512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001014/4.318, allocations: 11.97 kB / 1.189 GB, free: 255.5 MB / 0.6512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.009561/4.328, allocations: 0.933 MB / 1.19 GB, free: 255.4 MB / 0.6512 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01442/4.342, allocations: 3.054 MB / 1.193 GB, free: 254.8 MB / 0.6512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001809/4.344, allocations: 100.8 kB / 1.193 GB, free: 254.7 MB / 0.6512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05028/4.395, allocations: 23.11 MB / 1.216 GB, free: 242.9 MB / 0.6512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.273e-05/4.395, allocations: 15.72 kB / 1.216 GB, free: 242.9 MB / 0.6512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05542/4.45, allocations: 23.3 MB / 1.239 GB, free: 226.9 MB / 0.6512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004291/4.455, allocations: 1.118 MB / 1.24 GB, free: 226.3 MB / 0.6512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005019/4.46, allocations: 108.7 kB / 1.24 GB, free: 226.2 MB / 0.6512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01073/4.47, allocations: 366.9 kB / 1.24 GB, free: 225.8 MB / 0.6512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002436/4.473, allocations: 350.7 kB / 1.24 GB, free: 225.5 MB / 0.6512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001944/4.475, allocations: 140 kB / 1.241 GB, free: 225.3 MB / 0.6512 GB Notification: Performance of sorting global known variables: time 0.0209/4.496, allocations: 7.875 MB / 1.248 GB, free: 217.5 MB / 0.6512 GB Notification: Performance of sort global known variables: time 3.145e-06/4.496, allocations: 0 / 1.248 GB, free: 217.5 MB / 0.6512 GB Notification: Performance of remove unused functions: time 0.01915/4.515, allocations: 2.847 MB / 1.251 GB, free: 214.7 MB / 0.6512 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 43 * 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 (451): * Single equations (assignments): 444 * 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.002435/4.518, allocations: 285.9 kB / 1.251 GB, free: 214.4 MB / 0.6512 GB Notification: Performance of simCode: created initialization part: time 0.03575/4.553, allocations: 15.04 MB / 1.266 GB, free: 199.5 MB / 0.6512 GB Notification: Performance of simCode: created event and clocks part: time 1.905e-05/4.553, allocations: 4 kB / 1.266 GB, free: 199.5 MB / 0.6512 GB Notification: Performance of simCode: created simulation system equations: time 0.02053/4.574, allocations: 6.441 MB / 1.272 GB, free: 193.1 MB / 0.6512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01159/4.586, allocations: 1.327 MB / 1.274 GB, free: 191.8 MB / 0.6512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07605/4.662, allocations: 33.05 MB / 1.306 GB, free: 159 MB / 0.6512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01849/4.68, allocations: 8.162 MB / 1.314 GB, free: 150.8 MB / 0.6512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006138/4.686, allocations: 0.7571 MB / 1.315 GB, free: 150 MB / 0.6512 GB Notification: Performance of SimCode: time 3.085e-06/4.687, allocations: 0 / 1.315 GB, free: 150 MB / 0.6512 GB Notification: Performance of Templates: time 1.008/5.694, allocations: 339.9 MB / 1.647 GB, free: 47.71 MB / 0.6512 GB