1

Can no longer load model libraries

  • retag add tags

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.

Tassie Dave's avatar
111
Tassie Dave
asked 2025-04-14 19:36:24 -0500
edit flag offensive 0 remove flag close merge delete

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's avatar oppossumx (2025-04-17 18:41:12 -0500) edit
add a comment see more comments

3 Answers

1

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'
jconto's avatar
2.9k
jconto
answered 2025-04-20 13:52:47 -0500, updated 2025-04-20 13:53:45 -0500
edit flag offensive 0 remove flag delete link

Comments

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

Tassie Dave's avatar Tassie Dave (2025-04-20 22:36:56 -0500) edit
add a comment see more comments
0

I asked this question a while ago, but now I have an answer to my own question that I would like to share.

Answer

If a .dll that used to load does not load, it is probably because something that the dll depends on has changed. The DLL is not "an island entire of itself" (thanks John Done). It calls on libraries provided by things like the IVF compiler, or the MS Visual Studio. So if one of these things has changed, then the DLL may break as a result.

The next question is, "well, what are the inputs to my dll then?" To answer this you can use the dependencies tool. This is an old tool that has been recreated in a GUI format. You can download it from GitHub https://github.com/lucasg/Dependencies

This tool will show you

  • what other dll files the model dll refers to, and where they are located
  • what are the functions which are inputs to your dll
  • whether they are accessible

If an input function shows up in red then you have found your problem Sorry, I cant give you a screenshot - I don't have enough points.

Tassie Dave's avatar
111
Tassie Dave
answered 2025-07-10 01:34:25 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments
0

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.

chandv's avatar
23
chandv
answered 2025-04-16 10:13:03 -0500
edit flag offensive 0 remove flag delete link

Comments

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

jconto's avatar jconto (2025-04-16 12:29:10 -0500) edit
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's avatar Tassie Dave (2025-04-16 17:41:33 -0500) edit
add a comment see more comments

Your Answer

Login/Signup to Answer