Running command: translateModel(ModelicaTest.MultiBody.Forces.ForcesAndTorques,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.ForcesAndTorques") Notification: Performance of loadModel(ModelicaTest): time 2.393/2.393, allocations: 269 MB / 284.1 MB, free: 3.641 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.102e-05/3.11e-05, allocations: 4 kB / 349 MB, free: 10.76 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1292/0.1292, allocations: 61.88 MB / 410.9 MB, free: 12.88 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForcesAndTorques): time 0.4666/0.5959, allocations: 85.83 MB / 496.7 MB, free: 1.684 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.05627/0.6522, allocations: 17.96 MB / 0.5026 GB, free: 15.67 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02261/0.6749, allocations: 459 kB / 0.5031 GB, free: 15.22 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01755/0.6925, allocations: 4.526 MB / 0.5075 GB, free: 10.67 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.04982/0.7424, allocations: 12.2 MB / 0.5194 GB, free: 14.45 MB / 442.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007379/0.7498, allocations: 0.9362 MB / 0.5203 GB, free: 13.51 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 0.1308/0.8806, allocations: 47.67 MB / 0.5669 GB, free: 13.8 MB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02215/0.9028, allocations: 7.892 MB / 0.5746 GB, free: 5.859 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004185/0.9071, allocations: 1.301 MB / 0.5759 GB, free: 4.555 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005964/0.9131, allocations: 1.987 MB / 0.5778 GB, free: 2.562 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004368/0.9175, allocations: 0.9403 MB / 0.5787 GB, free: 1.621 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001866/0.9194, allocations: 184 kB / 0.5789 GB, free: 1.441 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 0.005509/0.925, allocations: 2.618 MB / 0.5814 GB, free: 14.82 MB / 0.4948 GB Notification: Performance of NFVerifyModel.verify: time 0.002868/0.9279, allocations: 456 kB / 0.5819 GB, free: 14.37 MB / 0.4948 GB Notification: Performance of NFConvertDAE.convert: time 0.01647/0.9444, allocations: 9.379 MB / 0.591 GB, free: 4.969 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 5.491e-06/0.9445, allocations: 7.938 kB / 0.591 GB, free: 4.961 MB / 0.4948 GB Notification: Performance of FrontEnd: time 3.246e-06/0.9445, allocations: 0 / 0.591 GB, free: 4.961 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0005191/0.945, allocations: 0 / 0.591 GB, free: 4.961 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2487 * Number of variables: 2487 Notification: Performance of Generate backend data structure: time 0.02393/0.969, allocations: 6.721 MB / 0.5976 GB, free: 14.16 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.292e-05/0.9691, allocations: 8.031 kB / 0.5976 GB, free: 14.16 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1217/1.091, allocations: 12.02 MB / 0.6094 GB, free: 2.102 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.6829/1.774, allocations: 4.624 MB / 0.6139 GB, free: 171.8 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005678/1.774, allocations: 414.3 kB / 0.6143 GB, free: 171.7 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002627/1.777, allocations: 0.5414 MB / 0.6148 GB, free: 171.6 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05008/1.827, allocations: 16.96 MB / 0.6314 GB, free: 164.2 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003034/1.827, allocations: 66.23 kB / 0.6314 GB, free: 164.2 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001348/1.829, allocations: 264.3 kB / 0.6317 GB, free: 164.1 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.009997/1.839, allocations: 3.168 MB / 0.6348 GB, free: 163.5 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04438/1.883, allocations: 14.17 MB / 0.6486 GB, free: 154.5 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1049/1.988, allocations: 64.92 MB / 0.712 GB, free: 88.65 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03448/2.023, allocations: 7.391 MB / 0.7192 GB, free: 81.1 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02325/2.046, allocations: 10.18 MB / 0.7292 GB, free: 70.79 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.478e-05/2.046, allocations: 68.48 kB / 0.7292 GB, free: 70.72 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=277): time 7.724e-06/2.046, allocations: 2.25 kB / 0.7292 GB, free: 70.72 MB / 0.5105 GB Notification: Performance of matching and sorting (n=319): time 0.1735/2.22, allocations: 34.58 MB / 0.763 GB, free: 35.82 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.913e-05/2.22, allocations: 239.9 kB / 0.7632 GB, free: 35.53 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01391/2.234, allocations: 6.609 MB / 0.7697 GB, free: 28.94 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0009242/2.235, allocations: 73.69 kB / 0.7698 GB, free: 28.86 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.003799/2.239, allocations: 4.618 MB / 0.7743 GB, free: 24.25 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001931/2.241, allocations: 1.201 MB / 0.7754 GB, free: 23.06 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001097/2.242, allocations: 180 kB / 0.7756 GB, free: 22.89 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0006391/2.242, allocations: 0.6989 MB / 0.7763 GB, free: 22.18 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008866/2.251, allocations: 3.605 MB / 0.7798 GB, free: 18.56 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01214/2.263, allocations: 8.845 MB / 0.7884 GB, free: 7.117 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01227/2.276, allocations: 5.518 MB / 0.7938 GB, free: 1.594 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001458/2.276, allocations: 56 kB / 0.7939 GB, free: 1.539 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1179) (initialization): time 0.04495/2.321, allocations: 13.53 MB / 0.8071 GB, free: 4.004 MB / 0.5262 GB Notification: Performance of prepare postOptimizeDAE: time 0.000172/2.321, allocations: 84 kB / 0.8072 GB, free: 3.922 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003136/2.321, allocations: 184.5 kB / 0.8074 GB, free: 3.742 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008461/2.33, allocations: 1.822 MB / 0.8091 GB, free: 1.914 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.3768/2.707, allocations: 2.095 MB / 0.8112 GB, free: 160.2 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02864/2.735, allocations: 12.39 MB / 0.8233 GB, free: 155.3 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01062/2.746, allocations: 0.5179 MB / 0.8238 GB, free: 155.1 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002257/2.748, allocations: 0.536 MB / 0.8243 GB, free: 155.1 MB / 0.5262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 842 * Number of states: 0 () * Number of discrete variables: 83 (forceAndTorque2.torqueArrow.arrowLine.twoHeadedArrow,forceAndTorque2.torqueArrow.headAtOrigin,forceAndTorque2.forceArrow.arrowLine.twoHeadedArrow,forceAndTorque2.forceArrow.headAtOrigin,forceAndTorque1.torqueArrow.arrowLine.twoHeadedArrow,forceAndTorque1.torqueArrow.headAtOrigin,forceAndTorque1.forceArrow.arrowLine.twoHeadedArrow,forceAndTorque1.forceArrow.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],forceAndTorque2.connectionLineColor[3],forceAndTorque2.connectionLineColor[2],forceAndTorque2.connectionLineColor[1],forceAndTorque2.torqueColor[3],forceAndTorque2.torqueColor[2],forceAndTorque2.torqueColor[1],forceAndTorque2.forceArrow.color[3],forceAndTorque2.forceArrow.color[2],forceAndTorque2.forceArrow.color[1],forceAndTorque2.forceColor[3],forceAndTorque2.forceColor[2],forceAndTorque2.forceColor[1],forceAndTorque1.connectionLineColor[3],forceAndTorque1.connectionLineColor[2],forceAndTorque1.connectionLineColor[1],forceAndTorque1.torqueColor[3],forceAndTorque1.torqueColor[2],forceAndTorque1.torqueColor[1],forceAndTorque1.forceArrow.color[3],forceAndTorque1.forceArrow.color[2],forceAndTorque1.forceArrow.color[1],forceAndTorque1.forceColor[3],forceAndTorque1.forceColor[2],forceAndTorque1.forceColor[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 (1097): * Single equations (assignments): 1090 * 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.009918/2.758, allocations: 3.292 MB / 0.8275 GB, free: 153.8 MB / 0.5262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001849/2.76, allocations: 0.6 MB / 0.8281 GB, free: 153.8 MB / 0.5262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02336/2.784, allocations: 6.938 MB / 0.8349 GB, free: 151.3 MB / 0.5262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.207e-05/2.784, allocations: 33.25 kB / 0.8349 GB, free: 151.3 MB / 0.5262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.327e-05/2.784, allocations: 8.781 kB / 0.8349 GB, free: 151.3 MB / 0.5262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001007/2.784, allocations: 21.38 kB / 0.8349 GB, free: 151.3 MB / 0.5262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04899/2.833, allocations: 16.09 MB / 0.8507 GB, free: 145.7 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.114e-05/2.833, allocations: 8.562 kB / 0.8507 GB, free: 145.7 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005526/2.839, allocations: 0.5391 MB / 0.8512 GB, free: 145.6 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007125/2.846, allocations: 1.532 MB / 0.8527 GB, free: 145.3 MB / 0.5262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008819/2.847, allocations: 62.05 kB / 0.8527 GB, free: 145.3 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02478/2.872, allocations: 11.6 MB / 0.8641 GB, free: 139.3 MB / 0.5262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.014e-05/2.872, allocations: 15 kB / 0.8641 GB, free: 139.3 MB / 0.5262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02942/2.901, allocations: 12.44 MB / 0.8762 GB, free: 130.2 MB / 0.5262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002344/2.903, allocations: 0.7028 MB / 0.8769 GB, free: 129.5 MB / 0.5262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002799/2.906, allocations: 60 kB / 0.877 GB, free: 129.5 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006042/2.912, allocations: 199.7 kB / 0.8772 GB, free: 129.3 MB / 0.5262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001268/2.914, allocations: 201.7 kB / 0.8774 GB, free: 129.1 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000725/2.914, allocations: 82.5 kB / 0.8774 GB, free: 129 MB / 0.5262 GB Notification: Performance of sorting global known variables: time 0.01147/2.926, allocations: 4.757 MB / 0.8821 GB, free: 124.3 MB / 0.5262 GB Notification: Performance of sort global known variables: time 8.71e-07/2.926, allocations: 5.844 kB / 0.8821 GB, free: 124.3 MB / 0.5262 GB Notification: Performance of remove unused functions: time 0.01131/2.937, allocations: 1.708 MB / 0.8838 GB, free: 122.6 MB / 0.5262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 26 * 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 (261): * Single equations (assignments): 256 * 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.001476/2.939, allocations: 228.9 kB / 0.884 GB, free: 122.4 MB / 0.5262 GB Notification: Performance of simCode: created initialization part: time 0.02056/2.959, allocations: 8.884 MB / 0.8927 GB, free: 113.5 MB / 0.5262 GB Notification: Performance of simCode: created event and clocks part: time 1.121e-05/2.96, allocations: 0 / 0.8927 GB, free: 113.5 MB / 0.5262 GB Notification: Performance of simCode: created simulation system equations: time 0.009954/2.97, allocations: 3.522 MB / 0.8961 GB, free: 110 MB / 0.5262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006948/2.977, allocations: 0.7687 MB / 0.8968 GB, free: 109.2 MB / 0.5262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04386/3.02, allocations: 19.58 MB / 0.916 GB, free: 89.73 MB / 0.5262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01067/3.031, allocations: 5.21 MB / 0.9211 GB, free: 84.49 MB / 0.5262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003548/3.035, allocations: 475.3 kB / 0.9215 GB, free: 84.02 MB / 0.5262 GB Notification: Performance of SimCode: time 2.604e-06/3.035, allocations: 4 kB / 0.9215 GB, free: 84.02 MB / 0.5262 GB Notification: Performance of Templates: time 0.638/3.673, allocations: 152 MB / 1.07 GB, free: 140 MB / 0.5418 GB