RTI1401 ( Dspace) can't build with following "Block Reduction" function enable.
https://www.mathworks.com/help/simulink/gui/block-reduction.html
Please open Simulink model's Configuration Parameter Setting.
Simulation Target (on left side) > scroll down (on right side) and open ... (= Detailed setting parameters) > un-check "Block Reduction"