-
Notifications
You must be signed in to change notification settings - Fork 58
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
Compiling boptest test case "multizone_office_simple_hydronic" #1343
Comments
Let me comment on the Dymola errors first. When I compile the model using Dymola 2023x, I don't get the errors you encounter. I am however able to reproduce your errors when I perform a pedantic check in Dymola 2023x. I presume you have some flag enabled in Dymola that performs a more strict compilation (maybe
When I compile the model using Dymola 2023x, I only get the latter error (see screenshot below), so that one needs to be solved for sure. |
Regarding the OCT errors, I think these are also warnings that are flagged by OCT due to some flag that is activated (similar to the pedantic check in Dymola). Nevertheless, it makes sense to fix these, because they indicate inconsistencies in our models.
@Mathadon do you have any idea why my initial 'fix' for problem 1 does not remove the 'multiple declaration' warning? |
Thanks a lot @jelgerjansen for your quick reply and help on this. Regarding Dymola, indeed it was a pedantic check that caused those warnings to be errors. Without the pedantic check, I get what you show in your screen shot. Regarding OCT, sounds like you're on a track to fixing in IDEAS. I need to do some searching to see what/if there's a pedantic flag. |
@dhblum @jelgerjansen I acknowledge the message but due to some EOY priorities that I need to meet I may take a bit of time to look at the issues |
|
|
I refactored the conditional input based on how is done with the boundary_pT model (lines 66-68). The code now looks like this:
Let me know if this solve the problem, but based on your error message I have a suspicion that the problem underlies in connecting two RealInput signals together. No worries at all, if it is not solved I can try to redefine TSetIn as a Real parameter instead of a RealInput connector (but unfortunately I do not have a Dymola license to test it out). I will push this change into my project1-boptest branch fork (see pull request related to this emulator) I am able to compile the model using OpenModelica version 1.23.0~dev-206-g00d3636 and the current Buildings master and IDEAS BOPTEST branches as for today. A yearly simulation with Euler integrator (15s step) takes about 15-20 minutes, a bit longer with CVodes |
@icupeiro this fix indeed doesn't solve the problem. Good to know that the model now compiles in OM. |
pushed a new formulation based on those models (still not sure it will work). Since it only affects the compilation in Dymola (commercial software) I do not know how much should we worry about this. @dhblum let me know if this is a hard constraint |
@icupeiro the errors remain: |
Had a chat with @jelgerjansen and solved the Dymola compilation issues. The model now compiles with Dymola |
This is all great to see, thank you both for continued efforts. I confirm the model compiles and simulates ok (at least for 10 days) with OM (v1.22.1 and v1.23-dev). I was able to also compile a CS FMU with OM v1.23-dev, but the FMU fails to simulate when I tried with pyfmi (via OCT). I couldn't find any sort of pendantic flag in OCT compiler, so fixing the errors with Dymola might help fix the errors with OCT as well. I will test with these updates and report back. |
@dhblum are you getting the same errors with OCT as reported initially (multiple declarations)? This branch should already solve the problem with the |
Here we go. I pulled the latest for the emulator model and used the latest IDEAS branch issue1343_BoptestMultizoneOffice. Compiling and simulating in Dymola without pedantic mode works (but see below). Compiling and simulating in OM works (but see below). Compiling in OCT fails with these errors (@jelgerjansen the problem with
I see a problem where the simulation results for Dymola and OM do not agree. Here are results for the first 10 days of simulation (I get the same results respectively in each tool whether I use cvode or euler with a timestep of 15s). In OM, the temperature for zone 2 is not meeting setpoint. I haven't done further diagnostics at this point. |
@icupeiro @dhblum it seems that the Dymola fix causes errors with OCT, so we'll need another solution that works for both... I'll keep this issue open to fix the last IDEAS error in the model ( |
Sounds good @jelgerjansen to compartmentalize, your suggestion is reasonable. I'll report the issues related to Dymola/OCT compilation and Dymola/OM results in ibpsa/project1-boptest#465. Tag me when you resolve #1344 or if you need additional testing there. |
I tried to solve the 'multiple declaration' error by adding I therefore removed the declaration of @dhblum can you check if this fixes the OCT error? (see this branch) |
@jelgerjansen Yes your update removes the error related to |
@jelgerjansen yup sounds good! |
…s of PR 1343 and 1349 (issue #1343) in the master branch
This issue is to address problems with compiling the boptest emulator
multizone_office_simple_hydronic
.@jelgerjansen This is as discussed in the IBPSA Project 2 meeting.
dymola_error_log.txt
The text was updated successfully, but these errors were encountered: