Skip to content

Commit

Permalink
- do *NOT* add the instantiated class to the symboltable because we will
Browse files Browse the repository at this point in the history
  run out of memory if we have a script in which we instantiate really big 
  models one after another!


git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@16396 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
adrpo committed Jun 19, 2013
1 parent 6dd7110 commit 751d7e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Compiler/Script/CevalScript.mo
Original file line number Diff line number Diff line change
Expand Up @@ -3087,8 +3087,8 @@ algorithm
//print("\nInst.instantiateClass: " +& realString(System.getTimerIntervalTime()));

// adrpo: do not add it to the instantiated classes, it just consumes memory for nothing.
// ic_1 = ic;
ic_1 = Interactive.addInstantiatedClass(ic, Interactive.INSTCLASS(className,dae,env));
ic_1 = ic;
// ic_1 = Interactive.addInstantiatedClass(ic, Interactive.INSTCLASS(className,dae,env));

/*(cache, genv) = Builtin.initialGraphEnv(cache);
(genv as FGraphEnv.ENV(graph = g, builtinMark = bm))= FGraphEnv.extendEnvWithProgram(scodeP, FNode.topNodeId, genv);
Expand Down

0 comments on commit 751d7e0

Please sign in to comment.