Ask Your Question

jconto's profile - activity

2021-06-17 16:39:45 -0500 commented answer Dynamic data for PV system

In the PSSe GUI, open your case and in the MACHINE tab, set those PV machines as "wind" by setting their control mode and pf. In the dyr file, a text file, add the dyr models. Check the post "Solar PV using REGCA models" for examples.

2021-06-08 09:57:05 -0500 answered a question How can I create the Y-Bus Matrix in PSSE?

Search this forum for "How to get updated Y matrix?" for how to export the Y-matrix of a loaded case to file. To create it, review theory found on power system books or the net.

2021-06-07 21:54:35 -0500 commented answer vref dynamic disturbance for REECA1

Use PLBVFU1 as noted above. Or search this forum for DMview, a tool to test power plant models.

2021-06-07 21:30:22 -0500 commented answer fail to load dyr file

try using: psspy.psseinit()

2021-05-31 13:43:54 -0500 commented answer Can we edit outfiles created by PSSE using any other editor?

Click on my name to show my email.

2021-05-27 08:34:33 -0500 commented answer Can we edit outfiles created by PSSE using any other editor?

OUT files are binary and their format are not publicly available. You may need to contact PTI. But, what would be the benefit to create an "edited" out file? Once you have the raw data in excel (or similar), existing tools can post-process the data free from the limitations in PSSe.

2021-05-26 10:02:05 -0500 answered a question Can we edit outfiles created by PSSE using any other editor?

PSSPLT (and to some extend Plotblook) is a plot-editor. If your need is outside basic plot editing (scaling, selecting time frames or finding derivatives), just export data (channels) from the outs files (to csv, txt or xls) and 'edit' them in excel. Search the forum for 'dyntools', 'out to csv', 'channels' or similar keywords.

2021-05-26 09:41:08 -0500 answered a question PQ Plot in PSSE

Perform a PV study (check the manual for details) with your single generator as the source. The sink can be left to the swing bus. Start with Pgen at a low value, 10% of Pmax, and within a loop, load flow solve it, retrieve Qgen and save both in an array; next increase Pgen by a delta amount (10%) and repeat. Exit the loop when Pgen reaches Pmax. Plot the array Pgen v. Qgen. [BTW, Pgen, Qgen values can be found manually too!]

2021-05-25 10:04:05 -0500 edited question how to get pure data without titles in .txt out files

Hi, everyone!

I used the following code to output the results of dynamic simulations:

output_obj = dyntools.CHNF('D:\python_test.out')

But the output txt file looks like this:

D:\IEEE 9\python_test_1.out
        Time(s) FREQ 1 [BUS1 1
     -0.0166667              0
    -0.00833333    2.70645E-11
              0    1.99895E-11
              0    1.99895E-11
     0.00833333    2.41407E-11
      0.0166667   -0.000255582

I have to delete the title manually and then deal with the data. I wondered if there is a method which can output pure data without title. So I can deal with the data directly in python. Any other better methods to output the results of dynamic simulation would be great as well.

I would really appreciate your help!

Thanks a lot!

2021-05-21 08:35:24 -0500 commented answer Renewable Plant Modeling - Solar PV - Wind

For Nordic44 check the link ""

2021-05-21 08:32:27 -0500 commented answer Renewable Plant Modeling - Solar PV - Wind

Check for post "PV and WTG Step Change" and download the tool DMView.

2021-05-17 15:51:44 -0500 commented answer Previous versions of PSSE

It should. Give it a try and let's know ("CreateRaw", "CONVERTRAW").

2021-05-14 13:00:35 -0500 commented answer ImportError: DLL load failed: %1 is not a valid Win32 application.

Any 'python load failed' error messages is usually related to bad installation. I can review your code if sent to

2021-05-13 17:09:42 -0500 answered a question ImportError: DLL load failed: %1 is not a valid Win32 application.

Having a (v.35.2.1) install on default folders, I can load psspy with the following:

import psse35
import psspy

The error "ImportError: DLL load failed:" suggest a re-install.

2021-05-13 09:01:20 -0500 answered a question psspy module not found in PSS/E 35 while using python script

can you post more information about your case? Like the error messages or even the script?

2021-05-12 12:27:43 -0500 commented answer Example using PLBVFU1 playback generator

My email can be seen by clicking on my name.

2021-05-05 15:55:29 -0500 commented answer Can someone share the ieee 14 bus system for pss/e?

Check the post "Zero sequence impedance". The negative and zero sequence data are not typically available in dynamic data sets. You'll get different results with/without such sequence data. Also check with power protection specialists about such data or contact Siemens PTI for typical data.

2021-05-05 14:11:29 -0500 commented answer abuschar data to excel

See my edited answer above.

2021-05-05 08:58:28 -0500 answered a question Can someone share the ieee 14 bus system for pss/e?

Search the internet for "IEEE 14-Bus System" and links from TA&M U. and Illinois U. will be shown. The original data set is for steady state analysis but it does not come with dynamic data.
A version of the IEEE 14-Bus System with dynamics for PSSe can be found at my google drive site, folder "Dynamics Networks 4 PSSe"

2021-05-05 08:41:58 -0500 commented answer abuschar data to excel

is the python module "xlsxwriter" installed?

2021-05-04 17:29:25 -0500 commented answer Apply a disturbance in IEEE39

For a bus load use 'CMLDBLU2', the zonal version is applied to a zone number, not a bus. The demo set contains a zonal cmld dyr, savnw_cmld_zones.dyr. Read the manual 'MODELS' for models usage.

2021-05-04 17:21:34 -0500 answered a question looking for a typical parameters of CMLDBLDGU2
@! CMLDBLDGU2.dyr - bus load CMLD + DG
@! WECC data, processed with NERC LMDT tool, formatted by jconto

4   'USRLOD'  1 'CMLDBLDGU2' 12 1 8 175 32 148 48
@!  ICONs
    0 0  1  0  0  1  1  1    
@!  CONS J, J+6
    -1.0     0.0   0.04   0.04      0.08    1.0   1.0   
@!  CONS J+7, J+16
    1.0   0.9   1.1   0.00625  1.025   1.04   30.0   5.0   0.0   0.0   
@!  CONS J+17, J+21
    0.108850010868     0.114095056656     0.0605301020056     0.0860015181818      0.189206598581   
@!  CONS J+22, J+26
    1.0      0.6      0.5      0.8   1.0
@!  CONS J+27, J+36
    2   0.647763667352     1     0.352236332648     0.0   2     1.0     1     0.0     -1.0   
@!  CONS J+37, J+56 - Motor A
    0.75  0.104  0.059  0.04  1.8  0.12  0.095  0.0021  0.1  0.0  0.6  0.1  0.2  1.0  99999.0  0.45  0.02  0.75  0.6  0.1   
@!  CONS J+57, J+76 - Motor B
    0.75  0.14   0.059  0.03  1.8  0.19  0.2    0.0026  0.5  2.0  0.5  0.02 0.3  0.6  0.05     0.45  0.025 0.3   0.55 0.05   
@!  CONS J+77, J+96 - Motor C
    0.75  0.14   0.059  0.03  1.8  0.19  0.2    0.0026  0.1  2.0  0.53 0.03 0.2  0.63 0.05     0.48  0.03  0.3   0.58 0.1
@!  CONS J+97, J+106 - Motor D
    0.03    0.3    0.025    0.05  1.0    0.98    0.45    0.1    0.1   0.0    
@!  CONS J+107, J+114 - Motor D
    0.0    1.0    6.0    2.0   12.0    3.2    11.0    2.5 
@!  CONS J+115, J+123 - Motor D
    0.86   0.2    0.95   1.0   -3.3    0.5    0.4    0.6    0.5   
@!  CONS J+124, J+131 - Motor D
    15.0    0.7    1.9       0.1    0.6    0.2    0.0    9999.0   
@!  CONS J+132, J+139 - DER
    0.0    0.0  -0.1    0.1    1.0    0.0    0.025   0.02
@!  CONS J+140, J+145 - DER
    0.0  0.0  0.0  0.0  999.0  -999.0   
@!  CONS J+146, J+153 - DER
    1.1  0.0  9.0 -9.0  0.1  0.1  0.05  1.2  
@!  CONS J+154, J+162 - DER
    0.5  0.52  1.21  1.19  200.0  0.0  200.0  0.0 0.5
@!  CONS J+163, J+174 - DER
    59.0 61.0  1.0  1.0  0.02  5.0  0.2  0.8   0.5  -0.5  0.75  0.5  /Bus 4
2021-05-03 16:47:42 -0500 answered a question Apply a disturbance in IEEE39

Check the post "CMLDxxU2 + CMLDelta modeling" and then download the demo data set to model a CMLD load and to test it with a 3-phase fault.

2021-05-03 16:33:35 -0500 answered a question abuschar data to excel

The pandas dataframes looks OK. Make sure that "path", Excel_file" are defined and pandas import works.

Define sid before calling 'abusint' and similar functions. Set sid=-1 for all buses.

Using 'savnw.sav' and engine set to xlsxwriter, I got an xlsx file output:

#writer = pd.ExcelWriter(filename, engine='openpyxl') 
writer = pd.ExcelWriter(filename, engine='xlsxwriter') 
#wb  =

df_nodes.to_excel(writer, sheet_name = 'NODES')
df_branches.to_excel(writer, sheet_name = 'BRANCHES')

Another way is to use pandas' dataframe to_excel method:

# from
import pandas as pd 

# dictionary of data 
dct = {'ID': {0: 23, 1: 43, 2: 12, 3: 13, 4: 67, 5: 89, 
              6: 90, 7: 56, 8: 34}, 
      'Name': {0: 'Ram', 1: 'Deep', 2: 'Yash', 3: 'Aman', 
               4: 'Arjun', 5: 'Aditya', 6: 'Divya', 7: 'Chalsea', 8: 'Akash' }, 
      'Marks': {0: 89, 1: 97, 2: 45, 3: 78, 
                4: 56, 5: 76, 6: 100, 7: 87, 8: 81}, 
      'Grade': {0: 'B', 1: 'A', 2: 'F', 3: 'C', 4: 'E', 5: 'C', 6: 'A', 7: 'B', 8: 'B'} 

# forming dataframe
data = pd.DataFrame(dct) 

# storing into the excel file
2021-05-03 15:37:05 -0500 answered a question Best way to read *.out file with PSSExplore34? Excel or python?

Check the post "How to install modules in PSSEXplore34" in this forum to resolve the problem.

Also, check if the file "" is in the psspy folder:

DIRECTORY_PATH =r'C:\Program Files (x86)\PTI\PSSEXplore34\PSSPY27'    #=psspy folder
import psse34
2021-04-30 16:35:13 -0500 commented answer Use a .lib file on PSSE 34.6 and later

run the PTI tool "Create User DLL", drag and drop all the *.obj into the box "User Model Object Library FiIes" and then click the icon "compile DLL". For a demo to compile search the forum for "User Defined Models" and download a demo data set for v.33. You have to have a Fortran compiler!

2021-04-29 08:50:56 -0500 answered a question UVUFxx1 modelling

This model UVUFBLU1 exists (part of the models library) and work well in PSSe v.33.12.2. For details, search this forum for the post 'UVUF'. The model UVUFBLU1 is added only in the dyre file, not in the base case.

Edit a dyre file in a text editor and for those loads chosen to have the relay model (adjust model UV and UF parameters as per model data, check 'Models' documentation), add the following:

680211 'USRLOD' 1 'UVUFBLU1' 13 1 1 20 0 7 18 906 0.7 0.2 0.025 0.6 0.1 0.025 0.5 0.05 0.05 0.05 59 0 .5 0 0 0 0 0 0 0.05 /

Now, continue with your dynamic simulation. Read a converted case, add the dyre file with relay models and such data will be displayed in PSSe GUI after the 'Protection Models' tab is selected on the main 'dynamic data' tab.

2021-04-26 12:58:06 -0500 answered a question How to simulate higher voltage

It would be good to know why you want an entire network in a high voltage state.

You can decrease the reactive consumption from loads (not a realistic scenario) or raised reactive injection (turn on capacitors or set generator voltage setting point to higher values).

Remember that voltage has a local impact so if you want to test a 'device' under high voltage condition, a localize high voltage condition can be created nearby such device instead of system wide HV conditions.

2021-04-23 09:25:04 -0500 answered a question Not open for physical access : How to resolve this issue?

Contact PTI if your issue is related to the following (from the PTI PSSE support site):

"Dyntools error for PSS®E 33.12 – “Not open for physical access error” / “GETOUT”

Modified on: Tue, 8 Oct, 2019 at 2:58 PM

Attached zip file below contains an executable that will resolve the issue ”Not open for physical access error / GETOUT”. After downloading, unzip and place the dynOutx.exe file in the PSSBIN folder (by default, this would be located at C:\Program Files (x86) \PTI\PSSE33\PSSBIN). Once in the PSSBIN folder, run the dynOutx executable as administrator (i.e. right click, run as administrator) and then launch PSSE to see if the issue is resolved.

This executable will be modifying the registry, specifically an entry that relates to using *.out and *.outx files. Once this change has been made, you should no longer receive messages relating to GETOUT.

dynOutx.exe: "

2021-04-07 09:31:49 -0500 answered a question Is there any automated routine in PSS/E for performing voltage step tests for Renewable Energy equivalent generators (e.g. Solar Generators) like we have for synchronous generators

Search the forum for the post "PV and WTG Step Change", with a link to DMview (Yunzhi's tool)

2021-04-06 11:34:36 -0500 commented answer PV analysis .sub file

Make sure on main PV menu, in section "Transfer dispatch methods" -> "For opposing sink system", select DFAX load.

2021-04-06 11:03:22 -0500 edited answer PV analysis .sub file

Yes I used the same zone number as the load, but still facing same problem. Please find below .sub file:

Subsystem SOURCE
Zone 911
Subsystem SINK
Zone 221
Subsystem 132_Network
JOIN Group1
Area 8
Owner 433
Subsystem my_network
JOIN Group2
Area 9
Owner 443
Subsystem Yoga_plant
BUS 772
BUS 777
BUS 782
Subsystem Moka_plant
BUS 622
BUS 627
BUS 632
2021-04-05 13:29:33 -0500 answered a question PV analysis .sub file

Can you post the SUB file?

Source and Sink regions (areas, zones, or any grouping combination allowed) have unique elements. Also check that the zone number exists in the case and it contains loads. Remember that load's zones numbers may be different than its bus zone numbers.

2021-04-05 13:28:58 -0500 commented answer dll not found

Upgrade whenever is possible.

2021-03-30 15:01:59 -0500 answered a question dll not found

Check the post "Can be a UDM compiled for PSS/E 34.4 been used in PSS/E 34.5 & 34.7?"

short answer: DLLs for v.34.6 are not usable in v.34.1

But, DLLs for v.34.1 appears to be usable in v.34.6:

"PSS®E 34.6.1 Release Notes - July 2019
This update includes a program correction.
5.1. Program Corrections
The following issues have been identified and corrected in this release:
1. Corrected an issue where certain user model DLLs would fail to load
• PTIUtils.dll and PTIUtils.lib have been updated to include corrections for loading user model DLLs that were compiled prior to the release of PSS®E 34.6.0. This correction does not have an effect on the engine of PSS®E since the modifications needed resided entirely within the PTIUtils DLL."
2021-03-30 10:46:20 -0500 answered a question how to add pip or numpy to python 2.7?

In win10, open a CMD window (a DOS window) and enter:

c:\..>pip install numpy
2021-03-09 15:13:02 -0500 commented answer I want to simulate LVRT on a synchronous machine at PCC using SMIB model. How to model the LVRT profile in PSSE? How do i model the voltage ramping at PCC?

Examples added in the update. Check link above.

2021-03-09 15:11:44 -0500 edited answer I want to simulate LVRT on a synchronous machine at PCC using SMIB model. How to model the LVRT profile in PSSE? How do i model the voltage ramping at PCC?

Search this forum for "PLBVFU1".

The model PLBVFU1 can be used with a input data (*.plb) that mimics the voltage profile (V(t), t) that matches your LVRT profile.

Updated plbvfu1 data set now contains LVRT, HVRT and freq. step-down test in addition to original pmu data test. Download it here

2021-03-09 01:00:21 -0500 received badge  Good Question (source)
2021-03-08 14:01:59 -0500 answered a question Apply a disturbance at a specific time

The time under fault (5 sec = 15-10) is too long! Check the examples below. Check the commands at API manual for details.

# fault at branch 2-3-'1':, 10.0,9,9,0)           #run to 10 sec (second value)
psspy.dist_branch_fault(2,3,r"""1""",1, 0,[0.0,-0.2E+10]), 10.15,5,1,0)             #run under fault for 0.15 sec = 9 cycles @ 60 Hz
#continue with simulation, 21.0,9,9,0)

# fault at bus 2:, 10.0,9,9,0)
psspy.dist_bus_fault(2,1, 0,[0.0,-0.2E+10]), 10.1,1000,1,0)          #run under fault for 0.1 sec = 6 cycles @ 60 Hz
#continue with simulation
2021-02-26 14:59:23 -0500 answered a question NVM NVM NVM NVM

It runs on python 2.7, PSSe v.33

2021-02-23 08:50:12 -0500 received badge  Nice Question (source)
2021-02-22 15:33:12 -0500 answered a question Need Python Script to Open PSSE v34

Check the post "Python 3.7 w/ PSSE 34" for additional info. The 'auto' loading of a python script might not work with multiple python version, multiple PSSe versions on same machine.

Save the following as code:

import os, sys
PSSPY27PATH = r"C:\Program Files (x86)\PTI\PSSE34\PSSPY27"
sys.path.append(PSSPY27PATH)     #path to psspy for python 2.7
# import psse34                  #it replaces the above two lines
import psspy
import redirect
import dyntools
import csv, re

Now, open explicitly the command prompt window (DOS window) provided with the installation of PSSe v 34, change directory to your working folder

c:\..>cd c:\...\wfolder

and type:

2021-02-22 09:45:10 -0500 answered a question Case convergence problem

Numerically non-convergence conditions due to switching back & forth of capacitors or adjusting transformer taps or conflicting voltage control objective of generators need to be cleared first. Next, check that total generation and load, in P and Q, are close enough so the swing unit could resolve the unbalance.

Find a previous case that converged, compare them to find the significant differences and adjust accordingly. For example, if there is too much load in the non-converging case, consider reducing it to a level that you can converge again and then perform a PV study to find the maximum load to increase before reaching non-convergence.