Skip to content
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

BuildingsPy produces error - Modelica/dymola don't #357

Open
Stelzerfe opened this issue May 7, 2020 · 3 comments
Open

BuildingsPy produces error - Modelica/dymola don't #357

Stelzerfe opened this issue May 7, 2020 · 3 comments

Comments

@Stelzerfe
Copy link

Hey,
I'm using BuildingsPy for parametric studies. Some Parameter from a list are not simulated successfully when executed with the BuildingsPy. When i simulate these parameters directly in Modelica/dymola, there is no problem. Is this a model or BuildingsPy related problem. Does anyone know or had a similar problem?

@mwetter
Copy link
Member

mwetter commented May 7, 2020

That should not be the case. Do you have a small script that reproduces the issue.

@Stelzerfe
Copy link
Author

Stelzerfe commented May 8, 2020

So this is the code for the simulation. I tried this with a less complex modelica model and it worked. Could it be the case, that the simulation runs into error and in modelica it doesn't? The "simulator.log" file says: "simulateModel(...) = false. All the others are " = True".

I guess there is an error message during the simulation, because when i reduce the simulating time for example to 100 s there is no problem occurring.

Thanks in advance

def CaseStudy(s):
s.setStopTime(simulatingtime)
s.printModelAndTime()
s.setSolver("dassl")
s.simulate()

#----- Simulation of model - H_st list à 10 values ---------------------------------- for i1, i2 in enumerate(H_st):
s = si.Simulator(name_model,"dymola",path_where_stored, path_model)
s.addParameters({'k': i2})
CaseStudy(s)
path.append(os.path.join(path_mat_file, "name.mat"))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants