Opened 8 years ago

Last modified 3 years ago

#4313 assigned defect

Read and write issues with KeyWordIO

Reported by: Christian Kral <dr.christian.kral@…> Owned by: Adrian Pop
Priority: high Milestone:
Component: Run-time Version:
Keywords: Cc: Willi Braun, Lennart Ochel

Description

The KeyWordIO library is included as System Library to OpenModelica. I am currently trying to make the library as compatible to OpenModelica, as possible. So please consider the Examples package of version https://github.com/christiankral/KeyWordIO/tree/1ac688f2e1185d1a1d06c72c2af26a9e2e7b6c07

  • ReadRealParameter: works OK
  • ReadRealCSV: only the part of reading the tab separated file (line 8) is working; the other reading activities (line 10,12,14) do not work, although only the delimiter is different... the error message is
    stdout | error | <p>a-&gt;dim_size[0] != b-&gt;dim_size[0], 0 != 3<br>
    
  • ReadStringCSV: compiles OK, but does not run
  • ReadStringCSVUnquoted: compiles OK, but does not run
  • ReadColumnByHeaderName: compiler error
    KeyWordIO.Examples.ReadColumnByHeaderName_08bnd.o: In function `KeyWordIO_Examples_ReadColumnByHeaderName_eqFunction_2':
    KeyWordIO.Examples.ReadColumnByHeaderName_08bnd.c:(.text+0x2c2): undefined reference to `string_get_2D'
    KeyWordIO.Examples.ReadColumnByHeaderName_08bnd.o: In function `KeyWordIO_Examples_ReadColumnByHeaderName_eqFunction_3':
    KeyWordIO.Examples.ReadColumnByHeaderName_08bnd.c:(.text+0x3c0): undefined reference to `string_get_2D'
    KeyWordIO.Examples.ReadColumnByHeaderName_08bnd.o: In function `KeyWordIO_Examples_ReadColumnByHeaderName_eqFunction_4':
    KeyWordIO.Examples.ReadColumnByHeaderName_08bnd.c:(.text+0x4c0): undefined reference to `string_get_2D'
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    KeyWordIO.Examples.ReadColumnByHeaderName.makefile:30: recipe for target 'omc_main_target' failed
    make: *** [omc_main_target] Error 1
    Compilation process failed. Exited with code 2.
    
  • WriteRealVariable: works OK
  • WriteRealVariables: works OK
  • CaseExamples.ElectricalCases: works OK, if parameter case is set to cases = 6 instead of determining the case by the original implementation (which does NOT work)
    cases=KeyWordIO.readCaseNumbersCSV(
          fileName=fileName,
          header=header,
          delimiter="\t",
          cache=cache) "Number of cases";
    

Change History (7)

comment:1 by Adeel Asghar, 8 years ago

Cc: Willi Braun Lennart Ochel added
Component: OMEditRun-time
Milestone: Future1.12.0
Owner: changed from Adeel Asghar to Adrian Pop
Status: newassigned

comment:2 by Francesco Casella, 7 years ago

Milestone: 1.12.01.13.0

Milestone moved to 1.13.0 due to 1.12.0 already being released.

comment:3 by Francesco Casella, 6 years ago

Milestone: 1.13.01.14.0

Rescheduled to 1.14.0 after 1.13.0 releasee

comment:4 by Francesco Casella, 5 years ago

Milestone: 1.14.01.16.0

Releasing 1.14.0 which is stable and has many improvements w.r.t. 1.13.2. This issue is rescheduled to 1.16.0

comment:5 by Francesco Casella, 4 years ago

Milestone: 1.16.01.17.0

Retargeted to 1.17.0 after 1.16.0 release

comment:6 by Francesco Casella, 4 years ago

Milestone: 1.17.01.18.0

Retargeted to 1.18.0 because of 1.17.0 timed release.

comment:7 by Francesco Casella, 3 years ago

Milestone: 1.18.0

Ticket retargeted after milestone closed

Note: See TracTickets for help on using tickets.