diff --git a/Compiler/SimCode/SimCode.mo b/Compiler/SimCode/SimCode.mo index a965136843a..5ea9ed6c7a9 100644 --- a/Compiler/SimCode/SimCode.mo +++ b/Compiler/SimCode/SimCode.mo @@ -207,7 +207,6 @@ uniontype ModelInfo "Container for metadata about a Modelica model." list functions; list labels; //Files files "all the files from SourceInfo and DAE.ELementSource"; - Integer maxDer "the highest derivative in the model"; Integer nClocks; Integer nSubClocks; Boolean hasLargeLinearEquationSystems; // True if model has large linear eq. systems that are crucial for performance. diff --git a/Compiler/SimCode/SimCodeUtil.mo b/Compiler/SimCode/SimCodeUtil.mo index 503ffa84803..d18cb097219 100644 --- a/Compiler/SimCode/SimCodeUtil.mo +++ b/Compiler/SimCode/SimCodeUtil.mo @@ -5759,7 +5759,6 @@ protected SimCodeVar.SimVars vars; Integer nx, ny, ndy, np, na, next, numOutVars, numInVars, ny_int, np_int, na_int, ny_bool, np_bool, dim_1, dim_2, numOptimizeConstraints, numOptimizeFinalConstraints; Integer na_bool, ny_string, np_string, na_string; - Integer maxDer; list states1, states_lst, states_lst2, der_states_lst; list states_2, derivatives_2; Boolean hasLargeEqSystems; @@ -5795,12 +5794,11 @@ algorithm ny_int, np_int, na_int, ny_bool, np_bool, na_bool, ny_string, np_string, na_string, numStateSets, numOptimizeConstraints, numOptimizeFinalConstraints); if debug then execStat("simCode: createVarInfo"); end if; - maxDer := getHighestDerivation(dlow); if debug then execStat("simCode: getHighestDerivation"); end if; hasLargeEqSystems := hasLargeEquationSystems(dlow, inInitDAE); if debug then execStat("simCode: hasLargeEquationSystems"); end if; modelInfo := SimCode.MODELINFO(class_, dlow.shared.info.description, directory, varInfo, vars, functions, - labels, maxDer, arrayLength(dlow.shared.partitionsInfo.basePartitions), + labels, arrayLength(dlow.shared.partitionsInfo.basePartitions), arrayLength(dlow.shared.partitionsInfo.subPartitions), hasLargeEqSystems); else Error.addInternalError("createModelInfo failed", sourceInfo()); @@ -9395,12 +9393,12 @@ protected SimCodeVar.SimVars vars; list functions; list labels; - Integer maxDer, nClocks, nSubClocks; + Integer nClocks, nSubClocks; Boolean hasLargeLinearEquationSystems; algorithm if not Config.acceptMetaModelicaGrammar() then modelInfo := outSimCode.modelInfo; - SimCode.MODELINFO(name, description, directory, varInfo, vars, functions, labels, maxDer, nClocks, nSubClocks, hasLargeLinearEquationSystems) := modelInfo; + SimCode.MODELINFO(name, description, directory, varInfo, vars, functions, labels, nClocks, nSubClocks, hasLargeLinearEquationSystems) := modelInfo; files := getFilesFromSimVars(vars, files); files := getFilesFromFunctions(functions, files); files := getFilesFromSimEqSystems( outSimCode.allEquations :: outSimCode.startValueEquations :: outSimCode.nominalValueEquations @@ -9411,7 +9409,7 @@ algorithm files := getFilesFromExtObjInfo(outSimCode.extObjInfo, files); files := getFilesFromJacobianMatrixes(outSimCode.jacobianMatrixes, files); files := List.sort(files, greaterFileInfo); - modelInfo := SimCode.MODELINFO(name, description, directory, varInfo, vars, functions, labels, maxDer, nClocks, nSubClocks, hasLargeLinearEquationSystems); + modelInfo := SimCode.MODELINFO(name, description, directory, varInfo, vars, functions, labels, nClocks, nSubClocks, hasLargeLinearEquationSystems); outSimCode.modelInfo := modelInfo; end if; end collectAllFiles; diff --git a/Compiler/Template/SimCodeTV.mo b/Compiler/Template/SimCodeTV.mo index 67b6cec20c6..ddf02aa504c 100644 --- a/Compiler/Template/SimCodeTV.mo +++ b/Compiler/Template/SimCodeTV.mo @@ -570,7 +570,6 @@ package SimCode SimCodeVar.SimVars vars; list functions; list labels; - Integer maxDer; Integer nClocks; Integer nSubClocks; end MODELINFO;