﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
5684	IBPSA Integration - specifically with records for pump	anonymous	Per Östlund	"Attempting to check or simulate the `PowerSimplified.mo` and `PowerExact.mo` models within IBPSA.Fluid.Movers.Validation leads to the following error messages respectively:

>[1] 15:23:03 Translation Error
>[C:/dev/OM64bit/OMCompiler/Compiler/NFFrontEnd/NFCeval.mo: 2129:20-2129:78]: Internal >error NFCeval.evalBuiltinMax got invalid arguments (pump_Nrpm.per.pressure.V_flow)

>[5] 15:26:40 Translation Error
>[IBPSA.Fluid.Movers.BaseClasses.Characteristics.flowParameters: 5:3-6:57]: Failed to deduce >dimension 1 of V_flow due to missing binding equation.

In both cases the problem seems to be that setting 'per = per' within the pump models doesn't properly load the pump curve data into the models from the performance records.

If I instead replace each variable individually (e.g. `per.pressure = per.pressure`, `per.power = per.power`, `per.use_powerCharcteristic = per.use_powerCharacteristic`) then the model will succesfully check and it will simulate. 

Simulating the model, however, leads to a second problem cropping up. IBPSA says that in `PowerExact.mo` all three pump models will be identical after importing the pump curves, but I continue to get the same answer for the `FlowControlled_*` movers as is arrived at by the `PowerSimplified.mo` model (which are different than the `SpeedControlled_Nrpm` pump). The flow rate and dp are the same across all three pumps in both models as is expected.

I talked to the developers of the IBPSA library and they say that their test models all work in SimulationX so they believe it is a problem with OpenModelica. After talking with them the leading theory seems to be that the problem stems from the handling of Records."	defect	closed	normal	2.0.0	New Instantiation	v1.14.0-dev-nightly	fixed	IBPSA, Pump, Record, Fluid	
