christiankral / WindPowerPlants

The WindPowerPlants library is an open source library for the simulation of wind power plants. The library provides models of wind turbines, generators and control.
BSD 3-Clause "New" or "Revised" License
23 stars 20 forks source link

Warnings about missing initial assignments #6

Closed tbeu closed 9 years ago

tbeu commented 9 years ago

I attached the log of a test run of the example models with SimulationX. Please note the warnings about missing initial assignments.

Warning In WindPowerPlants.Examples.CpLambdaWindTurbine

For the variable "_pre_windturbine.limit" is no assignment in the initial system. The startvalue "false" is used. Set fixed=true or add a assignment in a initial section
Message Name: InitialSystem.MissingInitialAssignment
Simulation finished successfully. (Investigate cp versus lambda of wind turbine for different pitch angles)

Current Simulation Time:    1 s
Steps:  100048
   Valid:       100048
   Error:       0
   NoConv:      0
Calculations:
   Residuals:   100217
   Jacobian:    0
   Dummy-pivotings: 0
   Event iterations:    25
   Event steps: 86
   Substitute Event steps:  0
Order:
   Changes:     0
   Max:         0
Matrix:
   Decomp:      0
   Solve:       0
   CodeGeneration:  0
Number of States:       0
Warning In WindPowerPlants.Examples.GenericPlantRayleigh

For the variable "windSource.tNext" is no assignment in the initial system. The startvalue "windSource.tNext.start" is used. Set fixed=true or add a assignment in a initial section
Message Name: InitialSystem.MissingInitialAssignment
Warning In WindPowerPlants.Examples.GenericPlantRayleigh

For the variable "windSource.velocity" is no assignment in the initial system. The startvalue "windSource.velocity.start" is used. Set fixed=true or add a assignment in a initial section
Message Name: InitialSystem.MissingInitialAssignment
Warning In WindPowerPlants.Examples.GenericPlantRayleigh

There is no unique solution for the variable plant.windturbine.slewRateLimiter.y. If applicable, add a fixed initial value, initial equation or initial assignment.
Message Name: InitialSystem.IterationVar
Warning In WindPowerPlants.Examples.GenericPlantRayleigh

For the variable "_pre_plant.windturbine.turbine.limit" is no assignment in the initial system. The startvalue "false" is used. Set fixed=true or add a assignment in a initial section
Message Name: InitialSystem.MissingInitialAssignment
Warning In WindPowerPlants.Examples.GenericPlantRayleigh

The structure of the initial equation system is singular.Equations are missing.
plant.windturbine.turbine.phi:
| plant.generator.mechanicalPowerSensor.flange_a.phi --> plant.generator.mechanicalPowerSensor.flange_a.phi=112.8*plant.windturbine.turbine.phi;
Equations, which do not assign a variable:
.
Message Name: Check.Singular
Warning In WindPowerPlants.Examples.GenericPlantRayleigh

There is no unique solution for the variable plant.windturbine.turbine.phi. If applicable, add a fixed initial value, initial equation or initial assignment.
Message Name: InitialSystem.IterationVar
Warning In WindPowerPlants.Examples.GenericPlantRayleigh

There is no start attribute of state plant.windturbine.phi. It is set to 0.
Message Name: Check.StartAttrMissing
Simulation finished successfully. (Generic wind power plant simulation with statistical wind data)

Current Simulation Time:    2678400 s
Steps:  823272
   Valid:       784316
   Error:       38953
   NoConv:      3
Calculations:
   Residuals:   3194288
   Jacobian:    624313
   Dummy-pivotings: 1
   Event iterations:    86257
   Event steps: 229755
   Substitute Event steps:  0
Order:
   Changes:     251593
   Max:         5
Matrix:
   Decomp:      460034
   Solve:       1750844
   CodeGeneration:  143804
Number of States:       8
Total energy = -511747 kWh

Total energy = -511747 kWh
Warning In WindPowerPlants.Examples.GenericPlantRealData

There is no unique solution for the variable plant.windturbine.slewRateLimiter.y. If applicable, add a fixed initial value, initial equation or initial assignment.
Message Name: InitialSystem.IterationVar
Warning In WindPowerPlants.Examples.GenericPlantRealData

For the variable "_pre_plant.windturbine.turbine.limit" is no assignment in the initial system. The startvalue "false" is used. Set fixed=true or add a assignment in a initial section
Message Name: InitialSystem.MissingInitialAssignment
Warning In WindPowerPlants.Examples.GenericPlantRealData

The structure of the initial equation system is singular.Equations are missing.
plant.windturbine.turbine.phi:
| plant.generator.mechanicalPowerSensor.flange_a.phi --> plant.generator.mechanicalPowerSensor.flange_a.phi=112.8*plant.windturbine.turbine.phi;
Equations, which do not assign a variable:
.
Message Name: Check.Singular
Warning In WindPowerPlants.Examples.GenericPlantRealData

There is no unique solution for the variable plant.windturbine.turbine.phi. If applicable, add a fixed initial value, initial equation or initial assignment.
Message Name: InitialSystem.IterationVar
Warning In WindPowerPlants.Examples.GenericPlantRealData

There is no start attribute of state plant.windturbine.phi. It is set to 0.
Message Name: Check.StartAttrMissing
... loading "velocity" from "z:/WindPowerPlants/WindPowerPlants/Resources/Data/beresford2006.txt"

... loading "velocity" from "z:/WindPowerPlants/WindPowerPlants/Resources/Data/beresford2006.txt"
Simulation finished successfully. (Generic wind power plant simulation with real wind data)

Current Simulation Time:    2678400 s
Steps:  407081
   Valid:       389563
   Error:       17500
   NoConv:      18
Calculations:
   Residuals:   1682364
   Jacobian:    54867
   Dummy-pivotings: 3
   Event iterations:    3927
   Event steps: 8075
   Substitute Event steps:  0
Order:
   Changes:     59953
   Max:         5
Matrix:
   Decomp:      73110
   Solve:       1258080
   CodeGeneration:  7621
Number of States:       8
Total energy = -536274 kWh

Total energy = -536274 kWh
Warning In WindPowerPlants.Examples.GenericPlantRealData

There is no unique solution for the variable plant.windturbine.slewRateLimiter.y. If applicable, add a fixed initial value, initial equation or initial assignment.
Message Name: InitialSystem.IterationVar
Warning In WindPowerPlants.Examples.GenericPlantRealData

For the variable "_pre_plant.windturbine.turbine.limit" is no assignment in the initial system. The startvalue "false" is used. Set fixed=true or add a assignment in a initial section
Message Name: InitialSystem.MissingInitialAssignment
Warning In WindPowerPlants.Examples.GenericPlantRealData

The structure of the initial equation system is singular.Equations are missing.
plant.windturbine.turbine.phi:
| plant.generator.mechanicalPowerSensor.flange_a.phi --> plant.generator.mechanicalPowerSensor.flange_a.phi=112.8*plant.windturbine.turbine.phi;
Equations, which do not assign a variable:
.
Message Name: Check.Singular
Warning In WindPowerPlants.Examples.GenericPlantRealData

There is no unique solution for the variable plant.windturbine.turbine.phi. If applicable, add a fixed initial value, initial equation or initial assignment.
Message Name: InitialSystem.IterationVar
Warning In WindPowerPlants.Examples.GenericPlantRealData

There is no start attribute of state plant.windturbine.phi. It is set to 0.
Message Name: Check.StartAttrMissing
... loading "velocity" from "z:/WindPowerPlants/WindPowerPlants/Resources/Data/beresford2006.txt"

... loading "velocity" from "z:/WindPowerPlants/WindPowerPlants/Resources/Data/beresford2006.txt"
Simulation finished successfully. (Generic wind power plant simulation with real wind data)

Current Simulation Time:    2678400 s
Steps:  407081
   Valid:       389563
   Error:       17500
   NoConv:      18
Calculations:
   Residuals:   1682364
   Jacobian:    54867
   Dummy-pivotings: 3
   Event iterations:    3927
   Event steps: 8075
   Substitute Event steps:  0
Order:
   Changes:     59953
   Max:         5
Matrix:
   Decomp:      73110
   Solve:       1258080
   CodeGeneration:  7621
Number of States:       8
Total energy = -536274 kWh

Total energy = -536274 kWh
Warning In WindPowerPlants.Examples.Modelica2015Conference.GenericPlant_A

For the variable "windSource.tNext" is no assignment in the initial system. The startvalue "windSource.tNext.start" is used. Set fixed=true or add a assignment in a initial section
Message Name: InitialSystem.MissingInitialAssignment
Warning In WindPowerPlants.Examples.Modelica2015Conference.GenericPlant_A

For the variable "windSource.velocity" is no assignment in the initial system. The startvalue "windSource.velocity.start" is used. Set fixed=true or add a assignment in a initial section
Message Name: InitialSystem.MissingInitialAssignment
Warning In WindPowerPlants.Examples.Modelica2015Conference.GenericPlant_A

There is no unique solution for the variable plant.windturbine.slewRateLimiter.y. If applicable, add a fixed initial value, initial equation or initial assignment.
Message Name: InitialSystem.IterationVar
Warning In WindPowerPlants.Examples.Modelica2015Conference.GenericPlant_A

For the variable "_pre_plant.windturbine.turbine.limit" is no assignment in the initial system. The startvalue "false" is used. Set fixed=true or add a assignment in a initial section
Message Name: InitialSystem.MissingInitialAssignment
Warning In WindPowerPlants.Examples.Modelica2015Conference.GenericPlant_A

The structure of the initial equation system is singular.Equations are missing.
plant.windturbine.turbine.phi:
| plant.generator.mechanicalPowerSensor.flange_a.phi --> plant.generator.mechanicalPowerSensor.flange_a.phi=112.8*plant.windturbine.turbine.phi;
Equations, which do not assign a variable:
.
Message Name: Check.Singular
Warning In WindPowerPlants.Examples.Modelica2015Conference.GenericPlant_A

There is no unique solution for the variable plant.windturbine.turbine.phi. If applicable, add a fixed initial value, initial equation or initial assignment.
Message Name: InitialSystem.IterationVar
Warning In WindPowerPlants.Examples.Modelica2015Conference.GenericPlant_A

There is no start attribute of state plant.windturbine.phi. It is set to 0.
Message Name: Check.StartAttrMissing
Simulation finished successfully. (Generic wind power plant A [Eberhart2015] with statistical wind data)

Current Simulation Time:    31536000 s
Steps:  3511751
   Valid:       3479209
   Error:       32541
   NoConv:      1
Calculations:
   Residuals:   6760904
   Jacobian:    388864
   Dummy-pivotings: 1
   Event iterations:    53273
   Event steps: 141786
   Substitute Event steps:  0
Order:
   Changes:     163230
   Max:         5
Matrix:
   Decomp:      275506
   Solve:       4204551
   CodeGeneration:  88953
Number of States:       7
Total energy = -9.49773e+006 kWh

Total energy = -9.49773e+006 kWh
Warning In WindPowerPlants.Examples.Modelica2015Conference.GenericPlant_B

For the variable "windSource.tNext" is no assignment in the initial system. The startvalue "windSource.tNext.start" is used. Set fixed=true or add a assignment in a initial section
Message Name: InitialSystem.MissingInitialAssignment
Warning In WindPowerPlants.Examples.Modelica2015Conference.GenericPlant_B

For the variable "windSource.velocity" is no assignment in the initial system. The startvalue "windSource.velocity.start" is used. Set fixed=true or add a assignment in a initial section
Message Name: InitialSystem.MissingInitialAssignment
Warning In WindPowerPlants.Examples.Modelica2015Conference.GenericPlant_B

There is no unique solution for the variable plant.windturbine.slewRateLimiter.y. If applicable, add a fixed initial value, initial equation or initial assignment.
Message Name: InitialSystem.IterationVar
Warning In WindPowerPlants.Examples.Modelica2015Conference.GenericPlant_B

For the variable "_pre_plant.windturbine.turbine.limit" is no assignment in the initial system. The startvalue "false" is used. Set fixed=true or add a assignment in a initial section
Message Name: InitialSystem.MissingInitialAssignment
Warning In WindPowerPlants.Examples.Modelica2015Conference.GenericPlant_B

The structure of the initial equation system is singular.Equations are missing.
plant.windturbine.turbine.phi:
| plant.generator.mechanicalPowerSensor.flange_a.phi --> plant.generator.mechanicalPowerSensor.flange_a.phi=112.8*plant.windturbine.turbine.phi;
Equations, which do not assign a variable:
.
Message Name: Check.Singular
Warning In WindPowerPlants.Examples.Modelica2015Conference.GenericPlant_B

There is no unique solution for the variable plant.windturbine.turbine.phi. If applicable, add a fixed initial value, initial equation or initial assignment.
Message Name: InitialSystem.IterationVar
Warning In WindPowerPlants.Examples.Modelica2015Conference.GenericPlant_B

There is no start attribute of state plant.windturbine.phi. It is set to 0.
Message Name: Check.StartAttrMissing
Simulation finished successfully. (Generic wind power plant B [Eberhart2015] with statistical wind data)

Current Simulation Time:    31536000 s
Steps:  3511809
   Valid:       3479187
   Error:       32620
   NoConv:      2
Calculations:
   Residuals:   6905039
   Jacobian:    388610
   Dummy-pivotings: 1
   Event iterations:    53279
   Event steps: 141800
   Substitute Event steps:  0
Order:
   Changes:     216922
   Max:         5
Matrix:
   Decomp:      275607
   Solve:       4186248
   CodeGeneration:  88949
Number of States:       7
Total energy = -9.90483e+006 kWh

Total energy = -9.90483e+006 kWh
Warning In WindPowerPlants.Examples.Modelica2015Conference.GenericPlant_C

For the variable "windSource.tNext" is no assignment in the initial system. The startvalue "windSource.tNext.start" is used. Set fixed=true or add a assignment in a initial section
Message Name: InitialSystem.MissingInitialAssignment
Warning In WindPowerPlants.Examples.Modelica2015Conference.GenericPlant_C

For the variable "windSource.velocity" is no assignment in the initial system. The startvalue "windSource.velocity.start" is used. Set fixed=true or add a assignment in a initial section
Message Name: InitialSystem.MissingInitialAssignment
Warning In WindPowerPlants.Examples.Modelica2015Conference.GenericPlant_C

There is no unique solution for the variable plant.windturbine.slewRateLimiter.y. If applicable, add a fixed initial value, initial equation or initial assignment.
Message Name: InitialSystem.IterationVar
Warning In WindPowerPlants.Examples.Modelica2015Conference.GenericPlant_C

For the variable "_pre_plant.windturbine.turbine.limit" is no assignment in the initial system. The startvalue "false" is used. Set fixed=true or add a assignment in a initial section
Message Name: InitialSystem.MissingInitialAssignment
Warning In WindPowerPlants.Examples.Modelica2015Conference.GenericPlant_C

The structure of the initial equation system is singular.Equations are missing.
plant.windturbine.turbine.phi:
| plant.generator.mechanicalPowerSensor.flange_a.phi --> plant.generator.mechanicalPowerSensor.flange_a.phi=112.8*plant.windturbine.turbine.phi;
Equations, which do not assign a variable:
.
Message Name: Check.Singular
Warning In WindPowerPlants.Examples.Modelica2015Conference.GenericPlant_C

There is no unique solution for the variable plant.windturbine.turbine.phi. If applicable, add a fixed initial value, initial equation or initial assignment.
Message Name: InitialSystem.IterationVar
Warning In WindPowerPlants.Examples.Modelica2015Conference.GenericPlant_C

There is no start attribute of state plant.windturbine.phi. It is set to 0.
Message Name: Check.StartAttrMissing
Simulation finished successfully. (Generic wind power plant C [Eberhart2015] with statistical wind data)

Current Simulation Time:    31536000 s
Steps:  3473242
   Valid:       3444431
   Error:       28810
   NoConv:      1
Calculations:
   Residuals:   6521429
   Jacobian:    351799
   Dummy-pivotings: 1
   Event iterations:    47555
   Event steps: 126539
   Substitute Event steps:  0
Order:
   Changes:     146208
   Max:         5
Matrix:
   Decomp:      247794
   Solve:       4128596
   CodeGeneration:  79171
Number of States:       7
Total energy = -6.8685e+006 kWh

Total energy = -6.8685e+006 kWh
christiankral commented 9 years ago

Incorporated all initial conditions in tag v0.9.3

christiankral commented 9 years ago

Thanks for pointing out the missing initial conditions. I hope they're all fixed by now.

tbeu commented 9 years ago

All warnings are gone except

Warning In WindPowerPlants.Examples.GenericPlantElectricRealData
The structure of the initial equation system is singular.Equations are missing.
plant.windturbine.turbine.phi:
| plant.generator.mechanicalPowerSensor.flange_a.phi --> plant.generator.mechanicalPowerSensor.flange_a.phi=plant.idealGear.ratio* plant.windturbine.turbine.phi;
Equations, which do not assign a variable:
.
Message Name: Check.Singular

Warning In WindPowerPlants.Examples.GenericPlantElectricRealData
There is no unique solution for the variable plant.windturbine.turbine.phi. If applicable, add a fixed initial value, initial equation or initial assignment.
Message Name: InitialSystem.IterationVar

Warning In WindPowerPlants.Examples.GenericPlantElectricRealData
There is no start attribute of state plant.windturbine.phi. It is set to 0.
Message Name: Check.StartAttrMissing
tbeu commented 9 years ago

Setting plant.windturbine.phi.fixed = true removes all of these 3 warnings left.

christiankral commented 9 years ago

Fixed master with fixed=true for plant.windturbine.phi. I hope everything works now. Please check and let me know.

tbeu commented 9 years ago

Now it is overdetermined, i.e. too many fixed variables.

Warning In WindPowerPlants.Examples.GenericPlantRayleigh
The system of equations for the initial value computation is overdetermined.
Free some of the following fixations:
plant.windturbine.flange_a.phi(start=plant.windturbine.phi.start)

Message Name: InitialSystem.ToManyInitialEqns.Start

Warning In WindPowerPlants.Examples.GenericPlantRealData
The system of equations for the initial value computation is overdetermined.
Free some of the following fixations:
plant.windturbine.flange_a.phi(start=plant.windturbine.phi.start)

Message Name: InitialSystem.ToManyInitialEqns.Start

Warning In WindPowerPlants.Examples.Modelica2015Conference.GenericPlant_A
The system of equations for the initial value computation is overdetermined.
Free some of the following fixations:
plant.windturbine.flange_a.phi(start=plant.windturbine.phi.start)

Message Name: InitialSystem.ToManyInitialEqns.Start

Warning In WindPowerPlants.Examples.Modelica2015Conference.GenericPlant_B
The system of equations for the initial value computation is overdetermined.
Free some of the following fixations:
plant.windturbine.flange_a.phi(start=plant.windturbine.phi.start)

Message Name: InitialSystem.ToManyInitialEqns.Start

Warning In WindPowerPlants.Examples.Modelica2015Conference.GenericPlant_C
The system of equations for the initial value computation is overdetermined.
Free some of the following fixations:
plant.windturbine.flange_a.phi(start=plant.windturbine.phi.start)

Message Name: InitialSystem.ToManyInitialEqns.Start
tbeu commented 9 years ago

Setting plant.windturbine.phi.fixed = true not generally but only in WindPowerPlants.Examples.GenericPlantElectricRealData did work out.

christiankral commented 9 years ago

My fault, I forgot to remove the original initial equation. Please test again.

tbeu commented 9 years ago

Fix confirmed.