Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Measurements with zero magnitude in seto:4 #1788

Open
AAndersn opened this issue Aug 29, 2024 · 1 comment
Open

Measurements with zero magnitude in seto:4 #1788

AAndersn opened this issue Aug 29, 2024 · 1 comment
Assignees
Labels
app-critical Critical task needed for an app

Comments

@AAndersn
Copy link
Contributor

When running a simulation on ieee13 circuit on feature/seto, a large number of objects have zero magnitude.

To reproduce this issues, run ieee13 in viz and do timeseries api call for one timestep:

topic = "goss.gridappsd.process.request.data.timeseries" # Specify Timeseries API GridAPPS-D topic

# Use queryFilter of "startTime" and "endTime"
message = {
    "queryMeasurement": "simulation",
    "queryFilter": {
        "simulation_id": simulation_id,
        "startTime": "1724948375",
        "endTime": "1724948378"},
    "responseFormat": "JSON"
}

data = gapps.get_response(topic, message) # Pass API call

Then filter by measurements with magnitude zero:

for data_dict in data:
    if data_dict['time'] == 1724948377:
        if 'magnitude' in data_dict:
            if data_dict['magnitude'] == 0:
                mRID = data_dict['measurement_mrid']
                uuid = UUID(mRID.strip('_').lower())
                analog = network.graph[cim.Analog][uuid]
                print('magnitude is zero for Analog', analog.name, analog.phases)

This returns the following measurements with zero magnitude:

magnitude is zero for Analog PowerTransformer_xfm1_Power PhaseCode.C
magnitude is zero for Analog EnergyConsumer_671 PhaseCode.C
magnitude is zero for Analog Breaker_brkr1_Current PhaseCode.A
magnitude is zero for Analog Recloser_rec1_Current PhaseCode.C
magnitude is zero for Analog LoadBreakSwitch_671692_Voltage PhaseCode.C
magnitude is zero for Analog PowerTransformer_xfm1_Power PhaseCode.C
magnitude is zero for Analog ACLineSegment_650632_Power PhaseCode.A
magnitude is zero for Analog EnergyConsumer_670c PhaseCode.C
magnitude is zero for Analog EnergyConsumer_675a PhaseCode.A
magnitude is zero for Analog LinearShuntCompensator_cap1 PhaseCode.C
magnitude is zero for Analog ACLineSegment_632633_Power PhaseCode.C
magnitude is zero for Analog LoadBreakSwitch_671692_Voltage PhaseCode.C
magnitude is zero for Analog Breaker_brkr1_Current PhaseCode.B
magnitude is zero for Analog ACLineSegment_632645_Power PhaseCode.B
magnitude is zero for Analog ACLineSegment_632670_Voltage PhaseCode.C
magnitude is zero for Analog ACLineSegment_670671_Power PhaseCode.C
magnitude is zero for Analog EnergyConsumer_645 PhaseCode.B
magnitude is zero for Analog EnergyConsumer_675c PhaseCode.C
magnitude is zero for Analog EnergyConsumer_634a PhaseCode.A
magnitude is zero for Analog EnergyConsumer_692 PhaseCode.C
magnitude is zero for Analog ACLineSegment_632645_Power PhaseCode.C
magnitude is zero for Analog ACLineSegment_650632_Power PhaseCode.C
magnitude is zero for Analog EnergyConsumer_611 PhaseCode.C
magnitude is zero for Analog ACLineSegment_632670_Power PhaseCode.C
magnitude is zero for Analog EnergyConsumer_646 PhaseCode.B
magnitude is zero for Analog EnergyConsumer_671 PhaseCode.A
magnitude is zero for Analog LinearShuntCompensator_cap2 PhaseCode.C
magnitude is zero for Analog Breaker_brkr1_Current PhaseCode.C
magnitude is zero for Analog EnergyConsumer_634c PhaseCode.C
magnitude is zero for Analog EnergyConsumer_611 PhaseCode.C
magnitude is zero for Analog ACLineSegment_671684_Power PhaseCode.C
magnitude is zero for Analog LoadBreakSwitch_671692_Current PhaseCode.C
magnitude is zero for Analog LinearShuntCompensator_cap2 PhaseCode.C
magnitude is zero for Analog ACLineSegment_650632_Voltage PhaseCode.C
magnitude is zero for Analog EnergyConsumer_675c PhaseCode.C
magnitude is zero for Analog EnergyConsumer_house PhaseCode.s2
magnitude is zero for Analog EnergyConsumer_634b PhaseCode.B
magnitude is zero for Analog Recloser_rec1_Voltage PhaseCode.C
magnitude is zero for Analog EnergyConsumer_652 PhaseCode.A
magnitude is zero for Analog LoadBreakSwitch_sect1_Voltage PhaseCode.C
magnitude is zero for Analog Recloser_rec1_Voltage PhaseCode.C
magnitude is zero for Analog EnergyConsumer_692 PhaseCode.C
magnitude is zero for Analog EnergyConsumer_671 PhaseCode.B
magnitude is zero for Analog ACLineSegment_692675_Power PhaseCode.C
magnitude is zero for Analog ACLineSegment_645646_Voltage PhaseCode.C
magnitude is zero for Analog ACLineSegment_671680_Power PhaseCode.C
magnitude is zero for Analog ACLineSegment_684611_Power PhaseCode.C
magnitude is zero for Analog ACLineSegment_671680_Voltage PhaseCode.C
magnitude is zero for Analog ACLineSegment_632633_Voltage PhaseCode.C
magnitude is zero for Analog ACLineSegment_645646_Power PhaseCode.B
magnitude is zero for Analog ACLineSegment_645646_Power PhaseCode.C
magnitude is zero for Analog EnergyConsumer_671 PhaseCode.C
magnitude is zero for Analog ACLineSegment_671680_Power PhaseCode.B
magnitude is zero for Analog EnergyConsumer_670b PhaseCode.B
magnitude is zero for Analog EnergyConsumer_670c PhaseCode.C
magnitude is zero for Analog ACLineSegment_632645_Voltage PhaseCode.C
magnitude is zero for Analog ACLineSegment_650632_Power PhaseCode.B
magnitude is zero for Analog EnergyConsumer_675b PhaseCode.B
magnitude is zero for Analog EnergyConsumer_670a PhaseCode.A
magnitude is zero for Analog EnergyConsumer_house PhaseCode.s1
magnitude is zero for Analog LoadBreakSwitch_sect1_Current PhaseCode.C
magnitude is zero for Analog LinearShuntCompensator_cap1 PhaseCode.C
magnitude is zero for Analog LoadBreakSwitch_sect1_Voltage PhaseCode.C
magnitude is zero for Analog ACLineSegment_671680_Power PhaseCode.A

@AAndersn AAndersn added the app-critical Critical task needed for an app label Aug 29, 2024
@AAndersn
Copy link
Contributor Author

Using measurements from cim-builder (https://github.com/GRIDAPPSD/Powergrid-Models/blob/seto_cleanup/models/feeders/CIM/XML/ieee13_CDPSM/analog.xml), PNV measurements of zero have gone away, but still have zero VA power for EnergyConsumer and inverter objects

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
app-critical Critical task needed for an app
Projects
None yet
Development

No branches or pull requests

3 participants