Opened 6 years ago

#5368 new defect

Nightly Build 1.14.0 giving odd Syntax Warnings and Effecting Old Simulation Results

Reported by: KieranF <kieran.fung@…> Owned by: somebody
Priority: high Milestone: Future
Component: *unknown* Version: v1.14.0-dev-nightly
Keywords: Brayton, Nightly, Build, NightlyBuild Cc: kieran.fung@…

Description

In an attempt to use the ThermoPower Library correctly I recently downloaded the nightly build to update the current version of OMEdit I have been using.

Ever since I downloaded this version, I receive Syntax Warnings I have never seen before but am almost positive they have to do with the installation of the new OMEdit version. They read as follows:

[1] 16:47:59 Scripting Warning
Requested package Modelica of version 3.2.2, but this package was already loaded with version 3.2.3. You might experience problems if these versions are incompatible.

[2] 16:47:59 Symbolic Warning
The model contains alias variables with conflicting start and/or nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts.

I normally would not have paid attention to these notifications, however, I tried opening a once working simulation of the Brayton Power Cycle I had on file and it now fails to work.

This model I built is identical to the one located in ThermoPower.Examples.Brayton.OpenLoopSimulator. Exactly identical. It was once an extremely reliable model of mine and always would simulate. Now, after the installation of the nightly build, I am receiving errors as follows:

C:/Users/kfung/AppData/Local/Temp/1/OpenModelica/OMEdit/BraytonPowerCycle_Plant/BraytonPowerCycle_Plant.exe -port=59573 -logFormat=xmltcp -override=startTime=0,stopTime=1,stepSize=0.002,tolerance=1e-6,solver=dassl,outputFormat=mat,variableFilter=.* -r=C:/Users/kfung/AppData/Local/Temp/1/OpenModelica/OMEdit/BraytonPowerCycle_Plant/BraytonPowerCycle_Plant_res.mat -w -lv=LOG_STATS -inputPath=C:/Users/kfung/AppData/Local/Temp/1/OpenModelica/OMEdit/BraytonPowerCycle_Plant -outputPath=C:/Users/kfung/AppData/Local/Temp/1/OpenModelica/OMEdit/BraytonPowerCycle_Plant
The initialization problem is inconsistent due to the following equation: 0 != 121002 = ThermoPower.Gas.SourcePressure$braytonPowerCycle1$SourcePressure.Medium.h_TX(braytonPowerCycle1.SourcePressure.T, {braytonPowerCycle1.SourcePressure.Xnom[1], braytonPowerCycle1.SourcePressure.Xnom[2], braytonPowerCycle1.SourcePressure.Xnom[3], braytonPowerCycle1.SourcePressure.Xnom[4]}, true, Modelica.Media.Interfaces.Choices.ReferenceEnthalpy.ZeroAt25C, 0.0) - braytonPowerCycle1.Compressor.gas_in.h
The following assertion has been violated during initialization at time 0.000000<br>
braytonPowerCycle1.Compressor.gas_in.T &gt;= 200.0 and braytonPowerCycle1.Compressor.gas_in.T &lt;= 6000.0
<br>
Temperature T (=125.721 K = 200 K) is not in the allowed range<br>
200 K &lt;= T &lt;= 6000 K<br>
required from medium model "Air".
simulation terminated by an assertion at initialization
Simulation process failed. Exited with code -1.

These errors produced and given to me through the simulation compiler are very misleading and incorrect!

What it is saying about the starting source pressure value is incorrect. What it is saying about the initial temperature of gas entering the compressor is also incorrect!

I just cannot seem to move past these weird nuances with OpenModelica and the software is making less and less sense to me.

If you have any advice or suggestions on how to trouble shoot this problem please let me know. I really don't understand why it is not simulating under these circumstance, especially because it's been copied by a working library Brayton model.

Attachments (4)

Brayton - Diagram View With Errors.PNG (218.8 KB ) - added by KieranF <kieran.fung@…> 6 years ago.
Brayton - Simulation Compiler Errors Claimed.PNG (104.4 KB ) - added by KieranF <kieran.fung@…> 6 years ago.
BraytonPowerCycle.mo (8.4 KB ) - added by KieranF <kieran.fung@…> 6 years ago.
BraytonPowerCycle_Plant.mo (843 bytes ) - added by KieranF <kieran.fung@…> 6 years ago.

Download all attachments as: .zip

Change History (4)

by KieranF <kieran.fung@…>, 6 years ago

by KieranF <kieran.fung@…>, 6 years ago

by KieranF <kieran.fung@…>, 6 years ago

Attachment: BraytonPowerCycle.mo added

by KieranF <kieran.fung@…>, 6 years ago

Attachment: BraytonPowerCycle_Plant.mo added
Note: See TracTickets for help on using tickets.