Opened 4 years ago

Closed 4 years ago

Last modified 3 years ago

#6197 closed defect (fixed)

Issues with code generation in the Buildings library

Reported by: Francesco Casella Owned by: Mahder Alemseged Gebremedhin
Priority: critical Milestone: 1.18.0
Component: New Instantiation Version:
Keywords: Cc: Per Östlund

Description (last modified by Francesco 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 by Mahder Alemseged Gebremedhin, 4 years ago

Status: newaccepted

comment:2 by Francesco Casella, 4 years ago

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

comment:3 by Francesco Casella, 4 years ago

Milestone: 1.17.01.18.0

comment:4 by Francesco Casella, 4 years ago

Cc: Per Östlund 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 by Per Östlund, 4 years ago

Resolution: fixed
Status: acceptedclosed

Fixed in 5770fc19.

comment:6 by Francesco Casella, 3 years ago

Component: Code GenerationNew Instantiation
Note: See TracTickets for help on using tickets.