BCVTB error co-simulate E+ et matlab

85 views
Skip to first unread message

Naouar EL M'GHARI

unread,
Jul 1, 2022, 4:18:42 PM7/1/22
to bcvtb
Running my idf  file causes this error.
 How can I solve it?
i use energyplys8.5/Matlab2017
===== RunEPlus.bat (Run EnergyPlus) EEBLab_Essaigeo_Geothermal MAR_RK_Rabat-Sale.AP.601350_TMYx.2003-2017 ===== Start =====
        1 fichier(s) copi‚(s).
Le fichier sp‚cifi‚ est introuvable.
        1 fichier(s) copi‚(s).
ExpandObjects Started.
No expanded file generated.
ExpandObjects Finished. Time:     0.016
Running C:\EnergyPlusV8-5-0\EnergyPlus.exe
Input File  : EEBLab_Essaigeo_Geothermal.idf
Output Files:
IDD file    : C:\EnergyPlusV8-5-0\Energy+.idd
Weather File: C:\EnergyPlusV8-5-0\WeatherData\MAR_RK_Rabat-Sale.AP.601350_TMYx.2003-2017.epw
Begin EnergyPlus processing . . .
EnergyPlus Starting
EnergyPlus, Version 8.5.0-c87e61b44b, YMD=2022.07.01 18:36
Processing Data Dictionary
Processing Input File
Initializing Simulation
 ReadVarsESO program starting.
 EOF encountered during read of ESO header records
 probable EnergyPlus error condition -- check eplusout.err
 ReadVarsESO program terminated.
 ReadVars Run Time=00hr 00min  0.02sec
 ReadVarsESO program starting.
 EOF encountered during read of ESO header records
 probable EnergyPlus error condition -- check eplusout.err
 ReadVarsESO program terminated.
 ReadVars Run Time=00hr 00min  0.00sec
  Started HVAC Diagram
  Complete
        1 fichier(s) d‚plac‚(s).
        1 fichier(s) d‚plac‚(s).
        1 fichier(s) d‚plac‚(s).
        1 fichier(s) d‚plac‚(s).
        1 fichier(s) d‚plac‚(s).
        1 fichier(s) d‚plac‚(s).
        1 fichier(s) d‚plac‚(s).
        1 fichier(s) d‚plac‚(s).
        1 fichier(s) d‚plac‚(s).
        1 fichier(s) d‚plac‚(s).
        1 fichier(s) d‚plac‚(s).
        1 fichier(s) d‚plac‚(s).
Removing extra files . . .
Impossible de trouver C:\Users\Admin\Documents\bcvtb\examples\eplusmodif\ePlus\Energy+.ini
===== RunEPlus.bat EEBLab_Essaigeo_Geothermal ===== Complete =====

nouidui.c...@gmail.com

unread,
Jul 4, 2022, 7:45:30 AM7/4/22
to bcvtb

Could you share the content of the EnergyPlus error file that is generated?

Naouar EL M'GHARI

unread,
Jul 4, 2022, 8:41:08 AM7/4/22
to bcvtb
Thank you  for your warm reply.

ptolemy.kernel.util.IllegalActionException: SocketTimeoutException while reading from client in .system.EnergyPlus:
Accept timed out.
Try to increase the value of the parameter 'socketTimeout'.
It could be that the client "RunEPlus.bat" is not executing properly.  From the command line, try running:
  RunEPlus.bat "EEBLab_Essaigeo_Geothermal MAR_RK_Rabat-Sale.AP.601350_TMYx.2003-2017"
You should see something like:
  Simulation model has time step       60
  Error: Failed to obtain socket file descriptor. sockfd=-1.
The error message is expected because Ptolemy is not present.
Also, make sure that the directory that contains
"bcvtb.dll" (on Windows), "libbcvtb.so" (on Linux) or
"libbcvtb.dylib" (on Mac OS X) is on yourPATH, LD_LIBRARY_PATH or DYLD_LIBRARY_PATH for Windows,
Linux and Mac OS X respectively.
That directory contains the shared library used by the simulator.
Client subprocess exit value (should be 0): 0
  in .system.EnergyPlus
Because:
Accept timed out
    at lbnl.actor.lib.Simulator._readFromServer(Simulator.java:479)
    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.SocketTimeoutException: Accept timed out
    at java.net.DualStackPlainSocketImpl.waitForNewConnection(Native Method)
    at java.net.DualStackPlainSocketImpl.socketAccept(DualStackPlainSocketImpl.java:135)
    at java.net.AbstractPlainSocketImpl.accept(AbstractPlainSocketImpl.java:409)
    at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:199)
    at java.net.ServerSocket.implAccept(ServerSocket.java:560)
    at java.net.ServerSocket.accept(ServerSocket.java:528)
    at lbnl.actor.lib.net.Server.read(Server.java:233)
    at lbnl.actor.lib.Simulator._readFromServer(Simulator.java:386)
    ... 10 more
Caused by: java.net.SocketTimeoutException: Accept timed out
    at java.net.DualStackPlainSocketImpl.waitForNewConnection(Native Method)
    at java.net.DualStackPlainSocketImpl.socketAccept(DualStackPlainSocketImpl.java:135)
    at java.net.AbstractPlainSocketImpl.accept(AbstractPlainSocketImpl.java:409)
    at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:199)
    at java.net.ServerSocket.implAccept(ServerSocket.java:560)
    at java.net.ServerSocket.accept(ServerSocket.java:528)
    at lbnl.actor.lib.net.Server.read(Server.java:233)
    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)
ERR.PNGerrro.PNG
Caerror.PNG

Thierry Nouidui

unread,
Jul 4, 2022, 8:52:01 AM7/4/22
to bc...@googlegroups.com
If I understand correctly, after changing the location of the BCVTB you could run the examples.

Now: Did you manage to run the example that couples E+ with Matlab?

In case you are now running your own IDF file:

Did you try to run your IDF in E+(no BCVTB in the loop) first by commenting out the object:

ExternalInterface,
  PtolemyServer;

This will make sure that your E+ file is OK.


--
You received this message because you are subscribed to a topic in the Google Groups "bcvtb" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/bcvtb/SVcE8jDsSEE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to bcvtb+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bcvtb/8e1fcf13-55c2-413b-9de0-7ba60d7bea39n%40googlegroups.com.


--
Prof. Thierry Nouidui
Nouidui Consulting Group
https://nouidui.com/index.php/consulting/

Naouar EL M'GHARI

unread,
Jul 4, 2022, 9:40:42 AM7/4/22
to bcvtb
After changing the location of bcvtb, I managed to run the examples like Matlab-room/eplus85simulink-simple
Now I try to run my own idf file
I tried to run my IDF in E+ without  ExternalInterface /PtolemyServer;
          and  i don't have a problem 
Caerror.PNG

Thierry Nouidui

unread,
Jul 4, 2022, 9:48:13 AM7/4/22
to bc...@googlegroups.com
If the example file is working then it means that the BCVTB setup is OK.
If your own file is working without ExternalInterface objects then it means that your IDF is good.
If your own file is not working in co-simulation mode, then there is most likely a problem with the way you have configured your Matlab/IDF files.

I don't have Matlab to test but I suggest you send your simulation folder (zipped) with the xml-file, the Matlab-file as well as the IDF + configuration files.
I will try to blindly debug and let you know my findings.


You received this message because you are subscribed to the Google Groups "bcvtb" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bcvtb+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bcvtb/5694d018-6474-4793-bf6b-c3d74813557dn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages