Opened 4 years ago

Closed 3 years ago

Last modified 3 years ago

#6197 closed defect (fixed)

Issues with code generation in the Buildings library

Reported by: casella Owned by: mahge930
Priority: critical Milestone: 1.18.0
Component: New Instantiation Version:
Keywords: Cc: perost

Description (last modified by casella)

Please check Buildings.Examples.ChillerPlant.DataCenterContinuousTimeControl. The C compilation fails with error messages such as

error: used type 'boolean_array' (aka 'struct base_array_s') where arithmetic or pointer type is required

I have no idea what this could be due to, please investigate.

Change History (6)

comment:1 Changed 4 years ago by mahge930

  • Status changed from new to accepted

comment:2 Changed 4 years ago by casella

Probably related to functions with record inputs. Affects a large number of models in the Buildings library

comment:3 Changed 4 years ago by casella

  • Milestone changed from 1.17.0 to 1.18.0

comment:4 Changed 4 years ago by casella

  • Cc perost added
  • Description modified (diff)

@perost suggests that this could also be due to the frontend not passing that information in the right way to the backend.

The OF report shows the code generation stopping during the backend, but this could be due to other unrelated shortcomings of the OF.

We should investigate how equations involving parameters such as cooCoi.ele[2].preDro2.m_flow_turbulent, that show up in the problematic C code, are handled by both the NF and the OF

comment:5 Changed 3 years ago by perost

  • Resolution set to fixed
  • Status changed from accepted to closed

Fixed in 5770fc19.

comment:6 Changed 3 years ago by casella

  • Component changed from Code Generation to New Instantiation
Note: See TracTickets for help on using tickets.