Running command: translateModel(ModelicaTest.MultiBody.Forces.Torque2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.Torque2") Notification: Performance of loadModel(ModelicaTest): time 2.329/2.329, allocations: 270 MB / 282.7 MB, free: 1.883 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.021e-05/3.034e-05, allocations: 4 kB / 347 MB, free: 3.266 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3238/0.3239, allocations: 61.87 MB / 408.8 MB, free: 10.78 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1721/0.496, allocations: 112.2 MB / 0.5088 GB, free: 10.39 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002304/0.4963, allocations: 83.95 kB / 0.5089 GB, free: 10.31 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.715/2.212, allocations: 222.1 MB / 0.7258 GB, free: 49.09 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.536e-06/2.212, allocations: 0 / 0.7258 GB, free: 49.09 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0007175/2.212, allocations: 239.4 kB / 0.7261 GB, free: 49.08 MB / 0.5105 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.03819/2.251, allocations: 11.52 MB / 0.7373 GB, free: 45.34 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.288e-05/2.251, allocations: 11.53 kB / 0.7373 GB, free: 45.34 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06604/2.317, allocations: 12.62 MB / 0.7497 GB, free: 44.54 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03569/2.353, allocations: 12.21 MB / 0.7616 GB, free: 43.2 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001018/2.354, allocations: 0.8692 MB / 0.7624 GB, free: 43.18 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004822/2.358, allocations: 1.17 MB / 0.7636 GB, free: 43.16 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07378/2.432, allocations: 27.37 MB / 0.7903 GB, free: 37.31 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007983/2.433, allocations: 147 kB / 0.7904 GB, free: 37.3 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004569/2.438, allocations: 0.5451 MB / 0.791 GB, free: 37.3 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004433/2.442, allocations: 2.532 MB / 0.7934 GB, free: 37.27 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05913/2.501, allocations: 21.67 MB / 0.8146 GB, free: 37.21 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.53/3.031, allocations: 119.5 MB / 0.9313 GB, free: 95.44 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0479/3.079, allocations: 12.77 MB / 0.9437 GB, free: 94.71 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0115/3.091, allocations: 7.082 MB / 0.9507 GB, free: 94.64 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03383/3.125, allocations: 17.29 MB / 0.9675 GB, free: 91.88 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.428e-05/3.125, allocations: 85.59 kB / 0.9676 GB, free: 91.84 MB / 0.573 GB Notification: Performance of pre-optimization done (n=459): time 1.005e-05/3.125, allocations: 0 / 0.9676 GB, free: 91.84 MB / 0.573 GB Notification: Performance of matching and sorting (n=543): time 0.1878/3.313, allocations: 54.41 MB / 1.021 GB, free: 80.3 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001166/3.313, allocations: 372.5 kB / 1.021 GB, free: 79.93 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02112/3.334, allocations: 10.16 MB / 1.031 GB, free: 79.17 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.001098/3.335, allocations: 105.1 kB / 1.031 GB, free: 79.14 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.005442/3.341, allocations: 7.364 MB / 1.038 GB, free: 75.23 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.002569/3.343, allocations: 2.03 MB / 1.04 GB, free: 73.74 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001495/3.345, allocations: 278.9 kB / 1.041 GB, free: 73.52 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0008561/3.346, allocations: 0.905 MB / 1.041 GB, free: 72.96 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01233/3.358, allocations: 5.726 MB / 1.047 GB, free: 70.99 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01666/3.375, allocations: 13.54 MB / 1.06 GB, free: 58.53 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01712/3.392, allocations: 8.73 MB / 1.069 GB, free: 53.41 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000207/3.392, allocations: 83.95 kB / 1.069 GB, free: 53.32 MB / 0.573 GB Notification: Performance of matching and sorting (n=1818) (initialization): time 0.04914/3.441, allocations: 20.85 MB / 1.089 GB, free: 36.96 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002/3.441, allocations: 120 kB / 1.089 GB, free: 36.85 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003132/3.442, allocations: 280 kB / 1.09 GB, free: 36.57 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0101/3.452, allocations: 3.278 MB / 1.093 GB, free: 34.16 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01461/3.467, allocations: 3.352 MB / 1.096 GB, free: 31.33 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0344/3.501, allocations: 22.56 MB / 1.118 GB, free: 11.1 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01478/3.516, allocations: 0.8176 MB / 1.119 GB, free: 10.42 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003282/3.519, allocations: 0.8125 MB / 1.12 GB, free: 9.637 MB / 0.573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1264 * Number of states: 0 () * Number of discrete variables: 138 (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.torqueArrow.arrowLine.twoHeadedArrow,torque4.torqueArrow.headAtOrigin,torque4.torqueColor[3],torque4.torqueColor[2],torque4.torqueColor[1],torque4.forceArrow.arrowLine.twoHeadedArrow,torque4.forceArrow.headAtOrigin,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.torqueArrow.arrowLine.twoHeadedArrow,torque3.torqueArrow.headAtOrigin,torque3.torqueColor[3],torque3.torqueColor[2],torque3.torqueColor[1],torque3.forceArrow.arrowLine.twoHeadedArrow,torque3.forceArrow.headAtOrigin,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.torqueArrow.arrowLine.twoHeadedArrow,torque2.torqueArrow.headAtOrigin,torque2.torqueColor[3],torque2.torqueColor[2],torque2.torqueColor[1],torque1.connectionLineColor[3],torque1.connectionLineColor[2],torque1.connectionLineColor[1],torque1.torqueArrow.arrowLine.twoHeadedArrow,torque1.torqueArrow.headAtOrigin,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 (1698): * Single equations (assignments): 1691 * 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.004292/3.523, allocations: 1.205 MB / 1.121 GB, free: 8.441 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002419/3.526, allocations: 1.006 MB / 1.122 GB, free: 7.426 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03061/3.557, allocations: 12.53 MB / 1.134 GB, free: 13.38 MB / 0.5887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001086/3.557, allocations: 59.95 kB / 1.134 GB, free: 13.32 MB / 0.5887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.522e-05/3.557, allocations: 20 kB / 1.134 GB, free: 13.31 MB / 0.5887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000111/3.557, allocations: 23.62 kB / 1.134 GB, free: 13.31 MB / 0.5887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4317/3.989, allocations: 28.63 MB / 1.162 GB, free: 100.2 MB / 0.5887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.156e-05/3.989, allocations: 10.56 kB / 1.162 GB, free: 100.2 MB / 0.5887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007399/3.996, allocations: 1.07 MB / 1.163 GB, free: 100.2 MB / 0.5887 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.009733/4.006, allocations: 2.817 MB / 1.166 GB, free: 100.1 MB / 0.5887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001211/4.007, allocations: 106 kB / 1.166 GB, free: 100.1 MB / 0.5887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03546/4.043, allocations: 21.13 MB / 1.187 GB, free: 94.81 MB / 0.5887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.32e-05/4.043, allocations: 21.38 kB / 1.187 GB, free: 94.81 MB / 0.5887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04064/4.083, allocations: 22.52 MB / 1.209 GB, free: 89.99 MB / 0.5887 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003774/4.087, allocations: 1.094 MB / 1.21 GB, free: 89.89 MB / 0.5887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003699/4.091, allocations: 107.4 kB / 1.21 GB, free: 89.89 MB / 0.5887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007721/4.099, allocations: 366 kB / 1.21 GB, free: 89.89 MB / 0.5887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001731/4.1, allocations: 362.8 kB / 1.211 GB, free: 89.88 MB / 0.5887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007361/4.101, allocations: 139.8 kB / 1.211 GB, free: 89.88 MB / 0.5887 GB Notification: Performance of sorting global known variables: time 0.01738/4.119, allocations: 7.309 MB / 1.218 GB, free: 89.55 MB / 0.5887 GB Notification: Performance of sort global known variables: time 1.07e-06/4.119, allocations: 0 / 1.218 GB, free: 89.55 MB / 0.5887 GB Notification: Performance of remove unused functions: time 0.01609/4.135, allocations: 2.789 MB / 1.221 GB, free: 89.55 MB / 0.5887 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.001258/4.136, allocations: 281.2 kB / 1.221 GB, free: 89.46 MB / 0.5887 GB Notification: Performance of simCode: created initialization part: time 0.02712/4.163, allocations: 14.04 MB / 1.235 GB, free: 86.06 MB / 0.5887 GB Notification: Performance of simCode: created event and clocks part: time 1.088e-05/4.163, allocations: 0 / 1.235 GB, free: 86.06 MB / 0.5887 GB Notification: Performance of simCode: created simulation system equations: time 0.01326/4.176, allocations: 6.088 MB / 1.241 GB, free: 83.75 MB / 0.5887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008989/4.186, allocations: 1.321 MB / 1.242 GB, free: 83.22 MB / 0.5887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05687/4.242, allocations: 24.39 MB / 1.266 GB, free: 74.28 MB / 0.5887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01764/4.26, allocations: 8.169 MB / 1.274 GB, free: 69.35 MB / 0.5887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004294/4.264, allocations: 0.7464 MB / 1.274 GB, free: 68.64 MB / 0.5887 GB Notification: Performance of SimCode: time 2.039e-06/4.264, allocations: 0 / 1.274 GB, free: 68.64 MB / 0.5887 GB Notification: Performance of Templates: time 1.231/5.495, allocations: 336.3 MB / 1.603 GB, free: 126.6 MB / 0.6199 GB