Error Messages in Test Mod files

Why do I get error messages when I run mod files in the test directory of this nature:

ErrorException(“Unrecognized statement native perfect_foresight!(periods=100, linear_solve_algo=pardiso);”)
2024-08-03T02:39:35.430: End parser

This is in the file exmple1pf_pardiso.mod.

I am running these models using visual studio.

Thanks for reporting the problem.

  • In Dynare, Pardiso is an extension. You need first to load it with
using MKL, Pardiso
  • In normal mode, Dynare is hiding the long error stack trace. You can see it by adding the “stoponerror” option:
context = @dynare "example1pf_pardiso" "stoponerror";
  • In this particular case, the error message should be more explicit even in normal mode. I will fix it.
  • In practice, Pardiso is only usefull with very large models with several hundreds equations

Yes this works perfectly well after loading MKL and Pardiso. Thanks so much.