network equivalence error in PSSE34
Hi everyone,
In my work, I am going to equivalent the network up to machine node, and the code in following works well in psse 33, however, in PSSE34, the IDE collapse every time I run the code, is this a bug in PSSE 34 ?
In PSSE 34, my code can work without the equivalence API, yet the spyder IDE will collapse every time I add the line "psspy.eeqv".
The network equivalence function works well in PSSE 34 interface, although the interface will also collapse sometimes.
If anyone knows how to fix this, I would appreciate that.
My code is as follows:
import os, sys
#print (sys.version)
#print(sys.path)
# Set path
sys_path_PSSE=r'C:\Program Files (x86)\PTI\PSSE34\PSSPY27'
sys.path.append(sys_path_PSSE)
os_path_PSSE=r'C:\Program Files (x86)\PTI\PSSE34\PSSBIN'
os.environ['PATH'] += ';' + os_path_PSSE
import psspy
pp = r'C:\Program Files (x86)\PTI\PSSE34\EXAMPLE\savnw'
psspy.psseinit(buses=50)
if not os.path.isfile(pp+'_progress.txt'):# output the progress to a file
tmp_file = open(pp+'_progress.txt', 'w+')
tmp_file.close()
psspy.progress_output(2, pp+'_progress.txt', [0,0])
psspy.read(0,pp+'.raw')
psspy.fdns([0,0,0,1,1,0,99,0])
psspy.fdns([0,0,0,1,1,0,99,0])
psspy.eeqv(0,1,[0,0,0,0,0,0],[0.0, 10.0]) # it works well in interface, while collapase every time when called by API
print "finish"