Strange warning message

This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location where you will have to reset your password.
Forum rules
This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location (https://forum.dynare.org) where you will have to reset your password.

Strange warning message

Postby frenchmacro » Tue Oct 13, 2015 7:59 pm

Hi all,

I just installed dynare on my new laptop that works under Windows 10.
When I run my matlab code that calls dynare, it seems to work well but I receive this message :
" Warning: The file 'C:\XXXXXXXXX.m' could not be cleared because it contains MATLAB code that is currently executing."

While the results are unchanged compared to my ancient computer (so I can keep on working ;-) !), I wonder if this message means that I did something wrong.

If anyone has a thought on this, I'd be glad to hear your opinions.

Thanks!
frenchmacro
 
Posts: 3
Joined: Wed Aug 19, 2015 3:59 am

Re: Strange warning message

Postby jpfeifer » Wed Oct 14, 2015 9:25 am

Did you also change the Matlab version? In Matlab 2015b there is a new just-in-time (JIT) compiler that may have undesired consequences.
------------
Johannes Pfeifer
University of Cologne
https://sites.google.com/site/pfeiferecon/
jpfeifer
 
Posts: 6940
Joined: Sun Feb 21, 2010 4:02 pm
Location: Cologne, Germany

Re: Strange warning message

Postby eta » Wed Oct 14, 2015 9:41 am

Hi,
I have the same problem with Matlab 2015a. Apparently everything works properly. Is there any way to fix this ?

Thanks
eta
 
Posts: 70
Joined: Sat Sep 27, 2014 3:48 pm

Re: Strange warning message

Postby jpfeifer » Wed Oct 14, 2015 5:56 pm

Could you please post the full warning including in which line it appears.
------------
Johannes Pfeifer
University of Cologne
https://sites.google.com/site/pfeiferecon/
jpfeifer
 
Posts: 6940
Joined: Sun Feb 21, 2010 4:02 pm
Location: Cologne, Germany

Re: Strange warning message

Postby alexch0405 » Sun Oct 18, 2015 8:38 am

I have the same issue:

Warning: The file '/Applications/Dynare/4.4.3/matlab/dynare.m' could not be
cleared because it contains MATLAB code that is currently executing.
> In NonRicardEZWeightedMHFW2 (line 7)
In dynare (line 180)
Warning: The file
'/Users/AlexMacPro/Dropbox/Documents/MATLAB/Dynare/FiscalBonds/NonRicardNKEZWeightedMHF/NonRicardEZWeightedMHFW2.m'
could not be cleared because it contains MATLAB code that is currently executing.
> In NonRicardEZWeightedMHFW2 (line 7)
In dynare (line 180)
Warning: The file '/Applications/Dynare/4.4.3/matlab/dynare.m' could not be
cleared because it contains MATLAB code that is currently executing.
> In NonRicardEZWeightedMHFW2 (line 7)
In dynare (line 180)
Warning: The file
'/Users/AlexMacPro/Dropbox/Documents/MATLAB/Dynare/FiscalBonds/NonRicardNKEZWeightedMHF/NonRicardEZWeightedMHFW2.m'
could not be cleared because it contains MATLAB code that is currently executing.
> In NonRicardEZWeightedMHFW2 (line 7)
In dynare (line 180)
Warning: The file '/Applications/Dynare/4.4.3/matlab/dynare.m' could not be
cleared because it contains MATLAB code that is currently executing.
> In NonRicardEZWeightedMHFW2 (line 7)
In dynare (line 180)
Warning: The file
'/Users/AlexMacPro/Dropbox/Documents/MATLAB/Dynare/FiscalBonds/NonRicardNKEZWeightedMHF/NonRicardEZWeightedMHFW2.m'
could not be cleared because it contains MATLAB code that is currently executing.
> In NonRicardEZWeightedMHFW2 (line 7)
In dynare (line 180)
alexch0405
 
Posts: 5
Joined: Tue Aug 27, 2013 12:45 pm

Re: Strange warning message

Postby jpfeifer » Sun Oct 18, 2015 9:08 am

Which Matlab version?
What happens when you invoke Dynare with the
Code: Select all
noclearall

option?
------------
Johannes Pfeifer
University of Cologne
https://sites.google.com/site/pfeiferecon/
jpfeifer
 
Posts: 6940
Joined: Sun Feb 21, 2010 4:02 pm
Location: Cologne, Germany

Re: Strange warning message

Postby alexch0405 » Mon Oct 19, 2015 12:20 pm

noclearall option helped to get rid off the warning. Thanks.

This happens only with 2015b, not on 2015a FYI.
alexch0405
 
Posts: 5
Joined: Tue Aug 27, 2013 12:45 pm

Re: Strange warning message

Postby jpfeifer » Tue Oct 20, 2015 1:07 pm

------------
Johannes Pfeifer
University of Cologne
https://sites.google.com/site/pfeiferecon/
jpfeifer
 
Posts: 6940
Joined: Sun Feb 21, 2010 4:02 pm
Location: Cologne, Germany

Re: Strange warning message

Postby kipfilet » Fri Mar 18, 2016 9:30 pm

Just to let you know that I get the same with 2016a, and using `noclearall' does get rid of it.
kipfilet
 
Posts: 27
Joined: Thu Oct 04, 2012 5:24 am

Re: Strange warning message

Postby wb0715 » Thu Dec 29, 2016 9:48 am

Did you solve this problem? I still get this warning.
wb0715
 
Posts: 2
Joined: Thu Jan 17, 2013 5:09 pm

Re: Strange warning message

Postby jpfeifer » Sun Jan 01, 2017 8:00 am

In the unstable version (to be released as 4.5), you will not get this warning message on newer Matlab version. For Dynare 4.4.3 and newer Matlab versions, you will always have to invoke the
Code: Select all
noclearall

option at the command line (or simply ignore the warning)
------------
Johannes Pfeifer
University of Cologne
https://sites.google.com/site/pfeiferecon/
jpfeifer
 
Posts: 6940
Joined: Sun Feb 21, 2010 4:02 pm
Location: Cologne, Germany


Return to Dynare help

Who is online

Users browsing this forum: Google [Bot] and 9 guests