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_3.2.2_cpp_ModelicaTest.MultiBody.Forces.ForcesAndTorques") Notification: Performance of loadModel(ModelicaTest): time 2.479/2.479, allocations: 234.9 MB / 250.1 MB, free: 10.01 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.659e-05/3.664e-05, allocations: 8 kB / 308 MB, free: 15.98 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3749/0.375, allocations: 54.86 MB / 362.9 MB, free: 12.06 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForcesAndTorques): time 0.1441/0.5191, allocations: 83.75 MB / 446.6 MB, free: 9.891 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.09835/0.6175, allocations: 17.48 MB / 464.1 MB, free: 8.355 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0209/0.6385, allocations: 439.1 kB / 464.5 MB, free: 7.926 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01553/0.6541, allocations: 4.468 MB / 469 MB, free: 3.438 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.05243/0.7066, allocations: 11.85 MB / 480.8 MB, free: 7.551 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.008403/0.715, allocations: 0.9556 MB / 481.8 MB, free: 6.594 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.05527/0.7703, allocations: 17.47 MB / 499.3 MB, free: 5.113 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.3887/1.159, allocations: 8.013 MB / 0.4954 GB, free: 18.91 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005176/1.164, allocations: 1.429 MB / 0.4968 GB, free: 18.91 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005455/1.17, allocations: 2.282 MB / 0.499 GB, free: 18.89 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003825/1.174, allocations: 0.9996 MB / 0.5 GB, free: 18.89 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002019/1.176, allocations: 211.1 kB / 0.5002 GB, free: 18.89 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004642/1.18, allocations: 2.852 MB / 0.503 GB, free: 18.89 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002832/1.183, allocations: 490.8 kB / 0.5034 GB, free: 18.89 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01529/1.199, allocations: 10.37 MB / 0.5136 GB, free: 18.19 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.743e-06/1.199, allocations: 0 / 0.5136 GB, free: 18.19 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.236e-06/1.199, allocations: 1.641 kB / 0.5136 GB, free: 18.19 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0005464/1.199, allocations: 0 / 0.5136 GB, free: 18.19 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2760 * Number of variables: 2760 Notification: Performance of Generate backend data structure: time 0.02672/1.226, allocations: 7.392 MB / 0.5208 GB, free: 13.99 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.923e-05/1.226, allocations: 15.69 kB / 0.5208 GB, free: 13.98 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1341/1.36, allocations: 12.12 MB / 0.5326 GB, free: 8.895 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01993/1.38, allocations: 5.185 MB / 0.5377 GB, free: 7.312 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000492/1.381, allocations: 452.7 kB / 0.5381 GB, free: 7.297 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003257/1.384, allocations: 0.5896 MB / 0.5387 GB, free: 7.285 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06993/1.454, allocations: 18.68 MB / 0.5569 GB, free: 9.66 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004894/1.455, allocations: 72.69 kB / 0.557 GB, free: 9.621 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002958/1.458, allocations: 282.3 kB / 0.5573 GB, free: 9.543 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.01212/1.47, allocations: 3.31 MB / 0.5605 GB, free: 6.848 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05845/1.528, allocations: 15.66 MB / 0.5758 GB, free: 11.89 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1459/1.674, allocations: 69.99 MB / 0.6442 GB, free: 2.52 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.04008/1.714, allocations: 8.564 MB / 0.6525 GB, free: 11.65 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03211/1.746, allocations: 11.73 MB / 0.664 GB, free: 1.469 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.818e-05/1.747, allocations: 67.25 kB / 0.6641 GB, free: 1.398 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=347): time 9.338e-06/1.747, allocations: 0 / 0.6641 GB, free: 1.398 MB / 0.5105 GB Notification: Performance of matching and sorting (n=389): time 0.5248/2.271, allocations: 38.33 MB / 0.7015 GB, free: 224.8 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001386/2.272, allocations: 247.7 kB / 0.7017 GB, free: 224.5 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0203/2.292, allocations: 6.855 MB / 0.7084 GB, free: 222.6 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.001365/2.293, allocations: 85.16 kB / 0.7085 GB, free: 222.6 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.005397/2.299, allocations: 4.988 MB / 0.7134 GB, free: 218.6 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.003134/2.302, allocations: 1.44 MB / 0.7148 GB, free: 217.6 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002044/2.304, allocations: 194.9 kB / 0.715 GB, free: 217.4 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.001004/2.305, allocations: 0.7358 MB / 0.7157 GB, free: 216.9 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01227/2.317, allocations: 4.204 MB / 0.7198 GB, free: 215.5 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0168/2.334, allocations: 9.755 MB / 0.7293 GB, free: 206.6 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01624/2.351, allocations: 6.296 MB / 0.7355 GB, free: 204.3 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002104/2.351, allocations: 54.81 kB / 0.7355 GB, free: 204.3 MB / 0.5417 GB Notification: Performance of matching and sorting (n=1302) (initialization): time 0.04563/2.397, allocations: 15.09 MB / 0.7502 GB, free: 195.5 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.000164/2.397, allocations: 91.94 kB / 0.7503 GB, free: 195.4 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003342/2.397, allocations: 196.9 kB / 0.7505 GB, free: 195.2 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008097/2.405, allocations: 1.84 MB / 0.7523 GB, free: 193.8 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01652/2.422, allocations: 2.385 MB / 0.7546 GB, free: 191.8 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02497/2.447, allocations: 12.42 MB / 0.7668 GB, free: 180.4 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01399/2.461, allocations: 0.5743 MB / 0.7673 GB, free: 179.8 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00305/2.464, allocations: 0.5747 MB / 0.7679 GB, free: 179.3 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 887 * Number of states: 0 () * Number of discrete variables: 66 (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.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.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.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1220): * Single equations (assignments): 1213 * 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.01216/2.476, allocations: 3.558 MB / 0.7714 GB, free: 175.7 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002657/2.479, allocations: 0.6479 MB / 0.772 GB, free: 175 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02777/2.507, allocations: 8.435 MB / 0.7802 GB, free: 166.6 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.815e-05/2.507, allocations: 44.73 kB / 0.7803 GB, free: 166.5 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.838e-05/2.507, allocations: 12 kB / 0.7803 GB, free: 166.5 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000108/2.507, allocations: 15.94 kB / 0.7803 GB, free: 166.5 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05846/2.565, allocations: 18.65 MB / 0.7985 GB, free: 147.8 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.669e-05/2.566, allocations: 10.53 kB / 0.7985 GB, free: 147.8 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007148/2.573, allocations: 0.706 MB / 0.7992 GB, free: 147.1 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007091/2.58, allocations: 1.538 MB / 0.8007 GB, free: 145.5 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001225/2.581, allocations: 71.98 kB / 0.8008 GB, free: 145.5 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0241/2.605, allocations: 11.59 MB / 0.8121 GB, free: 133.6 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.037e-05/2.605, allocations: 11.94 kB / 0.8121 GB, free: 133.6 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03491/2.64, allocations: 14.83 MB / 0.8266 GB, free: 118.3 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00552/2.646, allocations: 1.355 MB / 0.8279 GB, free: 116.9 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003067/2.649, allocations: 70.5 kB / 0.828 GB, free: 116.8 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007376/2.656, allocations: 255.6 kB / 0.8282 GB, free: 116.6 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001632/2.658, allocations: 242.8 kB / 0.8285 GB, free: 116.4 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005652/2.659, allocations: 99.98 kB / 0.8286 GB, free: 116.3 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.01352/2.672, allocations: 4.94 MB / 0.8334 GB, free: 111.4 MB / 0.5417 GB Notification: Performance of sort global known variables: time 9.02e-07/2.672, allocations: 0 / 0.8334 GB, free: 111.4 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01356/2.686, allocations: 1.902 MB / 0.8352 GB, free: 109.5 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 32 * 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 (329): * Single equations (assignments): 324 * 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.0018/2.688, allocations: 242.6 kB / 0.8355 GB, free: 109.2 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.02539/2.713, allocations: 10.26 MB / 0.8455 GB, free: 98.97 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.321e-05/2.713, allocations: 0 / 0.8455 GB, free: 98.97 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.01198/2.725, allocations: 4.136 MB / 0.8495 GB, free: 94.81 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007534/2.733, allocations: 0.7776 MB / 0.8503 GB, free: 94.04 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05276/2.786, allocations: 21.84 MB / 0.8716 GB, free: 72.07 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01343/2.799, allocations: 5.635 MB / 0.8771 GB, free: 66.39 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004667/2.804, allocations: 0.5267 MB / 0.8776 GB, free: 65.87 MB / 0.5417 GB Notification: Performance of SimCode: time 2.174e-06/2.804, allocations: 0 / 0.8776 GB, free: 65.87 MB / 0.5417 GB Notification: Performance of Templates: time 0.7454/3.549, allocations: 167.8 MB / 1.042 GB, free: 109.8 MB / 0.5417 GB