Question-and-Answer Resource for the Building Energy Modeling Community
Get started with the Help page
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

bcvtb in Linux - socket error

Hi All, We have been trying to get bcvtb work in Linux, mostly to use it with ESP-r but we can not actually make it work with any of the externally coupled programs (Ptolemy functions fine). We are getting a socket error while the program is trying to establish the socket and probably trying to read the socket.cfg file. After a long debugging effort I think there may be something going on with the establishclientsocket function. I printed out the socketFD variable from ESP-r, which if my understanding is correct takes values as (from bcvtb.F90 file): socketFD = establishclientsocket(“socket.cfg”). I realised that bcvtb can not locate that file so I hardwired it in ESP-r to the exact location of socket.cfg (recompiled ESP-r, etc.). I then added a write statement to print out socketFD and the result was that socketFD is somehow renamed from socket.cfg to “socket.cfgbcvtb.F90” (this is with ESP-r, possibly renamed to something else in other programs).

We are replicating the error also with cclient and in two different machines.

We are using OpenSuse via VirtualBox (64 bit). We have not tried the Windows installation. I also tried version 1.4.0 but no luck with that either.

Could you please confirm that the Linux version is currently functional with external programs? Any idea of what may be going wrong with our case?

Thank you, Georgios

bcvtb in Linux - socket error

Hi All, We have been trying to get bcvtb work in Linux, mostly to use it with ESP-r but we can not actually make it work with any of the externally coupled programs (Ptolemy functions fine). We are getting a socket error while the program is trying to establish the socket and probably trying to read the socket.cfg file. After a long debugging effort I think there may be something going on with the establishclientsocket function. I printed out the socketFD variable from ESP-r, which if my understanding is correct takes values as (from bcvtb.F90 file): socketFD = establishclientsocket(“socket.cfg”). I realised that bcvtb can not locate that file so I hardwired it in ESP-r to the exact location of socket.cfg (recompiled ESP-r, etc.). I then added a write statement to print out socketFD and the result was that socketFD is somehow renamed from socket.cfg to “socket.cfgbcvtb.F90” (this is with ESP-r, possibly renamed to something else in other programs).

We are replicating the error also with cclient and in two different machines.

We are using OpenSuse via VirtualBox (64 bit). We have not tried the Windows installation. I also tried version 1.4.0 but no luck with that either.

Could you please confirm that the Linux version is currently functional with external programs? Any idea of what may be going wrong with our case?

Thank you, Georgios

bcvtb in Linux - socket error

Hi All, We have been trying to get bcvtb work in Linux, mostly to use it with ESP-r but we can not actually make it work with any of the externally coupled programs (Ptolemy functions fine). We are getting a socket error while the program is trying to establish the socket and probably trying to read the socket.cfg file. After a long debugging effort I think there may be something going on with the establishclientsocket function. I printed out the socketFD variable from ESP-r, which if my understanding is correct takes values as (from bcvtb.F90 file): socketFD = establishclientsocket(“socket.cfg”). I realised that bcvtb can not locate that file so I hardwired it in ESP-r to the exact location of socket.cfg (recompiled ESP-r, etc.). I then added a write statement to print out socketFD and the result was that socketFD is somehow renamed from socket.cfg to “socket.cfgbcvtb.F90” (this is with ESP-r, possibly renamed to something else in other programs).

We are replicating the error also with cclient and in two different machines.

We are using OpenSuse via VirtualBox (64 bit). We have not tried the Windows installation. I also tried version 1.4.0 but no luck with that either.

Could you please confirm that the Linux version is currently functional with external programs? Any idea of what may be going wrong with our case?

Thank you, Georgios