Hi rafael.barbosa@chassisbrakes.com,
I can reproduce your error on my side too. It seems to be an exception inside Simulink.
Because the error doesn't say too much about what it caused and I don't have access to the Simulink code to debug it, I can only give you right now a workaround to be able to build the model.
The workaround is to go to Configuration Parameters > Code Generation > Report and uncheck the Static code metrics option.

The static code metrics report is not generated anyway because Simulink fails to parse the compiler's C standard header files, like stdint.h.

I hope this helps you,
Paul