Error in estimation, but model runs perfect in simulation

I have a fairly complex model that runs perfectly when simulated. The model is linear.

The impulse response functions look very reasonable.

I now try to estimate the model, but the estimation routine throws a “matrix must be positive definite” error.

I’ve tried suppressing all the estimated params except for one and the estimation routine runs fine. I then un-suppress parameters one by one. I find that the estimation becomes impossible (the error is thrown) as soon as I want to include any of the parameters from the exogenous portion of the model (parameters which govern the processes describing productivity, government expenditure, loan delinquencies, etc).

I’ve tried altering the observable variables, but the consistency of the error remains. Any ideas? Thank you ahead of time.

Without the files it is impossible to tell.

Before wasting yours and everyone’s time, I will try some simplifications to the model. If the problem persists, I’ll return and post. Thank you!

Surprisingly, merely deleting two of the observable variables made a night and day difference. It runs fine for now. If any additional problems spring up, I’ll reach out to this thread again.