﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
6198	Index reduction issue in Buildings: the backend tries to differentiate a discontinuous expression	Francesco Casella	Karim Adbdelhak	"Please check [https://libraries.openmodelica.org/branches/master/Buildings_7.0.0/files/Buildings_7.0.0_Buildings.Examples.ChillerPlant.DataCenterRenewables.err Buildings.Examples.ChillerPlant.DataCenterRenewables]. The backend fails with
{{{
[/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/Differentiate.mo:265:5-265:157:writable]
Error: Derivative of expression ""bat.P = if con.multiSwitch1.firstActiveIndex == 0 then con.multiSwitch1.y_default else con.multiSwitch1.expr[con.multiSwitch1.firstActiveIndex]""
w.r.t. ""time"" is non-existent.
}}}
I'm not sure why the backend tries to differentiate that expression. Dymola and JModelica compile the model without any problem."	defect	closed	critical	1.18.0	Backend		fixed		Andreas Heuermann
