Guidance request

Dear friends,
how can solve the following error?
"Error using print_info (line 32)
The generalized Schur (QZ) decomposition failed. For more information, see the documentation for
Lapack function dgges: info=30, n=24. You can also run model_diagnostics to get more information
on what may cause this problem.

Error in check (line 48)
print_info(info, 0, options);

Error in bhet.driver (line 720)
oo_.dr.eigval = check(M_,options_,oo_);

Error in dynare (line 281)
evalin(‘base’,[fname ‘.driver’]);"

This looks like a very fundamental problem in your model. As a first step, thoroughly check your timing.

Dear Pr. JPfeifer
my file is attached
ben_sim.mod (2.1 KB)

I am getting

ERROR: If the model is declared linear the second derivatives must be equal to zero.
       The following equations have non-zero second derivatives:
       * Eq # 3 [pi]

So there must be a mistake in the linearization or the entered equation.