Warning: Matrix is singular to working precision.
> In sim1 at 128
In simul at 126
In gshock_percentage2 at 240
In dynare at 180
Warning: Matrix is singular to working precision.
> In sim1 at 128
In simul at 126
In gshock_percentage2 at 240
In dynare at 180
Simulation terminated after 4 iterations.
Total time of simulation : 0.297
Error using sim1 (line 144)
Simulation terminated with NaN or Inf in the residuals
or endogenous variables. There is most likely something
wrong with your model.
Error in simul (line 126)
sim1;
Error in gshock_percentage2 (line 240)
simul();
Error in dynare (line 180)
evalin('base',fname) ;
Thanks