Running command: translateModel(ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2,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.FrameForcesAndTorques2") Notification: Performance of loadModel(ModelicaTest): time 2.436/2.436, allocations: 269 MB / 284.1 MB, free: 3.625 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.056e-05/3.061e-05, allocations: 4 kB / 349 MB, free: 10.73 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1305/0.1306, allocations: 61.89 MB / 410.9 MB, free: 12.84 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2): time 0.4344/0.565, allocations: 75.4 MB / 486.3 MB, free: 11.66 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.04852/0.6136, allocations: 16.05 MB / 0.4906 GB, free: 11.96 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01922/0.6329, allocations: 395.1 kB / 0.491 GB, free: 11.57 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01495/0.6479, allocations: 3.978 MB / 0.4949 GB, free: 7.578 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.04188/0.6898, allocations: 10.74 MB / 0.5053 GB, free: 12.82 MB / 426.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006795/0.6966, allocations: 0.8582 MB / 0.5062 GB, free: 11.96 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.1198/0.8165, allocations: 47.34 MB / 0.5524 GB, free: 12.58 MB / 474.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01236/0.8289, allocations: 6.189 MB / 0.5585 GB, free: 6.352 MB / 474.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002398/0.8314, allocations: 1.114 MB / 0.5595 GB, free: 5.234 MB / 474.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003365/0.8348, allocations: 1.741 MB / 0.5612 GB, free: 3.488 MB / 474.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003022/0.8379, allocations: 1.022 MB / 0.5622 GB, free: 2.465 MB / 474.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001099/0.839, allocations: 172 kB / 0.5624 GB, free: 2.297 MB / 474.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003007/0.842, allocations: 2.213 MB / 0.5646 GB, free: 80 kB / 474.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00154/0.8436, allocations: 388 kB / 0.5649 GB, free: 15.7 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01222/0.8558, allocations: 8.07 MB / 0.5728 GB, free: 7.609 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.079e-06/0.8559, allocations: 0 / 0.5728 GB, free: 7.609 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.995e-06/0.8559, allocations: 4 kB / 0.5728 GB, free: 7.605 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0003104/0.8562, allocations: 4 kB / 0.5728 GB, free: 7.602 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: 2137 * Number of variables: 2137 Notification: Performance of Generate backend data structure: time 0.01883/0.8751, allocations: 5.77 MB / 0.5785 GB, free: 1.758 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.874e-05/0.8751, allocations: 12.03 kB / 0.5785 GB, free: 1.746 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1182/0.9934, allocations: 11.86 MB / 0.5901 GB, free: 5.859 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01315/1.007, allocations: 4.063 MB / 0.594 GB, free: 1.738 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004607/1.007, allocations: 349 kB / 0.5944 GB, free: 1.395 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002193/1.009, allocations: 471.7 kB / 0.5948 GB, free: 0.9336 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04295/1.052, allocations: 14.76 MB / 0.6092 GB, free: 1.238 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002474/1.053, allocations: 63.42 kB / 0.6093 GB, free: 1.176 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001065/1.054, allocations: 219.8 kB / 0.6095 GB, free: 0.9609 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.3454/1.399, allocations: 2.781 MB / 0.6122 GB, free: 170.9 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0446/1.444, allocations: 12.52 MB / 0.6244 GB, free: 167.7 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09008/1.534, allocations: 54.95 MB / 0.6781 GB, free: 122.1 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02951/1.563, allocations: 6.598 MB / 0.6845 GB, free: 115.4 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002785/1.564, allocations: 39.14 kB / 0.6846 GB, free: 115.4 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.725e-05/1.564, allocations: 65.8 kB / 0.6846 GB, free: 115.3 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=218): time 6.503e-06/1.564, allocations: 0 / 0.6846 GB, free: 115.3 MB / 0.5105 GB Notification: Performance of matching and sorting (n=260): time 0.1339/1.698, allocations: 30.79 MB / 0.7147 GB, free: 84.3 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.526e-05/1.698, allocations: 209.9 kB / 0.7149 GB, free: 84.05 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0117/1.71, allocations: 5.668 MB / 0.7204 GB, free: 78.37 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0008448/1.71, allocations: 62.88 kB / 0.7205 GB, free: 78.3 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.00335/1.714, allocations: 4 MB / 0.7244 GB, free: 74.31 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0017/1.716, allocations: 0.9892 MB / 0.7254 GB, free: 73.33 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000884/1.717, allocations: 155 kB / 0.7255 GB, free: 73.18 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0004604/1.717, allocations: 0.629 MB / 0.7261 GB, free: 72.54 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007996/1.725, allocations: 3.243 MB / 0.7293 GB, free: 69.3 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01669/1.742, allocations: 7.681 MB / 0.7368 GB, free: 59.42 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01664/1.758, allocations: 4.878 MB / 0.7416 GB, free: 54.54 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001848/1.759, allocations: 44 kB / 0.7416 GB, free: 54.49 MB / 0.5105 GB Notification: Performance of matching and sorting (n=986) (initialization): time 0.05087/1.81, allocations: 12.04 MB / 0.7534 GB, free: 42.44 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001922/1.81, allocations: 72 kB / 0.7534 GB, free: 42.37 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003156/1.81, allocations: 156.9 kB / 0.7536 GB, free: 42.22 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01172/1.822, allocations: 1.794 MB / 0.7553 GB, free: 40.42 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01674/1.839, allocations: 1.762 MB / 0.7571 GB, free: 38.65 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04009/1.879, allocations: 12.31 MB / 0.7691 GB, free: 26.09 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01308/1.892, allocations: 475.9 kB / 0.7695 GB, free: 25.62 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001634/1.894, allocations: 465.2 kB / 0.77 GB, free: 25.17 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 715 * Number of states: 0 () * Number of discrete variables: 62 (frameTorque2.torqueArrow.arrowLine.twoHeadedArrow,frameTorque2.torqueArrow.headAtOrigin,frameTorque2.forceArrow.arrowLine.twoHeadedArrow,frameTorque2.forceArrow.headAtOrigin,frameTorque1.torqueArrow.arrowLine.twoHeadedArrow,frameTorque1.torqueArrow.headAtOrigin,frameTorque1.forceArrow.arrowLine.twoHeadedArrow,frameTorque1.forceArrow.headAtOrigin,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],frameTorque2.torqueColor[3],frameTorque2.torqueColor[2],frameTorque2.torqueColor[1],frameTorque2.forceColor[3],frameTorque2.forceColor[2],frameTorque2.forceColor[1],frameTorque1.torqueColor[3],frameTorque1.torqueColor[2],frameTorque1.torqueColor[1],frameTorque1.forceColor[3],frameTorque1.forceColor[2],frameTorque1.forceColor[1],fixed2.color[3],fixed2.color[2],fixed2.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 (914): * Single equations (assignments): 909 * 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 {(2,100.0%) 23,(2,100.0%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.006676/1.9, allocations: 2.825 MB / 0.7727 GB, free: 22.33 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001334/1.902, allocations: 0.5129 MB / 0.7732 GB, free: 21.81 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01725/1.919, allocations: 6.389 MB / 0.7795 GB, free: 15.4 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.106e-05/1.919, allocations: 28 kB / 0.7795 GB, free: 15.37 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.847e-05/1.919, allocations: 12 kB / 0.7795 GB, free: 15.36 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.033e-05/1.919, allocations: 11.95 kB / 0.7795 GB, free: 15.35 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03662/1.956, allocations: 14.08 MB / 0.7933 GB, free: 1.254 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.269e-05/1.956, allocations: 0 / 0.7933 GB, free: 1.254 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004429/1.96, allocations: 447.3 kB / 0.7937 GB, free: 0.8164 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007074/1.967, allocations: 1.528 MB / 0.7952 GB, free: 15.29 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006274/1.968, allocations: 47.98 kB / 0.7952 GB, free: 15.24 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0269/1.995, allocations: 11.58 MB / 0.8065 GB, free: 3.406 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.571e-06/1.995, allocations: 4 kB / 0.8065 GB, free: 3.402 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3924/2.388, allocations: 10.47 MB / 0.8168 GB, free: 164.7 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001945/2.39, allocations: 0.5944 MB / 0.8173 GB, free: 164.6 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002258/2.392, allocations: 43.58 kB / 0.8174 GB, free: 164.6 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00534/2.397, allocations: 215.5 kB / 0.8176 GB, free: 164.5 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009746/2.398, allocations: 156.7 kB / 0.8177 GB, free: 164.5 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003484/2.399, allocations: 66.36 kB / 0.8178 GB, free: 164.5 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.01029/2.409, allocations: 4.047 MB / 0.8218 GB, free: 163.2 MB / 0.5261 GB Notification: Performance of sort global known variables: time 7.11e-07/2.409, allocations: 0 / 0.8218 GB, free: 163.2 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.009126/2.418, allocations: 1.505 MB / 0.8232 GB, free: 163 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 8 (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 (202): * Single equations (assignments): 197 * 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.001075/2.419, allocations: 205.3 kB / 0.8234 GB, free: 162.9 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01959/2.439, allocations: 8.007 MB / 0.8312 GB, free: 160 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 6.963e-06/2.439, allocations: 0 / 0.8312 GB, free: 160 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.008908/2.448, allocations: 3.3 MB / 0.8345 GB, free: 158.7 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004881/2.453, allocations: 0.6579 MB / 0.8351 GB, free: 158.4 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03434/2.487, allocations: 16.92 MB / 0.8516 GB, free: 150.1 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007398/2.495, allocations: 4.556 MB / 0.8561 GB, free: 148.5 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002816/2.497, allocations: 408.8 kB / 0.8565 GB, free: 148.4 MB / 0.5261 GB Notification: Performance of SimCode: time 1.182e-06/2.497, allocations: 0 / 0.8565 GB, free: 148.4 MB / 0.5261 GB Notification: Performance of Templates: time 0.2227/2.72, allocations: 132.4 MB / 0.9857 GB, free: 19.32 MB / 0.5261 GB