The specific issue has to due with the ZOH blocks in your "modelo de clusteres" subsystem. If you remove these blocks or set the sample time to "Ts" then the issue goes away.
That being said, prior to running this model on the RT Box there are many fundamental changes required to your model. Some major changes are to 1) use the "Full Bridges (Series Connected)" power modules for your MMC power stage 2) use the "PWM Out" block and" PWM Capture" block for PWM generation and sensing.
Refer to the RT Box tutorials to get started, particularly the Real-Time Workflow section of the Introduction to the RT Box tutorial which outlines the steps to take a conventional PLECS model and modify it for real-time.