Compile models not supplied by PSSE and create user dll
I have successfully compiled the UDM model and loaded it into the library file, but it cannot run. Could you please help check what the problem is? Thank you. log file is shown as follows:
Library added:D:\Project\PSSE_model\xd_PVtest\two_plntb\MyUsrdll.dll
Out of file data--switch to terminal input mode
Generator models use:
CONS 1- 2
STATES 1- 2
Renewable Generator models use:
CONS 3- 30
STATES 3- 8
VARS 1- 8
ICONS 1- 2
Renewable Electrical models use:
CONS 31- 120
STATES 9- 20
VARS 9- 26
ICONS 3- 14
*Bus Other models use:* (the UDM)
CONS 121- 122
VARS 27- 32
ICONS 15- 17
SUMMARY OF MODELS READ:
GENS: GENCLS
1
REGEN: REGCA1
2
REELC: REECA1
2
USER: USRBUS
1
NEXT AVAILABLE ADDRESSES ARE:
CON STATE VAR ICON
123 21 33 18
**Compile models not supplied by PSSE and create user dll**
4 diagonal and 3 off-diagonal elements
1 0.0 0.0000E+00 0.0000E+00
PTI INTERACTIVE POWER SYSTEM SIMULATOR--PSS(R)E Xplore WED, JUL 02 2025 22:33
BATTERY DYNAMIC MODEL ACCEPTANCE TEST CASE
Initial condition Load Flow used 1 iterations
----------------------------- Machine initial condition -----------------------------
BUS#-SCT X-- NAME --X BASKV ID ETERM EFD POWER VARS P.F. ANGLE ID IQ
1000 WTGBUS1 0.6900 1 1.0000 0.0000 50.00 -2.73 0.9985 2.31 -0.0273 0.5000
1001 WTGBUS2 0.6900 1 1.0000 0.0000 50.00 -2.73 0.9985 2.31 -0.0273 0.5000
4000 INFBUS 220.00 1 1.0000 1.4807 -99.70 9.48-0.9955 -42.32 0.7414 -0.6733
Do you get "Initial conditions suspect"?
What is going wrong for you when you say that it cannot run?
try adding the model manually from menu and see if there is any error in loading.
Did you previously generate an snapshot of the dynamics arrays and later compile the model?