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_3.2.1_cpp_ModelicaTest.MultiBody.Forces.FrameTorques2") Notification: Performance of loadModel(ModelicaTest): time 2.033/2.033, allocations: 209.3 MB / 224.4 MB, free: 0.5195 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.048e-05/3.041e-05, allocations: 4 kB / 276.1 MB, free: 15.87 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3862/0.3862, allocations: 48.69 MB / 324.8 MB, free: 2.887 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.FrameTorques2): time 0.1912/0.5775, allocations: 99.13 MB / 424 MB, free: 12.21 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.08231/0.6599, allocations: 20.58 MB / 444.6 MB, free: 7.574 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.03243/0.6924, allocations: 0.5106 MB / 445.1 MB, free: 7.062 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.02637/0.7188, allocations: 5.304 MB / 450.4 MB, free: 1.734 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0675/0.7864, allocations: 14.09 MB / 464.5 MB, free: 3.609 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.008489/0.795, allocations: 1.198 MB / 465.7 MB, free: 2.41 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.4252/1.22, allocations: 32.8 MB / 498.5 MB, free: 18 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01764/1.238, allocations: 9.08 MB / 0.4956 GB, free: 17.38 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004879/1.243, allocations: 1.721 MB / 0.4973 GB, free: 17.38 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006448/1.249, allocations: 2.771 MB / 0.5 GB, free: 17.37 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005077/1.254, allocations: 1.137 MB / 0.5011 GB, free: 17.36 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003411/1.258, allocations: 248.5 kB / 0.5014 GB, free: 17.36 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.006184/1.264, allocations: 3.334 MB / 0.5046 GB, free: 17.36 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00355/1.268, allocations: 0.5595 MB / 0.5052 GB, free: 17.36 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01885/1.287, allocations: 11.89 MB / 0.5168 GB, free: 12.17 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.182e-06/1.287, allocations: 0 / 0.5168 GB, free: 12.17 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.847e-06/1.287, allocations: 0 / 0.5168 GB, free: 12.17 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0006778/1.287, allocations: 4 kB / 0.5168 GB, free: 12.17 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2944 * Number of variables: 2944 Notification: Performance of Generate backend data structure: time 0.03002/1.318, allocations: 8.252 MB / 0.5248 GB, free: 6.043 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.76e-05/1.318, allocations: 8.031 kB / 0.5249 GB, free: 6.035 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2356/1.553, allocations: 21.64 MB / 0.546 GB, free: 1.691 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02464/1.578, allocations: 7.206 MB / 0.553 GB, free: 12.54 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007532/1.579, allocations: 492.5 kB / 0.5535 GB, free: 12.27 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003896/1.583, allocations: 0.6645 MB / 0.5541 GB, free: 11.83 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06421/1.647, allocations: 19.91 MB / 0.5736 GB, free: 12.44 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006789/1.648, allocations: 91.94 kB / 0.5737 GB, free: 12.38 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004218/1.652, allocations: 312.9 kB / 0.574 GB, free: 12.29 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.009119/1.661, allocations: 3.374 MB / 0.5773 GB, free: 9.559 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05815/1.719, allocations: 16.43 MB / 0.5933 GB, free: 14.05 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1692/1.889, allocations: 72.32 MB / 0.6639 GB, free: 2.473 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.3378/2.226, allocations: 8.28 MB / 0.672 GB, free: 219 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001278/2.228, allocations: 0.6651 MB / 0.6727 GB, free: 218.4 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.153e-05/2.228, allocations: 75.98 kB / 0.6728 GB, free: 218.4 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=311): time 7.414e-06/2.228, allocations: 1.25 kB / 0.6728 GB, free: 218.4 MB / 0.5105 GB Notification: Performance of matching and sorting (n=335): time 0.1499/2.378, allocations: 32.38 MB / 0.7044 GB, free: 206.9 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001247/2.378, allocations: 301.2 kB / 0.7047 GB, free: 206.6 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01886/2.397, allocations: 7.452 MB / 0.7119 GB, free: 204 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.000982/2.398, allocations: 79.95 kB / 0.712 GB, free: 204 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.005263/2.403, allocations: 5.505 MB / 0.7174 GB, free: 199.6 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.002355/2.406, allocations: 1.263 MB / 0.7186 GB, free: 198.6 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001542/2.407, allocations: 194.3 kB / 0.7188 GB, free: 198.5 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0008835/2.408, allocations: 0.7177 MB / 0.7195 GB, free: 198 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009939/2.418, allocations: 3.646 MB / 0.7231 GB, free: 195.6 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01371/2.432, allocations: 9.267 MB / 0.7321 GB, free: 184.4 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01357/2.445, allocations: 5.674 MB / 0.7377 GB, free: 178.9 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001875/2.446, allocations: 60 kB / 0.7377 GB, free: 178.9 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1251) (initialization): time 0.03698/2.483, allocations: 13.42 MB / 0.7508 GB, free: 165.4 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001563/2.483, allocations: 92.22 kB / 0.7509 GB, free: 165.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002865/2.483, allocations: 200 kB / 0.7511 GB, free: 165.1 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005483/2.489, allocations: 1.356 MB / 0.7524 GB, free: 163.8 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01454/2.503, allocations: 2.234 MB / 0.7546 GB, free: 161.5 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02176/2.525, allocations: 12.92 MB / 0.7672 GB, free: 148.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01225/2.537, allocations: 0.5538 MB / 0.7678 GB, free: 147.5 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002319/2.54, allocations: 0.5686 MB / 0.7683 GB, free: 147 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 904 * Number of states: 0 () * Number of discrete variables: 63 (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.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1171): * Single equations (assignments): 1164 * 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.01111/2.551, allocations: 3.813 MB / 0.772 GB, free: 143.1 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002119/2.553, allocations: 0.6749 MB / 0.7727 GB, free: 142.5 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02031/2.573, allocations: 6.505 MB / 0.7791 GB, free: 135.9 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.613e-05/2.574, allocations: 38.89 kB / 0.7791 GB, free: 135.9 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.755e-05/2.574, allocations: 12 kB / 0.7791 GB, free: 135.9 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.879e-05/2.574, allocations: 19.94 kB / 0.7791 GB, free: 135.9 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04799/2.622, allocations: 15.92 MB / 0.7947 GB, free: 119.9 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.151e-05/2.622, allocations: 0 / 0.7947 GB, free: 119.9 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006012/2.628, allocations: 0.5695 MB / 0.7952 GB, free: 119.4 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004766/2.633, allocations: 0.9789 MB / 0.7962 GB, free: 118.4 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009092/2.634, allocations: 63.73 kB / 0.7962 GB, free: 118.3 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01913/2.653, allocations: 11.79 MB / 0.8078 GB, free: 106 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.28e-06/2.653, allocations: 4.031 kB / 0.8078 GB, free: 106 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02784/2.681, allocations: 10.86 MB / 0.8184 GB, free: 94.99 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005026/2.686, allocations: 1.253 MB / 0.8196 GB, free: 93.71 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00317/2.689, allocations: 52 kB / 0.8196 GB, free: 93.66 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006829/2.696, allocations: 208.1 kB / 0.8198 GB, free: 93.45 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001239/2.697, allocations: 198.3 kB / 0.82 GB, free: 93.26 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004951/2.698, allocations: 83.98 kB / 0.8201 GB, free: 93.18 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.01416/2.712, allocations: 5.371 MB / 0.8254 GB, free: 87.81 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.262e-06/2.712, allocations: 3.938 kB / 0.8254 GB, free: 87.81 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.02173/2.734, allocations: 1.915 MB / 0.8272 GB, free: 85.9 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * 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 (276): * Single equations (assignments): 269 * 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.00202/2.736, allocations: 229.8 kB / 0.8274 GB, free: 85.68 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.03427/2.77, allocations: 9.211 MB / 0.8364 GB, free: 76.46 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.323e-05/2.77, allocations: 0 / 0.8364 GB, free: 76.46 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.01256/2.783, allocations: 3.386 MB / 0.8397 GB, free: 73.03 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01193/2.795, allocations: 0.9317 MB / 0.8407 GB, free: 72.09 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05429/2.849, allocations: 22.49 MB / 0.8626 GB, free: 49.54 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01415/2.863, allocations: 6.119 MB / 0.8686 GB, free: 43.38 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003831/2.867, allocations: 0.5228 MB / 0.8691 GB, free: 42.85 MB / 0.5105 GB Notification: Performance of SimCode: time 1.693e-06/2.867, allocations: 0 / 0.8691 GB, free: 42.85 MB / 0.5105 GB Notification: Performance of Templates: time 1.234/4.101, allocations: 246 MB / 1.109 GB, free: 188.4 MB / 0.5105 GB