lbl-srg / EnergyPlusToFMU

EnergyPlus export as a Functional Mockup Unit for co-simulation
41 stars 17 forks source link

Generated FMU fails with "Get host by name failed." #38

Closed Denzo77 closed 4 years ago

Denzo77 commented 4 years ago

When I try to run the Actuator example with FMPy, I get the following error:

$ python3 -m fmpy simulate _fmu_export_actuator.fmu
...
[ERROR] fmiInitializeSlave: Get host by name failed.
...

Looking in the code, it is failing here, which seems to be making a call to an obsolete system call. Could it be failing because I am working from a private IP (currently 10.x.x.x) for which there is no hostname?

I've had the same error on both the latest macOS and an up to date Fedora 31, on multiple networks, with EnergyPlus versions 9.0.1 and 9.2.0.

Denzo77 commented 4 years ago

Sorry about the double posting, I got a unicorn telling me it failed the first time.