lbl-srg / modelica-buildings

Modelica Buildings library
257 stars 159 forks source link

Borefield model seems to have an upper limitation of number (~500) of bore holes #3586

Open jiazhenling opened 11 months ago

jiazhenling commented 11 months ago

Describe the bug A clear and concise description of what the bug is. When using RectangularBorefield example as a starting point, I tried to change the total number of bore holes by adjusting the xBoreFie and yBorFie values, however Ann error of "Room to allocate string Failed condition: stringmark+len+1<Endsimplesttring" occurred. To Reproduce Steps to reproduce the behavior:

  1. 'Fluid/Geothermal/Borefields/Examples/RectangularBorefield.'
  2. Modify xBorefield and/or yBorFie to be larger values, e.g., 100/140, so that nBorHol will be larger than 500
  3. See error
  4. image Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Version

Additional context Add any other context about the problem here.

AntoineGautier commented 11 months ago

Increasing the buffer size char simplestring in /opt/dymola-*/source/matrixop.h should solve the issue. See also https://github.com/ibpsa/modelica-ibpsa/issues/950#issuecomment-397551333.

JayHuLBL commented 11 months ago

@AntoineGautier Has the issue been submitted to Dymola customer service?

AntoineGautier commented 11 months ago

@JayHuLBL Not that I know of.