﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
4238	OMEdit shows strange behavior when loading system libraries automatically	Rüdiger Franke	Adrian Pop	"OMEdit ships with numerous so called System Libraries. They are currently loaded when invoking ""Check Model"". A couple of problems show up. This is why the automatic loading should happen earlier, e.g. when a model is loaded.

See the attached file `ControlledMixingUnit2.mo`. 
So far OMEdit just reports upon file open:
{{{
[1] 13:34:35 Übersetzung Fehler
[ControlledMixingUnit2: 3:3-4:50]: Klasse Modelica_Synchronous.Examples.Systems.ControlledMixingUnit konnte nicht im Geltungsbereich von <global scope> gefunden werden.
}}}

Check model reports:
{{{
[1] 13:43:56 Skripting Meldung
Automatically loaded package Modelica_Synchronous 0.92.1 due to uses annotation.

[2] 13:43:57 Skripting Fehler
Unable to find component feedback.y while parsing connection {feedback.y,gain.u, """"}.

[3] 13:43:57 Skripting Fehler
Unable to find component gain.y while parsing connection {gain.y,add.u2, """"}.

[4] 13:43:57 Skripting Fehler
Unable to find component inverseBlockConstraints.y2 while parsing connection {inverseBlockConstraints.y2,invMixingUnit.T_c, """"}.

[5] 13:43:57 Skripting Fehler
Unable to find component invMixingUnit.c while parsing connection {invMixingUnit.c,inverseBlockConstraints.u2, """"}.

[6] 13:43:57 Skripting Fehler
Unable to find component invMixingUnit.T while parsing connection {invMixingUnit.T,feedback.u1, """"}.

[7] 13:43:57 Skripting Fehler
Unable to find component filter.y while parsing connection {filter.y,inverseBlockConstraints.u1, """"}.

[8] 13:43:57 Skripting Fehler
Unable to find component hold1.y while parsing connection {hold1.y,mixingUnit.T_c, """"}.

[9] 13:43:57 Skripting Fehler
Unable to find component add.y while parsing connection {add.y,hold1.u, """"}.

[10] 13:43:57 Skripting Fehler
Unable to find component sample1.u while parsing connection {sample1.u,mixingUnit.T, """"}.

[11] 13:43:57 Skripting Fehler
Unable to find component sample1.y while parsing connection {sample1.y,feedback.u2, """"}.

[12] 13:43:57 Skripting Fehler
Unable to find component inverseBlockConstraints.y1 while parsing connection {inverseBlockConstraints.y1,add.u1, """"}.

[13] 13:43:57 Skripting Fehler
Unable to find component sample2.u while parsing connection {sample2.u,step.y, """"}.

[14] 13:43:57 Skripting Fehler
Unable to find component filter.u while parsing connection {filter.u,sample2.y, """"}.

[15] 13:43:57 Skripting Fehler
Unable to find component periodicClock1.y while parsing connection {periodicClock1.y,sample2.clock, """"}.

[16] 13:43:57 Skripting Meldung
Check of ControlledMixingUnit2 completed successfully.
}}}

Simulation works afterwards. The model graphics remains wrong though.

"	defect	assigned	high		Interactive Environment	v1.11.0			Martin Sjölund
