This issue is to report a problem recently discovered, where if a Modelica model is compiled and used for compilation of an optimization problem with the objective class EnergyCostMin, and then that same model object is used to try compiling the optimization problem again, with objective class EnergyCostMin, then the following compilation errors are received:
Error: in file '/home/dhbubu/git/cerc/cerc-mpc-demo-59/models/Building59.mop':
Semantic error at line 6625, column 32:
Cannot find class or component declaration for pi_e
Error: in file '/home/dhbubu/git/cerc/cerc-mpc-demo-59/models/Building59.mop':
Semantic error at line 6625, column 36:
Duplicate component in same class: input Real pi_e