Test Case Analysis of System Safety Regarding Degraded Li-Ion Battery
Test Case Analysis of System Safety Regarding Degraded Li-Ion Battery
Current
Contactor
Elapsed Time
CARL BIERICH
EMIL MAGNUSSON
CARL BIERICH
EMIL MAGNUSSON
CARL BIERICH
EMIL MAGNUSSON
Cover: Measurement of current, voltage and contactor status for overdischarge test.
Typeset in LATEX
Gothenburg, Sweden 2019
iv
Test case analysis of system safety regarding degraded Li-ion battery
Validation and verification of BMS safety functions
in HIL environment with focus on ISO 26262
CARL BIERICH
EMIL MAGNUSSON
Department of Electrical Engineering
Chalmers University of Technology
Abstract
As lithium ion batteries become a larger part of the vehicle propulsion system, the
testing of the battery management system software becomes increasingly important.
This thesis focuses on evaluating the existing hazard and risk analysis to find test
cases that can be further investigated in order to find alternative test methods. The
new test methods are supported by the latest version of the ISO 26262:2018 stand-
ard. The tests that are conducted are stress tests of aged cells in a HIL environment
which are used to verify the functional safety of the current and voltage limits.
The results show that the safety functions stated in the early version of the technical
safety requirements are working for the applied stress tests. It is however questioned
if the limits implemented in the software at the time of testing is sufficient to en-
sure full safety of the battery system. Some tests, especially for aged cells, reaches
voltages that are far beyond the safety limits and the exposure time is discussed if
long enough to risk significant damage. Solutions are presented that could mitigate
the issues that are found during the testing process.
v
Acknowledgements
First of all, we would like to express our gratitude to Anna Niemi who gave us
the opportunity to conduct our thesis work at Volvo Cars Corporation. We are
really appreciative of our supervisor Lucas Bergman for his guidance and consulting
throughout the thesis work to lead us in the right direction. A special thanks to
Karthik Hitavalli Prakash who have helped us to implement our modifications in
the HIL model, despite his busy schedule, and Simon Torstenson who have helped
us with practical issues regarding the HIL simulator.
vii
Acronyms
ix
Contents
1 Introduction 1
1.1 Problem background . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
1.2 Previous work . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
1.3 Purpose . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
1.4 Scope . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
1.5 Ethical and sustainable aspects . . . . . . . . . . . . . . . . . . . . . 3
2 Theory 5
2.1 Li-ion battery . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
2.1.1 Variance in Li-ion battery impedance . . . . . . . . . . . . . . 6
2.1.2 Degradation of Li-ion battery cells . . . . . . . . . . . . . . . 7
2.2 Battery management system . . . . . . . . . . . . . . . . . . . . . . . 9
2.2.1 Battery cell model . . . . . . . . . . . . . . . . . . . . . . . . 9
2.2.2 Operational window . . . . . . . . . . . . . . . . . . . . . . . 11
2.2.3 Thermal runaway . . . . . . . . . . . . . . . . . . . . . . . . . 12
2.2.4 Discharge of the battery . . . . . . . . . . . . . . . . . . . . . 13
2.3 ISO 26262 series of standards . . . . . . . . . . . . . . . . . . . . . . 14
2.3.1 Concept phases . . . . . . . . . . . . . . . . . . . . . . . . . . 14
2.3.2 Functional and technical safety requirements . . . . . . . . . . 15
2.4 Verification methods . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
2.4.1 Requirement based tests . . . . . . . . . . . . . . . . . . . . . 16
2.4.2 Fault injection test . . . . . . . . . . . . . . . . . . . . . . . . 17
2.4.3 Back-to-back test . . . . . . . . . . . . . . . . . . . . . . . . . 17
2.4.4 Stress test . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
2.5 Test strategies . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
2.5.1 Smoke testing . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
2.5.2 Regression testing . . . . . . . . . . . . . . . . . . . . . . . . . 18
2.5.3 Acceptance test . . . . . . . . . . . . . . . . . . . . . . . . . . 18
x
Contents
4 Analysis 34
4.1 Base verification . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
4.1.1 Change of internal series resistance . . . . . . . . . . . . . . . 35
4.1.2 Change of parameters in RC-link . . . . . . . . . . . . . . . . 36
4.1.3 Simulation of aged battery cells . . . . . . . . . . . . . . . . . 37
4.1.4 Simulation of one highly degraded battery cell . . . . . . . . . 38
4.1.5 Overriding the cell voltage . . . . . . . . . . . . . . . . . . . . 39
4.2 Functional safety verification . . . . . . . . . . . . . . . . . . . . . . . 39
4.2.1 Cell voltage monitoring . . . . . . . . . . . . . . . . . . . . . . 40
[Link] Battery at low state of charge . . . . . . . . . . . . . 40
[Link] Battery at high state of charge . . . . . . . . . . . . 42
[Link] One highly degraded logical cell . . . . . . . . . . . . 44
4.2.2 Current monitoring . . . . . . . . . . . . . . . . . . . . . . . . 47
[Link] High power request . . . . . . . . . . . . . . . . . . . 47
4.3 Automation of test . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
5 Validation 50
5.1 Functional and technical safety validation . . . . . . . . . . . . . . . . 50
5.1.1 Test case . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
5.2 Tests in relation to safety goals . . . . . . . . . . . . . . . . . . . . . 52
5.3 Safety solution . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
5.3.1 Variance in operation . . . . . . . . . . . . . . . . . . . . . . . 53
5.3.2 Stress test . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
5.3.3 Adaptive parameters in correlation with ageing . . . . . . . . 54
5.3.4 Voltage difference between battery cells . . . . . . . . . . . . . 55
xi
Contents
6 Conclusion 56
6.1 Future work . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
Bibliography 59
Appendices I
xii
1
Introduction
To ensure the safety of the battery, the battery management system (BMS) needs
to operate the battery within certain limits. These limits are expressed as safety
conditions within the BMS software. For each new software that is introduced in
the BMS one or a series of tests need to be performed in order to verify that the
safety conditions are not compromised. To verify the functional safety of the system,
tests can be performed in a hardware-in-the-loop (HIL) environment. The control
unit of the battery is then connected to hardware which is running a simulation
environment, making it possible to perform tests on the BMS software implemen-
ted in its dedicated hardware. This increases the credibility that the testing in the
simulation environment has the same consistent outcome as for a physical test and
that it follows the safety standards.
The BMS controls the battery to operate optimally and within safe limits to protect
it from abuse situations. The vehicle performance can in this way be secured and
the batteries lifetime increase. If a failure or malfunction of the system occurs, the
BMS should make sure that the battery is disconnected from the electrical system
and prevent hazardous events. It has several important functions such as monitor-
ing the state of the battery, balancing the battery cells and reporting data. One of
the most important parameters the BMS has to monitor is the temperature of the
battery. The battery should operate within a certain temperature range to avoid
degradation of the cells, which temperature range depends on the chemistry [2]. To
ensure that the control unit is robust and reliable, tests of the system is necessary.
1
1. Introduction
As all new developed software must be tested, the procedures can be repetitive
and costly. The executed code used for operation of the vehicle increases exponen-
tially, which leads to a need for more software verification[3], [4]. To be certain that
safety is guaranteed, many of the tests are performed both in a simulated environ-
ment and physically in the car. To reduce the costs of the tests it is favourable to
automate as many as possible of the tests performed in the simulated environment.
In order to do so the standards regarding functional safety must be interpreted and
integrated in the testing.
Safety within the automotive industry have always been a topic of great import-
ance. In order to be sure that all car manufacturers performs validation and verific-
ation of their electrical/electronic (E/E) systems, the international organization for
standardization (ISO) has published the standard ISO 26262, titled "Road vehicle -
Functional safety". It is an adaptation of the international electrotechnical commis-
sions (IECs) standard IEC 61508 which provides a framework for functional safety
related systems in vehicle development, which should be followed to verify that tests
are performed correctly. As the technical complexity of automobiles increases, ISO
26262 includes guidance for appropriate requirements and processes to avoid the
increasing risk of systematic failures.
1.3 Purpose
The purpose of the thesis is to test alternative test methods to trigger faults in
the BMS in simulation environment, to broaden the test coverage and improve the
troubleshooting of the system. The test methods will be investigated if possible to
use to confirm that aged battery cells still fulfills the functional safety requirements
in accordance with ISO 26262.
2
1. Introduction
1.4 Scope
Standards related to automotive system safety, where the focus will be regarding
validation and verification of tests on system and functional level for the BMS. The
standards should be interpreted, taking into account how they impact the testing
procedure. To keep the scope of this thesis feasible, the following will be considered:
3
1. Introduction
Testing of the BMS should give evidence of safe operation of the battery under
normal conditions but also prove that safety measures are taken if a hazardous
event is predicted. Expanding the different scenarios that are tested can bring fur-
ther assurance that the safety is sustained under various circumstances. The end
goal is for occupants of an electric vehicle to feel as safe or safer than in a conven-
tional ICE vehicle. If standards are used during the development and testing, it
provides assurance that the product is engineered using processes that are planned,
executed and documented carefully. Implementing tests in a simulated environment,
where it is possible to automate tests, can free up time for testers to perform other
tests which makes the work more efficient [7]. If the testing is done efficiently then
this can save cost of the product which means that final prizes can be reduced.
As lower costs will make the BEVs more competitive against ICE vehicles, this is
a valuable development process to improve in order to motivate people to buy BEVs.
Volvo also has a goal that 50% of the sales volume in 2025 is to be fully electric [5].
Electrification is part of the sustainability goals as BEVs has a lower emissions of
green house gases compared to conventional ICE vehicles [8], [9]. The emission of
green house gases does however depend on the lifetime of the vehicle, which in the
case of BEVs depend on the lifetime expectancy of the battery. This relates back to
the operation of the battery as the extent of degradation relates to how harshly the
battery has been operated. If the limits are too high or too low then operation close
to the limits may cause accelerated degradation. Setting the limits with some safety
margin may mitigate this problem as long as the allowed operation time beyond the
limits is not long.
Increasing the lifetime of the battery is of importance as it means that the re-
sources, such as lithium or cobalt, are used in a sustainable way. An aged battery
also has a higher internal impedance which causes more losses within the battery,
decreasing the efficiency. Keeping the battery at a healthy state longer prolongs the
time span in which the battery is utilized with lower losses.
4
2
Theory
In the following chapter the working principle of a lithium ion battery (LIB) will
be explained, as well as factors which leads to degradation of battery cells. The
purpose of the BMS and working principals in order to prevent degradation and
hazardous events will be described. Finally, the ISO 26262 series of standards and
verification methods will be presented.
The LIB stores energy electrochemically by transferring lithium ions (Li-ions) back
and forth between the cathode and anode material. When the LIB is discharged
all Li-ions are located in the cathode material. The cathode material often contain
a mixture of transition metals to minimize the weight and to be able to store as
many Li-ions as possible, in order to increase the energy density [2]. When the LIB
is charged the Li-ions will be transferred through the separator, which prevents the
cathode from getting in contact with the anode. A direct contact between the anode
and cathode would result in a short circuit, which could lead to a fire. The Li-ions can
move freely in the electrolyte which the cathode, separator and anode are soaked in.
As the Li-ions are transferred to the anode, electrons will flow in an external circuit
through the aluminum and copper current collector which connects the cathode and
anode. The separator, which consist of a thin porous paper film, galvanically isolates
the cathode and anode from each other. This forces the electrons to move through
the external circuit, as the Li-ions move through the separator. When the Li-ions
have passed the separator they will be stored in the anode material which usually
consists of hard carbon or graphite. When all cyclable lithium is located in the
anode the battery is fully charged. If the battery is instead discharged, the Li-ions
and electrons will move in the opposite direction and the Li-ions will be stored in
the cathode material. A simple structure of a battery cell can be seen in Figure 2.1.
5
2. Theory
6
2. Theory
Figure 2.3: Capacity vs number of cycles with regions with different characteristics
of degradation [2].
7
2. Theory
This degradation happens in all cells but can be accelerated if the battery is used
outside of optimal conditions. Such causes can be overcharge or overdischarge and
overcurrents. If cells are overcharged, i.e. voltage across the cell is to high, then
there are no more Li-ions to be moved from the cathode to anode, which will increase
the impedance. In turn the energy put into the cell will be converted to heat which
accelerates side reactions [13]. These side reactions consumes some of the cyclable
lithium, reducing the cells capacity. Another disadvantage of overcharging cells is
that if excessive amounts of Li-ions are extracted from the cathode the structure
of it might become deformed, leading to less ions being inserted into the cathode
during the discharge following an overcharge [2]. One of the largest potential risks
of overcharge is lithium plating of the anode, which occurs when lithium ions cannot
be inserted into the anode [14], [15]. Lithium plating may cause dendrites as the
current is no longer uniformly distributed over the electrode surface. The dendrites
are basically whiskers of lithium metal stretching out from the anode material that
can lead to an internal short circuit of the battery.
The effects during overdischarge is that the SEI layer of the anode starts to dis-
solve and expose new active electrode material to the electrolyte. This will initiate
the development of new SEI during the subsequent charge to repair the damaged
areas, which will consume cyclable lithium [2]. When cells are overdischarged there
is a reaction that dissolves the current collector of the anode. This reduces con-
tact between electrode and current collector ,which increases the resistance. The
dissolved particles from the current collector can also stick to the separator or pen-
etrate it, forming metal plating on the separator or cathode. This metal plating can
create conducting paths or support lithium plating which leads to decreased capacity
and internal short circuits [16], [17]. The worst case scenario is that a short circuit
occurs between the aluminum collector and the anode. The low electrical resistance
of the anode and the low thermal conductivity makes it possible for a high current to
flow, but the heat will be trapped in the anode material [18]. Overdischarge may also
cause thermal stability changes which can make it more sensitive to abuse conditions.
Overcurrents will deplete the lithium ions from the surface of the electrodes faster
than the ions can diffuse within the electrode material. This causes an increased
impedance which will increase the temperature of the battery, that in turn acceler-
ates unwanted side reactions that reduces the capacity [2]. Depending on the SOC
of the battery an overcurrent may also be the cause of an over or undervoltage.
Apart from degradation inside the cell, the degradation can be accelerated if one
cell connected in parallel has degraded faster due to the production lot [2]. This will
impact all cells connected in parallel and converge all cells to age according to the
cell with lower state of health (SOH) [19]. The reason is that the lower SOH cell
experience lower current compared to the cells connected in parallel, as it has an
increased resistance. The higher currents in the healthy cells will result in increased
ohmic heat generation and faster ageing until they reach the same SOH as the de-
graded cell. According to [19], a 60% difference in peak cell current is observed when
four cells are connected in parallel with a 30% difference in impedance.
8
2. Theory
9
2. Theory
The RC-links gives the model its dynamics and by choosing appropriate values
for the resistance and capacitance in parallel, the desired time constant τ can be
determined according to
τ1 = R1 · C1 (2.1)
τ2 = R2 · C2 (2.2)
where Ucell is the cell voltage, OCV is the open-circuit voltage and I the current.
A Nyquist plot demonstrates how the different chemical reactions in the battery
cell impacts the impedance. In Figure 2.5 the characteristic impedance can be seen
for a common LIB. The semi-circle represents the polarization, where the charge
transfer at the electrode has the biggest impact on the impedance phenomena. It
also depends on the concentration gradient of ions at the surface of the electrode,
but it does not have as much impact as the charge transfer. When the impedance
drastically increase and becomes highly capacitive depends on diffusion. The pro-
cess of polarization and diffusion occurs at different rates, which is represented with
the different time constants in the model [21].
The impedance of the battery cell is influenced by several different parameters. The
battery behaviour depends on temperature, SOC, current level, previous short-term
history, pressure and ageing [2], [22]. The factors that are considered in the model
is the temperature and SOC, as these are the parameters that affects the impedance
the most. The parameters in the cell model can be changed for each battery cell
so that the characteristic impedance looks different for each of them. By increasing
the impedance for one of the battery cells it is possible to emulate a degraded or
defect battery cell in an otherwise healthy battery pack.
10
2. Theory
In order to use the battery safely, it should be operated within certain temperat-
ure, voltage and current limits [2]. These limits provide the conditions for normal
operation and for restricted operation, where the battery can be used for a limited
time with restricted power input or output. If the battery is operated outside these
limits longer than a certain time it can be considered as unsafe. The limits can be
provided by the battery manufacturer and are based on their risk analysis. Internal
testing at the company, together with calculations performed by the computer-aided
engineering team is used to complement the recommended limits from the manu-
facturer. Figure 2.6 shows how this type of operational window can be set by the
voltage, current, temperature and time limits in two different ways.
Figure 2.6: Example of how operational windows can be defined by limits in the
BMS.
The times in Figure 2.6a represents the maximum time that the battery is allowed
to be operated in that temperature interval, were t1 is the time before disconnection
of the battery if the temperature is in the unsafe temperature range. The second
time, t2 is the time the battery is allowed to operate in the restricted operational
window and t3 is the maximum time allowed for disconnection if the battery is in
the restricted operational window longer than t2 . These types of time limits are also
defined for the voltage and current limits in Figure 2.6b.
The voltage of the operational window is based on the OCV profile of the bat-
tery. How the OCV profile looks depends on the battery chemistry, its internal
resistance, capacity, hysteresis and relaxation of the battery [2], [23]. The voltage
profile of a common Li-ion battery can be seen in Figure 2.7.
11
2. Theory
Figure 2.7: The voltage profile of the battery and the set voltage limits.
The reason of investigating the voltage during operation is due to the risk of lithium
plating and the build up of dendrites, which rapidly degrades the performance of the
battery and is a safety issue [14]. As the LIB gets damaged, if operated outside its
operational window, it will eventually lead to a short circuit inside the LIB. A short
circuit in the battery is a major concern as it may lead to a thermal runaway and
start a fire. This should be prevented with active safety, therefore it is of importance
that the voltage limits and fault tolerance time interval (FTTI) are chosen properly.
12
2. Theory
Internal short circuits that occur due to manufacturing defects are unavoidable, as
the BMS does not have the possibility of detecting these defects [2]. The heat gen-
eration of an internal short circuit can be extreme and lead to a rising temperature
of several hundred degrees per second. Impure particles originates from the manu-
facturing and at the time of the inspection of the newly manufactured battery it is
impossible to observe. The impure particles will degrade the battery cells in a faster
pace and build up dendrites which will eventually short circuit the battery. The
risk of a thermal runaway is higher for internal short circuits which slowly builds
up over time compared to external abuse. All impurities and internal short circuits
will not lead to a thermal runaway, but the impurities increase the risk of internal
short circuits, which in turn increase the risk for a thermal runaway.
An aged battery has an enhanced effect to trigger a thermal runaway due to ageing
conditions [2]. As the internal resistance of an aged battery increases, the battery
becomes more sensitive to overcharge and overdischarge. The increased resistance
also results in higher losses in the battery cell which generates heat. Internal short
circuits are more common on an aged battery as well, as dendrites have had the
time to build up during the battery lifetime.
13
2. Theory
compensate for the decreasing voltage. A constant current request will instead lead
to a power that decreases with the voltage, This is understood by
P =U ·I (2.4)
were P is the power, U is the voltage and I is the current. Since an increase in
current will lead to faster discharge of the battery the voltage will reduce quicker.
The rate of discharge of the battery for a constant power request therefore increases
with time.
14
2. Theory
The safety goals are the top-level safety requirements which are based on the HARA.
The FSRs should define the required functionality to ensure that the safety goals
are satisfied. A fault tree analysis can be used to identify potential violations of
the FSRs and to improve the traceability. It should contain all faults that could
possibly occur and the dependencies between them. To determine all faults that
can occur in a complex system might be hard, but as many as possible should be
ruled out [26]. The faults that are broken down from the FSRs are the basis for
the TSRs. These requirements are more specified to a certain fault that must be
prevented by the active system and are given ASILs to specify its risk and hazard.
In the TSRs there are both functional and non-functional requirements. A func-
tional safety requirement specifies an action that should occur if a certain criteria
is fulfilled to achieve or maintain a safe state [27]. A non-functional requirement
just specifies a constraint or restriction on the system design that should be satisfied
[28]. The TSR states if testing is needed to confirm that the requirement is satis-
fied or if other verification methods are better suited, like failure mode, effects, and
diagnostics analysis. Which environment the test should be performed in depends
on the implemented functionality and complexity. It might therefore be adequate
to perform the test in other integration sub-phases [29].
Verification is done in order to ensure that a product complies with the specified
requirements [30]. The verification can be done using various methods in several
stages of the product development and testing. During development the verification
is essentially the evaluation that the items requirement specification, design and
models follows the requirements of correctness, consistency and completeness. In
the testing process the verification is performed in a testing environment to evaluate
that the item comply with the requirement specification. The verification should in
both cases be planned, specified, executed, evaluated and documented systematic-
ally.
The testing performed in this thesis will be focusing on the system integration,
which is addressed in ISO 26262-4:2018 7.4.3 [29], however much of the system will
be simulated. This is further explained in Section 3.2.1. The paragraphs of Sub-
section 7.4.3 in the standard focus on different stages of the system integration, the
first being correct implementation of functional and technical safety requirements.
The recommended test methods for each paragraph are presented in tables similar
to Table 2.1.
15
2. Theory
ASIL
Methods
A B C D
Requirement based test hr hr hr hr
Fault injection test r r hr hr
Back-to-back test n r r hr
Other tests that are recommended for system integration are performance test, error
guessing test, test derived from field experience, internal and external interface tests,
interface consistency check, test of interaction and resource usage test. For this thesis
the one that will be applied is stress testing. This test method as well as those of
Table 2.1 will be explained further in the following sections.
16
2. Theory
17
2. Theory
be broad and preferably simple, to test many of the functions quickly and should
not be considering details. Smoke testing can be used to decide if further testing is
viable or if there are major issues that needs to be addressed first. An example of a
test that could be part of the smoke testing for functional safety of the BMS is if the
contactors are closed and opened when requested. A smoke test can be performed
at any stage of testing but is mainly performed once changes has been made to the
system that could affect the functionality.
18
3
Development of testing procedure
To develop a test procedure in accordance with the relevant standard, ISO 26262,
certain steps must be followed to ensure that the requirements are fulfilled. When
safety-related functional tests are to be designed the hazards and risks must be con-
sidered, which are the foundation for the safety goals of the E/E system. In the
following chapter the development of the functional and technical safety require-
ments will be explained and how they are implemented and tested. It is of high
importance that the specifications are followed to guarantee safe operation of the
vehicle. The specifications should be clear so that they are interpreted correctly. The
set requirements will be verified in the simulation environment but not back-to-back
tested in the physical environment due to the nature of the tests being destructive
and hard to replicate outside of simulations.
19
3. Development of testing procedure
3.2.1 Hardware-in-the-loop
To verify that the control unit works properly it can be tested in a safe and simulated
environment to detect and isolate faults before integrating a new software in the
vehicles. The HIL set-up used for verification of the BMS in this project is dSPACE
SCALEXIO [36]. It is a modular, real-time system that can emulate all the signals
and measurements from the rest of the electronic control units (ECUs) in the vehicle,
in a closed loop simulation, to represent a real car. An example of the ECU network
of a BEV is shown in Figure 3.1 where the BMS is communicating with the engine
control module (ECM) and inverter control module (ICM) through the controller
area network (CAN) bus.
Since it is the BMS that is of interest, the other ECUs and their respective software
as well as the communication are emulated in a simulation. All physical compon-
ents and signals are represented in a so called environment model, which is the
environment that the BMS will be implemented in. The environment model is then
simulated in the HIL processor which communicates with the test object through
input and output (I/O) boards. The processor can also communicate with an ex-
ternal PC on which parameters of the model can be changed and values can be read.
The HIL set-up provides an interface between the host PC which manages the test
and the object under testing. In some cases the external PC might need to have
a separate communication with the test object outside of the HIL. This is because
there are internal signals in the test object that are not communicated to the I/O
boards. A representation of the HIL with relevant connections is shown in Figure
3.2.
20
3. Development of testing procedure
To avoid high voltages and currents in the simulation environment, which are meas-
ured in the vehicle in reality, scaling factors are used. When performing tests on
the BMS it requires real-time signals. Because of this limitation the test sequences
can become time-consuming if many requirement tests should be executed. Since
requirement based testing, both functional and non-functional, make up large parts
of the tests performed on an ECU, it is preferable to automate these types of tests
[37].
3.2.2 ControlDesk
ControlDesk is an experiment setup software from dSPACE which allows for easy
ECU measurement, calibration and diagnostics as well as instrumentation layouts
[38]. It is beneficial since it allows for easy use of simulation tools, such as HIL
modules, as well as vehicle communications networks, such as CAN. It essentially
allows for tasks that would normally require several tools to be operated by one
single software. The instrumentation layout is based on a modular graphical user
interface (GUI) which allows for custom layouts which are adapted to the type of
testing that is performed.
3.2.3 AutomationDesk
AutomationDesk is a tool to automate test scenarios in the HIL environment for
ECUs. The software is certified by TÜV SÜD, which confirms that it is suitable for
testing safety related systems in the automotive industry, according to ISO 26262
and IEC 61508 [39]. The automation tool combines a GUI, for easy implementation
and traceability of test scripts, and python based test development. If a specific al-
gorithm is needed, which is not already implemented in the AutomationDesk library,
python scripts can be written to add user-specific extensions. Test scripts can later
on be reused if stored in a custom library to increase the time efficiency, resulting
21
3. Development of testing procedure
in a development process that will speed up with time. A useful feature that can
be used to evaluate the tests result is the automatic report generator. After the
test script has been executed a document will automatically be generated with the
specified content of the test results that is of interest.
The second application can only communicate with the BMS using the internal
signals of the controller. The application therefore has access to internal software
parameters of the BMS, which can then be changed by the user in real time. The
software also has access to all logical cell voltages that are measured by the BMS
while only the minimum and maximum cell voltages, as well as the pack voltage are
communicated by the BMS on the CAN-bus.
The second software also has twice the sampling frequency which means higher
accuracy for fast changing events. This is because the BMS measures a signal and
then converts it before communicating it to the CAN-bus, due to this conversion
the sampling rate is slower for the CAN-bus.
The first part of the base verification is to observe the voltage response of the
battery cells when a constant current step is applied. The parameters in the battery
model will be changed to simulate a highly degraded battery cell or pack, to study
how it will affect the voltage response of the battery. This will be compared with
simulations using the original parameters in the battery model. The tests performed
on the original parameters will be presented as a new cell, meaning a test cell which
has not been tampered with.
22
3. Development of testing procedure
As the tests will be performed for degraded cells with impedance that has changed
during the usage of the battery, the impedance parameters of the model needs to
be changed. This is done by multiplying the values in the existing look-up tables
of the test cell with scaling factors. The changes can however be implemented on
all cells using a global variable or on individual cells using a matrix. If the entire
pack is scaled to the parameters of a degraded cell this will be referred to as an aged
pack. When only one cell is scaled this will be referred to as a highly degraded cell.
The scaling factors have been summarized from Figures 5, 7, 8, 12 and 13 in [11]
and can be seen in Table 3.1. The degraded cell that was used to establish these
scaling factors has been cycled for 1900 cycles at temperatures of -10 to 40 ◦ C and
in addition to that stored for 18 months at various temperatures between 25 and 50
◦
C. This implies that the cell has been used close to how a BEV battery is expected
to be used. It is however not a cell that has been in a car but instead the ageing is
done experimentally, causing accelerated ageing, which should be considered when
looking at the results.
Temperature [◦ C] R0 R1 C1 τ
20 2.5 8.6 5.8 50
0 3.3 4.3 11.6 50
-10 3.9 4.2 11.8 50
As the time constant changes with large variance for different temperatures as well
as between new and degraded cells it was assumed that it increased 50 times for all
temperatures. R1 is calculated using C1 and the assumed time constant scaling of
50 from [11]. The SOC dependency has a low impact on the scaling factor according
to the data and is therefore not considered.
The voltage response should follow (2.3), which can be verified by looking at the
initial voltage drop and the dynamic voltage response. The current should be ap-
plied for a specified time and afterwards set to zero. The voltage response once the
current is zero can be seen as the relaxation time. The initial conditions for the
voltage response test is a SOC of 50% and a temperature of 20 ◦ C, if nothing else
is mentioned. The current is either a charge or discharge current of 100 A which
is applied for 100 s. The cell is then monitored for another 100 s to observe the
voltage response which represents the relaxation of the battery. An illustration of
the applied current steps can be seen in Figure 3.3 where a positive current is a
discharge current.
23
3. Development of testing procedure
100 0
80 -20
Current [A]
Current [A]
60 -40
40 -60
20 -80
0 -100
Figure 3.3: Example of the current steps that are applied for the base verification
tests.
24
3. Development of testing procedure
Safety mechanisms that should act before the safety limits are reached are the power
limits. These should restrict the amount of power that can be requested from or
injected into the battery. These changes dynamically based on the current through
the battery and the voltage across it. However for the tests in these cases it is as-
sumed that these power limits have stopped working or is miscalculating the limits,
allowing the battery to violate the safety limits.
There are also limits as the battery enters the the restricted operation, defined
in Figure 2.6b. These limits should be reached before the critical limits and if these
limits are exceeded then the discharge power is limited to 15% of maximum specified
power or the charging is disrupted in an attempt to get the battery back into a safe
state. If the battery operates in the restricted mode for a specified duration then
the contactors should open within required time, even though the critical limits has
not been reached. For the tests performed in this thesis the limits for the restricted
25
3. Development of testing procedure
mode is not yet implemented in the software and can therefore not be part of the
tests. This also implies that the tests will focus on the functionality of the BMS for
the most critical limits.
As these tests are performed to simulate cases where the voltage and current limits
are exceeded, an important part of the analysis is to verify that appropriate actions
are taken within the FTTI. If the BMS does not take action then the reason for this
will be investigated and possible causes will be presented.
When the battery is close to fully charged and a high charging current is applied to
the battery there is a risk for an overvoltage. This also applies when the battery is
close to fully discharged but the other way around, then an undervoltage can occur
if a high discharge current is drawn from the battery. Since the voltage changes
with time, as described in Section 2.2.1 it is dependant on the resistance of the cell
which in turn changes with the SOC of the battery.
-20°C
-10°C
0°C
25°C
Resistance [Ω]
As seen in Figure 3.4 the resistance is higher at lower SOCs and it increases with
lower temperature. The risk of a critical undervoltage is more likely to occur com-
pared to a critical overvoltage, as the voltage drop becomes higher if the same power
is requested at a low SOC compared to injected at high SOC. Therefore the testing
performed for the lower voltage limits is of most interest, to see how the system
reacts to abusive conditions.
26
3. Development of testing procedure
27
3. Development of testing procedure
28
3. Development of testing procedure
The tests that have been performed for the different voltage and current limits are
used to select one requirement that shows promising results which is to be auto-
mated. The objective of automating the test is to show a method for how this can
be performed and that the result is equal or sufficiently close to that of the manually
performed test. As the different test cases are similar, the test script will only need
minor changes in order to be performed for the other tests in this thesis.
The development process starts with building a sequence which tests the lower
voltage limit by setting a constant power request, like the manually performed tests
in Section [Link]. The test should close the contactors, set the initial SOC and
then request a constant power. The sequence should then detect the undervoltage,
however a time limit is implemented so that the sequence does not get stuck if an
undervoltage does not occur. After the voltage limit is reached, or the timer runs
out, the program should check if the contactors open within the specified FTTI.
Once the FTTI check is done the program restores the power request and requests
the contactors to open, as a safety precaution if it is not performed during the low
voltage test. Finally the test restores the faults and evaluates the test, which means
that it creates a report where steps that have passed or failed are displayed and the
stored signals are presented in graphs.
Section [Link] describes how a low voltage test is performed for both new and
aged cells for three different temperatures. This involves all steps of the automated
test mentioned above, from the closing of the contactors to the clearing of the faults.
This sequence can therefore be summarized as a low voltage test. The benefit of
the automated test is that such a sequence can be performed for both new and aged
cells at many different temperatures without any input from the user. An example
of how the low voltage test is constructed and implemented in a loop that changes
the temperature can be seen in Figure 3.5.
29
3. Development of testing procedure
Figure 3.5: To the left: an example of a low voltage test with constant power
requested from the battery. To the right: an implementation of the low voltage
test for both new and aged cells at different temperatures.
30
3. Development of testing procedure
In Figure 3.5 there are blocks that are called "Reset dynamic voltage", these are
needed in order to cancel out the relaxation effect of the dynamic voltage drop in
the model. It basically reduces the time constant so that the discharge in the RC-
link is done immediately. This means that when a SOC of 5% is set, it results in
the same voltage every time, which gives equal initial starting points for all tests.
3.6 Validation
After the tests have been performed they will be verified against the requirements
to establish if they are fulfilled. Once the verification has been performed the results
will be used to support the validation of the requirements towards the safety goals.
The validation will establish if the requirements are sufficient to reach the safety
goals or if further requirement specification and testing is needed.
When new types of tests are made the safety goals will be considered as well as
variance in operation, which is recommended in ISO 26262-4:2018 [Link]. By in-
cluding tests on aged battery cells the E/E system can ensure safe operation of
the product throughout its lifetime. Some hazards have a higher risk of appearing
when the battery cells are aged and therefore it is of interest to make sure that the
safety-related functions are working properly in this operational use case. In ISO
26262-3:2018 7.1 the objectives of the functional safety concept is written, which
states that the degraded functional behaviour should be specified in accordance
with its safety goal.
31
3. Development of testing procedure
to achieve functional safety. The parameters used are stated in Table 3.1 in Section
3.3. Performing a stress test under high operational loads will give rise to a different
behaviour of the battery, this will show how robust the system is and if the correct
operation is still sufficient regarding the safety.
The tests performed also differ since they are more similar to how an unsafe voltage
or current might be achieved. Limits has previously been tested by overriding signals
from the environment model with a value that violates the limits after which the
actions of the BMS has been recorded to ensure that these are correct, as described
in Section 3.3.5. In the test performed during this thesis the voltage and current
response over time is considered in order to investigate how the battery may respond
during the time span between fault detection and action.
Figure 3.6: Detailed FTTI for disconnection of contactors when a fault is detected.
The fault must be consistent during the time between the detection of the fault and
signaling for disconnection in order to request the contactors to open. The FTTI is
also used to follow the time of the degradation limits to prevent a hazardous event.
The time between fault detection and setting the disconnection signal is typically in
seconds while the other time intervals are in milliseconds in Figure 3.6, but due to
better visualization the figure is not properly scaled.
32
3. Development of testing procedure
33
4
Analysis
In this chapter an analysis will be performed of how an aged battery pack and a
highly degraded logical battery cell impacts the voltage and current of the battery.
As the increased impedance of the battery leads to increased voltage drops, it may
result in insecure operation. Temperature increase in a battery cell can be enhanced
if the battery is aged as well as it becomes more sensitive to overcharge and over-
discharge. Besides from ageing, 1 out of 5-10 million cylindrical cells for the most
experienced manufacturers has a defect which results in a safety incident [40]. This
means that 1 out of approximately 1000 vehicles may have a defect battery cell [41].
This calculation example is related to 18650 cylindrical cells and a Tesla model S
85 kWh. For pouch cells used in this work, the failure rate may be lower or higher
but it gives some perspective of the failure rate. The likelihood that battery cells
have degraded functionality is most likely higher compared to a defect cell which
can result in a safety incident.
The tests performed on the battery during the development stage should guarantee
safe operation during its whole lifetime, in the greatest extent possible. The func-
tional safety will be evaluated for which amount of time the voltage is allowed to
stay under or over the critical voltage limit of the battery, to prevent unnecessary
risks. The limits are presented as dotted lines in the figures. It should be mentioned
that the software tested is not intended for production and not yet calibrated cor-
rectly. Therefore parameters in the software may differ from the final software.
As there are many safety functions in the BMS that will prevent the battery from
operating outside its voltage and current window, these functions are not considered
in order to evaluate the most critical safety functions. These functions must be veri-
fied as they are crucial if a software malfunction occurs. If safety functions which
limits the power do not work correctly it is important that other safety functions in
the system still works.
The voltage measurements shown in this chapter comes from the internal signals
of the BMS, these values has better accuracy compared to the voltage signal on the
CAN-bus. The mean value for 24 logical cell voltages is used to present the logical
cell voltage. When a highly degraded logical battery cell is analyzed one of the cell
voltage measurements differs from the rest, this voltage is also considered in the
mean voltage. Voltages in the text are mentioned in percentage of nominal voltage,
while figures are labeled with per unit (p.u.). The measured current is taken from
the CAN-bus.
34
4. Analysis
A charge and discharge current pulse of 100 A is applied for 100 s to analyze the
voltage response of the battery cells. Due to the high current the results will be
influenced by the change of SOC, but as the batteries capacity is large this will not
be considered.
1.03 1.08
1.02 1.07
Voltage [p.u.]
Voltage [p.u.]
1.01 1.06
1 1.05
0.99 1.04
Figure 4.1: The measured voltage drop over a new and aged battery cell for a
constant current pulse of 100 A.
In this case the internal series resistance is increased with a factor of 2.5 to simu-
late an aged battery pack, which results in an increased initial voltage drop. The
simulation was performed at a temperature of 20 ◦ C, depending on the temperature
of the battery cells the internal resistance of the LIB will vary. This will also result
in a change of the voltage drop over the battery cell. When the series resistance is
changed the initial voltage drop will do the same. The time dependant change in
voltage during the current pulse depends on the RC-link which builds up a higher
voltage drop over its impedance over time. This looks the same for both plots, which
is as expected. When the current pulse is turned of the voltage will return to its
relaxed state where the new and aged cell remains at the same voltage.
35
4. Analysis
Table 4.1: Voltage drop comparison of new and aged battery cells during discharge
and charge.
In Table 4.1, it can be seen that the voltage drop and therefore also the impedance
of the battery depends on if it is charged or discharged. As both the initial and
dynamic voltage drop are lower during the discharge pulse compared to the charge
pulse, it indicates that the battery impedance is higher during charging. As the
battery ages the initial voltage drop will have a greater impact when a charging
current pulse is applied compared to a discharging current pulse. In this test case
the charge pulse results in a 10% increase in the initial voltage drop compared to
the discharge pulse.
1.03 1.06
1.025 1.055
1.02 1.05
Voltage [p.u.]
Voltage [p.u.]
1.015 1.045
1.01 1.04
1.005 1.035
Figure 4.2: The measured voltage drop over a new and aged battery cell for a
constant current pulse of 100 A.
As can be seen in Figure 4.2 the initial voltage drop is the same for the new and
aged cells as it only depends on the series resistance of the battery model. As the
current pulse test is performed for the new and aged cells at the same initial SOC
and temperature, the voltage should be the same before the current pulse is applied.
The dynamic voltage drop for the aged cells has a linear appearance compared to
the new cells. This is due to the time constant which is 50 times higher for the
36
4. Analysis
aged cells, so it will take much longer time for the voltage to reach steady-state. As
the resistance is 8.6 times higher, the voltage drop over the RC-link will be much
higher for the aged cell when it has reached steady-state. When the current pulse
is turned off the ohmic resistance voltage drop is similar as expected. When the
voltage slowly reaches the relaxed state of the cell it can be seen that it will take
much longer time for the aged cell to reach it.
Table 4.2: Voltage drop comparison of new and aged battery cells during discharge
and charge.
Initial voltage drop [p.u.] Dynamic voltage drop [p.u.]
New cell 0.0136 0.0131
Discharge pulse
Aged cell 0.0136 0.0064
New cell 0.0150 0.0144
Charge pulse
Aged cell 0.0150 0.0067
In the same manner as before, the voltage drop increases when a charging current
pulse is applied as seen in Table 4.2. After 100 s the dynamic voltage drop is higher
for the new cell compared to the aged cell due to the long time constant of the aged
battery.
1.03
1.02
1.02 1
Voltage [p.u.]
Voltage [p.u.]
0.98
1.01
0.96
1 0.94
0.92
0.99
New cell 0.9 New cell
Aged cell Aged cell
0.98 0.88
0 50 100 150 200 0 50 100 150 200
Time [s] Time [s]
Figure 4.3: The voltage drop over new and aged battery cells when a discharge
current pulse of 100 A is applied at different temperatures.
37
4. Analysis
In Figure 4.3b, the temperature is decreased to -10 ◦ C. As the battery cells imped-
ance is temperature dependent and especially sensitive to low temperatures, where
the resistance will increase exponentially with decreasing temperature, it is of in-
terest to perform tests at low temperatures. This will result in a larger voltage drop
difference between the new and aged cells. The voltage drop difference now becomes
0.0686 p.u. when the current pulse is applied and turned off. The voltage difference
have now increased with a factor of 3.3 compared to when the current pulse was
applied at 20 ◦ C and will increase even more if the temperature decreases.
1.03
1.02
Voltage [p.u.]
1.01
1
Mean cell
Highly degraded cell
0.99
0 50 100 150 200 250
Time [s]
Figure 4.4: The voltage drop over one highly degraded battery cell versus the
mean voltage drop over 24 logical battery cells when a discharge current pulse of
100 A is applied.
This difference may not be significant at these voltage levels. However if the SOC
of the battery is low then, as known from the OCV curve of Figure 2.7, even small
voltage drops across cells may have a big impact on the voltage of the cell. This
can in turn lead to the afflicted cell violating the safety limits prior to the rest of
the pack. In such a case the degraded cell will reduce the performance of the entire
pack.
38
4. Analysis
0.9
0.8
Voltage [p.u.]
0.7
0.6
0.5
0.4
0.3
0 10 20 30 40 50 60
Time [s]
Figure 4.5: The mean voltage drop of 24 logical battery cells when the voltage is
set to 39% of nominal voltage.
39
4. Analysis
1 1
20 oC
0.8 0.8 0 oC
-10 oC
Voltage [p.u.]
Voltage [p.u.]
0.6 0.6
0.4 0.4
20 oC
0.2 0.2
0 oC
-10 oC
0 0
0 100 200 300 400 500 600 0 100 200 300 400 500
Time [s] Time [s]
Figure 4.6: Voltage measurement for constant power request of 15% of maxiumum
specified power.
The reason for the difference in lowest voltage reached for different temperatures
is a sensing fault. As the lines show the average value of a total of 24 logical cells
and some cell sensors reads out as 0 V while a few seems to lock up at a previous
value. It is however most reasonable that all cells would reach 0 V in this kind of
tests. However, the measuring signals that reach 0 V seems to lose the measurement
completely and does not show any voltage, even after the contactors open. This
40
4. Analysis
would be an unlikely event for a LIB as there should be some OCV once the current
is interrupted and the voltage drop across the impedance disappears. This loss of
measurements also affect the new voltage after the contactors open, as the graphs
show the average.
Looking at the signals that show a voltage after the contactors have opened in-
dicates that the voltage starts relaxing as given by Table 4.3. From this it shows
that the OCV for the cells becomes lower the longer it takes to reach the limit and
open the contactors. This would be reasonable as the voltage drop is lower the
higher the temperature becomes, which allows the cells to discharge deeper before
the voltage across them reaches the limit.
Temperature [◦ C] -10 0 20
New cell [p.u.] 0.697 0.578 0.422
Degraded cell [p.u.] 0.947 0.889 0.656
As the internal resistance impacts how fast the voltage will decrease, a lower temper-
ature will affect the results in the same way as the comparison between the new and
aged battery pack. With decreased temperature the internal resistance will increase
inside the battery cells and result in a higher voltage drop. In Figure 4.6 it can be
seen that voltage decreases faster for the battery exposed to a colder climate.
As the battery cells voltage is decreasing and a constant power of 15% of max-
imum specified power is requested, it will lead to an increase in current, explained
in Section 2.2.4. Due to the increased current when the battery is fully drained,
seen in Figure 4.7, the voltage will decrease even faster as the voltage drop over
the internal resistance will increase and the OCV will decrease rapidly, much like a
feedback loop.
2.5 20 oC 2.5 20 oC
0 oC 0 oC
2 -10 oC 2 -10 oC
Current [C-rate]
Current [C-rate]
1.5 1.5
1 1
0.5 0.5
0 0
0 100 200 300 400 500 600 0 100 200 300 400 500
Time [s] Time [s]
Figure 4.7: Current measurement for constant discharge power request of 15% of
maximum specified power.
41
4. Analysis
1.26 1.4
20 oC
1.24 1.35 0 oC
-10 oC
Voltage [p.u.]
Voltage [p.u.]
1.22 1.3
1.2 1.25
1.18 1.2
20 oC
1.16 0 oC 1.15
-10 oC
1.14 1.1
0 100 200 300 400 0 50 100 150
Time [s] Time [s]
Figure 4.8: Voltage measurements for constant power charging of 33% of maximum
specified power.
42
4. Analysis
It should also be noted that the voltage at -10 ◦ C in Figure 4.8b seems to stay
constant just below 140% of nominal voltage. This is however due to the limitations
within the model as the look-up table for the OCV does not extend beyond 140%. It
is therefore not a typical characteristic of a LIB which would quickly reach beyond
this limit, similarly to the right hand side of the OCV curve in Figure 2.7.
Figure 4.9 compares the current in the new and aged battery pack for different
temperatures. As the voltage increases the current reduces in a rate of change
which correlates to the voltage. This however means that the current at -10 ◦ C has
some uncertainties as the voltage at that temperature is restricted within the model.
Apart from that uncertainty the graph shows that the charging at high SOC has no
significant impact on the currents in regards to the limits.
0 0
20 oC 20 oC
0 oC 0 oC
-10 oC -10 oC
Current [C-rate]
Current [C-rate]
-0.5 -0.5
-1 -1
-1.5 -1.5
0 100 200 300 400 0 50 100 150
Time [s] Time [s]
Figure 4.9: Current measurements for constant power charging of 33% of maximum
specified power.
The current levels reached at the critical voltage levels are not critically high. How-
ever as the current has a great impact at critical voltage levels regarding degradation
of the battery or the risk of a thermal runaway. The voltage levels and time intervals
reached for the aged battery pack is more reasonable to occur in reality compared to
the new battery pack. This is one of the reasons it might be a good idea to perform
tests of the BMS when the batteries characteristics are changed.
43
4. Analysis
The test case performed for one highly degraded logical battery cell is the same
as for the new and aged battery pack. It is of interest to see how low the voltage
over the highly degraded logical cell gets compared to the healthy logical cells. In
Figure 4.10 the results of the voltage drop can be seen for the mean of the logical
cells and for the highly degraded logical cell. As in previous tests it is performed
for different temperatures when a discharging power of 15% of maximum specified
power is requested.
0.8
Mean 20 oC
Voltage [p.u.]
Degraded 20 oC
Mean 0 oC
0.6
Degraded 0 oC
Mean -10 oC
Degraded -10 oC
0.4
0.2
0 200 400 600
Time [s]
Figure 4.10: The voltage drop over one highly degraded logical battery cell versus
the mean voltage drop over 24 logical cells when a power request of 15% of maximum
specified power is applied at 5% SOC.
The voltage over the highly degraded logical cell reaches the critical voltage levels
before the healthy logical cells, which becomes more apparent with lower temperat-
ures. The limit is reached faster in this test than for a pack of new cells but later
than for a pack of degraded cells. The voltage of the logical cell does not reach as
low voltages as for a full pack of aged cells. These results indicates that the degraded
logical cell would affect performance, which is anticipated, but the degraded logical
cell would not suffer the same abuse as the pack in Section [Link].
44
4. Analysis
When the upper critical voltage limit is tested for the highly degraded logical cell the
charging power is 33% of maximum specified power. As can be seen in Figure 4.11,
this results in a larger voltage drop. However, as seen in the results from Section
4.1.1 the internal resistance is higher during charging which also contributes to the
increased voltage drop. When the charging pulse is applied for the temperatures 0 ◦ C
and -10 ◦ C the voltage limit is reached instantaneously and therefore the contactors
opens at the same time. At -10 ◦ C the voltage for the highly degraded logical cell
reaches a maximum value of 139% of nominal voltage as this is the highest value of
the OCV look-up table deciding the voltage value from the SOC.
1.4
1.35
Mean 20 oC
Voltage [p.u.]
1.3
Degraded 20 oC
Mean 0 oC
1.25
Degraded 0 oC
Mean -10 oC
1.2
Degraded -10 oC
1.15
1.1
0 50 100 150
Time [s]
Figure 4.11: The voltage drop over one defect logical battery cell versus the mean
voltage drop over 24 logical cells when a power request of 33% of maximum specified
power is applied at 95% SOC.
Just like for the charging test of Section [Link], the voltage at -10 ◦ C for the de-
graded logical cell is not representative of how a physical cell would react. If the
same reasoning is applied, suggesting that the voltage would rapidly increase for the
degraded cell this might cause an internal short circuit. If that would be the case
then the cell would enter a thermal runaway which could be a dangerous situation.
The results thereby indicates that an overcharge has a potentially higher risk than
an overdischarge.
The current measured for the charge and discharge test at the upper and lower
SOC can be seen in Figure 4.12. The magnitude of the current does not differ signi-
ficantly, even though the battery is charged with 33% of maximum specified power
and discharged with 15%. The time the current is applied is significantly shorter
for the charge compared to the discharge, due to the increased voltage drop during
charging, as seen in Figure 4.11.
45
4. Analysis
1.5 0
20 oC 20 oC
0 oC 0 oC
-10 oC -10 oC
Current [C-rate]
Current [C-rate]
1 -0.5
0.5 -1
0 -1.5
0 100 200 300 400 500 600 0 50 100 150
Time [s] Time [s]
(a) Discharge of 15% of maximum spe- (b) Charge of 33% of maximum specified
cified power at 5% SOC. power at 95% SOC.
Figure 4.12: Current response for pack with one highly degraded logical cell.
The results show clearly that the system acts by opening the contactors even when
it is only one logical cell that exceeds the voltage limits, which is as intended.
However, it also shows that if one logical cell has some kind of fault that causes a
faster degradation this will affect the performance of the entire pack. This becomes
more evident with decreasing temperatures, as seen Figures 4.10 and 4.11, where the
difference in voltage between the average of the logical cells and the degraded logical
cell increases as the temperature decreases. Due to this it is important that functions
for detecting these kind of anomalies are implemented in the BMS as well, in order
to find the faults so that they may be addressed as soon as possible. However, such
functions does not fall within the test scope of this thesis. If functions that detect
faults does not operate correctly, the safety functions will still work according to the
results.
46
4. Analysis
7 7
6 6
5 5
Current [C-rate]
Current [C-rate]
4 4
3 3
2 2
20 oC
1 0 oC 1 20 oC
-10 oC 0 oC
0 0
0 50 100 150 200 250 300 350 -10 0 10 20 30 40 50
Time [s] Time [s]
The new battery is able to supply maximum specified power for 298 seconds at 20
◦
C before reaching the lower current limit. The contactors should open within a
specified time if the current remains over the limit for a duration of 5 s shorter than
the specified time. However for 0 ◦ C the current reaches the lower limit after 45 s
but continues to increase to the higher limit after 62 s. Once the current reaches the
higher limit then the contactors should open within a specified time shorter than
that of the lower current limit if the current is above the higher limit for a duration
of 5 s shorter than the specified time. For the aged cells the higher current limit
is reached instantly. In both these cases the BMS sends the request to open the
contactors in time, as seen by the current dropping to 0C.
47
4. Analysis
At -10 ◦ C the resistance has increased so much that the voltage drops to 0 instantly
when the current is applied. The contrasting behaviour of the current at -10 ◦ C
is due to the limitations within the model. The same is seen for the aged battery
at 0 ◦ C which is why the test was not performed at -10 ◦ C, as this would yield
the same results. Although an accurate current behaviour cannot be obtained it
is reasonable to assume that requesting maximum power from the battery at such
low temperatures would lead to severe degrading of the battery or even immediate
failure within the time window before the contactors open.
1.2 1.2
20 oC
1 1 0 oC
Voltage [p.u.]
Voltage [p.u.]
0.8 0.8
0.6 0.6
0.4 0.4
20 oC
0.2 0 oC 0.2
-10 oC
0 0
0 50 100 150 200 250 300 350 -10 0 10 20 30 40 50
Time [s] Time [s]
In Figure 4.14 the cell voltage drop is seen when maximum specified power is reques-
ted from the battery. The voltage drop is more significant at lower temperatures,
which leads to an increased current to meet the power demand. When the test was
performed for the aged battery pack at 0 ◦ C voltage drops to 0 V instantly after the
power request. The current is then set to a constant value of approximately 1.5C,
which in reality would have peaked in magnitude and then decreased as the battery
would not be able to deliver any power if the voltage is decreased to 0 V.
48
4. Analysis
In Figure 4.15 the automated test result can be seen in comparison to the manu-
ally performed test. The manual tests have been inserted into the graph of the
automated test, and then adjusted on the time axis so that the initial voltage drop
occurs at the same time. When the voltage drops down close to zero, the model
becomes unstable and the voltage starts to flicker. This varies randomly between
every test, thus it looks different between the manually and automated test. This
flickering behaviour is not of interest as it depends on the unstable model at low
voltages. The voltage response that is of interest is between the moment the SOC
is set to 5% until the voltage reaches zero. The conclusion that can be made is that
critical voltage levels are reached at the same time as for the manual tests.
1.2
0.8
Voltage [p.u.]
0.6
0.4
New 20 oC
Aged 20 oC
New 0 oC
0.2 Aged 0 oC
New -10 oC
Aged -10 oC
Automated
0
0 500 1000 1500 2000 2500
Time [s]
Figure 4.15: Comparison of the automated test against the manually performed
tests.
49
5
Validation
In this chapter the outcome of the analysis will be examined, i.e. if it provides
evidence that the safety is fulfilled. Are the safety goals achieved or are there safety
precautions that must be taken in order to ensure safe operation? This will be
discussed as well as suggestions for solutions.
The sensitive cases are mainly when the battery is at the ends of the SOC range
and a discharging or charging current is applied to an aged battery. The voltage can
in such cases, according to the simulation, reach extreme over or undervoltages in-
stantly. It should be considered that at a discharge, the cells reaches and maintains
0 V until the contactors open, which is reasonable in simulations. However for a
physical battery this would only be possible if the battery was short circuited, since
it cannot provide any power if the battery connection has no voltage, meaning that
50
5. Validation
it cannot provide the current needed for the substantial voltage drop. Even though
a physical cell may not maintain 0 V it is not unreasonable that it would operate
below the limit in which case the safety function would open the contactors.
In the opposite case, when the cells are overcharged and the voltage reaches the
upper limits, this could be seen as a more severe case since the current is supplied
from an external source. In such cases the aged battery could reach voltages greater
than shown in simulations. This is due to the measurements reaching a limit within
the model that a physical cell would not have. The battery pack could therefore, in
a real case, experience voltages that may cause immediate damage.
Looking at the case when a single logical cell is degraded, the simulations show
that the system is less sensitive to discharging at low SOCs since the degraded cell
only reaches voltages just below the safety limit. This can be put in comparison to
the entire pack being aged where the cell voltages quickly reaches 0 V. The differ-
ence is explained by the voltage of the pack being much lower for a complete, aged
pack which increases the current. If only one of the logical cells is degraded then
the voltage across the pack will remain close to normal operations and the current
will not increase rapidly, which would cause the voltage drop to increase. Since the
BMS acknowledges the divergent voltage of the degraded logical cell and opens the
contactors, the cell will not be exposed to such low voltages as for a complete pack
that is aged.
As discussed in the analysis of Section [Link] the charging of a pack with one
degraded logical cell at lower temperatures may be associated with a higher risk.
As the simulation hits the model limit for the degraded cell at -10 ◦ C it is hard to
confirm the exact behaviour of the voltage. However the test verifies that the safety
function works since the contactors open within the same time as for the remainder
of the tests.
As described in Section 3.4 there are requirements on safety functions that should
restrict the operation of the battery if certain limits are reached. These limits are
within the critical safety limits and should for overcharge communicate to other
ECUs to stop charging. For overdischarge it should communicate a limitation in
the amount of power that can be discharged, set to 15% of the maximum specified
power. However, as tests have proven, this limit might be too high if the temperat-
ure is low for new batteries, and for degraded cells, this effect will be even greater.
Looking at the current measurement when the maximum specified power is re-
quested from the battery it shows that the safety functions act according to the
requirements for both cases at 20 ◦ C and for the new battery at 0 ◦ C. The system
detects the current reaching both the lower and higher current limits and opens the
contactors accordingly. There are however issues for the new cell at -10 ◦ C and the
degraded cell at 0 ◦ C and below, as the model cannot simulate the battery behaviour
correctly. In these cases the voltage in the model reaches 0 V leading to currents
that are below the limit, hence the contactors are opened due to the low voltage.
51
5. Validation
Considering the voltage levels that are reached when the voltage is beyond the crit-
ical safety limit and when the contactors opens after approximately 30 seconds, the
safety goals may be violated. It is unsure what the effects on the battery will be
exactly when it is exposed to the critical voltages for this amount of time. The
effects depend on the time duration as well as current rates.
For the overcharge test the voltage reaches beyond 123.6% of nominal voltage for
a new battery pack at -10 ◦ C and for the aged battery pack at the temperatures 0
and -10 ◦ C, before the contactors opens. The duration above this limit is approx-
imately 30 seconds for each of these tests with a current above 0.83C. For lithium
cobolt oxide (LCO) LIBs a thermal runaway can occur if the voltage is above 4.5
V, which is above the limits, and the current rate is greater then 2C [16]. There is
still a chance that a thermal runaway may occur even though a current rate of 2C is
not reached. The functional safety requirement should avoid unreasonable risks for
hazardous events according to ISO 26262-3:2018 [Link], which in this case might
not be sufficient when allowing the overvoltage for this duration.
The degradation of the battery drastically increase above 4.2 V, which degrades
both the capacity and thermal stability. This is also a safety issue as the degrad-
ation can eventually lead to an internal fault in the battery cell, due to lithium
plating. A degradation mode will avoid the system to operate for too long at crit-
ical overvoltages by inhibiting the system from charging the battery. If the voltage
still have not reached normal operation, the battery will be disconnected. This
safety function also prevents the voltage from reaching the disconnection level. If
the degradation safety function would be considered in the tests performed, the
voltage would not be as critical for some of the tests. For some of the overcharge
tests the disconnection overvoltage level is reached instantly when a current pulse
is applied, then the degradation mode will not be of any help.
Deeply discharging the battery is not as critical from a safety point of view compared
to overcharging. It will not lead to a dangerous event instantly, but the degradation
of the battery cell can be severe and lead to an internal short circuit in the future.
This is due to anodic dissolution of the copper current collector when the voltage
of a battery cell is below 1.5 V, which in turn will build up dendrites [16]. The
duration of operating below this voltage, as well as current rate, will impact the
degradation. As the system requests a constant power, the current will increase as
the voltage drops, leading to high currents at critically low voltages, which leads to
even faster degradation.
Depending on the type of internal short circuit that occurs, it may lead to a thermal
event. As this is a safety issue, it is important to avoid discharging the battery
deeply. By setting appropriate limits and allowed time outside the normal opera-
tion window this can be prevented. The battery cells that are deeply discharged
may also fail in operation immediately due to other reasons then copper current
52
5. Validation
collector dissolution. As the voltage in LIBs drop fast when they are close to fully
discharged, it is hard to set a critical safety limit. If the discharge power is not
restricted drastically, the lower voltage limit will be reached instantly if the battery
is aged, in the same way as was seen for overcharging.
The overcharge and overdischarge tests performed for the battery pack with a highly
degraded logical cell behave similarly as the tests performed for a new and aged bat-
tery pack. The highly degraded logical cell exceeds the voltage limits, meanwhile the
rest of the battery cells in the pack are within the operational window. In order to
prevent this it is important that the BMS consider all logical cell voltages. But as a
voltage sensor might have a fault, it may show an incorrect value of the battery cell
voltage. Therefore it might not be possible to consider each logical cell voltage as
the BMS would see each sensor fault as an electrical fault. This is of course a safety
issue which is difficult to handle where a compromised solution must be found.
If the ASIL for the cell voltage monitoring is classified to a high level it is con-
sidered to be appropriate to perform the tests when the battery pack is degraded.
As it is unavoidable that the battery will age with time the probability of exposure
is high. But the critical safety limits are simply controllable and the ASIL level
that is already defined for the safety function is considered to be sufficient. When
it comes to a highly degraded battery cell in the battery pack, the controllability is
more difficult, but the probability is very low that a logical cell would degrade so
that the impedance difference is as great as investigated.
53
5. Validation
As the functionality of the safety function can be tested simply by overriding sig-
nals, it can be seen as unnecessary to perform the stress test as it is much more time
consuming. However, if the tests are implemented in automated testing scripts, the
time of performing these tests will not be of any concern. It proves the functionality
with a different test method, which ensures robustness of the system and provides
an insight into how the system behaves in reality. The critical voltages and currents
should be evaluated to check if they are acceptable. A protocol which determines
the safety risk depending on which voltage levels that are reached could be of use
for the evaluation.
54
5. Validation
As mentioned in Section 5.2, due to a faulty voltage sensor this voltage difference
can be hard to evaluate. But if it is possible to detect that the voltage sensor is not
working properly, for example that it is set constant, this requirement could be of
use.
55
6
Conclusion
The purpose of this thesis has been to evaluate the current safety goals and require-
ments using the ISO 26262 standard. From this evaluation new tests are derived
that could provide a better test coverage or a new approach to testing. As batteries
are a new area of technology for car manufacturers, and ageing of batteries is not
fully investigated, this was selected as an operational use case which would be of
interest to perform further testing on. As the standard recommends that safety
goals are validated when taking variance in operation into consideration, the choice
of an aged battery was supported by the standard.
The tests performed for this thesis show that the safety goals where compromised
with the early version of the software that was available. The parameters of that
software were temporary and with the correct parameters that was implemented
in the subsequent software, the safety goals are considered to be fulfilled. It can
however not be confirmed beyond reasonable doubt. This is because of the over and
undervoltages that are reached in testing and the unknown effects that these will
have on the battery.
In order to increase the safety and reduce the risk of damaging the battery cells
it is suggested that the voltage and current limits, as well as safety related power
limits, are adapted to the SOH of the cells. It is also proposed that stress tests
like those performed in this thesis is implemented in the acceptance test. This is to
verify that the battery is not subjected to any unnecessary risk and to expand the
coverage of the testing.
56
6. Conclusion
Another topic is how the circulating currents would appear in a logical cell where
one cell is more degraded than the others, which indirectly compromises the safety.
A report was found which looked into this topic performing this analysis through
simulations [19]. It could be of interest to perform this on physical batteries where
the voltage is measured over each cell and the currents measured in each branch. A
long term test could be performed to see how fast the healthy cells will degrade and
a short term to see how the current is distributed in the parallel connection.
The power requested when testing the voltage window for the lower voltage limit,
was the maximum discharge power when in degradation mode. Similarly, the power
injected for the upper voltage limit, was the maximum regeneration power. For the
analysis of the current limit, the power request was set to the maximum output
power of the vehicle. To improve the test case the power input and output from
a drive cycle could be used to analyze the impact on the voltage and current in a
more realistic scenario.
57
6. Conclusion
58
Bibliography
[1] A. Emadi, Y. Gao and M. Ehsan, Modern Electric, Hybrid Electric, and Fuel
Cell Vehicles, ser. Power Electronics and Applications Series. Boca Raton,
FL, USA: Taylor & Francis, 2010, vol. 6. [Online]. Available: [Link]
[Link]/books/9781420054002 (visited on 24/01/2019).
[2] H. Berg, Batteries for Electric Vehicles - Materials and Electrochemistry. Cam-
bridge, United Kingdom: Cambridge University Press, 2015.
[3] M. Broy, “Challenges in automotive software engineering”, in Proceeding of
the 28th international conference on Software engineering - ICSE ’06, New
York, USA: ACM Press, 2006, p. 33. [Online]. Available: http : / / portal .
[Link]/[Link]?doid=1134285.1134292 (visited on 24/01/2019).
[4] K. Grimm, “Software technology in an automotive company: major chal-
lenges”, in Proceedings of the 25th International Conference on Software En-
gineering, Institute of Electrical and Electronics Engineers, 2003, p. 833. [On-
line]. Available: [Link] (visited on
24/01/2019).
[5] Volvo Car Group, “VOLVO CAR GROUP ANNUAL REPORT 2018”, Volvo
Car Group, Gothenburg, Tech. Rep., 2019, p. 167. [Online]. Available: https:
//[Link]/annualreport2018/res/pdf/VCG_AR_2018_
ENG_20190325_hi-[Link] (visited on 02/05/2019).
[6] S. Bigouette, Where does Volvo’s reputation for safety come from?, 2019. [On-
line]. Available: [Link]
for-safety-come-from/ (visited on 02/05/2019).
[7] M. Heusser and G. Kulkarni, How to Reduce the Cost of Software Testing, 1st.
Boca Raton, FL, USA: CRC Press, 2012, p. 312. [Online]. Available: https:
/ / books . google . se / books ? id = 56t - DwAAQBAJ & printsec = frontcover &
dq=How+to+Reduce+the+Cost+of+Software+Testing&hl=sv&sa=X&ved=
0ahUKEwjR0bKp-ZriAhUh_SoKHfmpDtQQ6AEIKTAA#v=onepage&q=How%20to%
20Reduce%20the%20Cost%20of%20Software%20Testing&f=false (visited
on 03/05/2019).
[8] R. Faria, P. Moura, J. Delgado and A. T. de Almeida, “A sustainability as-
sessment of electric vehicles as a personal mobility system”, in Energy Conver-
sion and Management, vol. 61, Pergamon, 2012, pp. 19–30. [Online]. Available:
[Link]
(visited on 02/05/2019).
[9] T. Lipman and M. Delucchi, “Expected Greenhouse Gas Emission Reduc-
tions by Battery, Fuel Cell, and Plug-In Hybrid Electric Vehicles”, in Electric
and hybrid vehicles : power sources, models, sustainability, infrastructure and
59
Bibliography
the market, P. Gianfranco, Ed., Berkeley: Elsevier, 2010, ch. 5, p. 652. [On-
line]. Available: [Link]
Expected _ Greenhouse _ Gas _ Emission _ Reductions _ by _ Battery _ Fuel _
Cell_and_Plug-In_Hybrid_Electric_Vehicles (visited on 02/05/2019).
[10] J. Groot, “State-of-Health Estimation of Li-ion Batteries: Ageing Models”,
PhD thesis, Chalmers, 2014, p. 99. [Online]. Available: [Link]
lib . chalmers . se / records / fulltext / 205605 / 205605 . pdf (visited on
20/03/2019).
[11] W. Waag, S. Käbitz and D. U. Sauer, “Experimental investigation of the
lithium-ion battery impedance characteristic at various conditions and aging
states and its influence on the application”, Applied Energy, vol. 102, pp. 885–
897, 2013. [Online]. Available: [Link]
article/pii/S030626191200671X (visited on 28/02/2019).
[12] S. Skoog and S. David, “Parameterization of linear equivalent circuit mod-
els over wide temperature and SOC spans for automotive lithium-ion cells
using electrochemical impedance spectroscopy”, Journal of Energy Storage,
vol. 14, pp. 39–48, 2017. [Online]. Available: [Link]
com/science/article/pii/S2352152X16301906?via\%3Dihub (visited on
09/04/2019).
[13] Klett Matilda, “Electrochemical Studies of Aging in Lithium-Ion Batteries”,
PhD thesis, Department of Chemical Engineering and Technology, KTH Royal
Institute of Technology, Stockholm, Sweden, 2014. [Online]. Available: http:
/ / www . diva - portal . org / smash / get / diva2 : 715990 / FULLTEXT01 . pdf
(visited on 27/03/2019).
[14] Q. Liu et al., “Understanding undesirable anode lithium plating issues in
lithium-ion batteries”, RSC Advances, vol. 6, no. 91, pp. 88 683–88 700, 2016.
[Online]. Available: [Link] (visited on
11/03/2019).
[15] V. Agubra and J. Fergus, “Lithium Ion Battery Anode Aging Mechanisms”,
Materials, vol. 6, no. 4, pp. 1310–1325, 2013. [Online]. Available: [Link]
[Link]/1996-1944/6/4/1310 (visited on 28/03/2019).
[16] H. Maleki and J. N. Howard, “Effects of overdischarge on performance and
thermal stability of a Li-ion cell”, Journal of Power Sources, vol. 160, no. 2
SPEC. ISS. Pp. 1395–1402, 2006. [Online]. Available: [Link]
com/science/article/abs/pii/S0378775306004277 (visited on 10/03/2019).
[17] J. Vetter et al, “Ageing mechanisms in lithium-ion batteries”, Journal of Power
Sources, vol. 147, no. 1-2, pp. 269–281, 2005. [Online]. Available: [Link]
[Link]/science/article/pii/S0378775305000832 (visited on
27/03/2019).
[18] T. Volck et al., “Method for Determination of the Internal Short Resistance
and Heat Evolution at Different Mechanical Loads of a Lithium Ion Battery
Cell Based on Dummy Pouch Cells”, Batteries, vol. 2, no. 2, p. 8, 2016. [On-
line]. Available: [Link]
Method_for_Determination_of_the_Internal_Short_Resistance_and_
Heat_Evolution_at_Different_Mechanical_Loads_of_a_Lithium_Ion_
Battery_Cell_Based_on_Dummy_Pouch_Cells (visited on 10/03/2019).
60
Bibliography
61
Bibliography
62
Appendices
I
II
A. Hazard and risk analysis flow chart
A
Hazard and risk analysis flow chart
Figure A.1: Part of the requirement model with dependencies for the BMS. III