Open Wardi0 opened 1 year ago
@Wardi0, have you tried with the released 1.21.0 version of OMC?
Hi @casella, I have repeated the two tests with both the release and nightly builds now but they produce identical errors to above.
But at least, can you run the model with OMEdit and the default choice of compiler?
This is just to understand if there's something weird with your installation.
Trying on OMEdit with the default compiler gives the exact same error message seen in my OMShell example unfotunately
@Wardi0 this is weird. I just tried to run ExternalMedia.Test.CoolProp.CO2.TestStatesSupercritical
using ExternalMedia 4.0.0 as installed by the package manager on my PC, running a recent nightly build (v1.22.0-dev-160-gb8f9594377), and it works fine:
d:\temp\OMEdit/ExternalMedia.Test.CoolProp.CO2.TestStatesSupercritical/TestStatesSupercritical.exe -port=59366 -logFormat=xmltcp -override=startTime=0,stopTime=1,stepSize=0.001,tolerance=1e-06,solver=dassl,outputFormat=mat,variableFilter=.* -r=d:\temp\OMEdit/ExternalMedia.Test.CoolProp.CO2.TestStatesSupercritical/TestStatesSupercritical_res.mat -w -lv=LOG_STDOUT,LOG_ASSERT,LOG_STATS -inputPath=d:\temp\OMEdit/ExternalMedia.Test.CoolProp.CO2.TestStatesSupercritical -outputPath=d:\temp\OMEdit/ExternalMedia.Test.CoolProp.CO2.TestStatesSupercritical
The initialization finished successfully without homotopy method.
### STATISTICS ###
timer
0.0071199s reading init.xml
1.52853s [ 97.3%] simulation
1.57159s [100.0%] total
0.0012418s reading info.xml
0.0022586s [ 0.1%] pre-initialization
0.0314838s [ 2.0%] initialization
0.0014022s [ 0.1%] steps
4.07e-05s [ 0.0%] solver (excl. callbacks)
0.0059963s [ 0.4%] creating output-file
0.0002059s [ 0.0%] event-handling
0.0016801s [ 0.1%] overhead
events
0 state events
0 time events
solver: euler
1000 steps taken
1000 calls of functionODE
0 evaluations of jacobian
0 error test failures
0 convergence test failures
0s time of jacobian evaluation
The simulation finished successfully.
calc_transport has the value of 1 TTSE is off enable_TTSE has the value of 0 BICUBIC is off enable_BICUBIC has the value of 0 enable_EXTTP has the value of 1 twophase_derivsmoothing_xend has the value of 0.0 rho_smoothing_xend has the value of 0.0 debug has the value of 0
The same goes for the CI test, see the simulation log.
Are you sure you have actually loaded the right version of the library? If you use OMEdit, can you report what you see at the top of the model window:
Hi @casella, I am also running 4.0.0 installed via the OMEdit library manager:
It's very weird. What are your compiler settings in the Simulation tab of options?
I see the same compilation error as reported here, but with another model: https://github.com/OpenModelica/OpenModelica/issues/11262#issue-1913416060, so it seems there is a way to trigger this. This is using OpenModelica v1.23.0-dev-13-g31fc8a7a09 and EM 4.0.0.
Description
Hi there, I am trying to use the new ExternalMedia version for modelling supercritical CO2 power cycles but can't seem to get any of the tests working on my system. Any help would be greatly appreciated!
Steps to reproduce
Trying first via OMShell gives:
Trying to simulate the model in OMEdit using gcc instead of clang as the C compiler gives the following error:
Version and OS