Investigate Memory Problems with k_order_pert on Windows 7 64bit
I have some trouble with k_order_pert
on my office computer with
MATLAB Version: 8.2.0.701 (R2013b)
Operating System: Microsoft Windows 7 Version 6.1 (Build 7601: Service Pack 1)
Java Version: Java 1.7.0_11-b21 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
The machine has 64GB Ram and feature memstats
suggests there is plenty memory available:
Physical Memory (RAM):
In Use: 5839 MB ( 16cf70000)
Free: 26867 MB ( 68f3db000)
Total: 32707 MB ( 7fc34b000)
Page File (Swap space):
In Use: 5967 MB ( 174fca000)
Free: 59444 MB ( e834fa000)
Total: 65412 MB ( ff84c4000)
Virtual Memory (Address Space):
In Use: 4077 MB ( fed00000)
Free: 8384530 MB (7ff012e0000)
Total: 8388607 MB (7fffffe0000)
Still, when running a large model with k_order_pert
the .jnl file says it has run out of memory and says the available memory is negative:
This is Dynare++, Copyright (C) 2004-2011, Ondra Kamenik
Dynare++ comes with ABSOLUTELY NO WARRANTY and is distributed under
GPL: modules integ, tl, kord, sylv, src, extern and documentation
LGPL: modules parser, utils
for GPL see http://www.gnu.org/licenses/gpl.html
for LGPL see http://www.gnu.org/licenses/lgpl.html
System info: (not implemented for MINGW)
Start time: (not implemented for MINGW)
------ elapsed time (seconds)
| ------ record unique identifier
| | ------ load average
| | | ------ available memory (MB)
| | | | ------ major faults (MB)
| | | | |
V V V V V
1158.14:S00000:-1.:-1368: : Non-linear solver for deterministic steady state By-passed
1158.14:E00000:-1.:-1368:000000: Non-linear solver for deterministic steady state By-passed
1158.15:S00001:-1.:-1368: : Recovering first order derivatives
1158.16:M00002:-1.:-1368: : Blanchard-Kahn conditition satisfied, model stable
1158.16:E00001:-1.:-1368:000000: Recovering first order derivatives
1158.16:S00003:-1.:-1368: : Faa Di Bruno G container for [1,0,0,0]
1158.16:M00004:-1.:-1368: : dim=1 avmem=-1368
1158.16:E00003:-1.:-1368:000000: Faa Di Bruno G container for [1,0,0,0]
1158.16:S00005:-1.:-1368: : Faa Di Bruno G container for [0,1,0,0]
1158.16:M00006:-1.:-1368: : dim=1 avmem=-1368
1158.16:E00005:-1.:-1368:000000: Faa Di Bruno G container for [0,1,0,0]
1158.16:S00007:-1.:-1368: : Faa Di Bruno G container for [0,0,1,0]
1158.16:M00008:-1.:-1368: : dim=1 avmem=-1368
1158.16:E00007:-1.:-1368:000000: Faa Di Bruno G container for [0,0,1,0]
1158.16:S00009:-1.:-1368: : Switching from unfolded to folded
1158.16:E00009:-1.:-1368:000000: Switching from unfolded to folded
1158.16:S00010:-1.:-1368: : Performing step for order = 2
1158.16:S00011:-1.:-1368: : Recovering symmetry [2,0,0,0]
1158.16:S00012:-1.:-1368: : Faa Di Bruno G container for [2,0,0,0]
1158.16:M00013:-1.:-1368: : dim=1 avmem=-1368
1158.16:M00014:-1.:-1368: : dim=2 avmem=-1368
1158.16:E00012:-1.:-1368:000000: Faa Di Bruno G container for [2,0,0,0]
1158.16:S00015:-1.:-1368: : Faa Di Bruno Z container for [2,0,0,0]
1158.16:M00016:-1.:-1368: : dim=1 run out of memory, imposing max=10 (decrease number of threads)
1158.17:M00017:-1.:-1368: : dim=1 avmem=-1368 tmpmem=0 max=10 stacks=4->12
1158.17:M00018:-1.:-1368: : dim=2 run out of memory, imposing max=10 (decrease number of threads)
1158.26:M00019:-1.:-1368: : dim=2 avmem=-1368 tmpmem=1 max=10 stacks=4->12
1158.26:E00015:-1.:-1368:000000: Faa Di Bruno Z container for [2,0,0,0]
1158.26:S00020:-1.:-1368: : Sylvester equation for dimension = 2
1158.31:E00020:-1.:-1368:000000: Sylvester equation for dimension = 2
1158.32:E00011:-1.:-1368:000000: Recovering symmetry [2,0,0,0]
1158.32:S00021:-1.:-1368: : Recovering symmetry [0,2,0,0]
1158.32:S00022:-1.:-1368: : Faa Di Bruno G container for [0,2,0,0]
1158.32:M00023:-1.:-1368: : dim=1 avmem=-1368
1158.32:M00024:-1.:-1368: : dim=2 avmem=-1368
1158.32:E00022:-1.:-1368:000000: Faa Di Bruno G container for [0,2,0,0]
1158.32:S00025:-1.:-1368: : Faa Di Bruno Z container for [0,2,0,0]
1158.32:M00026:-1.:-1368: : dim=1 run out of memory, imposing max=10 (decrease number of threads)
1158.32:M00027:-1.:-1368: : dim=1 avmem=-1368 tmpmem=0 max=10 stacks=4->12
1158.32:M00028:-1.:-1368: : dim=2 run out of memory, imposing max=10 (decrease number of threads)
1158.34:M00029:-1.:-1368: : dim=2 avmem=-1368 tmpmem=1 max=10 stacks=4->12
1158.34:E00025:-1.:-1368:000000: Faa Di Bruno Z container for [0,2,0,0]
1158.34:E00021:-1.:-1368:000000: Recovering symmetry [0,2,0,0]
1158.34:S00030:-1.:-1368: : Recovering symmetry [1,1,0,0]
1158.34:S00031:-1.:-1368: : Faa Di Bruno G container for [1,1,0,0]
1158.34:M00032:-1.:-1368: : dim=1 avmem=-1368
1158.34:M00033:-1.:-1368: : dim=2 avmem=-1368
1158.34:E00031:-1.:-1368:000000: Faa Di Bruno G container for [1,1,0,0]
1158.34:S00034:-1.:-1368: : Faa Di Bruno Z container for [1,1,0,0]
1158.34:M00035:-1.:-1368: : dim=1 run out of memory, imposing max=10 (decrease number of threads)
1158.34:M00036:-1.:-1368: : dim=1 avmem=-1368 tmpmem=0 max=10 stacks=4->12
1158.34:M00037:-1.:-1368: : dim=2 run out of memory, imposing max=10 (decrease number of threads)
1158.39:M00038:-1.:-1368: : dim=2 avmem=-1368 tmpmem=1 max=10 stacks=4->12
1158.39:E00034:-1.:-1368:000000: Faa Di Bruno Z container for [1,1,0,0]
1158.39:E00030:-1.:-1368:000000: Recovering symmetry [1,1,0,0]
1158.39:S00039:-1.:-1368: : Recovering symmetry [1,0,0,1]
1158.39:S00040:-1.:-1368: : Faa Di Bruno G container for [1,0,1,0]
1158.39:M00041:-1.:-1368: : dim=1 avmem=-1368
01158.4:M00042:-1.:-1368: : dim=2 avmem=-1368
01158.4:E00040:-1.:-1368:000000: Faa Di Bruno G container for [1,0,1,0]
01158.4:E00039:-1.:-1368:000000: Recovering symmetry [1,0,0,1]
01158.4:S00043:-1.:-1368: : Recovering symmetry [0,1,0,1]
01158.4:S00044:-1.:-1368: : Faa Di Bruno G container for [0,1,1,0]
01158.4:M00045:-1.:-1368: : dim=1 avmem=-1368
01158.4:M00046:-1.:-1368: : dim=2 avmem=-1368
01158.4:E00044:-1.:-1368:000000: Faa Di Bruno G container for [0,1,1,0]
01158.4:E00043:-1.:-1368:000000: Recovering symmetry [0,1,0,1]
01158.4:S00047:-1.:-1368: : Recovering symmetry [0,0,0,2]
01158.4:S00048:-1.:-1368: : Faa Di Bruno G container for [0,0,2,0]
01158.4:M00049:-1.:-1368: : dim=1 avmem=-1368
01158.4:M00050:-1.:-1368: : dim=2 avmem=-1368
01158.4:E00048:-1.:-1368:000000: Faa Di Bruno G container for [0,0,2,0]
01158.4:S00051:-1.:-1368: : Faa Di Bruno G container for [0,0,0,2]
01158.4:M00052:-1.:-1368: : dim=1 avmem=-1368
01158.4:M00053:-1.:-1368: : dim=2 avmem=-1368
01158.4:E00051:-1.:-1368:000000: Faa Di Bruno G container for [0,0,0,2]
01158.4:S00054:-1.:-1368: : Faa Di Bruno Z container for [0,0,0,2]
01158.4:M00055:-1.:-1368: : dim=1 run out of memory, imposing max=10 (decrease number of threads)
01158.4:M00056:-1.:-1368: : dim=1 avmem=-1368 tmpmem=0 max=10 stacks=4->12
01158.4:M00057:-1.:-1368: : dim=2 run out of memory, imposing max=10 (decrease number of threads)
1158.41:M00058:-1.:-1368: : dim=2 avmem=-1368 tmpmem=1 max=10 stacks=4->12
1158.41:E00054:-1.:-1368:000000: Faa Di Bruno Z container for [0,0,0,2]
1158.41:S00059:-1.:-1368: : Faa Di Bruno Z container for [0,0,2,0]
1158.41:M00060:-1.:-1368: : dim=1 run out of memory, imposing max=10 (decrease number of threads)
1158.41:M00061:-1.:-1368: : dim=1 avmem=-1368 tmpmem=0 max=10 stacks=4->12
1158.41:M00062:-1.:-1368: : dim=2 run out of memory, imposing max=10 (decrease number of threads)
1158.41:M00063:-1.:-1368: : dim=2 avmem=-1368 tmpmem=1 max=10 stacks=4->12
1158.41:E00059:-1.:-1368:000000: Faa Di Bruno Z container for [0,0,2,0]
1158.41:E00047:-1.:-1368:000000: Recovering symmetry [0,0,0,2]
1158.41:E00010:-1.:-1368:000000: Performing step for order = 2
1158.41:S00064:-1.:-1368: : Performing step for order = 3
1158.41:S00065:-1.:-1368: : Recovering symmetry [3,0,0,0]
1158.41:S00066:-1.:-1368: : Faa Di Bruno G container for [3,0,0,0]
1158.42:M00067:-1.:-1368: : dim=1 avmem=-1368
1158.46:M00068:-1.:-1366: : dim=2 avmem=-1368
1158.46:M00069:-1.:-1367: : dim=3 avmem=-1366
1158.46:E00066:-1.:-1367:000000: Faa Di Bruno G container for [3,0,0,0]
1158.46:S00070:-1.:-1368: : Faa Di Bruno Z container for [3,0,0,0]
1158.46:M00071:-1.:-1368: : dim=1 run out of memory, imposing max=10 (decrease number of threads)
1158.49:M00072:-1.:-1373: : dim=1 avmem=-1368 tmpmem=0 max=10 stacks=4->12
1158.49:M00073:-1.:-1373: : dim=2 run out of memory, imposing max=10 (decrease number of threads)
1160.92:M00074:-1.:-1371: : dim=2 avmem=-1372 tmpmem=1 max=10 stacks=4->12
1160.92:M00075:-1.:-1371: : dim=3 run out of memory, imposing max=10 (decrease number of threads)
1167.83:M00076:-1.:-1371: : dim=3 avmem=-1371 tmpmem=33 max=10 stacks=4->12
1167.83:E00070:-1.:-1371:000000: Faa Di Bruno Z container for [3,0,0,0]
1167.86:S00077:-1.:-1388: : Sylvester equation for dimension = 3
1169.86:E00077:-1.:-1403:000000: Sylvester equation for dimension = 3
1169.93:E00065:-1.:-1375:000000: Recovering symmetry [3,0,0,0]
1169.93:S00078:-1.:-1375: : Recovering symmetry [0,3,0,0]
1169.93:S00079:-1.:-1375: : Faa Di Bruno G container for [0,3,0,0]
1169.93:M00080:-1.:-1375: : dim=1 avmem=-1374
1169.96:M00081:-1.:-1382: : dim=2 avmem=-1374
1169.98:M00082:-1.:-1383: : dim=3 avmem=-1382
1169.98:E00079:-1.:-1383:000000: Faa Di Bruno G container for [0,3,0,0]
1169.98:S00083:-1.:-1383: : Faa Di Bruno Z container for [0,3,0,0]
1169.98:M00084:-1.:-1383: : dim=1 run out of memory, imposing max=10 (decrease number of threads)
1169.98:M00085:-1.:-1384: : dim=1 avmem=-1382 tmpmem=0 max=10 stacks=4->12
1169.98:M00086:-1.:-1384: : dim=2 run out of memory, imposing max=10 (decrease number of threads)
1170.13:M00087:-1.:-1382: : dim=2 avmem=-1383 tmpmem=1 max=10 stacks=4->12
1170.13:M00088:-1.:-1382: : dim=3 run out of memory, imposing max=10 (decrease number of threads)
1170.57:M00089:-1.:-1384: : dim=3 avmem=-1381 tmpmem=33 max=10 stacks=4->12
1170.57:E00083:-1.:-1384:000000: Faa Di Bruno Z container for [0,3,0,0]
1170.57:E00078:-1.:-1384:000000: Recovering symmetry [0,3,0,0]
1170.57:S00090:-1.:-1383: : Recovering symmetry [1,2,0,0]
1170.57:S00091:-1.:-1383: : Faa Di Bruno G container for [1,2,0,0]
1170.57:M00092:-1.:-1383: : dim=1 avmem=-1383
01170.6:M00093:-1.:-1383: : dim=2 avmem=-1383
1170.62:M00094:-1.:-1384: : dim=3 avmem=-1383
1170.62:E00091:-1.:-1384:000000: Faa Di Bruno G container for [1,2,0,0]
1170.62:S00095:-1.:-1384: : Faa Di Bruno Z container for [1,2,0,0]
1170.62:M00096:-1.:-1384: : dim=1 run out of memory, imposing max=10 (decrease number of threads)
1170.64:M00097:-1.:-1384: : dim=1 avmem=-1384 tmpmem=0 max=10 stacks=4->12
1170.64:M00098:-1.:-1384: : dim=2 run out of memory, imposing max=10 (decrease number of threads)
1171.66:M00099:-1.:-1383: : dim=2 avmem=-1384 tmpmem=1 max=10 stacks=4->12
1171.66:M00100:-1.:-1383: : dim=3 run out of memory, imposing max=10 (decrease number of threads)
After some time, it even happens that the computer completely freezes. My conjecture is that there is some problem with the mex-file.