﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
5597	Two examples of the new Modelica.Electrical.Batteries package do not work with the new frontend	Christian Kral <dr.christian.kral@…>	Per Östlund	"I tested the new [https://github.com/modelica/ModelicaStandardLibrary/pull/3054/commits/1fc121c3b0114a37ac971b5a5710fd0580b0f4bf Batteries package] which is going to be included in the MSL by 
[https://github.com/modelica/ModelicaStandardLibrary/pull/3054 modelica/ModelicaStandardLibrary#3054]. When investigating the three examples of the Batteries library I was running into problems with two of the examples:

=== Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge ===

Error message with new frontend:

{{{

[4] 12:38:18 Translation Error
[/var/lib/jenkins3/ws/LINUX_BUILDS/tmp.build/openmodelica-1.14.0~dev-26599-g88bb448/OMCompiler/Compiler/NFFrontEnd/NFCeval.mo: 1401:9-1402:94]: Internal error NFCeval.evalRelationLessEq failed to evaluate ‘Modelica.Electrical.Batteries.ParameterRecords.RCData.R <= 0.0‘

[5] 12:38:18 Translation Error
[/var/lib/jenkins3/ws/LINUX_BUILDS/tmp.build/openmodelica-1.14.0~dev-26599-g88bb448/OMCompiler/Compiler/NFFrontEnd/NFCeval.mo: 2459:20-2459:79]: Internal error NFCeval.evalBuiltinSum got invalid arguments (cellData2.rcData.R)

[6] 12:38:18 Translation Notification
[Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge: 42:3-51:71]: From here:

[7] 12:38:18 Translation Error
[Modelica.Blocks.Tables: 11:5-13:80]: Constant cellData2 is used without having been given a value.

[8] 12:38:18 Translation Notification
[Modelica.Electrical.Batteries.ParameterRecords.CellData: 6:3-8:47]: From here:

[9] 12:38:18 Translation Error
[Modelica.Blocks.Tables: 11:5-13:80]: Constant battery2.cellData.useLinearSOCDependency is used without having been given a value.
}}}

So {{{[5]}}} may be the relevant hint, since the calculation of the sum seems to fail.

The example simulates OK with the old frontend

=== Modelica.Electrical.Batteries.Examples.CCCVcharging ===

Pretty much the same error message with the new frontend. The old frontend compiles and simulates fine. 
"	defect	new	blocker	2.0.0	New Instantiation	v1.14.0-dev-nightly			a.haumer@… modelica@…
