Hi wangshiye,
the reason is that you did not give initial values for your variables X_1 and X_2. What Dynare does in that case is to take zero as a starting value. But since you divide by them, this does not work and so it gives you NaN’s.
You have to declare initial values for all endogenous variables, otherwise you can run into problems like these.