Error using ==> SVD

Hi,
I’m having the following error

??? Error using ==> svd
Input to SVD must not contain NaN or Inf.

Error in ==> cond at 40
s = svd(A);

Error in ==> solve1 at 118
elseif bad_cond_flag && cond(fjac) > 1/sqrt(eps)

Error in ==> dynare_solve at 76
[x,info]=solve1(func,x,1:nn,1:nn,jacobian_flag,1,varargin{:});

Error in ==> steady_ at 120
[oo_.steady_state,check] = dynare_solve([M_.fname ‘_static’],…

Error in ==> steady at 54
steady_;

Error in ==> usmodelST1shocks at 474
steady;

Error in ==> dynare at 132
evalin(‘base’,fname) ;

I have computed the residuals from the steady state guess and it looks ok. Any idea where the problem is?
Attached my code
Thanks!
j
usmodelST1shocks.mod (7.71 KB)

Hi,

You have some NaN in the jacobian of your model.

You write “ewma(-1)^cmaw” while “ewma=0” and “cmaw=0”: the derivative of this object is undefined. Similarly, you have “epinfma(-1)^cmap”.

Best,