Error running Example 1a of tutorial "Unable to connect to broker->unable to register federate" #2571
Replies: 4 comments 19 replies
-
How are you launching the co-simulation? |
Beta Was this translation helpful? Give feedback.
-
Hi all, |
Beta Was this translation helpful? Give feedback.
-
So in the cmd terminal where you run gridlabd can you confirm that the path to libhelics.dll existing the %PATH% environment variable? You shouldn't need to worry about creating a GLPATH environment variable if you are using v5.2 of gridlabd.
Get Outlook for Android<https://aka.ms/AAb9ysg>
…________________________________
From: adelheidari ***@***.***>
Sent: Tuesday, November 7, 2023 4:44:55 PM
To: GMLC-TDC/HELICS ***@***.***>
Cc: Fisher, Andrew R ***@***.***>; Mention ***@***.***>
Subject: Re: [GMLC-TDC/HELICS] Error running Example 1a of tutorial "Unable to connect to broker->unable to register federate" (Discussion #2571)
Check twice before you click! This email originated from outside PNNL.
Yes, connection.dll exists in the bin folder. Could you explain what do you mean by GLPATH?
—
Reply to this email directly, view it on GitHub<#2571 (reply in thread)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ABCXPYW5IO6YYY7T6C3NDZLYDLIYPAVCNFSM6AAAAAA64YPZFKVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM3TKMBUG4ZDA>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
I apologize for the delayed response. Can you try renaming helics.dll to libhelics.dll? No need to rename helics.lib. I get your behavior when the library is helics.dll and I got it to work by changing the filename. |
Beta Was this translation helpful? Give feedback.
-
Hi everyone,
I'm trying to run the first example in tutorial (Example 1a) which co-simulates a transmission system (in Pypower) and distribution system (in GridLab-D). This is the link for the example files: https://github.com/GMLC-TDC/HELICS-Examples/tree/main/user_guide_examples/misc/gridlabd_example_1/Example_1a
I'm getting the following error in TransmissionFederate log file:
[2023-11-03 10:57:57.473] [console] [warning] commWarning||Transmission Federate (0)[connecting]::zmq broker connection timed out, trying again (2) [2023-11-03 10:57:57.474] [console] [warning] commWarning||Transmission Federate (0)[connecting]::sending message to tcp://127.0.0.1:23405 [2023-11-03 10:58:17.503] [console] [error] commERROR||Transmission Federate (0)[connecting]::zmq broker connection timed out after trying 5 times (2) [2023-11-03 10:58:17.503] [console] [error] commERROR||Transmission Federate (0)[connecting]::receiver connection failure Traceback (most recent call last): File "C:\Users\Ssus\Python\HELICS\Example_1a\Transmission\Transmission_simulator.py", line 53, in <module> fed = h.helicsCreateValueFederateFromConfig("Transmission_json.json") File "C:\Users\Ssus\AppData\Local\Programs\Python\Python310\lib\site-packages\helics\capi.py", line 3635, in helicsCreateValueFederateFromConfig raise HelicsException("[" + str(err.error_code) + "] " + ffi.string(err.message).decode()) helics.capi.HelicsException: [-1] Unable to connect to broker->unable to register federate
And the Distribution federate log file is empty. It is stopping at the very beginning line of the code in Transmission_simulator.py (line 53) which trying to create a federate. Here are the versions of the software I'm using:
python v3.9.16
helics v 3.4.0
GridLab-D v 5.2
Pypower v5.1.16
I would really appreciate if you could help me to fix this issue.
Beta Was this translation helpful? Give feedback.
All reactions