-
Notifications
You must be signed in to change notification settings - Fork 34
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
SimpleBuildingModel tutorial compilation errors in JModelica #114
Comments
For the first error, do you get any further if you set The second error could possibly be fixed by changing line 264 to |
Thanks, it seems these variable are buried somewhere deep in the model: is it possible to change the value of |
You would have to edit the library file, but the error message tells you the file and line. |
Yes I use Git with the official package so I can keep track of updates but I wouldn't want to disrupt the main BuildingSystems package with my changes. I guess the next best thing would be to export a copy of only the required elements and dependencies into a new package that could then be referenced, rather than the BuildingSystems Library? Do you know if this is possible? The pedantic check in Dymola does not indicate any additional warnings - does the check need to be done with simulation? The first correction you suggested worked but the replacement of
I noticed that phi is defined also on line 103. Deletion of the entire conditional argument on line 264 results in the following error:
|
OK, maybe replace // Select source for relative humidity of the ambient air
if phiSou == BuildingSystems.Buildings.Types.DataSource.Parameter then
phi = phi_constant;
elseif phiSou == BuildingSystems.Buildings.Types.DataSource.File then
phi = weatherData.y[6];
else
connect(phi, phi_in);
end if; with // Select source for relative humidity of the ambient air
phi = if (phiSou == BuildingSystems.Buildings.Types.DataSource.Parameter) then phi_constant
elseif (phiSou == BuildingSystems.Buildings.Types.DataSource.File) then weatherData.y[6]
else phi_in; or does that still give the error wrt conditional components!? Regarding the git workflow: You should click the "Fork" button, then you have a copy where you can do whatever you want. You can have multiple remotes. When you do changes, always create a branch first. Do not work in the master branch, because that branch will change and then you get merge conflicts. |
phi is instantiated in line 103, |
Thanks very much for the git tips! Yes, unfortunately even when I replace that script, I am still getting the error:
|
I have followed the tutorial in the UserGuide for the SimpleBuildingModel. The model seems to run fine in Dymola but I get the following errors when compiling in JModelica:
Any suggestions on why this is happening and what can be done to resolve it?
The text was updated successfully, but these errors were encountered: