# Error Messages in Test Mod files

**URL:** https://forum.dynare.org/t/error-messages-in-test-mod-files/26191
**Category:** Dynare Julia
**Created:** [2 August 2024 23:50 UTC](https://forum.dynare.org/t/error-messages-in-test-mod-files/26191 "2024-08-02T23:50:11Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![JMATOVU](https://forum.dynare.org/letter_avatar_proxy/v4/letter/j/838e76/32.png) [@JMATOVU](https://forum.dynare.org/u/JMATOVU)
#### Post date: [2 August 2024 23:50 UTC](https://forum.dynare.org/t/error-messages-in-test-mod-files/26191/1 "2024-08-02T23:50:11Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![MichelJuillard](https://forum.dynare.org/user_avatar/forum.dynare.org/micheljuillard/32/5318_2.png) [@MichelJuillard](https://forum.dynare.org/u/MichelJuillard)
#### Post date: [3 August 2024 08:27 UTC](https://forum.dynare.org/t/error-messages-in-test-mod-files/26191/2 "2024-08-03T08:27:16Z")

</div>

Thanks for reporting the problem.

- In Dynare, Pardiso is an extension. You need first to load it with

```auto
using MKL, Pardiso

```

- In normal mode, Dynare is hiding the long error stack trace. You can see it by adding the “stoponerror” option:

```auto
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

---

<div class="post-metadata">

### Author: ![JMATOVU](https://forum.dynare.org/letter_avatar_proxy/v4/letter/j/838e76/32.png) [@JMATOVU](https://forum.dynare.org/u/JMATOVU)
#### Post date: [3 August 2024 22:04 UTC](https://forum.dynare.org/t/error-messages-in-test-mod-files/26191/3 "2024-08-03T22:04:20Z")

</div>

> [@MichelJuillard](#):
>
> `context = @dynare "example1pf_pardiso" "stoponerror";`

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