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: adrpo
Priority: high Milestone:
Component: Run-time Version:
Keywords: Cc: wbraun, lochel

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 Changed 8 years ago by adeas31

  • Cc wbraun lochel added
  • Component changed from OMEdit to Run-time
  • Milestone changed from Future to 1.12.0
  • Owner changed from adeas31 to adrpo
  • Status changed from new to assigned

comment:2 Changed 7 years ago by casella

  • Milestone changed from 1.12.0 to 1.13.0

Milestone moved to 1.13.0 due to 1.12.0 already being released.

comment:3 Changed 6 years ago by casella

  • Milestone changed from 1.13.0 to 1.14.0

Rescheduled to 1.14.0 after 1.13.0 releasee

comment:4 Changed 5 years ago by casella

  • Milestone changed from 1.14.0 to 1.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 Changed 4 years ago by casella

  • Milestone changed from 1.16.0 to 1.17.0

Retargeted to 1.17.0 after 1.16.0 release

comment:6 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:7 Changed 3 years ago by casella

  • Milestone 1.18.0 deleted

Ticket retargeted after milestone closed

Note: See TracTickets for help on using tickets.