Hello everyone, I encountered an error in the Dynare code while working on the DSGE model. Could you please help me check where the error occurred and provide me with an explanation? Thank you!

The error is as follows:

```
Warning: The matrix is singular within the working accuracy.
>Location: stochastic_stolvers (line 221)
Location: Resolve (line 115)
Location: check (line 45)
Location: t4. driver (line 638)
Location: Dynare (line 308)
Warning: The matrix is singular within the working accuracy.
>Location: stochastic_stolvers (line 223)
Location: Resolve (line 115)
Location: check (line 45)
Location: t4. driver (line 638)
Location: Dynare (line 308)
EIGENVALUES:
Modulus Real Imaginary
NaN NaN 0
NaN NaN 0
NaN NaN 0
NaN NaN 0
NaN NaN 0
NaN NaN 0
NaN NaN 0
NaN NaN 0
NaN NaN 0
NaN NaN 0
NaN NaN 0
NaN NaN 0
NaN NaN 0
NaN NaN 0
NaN NaN 0
There are 0 eigenvalue(s) larger than 1 in modulus for 0 forward-looking variable(s)
The rank condition is verified.
Warning: The matrix is singular within the working accuracy.
>Location: stochastic_stolvers (line 221)
Location: Resolve (line 115)
Location: stoch_stimul (line 108)
Location: t4. driver (line 650)
Location: Dynare (line 308)
Warning: The matrix is singular within the working accuracy.
>Location: stochastic_stolvers (line 223)
Location: Resolve (line 115)
Location: stoch_stimul (line 108)
Location: t4. driver (line 650)
Location: Dynare (line 308)
MODEL SUMMARY
Number of variables: 46
Number of stochastic shocks: 4
Number of state variables: 15
Number of jumpers: 0
Number of static variables: 31
MATRIX OF COVARIANCE OF EXOGENOUS SHOCKS
Variables eps_a eps_b eps_L1 eps_L2
eps_a 0.000064 0.000000 0.000000 0.000000
eps_b 0.000000 0.000064 0.000000 0.000000
eps_L1 0.000000 0.000000 0.000100 0.000000
eps_L2 0.000000 0.000000 0.000000 0.000100
POLICY AND TRANSITION FUNCTIONS
y_1 y_2 c_1 c_2 L_1 L_2 h_11 h_22 G_1 G_2 Land_1 Land_2
G_1(-1) 0 0 0 0 0 0 0 0 1.000000 0 0 0
G_2(-1) 0 0 0 0 0 0 0 0 0 1.000000 0 0
T_1(-1) 0 0 0 0 0 0 0 0 -0.350000 0 0 0
T_2(-1) 0 0 0 0 0 0 0 0 0 -0.350000 0 0
eps_b 0 0 0 0 0 0 0 0 1.000000 1.000000 0 0
Incorrect use of Schur
The input of SCHUR cannot contain NaN or Inf.
Error lyapunov_stymm (line 111)
[U,T] = schur(full(a));
Error th_autocovariances (line 106)
[variance_states, unit_root_Schur_vector] = lyapunov_symm(A, B*M_.Sigma_e*B',options_.lyapunov_fixed_point_tol,options_.qz_criterium,options_.lyapunov_complex_threshold, [],options_.debug);
Error disp_th-moments (line 61)
[oo_.gamma_y,stationary_vars] = th_autocovariances(dr, ivar, M_, options_, nodecomposition);
Error stoch_stimul (line 207)
oo_=disp_th_moments(oo_.dr, var_list,M_,options_,oo_);
Error t4. driver (line 650)
[info, oo_, options_, M_] = stoch_simul(M_, options_, oo_, var_list_);
Error dynare (line 308)
evalin('base',[fname '.driver']);
```

The code is as follows

t4.mod (5.5 KB)