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.136/2.136, allocations: 235 MB / 247.6 MB, free: 14.36 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.356e-05/3.368e-05, allocations: 4.938 kB / 304.9 MB, free: 5.656 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3229/0.3229, allocations: 54.85 MB / 359.8 MB, free: 2.207 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1538/0.4768, allocations: 99.56 MB / 459.3 MB, free: 13.28 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002452/0.4771, allocations: 75.97 kB / 459.4 MB, free: 13.21 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8547/1.332, allocations: 170.1 MB / 0.6147 GB, free: 73.79 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.255e-06/1.332, allocations: 0 / 0.6147 GB, free: 73.79 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.000484/1.332, allocations: 172 kB / 0.6149 GB, free: 73.62 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.02623/1.359, allocations: 8.246 MB / 0.6229 GB, free: 65.29 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.473e-05/1.359, allocations: 12.03 kB / 0.623 GB, free: 65.28 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06099/1.42, allocations: 12.09 MB / 0.6348 GB, free: 53.16 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02905/1.449, allocations: 10.94 MB / 0.6454 GB, free: 42.14 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007226/1.449, allocations: 0.6381 MB / 0.6461 GB, free: 41.5 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003585/1.453, allocations: 0.8589 MB / 0.6469 GB, free: 40.64 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.09188/1.545, allocations: 19.73 MB / 0.6662 GB, free: 19.38 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008639/1.546, allocations: 111 kB / 0.6663 GB, free: 19.27 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00242/1.548, allocations: 403.8 kB / 0.6667 GB, free: 18.88 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00285/1.551, allocations: 1.819 MB / 0.6684 GB, free: 17.05 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0391/1.59, allocations: 15.74 MB / 0.6838 GB, free: 1.289 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4049/1.995, allocations: 82.09 MB / 0.764 GB, free: 32.55 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02495/2.02, allocations: 8.041 MB / 0.7718 GB, free: 31.85 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006536/2.027, allocations: 4.077 MB / 0.7758 GB, free: 31.8 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007682/2.028, allocations: 0.6709 MB / 0.7765 GB, free: 31.23 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.882e-05/2.028, allocations: 67.47 kB / 0.7765 GB, free: 31.19 MB / 474.7 MB Notification: Performance of pre-optimization done (n=311): time 8.206e-06/2.028, allocations: 0 / 0.7765 GB, free: 31.19 MB / 474.7 MB Notification: Performance of matching and sorting (n=335): time 0.08974/2.118, allocations: 26.25 MB / 0.8022 GB, free: 23.67 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.284e-05/2.118, allocations: 301.5 kB / 0.8024 GB, free: 23.35 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01477/2.132, allocations: 6.801 MB / 0.8091 GB, free: 21.07 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006444/2.133, allocations: 75.39 kB / 0.8092 GB, free: 21 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004068/2.137, allocations: 5.538 MB / 0.8146 GB, free: 16.7 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001618/2.139, allocations: 1.275 MB / 0.8158 GB, free: 15.77 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001074/2.14, allocations: 190.9 kB / 0.816 GB, free: 15.62 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0007484/2.141, allocations: 0.7191 MB / 0.8167 GB, free: 15.14 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007207/2.148, allocations: 3.434 MB / 0.8201 GB, free: 13.97 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01069/2.159, allocations: 9.054 MB / 0.8289 GB, free: 5.227 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01033/2.169, allocations: 5.535 MB / 0.8343 GB, free: 3.457 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001661/2.169, allocations: 58.91 kB / 0.8344 GB, free: 3.457 MB / 474.7 MB Notification: Performance of matching and sorting (n=1259) (initialization): time 0.03023/2.2, allocations: 12.32 MB / 0.8464 GB, free: 10.94 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001872/2.2, allocations: 94.34 kB / 0.8465 GB, free: 10.85 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003315/2.2, allocations: 200.5 kB / 0.8467 GB, free: 10.66 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003645/2.204, allocations: 1.058 MB / 0.8477 GB, free: 9.766 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01066/2.214, allocations: 2.247 MB / 0.8499 GB, free: 7.828 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01925/2.234, allocations: 11.3 MB / 0.8609 GB, free: 13.2 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01044/2.244, allocations: 0.5208 MB / 0.8614 GB, free: 12.73 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002187/2.246, allocations: 0.5714 MB / 0.862 GB, free: 12.17 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 912 * 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 (1179): * Single equations (assignments): 1172 * 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.002795/2.249, allocations: 0.8462 MB / 0.8628 GB, free: 11.33 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001841/2.251, allocations: 0.6749 MB / 0.8635 GB, free: 10.64 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01485/2.266, allocations: 5.965 MB / 0.8693 GB, free: 5.668 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.105e-05/2.266, allocations: 32 kB / 0.8693 GB, free: 5.637 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.137e-05/2.266, allocations: 12 kB / 0.8694 GB, free: 5.625 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.466e-05/2.266, allocations: 18.28 kB / 0.8694 GB, free: 5.625 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04247/2.309, allocations: 15.02 MB / 0.884 GB, free: 9.449 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.23e-05/2.309, allocations: 3.953 kB / 0.884 GB, free: 9.445 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004047/2.313, allocations: 0.5648 MB / 0.8846 GB, free: 8.992 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002902/2.316, allocations: 0.6989 MB / 0.8853 GB, free: 8.453 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006272/2.316, allocations: 59.19 kB / 0.8853 GB, free: 8.398 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3628/2.679, allocations: 10.14 MB / 0.8952 GB, free: 121.6 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.751e-06/2.679, allocations: 4.297 kB / 0.8952 GB, free: 121.6 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02063/2.7, allocations: 10.06 MB / 0.9051 GB, free: 120.6 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004079/2.704, allocations: 1.195 MB / 0.9062 GB, free: 120.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001623/2.706, allocations: 56.73 kB / 0.9063 GB, free: 120.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004266/2.71, allocations: 195.7 kB / 0.9065 GB, free: 120.5 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007743/2.711, allocations: 195.3 kB / 0.9067 GB, free: 120.5 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003764/2.711, allocations: 87.48 kB / 0.9067 GB, free: 120.5 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.01223/2.724, allocations: 4.848 MB / 0.9115 GB, free: 120.3 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.372e-06/2.724, allocations: 0 / 0.9115 GB, free: 120.3 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01166/2.735, allocations: 1.866 MB / 0.9133 GB, free: 120.3 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.000894/2.736, allocations: 209.3 kB / 0.9135 GB, free: 120.2 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0156/2.752, allocations: 8.535 MB / 0.9218 GB, free: 119.7 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 7.906e-06/2.752, allocations: 2 kB / 0.9218 GB, free: 119.7 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.005674/2.758, allocations: 3.13 MB / 0.9249 GB, free: 119.3 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005905/2.763, allocations: 0.9343 MB / 0.9258 GB, free: 119.3 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03535/2.799, allocations: 15.94 MB / 0.9414 GB, free: 116.3 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01284/2.812, allocations: 6.132 MB / 0.9474 GB, free: 114.8 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00275/2.815, allocations: 0.5156 MB / 0.9479 GB, free: 114.8 MB / 0.5105 GB Notification: Performance of SimCode: time 1.893e-06/2.815, allocations: 0 / 0.9479 GB, free: 114.8 MB / 0.5105 GB Notification: Performance of Templates: time 0.6149/3.43, allocations: 243 MB / 1.185 GB, free: 76.16 MB / 0.5105 GB