Errors with Modelica-BuildingSystem Library

62 views
Skip to first unread message

Mariana Dimitropoulou

unread,
Aug 11, 2017, 1:55:30 PM8/11/17
to Modelica-BuildingSystems
Hello everyone,

I am a MSc student and I just used this library for the first time for my dissertation. It seems a really good library but I had so many errors. I use Dymola tool and the model of "SingleFamilyHouseEnEV2014" as I need to calculate the energy demands (heating and cooling) of a simple room. At first, I created my room but I don't know how to create my own HVAC system and add it to my model, so I used the specific example but I had many errors. Did I do something terribly wrong? Does this example need only Python-generated NetCDF weather file or one of the existing WeatherDataTRYGermany is enough? I am really interested in learning how to use the library but I struggle with the time pressure of delivering my dissertation that's why I am looking for a template of a room with HVAC system.

Any advice is valuable as I don't have any other help.
Many thanks in advance!

Regards,
Mariana

Matthis Thorade

unread,
Aug 12, 2017, 3:14:35 PM8/12/17
to Modelica-BuildingSystems
Hi Mariana,
from the error log I see that you are on Windows and using GCC. We tested the library with Visual Studio 2015 Community Edition, could you try whether the unaltered examples work with that compiler?
Regarding the final nZones, please try to instantiate without the (nZones=1) or whatever number of zones you specified. The template Building1Zone1DBox has one zone and that number should not be changed, that is why it is declared final. If you want a different number of zones, use a different template.
You can store your files wherever you want, allthoug it might be convenient to store them in a subfolder of C:/Users/maria/Documents/Dymola because that is where Dymolas open dialog opens.
All this is mostly guessing, I do not have access to Dymola right now.
Please keep asking until your problem is fixed!
Regards,
Matthis



2017-08-12 19:54 GMT+02:00 Mariana Dimitropoulou <marian...@gmail.com>:
Hi Matthis,

Sorry for my persistence but your forum is still my only hope and I keep on trying to achive my simulations with BuildingSystems. I thought I should also mention that:

- I cannot even run the unaltered examples and I have the compiler error that I attached in my previous email. (I can run successfully the examples of the standard Modelica Library though).
- After following step by step the Modelica Library BuildingSystems User Guide that I found in your documentation for setting up a simple building model, I got the error ''Overriding final modifier for nZones''. How could I resolve it?
- Finally, in Windows do the libraries need to be in a specific location (in the Dymola Program File for example)? I don't believe this plays a role but I try to think of a reason why I cannot run the examples.

Thank you very much in advance for your time.

Kind regards,

MarianaΕνσωματωμένη εικόνα 1

Virus-free. www.avast.com

2017-08-11 23:07 GMT+01:00 Mariana Dimitropoulou <marian...@gmail.com>:
Hi Matthis,

Thanks for your immediate response. I downloaded the zip files. And yes, I load the netCDF library and use the latest master. After doing so, the check of the model is successfully completed but when I simulate it there is the translation error of the picture. Do you know what it possibly means? Thanks again for your work. It would be really valuable for me if I manage to use it in order to complete my dissertation!

Regards,

MarianaΕνσωματωμένη εικόνα 1

2017-08-11 19:56 GMT+01:00 Matthis Thorade <mat...@thorade.de>:
Hello Mariana,
good to hear you want to use our library!

Did you also load the netCDF library? Are you able to run the unaltered examples from our libray?

Did you use the latest master? Parts of the library are still under heavy development and some errors are possibly fixed in the master. Did you clone it with git or download a zip file?
Similar for Dymola, we usually use the latest release to do the development and testing.

Regards,
Matthis


--
You received this message because you are subscribed to the Google Groups "Modelica-BuildingSystems" group.
To unsubscribe from this group and stop receiving emails from it, send an email to modelica-buildingsystems+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/modelica-buildingsystems/cc721f95-203f-470e-aa48-e31093a59e4b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Matthis Thorade

unread,
Aug 14, 2017, 6:02:15 AM8/14/17
to Modelica-BuildingSystems
Hi Mariana,
are you now able to run the unaltered examples?

The screenshot of the error message says the error is in the file SimpleBuilding.mo, line 48. You should start looking there. Switch to Modelica text mode, and go to that line. Or, change things in the diagram view and check in text mode what happened.

For future replies, could you use reply all, so that my colleagues also receive the mails? Thanks.

Regards,
Matthis


2017-08-13 0:47 GMT+02:00 Mariana Dimitropoulou <marian...@gmail.com>:
Hi Matthis,

I followed the guide (Chapter Two-Simple Building Model) exactly and tried many times without changing anywhere the "nZones" but I still have the same error "Overriding final modifier for nZones". One zone is what I want for my study that's why I followed the specific template of Building1Zone1DBox. However, I can see that the picture in the guide is slightly different from when I choose Building1Zone1DBox template. I don't know if it makes any sense but I attach the two pictures.

Thanks a lot for the help!

Regards,

MarianaΕνσωματωμένη εικόνα 1Ενσωματωμένη εικόνα 2

--


Matthis Thorade

unread,
Aug 18, 2017, 3:59:59 PM8/18/17
to Modelica-BuildingSystems
Hi Mariana,
good to hear one problem is solved.
The Visual Studio problem should be easy, the installer is modular, and you did not install the C++ part.
To install it, you should either re-run the installer and choose to add that component.
Or you open Visual Studio, click File, New, Project, then Templates, Visual C++. If the C++ parts are not installed, you will have the option to install them here.
https://stackoverflow.com/a/45185508/874701
All the best,
Matthis


2017-08-18 21:45 GMT+02:00 Mariana Dimitropoulou <marian...@gmail.com>:
Hi Matthis,

Ι deleted the nZones modifier from the modelica text and I don't have this error any more. I still have problem with my compiler though. I tried Visual Studio 2015 as you suggested but I get the message in the attached picture. Have you faced this before?

Many thanks.

Kind regards,
Ενσωματωμένη εικόνα 1Mariana

Mariana Dimitropoulou

unread,
Aug 19, 2017, 2:01:50 PM8/19/17
to Modelica-BuildingSystems
Hi,

After properly installing Visual Studio 2015 I managed to have my first results! I am using the "BuildingThermal1Zone1DBox" model and I would also like to ask if I can set a specific operation time for my HVAC system. For example, what if I wanted it to operate between 09:00-18:00 and not continuously? I cannot find a similar example somewhere.

Many thanks in advance.

Regards,
Mariana

Matthis Thorade

unread,
Aug 19, 2017, 2:43:56 PM8/19/17
to Modelica-BuildingSystems
Congratulations!
There should be some examples using a schedule, would that cover your use case?
https://github.com/UdK-VPT/BuildingSystems/search?utf8=%E2%9C%93&q=schedule
Reply all
Reply to author
Forward
0 new messages