Ask Your Question
1

MemoryError for running module "pssarrays.accc_violations_report"

asked 2014-08-13 23:20:20 -0600

ypwang gravatar image

Hi,

I just encountered a memory error as follows: ierr = pssarrays.acccviolationsreport(accfile=r'sys02.acc', stype='con', busmsm=0.5, sysmsm=5.0, rating='c', flowlimit=100,rptfile=r"Day1Hr02vilations.txt") File ".\pssarrays.py", line 2234, in acccviolationsreport File ".\pssarrays.py", line 1258, in acccsolution MemoryError

The reason may be as trivial as "not enough memory". But I don't want to rush into this simple answer unless I am sure I rule out all other silly mistakes I made in the python code.

Please advise. Appreciate it.

edit retag flag offensive close merge delete

Comments

You can use the Resource Monitor and watch as the python process creeps up to 2GB and then throws the ``MemoryError`` exception. It's not that hard to hit the 2GB limit (32bit python).

chip gravatar imagechip ( 2014-08-15 15:42:13 -0600 )edit

Thank for your valuable suggestion, Chip! I will give it a try.

ypwang gravatar imageypwang ( 2014-08-15 21:40:30 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
1

answered 2014-08-14 21:25:45 -0600

jconto gravatar image

updated 2014-08-15 21:50:51 -0600

The attached file shows that your accc report code works fine in a small system, the savnw case. C:\fakepath\ACCC32.gif - click on the link, select the pic icon and right-click on it to download, rename the gif to zip, unzip, load the savnw case and run the py code on it.

If your memory problems continue, try increasing the bus number parameter during launching PSSE, If the problem continues (maybe too many contingencies at once for a single run), consider multiple runs by grouping contingencies by types (category b, c, d) or by regions (area 1, 2, 3.. or zone 1, 2, 3...)

edit flag offensive delete link more

Comments

Your answer makes a lot of sense. When I try to download the savnw case, it says "NOT FOUND" even after changing gif to zip. No worry. I get the idea. I will try to run the savnw case later. Thanks very much for the trick of splitting into smaller groups.

ypwang gravatar imageypwang ( 2014-08-14 21:51:11 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Question Tools

Stats

Asked: 2014-08-13 23:20:20 -0600

Seen: 1,389 times

Last updated: Aug 15 '14