Problems when writing data to file in when section
Reported by: |
Christian Kral <dr.christian.kral@…> |
Owned by: |
Lennart Ochel |
Priority:
|
high
|
Milestone:
|
1.9.4
|
Component:
|
Backend
|
Version:
|
|
Keywords:
|
|
Cc:
|
|
Please consider the attached example. A simple R-L circuit is switched on. Data shall be written to a data file "output.dat" at different times. The compilation fails with error:
make -j2 -f WhenPackage.WhenExample.makefile
clang -fPIC -O0 -falign-functions -march=native -I"/usr/include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -c -o WhenPackage.WhenExample.o WhenPackage.WhenExample.c
clang -fPIC -O0 -falign-functions -march=native -I"/usr/include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -c -o WhenPackage.WhenExample_functions.o WhenPackage.WhenExample_functions.c
clang -fPIC -O0 -falign-functions -march=native -I"/usr/include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -c -o WhenPackage.WhenExample_records.o WhenPackage.WhenExample_records.c
WhenPackage.WhenExample.c:334:61: error: use of undeclared identifier '$Presistor1$Pi'
array_alloc_scalar_real_array(&tmp35, 1, (modelica_real)$Presistor1$Pi);
^
WhenPackage.WhenExample.c:357:61: error: use of undeclared identifier '$Presistor1$Pi'
array_alloc_scalar_real_array(&tmp38, 1, (modelica_real)$Presistor1$Pi);
^
WhenPackage.WhenExample.c:380:61: error: use of undeclared identifier '$Presistor1$Pi'
array_alloc_scalar_real_array(&tmp41, 1, (modelica_real)$Presistor1$Pi);
^
3 errors generated.
make: *** [WhenPackage.WhenExample.o] Error 1
make: *** Waiting for unfinished jobs....
Compilation process failed. Exited with code 2.
The issues applies to
- OpenModelica 1.9.4~dev-227-g9738428
- Ubuntu 14.04 32bit
Example showing the issue