@@ -3840,7 +3840,7 @@ algorithm
38403840 (oStateSets, outB, oStatesetrepl) := match(iStateSets, iStatesetrepl, vars, aliasVars, iAcc, inB)
38413841 local
38423842 BackendDAE . StateSets stateSets;
3843- Integer rang;
3843+ Integer index, rang;
38443844 list< DAE . ComponentRef > states;
38453845 DAE . ComponentRef crA, crJ;
38463846 list< BackendDAE . Var > varA, statescandidates, ovars, varJ;
@@ -3850,7 +3850,7 @@ algorithm
38503850 Boolean b, b1;
38513851 BackendDAE . Jacobian jac;
38523852 case ({}, _, _, _, _, _) then (listReverse(iAcc), inB, iStatesetrepl);
3853- case (BackendDAE . STATESET (rang, states, crA, varA, statescandidates, ovars, eqns, oeqns, crJ, varJ, jac)::stateSets, _, _, _, _, _)
3853+ case (BackendDAE . STATESET (index, rang, states, crA, varA, statescandidates, ovars, eqns, oeqns, crJ, varJ, jac)::stateSets, _, _, _, _, _)
38543854 equation
38553855 repl = getAliasReplacements(iStatesetrepl, aliasVars);
38563856 // do not replace the set variables
@@ -3861,7 +3861,7 @@ algorithm
38613861 (oeqns, b1) = BackendVarTransform . replaceEquations(oeqns, repl, SOME (BackendVarTransform . skipPreChangeEdgeOperator));
38623862 oeqns = List . fold(oeqns, removeEqualLshRshEqns, {});
38633863 oeqns = listReverse(oeqns);
3864- (stateSets, b, oStatesetrepl) = removeAliasVarsStateSets(stateSets, SOME (repl), vars, aliasVars, BackendDAE . STATESET (rang, states, crA, varA, statescandidates, ovars, eqns, oeqns, crJ, varJ, jac)::iAcc, b or b1);
3864+ (stateSets, b, oStatesetrepl) = removeAliasVarsStateSets(stateSets, SOME (repl), vars, aliasVars, BackendDAE . STATESET (index, rang, states, crA, varA, statescandidates, ovars, eqns, oeqns, crJ, varJ, jac)::iAcc, b or b1);
38653865 then
38663866 (stateSets, b, oStatesetrepl);
38673867 end match;
0 commit comments