diff -ur "/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/Control/Modulation.mo" "converted-libraries/.openmodelica/libraries/PowerSystems 1.0.0/Control/Modulation.mo"
--- "/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/Control/Modulation.mo"	2022-03-10 09:57:38.312144166 +0000
+++ "converted-libraries/.openmodelica/libraries/PowerSystems 1.0.0/Control/Modulation.mo"	2022-03-10 09:58:09.084148064 +0000
@@ -1238,7 +1238,7 @@
             origin={-240,-70},
             extent={{-10,-10},{10,10}},
             rotation=270)));
-    Modelica.StateGraph.StepWithSignal sector2
+    Modelica.StateGraph.StepWithSignal sector2(nIn = 1, nOut = 1) 
     annotation (Placement(transformation(extent={{118,170},{138,190}})));
     Modelica.StateGraph.TransitionWithSignal t1
     annotation (Placement(transformation(extent={{-124,190},{-104,210}})));
@@ -1260,10 +1260,10 @@
     annotation (Placement(transformation(extent={{-124,30},{-104,50}})));
     Modelica.StateGraph.Alternative Alternative2
     annotation (Placement(transformation(extent={{-58,124},{218,276}})));
-    Modelica.StateGraph.Step Step1
+    Modelica.StateGraph.Step Step1(nIn = 1, nOut = 1) 
                                  annotation (Placement(transformation(extent={{
                 -94,190},{-74,210}})));
-    Modelica.StateGraph.Step Step2
+    Modelica.StateGraph.Step Step2(nIn = 1, nOut = 1) 
                                  annotation (Placement(transformation(extent={{
                 -94,30},{-74,50}})));
     Modelica.StateGraph.Alternative Alternative3
@@ -1276,10 +1276,10 @@
     annotation (Placement(transformation(extent={{-4,228},{16,248}})));
     Modelica.StateGraph.TransitionWithSignal t4
     annotation (Placement(transformation(extent={{-2,152},{18,172}})));
-    Modelica.StateGraph.Step Step3
+    Modelica.StateGraph.Step Step3(nIn = 1, nOut = 1) 
                                  annotation (Placement(transformation(extent={{
                 28,152},{48,172}})));
-    Modelica.StateGraph.Step Step4
+    Modelica.StateGraph.Step Step4(nIn = 1, nOut = 1) 
                                  annotation (Placement(transformation(extent={{
                 26,68},{46,88}})));
     Modelica.StateGraph.TransitionWithSignal t5
@@ -1300,15 +1300,15 @@
     annotation (Placement(transformation(extent={{88,86},{108,106}})));
     Modelica.StateGraph.TransitionWithSignal t10
     annotation (Placement(transformation(extent={{88,50},{108,70}})));
-    Modelica.StateGraph.StepWithSignal sector3
+    Modelica.StateGraph.StepWithSignal sector3(nIn = 1, nOut = 1) 
     annotation (Placement(transformation(extent={{118,134},{138,154}})));
-    Modelica.StateGraph.StepWithSignal sector1
+    Modelica.StateGraph.StepWithSignal sector1(nIn = 1, nOut = 1) 
     annotation (Placement(transformation(extent={{118,228},{138,248}})));
-    Modelica.StateGraph.StepWithSignal sector6
+    Modelica.StateGraph.StepWithSignal sector6(nIn = 1, nOut = 1) 
     annotation (Placement(transformation(extent={{118,-8},{138,12}})));
-    Modelica.StateGraph.StepWithSignal sector5
+    Modelica.StateGraph.StepWithSignal sector5(nIn = 1, nOut = 1) 
     annotation (Placement(transformation(extent={{118,50},{138,70}})));
-    Modelica.StateGraph.StepWithSignal sector4
+    Modelica.StateGraph.StepWithSignal sector4(nIn = 1, nOut = 1) 
     annotation (Placement(transformation(extent={{118,86},{138,106}})));
     Modelica.StateGraph.Transition t11(enableTimer=true, waitTime=T_pwm)
     annotation (Placement(transformation(extent={{148,228},{168,248}})));
@@ -1353,7 +1353,7 @@
   annotation (Placement(transformation(extent={{-280,-160},{-260,-140}})));
     Modelica.Blocks.Interfaces.BooleanOutput trigger
     annotation (Placement(transformation(extent={{300,100},{340,140}})));
-    Modelica.StateGraph.InitialStep InitialStep1
+    Modelica.StateGraph.InitialStep InitialStep1(nIn = 1, nOut = 1) 
     annotation (Placement(transformation(extent={{-280,110},{-260,130}})));
     Modelica.Blocks.Logical.Or Or1
                                  annotation (Placement(transformation(extent={{
@@ -2673,7 +2673,9 @@
 Modifications needed for adaptation to Spot are mentioned in info-layer of the corresponding models.</p>
 </html>
 "));
+
 end SpaceVector;
+
 annotation (preferredView="info",
     Documentation(info="<html>
 <p>Asynchronous and synchronous PWM control of inverter-gates, three- and one-phase.</p>
diff -ur "/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/Examples/AC3ph/Drives.mo" "converted-libraries/.openmodelica/libraries/PowerSystems 1.0.0/Examples/AC3ph/Drives.mo"
--- "/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/Examples/AC3ph/Drives.mo"	2022-03-10 09:57:38.312144166 +0000
+++ "converted-libraries/.openmodelica/libraries/PowerSystems 1.0.0/Examples/AC3ph/Drives.mo"	2022-03-10 09:58:06.788147774 +0000
@@ -256,7 +256,7 @@
       controllerType=Modelica.Blocks.Types.SimpleController.PI,
       Ti=0.1,
       yMax=1,
-      initType=Modelica.Blocks.Types.InitPID.SteadyState,
+      initType=Modelica.Blocks.Types.Init.SteadyState,
       gainPID(y(start=0.1)))
            annotation (Placement(transformation(extent={{-50,0},{-30,20}})));
 
@@ -421,7 +421,7 @@
       Ti=0.2,
       Td=0.1,
       controllerType=Modelica.Blocks.Types.SimpleController.PI,
-      initType=Modelica.Blocks.Types.InitPID.SteadyState,
+      initType=Modelica.Blocks.Types.Init.SteadyState,
       yMax=1,
       gainPID(y(start=0.1)))
            annotation (Placement(transformation(extent={{-60,10},{-40,30}})));
@@ -506,7 +506,7 @@
       Td=0.05,
       controllerType=Modelica.Blocks.Types.SimpleController.PI,
       Ti=0.2,
-      initType=Modelica.Blocks.Types.InitPID.InitialState,
+      initType=Modelica.Blocks.Types.Init.InitialState,
       xi_start=0.1,
       yMax=1)
            annotation (Placement(transformation(extent={{-60,10},{-40,30}})));
@@ -606,7 +606,7 @@
       Ti=0.1,
       yMax=1,
       gainPID(y(start=0.1)),
-      initType=Modelica.Blocks.Types.InitPID.SteadyState)
+      initType=Modelica.Blocks.Types.Init.SteadyState)
            annotation (Placement(transformation(extent={{-60,10},{-40,30}})));
 
   equation
diff -ur "/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/Examples/AC3ph/Generation.mo" "converted-libraries/.openmodelica/libraries/PowerSystems 1.0.0/Examples/AC3ph/Generation.mo"
--- "/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/Examples/AC3ph/Generation.mo"	2022-03-10 09:57:38.312144166 +0000
+++ "converted-libraries/.openmodelica/libraries/PowerSystems 1.0.0/Examples/AC3ph/Generation.mo"	2022-03-10 09:58:06.156147694 +0000
@@ -1163,7 +1163,7 @@
     Td=0.1,
     Ti=0.5,
     k=1/vDC_nom,
-    initType=Modelica.Blocks.Types.InitPID.SteadyState)
+    initType=Modelica.Blocks.Types.Init.SteadyState)
          annotation (Placement(transformation(extent={{40,20},{20,40}})));
   Modelica.Blocks.Sources.Constant set_vDC(k=vDC_nom)
       annotation (Placement(transformation(extent={{70,20},{50,40}})));
@@ -1220,9 +1220,11 @@
 <p><a href=\"modelica://PowerSystems.Examples.AC3ph.Generation\">up users guide</a></p>
 </html>"),
 experiment(StopTime=30));
+
 end Islanding;
 
 public
+
 model LocalGeneration
     "AC torque controlled synchronous machine as local generator"
 
@@ -1290,7 +1292,7 @@
   Modelica.Blocks.Continuous.LimPID PI_vDC(
       Td=0.05,
       controllerType=Modelica.Blocks.Types.SimpleController.PI,
-      initType=Modelica.Blocks.Types.InitPID.SteadyState,
+      initType=Modelica.Blocks.Types.Init.SteadyState,
     Ti=0.1,
       k=0.3*I_nom/vDC_nom,
       yMax=1.4*I_nom)
@@ -1341,8 +1343,8 @@
 <p><a href=\"modelica://PowerSystems.Examples.AC3ph.Generation\">up users guide</a></p>
 </html>"),
 experiment(StopTime=30));
-end LocalGeneration;
 
+end LocalGeneration;
   annotation (preferredView="info",
 Documentation(info="<html>
 <p>Power sources and generation, a set of examples mainly for understanding the synchronous machine.</p>
diff -ur "/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/Types/SI.mo" "converted-libraries/.openmodelica/libraries/PowerSystems 1.0.0/Types/SI.mo"
--- "/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/Types/SI.mo"	2022-03-10 09:57:38.316144166 +0000
+++ "converted-libraries/.openmodelica/libraries/PowerSystems 1.0.0/Types/SI.mo"	2022-03-10 09:58:03.336147336 +0000
@@ -1,7 +1,7 @@
 within PowerSystems.Types;
 package SI "SI types with custom attributes, like display units"
   extends Modelica.Icons.Package;
-  import MSI = Modelica.SIunits;
+  import MSI = Modelica.Units.SI;
 
   type Time = MSI.Time;
   type Frequency = MSI.Frequency;
diff -ur "/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/openmodelica.metadata.json" "converted-libraries/.openmodelica/libraries/PowerSystems 1.0.0/openmodelica.metadata.json"
--- "/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/openmodelica.metadata.json"	2022-03-10 09:57:38.316144166 +0000
+++ "converted-libraries/.openmodelica/libraries/PowerSystems 1.0.0/openmodelica.metadata.json"	2022-03-10 09:58:11.856148416 +0000
@@ -1 +1 @@
-{"path":"PowerSystems", "sha":"3bdc215576fd325ad6e715a9a5c0318593b69fd1", "support":"support", "uses":{"Modelica":"3.2.2"}, "version":"1.0.0", "zipfile":"https://github.com/modelica-3rdparty/PowerSystems/archive/3bdc215576fd325ad6e715a9a5c0318593b69fd1.zip"}
+{"path": "PowerSystems", "sha": "3bdc215576fd325ad6e715a9a5c0318593b69fd1", "support": "support", "uses": {"Modelica": "4.0.0"}, "version": "1.0.0", "zipfile": "https://github.com/modelica-3rdparty/PowerSystems/archive/3bdc215576fd325ad6e715a9a5c0318593b69fd1.zip", "extraInfo": "Conversion script /home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om//Resources/Scripts/Conversion/ConvertModelica_from_3.2.3_to_4.0.0.mos was applied"}
\ No newline at end of file
diff -ur "/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo" "converted-libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo"
--- "/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo"	2022-03-10 09:57:38.316144166 +0000
+++ "converted-libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo"	2022-03-10 09:58:03.600147370 +0000
@@ -3,8 +3,8 @@
   extends Modelica.Icons.Package;
 
   import Modelica.Constants.pi;
-  import PowerSystems.Types.SI "SI types with custom display units";
-  import PowerSystems.Types.SIpu "per-unit types for user interface";
+  import PowerSystems.Types.SI ;
+  import PowerSystems.Types.SIpu ;
 
   constant String TableDir=Modelica.Utilities.Files.loadResource("modelica://PowerSystems/Resources/Tables/")
     "Directory of example tables";
@@ -13,6 +13,32 @@
       PhaseSystems.ThreePhase_dq "Default phase system"
     annotation (choicesAllMatching=true);
 
+  
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
   annotation (preferredView="info",
   version="1.0.0",
   versionDate="2018-11-12",
@@ -32,7 +58,7 @@
 <p/>
 </html>
 "),
-  uses(Modelica(version="3.2.2")),
+  uses(Modelica(version= "4.0.0")),
   Icon(graphics={
       Line(
         points={{-60,-16},{38,-16}},
