Running command: translateModel(ModelicaTest.MultiBody.Forces.FrameForcesAndTorques3,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.1_cpp_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques3") Notification: Performance of loadModel(ModelicaTest): time 2.055/2.055, allocations: 209.3 MB / 224.4 MB, free: 0.5039 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.15e-05/3.139e-05, allocations: 4 kB / 276.2 MB, free: 15.85 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4129/0.4129, allocations: 48.69 MB / 324.8 MB, free: 2.895 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.FrameForcesAndTorques3): time 0.1206/0.5336, allocations: 70.62 MB / 395.5 MB, free: 8.785 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.0487/0.5824, allocations: 15.15 MB / 410.6 MB, free: 9.594 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01869/0.6012, allocations: 371.2 kB / 411 MB, free: 9.23 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.014/0.6152, allocations: 3.76 MB / 414.7 MB, free: 5.453 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.04205/0.6573, allocations: 10.05 MB / 424.8 MB, free: 11.37 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.008627/0.666, allocations: 0.8893 MB / 425.7 MB, free: 10.48 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.07017/0.7363, allocations: 17.06 MB / 442.7 MB, free: 9.402 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01564/0.752, allocations: 6.515 MB / 449.3 MB, free: 2.844 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003958/0.756, allocations: 1.247 MB / 450.5 MB, free: 1.594 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006027/0.7621, allocations: 1.96 MB / 452.5 MB, free: 15.63 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004932/0.7671, allocations: 1.092 MB / 453.6 MB, free: 14.54 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001932/0.7691, allocations: 200 kB / 453.8 MB, free: 14.34 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004967/0.7741, allocations: 2.388 MB / 456.1 MB, free: 11.95 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002504/0.7766, allocations: 420 kB / 456.6 MB, free: 11.54 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01875/0.7954, allocations: 8.947 MB / 465.5 MB, free: 2.566 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.63e-06/0.7955, allocations: 0 / 465.5 MB, free: 2.566 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.266e-06/0.7955, allocations: 4 kB / 465.5 MB, free: 2.562 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0003884/0.7959, allocations: 0 / 465.5 MB, free: 2.562 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2370 * Number of variables: 2370 Notification: Performance of Generate backend data structure: time 0.03205/0.8279, allocations: 6.367 MB / 471.9 MB, free: 12.12 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.924e-05/0.828, allocations: 12.03 kB / 471.9 MB, free: 12.11 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1637/0.9918, allocations: 11.92 MB / 483.8 MB, free: 164 kB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2862/1.278, allocations: 4.575 MB / 488.4 MB, free: 126.8 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005568/1.279, allocations: 382.9 kB / 488.8 MB, free: 126.7 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002519/1.281, allocations: 0.4991 MB / 489.3 MB, free: 126.6 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05076/1.332, allocations: 16.53 MB / 0.4939 GB, free: 119.6 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003416/1.332, allocations: 60.22 kB / 0.494 GB, free: 119.6 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002324/1.335, allocations: 239.8 kB / 0.4942 GB, free: 119.5 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007021/1.342, allocations: 2.928 MB / 0.4971 GB, free: 118.8 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04463/1.386, allocations: 14.18 MB / 0.5109 GB, free: 106.5 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1001/1.487, allocations: 58.78 MB / 0.5683 GB, free: 46.86 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02922/1.516, allocations: 7.249 MB / 0.5754 GB, free: 39.47 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0355/1.551, allocations: 15.14 MB / 0.5902 GB, free: 24.3 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.859e-05/1.552, allocations: 68.5 kB / 0.5903 GB, free: 24.23 MB / 410.7 MB Notification: Performance of pre-optimization done (n=306): time 7.574e-06/1.552, allocations: 0 / 0.5903 GB, free: 24.23 MB / 410.7 MB Notification: Performance of matching and sorting (n=348): time 0.1448/1.696, allocations: 32.31 MB / 0.6218 GB, free: 7.633 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001583/1.697, allocations: 218.5 kB / 0.622 GB, free: 7.375 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01401/1.711, allocations: 4.986 MB / 0.6269 GB, free: 2.402 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001161/1.712, allocations: 81.64 kB / 0.627 GB, free: 2.316 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.2898/2.002, allocations: 4.203 MB / 0.6311 GB, free: 130.7 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002538/2.004, allocations: 1.279 MB / 0.6323 GB, free: 130 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001715/2.006, allocations: 160.5 kB / 0.6325 GB, free: 130 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0009328/2.007, allocations: 0.6541 MB / 0.6331 GB, free: 129.6 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01187/2.019, allocations: 3.672 MB / 0.6367 GB, free: 128.7 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01545/2.034, allocations: 8.095 MB / 0.6446 GB, free: 121.5 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01545/2.05, allocations: 5.343 MB / 0.6498 GB, free: 119.5 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002746/2.05, allocations: 44.16 kB / 0.6499 GB, free: 119.5 MB / 426.7 MB Notification: Performance of matching and sorting (n=1063) (initialization): time 0.04151/2.092, allocations: 13.01 MB / 0.6626 GB, free: 114.7 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001681/2.092, allocations: 70.12 kB / 0.6626 GB, free: 114.7 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003107/2.092, allocations: 156.3 kB / 0.6628 GB, free: 114.7 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007935/2.1, allocations: 1.784 MB / 0.6645 GB, free: 114.3 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01325/2.114, allocations: 1.923 MB / 0.6664 GB, free: 114.1 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02486/2.138, allocations: 12.33 MB / 0.6784 GB, free: 106.1 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01021/2.149, allocations: 0.4935 MB / 0.6789 GB, free: 105.7 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002116/2.151, allocations: 483.5 kB / 0.6794 GB, free: 105.2 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 705 * Number of states: 0 () * Number of discrete variables: 48 (fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.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],frameTorque2.torqueColor[3],frameTorque2.torqueColor[2],frameTorque2.torqueColor[1],frameTorque2.forceColor[3],frameTorque2.forceColor[2],frameTorque2.forceColor[1],frameTorque1.torqueColor[3],frameTorque1.torqueColor[2],frameTorque1.torqueColor[1],frameTorque1.forceColor[3],frameTorque1.forceColor[2],frameTorque1.forceColor[1],body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[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 (991): * Single equations (assignments): 986 * 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 {(2,100.0%) 23,(2,100.0%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.008878/2.16, allocations: 3.035 MB / 0.6823 GB, free: 102.4 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001515/2.161, allocations: 0.5014 MB / 0.6828 GB, free: 101.9 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03039/2.192, allocations: 7.645 MB / 0.6903 GB, free: 94.18 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.602e-05/2.192, allocations: 36 kB / 0.6903 GB, free: 94.14 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.175e-05/2.192, allocations: 8 kB / 0.6903 GB, free: 94.14 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001053/2.192, allocations: 19.94 kB / 0.6904 GB, free: 94.12 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.074/2.266, allocations: 16.41 MB / 0.7064 GB, free: 77.67 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.488e-05/2.266, allocations: 7.984 kB / 0.7064 GB, free: 77.66 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.009299/2.276, allocations: 0.6163 MB / 0.707 GB, free: 77.05 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01053/2.286, allocations: 1.522 MB / 0.7085 GB, free: 75.52 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00155/2.288, allocations: 61.08 kB / 0.7085 GB, free: 75.46 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03672/2.325, allocations: 11.53 MB / 0.7198 GB, free: 63.68 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.21e-06/2.325, allocations: 1.797 kB / 0.7198 GB, free: 63.68 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05474/2.379, allocations: 12.3 MB / 0.7318 GB, free: 51.29 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005873/2.385, allocations: 1.127 MB / 0.7329 GB, free: 50.14 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003022/2.388, allocations: 52 kB / 0.733 GB, free: 50.09 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008464/2.397, allocations: 248.3 kB / 0.7332 GB, free: 49.85 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001764/2.399, allocations: 198.1 kB / 0.7334 GB, free: 49.65 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008209/2.4, allocations: 89 kB / 0.7335 GB, free: 49.57 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.01245/2.412, allocations: 3.54 MB / 0.7369 GB, free: 46.05 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.322e-06/2.412, allocations: 0 / 0.7369 GB, free: 46.05 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0153/2.427, allocations: 1.655 MB / 0.7385 GB, free: 44.4 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 8 (Revolute1.phi,Revolute1.w,Revolute2.phi,Revolute2.w,Revolute3.phi,Revolute3.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 (294): * Single equations (assignments): 289 * 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.001832/2.429, allocations: 219 kB / 0.7387 GB, free: 44.19 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.03207/2.461, allocations: 9.068 MB / 0.7476 GB, free: 35.11 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.037e-05/2.461, allocations: 0 / 0.7476 GB, free: 35.11 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01604/2.478, allocations: 3.864 MB / 0.7514 GB, free: 31.21 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007872/2.485, allocations: 0.6219 MB / 0.752 GB, free: 30.59 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07186/2.557, allocations: 18.84 MB / 0.7704 GB, free: 11.69 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0147/2.572, allocations: 4.93 MB / 0.7752 GB, free: 6.723 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004771/2.577, allocations: 439.3 kB / 0.7756 GB, free: 6.293 MB / 426.7 MB Notification: Performance of SimCode: time 1.984e-06/2.577, allocations: 0 / 0.7756 GB, free: 6.293 MB / 426.7 MB Notification: Performance of Templates: time 0.5931/3.17, allocations: 142.9 MB / 0.9152 GB, free: 25.97 MB / 442.7 MB