NREL / CampusEnergyModeling

Other
18 stars 6 forks source link

Using Campus Energy Modeling #1

Open frateanadrian opened 7 years ago

frateanadrian commented 7 years ago

Hello, I am trying to use these tools but I am having some issues. Does anyone can provide me some help?

stephen-frank commented 7 years ago

We have very limited support capability (this project doesn't have an external support budget), but would be happy to answer any questions we can. What specific questions do you have? Have you followed the installation guide on the Wiki, including adherence to the software versions listed? This project is frozen in time and hasn't yet been updated for compatibility with recent releases of MATLAB etc., so failure to use the exact software versions listed will likely cause problems.

frateanadrian commented 7 years ago

Hello,

Thanks for your answer. I am currently working on my PhD Thesis and I want to use MLE+ to simulate building energy consumption with EnergyPlus and build control strategies and other simulations with Simulink and this is how I've discovered this project. I am running Matlab 2013a and EnergyPlus 8-0-0-0 on a Mac OS 10.11.6. I downloaded the latest release and I've followed the steps presented in the Wiki. First I've tried to run de demos, but I get an error saying that there is a bad link for the Simulink Library models.

screen shot 2017-01-24 at 22 22 13

What might be the problem? The Simulink Library seems to be a *mdl file, but I am unable to open it with Simulink. Did I miss anything in the process? I've tried also to use the legacy MLE+ block, but that does't seem to work either. I am only able to use the GUI interface for MLE+.

stephen-frank commented 7 years ago

Those "Bad Link" boxes imply that the Campus Energy Modeling library is not on your Simulink path. Did you definitely edit and run the install.m script in MATLAB per the installation instructions? If not, try that. If you already did, then maybe something is preventing the script from adding the model library to your path, or else that the path is not persisting after closing MATLAB. You may need to manually add the location of the "Library" directory distributed with the release to your MATLAB path.

frateanadrian commented 7 years ago

Yeah I did it. I ttached some screenshots with an error I get when I open a demo file. You can see above that the install.m is done successfully.

screen shot 2017-01-24 at 23 27 45

This is the path in one of the blocks:

screen shot 2017-01-24 at 23 28 17

I tried to add the rest:

screen shot 2017-01-24 at 23 30 58
stephen-frank commented 7 years ago

Can you verify that the path to the library is actually on your MATLAB path? E.G. by running the MATLAB path command? If it is, then I'm not quite sure why it would be failing to find it.

stephen-frank commented 7 years ago

@willybernal Any ideas? He's running this on a Mac. Maybe permissions errors?

frateanadrian commented 7 years ago

Yeah, it is.

screen shot 2017-01-24 at 23 49 00
frateanadrian commented 7 years ago

If I run the test script, this is what I get

screen shot 2017-01-24 at 23 52 23
stephen-frank commented 7 years ago

Yeah, ok, it definitely seems to be having trouble loading the actual Simulink library, despite having it on the path. Unfortunately, the errors you are seeing are rather cryptic. I am not a Mac user, but it may have something to do with Macintosh permissions. (I'm taking a shot in the dark here.) My colleague Willy Bernal uses a Mac. I will see if he has any ideas, or can perhaps refer you to a different strategy for using MLE+.

willybernal commented 7 years ago

Hello Adrian,

I am not sure why you are experiencing this problem. As you are mainly interested in MLE+, I would try to get that piece running properly and then we can revisit how to make it work with the CampusEnergyModeling toolbox:

Let me know if you get this working or if you have any questions. After that, I can help you out getting the Campus EnergyModeling toolbox working.

Thanks, Willy

frateanadrian commented 7 years ago

Hi Willy,

Thank you for answering. I tried the legacy example, but I get this error:

screen shot 2017-01-25 at 23 59 39

It seems like there is an issue with Java.

Adrian

willybernal commented 7 years ago

I see. Can you open the .err file and send it back? It should be called simple.err.

Willy Bernal Mechatronics and Controls Engineer willybernal@gmail.com

On Wed, Jan 25, 2017 at 3:01 PM, Adrian Fratean notifications@github.com wrote:

Hi Willy,

Thank you for answering. I tried the legacy example, but I get this error: [image: screen shot 2017-01-25 at 23 59 39] https://cloud.githubusercontent.com/assets/8103983/22311092/864f9320-e35a-11e6-8f67-60406f3afdb5.png

It seems like there is an issue with Java.

Adrian

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/NREL/CampusEnergyModeling/issues/1#issuecomment-275246589, or mute the thread https://github.com/notifications/unsubscribe-auth/AAjuuHJXWiP1gCptwul0zbrCo4T4ZUBpks5rV8YygaJpZM4LsmMD .

willybernal commented 7 years ago

Make sure you have E+ 8.6 and you have changed the settings in installMlep.m before running that file.

Willy Bernal Mechatronics and Controls Engineer willybernal@gmail.com

On Thu, Jan 26, 2017 at 2:50 PM, Willy Bernal willybernal@gmail.com wrote:

I see. Can you open the .err file and send it back? It should be called simple.err.

Willy Bernal Mechatronics and Controls Engineer willybernal@gmail.com

On Wed, Jan 25, 2017 at 3:01 PM, Adrian Fratean notifications@github.com wrote:

Hi Willy,

Thank you for answering. I tried the legacy example, but I get this error: [image: screen shot 2017-01-25 at 23 59 39] https://cloud.githubusercontent.com/assets/8103983/22311092/864f9320-e35a-11e6-8f67-60406f3afdb5.png

It seems like there is an issue with Java.

Adrian

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/NREL/CampusEnergyModeling/issues/1#issuecomment-275246589, or mute the thread https://github.com/notifications/unsubscribe-auth/AAjuuHJXWiP1gCptwul0zbrCo4T4ZUBpks5rV8YygaJpZM4LsmMD .

frateanadrian commented 7 years ago

I have 8.6 and I changed the path. You mean err file form Matlab?

willybernal commented 7 years ago

The .err file gets generated by E+. That should have information about the error you are encountering. The error is showing is just saying that E+ did not respond on time to Matlab. So, the socket connection opened in Matlab times out and then throws that error. There must be some problem with the settings. That information probably shows up in the .err file.

I actually meant to say SmOffPSZ.err. You should take a look at that to see what would be the problem. Also, send it my way please.

Willy Bernal Mechatronics and Controls Engineer willybernal@gmail.com

On Thu, Jan 26, 2017 at 3:03 PM, Adrian Fratean notifications@github.com wrote:

I have 8.6 and I changed the path. You mean err file form Matlab?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/NREL/CampusEnergyModeling/issues/1#issuecomment-275528501, or mute the thread https://github.com/notifications/unsubscribe-auth/AAjuuNgCe69CmWr0eK0HrWqyvcgi9o9_ks5rWRhMgaJpZM4LsmMD .

frateanadrian commented 7 years ago

It's strange, I've been searching everywhere but there is no .err file that I get after trying to run the simulation.

willybernal commented 7 years ago

This is what my legacy folder looks like: It might be inside the Output folder. Can you send me a screenshot of your folder after you try to run simpl.slx?

Willy Bernal Mechatronics and Controls Engineer willybernal@gmail.com

On Thu, Jan 26, 2017 at 11:41 PM, Adrian Fratean notifications@github.com wrote:

It's strange, I've been searching everywhere but there is no .err file that I get after trying to run the simulation.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/NREL/CampusEnergyModeling/issues/1#issuecomment-275599563, or mute the thread https://github.com/notifications/unsubscribe-auth/AAjuuCZ0YRj7bIkcfUACmeV8QBQOhGVRks5rWZGDgaJpZM4LsmMD .

frateanadrian commented 7 years ago

this is how it looks like after the simulation:

screen shot 2017-01-27 at 21 42 04

i have no output folder

frateanadrian commented 7 years ago

i think you missed adding a pic of your folder