@@ -4302,7 +4302,7 @@ algorithm
43024302 eqn = BackendEquation.equationNth1(eqns, eqnindx);
43034303 // generate comp
43044304 comp = createTornSystemOtherEqns1(eqn, eqnindx, vars);
4305- (simequations, _, uniqueEqIndex, tempvars) = createEquations(false , false, true, skipDiscInAlgorithm, isyst, ishared, {comp}, iuniqueEqIndex, itempvars);
4305+ (simequations, _, uniqueEqIndex, tempvars) = createEquations(true , false, true, skipDiscInAlgorithm, isyst, ishared, {comp}, iuniqueEqIndex, itempvars);
43064306 simequations = listAppend(isimequations, simequations);
43074307 // generade other equations
43084308 (simequations, uniqueEqIndex, tempvars) = createTornSystemOtherEqns(rest, skipDiscInAlgorithm, isyst, ishared, uniqueEqIndex, tempvars, simequations);
@@ -4340,6 +4340,10 @@ algorithm
43404340 case (BackendDAE.COMPLEX_EQUATION(), _, _)
43414341 then
43424342 BackendDAE.SINGLECOMPLEXEQUATION(eqnindx, varindx);
4343+ case (BackendDAE.WHEN_EQUATION(size=_), _, _)
4344+ then
4345+ BackendDAE.SINGLEWHENEQUATION(eqnindx, varindx);
4346+
43434347 else
43444348 equation
43454349 print("SimCodeUtil.createTornSystemOtherEqns1 failed for\n");
0 commit comments