memory error on windows vista with .mod files

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.

memory error on windows vista with .mod files

Postby ronb1000 » Sun Aug 23, 2009 11:05 pm

Just installed Octave 3.0.5 and Dynare 4.0.4. Octave works OK on simple scripts. When I try to run any .mod (example1.mod ramst.mod) file I get the error message "error: memory exhausted or requested size too large for range of
> Octave's index type -- trying to return to prompt" Has anyone else had this problem? Have a windows vista machine with 2 GBytes. Thanks for any help you might be able to give.

Ron
ronb1000
 
Posts: 5
Joined: Sun Aug 23, 2009 10:53 pm

Re: memory error on windows vista with .mod files

Postby SébastienVillemot » Mon Aug 24, 2009 1:13 pm

Hi,

Please try the new Octave 3.2.2 which has been recently released.
The Wiki page on Dynare for Octave has been updated accordingly:
http://www.dynare.org/DynareWiki/DynareOctave

I know that older versions of Octave had problems with Windows Vista. Maybe this new release will help.

Best,

S.V.
Sébastien Villemot
Economist at OFCE – Sciences Po
SébastienVillemot
 
Posts: 706
Joined: Fri Dec 07, 2007 2:29 pm
Location: Paris, France

Re: memory error on windows vista with .mod files

Postby ronb1000 » Mon Aug 24, 2009 3:52 pm

Installed Octave 3.2.2. Now the problem seems to be at line 84 in dynare.m in command dir(fname) -> returns 0 and throws the error. Tried different dynare calls with and without the extension .mod. and calling dir from the DOS window. Something appears to be wrong with the DOS dir command. The path command shows the correct path to C:\dynare\4.0.4\matlab where the .mod files are located. Thanks for any help.

Ron
ronb1000
 
Posts: 5
Joined: Sun Aug 23, 2009 10:53 pm

Re: memory error on windows vista with .mod files

Postby SébastienVillemot » Mon Aug 24, 2009 10:14 pm

My understanding is that it is an Octave issue, not a Dynare issue.

Your problem is described in this thread, and a workaround is given:
http://www.nabble.com/dir-on-Octave-3.2 ... 76418.html

It is specific to Windows Vista, and does not appear on Windows XP.

What I don't understand is that this bug is supposed to be fixed in 3.2.2.
Excerpt from the changelog of 3.2.2:
Changes since Octave/mingw32 3.2.0:
-----------------------------------

*) The 3.2.2 installer includes the following post-3.2.2 changesets in
addition to the octave-3.2.2 sources

http://hg.tw-math.de/release-3-2-x/rev/cd95695a0a89 ("dir" crashes)
http://hg.tw-math.de/release-3-2-x/rev/b308b2e12f04 (16bit images)
http://hg.tw-math.de/release-3-2-x/rev/9107c882f193 (speed up
"plot")


Maybe you could post a message on the octave-dev mailing list:
https://lists.sourceforge.net/lists/listinfo/octave-dev

It is difficult for me to deal with your problem, since I don't have any Windows Vista installed.

Best,

Sébastien
Sébastien Villemot
Economist at OFCE – Sciences Po
SébastienVillemot
 
Posts: 706
Joined: Fri Dec 07, 2007 2:29 pm
Location: Paris, France

Re: memory error on windows vista with .mod files

Postby ronb1000 » Tue Aug 25, 2009 5:25 am

Thanks for the reply. I already discovered the fix in the link and tried it. It doesn't work on my machine. I guess Dynare with Octave is dead on Vista since it is unable to parse the *.mod file. Probably ought to alert people on the install page before they waste their time.

Ron
ronb1000
 
Posts: 5
Joined: Sun Aug 23, 2009 10:53 pm

Re: memory error on windows vista with .mod files

Postby SébastienVillemot » Tue Aug 25, 2009 8:00 am

You're so pessimistic! Dynare for Octave on Vista is certainly not dead.

It looks like you've hit an Octave bug which has not yet been fixed. So we need to submit a bug report to Octave people. They are quite responsive and dynamic, so this can be done quickly.

I'm going to look for someone who has a Vista machine to do that.

In order to help me, could you send me the exact error message that you're getting with Dynare 4.0.4 and Octave 3.2.2 (and with which MOD file)?

Thanks,

Sébastien
Sébastien Villemot
Economist at OFCE – Sciences Po
SébastienVillemot
 
Posts: 706
Joined: Fri Dec 07, 2007 2:29 pm
Location: Paris, France

Re: memory error on windows vista with .mod files

Postby ronb1000 » Tue Aug 25, 2009 8:29 pm

Sorry about the negativity. Been so long since I used a DOS window I can't remember how to save the output. So copying from the DOS window:

dynare(('RBC_Monop_Det')

....

error: c:\dynare\4.0.4\matlab\dynare.m at line 85. column 3

.....

error apparently has to do with %T

but the fix doesn't work at least on my machine. line 85 call is to dir.m and it apparently hanges with on dir.m line 117 where strftime is called. I substituted the new dir.m for the old one (which contains %T) but it still dosn't work at least on my machine. Thanks for your kind reply.

Ron
ronb1000
 
Posts: 5
Joined: Sun Aug 23, 2009 10:53 pm

Re: memory error on windows vista with .mod files

Postby SébastienVillemot » Wed Aug 26, 2009 3:22 pm

I have tested with a friend who has Windows Vista, with Octave 3.2.2 and Dynare 4.0.4.

It works fine with ramst.mod and example1.mod.

So I suppose your problem is specific to your machine, unless I'm missing something. Maybe you should try to reinstall Octave and Dynare?
Also, please make a complete copy of the crash that you encounter. It is located in the .log file created by Dynare.

Best,
Sébastien Villemot
Economist at OFCE – Sciences Po
SébastienVillemot
 
Posts: 706
Joined: Fri Dec 07, 2007 2:29 pm
Location: Paris, France

Re: memory error on windows vista with .mod files

Postby ronb1000 » Thu Aug 27, 2009 10:30 pm

Your friend must have a better Vista than I have, Nothing works. Maybe some other Vista users can help. Thanks

Ron
ronb1000
 
Posts: 5
Joined: Sun Aug 23, 2009 10:53 pm

Re: memory error on windows vista with .mod files

Postby SébastienVillemot » Mon Aug 31, 2009 1:13 pm

Please post the MOD file which generates the error, and the complete log file. I can't help without that.

Best,
Sébastien Villemot
Economist at OFCE – Sciences Po
SébastienVillemot
 
Posts: 706
Joined: Fri Dec 07, 2007 2:29 pm
Location: Paris, France

Re: memory error on windows vista with .mod files

Postby ludog » Sat Nov 21, 2009 12:41 am

Hi all,

I have quite the same problem with dynare 4.0.4 and octave 3.2.2.

There isn't any *.mod files in my dynare directories after instalation.
So, I create a subdirectory "examples" in c:/dynare/4.0.4/matlab/
I put in this folder the file "rbc.mod": http://www.dynare.org/manual/ch05.html

screen shot:
Image

What did I do wrong?

best,
ludog
 
Posts: 17
Joined: Wed Nov 18, 2009 12:03 pm

Re: memory error on windows vista with .mod files

Postby ludog » Sat Nov 21, 2009 1:09 am

I thought that octave (or dynare?) didn't find the file directory.
So, I tried this: dynare ('c:/dynare/4.0.4/matlab/examples/rbc.mod')
The result is better but it doesn't work :(

screen shot:
Image

Please help me :'(

best,
ludog
 
Posts: 17
Joined: Wed Nov 18, 2009 12:03 pm

Re: memory error on windows vista with .mod files

Postby SébastienVillemot » Mon Nov 23, 2009 9:21 am

Hi,

I guess it has to do with your using slashes instead of anti-slashes in paths. Slashes are used under Unix, while anti-slashes are used under Windows.

Try with addpath('c:\dynare\4.0.4\matlab') instead of addpath('c:/dynare/4.0.4/matlab')

Best
Sébastien Villemot
Economist at OFCE – Sciences Po
SébastienVillemot
 
Posts: 706
Joined: Fri Dec 07, 2007 2:29 pm
Location: Paris, France

Re: memory error on windows vista with .mod files

Postby ludog » Mon Nov 23, 2009 4:57 pm

Hi,
Thank you for your answer.
It still doesn't work with anti-slashes.
There is the same error with my other PC (with XP).
Perhap's I did something wrong when I installed octave or dynare :/

best,
ludog
 
Posts: 17
Joined: Wed Nov 18, 2009 12:03 pm

Re: memory error on windows vista with .mod files

Postby SébastienVillemot » Tue Nov 24, 2009 9:27 am

Hi

I missed something when I read your message.

Actually you should not give a full path when invoking Dynare. You should rather move to the right directory (using the "cd" command), and then invoke Dynare without a prepending path.

The right sequence is the following (assuming that rbc.mod is in c:\dynare\work):
Code: Select all
addpath c:\dynare\4.0.4\matlab
cd c:\dynare\work
dynare rbc.mod


Note that it is bad practice to run examples in a subdirectory of c:\dynare\4.0.4\matlab, because that directory will be erased whenever you uninstall Dynare. Better use c:\dynare\work (or something similar).

Hope this helps

Best,
Sébastien Villemot
Economist at OFCE – Sciences Po
SébastienVillemot
 
Posts: 706
Joined: Fri Dec 07, 2007 2:29 pm
Location: Paris, France

Next

Return to Dynare help

Who is online

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