Running command: translateModel(ModelicaTest.MultiBody.Forces.WorldForces,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.WorldForces") Notification: Performance of loadModel(ModelicaTest): time 2.336/2.336, allocations: 269 MB / 284.1 MB, free: 3.637 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.846e-05/3.851e-05, allocations: 8 kB / 349 MB, free: 10.76 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1331/0.1331, allocations: 61.89 MB / 410.9 MB, free: 12.86 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.WorldForces): time 0.464/0.5972, allocations: 91.73 MB / 0.4909 GB, free: 11.73 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.06096/0.6582, allocations: 19.14 MB / 0.5096 GB, free: 8.527 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02397/0.6823, allocations: 486.9 kB / 0.51 GB, free: 8.051 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01827/0.7006, allocations: 4.864 MB / 0.5148 GB, free: 3.164 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.05299/0.7536, allocations: 13.05 MB / 0.5275 GB, free: 6.082 MB / 442.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007911/0.7616, allocations: 1.022 MB / 0.5285 GB, free: 5.059 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 0.1796/0.9412, allocations: 70.39 MB / 0.5973 GB, free: 14.62 MB / 0.5105 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01525/0.9565, allocations: 7.128 MB / 0.6042 GB, free: 7.441 MB / 0.5105 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003625/0.9602, allocations: 1.352 MB / 0.6055 GB, free: 6.086 MB / 0.5105 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005098/0.9654, allocations: 2.143 MB / 0.6076 GB, free: 3.938 MB / 0.5105 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003602/0.969, allocations: 0.9442 MB / 0.6086 GB, free: 2.992 MB / 0.5105 GB Notification: Performance of NFPackage.collectConstants: time 0.001802/0.9709, allocations: 192 kB / 0.6087 GB, free: 2.805 MB / 0.5105 GB Notification: Performance of NFScalarize.scalarize: time 0.004814/0.9757, allocations: 2.681 MB / 0.6114 GB, free: 120 kB / 0.5105 GB Notification: Performance of NFVerifyModel.verify: time 0.3989/1.375, allocations: 463.5 kB / 0.6118 GB, free: 76.3 MB / 0.5105 GB Notification: Performance of NFConvertDAE.convert: time 0.02312/1.398, allocations: 9.454 MB / 0.621 GB, free: 75.67 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 6.593e-06/1.398, allocations: 0.75 kB / 0.621 GB, free: 75.67 MB / 0.5105 GB Notification: Performance of FrontEnd: time 3.898e-06/1.398, allocations: 0 / 0.621 GB, free: 75.67 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0005516/1.399, allocations: 1 kB / 0.621 GB, free: 75.67 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: 2429 * Number of variables: 2429 Notification: Performance of Generate backend data structure: time 0.03937/1.438, allocations: 6.69 MB / 0.6276 GB, free: 72.99 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 6.553e-05/1.438, allocations: 9.094 kB / 0.6276 GB, free: 72.99 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1882/1.626, allocations: 16.72 MB / 0.6439 GB, free: 67.84 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01837/1.645, allocations: 5.215 MB / 0.649 GB, free: 66.23 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004847/1.645, allocations: 402.6 kB / 0.6494 GB, free: 66.21 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003261/1.649, allocations: 0.5446 MB / 0.6499 GB, free: 66.2 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05425/1.703, allocations: 16.09 MB / 0.6656 GB, free: 59.14 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000457/1.703, allocations: 80.05 kB / 0.6657 GB, free: 59.09 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002419/1.706, allocations: 252.6 kB / 0.6659 GB, free: 59.02 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.01252/1.718, allocations: 3.059 MB / 0.6689 GB, free: 56.49 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05269/1.771, allocations: 13.19 MB / 0.6818 GB, free: 47.3 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1032/1.874, allocations: 63.09 MB / 0.7434 GB, free: 10.37 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0255/1.9, allocations: 5.563 MB / 0.7488 GB, free: 5.875 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003133/1.9, allocations: 43.84 kB / 0.7489 GB, free: 5.855 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.735e-05/1.9, allocations: 57.72 kB / 0.7489 GB, free: 5.809 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=229): time 7.094e-06/1.9, allocations: 0 / 0.7489 GB, free: 5.809 MB / 0.5261 GB Notification: Performance of matching and sorting (n=262): time 0.1323/2.033, allocations: 29.79 MB / 0.778 GB, free: 12.36 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001782/2.033, allocations: 288.7 kB / 0.7783 GB, free: 12.03 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01826/2.051, allocations: 6.743 MB / 0.7849 GB, free: 7.023 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0008962/2.052, allocations: 61.64 kB / 0.785 GB, free: 6.984 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.00574/2.058, allocations: 4.717 MB / 0.7896 GB, free: 3.395 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.002102/2.06, allocations: 1.019 MB / 0.7906 GB, free: 2.512 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00126/2.061, allocations: 168 kB / 0.7907 GB, free: 2.348 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0006925/2.062, allocations: 0.6742 MB / 0.7914 GB, free: 1.66 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009207/2.071, allocations: 3.181 MB / 0.7945 GB, free: 14.47 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01437/2.086, allocations: 8.395 MB / 0.8027 GB, free: 3.562 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01335/2.099, allocations: 5.039 MB / 0.8076 GB, free: 14.69 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000156/2.099, allocations: 52 kB / 0.8076 GB, free: 14.64 MB / 0.5886 GB Notification: Performance of matching and sorting (n=1112) (initialization): time 0.03836/2.138, allocations: 12.27 MB / 0.8196 GB, free: 3.469 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001542/2.138, allocations: 84.94 kB / 0.8197 GB, free: 3.387 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003057/2.138, allocations: 186.8 kB / 0.8199 GB, free: 3.207 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007142/2.145, allocations: 1.574 MB / 0.8214 GB, free: 1.625 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01333/2.159, allocations: 2.005 MB / 0.8234 GB, free: 15.79 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02583/2.184, allocations: 12.61 MB / 0.8357 GB, free: 2.898 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01081/2.195, allocations: 495.4 kB / 0.8362 GB, free: 2.414 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002152/2.198, allocations: 0.5117 MB / 0.8367 GB, free: 1.902 MB / 0.6042 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 842 * Number of states: 0 () * Number of discrete variables: 71 (forceAndTorque.torqueArrow.arrowLine.twoHeadedArrow,forceAndTorque.torqueArrow.headAtOrigin,forceAndTorque.forceArrow.arrowLine.twoHeadedArrow,forceAndTorque.forceArrow.headAtOrigin,worldTorque1.arrow.arrowLine.twoHeadedArrow,worldTorque1.arrow.headAtOrigin,worldForce.arrow.arrowLine.twoHeadedArrow,worldForce.arrow.headAtOrigin,forceAndTorque.torqueColor[3],forceAndTorque.torqueColor[2],forceAndTorque.torqueColor[1],forceAndTorque.forceColor[3],forceAndTorque.forceColor[2],forceAndTorque.forceColor[1],Revolute4.cylinderColor[3],Revolute4.cylinderColor[2],Revolute4.cylinderColor[1],fixed3.color[3],fixed3.color[2],fixed3.color[1],BodyCylinder3.color[3],BodyCylinder3.color[2],BodyCylinder3.color[1],BodyCylinder3.body.sphereColor[3],BodyCylinder3.body.sphereColor[2],BodyCylinder3.body.sphereColor[1],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.cylinderColor[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],worldTorque1.color[3],worldTorque1.color[2],worldTorque1.color[1],BodyCylinder2.color[3],BodyCylinder2.color[2],BodyCylinder2.color[1],BodyCylinder2.body.sphereColor[3],BodyCylinder2.body.sphereColor[2],BodyCylinder2.body.sphereColor[1],Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],fixed2.color[3],fixed2.color[2],fixed2.color[1],worldForce.color[3],worldForce.color[2],worldForce.color[1],BodyCylinder1.color[3],BodyCylinder1.color[2],BodyCylinder1.color[1],BodyCylinder1.body.sphereColor[3],BodyCylinder1.body.sphereColor[2],BodyCylinder1.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 (1037): * Single equations (assignments): 1031 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 13,(1,100.0%) 14,(2,100.0%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.45/2.648, allocations: 3.245 MB / 0.8398 GB, free: 152 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001965/2.65, allocations: 0.591 MB / 0.8404 GB, free: 152 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01989/2.669, allocations: 5.608 MB / 0.8459 GB, free: 151.8 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.882e-05/2.67, allocations: 29.5 kB / 0.8459 GB, free: 151.8 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.595e-05/2.67, allocations: 9.781 kB / 0.8459 GB, free: 151.8 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.422e-05/2.67, allocations: 17.41 kB / 0.846 GB, free: 151.8 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04367/2.713, allocations: 13.55 MB / 0.8592 GB, free: 151 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.99e-05/2.714, allocations: 0 / 0.8592 GB, free: 151 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004676/2.718, allocations: 461.7 kB / 0.8596 GB, free: 151 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006175/2.724, allocations: 1.25 MB / 0.8608 GB, free: 151 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001038/2.726, allocations: 49.72 kB / 0.8609 GB, free: 151 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0221/2.748, allocations: 11.66 MB / 0.8723 GB, free: 147 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.689e-06/2.748, allocations: 6.812 kB / 0.8723 GB, free: 147 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02378/2.772, allocations: 9.543 MB / 0.8816 GB, free: 145.9 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002656/2.774, allocations: 0.6826 MB / 0.8823 GB, free: 145.7 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003045/2.777, allocations: 39.94 kB / 0.8823 GB, free: 145.7 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006008/2.783, allocations: 157.3 kB / 0.8825 GB, free: 145.6 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001212/2.785, allocations: 158.5 kB / 0.8826 GB, free: 145.6 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003901/2.785, allocations: 72.12 kB / 0.8827 GB, free: 145.6 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.01304/2.798, allocations: 4.822 MB / 0.8874 GB, free: 144.6 MB / 0.6042 GB Notification: Performance of sort global known variables: time 9.81e-07/2.798, allocations: 0 / 0.8874 GB, free: 144.6 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.01231/2.81, allocations: 1.635 MB / 0.889 GB, free: 144.6 MB / 0.6042 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 8 (Revolute3.phi,Revolute3.w,Revolute4.phi,Revolute4.w,Revolute2.phi,Revolute2.w,Revolute1.phi,Revolute1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (204): * Single equations (assignments): 198 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(4,75.0%) 18,(1,100.0%) 11,(1,100.0%) 10} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001397/2.812, allocations: 208.8 kB / 0.8892 GB, free: 144.5 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0188/2.831, allocations: 7.998 MB / 0.897 GB, free: 140.9 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 7.945e-06/2.831, allocations: 2.859 kB / 0.897 GB, free: 140.9 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.007567/2.838, allocations: 2.943 MB / 0.8999 GB, free: 138.8 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007261/2.846, allocations: 0.813 MB / 0.9007 GB, free: 138.3 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04425/2.89, allocations: 18.76 MB / 0.919 GB, free: 122.1 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01211/2.902, allocations: 5.152 MB / 0.924 GB, free: 117.7 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002961/2.905, allocations: 461.7 kB / 0.9245 GB, free: 117.3 MB / 0.6042 GB Notification: Performance of SimCode: time 1.643e-06/2.905, allocations: 0 / 0.9245 GB, free: 117.3 MB / 0.6042 GB Notification: Performance of Templates: time 0.6943/3.599, allocations: 177.6 MB / 1.098 GB, free: 257.1 MB / 0.6355 GB