Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I just thought I would add a bit to the answer. @chip provided a great suppression solution by redirecting PSS/e to python and then directing python to save stdout to a file. I have a very similar tatic in my code, and this workflow is great for being able to revisit all of the regurgitation that PSS/e does (especially for debugging purposes). However, since file I/O is one of the most costly things you can do (i.e open, write to, close a file), it may (depending on what you are doing) be useful and/or save time to actually suppress PSS/e output instead of just hiding it in a file.

One thing that I did not see covered here was how to do this, as well as a follow-up to @JDRobers's comment:

According to the API manual, there is an option "6" for report_output that states "no output." That would be great if that option actually delivered what it promised, but I still get tons of text output to the command terminal.

I think what is being missed here, is what you are actually doing in PSS/e because that governs what suppression API function you want to use. Basically what I am saying is that psspy.report_output() is not the only output API.

The four API's that you want to use at the beginning of your simulation are:

psspy.report_ouput(6,'',[])
psspy.progress_output(6,'',[])
psspy.alert_output(6,'',[])
psspy.prompt_output(6,'',[])

These will suppress all PSS/e output. Except I cannot figure out how to suppress the copyright and 3 lines of header for PSS/e initialization. so you still get the following on your command prompt:

PSS(R)E Version 33
 Copyright (c) 1976-2015
 Siemens Industry, Inc.,
 Power Technologies International                            (PTI)
 This program is a confidential  unpublished  work  created  and  first
 licensed in 1976.  It is a trade secret which is the property of  PTI.
 All use,  disclosure,  and/or reproduction not specifically authorized
 by  PTI  is prohibited.   This  program is protected  under  copyright
 laws  of  non-U.S.  countries  and  by  application  of  international
 treaties.  All  Rights  Reserved  Under  The  Copyright  Laws.


           SIEMENS POWER TECHNOLOGIES INTERNATIONAL

      15000 BUS POWER SYSTEM SIMULATOR--PSS(R)E-33.5.0

             INITIATED ON SAT, MAR 28 2015  15:15

Hope that helps someone out!