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

Sourcebus VA measurements needed and PowerElectronicsConnection.q doesn't appear to be implemented #16

Open
Tylores opened this issue Jul 19, 2024 · 2 comments
Assignees

Comments

@Tylores
Copy link
Contributor

Tylores commented Jul 19, 2024

Describe the bug
The Sourcebus has a PNV measurement, but there is no VA measurement which is needed for evaluation of algorithm effectiveness. Currently the next element is used as a temp fix for this.

The second issue is the following commands are being sent through the difference builder, but it doesn't appear to have any effect on the upstream voltage nodes which it should.

{'command': 'update', 'input': {'simulation_id': None, 'message': {'timestamp': 1721426294, 'difference_mrid': '79676bd8-2444-44ef-aad8-f27e787b7562', 'reverse_differences': [{'object': '_5C12CD85-A6F2-4FCC-98E6-F8376C32D5A6', 'attribute': 'ShuntCompensator.sections', 'value': 0}, {'object': '_73F73F44-785B-4B5C-9281-F53EC1D5F5EB', 'attribute': 'ShuntCompensator.sections', 'value': 1}, {'object': '_F2B62306-6EB6-40E9-9FA8-A7AF4FDC9D19', 'attribute': 'ShuntCompensator.sections', 'value': 1}, {'object': '_2BE541D8-B935-4A07-A9A8-F65CDEE3F501', 'attribute': 'ShuntCompensator.sections', 'value': 1}, {'object': '_DDE67E28-B939-410E-9AC3-D0BF9D696223', 'attribute': 'PowerElectronicsConnection.q', 'value': 0.0}, {'object': '_846A1B21-799A-42D0-92BD-ADC0FF38A1B6', 'attribute': 'PowerElectronicsConnection.q', 'value': 0.0}, {'object': '_26B73613-6577-4E56-A8A8-7F420E92C7D3', 'attribute': 'PowerElectronicsConnection.q', 'value': 0.0}, {'object': '_8A133675-CDFC-46F8-9A3C-BECC27AE479B', 'attribute': 'PowerElectronicsConnection.q', 'value': 0.0}, {'object': '_41C0FB99-7B37-4C82-8093-A8039980470B', 'attribute': 'PowerElectronicsConnection.q', 'value': 0.0}, {'object': '_C1D059D8-4D06-4621-B80C-3FCEA2F632BB', 'attribute': 'PowerElectronicsConnection.q', 'value': 0.0}, {'object': '_371BF3E8-1771-4912-B388-EB326A2E89CA', 'attribute': 'PowerElectronicsConnection.q', 'value': 0.0}, {'object': '_7132F7B2-7059-460A-BBCE-47324E614E65', 'attribute': 'PowerElectronicsConnection.q', 'value': 0.0}, {'object': '_E90C73B9-DC2D-4B75-A8CF-D2406E61735C', 'attribute': 'PowerElectronicsConnection.q', 'value': 0.0}, {'object': '_F665506E-2E02-4545-B438-DA3EE243557A', 'attribute': 'PowerElectronicsConnection.q', 'value': 0.0}, {'object': '_1B9D15A4-90D5-4699-8050-D79301F45665', 'attribute': 'PowerElectronicsConnection.q', 'value': 0.0}, {'object': '_8927FDA7-9497-4EFE-8884-F90B8C40AFBB', 'attribute': 'PowerElectronicsConnection.q', 'value': 0.0}, {'object': '_03AA4E26-87CA-4A50-9CE5-18F4CDC91AB2', 'attribute': 'PowerElectronicsConnection.q', 'value': 0.0}, {'object': '_A1CDBD7E-C65A-46A9-8C38-C447AD926FC8', 'attribute': 'PowerElectronicsConnection.q', 'value': 0.0}, {'object': '_5C12CD85-A6F2-4FCC-98E6-F8376C32D5A6', 'attribute': 'ShuntCompensator.sections', 'value': 0}, {'object': '_73F73F44-785B-4B5C-9281-F53EC1D5F5EB', 'attribute': 'ShuntCompensator.sections', 'value': 0}, {'object': '_F2B62306-6EB6-40E9-9FA8-A7AF4FDC9D19', 'attribute': 'ShuntCompensator.sections', 'value': 0}, {'object': '_2BE541D8-B935-4A07-A9A8-F65CDEE3F501', 'attribute': 'ShuntCompensator.sections', 'value': 0}, {'object': '_DDE67E28-B939-410E-9AC3-D0BF9D696223', 'attribute': 'PowerElectronicsConnection.q', 'value': 0.0}, {'object': '_846A1B21-799A-42D0-92BD-ADC0FF38A1B6', 'attribute': 'PowerElectronicsConnection.q', 'value': 0.0}, {'object': '_26B73613-6577-4E56-A8A8-7F420E92C7D3', 'attribute': 'PowerElectronicsConnection.q', 'value': 0.0}, {'object': '_8A133675-CDFC-46F8-9A3C-BECC27AE479B', 'attribute': 'PowerElectronicsConnection.q', 'value': 0.0}, {'object': '_41C0FB99-7B37-4C82-8093-A8039980470B', 'attribute': 'PowerElectronicsConnection.q', 'value': 0.0}, {'object': '_C1D059D8-4D06-4621-B80C-3FCEA2F632BB', 'attribute': 'PowerElectronicsConnection.q', 'value': 0.0}, {'object': '_371BF3E8-1771-4912-B388-EB326A2E89CA', 'attribute': 'PowerElectronicsConnection.q', 'value': 0.0}, {'object': '_7132F7B2-7059-460A-BBCE-47324E614E65', 'attribute': 'PowerElectronicsConnection.q', 'value': 0.0}, {'object': '_E90C73B9-DC2D-4B75-A8CF-D2406E61735C', 'attribute': 'PowerElectronicsConnection.q', 'value': 0.0}, {'object': '_F665506E-2E02-4545-B438-DA3EE243557A', 'attribute': 'PowerElectronicsConnection.q', 'value': 0.0}, {'object': '_1B9D15A4-90D5-4699-8050-D79301F45665', 'attribute': 'PowerElectronicsConnection.q', 'value': 0.0}, {'object': '_8927FDA7-9497-4EFE-8884-F90B8C40AFBB', 'attribute': 'PowerElectronicsConnection.q', 'value': 0.0}, {'object': '_03AA4E26-87CA-4A50-9CE5-18F4CDC91AB2', 'attribute': 'PowerElectronicsConnection.q', 'value': 0.0}, {'object': '_A1CDBD7E-C65A-46A9-8C38-C447AD926FC8', 'attribute': 'PowerElectronicsConnection.q', 'value': 0.0}, {'object': '_5C12CD85-A6F2-4FCC-98E6-F8376C32D5A6', 'attribute': 'ShuntCompensator.sections', 'value': 0}, {'object': '_73F73F44-785B-4B5C-9281-F53EC1D5F5EB', 'attribute': 'ShuntCompensator.sections', 'value': 0}, {'object': '_F2B62306-6EB6-40E9-9FA8-A7AF4FDC9D19', 'attribute': 'ShuntCompensator.sections', 'value': 0}, {'object': '_2BE541D8-B935-4A07-A9A8-F65CDEE3F501', 'attribute': 'ShuntCompensator.sections', 'value': 0}, {'object': '_DDE67E28-B939-410E-9AC3-D0BF9D696223', 'attribute': 'PowerElectronicsConnection.q', 'value': 0.0}, {'object': '_846A1B21-799A-42D0-92BD-ADC0FF38A1B6', 'attribute': 'PowerElectronicsConnection.q', 'value': 0.0}, {'object': '_26B73613-6577-4E56-A8A8-7F420E92C7D3', 'attribute': 'PowerElectronicsConnection.q', 'value': 0.0}, {'object': '_8A133675-CDFC-46F8-9A3C-BECC27AE479B', 'attribute': 'PowerElectronicsConnection.q', 'value': 0.0}, {'object': '_41C0FB99-7B37-4C82-8093-A8039980470B', 'attribute': 'PowerElectronicsConnection.q', 'value': 0.0}, {'object': '_C1D059D8-4D06-4621-B80C-3FCEA2F632BB', 'attribute': 'PowerElectronicsConnection.q', 'value': 0.0}, {'object': '_371BF3E8-1771-4912-B388-EB326A2E89CA', 'attribute': 'PowerElectronicsConnection.q', 'value': 0.0}, {'object': '_7132F7B2-7059-460A-BBCE-47324E614E65', 'attribute': 'PowerElectronicsConnection.q', 'value': 0.0}, {'object': '_E90C73B9-DC2D-4B75-A8CF-D2406E61735C', 'attribute': 'PowerElectronicsConnection.q', 'value': 0.0}, {'object': '_F665506E-2E02-4545-B438-DA3EE243557A', 'attribute': 'PowerElectronicsConnection.q', 'value': 0.0}, {'object': '_1B9D15A4-90D5-4699-8050-D79301F45665', 'attribute': 'PowerElectronicsConnection.q', 'value': 0.0}, {'object': '_8927FDA7-9497-4EFE-8884-F90B8C40AFBB', 'attribute': 'PowerElectronicsConnection.q', 'value': 0.0}, {'object': '_03AA4E26-87CA-4A50-9CE5-18F4CDC91AB2', 'attribute': 'PowerElectronicsConnection.q', 'value': 0.0}, {'object': '_A1CDBD7E-C65A-46A9-8C38-C447AD926FC8', 'attribute': 'PowerElectronicsConnection.q', 'value': 0.0}], 'forward_differences': [{'object': '_5C12CD85-A6F2-4FCC-98E6-F8376C32D5A6', 'attribute': 'ShuntCompensator.sections', 'value': 1}, {'object': '_73F73F44-785B-4B5C-9281-F53EC1D5F5EB', 'attribute': 'ShuntCompensator.sections', 'value': 0}, {'object': '_F2B62306-6EB6-40E9-9FA8-A7AF4FDC9D19', 'attribute': 'ShuntCompensator.sections', 'value': 0}, {'object': '_2BE541D8-B935-4A07-A9A8-F65CDEE3F501', 'attribute': 'ShuntCompensator.sections', 'value': 0}, {'object': '_DDE67E28-B939-410E-9AC3-D0BF9D696223', 'attribute': 'PowerElectronicsConnection.q', 'value': -80000.0}, {'object': '_846A1B21-799A-42D0-92BD-ADC0FF38A1B6', 'attribute': 'PowerElectronicsConnection.q', 'value': 0.0}, {'object': '_26B73613-6577-4E56-A8A8-7F420E92C7D3', 'attribute': 'PowerElectronicsConnection.q', 'value': 0.0}, {'object': '_8A133675-CDFC-46F8-9A3C-BECC27AE479B', 'attribute': 'PowerElectronicsConnection.q', 'value': 0.0}, {'object': '_41C0FB99-7B37-4C82-8093-A8039980470B', 'attribute': 'PowerElectronicsConnection.q', 'value': 0.0}, {'object': '_C1D059D8-4D06-4621-B80C-3FCEA2F632BB', 'attribute': 'PowerElectronicsConnection.q', 'value': -120000.0}, {'object': '_371BF3E8-1771-4912-B388-EB326A2E89CA', 'attribute': 'PowerElectronicsConnection.q', 'value': 0.0}, {'object': '_7132F7B2-7059-460A-BBCE-47324E614E65', 'attribute': 'PowerElectronicsConnection.q', 'value': 0.0}, {'object': '_E90C73B9-DC2D-4B75-A8CF-D2406E61735C', 'attribute': 'PowerElectronicsConnection.q', 'value': -120000.0}, {'object': '_F665506E-2E02-4545-B438-DA3EE243557A', 'attribute': 'PowerElectronicsConnection.q', 'value': 0.0}, {'object': '_1B9D15A4-90D5-4699-8050-D79301F45665', 'attribute': 'PowerElectronicsConnection.q', 'value': 0.0}, {'object': '_8927FDA7-9497-4EFE-8884-F90B8C40AFBB', 'attribute': 'PowerElectronicsConnection.q', 'value': -200000.0}, {'object': '_03AA4E26-87CA-4A50-9CE5-18F4CDC91AB2', 'attribute': 'PowerElectronicsConnection.q', 'value': -130000.0}, {'object': '_A1CDBD7E-C65A-46A9-8C38-C447AD926FC8', 'attribute': 'PowerElectronicsConnection.q', 'value': 0.0}, {'object': '_5C12CD85-A6F2-4FCC-98E6-F8376C32D5A6', 'attribute': 'ShuntCompensator.sections', 'value': 1}, {'object': '_73F73F44-785B-4B5C-9281-F53EC1D5F5EB', 'attribute': 'ShuntCompensator.sections', 'value': 1}, {'object': '_F2B62306-6EB6-40E9-9FA8-A7AF4FDC9D19', 'attribute': 'ShuntCompensator.sections', 'value': 1}, {'object': '_2BE541D8-B935-4A07-A9A8-F65CDEE3F501', 'attribute': 'ShuntCompensator.sections', 'value': 1}, {'object': '_DDE67E28-B939-410E-9AC3-D0BF9D696223', 'attribute': 'PowerElectronicsConnection.q', 'value': 92789.0}, {'object': '_846A1B21-799A-42D0-92BD-ADC0FF38A1B6', 'attribute': 'PowerElectronicsConnection.q', 'value': 0.0}, {'object': '_26B73613-6577-4E56-A8A8-7F420E92C7D3', 'attribute': 'PowerElectronicsConnection.q', 'value': 0.0}, {'object': '_8A133675-CDFC-46F8-9A3C-BECC27AE479B', 'attribute': 'PowerElectronicsConnection.q', 'value': 0.0}, {'object': '_41C0FB99-7B37-4C82-8093-A8039980470B', 'attribute': 'PowerElectronicsConnection.q', 'value': 0.0}, {'object': '_C1D059D8-4D06-4621-B80C-3FCEA2F632BB', 'attribute': 'PowerElectronicsConnection.q', 'value': 74365.0}, {'object': '_371BF3E8-1771-4912-B388-EB326A2E89CA', 'attribute': 'PowerElectronicsConnection.q', 'value': 0.0}, {'object': '_7132F7B2-7059-460A-BBCE-47324E614E65', 'attribute': 'PowerElectronicsConnection.q', 'value': 0.0}, {'object': '_E90C73B9-DC2D-4B75-A8CF-D2406E61735C', 'attribute': 'PowerElectronicsConnection.q', 'value': 74365.0}, {'object': '_F665506E-2E02-4545-B438-DA3EE243557A', 'attribute': 'PowerElectronicsConnection.q', 'value': 0.0}, {'object': '_1B9D15A4-90D5-4699-8050-D79301F45665', 'attribute': 'PowerElectronicsConnection.q', 'value': 0.0}, {'object': '_8927FDA7-9497-4EFE-8884-F90B8C40AFBB', 'attribute': 'PowerElectronicsConnection.q', 'value': 64391.0}, {'object': '_03AA4E26-87CA-4A50-9CE5-18F4CDC91AB2', 'attribute': 'PowerElectronicsConnection.q', 'value': 56575.0}, {'object': '_A1CDBD7E-C65A-46A9-8C38-C447AD926FC8', 'attribute': 'PowerElectronicsConnection.q', 'value': 0.0}, {'object': '_5C12CD85-A6F2-4FCC-98E6-F8376C32D5A6', 'attribute': 'ShuntCompensator.sections', 'value': 1}, {'object': '_73F73F44-785B-4B5C-9281-F53EC1D5F5EB', 'attribute': 'ShuntCompensator.sections', 'value': 1}, {'object': '_F2B62306-6EB6-40E9-9FA8-A7AF4FDC9D19', 'attribute': 'ShuntCompensator.sections', 'value': 1}, {'object': '_2BE541D8-B935-4A07-A9A8-F65CDEE3F501', 'attribute': 'ShuntCompensator.sections', 'value': 1}, {'object': '_DDE67E28-B939-410E-9AC3-D0BF9D696223', 'attribute': 'PowerElectronicsConnection.q', 'value': 92956.0}, {'object': '_846A1B21-799A-42D0-92BD-ADC0FF38A1B6', 'attribute': 'PowerElectronicsConnection.q', 'value': 0.0}, {'object': '_26B73613-6577-4E56-A8A8-7F420E92C7D3', 'attribute': 'PowerElectronicsConnection.q', 'value': 0.0}, {'object': '_8A133675-CDFC-46F8-9A3C-BECC27AE479B', 'attribute': 'PowerElectronicsConnection.q', 'value': 946.0}, {'object': '_41C0FB99-7B37-4C82-8093-A8039980470B', 'attribute': 'PowerElectronicsConnection.q', 'value': 0.0}, {'object': '_C1D059D8-4D06-4621-B80C-3FCEA2F632BB', 'attribute': 'PowerElectronicsConnection.q', 'value': 74365.0}, {'object': '_371BF3E8-1771-4912-B388-EB326A2E89CA', 'attribute': 'PowerElectronicsConnection.q', 'value': 0.0}, {'object': '_7132F7B2-7059-460A-BBCE-47324E614E65', 'attribute': 'PowerElectronicsConnection.q', 'value': 0.0}, {'object': '_E90C73B9-DC2D-4B75-A8CF-D2406E61735C', 'attribute': 'PowerElectronicsConnection.q', 'value': 74365.0}, {'object': '_F665506E-2E02-4545-B438-DA3EE243557A', 'attribute': 'PowerElectronicsConnection.q', 'value': 0.0}, {'object': '_1B9D15A4-90D5-4699-8050-D79301F45665', 'attribute': 'PowerElectronicsConnection.q', 'value': 0.0}, {'object': '_8927FDA7-9497-4EFE-8884-F90B8C40AFBB', 'attribute': 'PowerElectronicsConnection.q', 'value': 65335.0}, {'object': '_03AA4E26-87CA-4A50-9CE5-18F4CDC91AB2', 'attribute': 'PowerElectronicsConnection.q', 'value': 57652.0}, {'object': '_A1CDBD7E-C65A-46A9-8C38-C447AD926FC8', 'attribute': 'PowerElectronicsConnection.q', 'value': 0.0}]}}}

The outputs here only show the capacitor, which could just be cut off in the terminal

2024-07-19 21:58:27,621 Thread-58 INFO [gov.pnnl.goss.gridappsd.log.LogManagerImpl] - 1721426307621|helics_goss_bridge.py|1616741910|RUNNING|system|INFO
Sending the following message to the simulator. {
"cap_c83": {
"switchA": "CLOSED",
"switchB": "CLOSED",

To Reproduce
running gridappsd:develop container

git clone https://github.com/Tylores/micro-apps.git
poetry update
poetry run python micro-apps/power_factor/main.py
  1. The log file in the outputs folder shows the commands sent
@afisher1
Copy link
Collaborator

I agree that feeder head load measurements script should be part of the insert measurements script and the new insert measurements script will do just that. however it is apparent that we need to come up with a alternative method of searching the graph for VA measurements to approximate feeder head measurements when the provided operating model has none.

@Tylores
Copy link
Contributor Author

Tylores commented Sep 18, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants