karthikeyad-pnnl / modelica-buildings

Modelica Buildings library
0 stars 2 forks source link

Simulation taking longer time to run #24

Open karthikeyad-pnnl opened 3 years ago

karthikeyad-pnnl commented 3 years ago

@SenHuang19 : The branch is "pnnl-development".

The relevant files are:

  1. Buildings.Controls.OBC.ASHRAE.PrimarySystem.BoilerPlant.Controller
  2. Buildings.Controls.OBC.ASHRAE.PrimarySystem.BoilerPlant.ClosedLoopTest.ClosedLoopTest
  3. Buildings.Controls.OBC.ASHRAE.PrimarySystem.BoilerPlant.ClosedLoopTest.PlantModel dslog.txt
SenHuang19 commented 3 years ago

I noticed that the samper intervals are set to be quite small (1e-3). For example, in the MinimumFlowSetpoin, I found

Buildings.Controls.OBC.CDL.Discrete.UnitDelay uniDel( final samplePeriod=0.001) "Unit delay for Real signal" annotation (Placement(transformation(extent={{140,-120},{160,-100}})));

I wonder if those values are desired?

I have changed them to 60s and found the simulation completes quite fast

Integration terminated successfully at T = 1000 CPU-time for integration : 0.969 seconds CPU-time for one grid interval : 4.84 milliseconds CPU-time for initialization : 0.245 seconds Number of result points : 210 Number of grid points : 201 Number of accepted steps : 193 Number of f-evaluations (dynamics) : 334 Number of crossing function evaluations : 403 Number of Jacobian-evaluations : 78 Number of model time events : 16 Number of input time events : 0 Number of state events : 1 Number of step events : 0 Minimum integration stepsize : 9.98e-007 Maximum integration stepsize : 252 Maximum integration order : 5 Calling terminal section ... "dsfinal.txt" creating (final states)