Opened 6 years ago
Last modified 6 years ago
#5363 assigned discussion
Is it currently possible to create/model systems off of the ThermoPower Library in OpenModelica?
Reported by: | Owned by: | Adrian Pop | |
---|---|---|---|
Priority: | high | Milestone: | Future |
Component: | Build Environment | Version: | |
Keywords: | ThermoPower, Rankine | Cc: | kieran.fung@…, Francesco Casella, Adrian Pop, Adeel Asghar |
Description
For a month now I've been trying to model Power Cycles, specifically the Brayton and Rankine Power Cycles, in an attempt to then model a Combined Power Cycle.
The Brayton Cycle example on the ThermoPower Library does in fact run and simulate. This has enabled me to correctly model my own model which also runs and simulates. But when it comes to the Rankine Power Cycle, the Library model always fails to run/simulate. I have also built MANY iterations of my own Rankine Power Cycle despite the Library model from working. All of my models also fail to run/simulate.
I have tried complex models and also very very simple models. All of my iterations fail. Also something worthy of noting, a lot of errors and translation errors occur with variables pertaining to pump.mo which are seemingly impossible to troubleshoot.
Working off of the ThermoPower Library since January has been a challenge. It seems most library examples/components have bugs in them preventing most examples from simulating. I've also been in contact with a builder of the ThermoPower library who has been telling me that the library is currently undergoing rebuilds.
So after experiencing/learning all of these factors, is it in fact possible to model systems off of the ThermoPower Library, or is it just my inability to model a system correctly?
Attachments (8)
Change History (24)
comment:1 by , 6 years ago
comment:2 by , 6 years ago
Cc: | added |
---|---|
Component: | Build Environment → *unknown* |
Owner: | changed from | to
What are the errors that you get? I tried simulating the Rankine Closed Loop model from the latest ThermoPower on github, and it worked just fine for me.
To make sure we're looking at the same model you can generate a total model (a model and all its dependencies in one file) and upload it to this ticket. You can do so in OMEdit, I think it's File -> Save Total Model or something like that.
If you're using 1.13.1 you might also want to upgrade to 1.13.2 and see if that works better for you.
follow-up: 4 comment:3 by , 6 years ago
is it recommended to to use 1.13.2 instead of hopping up to the latest nightly build (1.14.0) that's available on OpenModelica.org?
comment:4 by , 6 years ago
Replying to KieranF <kieran.fung@…>:
is it recommended to to use 1.13.2 instead of hopping up to the latest nightly build (1.14.0) that's available on OpenModelica.org?
The nightly builds are usually quite stable, we do a lot of automated testing in order to avoid regressions. There's always a small chance that the latest nightly build is broken in some way, but it's rare.
In this case it probably doesn't matter much which one you choose, since 1.13.2 is still fairly new. The nightly builds are recommended if you want to use the new frontend though (enabled by adding -d=newInst
to the compiler flags). And for ThermoPower you might want to do just that, since it's about 20 times faster at flattening the Rankine Closed Loop model.
comment:5 by , 6 years ago
I have attached the total model above. Just to be clear and concise, its located ThermoPower.Examples.RankineCycle.Simulators.ClosedLoop. The errors that are triggered from this simulation are located OMEdit Compilation window used for simulations. No errors are displayed on my message browser.
I have copied below what the compilation window displayed to me. I copied the entire message output, but also made altercations inside the body of text highlighting which parts of the message were "RED" text, or indicated errors. I did this by indentations and use of the word: NOTE: " . . . ". Hope this helps and does not complicate how this error message is intended to be read.
The Compilation Window reads as follows:
C:/OpenModelica1.13.164bit//share/omc/scripts/Compile.bat ThermoPower.Examples.RankineCycle.Simulators.ClosedLoop gcc mingw64 parallel 8 0
PATH = "C:\OpenModelica1.13.164bit\tools\msys\mingw64\bin;C:\OpenModelica1.13.164bit\tools\msys\mingw64\bin\..\..\usr\bin;"
gcc -Os -falign-functions -fno-ipa-pure-const -mstackrealign -msse2 -mfpmath=sse -I"C:/OpenModelica1.13.164bit//include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=ThermoPower_Examples_RankineCycle_Simulators_ClosedLoop -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=9 -DOMC_NUM_NONLINEAR_SYSTEMS=24 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o ThermoPower.Examples.RankineCycle.Simulators.ClosedLoop.o ThermoPower.Examples.RankineCycle.Simulators.ClosedLoop.c
gcc -Os -falign-functions -fno-ipa-pure-const -mstackrealign -msse2 -mfpmath=sse -I"C:/OpenModelica1.13.164bit//include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=ThermoPower_Examples_RankineCycle_Simulators_ClosedLoop -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=9 -DOMC_NUM_NONLINEAR_SYSTEMS=24 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o ThermoPower.Examples.RankineCycle.Simulators.ClosedLoop_functions.o ThermoPower.Examples.RankineCycle.Simulators.ClosedLoop_functions.c
gcc -Os -falign-functions -fno-ipa-pure-const -mstackrealign -msse2 -mfpmath=sse -I"C:/OpenModelica1.13.164bit//include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=ThermoPower_Examples_RankineCycle_Simulators_ClosedLoop -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=9 -DOMC_NUM_NONLINEAR_SYSTEMS=24 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o ThermoPower.Examples.RankineCycle.Simulators.ClosedLoop_records.o ThermoPower.Examples.RankineCycle.Simulators.ClosedLoop_records.c
gcc -Os -falign-functions -fno-ipa-pure-const -mstackrealign -msse2 -mfpmath=sse -I"C:/OpenModelica1.13.164bit//include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=ThermoPower_Examples_RankineCycle_Simulators_ClosedLoop -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=9 -DOMC_NUM_NONLINEAR_SYSTEMS=24 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o ThermoPower.Examples.RankineCycle.Simulators.ClosedLoop_01exo.o ThermoPower.Examples.RankineCycle.Simulators.ClosedLoop_01exo.c
gcc -Os -falign-functions -fno-ipa-pure-const -mstackrealign -msse2 -mfpmath=sse -I"C:/OpenModelica1.13.164bit//include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=ThermoPower_Examples_RankineCycle_Simulators_ClosedLoop -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=9 -DOMC_NUM_NONLINEAR_SYSTEMS=24 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o ThermoPower.Examples.RankineCycle.Simulators.ClosedLoop_02nls.o ThermoPower.Examples.RankineCycle.Simulators.ClosedLoop_02nls.c
gcc -Os -falign-functions -fno-ipa-pure-const -mstackrealign -msse2 -mfpmath=sse -I"C:/OpenModelica1.13.164bit//include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=ThermoPower_Examples_RankineCycle_Simulators_ClosedLoop -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=9 -DOMC_NUM_NONLINEAR_SYSTEMS=24 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o ThermoPower.Examples.RankineCycle.Simulators.ClosedLoop_03lsy.o ThermoPower.Examples.RankineCycle.Simulators.ClosedLoop_03lsy.c
gcc -Os -falign-functions -fno-ipa-pure-const -mstackrealign -msse2 -mfpmath=sse -I"C:/OpenModelica1.13.164bit//include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=ThermoPower_Examples_RankineCycle_Simulators_ClosedLoop -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=9 -DOMC_NUM_NONLINEAR_SYSTEMS=24 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o ThermoPower.Examples.RankineCycle.Simulators.ClosedLoop_04set.o ThermoPower.Examples.RankineCycle.Simulators.ClosedLoop_04set.c
gcc -Os -falign-functions -fno-ipa-pure-const -mstackrealign -msse2 -mfpmath=sse -I"C:/OpenModelica1.13.164bit//include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=ThermoPower_Examples_RankineCycle_Simulators_ClosedLoop -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=9 -DOMC_NUM_NONLINEAR_SYSTEMS=24 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o ThermoPower.Examples.RankineCycle.Simulators.ClosedLoop_05evt.o ThermoPower.Examples.RankineCycle.Simulators.ClosedLoop_05evt.c
gcc -Os -falign-functions -fno-ipa-pure-const -mstackrealign -msse2 -mfpmath=sse -I"C:/OpenModelica1.13.164bit//include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=ThermoPower_Examples_RankineCycle_Simulators_ClosedLoop -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=9 -DOMC_NUM_NONLINEAR_SYSTEMS=24 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o ThermoPower.Examples.RankineCycle.Simulators.ClosedLoop_06inz.o ThermoPower.Examples.RankineCycle.Simulators.ClosedLoop_06inz.c
gcc -Os -falign-functions -fno-ipa-pure-const -mstackrealign -msse2 -mfpmath=sse -I"C:/OpenModelica1.13.164bit//include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=ThermoPower_Examples_RankineCycle_Simulators_ClosedLoop -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=9 -DOMC_NUM_NONLINEAR_SYSTEMS=24 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o ThermoPower.Examples.RankineCycle.Simulators.ClosedLoop_07dly.o ThermoPower.Examples.RankineCycle.Simulators.ClosedLoop_07dly.c
gcc -Os -falign-functions -fno-ipa-pure-const -mstackrealign -msse2 -mfpmath=sse -I"C:/OpenModelica1.13.164bit//include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=ThermoPower_Examples_RankineCycle_Simulators_ClosedLoop -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=9 -DOMC_NUM_NONLINEAR_SYSTEMS=24 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o ThermoPower.Examples.RankineCycle.Simulators.ClosedLoop_08bnd.o ThermoPower.Examples.RankineCycle.Simulators.ClosedLoop_08bnd.c
gcc -Os -falign-functions -fno-ipa-pure-const -mstackrealign -msse2 -mfpmath=sse -I"C:/OpenModelica1.13.164bit//include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=ThermoPower_Examples_RankineCycle_Simulators_ClosedLoop -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=9 -DOMC_NUM_NONLINEAR_SYSTEMS=24 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o ThermoPower.Examples.RankineCycle.Simulators.ClosedLoop_09alg.o ThermoPower.Examples.RankineCycle.Simulators.ClosedLoop_09alg.c
gcc -Os -falign-functions -fno-ipa-pure-const -mstackrealign -msse2 -mfpmath=sse -I"C:/OpenModelica1.13.164bit//include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=ThermoPower_Examples_RankineCycle_Simulators_ClosedLoop -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=9 -DOMC_NUM_NONLINEAR_SYSTEMS=24 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o ThermoPower.Examples.RankineCycle.Simulators.ClosedLoop_10asr.o ThermoPower.Examples.RankineCycle.Simulators.ClosedLoop_10asr.c
gcc -Os -falign-functions -fno-ipa-pure-const -mstackrealign -msse2 -mfpmath=sse -I"C:/OpenModelica1.13.164bit//include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=ThermoPower_Examples_RankineCycle_Simulators_ClosedLoop -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=9 -DOMC_NUM_NONLINEAR_SYSTEMS=24 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o ThermoPower.Examples.RankineCycle.Simulators.ClosedLoop_11mix.o ThermoPower.Examples.RankineCycle.Simulators.ClosedLoop_11mix.c
gcc -Os -falign-functions -fno-ipa-pure-const -mstackrealign -msse2 -mfpmath=sse -I"C:/OpenModelica1.13.164bit//include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=ThermoPower_Examples_RankineCycle_Simulators_ClosedLoop -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=9 -DOMC_NUM_NONLINEAR_SYSTEMS=24 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o ThermoPower.Examples.RankineCycle.Simulators.ClosedLoop_12jac.o ThermoPower.Examples.RankineCycle.Simulators.ClosedLoop_12jac.c
gcc -Os -falign-functions -fno-ipa-pure-const -mstackrealign -msse2 -mfpmath=sse -I"C:/OpenModelica1.13.164bit//include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=ThermoPower_Examples_RankineCycle_Simulators_ClosedLoop -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=9 -DOMC_NUM_NONLINEAR_SYSTEMS=24 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o ThermoPower.Examples.RankineCycle.Simulators.ClosedLoop_13opt.o ThermoPower.Examples.RankineCycle.Simulators.ClosedLoop_13opt.c
gcc -Os -falign-functions -fno-ipa-pure-const -mstackrealign -msse2 -mfpmath=sse -I"C:/OpenModelica1.13.164bit//include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=ThermoPower_Examples_RankineCycle_Simulators_ClosedLoop -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=9 -DOMC_NUM_NONLINEAR_SYSTEMS=24 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o ThermoPower.Examples.RankineCycle.Simulators.ClosedLoop_14lnz.o ThermoPower.Examples.RankineCycle.Simulators.ClosedLoop_14lnz.c
gcc -Os -falign-functions -fno-ipa-pure-const -mstackrealign -msse2 -mfpmath=sse -I"C:/OpenModelica1.13.164bit//include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=ThermoPower_Examples_RankineCycle_Simulators_ClosedLoop -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=9 -DOMC_NUM_NONLINEAR_SYSTEMS=24 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o ThermoPower.Examples.RankineCycle.Simulators.ClosedLoop_15syn.o ThermoPower.Examples.RankineCycle.Simulators.ClosedLoop_15syn.c
gcc -Os -falign-functions -fno-ipa-pure-const -mstackrealign -msse2 -mfpmath=sse -I"C:/OpenModelica1.13.164bit//include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=ThermoPower_Examples_RankineCycle_Simulators_ClosedLoop -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=9 -DOMC_NUM_NONLINEAR_SYSTEMS=24 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o ThermoPower.Examples.RankineCycle.Simulators.ClosedLoop_16dae.o ThermoPower.Examples.RankineCycle.Simulators.ClosedLoop_16dae.c
gcc -Os -falign-functions -fno-ipa-pure-const -mstackrealign -msse2 -mfpmath=sse -I"C:/OpenModelica1.13.164bit//include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=ThermoPower_Examples_RankineCycle_Simulators_ClosedLoop -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=9 -DOMC_NUM_NONLINEAR_SYSTEMS=24 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o ThermoPower.Examples.RankineCycle.Simulators.ClosedLoop_17inl.o ThermoPower.Examples.RankineCycle.Simulators.ClosedLoop_17inl.c
gcc -I. -o ThermoPower.Examples.RankineCycle.Simulators.ClosedLoop.exe ThermoPower.Examples.RankineCycle.Simulators.ClosedLoop.o ThermoPower.Examples.RankineCycle.Simulators.ClosedLoop_functions.o ThermoPower.Examples.RankineCycle.Simulators.ClosedLoop_records.o ThermoPower.Examples.RankineCycle.Simulators.ClosedLoop_01exo.o ThermoPower.Examples.RankineCycle.Simulators.ClosedLoop_02nls.o ThermoPower.Examples.RankineCycle.Simulators.ClosedLoop_03lsy.o ThermoPower.Examples.RankineCycle.Simulators.ClosedLoop_04set.o ThermoPower.Examples.RankineCycle.Simulators.ClosedLoop_05evt.o ThermoPower.Examples.RankineCycle.Simulators.ClosedLoop_06inz.o ThermoPower.Examples.RankineCycle.Simulators.ClosedLoop_07dly.o ThermoPower.Examples.RankineCycle.Simulators.ClosedLoop_08bnd.o ThermoPower.Examples.RankineCycle.Simulators.ClosedLoop_09alg.o ThermoPower.Examples.RankineCycle.Simulators.ClosedLoop_10asr.o ThermoPower.Examples.RankineCycle.Simulators.ClosedLoop_11mix.o ThermoPower.Examples.RankineCycle.Simulators.ClosedLoop_12jac.o ThermoPower.Examples.RankineCycle.Simulators.ClosedLoop_13opt.o ThermoPower.Examples.RankineCycle.Simulators.ClosedLoop_14lnz.o ThermoPower.Examples.RankineCycle.Simulators.ClosedLoop_15syn.o ThermoPower.Examples.RankineCycle.Simulators.ClosedLoop_16dae.o ThermoPower.Examples.RankineCycle.Simulators.ClosedLoop_17inl.o -I"C:/OpenModelica1.13.164bit//include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=ThermoPower_Examples_RankineCycle_Simulators_ClosedLoop -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=9 -DOMC_NUM_NONLINEAR_SYSTEMS=24 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -L"C:/Users/kfung/Downloads/ThermoPower-master (3)/ThermoPower-master/ThermoPower" -Os -falign-functions -fno-ipa-pure-const -mstackrealign -msse2 -mfpmath=sse -I"C:/OpenModelica1.13.164bit//include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=ThermoPower_Examples_RankineCycle_Simulators_ClosedLoop -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=9 -DOMC_NUM_NONLINEAR_SYSTEMS=24 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -L"C:/OpenModelica1.13.164bit//lib//omc" -L"C:/OpenModelica1.13.164bit//lib" -Wl,--stack,16777216,-rpath,"C:/OpenModelica1.13.164bit//lib//omc" -Wl,-rpath,"C:/OpenModelica1.13.164bit//lib" -fopenmp -Wl,-Bstatic -lregex -ltre -lintl -liconv -lexpat -lomcgc -lpthread -loleaut32 -limagehlp -lhdf5 -lz -lszip -Wl,-Bdynamic -Wl,-Bstatic -lSimulationRuntimeC -Wl,-Bdynamic -Wl,-Bstatic -lomcgc -lregex -ltre -lintl -liconv -lexpat -static-libgcc -luuid -loleaut32 -lole32 -limagehlp -lws2_32 -llis -lumfpack -lklu -lcolamd -lbtf -lamd -Wl,-Bdynamic -lsundials_idas -lsundials_kinsol -lsundials_nvecserial -Wl,-Bstatic -lipopt -lcoinmumps -lpthread -lm -lgfortranbegin -lgfortran -lquadmath -lmingw32 -lgcc_eh -lmoldname -lmingwex -lmsvcrt -luser32 -lkernel32 -ladvapi32 -lshell32 -lopenblas -lcminpack -Wl,-Bdynamic -lwsock32 -Wl,-Bstatic -lstdc++ -Wl,-Bdynamic
NOTE: Bolded code below was red text (ERROR)
C:/OpenModelica1.13.164bit/tools/msys/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/5.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot open output file ThermoPower.Examples.RankineCycle.Simulators.ClosedLoop.exe: Permission denied
collect2.exe: error: ld returned 1 exit status
ThermoPower.Examples.RankineCycle.Simulators.ClosedLoop.makefile:32: recipe for target 'omc_main_target' failed
NOTE: Bolded code below was red text (ERROR)
\tools\msys\mingw64\bin\mingw32-make: * [omc_main_target] Error 1
Compilation process failed. Exited with code 2.
comment:6 by , 6 years ago
Cc: | added |
---|---|
Component: | *unknown* → Build Environment |
Owner: | changed from | to
Status: | new → assigned |
Ok, that looks like a Windows build issue (I'm using Linux myself). Calling in our Windows experts.
comment:7 by , 6 years ago
It's really bizarre, I have two separate OMEdit windows open right now, each window having the ThermoPower.Examples.RankineCycle.Simulators.ClosedLoop open. The weird thing is, only (1) out of the (2) models actually simulates.
The one that does simulate, the diagram window is all white without the normal grid pattern. The one that does not simulate, the diagram window does in fact have the grid pattern with the two different shades of white and gray in their respected squares. Not sure if this detail is significant, but thought it was worth mentioning because I find simulating consistently a big issue for myself when using Open Modelica.
comment:8 by , 6 years ago
Update on the inconsistent simulation: I closed out of both programs and relaunched them ... Now they both fail together and read the message I initially posted above. I'm pretty confused at this point at which what caused one to simulate over the other, what did I do (I dont think I did anything) to make them both fail to simulate.
I hope this paints a picture on my confusion at using the ThermoPower Library ... especially on using the nightly build of 1.14.0 and also using the Master Branch of ThermoPower Library pulled from Casella's GitHub file.
by , 6 years ago
Attachment: | ClosedLoop-Model.png added |
---|
by , 6 years ago
Attachment: | ClosedLoop-Simulation.png added |
---|
comment:9 by , 6 years ago
I just downloaded the ThermoPower Library from https://github.com/casella/ThermoPower and simulated the model ThermoPower.Examples.RankineCycle.Simulators.ClosedLoop
successfully. See the attached screenshots.
C:/OpenModelica1.13.164bit/tools/msys/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/5.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot open output file ThermoPower.Examples.RankineCycle.Simulators.ClosedLoop.exe: Permission denied
collect2.exe: error: ld returned 1 exit status
Well the error says the permission denied. It could be that you have another instance of the where the simulation is already running.
comment:10 by , 6 years ago
This *permission denied* means that you already have ThermoPower.Examples.RankineCycle.Simulators.ClosedLoop.exe running, is either stuck or it didn't finish with the simulation.
Look in your task manager for ThermoPower.Examples.RankineCycle.Simulators.ClosedLoop
process and kill it before trying to compile it again.
Having two OMEdit running at once, while possible, could give you exactly these kind of issues.
Another possibility is that your anti-virus or computer policy doesn't allow you to generate executables in the %TEMP% folder, you could change the working directory in OMEdit to see if that is the case.
by , 6 years ago
Working Closed Loop Rankine Cycle - ThermoPower Accessed through OMEdit
by , 6 years ago
Attachment: | Failed Closed Loop Rankine Cycle - Accessed through downloaded ThermoPower Master Branch.PNG added |
---|
Failed Closed Loop Rankine Cycle - Accessed through downloaded ThermoPower Master Branch
by , 6 years ago
Attachment: | Working Closed Loop Rankine Cycle - All White System Interface Including Consistent System errors.PNG added |
---|
Working Closed Loop Rankine Cycle - All White System Interface Including Consistent System errors
by , 6 years ago
Attachment: | Failed Closed Loop Rankine Cycle - Opaque and White Diagram View with consistent error messages preventing simulation.PNG added |
---|
Failed Closed Loop Rankine Cycle - Opaque and White Diagram View with consistent error messages preventing simulation
by , 6 years ago
Working Closed Loop Rankine Cycle - All White Interface (Diagram View)
comment:11 by , 6 years ago
Many .PNG files later . . . Here I hope to address both instances of how exactly I was accessing the ThermoPower Library and how each simulation attempt resulted. I uploaded these .PNG files in hopes of clearing up inconsistencies within OpenModelica that I have and hopefully give user based experience to you guys.
Iteration #1 - Successful Simulation
In the first instance, where I actually get the Closed Loop Rankine Example to simulate, I have attached .PNG files to explicitly show how I got to my successful simulation. This successful simulation was obtained by accessing the ThermoPower Library through OMEdit's own system libraries. It brought me to an all white diagram view interface, which I find to be related to all Library Examples, where components cannot be moved or edited or changed. The simulation runs successfully with consistent errors that are neglected as mentioned by the .PNG file names.
Iteration #2 - Failed Simulation
Here, I keep consistently getting failed Closed Loop Rankine Example simulations. The ThermoPower Library in this instance is accessed by the downloaded .zip file from the ThermoPower Libary Master Branch off of Github. This package brings me to an opaque and white diagram view interface that I mostly associate with model files that I build myself. Here, the library example is able to be manipulated, where the user (me) is able to drag components to different locations and edit component parameters. This ThermoPower.Example consistently fails with the same errors as seen in the .PNG file.
At this point I'm excited that I finally know how to open and simulate the ThermoPower Library's Rankine Example. This is a tiny step in the right direction for myself and being able to build my own model. However, I'm also curious/concerned as to why one method is correct while the other is not. To add more confusion to my situation, I want to reiterate that this morning I uninstalled the Modelica Version 1.13.1 and reinstalled Modelica Version 1.14.0.
I hope this information is as beneficial to you as it is to me and hope that we all can learn from this :)
Thanks for your time and effort guys! Let me know what you think about the situation.
comment:12 by , 6 years ago
Seems like the ThermoPower Library you downloaded from the github is different from the one shipped with OpenModelica (so it looks more of a library issue rather than OpenModelica). Can you provide the download link of the library? I can see in the image of the iteration 2 that the simulation is keep on running. Note that in such case you have to cancel the simulation otherwise you might encounter errors like permission denied.
comment:13 by , 6 years ago
I believe this is the link where I got it from . . . recommended to me by Casella, one of the ThermoPower Library builder's I've come to believe.
https://github.com/casella/ThermoPower
I'll keep that running simulation in mind though.
comment:14 by , 6 years ago
Is it possible to look and assess the Rankine Power Cycle that I have built myself? I'm getting the same exact errors as the "Working Closed Loop Rankine Cycle" model. The model I built checks out with equations and instantiates correctly but will never simulate.
Also, this is probably ~ my 20th iteration of the Rankine Cycle, and I consistently receive these types of errors, always pertaining to whatever pump model I choose. The pump model never fails me in producing these types of errors . . . the types of errors I do not know how to trouble shoot.
Since this is one of my many iterations of this power cycle, I most recently tried to diagnose my model by verifying all the components within my model work and simulate on their own. The pump model is the only component I have not been able to simulate on its own, where it produces similar or the same errors as it does in the Rankine Power Cycle Application.
comment:15 by , 6 years ago
I recommend to always use the latest nightly build (currently 1.14.0-dev) and the current master version of ThermoPower on GitHub. Which, incidentally, I understand is what Hudson does when reporting the old frontend and new frontend results, and is also what I always do.
I am currently badly overbooked, I will be able to have a look at this after March 11. Sorry about that.
comment:16 by , 6 years ago
Thanks @Casella, appreciate the feedback.
I will try and reach out to you around then if I still have not figured out how to model and simulate my own Rankine/Combined Cycle.
NOTE: I have also been working off of the updated Master ThermoPower Branch located off of Github. Despite this, my own built models as well as the ThermoPower Rankine Closed Loop Example still do not run/simulate.