Thanks for the answer. I actually used the below code. I also provide the output here. From my understanding it is not performing the iterations. I am not getting it why I am having this output.
import os
import sys
sys_path_PSSE=r"C:\Program Files (x86)\PTI\PSSEXplore34\PSSBIN"
sys.path.append(sys_path_PSSE)
os_path_PSSE=r"C:\Program Files (x86)\PTI\PSSEXplore34\PSSBIN"
os.environ['PATH'] += ';' + os_path_PSSE
os.environ['PATH'] += ';' + sys_path_PSSE
import redirect
redirect.psse2py()
import psspy
psspy.throwPsseExceptions =True
import redirect
redirect.psse2py()
psspy.psseinit(8000)
psspy.case('E:\Thesis-REN\IEEE14.sav')
psspy.fnsl()
Number_iterations = psspy.iterat()
Max_mismatch = psspy.maxmsm()
Total_System_mismatch = psspy.sysmsm()
msg1 = "The number of itterations was %s"
msg2 = "The max mismatch was %s"
msg3 = "The system mismatch was %s"
print(msg % Number_iterations)
print(msg2 % Max_mismatch)
print(msg3 % Total_System_mismatch)
####Output#####
SIEMENS POWER TECHNOLOGIES INTERNATIONAL
50 BUS POWER SYSTEM SIMULATOR--PSS(R)E-34.3.2
INITIATED ON WED, MAY 20 2020 0:26
08/19/93 UW ARCHIVE 100.0 1962 W
IEEE 14 BUS TEST CASE
The Saved Case in file E:\Thesis-REN\IEEE14.sav was saved on WED, APR 24 2019 16:03
PS E:\Thesis-REN\Python_Script