GRIDAPPSD / gridappsd-forum

This repo is for GridAPPS-D users to ask questions and report issues.
4 stars 0 forks source link

Regulator outage event doesn't work and platform throws error #49

Closed blthayer closed 3 years ago

blthayer commented 4 years ago

@Jeffrey-Simpson @craig8 @poorva1209 Platform version: v2019.10.0

Simulation run configuration:

{
  "power_system_config": {
    "GeographicalRegion_name": "_73C512BD-7249-4F50-50DA-D93849B89C43",
    "SubGeographicalRegion_name": "_A1170111-942A-6ABD-D325-C64886DC4D7D",
    "Line_name": "_AAE94E4A-2465-6F5E-37B1-3E72183A4E44"
  },
  "application_config": {
    "applications": []
  },
  "simulation_config": {
    "start_time": "1358179200",
    "duration": "1200",
    "simulator": "GridLAB-D",
    "timestep_frequency": "1000",
    "timestep_increment": "1000",
    "run_realtime": true,
    "simulation_name": "ieee8500",
    "power_flow_solver_method": "NR",
    "model_creation_config": {
      "load_scaling_factor": "1",
      "schedule_name": "ieeezipload",
      "z_fraction": "0",
      "i_fraction": "1",
      "p_fraction": "0",
      "randomize_zipload_fractions": false,
      "use_houses": false
    }
  },
  "test_config": {
    "events": [
      {
        "message": {
          "forward_differences": [
            {
              "object": "_CE091BBD-77FD-4E8D-8815-EEF79D540108",
              "attribute": "TapChanger.step",
              "value": 10
            }
          ],
          "reverse_differences": [
            {
              "object": "_CE091BBD-77FD-4E8D-8815-EEF79D540108",
              "attribute": "TapChanger.step",
              "value": 5
            }
          ]
        },
        "event_type": "ScheduledCommandEvent",
        "occuredDateTime": 1358179260,
        "stopDateTime": 1358180260
      },
      {
        "allOutputOutage": false,
        "allInputOutage": false,
        "tag": "mc45mjk2",
        "inputList": [
          {
            "name": "vreg3_a",
            "type": "Regulator",
            "mRID": [
              "_CE091BBD-77FD-4E8D-8815-EEF79D540108"
            ],
            "attribute": "TapChanger.step",
            "phases": [
              {
                "phaseLabel": "A",
                "phaseIndex": 0
              }
            ]
          }
        ],
        "outputList": [],
        "event_type": "CommOutage",
        "occuredDateTime": 1358179260,
        "stopDateTime": 1358180260
      }
    ],
    "appId": ""
  },
  "service_configs": []
}

As can be deduced from the run configuration, the regulator position change and lockout should occur 60 seconds into the simulation.

At that time (I can tell from my own logs), the platform errors out:

Thread-54 ERROR [gov.pnnl.proven.api.exchange.RestExchange] - 
Error while calling REST Service
Thread-54 ERROR [gov.pnnl.proven.api.exchange.RestExchange] - Exception: javax.ws.rs.InternalServerErrorException: HTTP 500 Internal Server Error
javax.ws.rs.InternalServerErrorException: HTTP 500 Internal Server Error
    at org.glassfish.jersey.client.JerseyInvocation.convertToException(JerseyInvocation.java:1098)
    at org.glassfish.jersey.client.JerseyInvocation.translate(JerseyInvocation.java:883)
    at org.glassfish.jersey.client.JerseyInvocation.lambda$invoke$1(JerseyInvocation.java:767)
    at org.glassfish.jersey.internal.Errors.process(Errors.java:316)
    at org.glassfish.jersey.internal.Errors.process(Errors.java:298)
    at org.glassfish.jersey.internal.Errors.process(Errors.java:229)
    at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:414)
    at org.glassfish.jersey.client.JerseyInvocation.invoke(JerseyInvocation.java:765)
    at org.glassfish.jersey.client.JerseyInvocation$Builder.method(JerseyInvocation.java:456)
    at org.glassfish.jersey.client.JerseyInvocation$Builder.post(JerseyInvocation.java:357)
    at gov.pnnl.proven.api.exchange.RestExchange.addProvenData(RestExchange.java:293)
    at gov.pnnl.proven.api.producer.ProvenSession.sendMessage(ProvenSession.java:191)
    at gov.pnnl.proven.api.producer.Producer.sendMessage(Producer.java:379)
    at gov.pnnl.proven.api.producer.ProvenProducer.sendBulkMessage(ProvenProducer.java:133)
    at gov.pnnl.goss.gridappsd.data.ProvenTimeSeriesDataManagerImpl$1.onMessage(ProvenTimeSeriesDataManagerImpl.java:172)
    at pnnl.goss.core.client.GossClient$1.run(GossClient.java:351)
    at java.lang.Thread.run(Thread.java:748)

At @poorva1209's request, here is my output of docker ps -a before the error:

thay838@ubuntu:~$ docker ps -a
CONTAINER ID        IMAGE                             COMMAND                  CREATED             STATUS                   PORTS                                                                                                                                          NAMES
4a1e7cb59234        gridappsd/pyvvo:latest            "python -u /opt/.pyc…"   3 minutes ago       Up 3 minutes             0.0.0.0:53581->53581/tcp                                                                                                                       pyvvo_pyvvo_1
27443f7f11f3        gridappsd/pyvvo:mysql-latest      "docker-entrypoint.s…"   3 minutes ago       Up 3 minutes             3306/tcp, 33060/tcp                                                                                                                            pyvvo_db_1
b7061fb11673        gridappsd/viz:v2019.10.0          "npm start"              4 minutes ago       Up 4 minutes             0.0.0.0:8080->8082/tcp                                                                                                                         gridappsd-docker_viz_1
6d81a31fdb3b        gridappsd/pyvvo:latest            "python /usr/src/gri…"   4 minutes ago       Up 4 minutes                                                                                                                                                            gridappsd-docker_pyvvo_1
e3f1df71da3f        gridappsd/gridappsd:v2019.10.0    "/gridappsd/entrypoi…"   5 minutes ago       Up 4 minutes             0.0.0.0:8000->8000/tcp, 8001-8887/tcp, 0.0.0.0:8888->8888/tcp, 0.0.0.0:61613-61614->61613-61614/tcp, 0.0.0.0:61616->61616/tcp, 8889-9000/tcp   gridappsd-docker_gridappsd_1
5effe522e0e6        gridappsd/blazegraph:v2019.10.0   "/docker-entrypoint.…"   5 minutes ago       Up 5 minutes             0.0.0.0:8889->8080/tcp                                                                                                                         gridappsd-docker_blazegraph_1
a598a2b0e6f2        gridappsd/influxdb:v2019.10.0     "/entrypoint.sh infl…"   5 minutes ago       Up 5 minutes             0.0.0.0:8086->8086/tcp                                                                                                                         gridappsd-docker_influxdb_1
d9c7950dcedf        gridappsd/proven:v2019.10.0       "java -jar /opt/paya…"   5 minutes ago       Up 5 minutes             4848/tcp, 8009/tcp, 8181/tcp, 0.0.0.0:18080->8080/tcp                                                                                          gridappsd-docker_proven_1
87b163e191eb        mysql/mysql-server:5.7            "/entrypoint.sh mysq…"   5 minutes ago       Up 5 minutes (healthy)   0.0.0.0:3306->3306/tcp, 33060/tcp                                                                                                              gridappsd-docker_mysql_1
35175147d5dd        gridappsd/pyvvo:mysql-latest      "docker-entrypoint.s…"   5 minutes ago       Up 5 minutes             3306/tcp, 33060/tcp                                                                                                                            gridappsd-docker_pyvvo-db_1
7786922ad4d0        redis:3.2.11-alpine               "redis-server --appe…"   5 minutes ago       Up 5 minutes             0.0.0.0:6379->6379/tcp                                                                                                                         gridappsd-docker_redis_1
1621c5ab696e        aaa5a6a31acc                      "/bin/sh"                6 minutes ago       Created                                                                                                                                                                 pycharm_helpers_PY-192.7142.42

And after the error:

thay838@ubuntu:~$ docker ps -a
CONTAINER ID        IMAGE                             COMMAND                  CREATED             STATUS                   PORTS                                                                                                                                          NAMES
4a1e7cb59234        gridappsd/pyvvo:latest            "python -u /opt/.pyc…"   5 minutes ago       Up 5 minutes             0.0.0.0:53581->53581/tcp                                                                                                                       pyvvo_pyvvo_1
27443f7f11f3        gridappsd/pyvvo:mysql-latest      "docker-entrypoint.s…"   5 minutes ago       Up 5 minutes             3306/tcp, 33060/tcp                                                                                                                            pyvvo_db_1
b7061fb11673        gridappsd/viz:v2019.10.0          "npm start"              6 minutes ago       Up 6 minutes             0.0.0.0:8080->8082/tcp                                                                                                                         gridappsd-docker_viz_1
6d81a31fdb3b        gridappsd/pyvvo:latest            "python /usr/src/gri…"   6 minutes ago       Up 6 minutes                                                                                                                                                            gridappsd-docker_pyvvo_1
e3f1df71da3f        gridappsd/gridappsd:v2019.10.0    "/gridappsd/entrypoi…"   6 minutes ago       Up 6 minutes             0.0.0.0:8000->8000/tcp, 8001-8887/tcp, 0.0.0.0:8888->8888/tcp, 0.0.0.0:61613-61614->61613-61614/tcp, 0.0.0.0:61616->61616/tcp, 8889-9000/tcp   gridappsd-docker_gridappsd_1
5effe522e0e6        gridappsd/blazegraph:v2019.10.0   "/docker-entrypoint.…"   7 minutes ago       Up 6 minutes             0.0.0.0:8889->8080/tcp                                                                                                                         gridappsd-docker_blazegraph_1
a598a2b0e6f2        gridappsd/influxdb:v2019.10.0     "/entrypoint.sh infl…"   7 minutes ago       Up 6 minutes             0.0.0.0:8086->8086/tcp                                                                                                                         gridappsd-docker_influxdb_1
d9c7950dcedf        gridappsd/proven:v2019.10.0       "java -jar /opt/paya…"   7 minutes ago       Up 6 minutes             4848/tcp, 8009/tcp, 8181/tcp, 0.0.0.0:18080->8080/tcp                                                                                          gridappsd-docker_proven_1
87b163e191eb        mysql/mysql-server:5.7            "/entrypoint.sh mysq…"   7 minutes ago       Up 6 minutes (healthy)   0.0.0.0:3306->3306/tcp, 33060/tcp                                                                                                              gridappsd-docker_mysql_1
35175147d5dd        gridappsd/pyvvo:mysql-latest      "docker-entrypoint.s…"   7 minutes ago       Up 6 minutes             3306/tcp, 33060/tcp                                                                                                                            gridappsd-docker_pyvvo-db_1
7786922ad4d0        redis:3.2.11-alpine               "redis-server --appe…"   7 minutes ago       Up 6 minutes             0.0.0.0:6379->6379/tcp                                                                                                                         gridappsd-docker_redis_1
1621c5ab696e        aaa5a6a31acc                      "/bin/sh"                8 minutes ago       Created                                                                                                                                                                 pycharm_helpers_PY-192.7142.42

Additionally, it's worth noting that my application can still command that regulator after the 60 second mark.

Jeffrey-Simpson commented 4 years ago

I don't know about REST error.

But does the tap pos change?

The outage event should like this if you are sending it from the Simulation run configuration: Outage_event = { "allOutputOutage": False, "allInputOutage": False, "inputOutageList": [{"objectMRID": ""_CE091BBD-77FD-4E8D-8815-EEF79D540108", "attribute": " TapChanger.step"}, ], "outputOutageList": [], "event_type": "CommOutage", "occuredDateTime": 1358179260 "stopDateTime": 1358180260 }

Thanks, -Jeff

From: Brandon Thayer notifications@github.com Reply-To: GRIDAPPSD/gridappsd-forum reply@reply.github.com Date: Friday, November 8, 2019 at 2:18 PM To: GRIDAPPSD/gridappsd-forum gridappsd-forum@noreply.github.com Cc: "Simpson, Jeff" Jeff.Simpson@nrel.gov, Mention mention@noreply.github.com Subject: [GRIDAPPSD/gridappsd-forum] Regulator outage event doesn't work and platform throws error (#49)

https://github.com/Jeffrey-Simpson https://github.com/craig8 https://github.com/poorva1209 Platform version: v2019.10.0 Simulation run configuration: {

"power_system_config": {

"GeographicalRegion_name": "_73C512BD-7249-4F50-50DA-D93849B89C43",

"SubGeographicalRegion_name": "_A1170111-942A-6ABD-D325-C64886DC4D7D",

"Line_name": "_AAE94E4A-2465-6F5E-37B1-3E72183A4E44"

},

"application_config": {

"applications": []

},

"simulation_config": {

"start_time": "1358179200",

"duration": "1200",

"simulator": "GridLAB-D",

"timestep_frequency": "1000",

"timestep_increment": "1000",

"run_realtime": true,

"simulation_name": "ieee8500",

"power_flow_solver_method": "NR",

"model_creation_config": {

  "load_scaling_factor": "1",

  "schedule_name": "ieeezipload",

  "z_fraction": "0",

  "i_fraction": "1",

  "p_fraction": "0",

  "randomize_zipload_fractions": false,

  "use_houses": false

}

},

"test_config": {

"events": [

  {

    "message": {

      "forward_differences": [

        {

          "object": "_CE091BBD-77FD-4E8D-8815-EEF79D540108",

          "attribute": "TapChanger.step",

          "value": 10

        }

      ],

      "reverse_differences": [

        {

          "object": "_CE091BBD-77FD-4E8D-8815-EEF79D540108",

          "attribute": "TapChanger.step",

          "value": 5

        }

      ]

    },

    "event_type": "ScheduledCommandEvent",

    "occuredDateTime": 1358179260,

    "stopDateTime": 1358180260

  },

  {

    "allOutputOutage": false,

    "allInputOutage": false,

    "tag": "mc45mjk2",

    "inputList": [

      {

        "name": "vreg3_a",

        "type": "Regulator",

        "mRID": [

          "_CE091BBD-77FD-4E8D-8815-EEF79D540108"

        ],

        "attribute": "TapChanger.step",

        "phases": [

          {

            "phaseLabel": "A",

            "phaseIndex": 0

          }

        ]

      }

    ],

    "outputList": [],

    "event_type": "CommOutage",

    "occuredDateTime": 1358179260,

    "stopDateTime": 1358180260

  }

],

"appId": ""

},

"service_configs": []

} As can be deduced from the run configuration, the regulator position change and lockout should occur 60 seconds into the simulation. At that time (I can tell from my own logs), the platform errors out: Thread-54 ERROR [gov.pnnl.proven.api.exchange.RestExchange] -

Error while calling REST Service

Thread-54 ERROR [gov.pnnl.proven.api.exchange.RestExchange] - Exception: javax.ws.rs.InternalServerErrorException: HTTP 500 Internal Server Error

javax.ws.rs.InternalServerErrorException: HTTP 500 Internal Server Error

at org.glassfish.jersey.client.JerseyInvocation.convertToException(JerseyInvocation.java:1098)

at org.glassfish.jersey.client.JerseyInvocation.translate(JerseyInvocation.java:883)

at org.glassfish.jersey.client.JerseyInvocation.lambda$invoke$1(JerseyInvocation.java:767)

at org.glassfish.jersey.internal.Errors.process(Errors.java:316)

at org.glassfish.jersey.internal.Errors.process(Errors.java:298)

at org.glassfish.jersey.internal.Errors.process(Errors.java:229)

at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:414)

at org.glassfish.jersey.client.JerseyInvocation.invoke(JerseyInvocation.java:765)

at org.glassfish.jersey.client.JerseyInvocation$Builder.method(JerseyInvocation.java:456)

at org.glassfish.jersey.client.JerseyInvocation$Builder.post(JerseyInvocation.java:357)

at gov.pnnl.proven.api.exchange.RestExchange.addProvenData(RestExchange.java:293)

at gov.pnnl.proven.api.producer.ProvenSession.sendMessage(ProvenSession.java:191)

at gov.pnnl.proven.api.producer.Producer.sendMessage(Producer.java:379)

at gov.pnnl.proven.api.producer.ProvenProducer.sendBulkMessage(ProvenProducer.java:133)

at gov.pnnl.goss.gridappsd.data.ProvenTimeSeriesDataManagerImpl$1.onMessage(ProvenTimeSeriesDataManagerImpl.java:172)

at pnnl.goss.core.client.GossClient$1.run(GossClient.java:351)

at java.lang.Thread.run(Thread.java:748)

At https://github.com/poorva1209's request, here is my output of docker ps -a before the error: thay838@ubuntu:~$ docker ps -a

CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES

4a1e7cb59234 gridappsd/pyvvo:latest "python -u /opt/.pyc…" 3 minutes ago Up 3 minutes 0.0.0.0:53581->53581/tcp pyvvo_pyvvo_1

27443f7f11f3 gridappsd/pyvvo:mysql-latest "docker-entrypoint.s…" 3 minutes ago Up 3 minutes 3306/tcp, 33060/tcp pyvvo_db_1

b7061fb11673 gridappsd/viz:v2019.10.0 "npm start" 4 minutes ago Up 4 minutes 0.0.0.0:8080->8082/tcp gridappsd-docker_viz_1

6d81a31fdb3b gridappsd/pyvvo:latest "python /usr/src/gri…" 4 minutes ago Up 4 minutes gridappsd-docker_pyvvo_1

e3f1df71da3f gridappsd/gridappsd:v2019.10.0 "/gridappsd/entrypoi…" 5 minutes ago Up 4 minutes 0.0.0.0:8000->8000/tcp, 8001-8887/tcp, 0.0.0.0:8888->8888/tcp, 0.0.0.0:61613-61614->61613-61614/tcp, 0.0.0.0:61616->61616/tcp, 8889-9000/tcp gridappsd-docker_gridappsd_1

5effe522e0e6 gridappsd/blazegraph:v2019.10.0 "/docker-entrypoint.…" 5 minutes ago Up 5 minutes 0.0.0.0:8889->8080/tcp gridappsd-docker_blazegraph_1

a598a2b0e6f2 gridappsd/influxdb:v2019.10.0 "/entrypoint.sh infl…" 5 minutes ago Up 5 minutes 0.0.0.0:8086->8086/tcp gridappsd-docker_influxdb_1

d9c7950dcedf gridappsd/proven:v2019.10.0 "java -jar /opt/paya…" 5 minutes ago Up 5 minutes 4848/tcp, 8009/tcp, 8181/tcp, 0.0.0.0:18080->8080/tcp gridappsd-docker_proven_1

87b163e191eb mysql/mysql-server:5.7 "/entrypoint.sh mysq…" 5 minutes ago Up 5 minutes (healthy) 0.0.0.0:3306->3306/tcp, 33060/tcp gridappsd-docker_mysql_1

35175147d5dd gridappsd/pyvvo:mysql-latest "docker-entrypoint.s…" 5 minutes ago Up 5 minutes 3306/tcp, 33060/tcp gridappsd-docker_pyvvo-db_1

7786922ad4d0 redis:3.2.11-alpine "redis-server --appe…" 5 minutes ago Up 5 minutes 0.0.0.0:6379->6379/tcp gridappsd-docker_redis_1

1621c5ab696e aaa5a6a31acc "/bin/sh" 6 minutes ago Created pycharm_helpers_PY-192.7142.42

And after the error: thay838@ubuntu:~$ docker ps -a

CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES

4a1e7cb59234 gridappsd/pyvvo:latest "python -u /opt/.pyc…" 5 minutes ago Up 5 minutes 0.0.0.0:53581->53581/tcp pyvvo_pyvvo_1

27443f7f11f3 gridappsd/pyvvo:mysql-latest "docker-entrypoint.s…" 5 minutes ago Up 5 minutes 3306/tcp, 33060/tcp pyvvo_db_1

b7061fb11673 gridappsd/viz:v2019.10.0 "npm start" 6 minutes ago Up 6 minutes 0.0.0.0:8080->8082/tcp gridappsd-docker_viz_1

6d81a31fdb3b gridappsd/pyvvo:latest "python /usr/src/gri…" 6 minutes ago Up 6 minutes gridappsd-docker_pyvvo_1

e3f1df71da3f gridappsd/gridappsd:v2019.10.0 "/gridappsd/entrypoi…" 6 minutes ago Up 6 minutes 0.0.0.0:8000->8000/tcp, 8001-8887/tcp, 0.0.0.0:8888->8888/tcp, 0.0.0.0:61613-61614->61613-61614/tcp, 0.0.0.0:61616->61616/tcp, 8889-9000/tcp gridappsd-docker_gridappsd_1

5effe522e0e6 gridappsd/blazegraph:v2019.10.0 "/docker-entrypoint.…" 7 minutes ago Up 6 minutes 0.0.0.0:8889->8080/tcp gridappsd-docker_blazegraph_1

a598a2b0e6f2 gridappsd/influxdb:v2019.10.0 "/entrypoint.sh infl…" 7 minutes ago Up 6 minutes 0.0.0.0:8086->8086/tcp gridappsd-docker_influxdb_1

d9c7950dcedf gridappsd/proven:v2019.10.0 "java -jar /opt/paya…" 7 minutes ago Up 6 minutes 4848/tcp, 8009/tcp, 8181/tcp, 0.0.0.0:18080->8080/tcp gridappsd-docker_proven_1

87b163e191eb mysql/mysql-server:5.7 "/entrypoint.sh mysq…" 7 minutes ago Up 6 minutes (healthy) 0.0.0.0:3306->3306/tcp, 33060/tcp gridappsd-docker_mysql_1

35175147d5dd gridappsd/pyvvo:mysql-latest "docker-entrypoint.s…" 7 minutes ago Up 6 minutes 3306/tcp, 33060/tcp gridappsd-docker_pyvvo-db_1

7786922ad4d0 redis:3.2.11-alpine "redis-server --appe…" 7 minutes ago Up 6 minutes 0.0.0.0:6379->6379/tcp gridappsd-docker_redis_1

1621c5ab696e aaa5a6a31acc "/bin/sh" 8 minutes ago Created pycharm_helpers_PY-192.7142.42

Additionally, it's worth noting that my application can still command that regulator after the 60 second mark. — You are receiving this because you were mentioned. Reply to this email directly, https://github.com/GRIDAPPSD/gridappsd-forum/issues/49?email_source=notifications&email_token=AFSH6WAOVKVCMA5EEZB5TBDQSXJRNA5CNFSM4JK62PA2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HYCGOCQ, or https://github.com/notifications/unsubscribe-auth/AFSH6WBQKSGZKWTIBPGKHXDQSXJRNANCNFSM4JK62PAQ.

AAndersn commented 4 years ago

I will try testing the event with the develop and 10.0 branch and see if the error is reproducible. When Jeff and I ran the event together during a Zoom meeting, we did not encounter this error.

poorva1209 commented 4 years ago

Note - Please use blazegraph:v2020.03.0 tag to test this

@afisher1 @Jeffrey-Simpson I tested Event2.json with 9500 model and TapChanger.step value is not changing as expected.

Steps to reproduce:

  1. Configure 9500 simulation on Viz
  2. Set start time as 2013-07-14 08:09:00
  3. Set duration as 3600
  4. Upload Event2.json in Test Configuration (It contains one ScheduledCommentEvent and one CommOutage event)
  5. Start the simulation

Based on the event file, I am expecting measurement_mrid _0f8202ca-a4bf-4c7e-9302-601919c09992 to change from 5 to 10 at 2013-07-14 08:10:00 but it remains 5.

@singha42 : FYI.

Jeffrey-Simpson commented 4 years ago

Hello, Okay where is the repo with Event2.json you are using located? Thanks, -Jeff

From: poorva1209 notifications@github.com Reply-To: GRIDAPPSD/gridappsd-forum reply@reply.github.com Date: Tuesday, June 23, 2020 at 12:55 PM To: GRIDAPPSD/gridappsd-forum gridappsd-forum@noreply.github.com Cc: "Simpson, Jeff" Jeff.Simpson@nrel.gov, Mention mention@noreply.github.com Subject: Re: [GRIDAPPSD/gridappsd-forum] Regulator outage event doesn't work and platform throws error (#49)

Note - Please use blazegraph:v2020.03.0 tag to test this

@afisher1https://gcc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fafisher1&data=02%7C01%7CJeff.Simpson%40nrel.gov%7C6347da8de97b469b954808d817a6fd9a%7Ca0f29d7e28cd4f5484427885aee7c080%7C0%7C0%7C637285353275431632&sdata=T4HR6%2BLvWhidykZAPLwPGaP6M3BmWIuJUrtYqtH4A6I%3D&reserved=0 @Jeffrey-Simpsonhttps://gcc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FJeffrey-Simpson&data=02%7C01%7CJeff.Simpson%40nrel.gov%7C6347da8de97b469b954808d817a6fd9a%7Ca0f29d7e28cd4f5484427885aee7c080%7C0%7C0%7C637285353275441590&sdata=%2BaNiatku9JuRT23BUDbfsEEom2uP478ncQBsqli3VxQ%3D&reserved=0 I tested Event2.json with 9500 model and TapChanger.step value is not changing as expected.

Steps to reproduce:

  1. Configure 9500 simulation on Viz
  2. Set start time as 2013-07-14 08:09:00
  3. Set duration as 3600
  4. Upload Event2.json in Test Configuration (It contains one ScheduledCommentEvent and one CommOutage event)
  5. Start the simulation

Based on the event file, I am expecting measurement_mrid _0f8202ca-a4bf-4c7e-9302-601919c09992 to change from 5 to 10 at 2013-07-14 08:10:00 but it remains 5.

@singha42https://gcc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fsingha42&data=02%7C01%7CJeff.Simpson%40nrel.gov%7C6347da8de97b469b954808d817a6fd9a%7Ca0f29d7e28cd4f5484427885aee7c080%7C0%7C0%7C637285353275441590&sdata=oYXQnETqGqLoIV2UYkEAErCEtmonKpaWgt3ytJLqjts%3D&reserved=0 : FYI.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://gcc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FGRIDAPPSD%2Fgridappsd-forum%2Fissues%2F49%23issuecomment-648351793&data=02%7C01%7CJeff.Simpson%40nrel.gov%7C6347da8de97b469b954808d817a6fd9a%7Ca0f29d7e28cd4f5484427885aee7c080%7C0%7C0%7C637285353275451545&sdata=qTQcJogw5h43KOKwKSK%2B45hxg2cFpAM6KTlcUBc1yD8%3D&reserved=0, or unsubscribehttps://gcc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAFSH6WGWXBFW7E4AG5ZA2XTRYD3BZANCNFSM4JK62PAQ&data=02%7C01%7CJeff.Simpson%40nrel.gov%7C6347da8de97b469b954808d817a6fd9a%7Ca0f29d7e28cd4f5484427885aee7c080%7C0%7C0%7C637285353275451545&sdata=IdFgNhiZ1jzavHyYcvOULPT7Nck9g8eaVVi4To%2BQCpA%3D&reserved=0.

poorva1209 commented 4 years ago

@Jeffrey-Simpson @afisher1 I just sent Event2.json over email to you both as GitHub was not allowing me to attach it here.

AAndersn commented 4 years ago

@Jeffrey-Simpson Check if you are using the right model - we just pushed a model update with new MRIDs less than two weeks ago. I have not created new event files with the updated MRIDs

poorva1209 commented 4 years ago

@Jeffrey-Simpson Check if you are using the right model - we just pushed a model update with new MRIDs less than two weeks ago. I have not created new event files with the updated MRIDs

@Jeffrey-Simpson @AAndersn That's why I added this note in my testing steps: Note - Please use blazegraph:v2020.03.0 tag to test this

Jeffrey-Simpson commented 4 years ago

Hello,

First I believe I know what is wrong. The CommOutage is taking place at the same time as the reverse command is sent so it will block the change to back to the original tap setting.

Second I have not been able to test through the viz yet since it looks like some of the CommOutage information is lost by the time it gets to ProcessEvent. Namely the ‘event_type’ seems to get lost for the CommOutage. I am using develop for all tags except blazegraph.

{'power_system_config': {'GeographicalRegion_name': '_73C512BD-7249-4F50-50DA-D93849B89C43', 'SubGeographicalRegion_name': '_A1170111-942A-6ABD-D325-C64886DC4D7D', 'Line_name': '_AAE94E4A-2465-6F5E-37B1-3E72183A4E44'}, 'application_config': {'applications': []}, 'simulation_config': {'start_time': '1592945413', 'duration': '120', 'simulator': 'GridLAB-D', 'timestep_frequency': '1000', 'timestep_increment': '1000', 'run_realtime': True, 'simulation_name': 'test9500new', 'power_flow_solver_method': 'NR', 'model_creation_config': {'load_scaling_factor': '1', 'schedule_name': 'ieeezipload', 'z_fraction': '0', 'i_fraction': '1', 'p_fraction': '0', 'randomize_zipload_fractions': False, 'use_houses': False}}, 'test_config': {'events': [{'allInputOutage': False, 'allOutputOutage': False, 'inputOutageList': [{'objectMRID': '_E44571D4-52CE-4ACE-9012-37DEBF17FCF8', 'attribute': 'TapChanger.step'}], 'outputOutageList': [], 'occuredDateTime': 1373811010, 'stopDateTime': 1373814000}, {'message': {'forward_differences': [{'object': '_E44571D4-52CE-4ACE-9012-37DEBF17FCF8', 'attribute': 'TapChanger.step', 'value': 10}], 'reverse_differences': [{'object': '_E44571D4-52CE-4ACE-9012-37DEBF17FCF8', 'attribute': 'TapChanger.step', 'value': 5}]}, 'event_type': 'ScheduledCommandEvent', 'occuredDateTime': 1373810940, 'stopDateTime': 1373811060}], 'appId': ''}, 'service_configs': []}

Thanks, -Jeff

From: poorva1209 notifications@github.com Reply-To: GRIDAPPSD/gridappsd-forum reply@reply.github.com Date: Tuesday, June 23, 2020 at 4:18 PM To: GRIDAPPSD/gridappsd-forum gridappsd-forum@noreply.github.com Cc: "Simpson, Jeff" Jeff.Simpson@nrel.gov, Mention mention@noreply.github.com Subject: Re: [GRIDAPPSD/gridappsd-forum] Regulator outage event doesn't work and platform throws error (#49)

@Jeffrey-Simpsonhttps://gcc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FJeffrey-Simpson&data=02%7C01%7CJeff.Simpson%40nrel.gov%7C471ec5e452e843ec1b8d08d817c35ac6%7Ca0f29d7e28cd4f5484427885aee7c080%7C0%7C0%7C637285475106964299&sdata=2DcrudFIma5U9WtET%2FqUyx6jgHcaQvXKnOeMqJUmMdI%3D&reserved=0 Check if you are using the right model - we just pushed a model update with new MRIDs less than two weeks ago. I have not created new event files with the updated MRIDs

@Jeffrey-Simpsonhttps://gcc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FJeffrey-Simpson&data=02%7C01%7CJeff.Simpson%40nrel.gov%7C471ec5e452e843ec1b8d08d817c35ac6%7Ca0f29d7e28cd4f5484427885aee7c080%7C0%7C0%7C637285475106964299&sdata=2DcrudFIma5U9WtET%2FqUyx6jgHcaQvXKnOeMqJUmMdI%3D&reserved=0 @AAndersnhttps://gcc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FAAndersn&data=02%7C01%7CJeff.Simpson%40nrel.gov%7C471ec5e452e843ec1b8d08d817c35ac6%7Ca0f29d7e28cd4f5484427885aee7c080%7C0%7C0%7C637285475106974258&sdata=0is5dNcC8fEeYdH8o8Wkx2lj0AfMDtbcBYWWzjf0KQQ%3D&reserved=0 That's why I added this note in my testing steps: Note - Please use blazegraph:v2020.03.0 tag to test this

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://gcc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FGRIDAPPSD%2Fgridappsd-forum%2Fissues%2F49%23issuecomment-648457761&data=02%7C01%7CJeff.Simpson%40nrel.gov%7C471ec5e452e843ec1b8d08d817c35ac6%7Ca0f29d7e28cd4f5484427885aee7c080%7C0%7C0%7C637285475106974258&sdata=xZsDpscCUxlo0iu%2Bb0TKPIeXbPw7BemMzh952eyD54k%3D&reserved=0, or unsubscribehttps://gcc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAFSH6WBPLWD7ADQPOPOTIUTRYES3HANCNFSM4JK62PAQ&data=02%7C01%7CJeff.Simpson%40nrel.gov%7C471ec5e452e843ec1b8d08d817c35ac6%7Ca0f29d7e28cd4f5484427885aee7c080%7C0%7C0%7C637285475106974258&sdata=qdx8K03%2FCzibBMzDAbQobgFivGP0DaXXhcjwtNGpmCk%3D&reserved=0.

poorva1209 commented 4 years ago

@Jeffrey-Simpson

For first - We never reach a point of checking the value change back to original because it never gets updated in the first place. It always remains 5. Are you seeing it changed to 10 at 8:10:00 time? For second - Bibi and Nhuy are working on resolving the error right now.

Jeffrey-Simpson commented 4 years ago

Hello, Okay. If I test with just the Scheduled event it works fine. The tap goes to 10 and then back to 5. I don’t know if attachments work in the github issues so I will cc you also. Thanks, -Jeff

From: poorva1209 notifications@github.com Reply-To: GRIDAPPSD/gridappsd-forum reply@reply.github.com Date: Tuesday, June 23, 2020 at 5:16 PM To: GRIDAPPSD/gridappsd-forum gridappsd-forum@noreply.github.com Cc: "Simpson, Jeff" Jeff.Simpson@nrel.gov, Mention mention@noreply.github.com Subject: Re: [GRIDAPPSD/gridappsd-forum] Regulator outage event doesn't work and platform throws error (#49)

@Jeffrey-Simpsonhttps://gcc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FJeffrey-Simpson&data=02%7C01%7CJeff.Simpson%40nrel.gov%7C5f030dde9a9e487969f308d817cb7712%7Ca0f29d7e28cd4f5484427885aee7c080%7C0%7C0%7C637285509930000152&sdata=E9%2FF1nNVqxRLmK84kan%2FtN8SEWHsQg6XkSZiKnCsSVU%3D&reserved=0

For first - We never reach a point of checking the value change back to original because it never gets updated in the first place. It always remains 5. Are you seeing it changed to 10 at 8:10:00 time? For second - Bibi and Nhuy are working on resolving the error right now.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://gcc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FGRIDAPPSD%2Fgridappsd-forum%2Fissues%2F49%23issuecomment-648476299&data=02%7C01%7CJeff.Simpson%40nrel.gov%7C5f030dde9a9e487969f308d817cb7712%7Ca0f29d7e28cd4f5484427885aee7c080%7C0%7C0%7C637285509930000152&sdata=AWhVQNZiPvgtNCFX5kE3HCDsBhYNcVviZFLDd%2BfEnp8%3D&reserved=0, or unsubscribehttps://gcc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAFSH6WHVPJMONSARWNXDRE3RYEZU5ANCNFSM4JK62PAQ&data=02%7C01%7CJeff.Simpson%40nrel.gov%7C5f030dde9a9e487969f308d817cb7712%7Ca0f29d7e28cd4f5484427885aee7c080%7C0%7C0%7C637285509930010109&sdata=px%2FwdVKVaIQRGz8PYbXWvt%2FFCO%2B2MKGJdZC%2BPgGfVjs%3D&reserved=0.

Jeffrey-Simpson commented 4 years ago

Hello, I tested to day with the latest develop tag and the viz. It works fine.

If it is still not working for you then I think it might be something with the time in the event file not being handle the same as the simulation start time in the viz. Try moving the start time back an hour and see if it works. If this the case we should probably fix it to be handle the same.

Thanks, -Jeff

From: poorva1209 notifications@github.com Reply-To: GRIDAPPSD/gridappsd-forum reply@reply.github.com Date: Tuesday, June 23, 2020 at 5:16 PM To: GRIDAPPSD/gridappsd-forum gridappsd-forum@noreply.github.com Cc: "Simpson, Jeff" Jeff.Simpson@nrel.gov, Mention mention@noreply.github.com Subject: Re: [GRIDAPPSD/gridappsd-forum] Regulator outage event doesn't work and platform throws error (#49)

@Jeffrey-Simpsonhttps://gcc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FJeffrey-Simpson&data=02%7C01%7CJeff.Simpson%40nrel.gov%7C5f030dde9a9e487969f308d817cb7712%7Ca0f29d7e28cd4f5484427885aee7c080%7C0%7C0%7C637285509930000152&sdata=E9%2FF1nNVqxRLmK84kan%2FtN8SEWHsQg6XkSZiKnCsSVU%3D&reserved=0

For first - We never reach a point of checking the value change back to original because it never gets updated in the first place. It always remains 5. Are you seeing it changed to 10 at 8:10:00 time? For second - Bibi and Nhuy are working on resolving the error right now.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://gcc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FGRIDAPPSD%2Fgridappsd-forum%2Fissues%2F49%23issuecomment-648476299&data=02%7C01%7CJeff.Simpson%40nrel.gov%7C5f030dde9a9e487969f308d817cb7712%7Ca0f29d7e28cd4f5484427885aee7c080%7C0%7C0%7C637285509930000152&sdata=AWhVQNZiPvgtNCFX5kE3HCDsBhYNcVviZFLDd%2BfEnp8%3D&reserved=0, or unsubscribehttps://gcc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAFSH6WHVPJMONSARWNXDRE3RYEZU5ANCNFSM4JK62PAQ&data=02%7C01%7CJeff.Simpson%40nrel.gov%7C5f030dde9a9e487969f308d817cb7712%7Ca0f29d7e28cd4f5484427885aee7c080%7C0%7C0%7C637285509930010109&sdata=px%2FwdVKVaIQRGz8PYbXWvt%2FFCO%2B2MKGJdZC%2BPgGfVjs%3D&reserved=0.