Search and matching model: timing issue

Dear Dynareist!

I build a search and matching model with borrowing constraint. However, I have to make n = n1(+1) + n2(+1) to have the MOD running. This equation is incorrect.

If I use n = n1 + n2, I got Blanchard & Kahn conditions violation due to indeterminacy caused by rank failure. I have tried to make all the search-and-matching related variables one period backwards, but the error is persistent.

I have attached MOD file, please any advice is appreciated!
SLW.mod (7.3 KB)

This looks like a sectoral issue. See e.g.

Thank you Prof.jpfeifer! Problem solved.