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.2_cpp_ModelicaTest.MultiBody.Forces.FrameTorques2") Notification: Performance of loadModel(ModelicaTest): time 2.284/2.284, allocations: 234.9 MB / 250.1 MB, free: 10 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.22e-05/3.217e-05, allocations: 4 kB / 308 MB, free: 15.99 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3708/0.3709, allocations: 54.86 MB / 362.8 MB, free: 12.05 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.FrameTorques2): time 0.153/0.524, allocations: 99.16 MB / 462 MB, free: 10.45 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.06147/0.5855, allocations: 20.61 MB / 482.6 MB, free: 5.77 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02356/0.6091, allocations: 0.5144 MB / 483.1 MB, free: 5.254 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01878/0.628, allocations: 5.312 MB / 488.4 MB, free: 15.92 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.05374/0.6817, allocations: 14.07 MB / 0.4907 GB, free: 1.805 MB / 426.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.008118/0.6899, allocations: 1.186 MB / 0.4919 GB, free: 0.6172 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.4536/1.144, allocations: 32.78 MB / 0.5239 GB, free: 15.77 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01727/1.161, allocations: 9.087 MB / 0.5328 GB, free: 15.14 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004631/1.166, allocations: 1.722 MB / 0.5345 GB, free: 15.14 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006612/1.172, allocations: 2.775 MB / 0.5372 GB, free: 13.64 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004958/1.177, allocations: 1.138 MB / 0.5383 GB, free: 12.71 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003004/1.18, allocations: 248 kB / 0.5385 GB, free: 12.46 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 0.006445/1.187, allocations: 3.332 MB / 0.5418 GB, free: 10.01 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00351/1.19, allocations: 0.5625 MB / 0.5423 GB, free: 9.445 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01956/1.21, allocations: 11.9 MB / 0.5539 GB, free: 15.09 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/1.21, allocations: 0.6562 kB / 0.5539 GB, free: 15.09 MB / 458.7 MB Notification: Performance of FrontEnd: time 3.426e-06/1.21, allocations: 0 / 0.5539 GB, free: 15.09 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0005457/1.211, allocations: 0 / 0.5539 GB, free: 15.09 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2948 * Number of variables: 2948 Notification: Performance of Generate backend data structure: time 0.03019/1.241, allocations: 8.265 MB / 0.562 GB, free: 7.453 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.372e-05/1.241, allocations: 12.02 kB / 0.562 GB, free: 7.441 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2671/1.508, allocations: 21.63 MB / 0.5832 GB, free: 3.109 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02276/1.531, allocations: 7.2 MB / 0.5902 GB, free: 13.95 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006526/1.532, allocations: 0.4919 MB / 0.5907 GB, free: 13.68 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003329/1.535, allocations: 0.6661 MB / 0.5913 GB, free: 13.24 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05984/1.595, allocations: 19.92 MB / 0.6108 GB, free: 13.84 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004948/1.595, allocations: 83.75 kB / 0.6109 GB, free: 13.79 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002593/1.598, allocations: 315.5 kB / 0.6112 GB, free: 13.7 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.008744/1.607, allocations: 3.378 MB / 0.6145 GB, free: 10.96 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05605/1.663, allocations: 16.44 MB / 0.6305 GB, free: 15.45 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1454/1.808, allocations: 72.37 MB / 0.7012 GB, free: 3.848 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.6483/2.457, allocations: 8.29 MB / 0.7093 GB, free: 245.4 MB / 0.5574 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001142/2.458, allocations: 0.6595 MB / 0.7099 GB, free: 244.8 MB / 0.5574 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.328e-05/2.458, allocations: 72.16 kB / 0.71 GB, free: 244.8 MB / 0.5574 GB Notification: Performance of pre-optimization done (n=311): time 7.504e-06/2.458, allocations: 0 / 0.71 GB, free: 244.8 MB / 0.5574 GB Notification: Performance of matching and sorting (n=335): time 0.1458/2.604, allocations: 32.39 MB / 0.7416 GB, free: 230.6 MB / 0.5574 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001444/2.604, allocations: 299.5 kB / 0.7419 GB, free: 230.3 MB / 0.5574 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01788/2.622, allocations: 7.448 MB / 0.7492 GB, free: 222.9 MB / 0.5574 GB Notification: Performance of collectPreVariables (initialization): time 0.0009561/2.623, allocations: 78.42 kB / 0.7492 GB, free: 222.8 MB / 0.5574 GB Notification: Performance of collectInitialEqns (initialization): time 0.004917/2.628, allocations: 5.514 MB / 0.7546 GB, free: 217.3 MB / 0.5574 GB Notification: Performance of collectInitialBindings (initialization): time 0.002191/2.63, allocations: 1.268 MB / 0.7559 GB, free: 216 MB / 0.5574 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00132/2.631, allocations: 192.9 kB / 0.7561 GB, free: 215.8 MB / 0.5574 GB Notification: Performance of setup shared object (initialization): time 0.0006906/2.632, allocations: 0.708 MB / 0.7567 GB, free: 215.1 MB / 0.5574 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009403/2.642, allocations: 3.647 MB / 0.7603 GB, free: 211.5 MB / 0.5574 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01255/2.654, allocations: 9.271 MB / 0.7694 GB, free: 199.6 MB / 0.5574 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01312/2.667, allocations: 5.673 MB / 0.7749 GB, free: 194.2 MB / 0.5574 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002077/2.668, allocations: 56 kB / 0.775 GB, free: 194.1 MB / 0.5574 GB Notification: Performance of matching and sorting (n=1251) (initialization): time 0.03567/2.703, allocations: 13.42 MB / 0.7881 GB, free: 180.7 MB / 0.5574 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001407/2.703, allocations: 88 kB / 0.7881 GB, free: 180.6 MB / 0.5574 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002579/2.704, allocations: 200.8 kB / 0.7883 GB, free: 180.4 MB / 0.5574 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005407/2.709, allocations: 1.352 MB / 0.7897 GB, free: 179 MB / 0.5574 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01382/2.723, allocations: 2.23 MB / 0.7918 GB, free: 176.8 MB / 0.5574 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02041/2.744, allocations: 12.93 MB / 0.8045 GB, free: 163.4 MB / 0.5574 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0113/2.755, allocations: 0.5508 MB / 0.805 GB, free: 162.8 MB / 0.5574 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001948/2.757, allocations: 0.5609 MB / 0.8055 GB, free: 162.2 MB / 0.5574 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.009577/2.766, allocations: 3.823 MB / 0.8093 GB, free: 158.4 MB / 0.5574 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00188/2.768, allocations: 0.6749 MB / 0.8099 GB, free: 157.7 MB / 0.5574 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01896/2.787, allocations: 6.51 MB / 0.8163 GB, free: 151.2 MB / 0.5574 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.02e-05/2.787, allocations: 32.94 kB / 0.8163 GB, free: 151.2 MB / 0.5574 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.194e-05/2.788, allocations: 12 kB / 0.8163 GB, free: 151.1 MB / 0.5574 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.051e-05/2.788, allocations: 11.95 kB / 0.8164 GB, free: 151.1 MB / 0.5574 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04486/2.832, allocations: 15.92 MB / 0.8319 GB, free: 135.2 MB / 0.5574 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.28e-05/2.833, allocations: 0 / 0.8319 GB, free: 135.2 MB / 0.5574 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005738/2.838, allocations: 0.5616 MB / 0.8324 GB, free: 134.7 MB / 0.5574 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004698/2.843, allocations: 0.9906 MB / 0.8334 GB, free: 133.6 MB / 0.5574 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008435/2.844, allocations: 67.88 kB / 0.8335 GB, free: 133.6 MB / 0.5574 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01877/2.863, allocations: 11.79 MB / 0.845 GB, free: 121.3 MB / 0.5574 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.498e-06/2.863, allocations: 4 kB / 0.845 GB, free: 121.3 MB / 0.5574 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02635/2.889, allocations: 10.84 MB / 0.8556 GB, free: 110.3 MB / 0.5574 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004562/2.894, allocations: 1.253 MB / 0.8568 GB, free: 109 MB / 0.5574 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002548/2.896, allocations: 63.52 kB / 0.8569 GB, free: 108.9 MB / 0.5574 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006653/2.903, allocations: 207.7 kB / 0.8571 GB, free: 108.7 MB / 0.5574 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001165/2.904, allocations: 198.3 kB / 0.8573 GB, free: 108.6 MB / 0.5574 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003883/2.905, allocations: 83.95 kB / 0.8573 GB, free: 108.5 MB / 0.5574 GB Notification: Performance of sorting global known variables: time 0.01284/2.918, allocations: 5.367 MB / 0.8626 GB, free: 103.1 MB / 0.5574 GB Notification: Performance of sort global known variables: time 1.092e-06/2.918, allocations: 3.938 kB / 0.8626 GB, free: 103.1 MB / 0.5574 GB Notification: Performance of remove unused functions: time 0.01175/2.929, allocations: 1.915 MB / 0.8644 GB, free: 101.2 MB / 0.5574 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.001349/2.931, allocations: 227.1 kB / 0.8647 GB, free: 101 MB / 0.5574 GB Notification: Performance of simCode: created initialization part: time 0.02194/2.953, allocations: 9.215 MB / 0.8737 GB, free: 91.78 MB / 0.5574 GB Notification: Performance of simCode: created event and clocks part: time 1.077e-05/2.953, allocations: 0 / 0.8737 GB, free: 91.78 MB / 0.5574 GB Notification: Performance of simCode: created simulation system equations: time 0.008284/2.961, allocations: 3.37 MB / 0.877 GB, free: 88.37 MB / 0.5574 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008097/2.969, allocations: 0.9388 MB / 0.8779 GB, free: 87.43 MB / 0.5574 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05184/3.021, allocations: 22.5 MB / 0.8998 GB, free: 64.87 MB / 0.5574 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01318/3.034, allocations: 6.122 MB / 0.9058 GB, free: 58.71 MB / 0.5574 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003532/3.038, allocations: 0.5228 MB / 0.9063 GB, free: 58.18 MB / 0.5574 GB Notification: Performance of SimCode: time 1.723e-06/3.038, allocations: 0 / 0.9063 GB, free: 58.18 MB / 0.5574 GB Notification: Performance of Templates: time 0.8368/3.875, allocations: 246.2 MB / 1.147 GB, free: 41.97 MB / 0.5574 GB