Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HydraulicModules fail in OpenModelica #1346

Closed
FWuellhorst opened this issue Oct 7, 2022 · 3 comments
Closed

HydraulicModules fail in OpenModelica #1346

FWuellhorst opened this issue Oct 7, 2022 · 3 comments
Assignees
Labels
hackday OpenModelica Related to usage in OM

Comments

@FWuellhorst
Copy link
Contributor

Describe the bug
The models in the package HydraulicModules fail in OpenModelica.

Error log

 Error in model:  AixLib.Systems.HydraulicModules.BaseClasses.BasicPumpInterface 
[D:/05_Programme/OpenModelica1.19.2-64bit/lib/omlibrary/Modelica 4.0.0/Media/package.mo:4426:7-4429:18:writable] Error: Called function ‘AixLib.Systems.HydraulicModules.BaseClasses.BasicPumpInterface.Medium.specificEnthalpy‘ is partial.


 
 Error in model:  AixLib.Systems.HydraulicModules.BaseClasses.PartialHydraulicModule 
[D:/05_Programme/OpenModelica1.19.2-64bit/lib/omlibrary/Modelica 4.0.0/Media/package.mo:4426:7-4429:18:writable] Error: Called function ‘AixLib.Systems.HydraulicModules.BaseClasses.PartialHydraulicModule.Medium1.specificEnthalpy‘ is partial.


 
 Error in model:  AixLib.Systems.HydraulicModules.BaseClasses.PumpInterface_PumpHeadControlled 
[D:/05_Programme/OpenModelica1.19.2-64bit/lib/omlibrary/Modelica 4.0.0/Media/package.mo:4109:7-4109:67:writable] Error: Output parameter state was not assigned a value


 
 Error in model:  AixLib.Systems.HydraulicModules.BaseClasses.PumpInterface_PumpSpeedControlled 
[D:/05_Programme/OpenModelica1.19.2-64bit/lib/omlibrary/Modelica 4.0.0/Media/package.mo:4109:7-4109:67:writable] Error: Output parameter state was not assigned a value


 
 Error in model:  AixLib.Systems.HydraulicModules.BaseClasses.PumpInterface_SpeedControlledNrpm 
[D:/05_Programme/OpenModelica1.19.2-64bit/lib/omlibrary/Modelica 4.0.0/Media/package.mo:4109:7-4109:67:writable] Error: Output parameter state was not assigned a value


 
 Error in model:  AixLib.Systems.HydraulicModules.Injection 
Error: Internal error Instantiation of AixLib.Systems.HydraulicModules.Injection failed with no error message.


 
 Error in model:  AixLib.Systems.HydraulicModules.Injection2WayValve 
[D:/05_Programme/OpenModelica1.19.2-64bit/lib/omlibrary/Modelica 4.0.0/Media/package.mo:4109:7-4109:67:writable] Error: Output parameter state was not assigned a value


 
 Error in model:  AixLib.Systems.HydraulicModules.Pump 
[D:/05_Programme/OpenModelica1.19.2-64bit/lib/omlibrary/Modelica 4.0.0/Media/package.mo:4109:7-4109:67:writable] Error: Output parameter state was not assigned a value


 
 Error in model:  AixLib.Systems.HydraulicModules.SimpleConsumer 
[D:/05_Programme/OpenModelica1.19.2-64bit/lib/omlibrary/Modelica 4.0.0/Media/package.mo:4109:7-4109:67:writable] Error: Output parameter state was not assigned a value


 
 Error in model:  AixLib.Systems.HydraulicModules.Throttle 
[D:/05_Programme/OpenModelica1.19.2-64bit/lib/omlibrary/Modelica 4.0.0/Media/package.mo:4109:7-4109:67:writable] Error: Output parameter state was not assigned a value


 
 Error in model:  AixLib.Systems.HydraulicModules.ThrottlePump 
[D:/05_Programme/OpenModelica1.19.2-64bit/lib/omlibrary/Modelica 4.0.0/Media/package.mo:4109:7-4109:67:writable] Error: Output parameter state was not assigned a value

 Error in model:  AixLib.Systems.HydraulicModules.Example.Admix 
Failed to build model: AixLib.Systems.HydraulicModules.Example.Admix
Error: Too few equations, under-determined system. The model has 2082 equation(s) and 2083 variable(s).


 
 Error in model:  AixLib.Systems.HydraulicModules.Example.Injection 
Failed to build model: AixLib.Systems.HydraulicModules.Example.Injection
Error: Too few equations, under-determined system. The model has 3017 equation(s) and 3018 variable(s).


 
 Error in model:  AixLib.Systems.HydraulicModules.Example.Injection2WayValve 
Failed to build model: AixLib.Systems.HydraulicModules.Example.Injection2WayValve
Error: Too few equations, under-determined system. The model has 2310 equation(s) and 2311 variable(s).


 
 Error in model:  AixLib.Systems.HydraulicModules.Example.Pump 
Failed to build model: AixLib.Systems.HydraulicModules.Example.Pump
Error: Too few equations, under-determined system. The model has 910 equation(s) and 911 variable(s).


 
 Error in model:  AixLib.Systems.HydraulicModules.Example.ThrottlePump 
Failed to build model: AixLib.Systems.HydraulicModules.Example.ThrottlePump
Error: Too few equations, under-determined system. The model has 1390 equation(s) and 1391 variable(s).
@FWuellhorst
Copy link
Contributor Author

The TABS model fails with the same error message. If a solution is found, we can fix TABS as well:

 Error in model:  AixLib.Systems.TABS.Tabs 
[D:/05_Programme/OpenModelica1.19.2-64bit/lib/omlibrary/Modelica 4.0.0/Media/package.mo:4109:7-4109:67:writable] Error: Output parameter state was not assigned a value

@KremerMartin
Copy link
Contributor

KremerMartin commented Oct 13, 2022

AixLib.Systems.HydraulicModules.Example.Pump fails in simulation:

The initialization finished successfully with 3 homotopy steps.
New front position is not smaller then previous first node.
Integrator attempt to handle a problem with a called assert.
model terminate | Simulation terminated by an assert at time: 42.4
Simulation process failed. Exited with code 0xffffffffffffffff.
### STATISTICS ###
timer
   0.0585791s          reading init.xml
   0.0212288s [ 57.8%] simulation
   0.0367564s [100.0%] total
  0.00967552s          reading info.xml
  0.00288283s [  7.8%] pre-initialization
  0.00405145s [ 11.0%] initialization
           0s [  0.0%] steps
  0.00158093s [  4.3%] solver (excl. callbacks)
  0.00269253s [  7.3%] creating output-file
  0.00255472s [  7.0%] event-handling
  0.00176519s [  4.8%] overhead
events
    1 state events
    0 time events
solver: dassl
   20 steps taken
   20 calls of functionODE
   18 evaluations of jacobian
    0 error test failures
    0 convergence test failures
0.0094486s time of jacobian evaluation
Simulation process failed. Exited with code 0xffffffffffffffff.

KremerMartin pushed a commit that referenced this issue Oct 13, 2022
…ulicModules.Example.Pump´

Changes start input for pump to 1 rpm to avoid mass flow rate = 0

For #1346
KremerMartin pushed a commit that referenced this issue Oct 13, 2022
@KremerMartin
Copy link
Contributor

closed by PR #1359

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hackday OpenModelica Related to usage in OM
Projects
None yet
Development

No branches or pull requests

3 participants