Thanks for your kind response.
As we noticed at the beginning of the simulation the output of the quaternion block does not give any output, it means it is not a real zero. Therfore, when it passes through the integration the response it NAN unless it is not solved by introduceing a real zero at the begining of the simulation.
Regards