Opened 4 years ago

Closed 3 years ago

#6311 closed defect (worksforme)

Unable to read init file

Reported by: daniel.bouskela@… Owned by: AnHeuermann
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)

GV_Unit.mat (375.6 KB) - added by daniel.bouskela@… 4 years ago.
.mat result file
BIL100_Demo.zip (76.3 KB) - added by daniel.bouskela@… 4 years ago.
Modelica model file corresponding to the result file

Download all attachments as: .zip

Change History (5)

Changed 4 years ago by daniel.bouskela@…

.mat result file

Changed 4 years ago by daniel.bouskela@…

Modelica model file corresponding to the result file

comment:1 Changed 4 years ago by casella

  • Component changed from *unknown* to Run-time
  • Milestone changed from NeedsInput to 1.17.0
  • Owner changed from daniel.bouskela@… to AnHeuermann
  • Status changed from new to assigned

comment:2 Changed 4 years ago by casella

  • Milestone changed from 1.17.0 to 1.18.0

Retargeted to 1.18.0 because of 1.17.0 timed release.

comment:3 Changed 3 years ago by casella

  • Resolution set to worksforme
  • Status changed from assigned to 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.

Note: See TracTickets for help on using tickets.