Seems memory leakage while running adaptive pushover in Mac

Forum for OpenSees users to post questions, comments, etc. on the use of the OpenSees interpreter, OpenSees.exe

Moderators: silvia, selimgunay, Moderators

Post Reply
gopaladhikari
Posts: 79
Joined: Tue Nov 07, 2006 3:17 am
Location: Jacobs

Seems memory leakage while running adaptive pushover in Mac

Post by gopaladhikari »

Hi

While running a script for adaptive pushover in mac, it gives the following error after completion of few analysis steps. The same script runs well in Windows system.

The error msg
"couldn't open "OutputData/DAPout/sectionFiber/caseID201/Eigen2.wri": too many open files"

thanks

gopal
fmk
Site Admin
Posts: 5884
Joined: Fri Jun 11, 2004 2:33 pm
Location: UC Berkeley
Contact:

Post by fmk »

you are going to have to be a bit more specific about your model (what commands do you use that would use a file) .. when i run a few example scripts that use recorders a few 100,000 times i get no such error message.
gopaladhikari
Posts: 79
Joined: Tue Nov 07, 2006 3:17 am
Location: Jacobs

Post by gopaladhikari »

Hi

I am running adaptive pushover analysis. In each pushover step, I perform Eigen Value Analysis. Store eigen vectors in text files and recall subsequently to compute pushover load vector for the next step. The error msg appeared while opening eigen vector file after certain pushover steps, e.g., after 19 pushover steps and 6 eigen vectors per step. The same script however works fine in windows.

couldn't open "OutputData/DAPout/sectionFiber/caseID201/Eigen2.wri": too many open files.

thanks

gopal
gopaladhikari
Posts: 79
Joined: Tue Nov 07, 2006 3:17 am
Location: Jacobs

Post by gopaladhikari »

Is it possible to implement nodeEigenVector command soon? It will then eliminate the need of opening and closing eigen vector files.
fmk
Site Admin
Posts: 5884
Joined: Fri Jun 11, 2004 2:33 pm
Location: UC Berkeley
Contact:

Post by fmk »

windows, mac and linux machines all differ in the number of open files the operating system allows an application.

i need more info and i am probably going to need the model. before you send it or post it, how many recorder files do you have? and do you close your files after you have written to them.
gopaladhikari
Posts: 79
Joined: Tue Nov 07, 2006 3:17 am
Location: Jacobs

Post by gopaladhikari »

100 files for recording member responses.
13 files to record misc parameters.
6 files record eigen vectors at each step.
I delete after reading them at each step.

file delete "$DAPout/Eigen$j.wri"
fmk
Site Admin
Posts: 5884
Joined: Fri Jun 11, 2004 2:33 pm
Location: UC Berkeley
Contact:

Post by fmk »

do you close the files you open. do you record the eigenvectors to the same file, if not do you remove recorder on those recorders.
gopaladhikari
Posts: 79
Joined: Tue Nov 07, 2006 3:17 am
Location: Jacobs

Post by gopaladhikari »

I close most of the files at the end of the script.
the eigen vectors are recorded at each step in a new file while the previous files are deleted. A sample portion is as follows


for {set j 1} {$j <= $numsMode} {incr j 1} {

remove recorder [lindex $eigRecorder [expr $j-1]];

set temp ""
set temp [lrange [gets [open "$DAPout/Eigen$j.wri" r]] 0 end]

process eigen vectors

file delete "$DAPout/Eigen$j.wri"
}
fmk
Site Admin
Posts: 5884
Joined: Fri Jun 11, 2004 2:33 pm
Location: UC Berkeley
Contact:

Post by fmk »

you are deleting the files in the file system, you are not closing the file pointers in the application.
gopaladhikari
Posts: 79
Joined: Tue Nov 07, 2006 3:17 am
Location: Jacobs

Post by gopaladhikari »

I m getting this error when evoke close command.

can not find channel named "OutputData/DAPout/sectionFiber/caseID201/Eigen1.wri"
while executing
"close "$DAPout/Eigen$j.wri""
gopaladhikari
Posts: 79
Joined: Tue Nov 07, 2006 3:17 am
Location: Jacobs

Post by gopaladhikari »

prob solved...
vsilva
Posts: 1
Joined: Mon Jan 23, 2012 8:00 am
Location: University Aveiro

Re: Seems memory leakage while running adaptive pushover in

Post by vsilva »

Can you share the command you used to close the files? I get the error you used to get: can not find channel named
kaustavsengupta
Posts: 16
Joined: Tue Jul 18, 2017 8:30 pm
Location: IIT Bombay

Re:

Post by kaustavsengupta »

gopaladhikari wrote:
> I m getting this error when evoke close command.
>
> can not find channel named
> "OutputData/DAPout/sectionFiber/caseID201/Eigen1.wri"
> while executing
> "close "$DAPout/Eigen$j.wri""

HI MR. GOPALADHIKARI,

I AM FACING SIMILAR PROBLEM WHILE RUNNING MY CODE. THE ERROR I AM GETTING IS - can not find channel named "filea07128"

WHAT EXACTLY DID YOU DO TO SOLVE THE PROBLEM? CAN YOU HELP ME IN THIS REGARD?

THANK YOU.

REGARDS,
KAUSTAV SENGUPTA
Post Reply