-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue162 testcase single zone commercial #160
Conversation
add review document
add occupancy doc
Thanks a lot @TaoYang-CFEI for making this PR. This model is almost there I think. I have a number of comments that should be addressed though:
|
…ercial Remotes/origin/single zone commercial
Many thanks for your comments @dhblum, the updated version has been uploaded, please take a look, further comments are more than welcome. |
Thanks @TaoYang-CFEI. I am planning to review in the next week. |
@TaoYang-CFEI Thanks a lot for the revisions! This looks very good, and addressed all of my comments I listed before. I am going to do some additional testing with the BOPTEST framework, add associated unit tests, and maybe fix some small typos I see in the documentation. In this case, are you ok with me pushing some changes to your fork branch? In the meantime, can you please add more details to the documentation of inputs and outputs? Please add the variable name (e.g. "read_Tzone" - the name of the signal exchange block instance), unit, min, and max. Also make sure the description matches what is in the signal exchange block instance. After this, it would be good too to have another review check with the most recent review checklist, v1.3 (most updates are related to the BOPTEST stuff, and not as much the modeling, which has been reviewed by the checklist uploaded with the model already). Is Valentin still available for this? |
@dhblum thanks for the feedback, please feel free to push any changes to my fork branch. I will further update the model with the comments. Besides, I am planning to update the newest review checklist myself if that is OK, since Valentin may not be available for it. Also, I think will provide the updated review checklist for Valentin's model within the next two weeks. |
@TaoYang-CFEI Ok I will push some changes and also look for your updates to the documentation (see here for an example). I think it would be better if someone other than you completed the review checklist, as the review process should serve as a peer review. I can do that, having gone through the model twice already. If you can focus on reviewing Valentin's model within the next two weeks, that would be great. |
@dhblum Thanks a lot, that works great! |
…to singleZoneCommercial
…I/project1-boptest into singleZoneCommercial
@TaoYang-CFEI I was able to simulate the model for 1 year using cvode in Dymola. However, when I try to simulate the model with JModelica (pyfmi) cvode solver, I get errors in the solver. For instance, trying to simulate the model for 10 days gives me:
Have you ever tested simulating the model with JModelica? |
@dhblum I have not tested the model with JModelica. I actually have no clue how the error comes either. |
Ok thanks @TaoYang-CFEI. I'll be taking a look at it. |
Just an update here. If I remove the PID controllers for the radiator and AHU valve and replace with constant 0s, it simulates ok. So it seems to be something around the controls that are causing the issue. |
@dhblum Just want to make sure I understand correctly the error, then I can start to debug it. Did you export the model fmu, and run it with python PyFMI interface instead of running the model itself in Jmodelica? |
@TaoYang-CFEI Thanks for clarifying. No, I tried to run the model with JModelica. I first compile the FMU with JModelica, then simulate the FMU with JModelica. |
Thanks, @dhblum for helping us reproduce the issue:
What I have noticed is that I get a number of warnings while compiling the fmu. Did you see similar output when compiling the FMU?
|
@filokot Yes I get those warnings as well. Also, while I'm glad you reproduced the error, just wanted to point out that it is not exact. The integration time your error reports is 2923.212443 while mine is 0.095120. I'm compiling using Buildings Library v7.0.0 and latest JModelica trunk (which is what BOPTEST uses in unit tests). |
…to singleZoneCommercial
@taoyyt Subject to passing the unit tests, I think this is very close to merging. I wanted to make you aware of my recent changes and see if you had any problems, comments, or feedback on them, or anything else before this is merged. |
…to singleZoneCommercial
This is ready to merge if tests pass. |
This is the emulator of Single Zone Commercial building from SDU, Denmark