Running command: "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Batteries_Examples_BatteryDischargeCharge",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.905/1.905, allocations: 225.8 MB / 239.3 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.926e-05/2.932e-05, allocations: 4 kB / 292.2 MB, free: 8.723 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1063/0.1063, allocations: 50.41 MB / 342.6 MB, free: 6.289 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4452/0.5516, allocations: 89.99 MB / 432.6 MB, free: 4.211 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002758/0.5519, allocations: 75.72 kB / 432.7 MB, free: 4.176 MB / 346.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Electrical/Batteries/ParameterRecords/TransientData/CellData.mo:8:3-11:59:writable] Notification: Moving binding to initial equation section and setting fixed attribute of cellData2.rcData[2].R to false. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Electrical/Batteries/ParameterRecords/TransientData/CellData.mo:8:3-11:59:writable] Notification: Moving binding to initial equation section and setting fixed attribute of cellData2.rcData[2].C to false. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Electrical/Batteries/ParameterRecords/TransientData/CellData.mo:8:3-11:59:writable] Notification: Moving binding to initial equation section and setting fixed attribute of cellData2.rcData[1].R to false. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Electrical/Batteries/ParameterRecords/TransientData/CellData.mo:8:3-11:59:writable] Notification: Moving binding to initial equation section and setting fixed attribute of cellData2.rcData[1].C to false. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Electrical/Batteries/Examples/BatteryDischargeCharge.mo:52:5-52:23:writable] Error: Type mismatch in binding cellData = cellData2, expected subtype of record Modelica.Electrical.Batteries.ParameterRecords.TransientData.CellData String CellType; Real(displayUnit = "A.h", quantity = "ElectricCharge", unit = "C") Qnom; Boolean useLinearSOCDependency; Real(min = 0.0, quantity = "ElectricPotential", unit = "V") OCVmax; Real(min = 0.0, start = 0.0, quantity = "ElectricPotential", unit = "V") OCVmin; Real(max = 1.0) SOCmax; Real(min = 0.0) SOCmin; Real[2, 2] OCV_SOC; enumeration(LinearSegments, ContinuousDerivative, ConstantSegments, MonotoneContinuousDerivative1, MonotoneContinuousDerivative2, ModifiedContinuousDerivative) smoothness; Real[2, 2] OCV_SOC_internal; Real(quantity = "Resistance", unit = "Ohm") Ri; Real(quantity = "ThermodynamicTemperature", unit = "K", min = 0.0, start = 288.15, nominal = 300.0, displayUnit = "degC") T_ref; Real(quantity = "LinearTemperatureCoefficient", unit = "1/K") alpha; Real(quantity = "ElectricCurrent", unit = "A") Idis; Real(quantity = "Resistance", unit = "Ohm") R0; Integer nRC; record Modelica.Electrical.Batteries.ParameterRecords.TransientData.RCData String CellType; Real(quantity = "Resistance", unit = "Ohm") R; Real(quantity = "ThermodynamicTemperature", unit = "K", min = 0.0, start = 288.15, nominal = 300.0, displayUnit = "degC") T_ref; Real(quantity = "LinearTemperatureCoefficient", unit = "1/K") alpha; Real(quantity = "Capacitance", unit = "F", min = 0.0) C; end Modelica.Electrical.Batteries.ParameterRecords.TransientData.RCData;[1] rcData; end Modelica.Electrical.Batteries.ParameterRecords.TransientData.CellData;, got type record Modelica.Electrical.Batteries.ParameterRecords.TransientData.ExampleData$cellData2 String CellType; Real(displayUnit = "A.h", quantity = "ElectricCharge", unit = "C") Qnom; Boolean useLinearSOCDependency; Real(min = 0.0, quantity = "ElectricPotential", unit = "V") OCVmax; Real(min = 0.0, start = 0.0, quantity = "ElectricPotential", unit = "V") OCVmin; Real(max = 1.0) SOCmax; Real(min = 0.0) SOCmin; Real[29, 2] OCV_SOC; enumeration(LinearSegments, ContinuousDerivative, ConstantSegments, MonotoneContinuousDerivative1, MonotoneContinuousDerivative2, ModifiedContinuousDerivative) smoothness; Real[29, 2] OCV_SOC_internal; Real(quantity = "Resistance", unit = "Ohm") Ri; Real(quantity = "ThermodynamicTemperature", unit = "K", min = 0.0, start = 288.15, nominal = 300.0, displayUnit = "degC") T_ref; Real(quantity = "LinearTemperatureCoefficient", unit = "1/K") alpha; Real(quantity = "ElectricCurrent", unit = "A") Idis; Real(quantity = "Resistance", unit = "Ohm") R0; Integer nRC; record Modelica.Electrical.Batteries.ParameterRecords.TransientData.RCData String CellType; Real(quantity = "Resistance", unit = "Ohm") R; Real(quantity = "ThermodynamicTemperature", unit = "K", min = 0.0, start = 288.15, nominal = 300.0, displayUnit = "degC") T_ref; Real(quantity = "LinearTemperatureCoefficient", unit = "1/K") alpha; Real(quantity = "Capacitance", unit = "F", min = 0.0) C; end Modelica.Electrical.Batteries.ParameterRecords.TransientData.RCData;[2] rcData; end Modelica.Electrical.Batteries.ParameterRecords.TransientData.ExampleData$cellData2;. Error: Error occurred while flattening model Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge Notification: Performance of FrontEnd: time 0.1151/0.667, allocations: 26.83 MB / 459.5 MB, free: 12.86 MB / 378.7 MB