First time here? We are a friendly community of Power Systems Engineers. Check out the FAQ!
Hello,
I implemented a USRBUS UDM model, and I want to be able to change the status of a fixed shunt device during a dynamic simulation.
When I use the fortran API command SHUNTCHNG (or SHUNTAPI), I receive a GUI message saying that the respective shunt device status was successfully changed. However, right after I got a simulation crash, indicating a memory issue in psseng.dll:
"Exception thrown at 0x00007FF9F466B1BF (psseng.dll) in python.exe: 0xC0000005: Access violation reading location 0x0000000000000000"
The error does not occur in the UDM code, it occurs after the respective model subroutine ends. When I tried to use the same command via python API, it works well.
Does anyone had a similar issue? Does anyone know if it should be possible to change a fixed shunt device status directly via a UDM model?
ps: I am using PSSE version 35.6
Thank you, José
![]() | 2 | No.2 Revision |
Hello,
I implemented a USRBUS UDM model, and I want to be able to change the status of a fixed shunt device during a dynamic simulation.
When I use the fortran API command SHUNT"SHUNTCHNG CHNG" (or SHUNT"SHUNTAPI), API"), I receive a GUI message saying that the respective shunt device status was successfully changed. However, right after I got a simulation crash, indicating a memory issue in psseng.dll:
"Exception thrown at 0x00007FF9F466B1BF (psseng.dll) in python.exe: 0xC0000005: Access violation reading location 0x0000000000000000"
The error does not occur in the UDM code, it occurs after the respective model subroutine ends. When I tried to use the same command via python API, it works well.
Does anyone had a similar issue? Does anyone know if it should be possible to change a fixed shunt device status directly via a UDM model?
ps: I am using PSSE version 35.6
Thank you, José