CPU utilization doesn't go up when a clip ends (in fact a lower CPU usage is expected).
in CasparCG 2.2 on Ubuntu, when a clip plays out until its end an entire cpu core goes up to 100% the exact moment the clip ends. In htop it looks like this:

When enough layers are occupied by ended clips the entire CPU maxes out:

CPU goes back down when you give an explicit STOP or CLEAR command on the layer where an ended clip is present.
It is the same on Windows with the difference that cores aren't occupied so drastically. However, a significant increase in CPU usage can be observed in the task manager for each clip that ends.
On both our Ubuntu and Windows test system it takes about eight ended clips to max out the entire CPU (while playing the load is about 30%)
CLEAR or STOP on the respective layers will bring CPU utilization back down.The process is the same on Windows except that the CPU increase observed in the task manager is more gradual and distributed over separate cores.
Issue is observed on both an ubuntu and a windows 7 system:
System 1
CasparCG Server version:
2.2.0 727542fc4 Beta 9
video-mode 1080i5000
Operating system:
Ubuntu 18.04
Graphics driver:
Nvidia 390.42 (for GTX1050)
Decklink drivers:
Blackmagic Design BlackmagicIO driver 10.10a3
System 2
CasparCG Server version:
2.2.0 727542fc Beta 9
video-mode 1080i5000
Operating system:
Win 7 x64
Graphics driver:
Nvidia 391.01 (for GTX660)
Decklink drivers:
none
Playing back 10 AMB clips simultaneously on a Windows machine I observed a jump in CPU from 45% playing back to 80% with ended clips. This jump did not occur when playing back a looping clip, and it also did not occur when pausing the layer.
Clearing the entire channel fixes the CPU usage as well.
Fixed in master