﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
6133	OMEdit doesn't load a library if just the version is different; no error, no warning	Rüdiger Franke	Adeel Asghar	"The below model is a duplicate of `PowerSystems.Examples.Introductory.Units`. It states `uses(PowerSystems(version = ""0.9.0""))`. OMEdit raises a notification:
{{{
[1] 11:22:07 Skripting Meldung
Skipped loading package PowerSystems (0.9.0) using MODELICAPATH C:/Program Files (x86)/OpenModelica1.16.0-dev-32bit/lib/omlibrary (uses-annotation may be wrong).
}}}
This should at least be a warning, if not an error as the model will not work.
Better: OMEdit should load the bundled PowerSystems 1.0.0 and raise a warning about the version discrepancy.
Btw: once PowerSystems has been loaded, the model checks successfully but it raises a strange error when attempting to simulate it !?

{{{#!mo
model LoadLibrary ""Duplicate from PowerSystems.Examples.Introductory.Units""

  inner PowerSystems.System system(refType=PowerSystems.Types.ReferenceFrame.Inertial)
    annotation (Placement(transformation(extent={{-100,80},{-80,100}})));
  PowerSystems.AC3ph.Sources.Voltage voltage_SI(
    v0=408)
         annotation (Placement(transformation(extent={{-60,20},{-40,40}})));
  PowerSystems.AC3ph.Nodes.GroundOne grdV1
                              annotation (Placement(transformation(extent={{
            -70,20},{-90,40}})));
  PowerSystems.AC3ph.Sources.Voltage voltage_pu(
    V_nom=400,
    v0=1.02)
         annotation (Placement(transformation(extent={{-60,-40},{-40,-20}})));
  PowerSystems.AC3ph.Nodes.GroundOne grdV2
                              annotation (Placement(transformation(extent={{
            -70,-40},{-90,-20}})));
  PowerSystems.AC3ph.Sensors.PVImeter meter_SI
  annotation (Placement(transformation(extent={{-20,20},{0,40}})));
  PowerSystems.AC3ph.Sensors.PVImeter meter_pu(
    V_nom=400,
    S_nom=10e3)
  annotation (Placement(transformation(extent={{-20,-40},{0,-20}})));
  PowerSystems.AC3ph.Impedances.Resistor load_SI(
    r=20)
    annotation (Placement(transformation(extent={{20,20},{40,40}})));
  PowerSystems.AC3ph.Impedances.Resistor load_pu(
    V_nom=400,
    S_nom=10e3,
    r=1.25)
   annotation (Placement(transformation(extent={{20,-40},{40,-20}})));
  PowerSystems.AC3ph.Nodes.Ground grd1           annotation (Placement(
        transformation(extent={{50,20},{70,40}})));
  PowerSystems.AC3ph.Nodes.Ground grd2           annotation (Placement(
        transformation(extent={{50,-40},{70,-20}})));
equation
  connect(voltage_SI.term, meter_SI.term_p) annotation (Line(points={{-40,30},
          {-20,30}}, color={0,130,175}));
  connect(meter_SI.term_n, load_SI.term_p) annotation (Line(points={{0,30},{
          20,30}}, color={0,130,175}));
  connect(load_SI.term_n, grd1.term) annotation (Line(points={{40,30},{50,30}},
        color={0,130,175}));
  connect(voltage_pu.term, meter_pu.term_p) annotation (Line(points={{-40,-30},
          {-20,-30}}, color={0,130,175}));
  connect(meter_pu.term_n, load_pu.term_p) annotation (Line(points={{0,-30},{
          20,-30}}, color={0,130,175}));
  connect(load_pu.term_n, grd2.term) annotation (Line(points={{40,-30},{50,
          -30}}, color={0,130,175}));
  connect(grdV1.term, voltage_SI.neutral)
    annotation (Line(points={{-70,30},{-60,30}}, color={0,0,255}));
  connect(grdV2.term, voltage_pu.neutral) annotation (Line(points={{-70,-30},
          {-60,-30}}, color={0,0,255}));
annotation(
    experiment(StopTime = 0.1),
    uses(PowerSystems(version = ""0.9.0"")));
end LoadLibrary;
}}}"	defect	closed	high	1.16.0	OMEdit	v1.16.0-dev	fixed		
