Mathadon / modelica_MPC

MPC-related models for building optimal control
0 stars 2 forks source link

FixedBoundary #6

Open dhblum opened 6 years ago

dhblum commented 6 years ago

This issue is to create a new Fluid.Sources.FixedBoundary model. JModelica optimization with IBPSA.Fluid.Sources.FixedBoundary results in

Exception in thread "main" java.lang.UnsupportedOperationException: Cannot convert expression to MX: fill(0.0, 0)
    at org.jmodelica.optimica.compiler.FExp.toMX(Unknown Source)
    at org.jmodelica.optimica.compiler.FExp.toMXVector(Unknown Source)
    at org.jmodelica.optimica.compiler.FFunctionCall.toMXVector(Unknown Source)
    at org.jmodelica.optimica.compiler.FFunctionCall.toMXVector(Unknown Source)
    at org.jmodelica.optimica.compiler.FFunctionCall.toMX(Unknown Source)
    at org.jmodelica.optimica.compiler.FDotMulExp.toMX(Unknown Source)
Java error occurred: 

This is caused by the function Modelica.Fluid.Utilities.checkBoundary.

Removing the fuction from Fluid.Sources.FixedBoundary works. So far, attempts to inline the function have failed.

Mathadon commented 6 years ago

Duplicate of #7