BCVTB and Matlab(2020a) Connection Problem

49 views
Skip to first unread message

조지현

unread,
May 20, 2020, 1:16:37 AM5/20/20
to bcvtb
Hello, I am a student studying Energy Plus and BCVTB.
As a recent research project, we have to simulate the building air conditioning system and the Matlab Deep Learning Toolbox (2020a).

So I installed BCVTB, and there was a problem in the process of linking matlab simulink.
Other examples are running well after a version upgrade, but only simulink is generating a connection error.

that error message shows IOException while reading from server. in .system.Simulink Because: Connection reset 

Stack trace is following.

---
ptolemy.kernel.util.IllegalActionException: IOException while reading from server.
  in .system.Simulink
Because:
Connection reset
at lbnl.actor.lib.Simulator._readFromServer(Simulator.java:495)
at lbnl.actor.lib.Simulator.initialize(Simulator.java:788)
at ptolemy.actor.Director.initialize(Director.java:939)
at ptolemy.actor.Director.initialize(Director.java:908)
at ptolemy.actor.sched.StaticSchedulingDirector.initialize(StaticSchedulingDirector.java:159)
at ptolemy.domains.sdf.kernel.SDFDirector.initialize(SDFDirector.java:544)
at ptolemy.actor.CompositeActor.initialize(CompositeActor.java:929)
at ptolemy.actor.Manager.initialize(Manager.java:715)
at ptolemy.actor.Manager.execute(Manager.java:354)
at ptolemy.actor.Manager.run(Manager.java:1252)
at ptolemy.actor.Manager$PtolemyRunThread.run(Manager.java:1903)
Caused by: java.net.SocketException: Connection reset
at java.net.SocketInputStream.read(Unknown Source)
at java.net.SocketInputStream.read(Unknown Source)
at sun.nio.cs.StreamDecoder.readBytes(Unknown Source)
at sun.nio.cs.StreamDecoder.implRead(Unknown Source)
at sun.nio.cs.StreamDecoder.read(Unknown Source)
at java.io.InputStreamReader.read(Unknown Source)
at java.io.BufferedReader.fill(Unknown Source)
at java.io.BufferedReader.readLine(Unknown Source)
at java.io.BufferedReader.readLine(Unknown Source)
at lbnl.actor.lib.net.Server.read(Server.java:240)
at lbnl.actor.lib.Simulator._readFromServer(Simulator.java:386)
... 10 more
Caused by: java.net.SocketException: Connection reset
at java.net.SocketInputStream.read(Unknown Source)
at java.net.SocketInputStream.read(Unknown Source)
at sun.nio.cs.StreamDecoder.readBytes(Unknown Source)
at sun.nio.cs.StreamDecoder.implRead(Unknown Source)
at sun.nio.cs.StreamDecoder.read(Unknown Source)
at java.io.InputStreamReader.read(Unknown Source)
at java.io.BufferedReader.fill(Unknown Source)
at java.io.BufferedReader.readLine(Unknown Source)
at java.io.BufferedReader.readLine(Unknown Source)
at lbnl.actor.lib.net.Server.read(Server.java:240)
at lbnl.actor.lib.Simulator._readFromServer(Simulator.java:386)
at lbnl.actor.lib.Simulator.initialize(Simulator.java:788)
at ptolemy.actor.Director.initialize(Director.java:939)
at ptolemy.actor.Director.initialize(Director.java:908)
at ptolemy.actor.sched.StaticSchedulingDirector.initialize(StaticSchedulingDirector.java:159)
at ptolemy.domains.sdf.kernel.SDFDirector.initialize(SDFDirector.java:544)
at ptolemy.actor.CompositeActor.initialize(CompositeActor.java:929)
at ptolemy.actor.Manager.initialize(Manager.java:715)
at ptolemy.actor.Manager.execute(Manager.java:354)
at ptolemy.actor.Manager.run(Manager.java:1252)
at ptolemy.actor.Manager$PtolemyRunThread.run(Manager.java:1903)
---

this is the Program list that I installed

1. Matlab 2020a
2. Microsoft Visual Studio 14 (2015) : Visual Studio C++ 2015 or later must be installed in order to use Matlab 2020a.
3. Microsoft SDKs windows 8.1
4. Energyplus V9-2-0
5. jdk 1.8.0_202
6. BCVTB 1.6

In BCVTB's systemVariables-window, the following changes to the list of Matlab, Energy Plus, Java, SDK, and Visual Studio are causing connectivity problems for simulations:

<entry key="ENERGYPLUS_BIN">C:\EnergyPlusV9-2-0</entry>

<entry key="MATLAB_BIN">C:\Program Files\MATLAB\R2020a\bin</entry>

<!-- Batch file that sets environment variables for Visual Studio C compiler -->
<entry key="BCVTB_VS_BAT">C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64\vcvars64.bat</entry> 
<!-- <entry key="BCVTB_VS_BAT">C:\Program Files\Microsoft Visual Studio 14.0\VC\vcvarsall.bat</entry> -->

<!-- Directory with libraries that are needed to compile the BACnet stack -->
<entry key="BCVTB_SDKLib_DIR">C:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A\Lib\x64</entry> 
<!-- <entry key="BCVTB_SDKLib_DIR">C:\Program Files\Microsoft SDKs\Windows\v7.1A\Lib</entry> -->

Also, I don't think BCVTB systemVariables-window is recognizing Microsoft Visual Studio right now.

It's a bit embarrassing, but I'd appreciate it if you could tell me the solution.

Thank you.

KakaoTalk_20200520_140446321.png

Reply all
Reply to author
Forward
0 new messages