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

Translator example doesn't appear to connect translators #2561

Open
trevorhardy opened this issue Aug 30, 2023 · 2 comments
Open

Translator example doesn't appear to connect translators #2561

trevorhardy opened this issue Aug 30, 2023 · 2 comments
Assignees
Labels
bug Issue concerning incorrect code operation

Comments

@trevorhardy
Copy link
Contributor

Describe the bug
The translator example that is being developed (available here) uses the JSON config to change the message passing topology such that a translator is used to change the message the Charger sends into a value that the Controller receives. (The Controller is changed to received a value but send a message back to the Charger.)

The co-simulation runs but the values received by the Controller from the Translator is a large negative value for all time steps even though we can see the message sent by the Charger changes over the course of the co-simulation.

Charger log excerpts:

EV 1 time 900.0
        ...
        Sent message from endpoint Charger/EV1.soc to destination EV_1_translator at time 900.0 with payload SOC 0.065843
...
EV 1 time 1800.0
         ...
         Sent message from endpoint Charger/EV1.soc to destination EV_1_translator at time 1800.0 with payload SOC 0.075450

Controller log excerpts:

Granted time: 900.0
	Received SOC -9999999999999999464902769475481793196872414789632.00 from input Controller/EV1.soc
	Message target endpoint: Charger/EV1.soc
...
Granted time: 1800.0
	Received SOC -9999999999999999464902769475481793196872414789632.00 from input Controller/EV1.soc
	Message target endpoint: Charger/EV1.soc

What is the expected behavior?
Translators would send received data on.

To Reproduce
Run the example.

Environment (please complete the following information):

  • Operating System: Mac
  • Language Extension: Python
  • what compiler or setup process did you use: Compiled translator-config branch
  • HELICS version: 3.4.0-translator_config-g40acde6e6 (2023-08-18)
@trevorhardy trevorhardy added the bug Issue concerning incorrect code operation label Aug 30, 2023
@trevorhardy
Copy link
Contributor Author

Likely related to #2562.

@trevorhardy
Copy link
Contributor Author

Confirmed this bug still exists with HELICS v3.5.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue concerning incorrect code operation
Projects
None yet
Development

No branches or pull requests

2 participants