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.2_cpp_ModelicaTest.MultiBody.Forces.Torque") Notification: Performance of loadModel(ModelicaTest): time 2.127/2.127, allocations: 235 MB / 247.6 MB, free: 14.36 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.71e-05/3.717e-05, allocations: 7.984 kB / 304.9 MB, free: 5.656 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3221/0.3221, allocations: 54.85 MB / 359.8 MB, free: 2.664 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1557/0.4779, allocations: 101.4 MB / 461.2 MB, free: 11.57 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002449/0.4781, allocations: 71.97 kB / 461.2 MB, free: 11.5 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7526/1.231, allocations: 132 MB / 0.5793 GB, free: 98.92 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.906e-06/1.231, allocations: 0 / 0.5793 GB, free: 98.92 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0003871/1.231, allocations: 137.2 kB / 0.5794 GB, free: 98.92 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: 2388 * Number of variables: 2388 Notification: Performance of Generate backend data structure: time 0.02123/1.252, allocations: 6.665 MB / 0.586 GB, free: 95.71 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.227e-05/1.252, allocations: 7.438 kB / 0.586 GB, free: 95.71 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04013/1.293, allocations: 7.138 MB / 0.5929 GB, free: 93.15 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02206/1.315, allocations: 7.427 MB / 0.6002 GB, free: 89.04 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000556/1.315, allocations: 0.5069 MB / 0.6007 GB, free: 88.57 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002727/1.318, allocations: 0.6691 MB / 0.6013 GB, free: 87.94 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03807/1.356, allocations: 15.99 MB / 0.617 GB, free: 70.59 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003683/1.357, allocations: 91.16 kB / 0.617 GB, free: 70.5 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002339/1.359, allocations: 325.6 kB / 0.6174 GB, free: 70.22 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002677/1.362, allocations: 1.548 MB / 0.6189 GB, free: 68.67 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03123/1.393, allocations: 12.67 MB / 0.6312 GB, free: 55.97 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4157/1.809, allocations: 72.98 MB / 0.7025 GB, free: 94.47 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02202/1.831, allocations: 6.423 MB / 0.7088 GB, free: 93.78 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006692/1.837, allocations: 3.671 MB / 0.7124 GB, free: 93.73 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02046/1.858, allocations: 9.289 MB / 0.7214 GB, free: 92.32 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.646e-05/1.858, allocations: 69.81 kB / 0.7215 GB, free: 92.28 MB / 474.7 MB Notification: Performance of pre-optimization done (n=269): time 8.012e-06/1.858, allocations: 0.5312 kB / 0.7215 GB, free: 92.28 MB / 474.7 MB Notification: Performance of matching and sorting (n=311): time 0.09203/1.95, allocations: 25.85 MB / 0.7468 GB, free: 85.6 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.891e-05/1.95, allocations: 245 kB / 0.747 GB, free: 85.34 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01342/1.964, allocations: 6.097 MB / 0.7529 GB, free: 83.17 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000642/1.964, allocations: 72.92 kB / 0.753 GB, free: 83.1 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003385/1.968, allocations: 4.594 MB / 0.7575 GB, free: 79.44 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001541/1.969, allocations: 1.176 MB / 0.7586 GB, free: 78.58 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008975/1.97, allocations: 180.5 kB / 0.7588 GB, free: 78.44 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0005803/1.971, allocations: 0.6953 MB / 0.7595 GB, free: 77.96 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007662/1.979, allocations: 3.49 MB / 0.7629 GB, free: 76.77 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01022/1.989, allocations: 8.72 MB / 0.7714 GB, free: 68.53 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0108/2, allocations: 5.483 MB / 0.7768 GB, free: 66.91 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001721/2, allocations: 55.75 kB / 0.7768 GB, free: 66.91 MB / 474.7 MB Notification: Performance of matching and sorting (n=1176) (initialization): time 0.03156/2.031, allocations: 12.75 MB / 0.7893 GB, free: 62.63 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001478/2.032, allocations: 87.94 kB / 0.7894 GB, free: 62.55 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002189/2.032, allocations: 195.2 kB / 0.7896 GB, free: 62.36 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005237/2.037, allocations: 1.702 MB / 0.7912 GB, free: 61.08 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00974/2.047, allocations: 2.124 MB / 0.7933 GB, free: 59.27 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01679/2.064, allocations: 11.35 MB / 0.8044 GB, free: 49.07 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0096/2.073, allocations: 0.5328 MB / 0.8049 GB, free: 48.61 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001819/2.075, allocations: 0.5359 MB / 0.8054 GB, free: 48.09 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 850 * 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 (1104): * Single equations (assignments): 1099 * 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.001616/2.077, allocations: 0.7939 MB / 0.8062 GB, free: 47.3 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001301/2.078, allocations: 0.5935 MB / 0.8068 GB, free: 46.7 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0145/2.093, allocations: 6.686 MB / 0.8133 GB, free: 41.28 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.761e-05/2.093, allocations: 32 kB / 0.8133 GB, free: 41.25 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.938e-05/2.093, allocations: 12 kB / 0.8133 GB, free: 41.24 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.284e-05/2.093, allocations: 15.59 kB / 0.8134 GB, free: 41.23 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03525/2.128, allocations: 15.12 MB / 0.8281 GB, free: 28.73 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.27e-05/2.128, allocations: 4.469 kB / 0.8281 GB, free: 28.73 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003716/2.132, allocations: 0.5655 MB / 0.8287 GB, free: 28.16 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004596/2.137, allocations: 1.411 MB / 0.8301 GB, free: 26.75 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006756/2.137, allocations: 60 kB / 0.8301 GB, free: 26.69 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01594/2.153, allocations: 10.49 MB / 0.8404 GB, free: 15.94 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.329e-06/2.153, allocations: 7.938 kB / 0.8404 GB, free: 15.93 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02062/2.174, allocations: 11.73 MB / 0.8518 GB, free: 3.98 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003708/2.178, allocations: 1.153 MB / 0.853 GB, free: 2.801 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001697/2.179, allocations: 57.12 kB / 0.853 GB, free: 2.746 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004619/2.184, allocations: 214.9 kB / 0.8532 GB, free: 2.539 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009629/2.185, allocations: 185.9 kB / 0.8534 GB, free: 2.359 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003548/2.185, allocations: 84 kB / 0.8535 GB, free: 2.277 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.01091/2.196, allocations: 4.352 MB / 0.8577 GB, free: 13.94 MB / 490.7 MB Notification: Performance of sort global known variables: time 4.06e-06/2.196, allocations: 0 / 0.8577 GB, free: 13.94 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01116/2.208, allocations: 1.649 MB / 0.8593 GB, free: 12.3 MB / 490.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.001034/2.209, allocations: 217.9 kB / 0.8595 GB, free: 12.09 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01961/2.228, allocations: 8.396 MB / 0.8677 GB, free: 3.699 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.337e-05/2.228, allocations: 4.375 kB / 0.8677 GB, free: 3.695 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007991/2.236, allocations: 3.297 MB / 0.871 GB, free: 392 kB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005237/2.242, allocations: 0.7007 MB / 0.8716 GB, free: 15.71 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3618/2.603, allocations: 13.91 MB / 0.8852 GB, free: 123.9 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01228/2.616, allocations: 5.032 MB / 0.8901 GB, free: 123 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002839/2.619, allocations: 475.5 kB / 0.8906 GB, free: 123 MB / 0.4948 GB Notification: Performance of SimCode: time 1.764e-06/2.619, allocations: 0 / 0.8906 GB, free: 123 MB / 0.4948 GB Notification: Performance of Templates: time 0.2111/2.83, allocations: 146 MB / 1.033 GB, free: 27.54 MB / 0.4948 GB