Error using ones

Dear professor jpfeifer:
When we run the sod.mod file in dynare, there is a trouble that I don’t know how to solve it. The error information is coming up with the following message:
Error using ones
NaN and Inf not allowed.

Error in dyntable (line 58)
hh = hh char(32*ones(1,hlb)) deblank(headers(i,:)) …

Error in disp_moments (line 97)
dyntable(title,headers,labels,autocorr,size(labels,2)+2,8,4);

Error in stoch_simul (line 154)
disp_moments(oo_.endo_simul,var_list);

Error in sod (line 207)
info = stoch_simul(var_list_);

Error in dynare (line 120)
evalin(‘base’,fname) ;

Thank you much for your help and support!
The mod file as follows:
sod.mod (1.03 KB)

Your first two model equations are not linear, thus you cannot use the linear option of model. Apart from that, Dynare has trouble finding the steady state. Which Dynare version generated this error message?

Dear professor jpfeifer:
Thank you very much for your help!The first two model equations are not linear in my sod.mod.Under the guidance of you,we know how to solve it!
Best wishes!
Yun