Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

You probably ran into the annoying 32bit/64bit problem.

scipy by default, perfers 64bit (since it is a lot more percise), so as numpy.

But, this is a big but, psspy runs on 32bit (though some other modules provided by PSSE can run on 64bit).

If you google it, you will a lot of post regarding issues with scipy with 32bit Python.

In short, this is the answer: https://stackoverflow.com/a/25057693

What you need to do is to go to here https://sourceforge.net/projects/scipy/files/scipy/0.16.0/ , and download the "superpack" installer and install it.

I could reproduce your problem in command line before installing the superpack.

After installing the superpack, the problem went away:

Screenshot

You can see that PSSE is initialised and then your calcluations performed with the messages printed. By the way, when in doubt, throw away the IDE and just run the code with the Python intepreter.

If you do not want to install the superpack, then you may need to call the 64bit Python to run the optimisation with 64bit Scipy and then return the results. See https://psspy.org/psse-help-forum/question/4275/import-psse-to-python/#6327 for this.

If you cannot see the image, it is a cmd screenshot with the following messages (I change the init bus from 50 to 50000). You can see PSSE is initalised and then the optimisation performed:

  PSS(R)E Version 33
 Copyright (c) 1976-2019
 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

      50000 BUS POWER SYSTEM SIMULATOR--PSS(R)E-33.4.0

             INITIATED ON THU, NOV 14 2019  10:08
('min value:', -0.18814357989751096)
('solution:', array([0.29250894, 1.84897232, 1.84897233]))
('success or not:', True)
('message:', 'Optimization terminated successfully.')

You probably ran into the annoying 32bit/64bit problem.

scipy by default, perfers prefers 64bit (since it is a lot more percise), so as numpy.

But, this is a big but, psspy runs on 32bit (though some other modules provided by PSSE can run on 64bit).

If you google it, you will a lot of post regarding issues with scipy with 32bit Python.

In short, this is the answer: https://stackoverflow.com/a/25057693

What you need to do is to go to here https://sourceforge.net/projects/scipy/files/scipy/0.16.0/ , and download the "superpack" installer and install it.

I could reproduce your problem in command line before installing the superpack.

After installing the superpack, the problem went away:

Screenshot

You can see that PSSE is initialised and then your calcluations performed with the messages printed. By the way, when in doubt, throw away the IDE and just run the code with the Python intepreter.

If you do not want to install the superpack, then you may need to call the 64bit Python to run the optimisation with 64bit Scipy and then return the results. See https://psspy.org/psse-help-forum/question/4275/import-psse-to-python/#6327 for this.

If you cannot see the image, it is a cmd screenshot with the following messages (I change the init bus from 50 to 50000). You can see PSSE is initalised and then the optimisation performed:

  PSS(R)E Version 33
 Copyright (c) 1976-2019
 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

      50000 BUS POWER SYSTEM SIMULATOR--PSS(R)E-33.4.0

             INITIATED ON THU, NOV 14 2019  10:08
('min value:', -0.18814357989751096)
('solution:', array([0.29250894, 1.84897232, 1.84897233]))
('success or not:', True)
('message:', 'Optimization terminated successfully.')

You probably ran into the annoying 32bit/64bit problem.

scipy by default, prefers 64bit (since it is a lot more percise), so as numpy.

But, this is a big but, psspy runs on 32bit (though some other modules provided by PSSE can run on 64bit).

If you google it, you will see a lot of post regarding issues with scipy with 32bit Python.

In short, this is the answer: https://stackoverflow.com/a/25057693

What you need to do is to go to here https://sourceforge.net/projects/scipy/files/scipy/0.16.0/ , and download the "superpack" installer and install it.

I could reproduce your problem in command line before installing the superpack.

After installing the superpack, the problem went away:

Screenshot

You can see that PSSE is initialised and then your calcluations performed with the messages printed. By the way, when in doubt, throw away the IDE and just run the code with the Python intepreter.

If you do not want to install the superpack, then you may need to call the 64bit Python to run the optimisation with 64bit Scipy and then return the results. See https://psspy.org/psse-help-forum/question/4275/import-psse-to-python/#6327 for this.

If you cannot see the image, it is a cmd screenshot with the following messages (I change the init bus from 50 to 50000). You can see PSSE is initalised and then the optimisation performed:

  PSS(R)E Version 33
 Copyright (c) 1976-2019
 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

      50000 BUS POWER SYSTEM SIMULATOR--PSS(R)E-33.4.0

             INITIATED ON THU, NOV 14 2019  10:08
('min value:', -0.18814357989751096)
('solution:', array([0.29250894, 1.84897232, 1.84897233]))
('success or not:', True)
('message:', 'Optimization terminated successfully.')

You probably ran into the annoying 32bit/64bit problem.

scipy by default, prefers 64bit (since it is a lot more percise), so as numpy.

But, this is a big but, psspy runs on 32bit (though some other modules provided by PSSE can run on 64bit).

If you google it, you will see a lot of post posts regarding issues with scipy with 32bit Python.

In short, this is the answer: https://stackoverflow.com/a/25057693

What you need to do is to go to here https://sourceforge.net/projects/scipy/files/scipy/0.16.0/ , and download the "superpack" installer and install it.

I could reproduce your problem in command line before installing the superpack.

After installing the superpack, the problem went away:

Screenshot

You can see that PSSE is initialised and then your calcluations performed with the messages printed. By the way, when in doubt, throw away the IDE and just run the code with the Python intepreter.

If you do not want to install the superpack, then you may need to call the 64bit Python to run the optimisation with 64bit Scipy and then return the results. See https://psspy.org/psse-help-forum/question/4275/import-psse-to-python/#6327 for this.

If you cannot see the image, it is a cmd screenshot with the following messages (I change the init bus from 50 to 50000). You can see PSSE is initalised and then the optimisation performed:

  PSS(R)E Version 33
 Copyright (c) 1976-2019
 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

      50000 BUS POWER SYSTEM SIMULATOR--PSS(R)E-33.4.0

             INITIATED ON THU, NOV 14 2019  10:08
('min value:', -0.18814357989751096)
('solution:', array([0.29250894, 1.84897232, 1.84897233]))
('success or not:', True)
('message:', 'Optimization terminated successfully.')