Running command: translateModel(ModelicaTest.MultiBody.Forces.Torque,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",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.Torque") Notification: Performance of loadModel(ModelicaTest): time 2.452/2.452, allocations: 269 MB / 284.1 MB, free: 3.621 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.157e-05/3.154e-05, allocations: 4 kB / 349 MB, free: 10.76 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1322/0.1322, allocations: 61.9 MB / 410.9 MB, free: 12.86 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Torque): time 0.465/0.5973, allocations: 73.54 MB / 484.5 MB, free: 13.48 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.04956/0.6469, allocations: 15.57 MB / 0.4883 GB, free: 14.37 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01953/0.6665, allocations: 391.1 kB / 0.4887 GB, free: 13.98 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0145/0.681, allocations: 3.857 MB / 0.4925 GB, free: 10.11 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.04247/0.7236, allocations: 10.48 MB / 0.5027 GB, free: 15.6 MB / 426.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006615/0.7302, allocations: 0.8192 MB / 0.5035 GB, free: 14.78 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.1177/0.8479, allocations: 46.66 MB / 0.5491 GB, free: 84 kB / 458.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0141/0.8621, allocations: 6.597 MB / 0.5555 GB, free: 9.426 MB / 474.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003106/0.8652, allocations: 1.216 MB / 0.5567 GB, free: 8.207 MB / 474.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004198/0.8695, allocations: 1.87 MB / 0.5585 GB, free: 6.332 MB / 474.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003435/0.873, allocations: 0.9363 MB / 0.5594 GB, free: 5.395 MB / 474.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001488/0.8745, allocations: 172 kB / 0.5596 GB, free: 5.227 MB / 474.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004035/0.8785, allocations: 2.373 MB / 0.5619 GB, free: 2.848 MB / 474.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002058/0.8806, allocations: 412 kB / 0.5623 GB, free: 2.445 MB / 474.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01343/0.8941, allocations: 8.308 MB / 0.5704 GB, free: 10.12 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.8942, allocations: 3.938 kB / 0.5704 GB, free: 10.11 MB / 490.7 MB Notification: Performance of FrontEnd: time 3.436e-06/0.8942, allocations: 0 / 0.5704 GB, free: 10.11 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0004248/0.8946, allocations: 0 / 0.5704 GB, free: 10.11 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2219 * Number of variables: 2219 Notification: Performance of Generate backend data structure: time 0.02124/0.9159, allocations: 6.175 MB / 0.5765 GB, free: 3.859 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.171e-05/0.9159, allocations: 8.031 kB / 0.5765 GB, free: 3.852 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1195/1.035, allocations: 11.89 MB / 0.5881 GB, free: 7.934 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01432/1.05, allocations: 4.352 MB / 0.5923 GB, free: 3.5 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004703/1.05, allocations: 357.3 kB / 0.5927 GB, free: 3.148 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002283/1.053, allocations: 491.6 kB / 0.5931 GB, free: 2.668 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04406/1.097, allocations: 14.67 MB / 0.6075 GB, free: 2.977 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003507/1.097, allocations: 71.3 kB / 0.6075 GB, free: 2.906 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001855/1.099, allocations: 235.7 kB / 0.6078 GB, free: 2.676 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.3584/1.457, allocations: 2.817 MB / 0.6105 GB, free: 168.9 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04426/1.502, allocations: 12.28 MB / 0.6225 GB, free: 166 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09847/1.6, allocations: 58.11 MB / 0.6793 GB, free: 119.8 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02547/1.626, allocations: 6.366 MB / 0.6855 GB, free: 113.3 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01905/1.645, allocations: 8.407 MB / 0.6937 GB, free: 104.8 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.515e-05/1.645, allocations: 52.22 kB / 0.6937 GB, free: 104.7 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=236): time 6.563e-06/1.645, allocations: 0 / 0.6937 GB, free: 104.7 MB / 0.5105 GB Notification: Performance of matching and sorting (n=278): time 0.1227/1.768, allocations: 29.99 MB / 0.723 GB, free: 74.45 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.293e-05/1.768, allocations: 235.6 kB / 0.7232 GB, free: 74.17 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01381/1.782, allocations: 6.263 MB / 0.7294 GB, free: 67.91 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0008429/1.783, allocations: 65.7 kB / 0.7294 GB, free: 67.84 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.003738/1.786, allocations: 4.313 MB / 0.7336 GB, free: 63.54 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001786/1.788, allocations: 1.063 MB / 0.7347 GB, free: 62.49 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001078/1.789, allocations: 168 kB / 0.7348 GB, free: 62.32 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0005527/1.79, allocations: 0.6742 MB / 0.7355 GB, free: 61.64 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008385/1.798, allocations: 3.331 MB / 0.7387 GB, free: 58.3 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01142/1.81, allocations: 8.385 MB / 0.7469 GB, free: 47.39 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01158/1.821, allocations: 5.159 MB / 0.752 GB, free: 42.23 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001477/1.822, allocations: 52 kB / 0.752 GB, free: 42.18 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1108) (initialization): time 0.03558/1.857, allocations: 12.75 MB / 0.7645 GB, free: 29.41 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001271/1.857, allocations: 83.95 kB / 0.7646 GB, free: 29.33 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002128/1.858, allocations: 184.7 kB / 0.7647 GB, free: 29.16 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00754/1.865, allocations: 1.814 MB / 0.7665 GB, free: 27.34 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0121/1.877, allocations: 1.953 MB / 0.7684 GB, free: 25.38 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02357/1.901, allocations: 12.32 MB / 0.7804 GB, free: 12.8 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009888/1.911, allocations: 499.2 kB / 0.7809 GB, free: 12.31 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001805/1.913, allocations: 0.5124 MB / 0.7814 GB, free: 11.8 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 814 * Number of states: 0 () * Number of discrete variables: 67 (torque2.torqueArrow.arrowLine.twoHeadedArrow,torque2.torqueArrow.headAtOrigin,torque1.torqueArrow.arrowLine.twoHeadedArrow,torque1.torqueArrow.headAtOrigin,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 (1026): * Single equations (assignments): 1019 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 23,(2,100.0%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.007521/1.92, allocations: 2.994 MB / 0.7843 GB, free: 8.793 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001581/1.922, allocations: 0.5707 MB / 0.7849 GB, free: 8.215 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01883/1.941, allocations: 6.331 MB / 0.7911 GB, free: 1.863 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.196e-05/1.941, allocations: 32 kB / 0.7911 GB, free: 1.832 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.904e-05/1.941, allocations: 8 kB / 0.7911 GB, free: 1.824 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.074e-05/1.941, allocations: 11.95 kB / 0.7911 GB, free: 1.812 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04571/1.987, allocations: 14.29 MB / 0.8051 GB, free: 3.477 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.293e-05/1.987, allocations: 7.984 kB / 0.8051 GB, free: 3.469 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004752/1.992, allocations: 463.7 kB / 0.8055 GB, free: 3.016 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00783/2, allocations: 1.526 MB / 0.807 GB, free: 1.484 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008155/2, allocations: 51.98 kB / 0.8071 GB, free: 1.434 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3938/2.394, allocations: 11.52 MB / 0.8183 GB, free: 161.4 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.568e-06/2.394, allocations: 5.531 kB / 0.8183 GB, free: 161.4 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03014/2.424, allocations: 11.12 MB / 0.8292 GB, free: 156.6 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002147/2.427, allocations: 0.6549 MB / 0.8298 GB, free: 156.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002591/2.429, allocations: 49.66 kB / 0.8299 GB, free: 156.4 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005689/2.435, allocations: 180.7 kB / 0.83 GB, free: 156.4 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001234/2.436, allocations: 174.8 kB / 0.8302 GB, free: 156.4 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005788/2.437, allocations: 77.41 kB / 0.8303 GB, free: 156.4 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.01215/2.449, allocations: 4.497 MB / 0.8347 GB, free: 154.9 MB / 0.5261 GB Notification: Performance of sort global known variables: time 7.81e-07/2.449, allocations: 0 / 0.8347 GB, free: 154.9 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01047/2.46, allocations: 1.576 MB / 0.8362 GB, free: 154.7 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 8 (Revolute1.phi,Revolute1.w,Revolute3.phi,Revolute3.w,Revolute2.phi,Revolute2.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 (220): * Single equations (assignments): 215 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(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.001329/2.461, allocations: 214 kB / 0.8364 GB, free: 154.6 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01853/2.48, allocations: 8.222 MB / 0.8445 GB, free: 151.6 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.063e-05/2.48, allocations: 3.438 kB / 0.8445 GB, free: 151.6 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.009305/2.489, allocations: 3.224 MB / 0.8476 GB, free: 150.4 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006341/2.495, allocations: 0.6996 MB / 0.8483 GB, free: 150.1 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04066/2.536, allocations: 17.77 MB / 0.8656 GB, free: 137.7 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009781/2.546, allocations: 4.761 MB / 0.8703 GB, free: 134.1 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002921/2.549, allocations: 446.7 kB / 0.8707 GB, free: 133.7 MB / 0.5261 GB Notification: Performance of SimCode: time 1.644e-06/2.549, allocations: 0 / 0.8707 GB, free: 133.7 MB / 0.5261 GB Notification: Performance of Templates: time 0.6022/3.151, allocations: 138.9 MB / 1.006 GB, free: 172.3 MB / 0.5417 GB