Opened 4 years ago
Closed 4 years ago
#6311 closed defect (worksforme)
Unable to read init file
Reported by: | Owned by: | Andreas Heuermann | |
---|---|---|---|
Priority: | high | Milestone: | 1.18.0 |
Component: | Run-time | Version: | v1.17.0-dev |
Keywords: | Model initialization | Cc: | arunkumar.palanisamy@… |
Description
When trying to initialize a model by providing a result .mat file, OpenModelica displays the following message
C:/Users/I51238/AppData/Local/Temp/OpenModelica/OMEdit/BIL100_Demo.GV_Unit/BIL100_Demo.GV_Unit.exe -port=50921 -logFormat=xmltcp -override=startTime=0,stopTime=1,stepSize=0.002,tolerance=1e-6,solver=dassl,outputFormat=mat,variableFilter=.* -r=C:/Users/I51238/AppData/Local/Temp/OpenModelica/OMEdit/BIL100_Demo.GV_Unit/BIL100_Demo.GV_Unit_res.mat -iif=C:/Users/I51238/Documents/LIU/BIL100/BIL100_Demo/GV_Unit.mat -w -lv=LOG_STATS -inputPath=C:/Users/I51238/AppData/Local/Temp/OpenModelica/OMEdit/BIL100_Demo.GV_Unit -outputPath=C:/Users/I51238/AppData/Local/Temp/OpenModelica/OMEdit/BIL100_Demo.GV_Unit
unable to read input-file <C:/Users/I51238/AppData/Local/Temp/OpenModelica/OMEdit/BIL100_Demo.GV_Unit/C:/Users/I51238/Documents/LIU/BIL100/BIL100_Demo/GV_Unit.mat> [Invalid argument]
simulation terminated by an assertion at initialization
Simulation process failed. Exited with code -1.
OpenModelica version:
Connected to OpenModelica v1.17.0-dev-308-gc2aa2d4e16 (64-bit)
Connected to OMSimulator v2.0.0.post277-gfb8a7a2-mingw
Attachments (2)
Change History (5)
by , 4 years ago
Attachment: | GV_Unit.mat added |
---|
by , 4 years ago
Attachment: | BIL100_Demo.zip added |
---|
Modelica model file corresponding to the result file
comment:1 by , 4 years ago
Component: | *unknown* → Run-time |
---|---|
Milestone: | NeedsInput → 1.17.0 |
Owner: | changed from | to
Status: | new → assigned |
comment:2 by , 4 years ago
Milestone: | 1.17.0 → 1.18.0 |
---|
Retargeted to 1.18.0 because of 1.17.0 timed release.
comment:3 by , 4 years ago
Resolution: | → worksforme |
---|---|
Status: | assigned → closed |
@daniel, if you set the -iif
flag with just the file name (e.g. -iif=GV_Unit.mat
), OMEdit will look for it in the model-specific working directory. If you go to Tools|Open Working Directory, you'll see a list of directories named as the fully qualified names of all the models you've ran. The .mat
file must be placed inside the directory corresponding to the name of the model you want to run with imported initialization, e.g.BIL100_Demo.GV_Unit
.
I tried that and the file was loaded successfully.
Alternatively, you can use a relative path that points to the base working directory, e.g. -iif=../GV_Unit.mat
, or even provide an absolute path.
I then got other errors:
D:/Temp/OMEdit/BIL100_Demo.GV_Unit/GV_Unit.exe -port=60931 -logFormat=xmltcp -override=startTime=0,stopTime=1,stepSize=0.002,tolerance=1e-6, solver=dassl,outputFormat=mat,variableFilter=.* -r=D:/Temp/OMEdit/BIL100_Demo.GV_Unit/GV_Unit_res.mat -w -lv=LOG_STATS -iif=GV_Unit.mat -inputPath=D:/Temp/OMEdit/BIL100_Demo.GV_Unit -outputPath=D:/Temp/OMEdit/BIL100_Demo.GV_Unit unable to import real parameter DP_GV1.Qeps from given file unable to import real parameter sensorVVP4.N09YP.Qeps from given file unable to import real parameter singularPressureLossARE.Qeps from given file unable to import real parameter singularPressureLossARE.eps from given file unable to import real parameter singularPressureLossGSS.Qeps from given file unable to import real parameter singularPressureLossGSS.eps from given file unable to import real parameter singularPressureLossSTR.Qeps from given file unable to import real parameter singularPressureLossSTR.eps from given file unable to import real parameter DP_GV1.eps from given file unable to import real parameter DP_GV2.Qeps from given file unable to import real parameter DP_GV2.eps from given file unable to import real parameter DP_GV3.Qeps from given file unable to import real parameter DP_GV3.eps from given file unable to import real parameter DP_GV4.Qeps from given file unable to import real parameter DP_GV4.eps from given file unable to import real parameter GV1.DP_are.Qeps from given file unable to import real parameter GV1.DP_are.eps from given file unable to import real parameter DP_BAR1.Qeps from given file unable to import real parameter GV1.DP_pur.Qeps from given file unable to import real parameter GV1.DP_pur.eps from given file unable to import real parameter GV1.DP_vvp1.Qeps from given file unable to import real parameter GV1.DP_vvp1.eps from given file unable to import real parameter GV2.DP_are.Qeps from given file unable to import real parameter GV2.DP_are.eps from given file unable to import real parameter GV2.DP_pur.Qeps from given file unable to import real parameter GV2.DP_pur.eps from given file unable to import real parameter GV2.DP_vvp1.Qeps from given file unable to import real parameter GV2.DP_vvp1.eps from given file unable to import real parameter DP_BAR1.eps from given file unable to import real parameter GV3.DP_are.Qeps from given file unable to import real parameter GV3.DP_are.eps from given file unable to import real parameter GV3.DP_pur.Qeps from given file unable to import real parameter GV3.DP_pur.eps from given file unable to import real parameter GV3.DP_vvp1.Qeps from given file unable to import real parameter GV3.DP_vvp1.eps from given file unable to import real parameter GV4.DP_are.Qeps from given file unable to import real parameter GV4.DP_are.eps from given file unable to import real parameter GV4.DP_pur.Qeps from given file unable to import real parameter GV4.DP_pur.eps from given file unable to import real parameter DP_BAR2.Qeps from given file unable to import real parameter GV4.DP_vvp1.Qeps from given file unable to import real parameter GV4.DP_vvp1.eps from given file unable to import real parameter sensorARE1.N01MD.Qeps from given file unable to import real parameter sensorARE1.N02MD.Qeps from given file unable to import real parameter sensorARE1.N10MT.Qeps from given file unable to import real parameter sensorARE1.N11YT.Qeps from given file unable to import real parameter sensorARE1.N20YD.Qeps from given file unable to import real parameter sensorARE1.N20YP.Qeps from given file unable to import real parameter sensorARE2.N01MD.Qeps from given file unable to import real parameter sensorARE2.N02MD.Qeps from given file unable to import real parameter DP_BAR2.eps from given file unable to import real parameter sensorARE2.N10MT.Qeps from given file unable to import real parameter sensorARE2.N11YT.Qeps from given file unable to import real parameter sensorARE2.N20YD.Qeps from given file unable to import real parameter sensorARE3.N01MD.Qeps from given file unable to import real parameter sensorARE3.N02MD.Qeps from given file unable to import real parameter sensorARE3.N10MT.Qeps from given file unable to import real parameter sensorARE3.N11YT.Qeps from given file unable to import real parameter sensorARE3.N20YD.Qeps from given file unable to import real parameter sensorARE4.N01MD.Qeps from given file unable to import real parameter sensorARE4.N02MD.Qeps from given file unable to import real parameter DP_BAR3.Qeps from given file unable to import real parameter sensorARE4.N10MT.Qeps from given file unable to import real parameter sensorARE4.N11YT.Qeps from given file unable to import real parameter sensorARE4.N20YD.Qeps from given file unable to import real parameter sensorGCT.N001MP.Qeps from given file unable to import real parameter sensorGCT.N002MP.Qeps from given file unable to import real parameter sensorGRE.N001MT.Qeps from given file unable to import real parameter sensorGRE.N776MT.Qeps from given file unable to import real parameter sensorGRE.N777MT.Qeps from given file unable to import real parameter sensorQPUR1.Qeps from given file unable to import real parameter sensorVVP1.N01MD.Qeps from given file unable to import real parameter DP_BAR3.eps from given file unable to import real parameter sensorVVP1.N02MD.Qeps from given file unable to import real parameter sensorVVP1.N04MP.Qeps from given file unable to import real parameter sensorVVP1.N05MP.Qeps from given file unable to import real parameter sensorVVP1.N06MP.Qeps from given file unable to import real parameter sensorVVP1.N07MP.Qeps from given file unable to import real parameter sensorVVP1.N08MT.Qeps from given file unable to import real parameter sensorVVP1.N09YP.Qeps from given file unable to import real parameter sensorVVP2.N01MD.Qeps from given file unable to import real parameter sensorVVP2.N02MD.Qeps from given file unable to import real parameter sensorVVP2.N04MP.Qeps from given file unable to import real parameter DP_BAR4.Qeps from given file unable to import real parameter sensorVVP2.N05MP.Qeps from given file unable to import real parameter sensorVVP2.N06MP.Qeps from given file unable to import real parameter sensorVVP2.N07MP.Qeps from given file unable to import real parameter sensorVVP2.N08MT.Qeps from given file unable to import real parameter sensorVVP2.N09YP.Qeps from given file unable to import real parameter sensorVVP3.N01MD.Qeps from given file unable to import real parameter sensorVVP3.N02MD.Qeps from given file unable to import real parameter sensorVVP3.N04MP.Qeps from given file unable to import real parameter sensorVVP3.N05MP.Qeps from given file unable to import real parameter sensorVVP3.N06MP.Qeps from given file unable to import real parameter DP_BAR4.eps from given file unable to import real parameter sensorVVP3.N07MP.Qeps from given file unable to import real parameter sensorVVP3.N08MT.Qeps from given file unable to import real parameter sensorVVP3.N09YP.Qeps from given file unable to import real parameter sensorVVP4.N01MD.Qeps from given file unable to import real parameter sensorVVP4.N02MD.Qeps from given file unable to import real parameter sensorVVP4.N04MP.Qeps from given file unable to import real parameter sensorVVP4.N05MP.Qeps from given file unable to import real parameter sensorVVP4.N06MP.Qeps from given file unable to import real parameter sensorVVP4.N07MP.Qeps from given file unable to import real parameter sensorVVP4.N08MT.Qeps from given file Simulation process failed. Exited with code 0xffffffffffffffff. unable to import real parameter sensorVVP4.N09YP.Qeps from given file unable to import real parameter singularPressureLossARE.Qeps from given file unable to import real parameter singularPressureLossARE.eps from given file unable to import real parameter singularPressureLossGSS.Qeps from given file unable to import real parameter singularPressureLossGSS.eps from given file unable to import real parameter singularPressureLossSTR.Qeps from given file unable to import real parameter singularPressureLossSTR.eps from given file The initialization problem is inconsistent due to the following equation: 0 != 15.6762 = QVVP40 - DP_BAR4.Q Error in initialization. Storing results and exiting. Use -lv=LOG_INIT -w for more information.
but maybe they are due to the .mat
file not containing all the required values (e.g. because some of them are protected and not saved by Dymola unless you activate the proper option) or because the initialization problem solved for generating the .mat
file is not exactly the same of the initialization problem in the model being run in OpenModelica. In particular, the message
The initialization problem is inconsistent due to the following equation: 0 != 15.6762 = QVVP40 - DP_BAR4.Q
may indicate some inconsistency between the two initialization problems.
Anyway, that is a different issue, if you can't solve it, please open a new ticket on GitHub.
.mat result file