MATLAB Answers

Problem about EnergyPlus Co-simulation Toolbox, java.net.S​ocketTimeo​utExceptio​n: Accept timed out

23 views (last 30 days)
Haohan Sha
Haohan Sha on 11 Aug 2020
Edited: Jiri Dostal on 11 Sep 2020
I'm a new user trying to use the energplus co-simulation toolbox, which is from below webstie
I use Matlab R2018b and energyplus 9.2.
However, when I try to run the example file, following problem occurs
Error using mlep/acceptSocket (line 1144)
Java exception occurred:
java.net.SocketTimeoutException: Accept timed out
at java.net.DualStackPlainSocketImpl.waitForNewConnection(Native Method)
at java.net.DualStackPlainSocketImpl.socketAccept(Unknown Source)
at java.net.AbstractPlainSocketImpl.accept(Unknown Source)
at java.net.PlainSocketImpl.accept(Unknown Source)
at java.net.ServerSocket.implAccept(Unknown Source)
at java.net.ServerSocket.accept(Unknown Source)
Error in mlep/start (line 289)
obj.acceptSocket;
Error in mlepMatlab_example (line 47)
ep.start
Do you have any tips or suggestions? Thanks in advance!

  1 Comment

Jiri Dostal
Jiri Dostal on 11 Sep 2020
I have experienced these issues when the EnergyPlus has some fundamental problem and could not run properly. I'd suggest running EnergyPlus alone with some of its own examples first.
The toolbox runs an EP simulation in the background and tries to connect to its external interface (the socket). It this connection fails, then either EP is not working or there are some communication restrictions at place in your OS.
I sorry, I can't help you more at the moment.
Jiri

Sign in to comment.

Answers (2)


Jiri Dostal
Jiri Dostal on 11 Sep 2020
Edited: Jiri Dostal on 11 Sep 2020
I have experienced these issues when the EnergyPlus had some fundamental problem and could not run properly. I'd suggest running EnergyPlus alone with some of its own examples first.
The toolbox runs an EP simulation in the background and tries to connect to its external interface (the socket). It this connection fails, then either EP is not working or there are some communication restrictions at place in your OS.
I sorry, I can't help you more at the moment.
Jiri

  0 Comments

Sign in to comment.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!