The generalized Schur (QZ) decomposition failed!

I’ve read others posts about this issue but I still did not figure out how to solve this problem.

I got this message when i tried to run my code:

“The generalized Schur (QZ) decomposition failed. For more information, see the documentation for Lapack function dgges: info=46, n=44.”
F.m (1.8 KB)
master_steadystate.m (6.36 KB)
master.mod (9.31 KB)

Your steady state features various -Inf. That cannot work

Thank you Professor.

I solved this problem, but there is another problem:

"There are 14 eigenvalue(s) larger than 1 in modulus
for 11 forward-looking variable(s)

The rank condition ISN’T verified!

error: Blanchard Kahn conditions are not satisfied: no stable equilibrium"

I’ve read other post on this matter and I know that most of the time, this particular problem is related to timing. However that seems not to be the case because I’ve checked the timing and did not find the error.
F.m (1.8 KB)
master.mod (9.07 KB)
master_steadystate.m (6.13 KB)

This is almost surely a timing error. I would focus on debt holding D and the way the are split across sectors. The logic in [Timing of capital in two sector economy) might apply.