Running command: translateModel(ModelicaTest.MultiBody.Forces.FrameTorques2,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.FrameTorques2") Notification: Performance of loadModel(ModelicaTest): time 2.411/2.411, allocations: 269 MB / 284.1 MB, free: 3.648 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.978e-05/3.989e-05, allocations: 4 kB / 349 MB, free: 10.78 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1349/0.135, allocations: 61.89 MB / 410.9 MB, free: 12.88 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.FrameTorques2): time 0.503/0.6381, allocations: 101.6 MB / 0.5005 GB, free: 1.816 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.06761/0.7057, allocations: 21.09 MB / 0.5211 GB, free: 12.66 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02551/0.7313, allocations: 0.53 MB / 0.5217 GB, free: 12.13 MB / 442.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01947/0.7508, allocations: 5.393 MB / 0.5269 GB, free: 6.715 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 0.07583/0.8267, allocations: 14.48 MB / 0.5411 GB, free: 8.203 MB / 458.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01122/0.838, allocations: 1.186 MB / 0.5422 GB, free: 7.016 MB / 458.7 MB Notification: Performance of NFFlatten.flatten: time 0.6836/1.522, allocations: 93.38 MB / 0.6334 GB, free: 71.28 MB / 0.5105 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01638/1.538, allocations: 8.898 MB / 0.6421 GB, free: 70.66 MB / 0.5105 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003816/1.542, allocations: 1.573 MB / 0.6436 GB, free: 70.65 MB / 0.5105 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005112/1.547, allocations: 2.443 MB / 0.646 GB, free: 70.64 MB / 0.5105 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004227/1.551, allocations: 1.074 MB / 0.6471 GB, free: 70.64 MB / 0.5105 GB Notification: Performance of NFPackage.collectConstants: time 0.00208/1.554, allocations: 213.5 kB / 0.6473 GB, free: 70.64 MB / 0.5105 GB Notification: Performance of NFScalarize.scalarize: time 0.004992/1.559, allocations: 3.042 MB / 0.6502 GB, free: 70.38 MB / 0.5105 GB Notification: Performance of NFVerifyModel.verify: time 0.003602/1.562, allocations: 0.5168 MB / 0.6507 GB, free: 70.33 MB / 0.5105 GB Notification: Performance of NFConvertDAE.convert: time 0.01891/1.581, allocations: 10.7 MB / 0.6612 GB, free: 61.05 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/1.581, allocations: 4 kB / 0.6612 GB, free: 61.05 MB / 0.5105 GB Notification: Performance of FrontEnd: time 3.237e-06/1.581, allocations: 0 / 0.6612 GB, free: 61.05 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0004489/1.582, allocations: 0 / 0.6612 GB, free: 61.05 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: 2607 * Number of variables: 2607 Notification: Performance of Generate backend data structure: time 0.03058/1.612, allocations: 7.454 MB / 0.6685 GB, free: 54.16 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.79e-05/1.612, allocations: 12.03 kB / 0.6685 GB, free: 54.14 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2252/1.838, allocations: 21.51 MB / 0.6895 GB, free: 33.94 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01947/1.857, allocations: 6.28 MB / 0.6956 GB, free: 29.39 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000544/1.858, allocations: 459.2 kB / 0.6961 GB, free: 29.14 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003003/1.861, allocations: 0.607 MB / 0.6967 GB, free: 28.73 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05024/1.911, allocations: 17.8 MB / 0.714 GB, free: 14.82 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000452/1.912, allocations: 87.67 kB / 0.7141 GB, free: 14.77 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00241/1.914, allocations: 285.2 kB / 0.7144 GB, free: 14.69 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00915/1.923, allocations: 3.135 MB / 0.7175 GB, free: 12.09 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0465/1.97, allocations: 14.68 MB / 0.7318 GB, free: 1.754 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1268/2.097, allocations: 65.73 MB / 0.796 GB, free: 11.16 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03239/2.129, allocations: 6.408 MB / 0.8022 GB, free: 5.074 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001165/2.13, allocations: 0.6465 MB / 0.8029 GB, free: 4.336 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.494e-05/2.13, allocations: 62.47 kB / 0.8029 GB, free: 4.266 MB / 0.573 GB Notification: Performance of pre-optimization done (n=231): time 9.438e-06/2.13, allocations: 112 / 0.8029 GB, free: 4.266 MB / 0.573 GB Notification: Performance of matching and sorting (n=255): time 0.139/2.269, allocations: 28.4 MB / 0.8307 GB, free: 7.629 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001778/2.27, allocations: 285.3 kB / 0.8309 GB, free: 7.293 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01871/2.288, allocations: 7.109 MB / 0.8379 GB, free: 220 kB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 0.0007259/2.289, allocations: 65.7 kB / 0.8379 GB, free: 148 kB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.6914/2.981, allocations: 5.046 MB / 0.8429 GB, free: 249.9 MB / 0.6043 GB Notification: Performance of collectInitialBindings (initialization): time 0.001896/2.982, allocations: 0.9896 MB / 0.8438 GB, free: 249.4 MB / 0.6043 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001472/2.984, allocations: 169.1 kB / 0.844 GB, free: 249.2 MB / 0.6043 GB Notification: Performance of setup shared object (initialization): time 0.001073/2.985, allocations: 0.6708 MB / 0.8446 GB, free: 248.8 MB / 0.6043 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009077/2.994, allocations: 2.978 MB / 0.8476 GB, free: 247.8 MB / 0.6043 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01284/3.007, allocations: 8.173 MB / 0.8555 GB, free: 239.8 MB / 0.6043 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01252/3.02, allocations: 4.805 MB / 0.8602 GB, free: 238.1 MB / 0.6043 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003501/3.02, allocations: 52.84 kB / 0.8603 GB, free: 238.1 MB / 0.6043 GB Notification: Performance of matching and sorting (n=1102) (initialization): time 0.03425/3.054, allocations: 11.61 MB / 0.8716 GB, free: 233.8 MB / 0.6043 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001736/3.055, allocations: 82.47 kB / 0.8717 GB, free: 233.8 MB / 0.6043 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003092/3.055, allocations: 184.8 kB / 0.8719 GB, free: 233.8 MB / 0.6043 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005532/3.06, allocations: 1.338 MB / 0.8732 GB, free: 233.5 MB / 0.6043 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01242/3.073, allocations: 1.937 MB / 0.8751 GB, free: 233.3 MB / 0.6043 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02141/3.094, allocations: 12.86 MB / 0.8876 GB, free: 224.9 MB / 0.6043 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01022/3.105, allocations: 491.7 kB / 0.8881 GB, free: 224.7 MB / 0.6043 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001883/3.107, allocations: 0.5053 MB / 0.8886 GB, free: 224.7 MB / 0.6043 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 839 * Number of states: 0 () * Number of discrete variables: 74 (frameTorque4.arrow.arrowLine.twoHeadedArrow,frameTorque4.arrow.headAtOrigin,frameTorque3.arrow.arrowLine.twoHeadedArrow,frameTorque3.arrow.headAtOrigin,frameTorque2.arrow.arrowLine.twoHeadedArrow,frameTorque2.arrow.headAtOrigin,frameTorque1.arrow.arrowLine.twoHeadedArrow,frameTorque1.arrow.headAtOrigin,Revolute4.cylinderColor[3],Revolute4.cylinderColor[2],Revolute4.cylinderColor[1],frameTorque4.color[3],frameTorque4.color[2],frameTorque4.color[1],frameTorque3.color[3],frameTorque3.color[2],frameTorque3.color[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],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.cylinderColor[1],Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],frameTorque2.color[3],frameTorque2.color[2],frameTorque2.color[1],frameTorque1.color[3],frameTorque1.color[2],frameTorque1.color[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 (1022): * Single equations (assignments): 1015 * 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 {(1,100.0%) 14,(1,100.0%) 14,(1,100.0%) 14,(1,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.008952/3.116, allocations: 3.467 MB / 0.892 GB, free: 223.1 MB / 0.6043 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001666/3.117, allocations: 0.6221 MB / 0.8926 GB, free: 222.7 MB / 0.6043 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01431/3.132, allocations: 4.97 MB / 0.8974 GB, free: 220.3 MB / 0.6043 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.516e-05/3.132, allocations: 32.38 kB / 0.8975 GB, free: 220.2 MB / 0.6043 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.75e-05/3.132, allocations: 12 kB / 0.8975 GB, free: 220.2 MB / 0.6043 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.292e-05/3.132, allocations: 15.91 kB / 0.8975 GB, free: 220.2 MB / 0.6043 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03733/3.169, allocations: 13.13 MB / 0.9103 GB, free: 207.9 MB / 0.6043 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.868e-05/3.169, allocations: 3.938 kB / 0.9103 GB, free: 207.9 MB / 0.6043 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004002/3.173, allocations: 403.4 kB / 0.9107 GB, free: 207.5 MB / 0.6043 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00468/3.178, allocations: 0.9995 MB / 0.9117 GB, free: 206.5 MB / 0.6043 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005921/3.179, allocations: 46.02 kB / 0.9117 GB, free: 206.4 MB / 0.6043 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01883/3.197, allocations: 11.79 MB / 0.9232 GB, free: 194.1 MB / 0.6043 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.42e-06/3.198, allocations: 7.969 kB / 0.9233 GB, free: 194.1 MB / 0.6043 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01989/3.217, allocations: 8.463 MB / 0.9315 GB, free: 185.5 MB / 0.6043 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002594/3.22, allocations: 0.7154 MB / 0.9322 GB, free: 184.8 MB / 0.6043 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002639/3.223, allocations: 44 kB / 0.9323 GB, free: 184.8 MB / 0.6043 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00537/3.228, allocations: 151.8 kB / 0.9324 GB, free: 184.6 MB / 0.6043 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000842/3.229, allocations: 153.7 kB / 0.9325 GB, free: 184.5 MB / 0.6043 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003563/3.229, allocations: 65.17 kB / 0.9326 GB, free: 184.4 MB / 0.6043 GB Notification: Performance of sorting global known variables: time 0.01184/3.241, allocations: 5.111 MB / 0.9376 GB, free: 179.3 MB / 0.6043 GB Notification: Performance of sort global known variables: time 6.71e-07/3.241, allocations: 0 / 0.9376 GB, free: 179.3 MB / 0.6043 GB Notification: Performance of remove unused functions: time 0.01065/3.252, allocations: 1.686 MB / 0.9392 GB, free: 177.6 MB / 0.6043 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 8 (Revolute3.phi,Revolute3.w,Revolute4.phi,Revolute4.w,Revolute1.phi,Revolute1.w,Revolute2.phi,Revolute2.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (195): * Single equations (assignments): 188 * 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 {(1,100.0%) 11,(1,100.0%) 11,(1,100.0%) 11,(1,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001112/3.253, allocations: 211.6 kB / 0.9394 GB, free: 177.4 MB / 0.6043 GB Notification: Performance of simCode: created initialization part: time 0.01698/3.27, allocations: 7.632 MB / 0.9469 GB, free: 169.8 MB / 0.6043 GB Notification: Performance of simCode: created event and clocks part: time 1.019e-05/3.27, allocations: 0.8906 kB / 0.9469 GB, free: 169.8 MB / 0.6043 GB Notification: Performance of simCode: created simulation system equations: time 0.005656/3.276, allocations: 2.68 MB / 0.9495 GB, free: 167.1 MB / 0.6043 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007222/3.283, allocations: 0.9124 MB / 0.9504 GB, free: 166.2 MB / 0.6043 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04343/3.327, allocations: 19.78 MB / 0.9697 GB, free: 146.3 MB / 0.6043 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01176/3.338, allocations: 5.573 MB / 0.9752 GB, free: 140.7 MB / 0.6043 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003189/3.342, allocations: 467.4 kB / 0.9756 GB, free: 140.3 MB / 0.6043 GB Notification: Performance of SimCode: time 1.743e-06/3.342, allocations: 0 / 0.9756 GB, free: 140.3 MB / 0.6043 GB Notification: Performance of Templates: time 0.7344/4.076, allocations: 219.8 MB / 1.19 GB, free: 167.6 MB / 0.6043 GB