First time here? We are a friendly community of Power Systems Engineers. Check out the FAQ!

Ask Your Question
1

Can no longer load model libraries

asked Apr 15 '5

Tassie Dave gravatar image

Hi all

I am using a legacy PSSE version 34.5. The is a dlls that I have used many times in the past, but I can no longer load in PSSE. Has anyone else had this issue?

ierr = psspy.addmodellibrary('..\\case\\241024_LTU_PSSE_PSCAD_CUO_fix\\SMASC_G190_344_IVF150.dll')

returns ierr=1 -> file not found

Messages for API ADDMODELLIBRARY Library not found (000284) "..\case\241024LTUPSSEPSCADCUOfix\SMASCG190344IVF150.dll"

The file is definitely there. Also I can load another dll which is located in the same place. When I try to load the file manually through the PSSE GUI I get a similar error. So it seems the that PSSE, which used to be happy with this file, now has a problem with it. The file has not changed; it is binary identical to the version I have loaded many times.

Comments

I am having the same issue. Exact same files and PSSE installation that previously worked no longer do. I have not found any fix for this. Recently installed some python packages but I would not expect that to cause this issue.

oppossumx gravatar imageoppossumx (Apr 17 '5)

2 answers

Sort by » oldest newest most voted
1

answered Apr 20 '5

jconto gravatar image

updated Apr 20 '5

I do not think is Codemeter, else you would not be able to access PSSe. FYI, when accesing EXE or data files in OneDrive, on any python script or Bat file I enclose the whole path including the filename in quotes:

apath = r'c:\   OneDrive..  \filename.txt'
link

Comments

Thanks for the comment. Given your comment about Codemeter, my suspicions are focused on Windows 11 / Azure /SharePoint / OneDrive.

Tassie Dave gravatar imageTassie Dave (Apr 21 '5)
0

answered Apr 16 '5

User defined models are sensitive to version of PSS/E, though mostly working fine with minor revision of PSS/E. Specifically, version 34 had many transformative changes, even in handling number of elements. You may please check specific version of PSS/E with which the said model is successfully tested by the supplier.

link

Comments

Also, update the path to the dll file to be full path (c:\...)

jconto gravatar imagejconto (Apr 16 '5)
1

The issue is not related to the PSSE version. It is unchanged. I have previously run the exact same same script, with the exact same .dll file, and the exact same PSSE installation. But now it doesn't work. I suspect that it has to do with codemeter, or the Azure /SharePoint / OneDrive file

Tassie Dave gravatar imageTassie Dave (Apr 16 '5)

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.
Want to format code in your answer? Here is a one minute demo on Youtube

Add Answer

[hide preview]

Question Tools

1 follower

Stats

Asked: Apr 15 '5

Seen: 94 times

Last updated: Apr 20