Running command: translateModel(ModelicaTest.MultiBody.Forces.Torque,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.Torque") Notification: Performance of loadModel(ModelicaTest): time 2.056/2.056, allocations: 209.2 MB / 224.4 MB, free: 0.5312 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.659e-05/3.653e-05, allocations: 7.938 kB / 276.1 MB, free: 15.88 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3629/0.3629, allocations: 48.7 MB / 324.8 MB, free: 2.891 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Torque): time 0.1151/0.4781, allocations: 71.37 MB / 396.2 MB, free: 8.051 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.05964/0.5378, allocations: 15.09 MB / 411.3 MB, free: 8.922 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0205/0.5583, allocations: 379.1 kB / 411.7 MB, free: 8.551 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01431/0.5727, allocations: 3.787 MB / 415.5 MB, free: 4.746 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.04252/0.6153, allocations: 10.16 MB / 425.6 MB, free: 10.56 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006574/0.6219, allocations: 0.8426 MB / 426.5 MB, free: 9.719 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.05135/0.6733, allocations: 17.22 MB / 443.7 MB, free: 8.488 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01404/0.6874, allocations: 6.681 MB / 450.4 MB, free: 1.75 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003197/0.6906, allocations: 1.29 MB / 451.6 MB, free: 468 kB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004488/0.6952, allocations: 2.03 MB / 453.7 MB, free: 14.42 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00349/0.6987, allocations: 0.987 MB / 454.7 MB, free: 13.43 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001539/0.7003, allocations: 192 kB / 454.8 MB, free: 13.25 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004262/0.7046, allocations: 2.509 MB / 457.4 MB, free: 10.73 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002134/0.7068, allocations: 436 kB / 457.8 MB, free: 10.3 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01415/0.7209, allocations: 8.904 MB / 466.7 MB, free: 1.379 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.721, allocations: 0 / 466.7 MB, free: 1.379 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.785e-06/0.721, allocations: 4 kB / 466.7 MB, free: 1.375 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.000397/0.7214, allocations: 0 / 466.7 MB, free: 1.375 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: 2384 * Number of variables: 2384 Notification: Performance of Generate backend data structure: time 0.02421/0.7456, allocations: 6.668 MB / 473.4 MB, free: 10.63 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.294e-05/0.7457, allocations: 8.031 kB / 473.4 MB, free: 10.62 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3968/1.142, allocations: 11.94 MB / 485.3 MB, free: 128 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01619/1.159, allocations: 4.821 MB / 490.1 MB, free: 126.1 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005343/1.159, allocations: 383.1 kB / 490.5 MB, free: 126 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002697/1.162, allocations: 0.5029 MB / 491 MB, free: 125.9 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04512/1.207, allocations: 15.76 MB / 0.4949 GB, free: 118.8 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002944/1.208, allocations: 61.77 kB / 0.4949 GB, free: 118.7 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001638/1.209, allocations: 243.9 kB / 0.4952 GB, free: 118.6 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006547/1.216, allocations: 2.83 MB / 0.4979 GB, free: 117.8 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04048/1.256, allocations: 13.16 MB / 0.5108 GB, free: 106.3 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1037/1.36, allocations: 61.16 MB / 0.5705 GB, free: 44.2 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02718/1.387, allocations: 6.733 MB / 0.5771 GB, free: 37.32 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0236/1.411, allocations: 9.338 MB / 0.5862 GB, free: 27.9 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.726e-05/1.411, allocations: 64.52 kB / 0.5863 GB, free: 27.83 MB / 410.7 MB Notification: Performance of pre-optimization done (n=269): time 7.204e-06/1.411, allocations: 0 / 0.5863 GB, free: 27.83 MB / 410.7 MB Notification: Performance of matching and sorting (n=311): time 0.1377/1.549, allocations: 32.09 MB / 0.6176 GB, free: 11.38 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001719/1.549, allocations: 240.2 kB / 0.6178 GB, free: 11.1 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01797/1.567, allocations: 6.471 MB / 0.6242 GB, free: 4.645 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009895/1.568, allocations: 69.7 kB / 0.6242 GB, free: 4.57 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005771/1.574, allocations: 4.555 MB / 0.6287 GB, free: 24 kB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.2868/1.861, allocations: 1.173 MB / 0.6298 GB, free: 129.6 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001571/1.862, allocations: 180.2 kB / 0.63 GB, free: 129.6 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0009779/1.863, allocations: 0.6958 MB / 0.6307 GB, free: 129.3 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01174/1.875, allocations: 3.668 MB / 0.6343 GB, free: 128.7 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01538/1.891, allocations: 8.919 MB / 0.643 GB, free: 120.4 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01486/1.906, allocations: 5.579 MB / 0.6484 GB, free: 118.3 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002992/1.906, allocations: 53.59 kB / 0.6485 GB, free: 118.3 MB / 426.7 MB Notification: Performance of matching and sorting (n=1181) (initialization): time 0.04051/1.946, allocations: 13.66 MB / 0.6618 GB, free: 113.4 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001732/1.947, allocations: 82.5 kB / 0.6619 GB, free: 113.4 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002904/1.947, allocations: 187.3 kB / 0.6621 GB, free: 113.4 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007785/1.955, allocations: 1.824 MB / 0.6639 GB, free: 113.1 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01403/1.969, allocations: 2.108 MB / 0.6659 GB, free: 112.8 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02432/1.993, allocations: 12.32 MB / 0.6779 GB, free: 104.7 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01094/2.004, allocations: 0.5325 MB / 0.6785 GB, free: 104.3 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002192/2.006, allocations: 0.5355 MB / 0.679 GB, free: 103.8 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 845 * Number of states: 0 () * Number of discrete variables: 60 (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],torque2.connectionLineColor[3],torque2.connectionLineColor[2],torque2.connectionLineColor[1],torque2.torqueColor[3],torque2.torqueColor[2],torque2.torqueColor[1],torque1.connectionLineColor[3],torque1.connectionLineColor[2],torque1.connectionLineColor[1],torque1.torqueColor[3],torque1.torqueColor[2],torque1.torqueColor[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 (1099): * Single equations (assignments): 1092 * 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.008736/2.015, allocations: 3.173 MB / 0.6821 GB, free: 101 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001636/2.017, allocations: 0.5871 MB / 0.6827 GB, free: 100.5 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02114/2.038, allocations: 6.964 MB / 0.6895 GB, free: 93.74 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.376e-05/2.038, allocations: 32 kB / 0.6895 GB, free: 93.71 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.319e-05/2.038, allocations: 8 kB / 0.6895 GB, free: 93.7 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.798e-05/2.038, allocations: 17.64 kB / 0.6895 GB, free: 93.69 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04542/2.084, allocations: 15.51 MB / 0.7047 GB, free: 78.18 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.515e-05/2.084, allocations: 4 kB / 0.7047 GB, free: 78.17 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005439/2.089, allocations: 0.524 MB / 0.7052 GB, free: 77.65 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007104/2.096, allocations: 1.521 MB / 0.7067 GB, free: 76.12 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009597/2.097, allocations: 61.47 kB / 0.7067 GB, free: 76.06 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02367/2.121, allocations: 11.49 MB / 0.7179 GB, free: 64.32 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.576e-06/2.121, allocations: 11.97 kB / 0.718 GB, free: 64.3 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02939/2.151, allocations: 12.14 MB / 0.7298 GB, free: 51.94 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004361/2.155, allocations: 1.18 MB / 0.731 GB, free: 50.73 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002642/2.158, allocations: 61.27 kB / 0.731 GB, free: 50.68 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005961/2.164, allocations: 207.7 kB / 0.7312 GB, free: 50.47 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001232/2.165, allocations: 190 kB / 0.7314 GB, free: 50.29 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005609/2.166, allocations: 85.47 kB / 0.7315 GB, free: 50.21 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0109/2.177, allocations: 4.636 MB / 0.736 GB, free: 45.59 MB / 426.7 MB Notification: Performance of sort global known variables: time 8.62e-07/2.177, allocations: 0 / 0.736 GB, free: 45.59 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.01092/2.188, allocations: 1.688 MB / 0.7377 GB, free: 43.91 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * 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 (254): * Single equations (assignments): 249 * 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.001402/2.189, allocations: 217.2 kB / 0.7379 GB, free: 43.69 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.02133/2.21, allocations: 8.983 MB / 0.7466 GB, free: 34.71 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.045e-05/2.21, allocations: 0 / 0.7466 GB, free: 34.71 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009593/2.22, allocations: 3.479 MB / 0.75 GB, free: 31.2 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006027/2.226, allocations: 0.7053 MB / 0.7507 GB, free: 30.5 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04271/2.269, allocations: 19.05 MB / 0.7693 GB, free: 11.37 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01044/2.279, allocations: 5.033 MB / 0.7742 GB, free: 6.301 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003482/2.283, allocations: 479.3 kB / 0.7747 GB, free: 5.832 MB / 426.7 MB Notification: Performance of SimCode: time 1.583e-06/2.283, allocations: 0 / 0.7747 GB, free: 5.832 MB / 426.7 MB Notification: Performance of Templates: time 0.6069/2.89, allocations: 148.3 MB / 0.9195 GB, free: 18.88 MB / 442.7 MB