Sawtooth Pattern IRF

Hi,

I have a problem while computing the IRFs of a model I am developing. Basically as the title says, when I ask Dynare to show me the IRF of the variables they appear in a sawtooth pattern. My bet is I did something wrong with the code, but I have been unable to identify the error. The model is supposed to be a doge with small firms and big firms, in order to built it I created first smaller version of the model with each type of firm that do not have this error. Would you have any suggestion on what could be the problem? (I found that someone had the same problem
Similar question)

Any help is deeply appreciated
Best
MarioFullmodel.mod (8.2 KB)

There is a timing issue here, giving rise to a complex eigenvalue. My guess it is related to