Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Utilities.TestStreams,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams") translateModel(ModelicaTest.Utilities.TestStreams,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00109/0.00109, allocations: 106.3 kB / 18.46 MB, free: 4.59 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001283/0.001283, allocations: 192.2 kB / 19.4 MB, free: 3.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.345/1.345, allocations: 222.9 MB / 243.1 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2287/0.2287, allocations: 44.18 MB / 337.4 MB, free: 2.68 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.968e-05/2.968e-05, allocations: 2.281 kB / 471.1 MB, free: 13.28 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.001739/0.00178, allocations: 490.7 kB / 471.6 MB, free: 12.8 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008143/0.002606, allocations: 299 kB / 471.9 MB, free: 12.51 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.46e-05/0.002641, allocations: 0 / 471.9 MB, free: 12.51 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.725e-05/0.002664, allocations: 0 / 471.9 MB, free: 12.51 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 7.334e-06/0.002679, allocations: 4 kB / 471.9 MB, free: 12.5 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Utilities.mo:222:3-288:14:writable] Warning: Pure function 'ModelicaTest.Utilities.Streams' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.00097/0.003659, allocations: 95.08 kB / 472 MB, free: 12.41 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 7.68e-05/0.003744, allocations: 7.938 kB / 472 MB, free: 12.41 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.142e-05/0.003801, allocations: 4 kB / 472 MB, free: 12.4 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.413e-05/0.003831, allocations: 3.984 kB / 472 MB, free: 12.4 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.99e-05/0.003866, allocations: 0 / 472 MB, free: 12.4 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.772e-06/0.003877, allocations: 0 / 472 MB, free: 12.4 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002067/0.00409, allocations: 111.8 kB / 472.1 MB, free: 12.29 MB / 350.1 MB Notification: Performance of combineBinaries: time 3.15e-05/0.004129, allocations: 0 / 472.1 MB, free: 12.29 MB / 350.1 MB Notification: Performance of replaceArrayConstructors: time 4.839e-06/0.004139, allocations: 7.906 kB / 472.1 MB, free: 12.28 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.769e-05/0.004163, allocations: 4 kB / 472.1 MB, free: 12.28 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.528e-06/0.004177, allocations: 0 / 472.1 MB, free: 12.28 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 (1) * Number of variables: 1 (1) Notification: Performance of Bindings: time 0.0003789/0.00456, allocations: 161.4 kB / 472.3 MB, free: 12.02 MB / 350.1 MB Notification: Performance of FunctionAlias: time 1.154e-05/0.004578, allocations: 0 / 472.3 MB, free: 12.02 MB / 350.1 MB Notification: Performance of Early Inline: time 7.151e-05/0.004656, allocations: 52.31 kB / 472.3 MB, free: 11.94 MB / 350.1 MB Notification: Performance of simplify1: time 2.264e-06/0.004666, allocations: 4 kB / 472.3 MB, free: 11.94 MB / 350.1 MB Notification: Performance of Alias: time 6.443e-05/0.004735, allocations: 48.62 kB / 472.4 MB, free: 11.85 MB / 350.1 MB Notification: Performance of simplify2: time 6.11e-07/0.004741, allocations: 0 / 472.4 MB, free: 11.85 MB / 350.1 MB Notification: Performance of Events: time 1.692e-05/0.004762, allocations: 0 / 472.4 MB, free: 11.85 MB / 350.1 MB Notification: Performance of Detect States: time 8.08e-05/0.004847, allocations: 46.56 kB / 472.4 MB, free: 11.79 MB / 350.1 MB Notification: Performance of Partitioning: time 5.617e-05/0.004911, allocations: 16.06 kB / 472.4 MB, free: 11.77 MB / 350.1 MB Notification: Performance of Causalize: time 0.0001292/0.005046, allocations: 16.12 kB / 472.5 MB, free: 11.75 MB / 350.1 MB Notification: Performance of After Index Reduction Inline: time 4.558e-05/0.005098, allocations: 48.42 kB / 472.5 MB, free: 11.67 MB / 350.1 MB Notification: Performance of Inline: time 7.365e-05/0.005177, allocations: 68.66 kB / 472.6 MB, free: 11.57 MB / 350.1 MB Notification: Performance of Partitioning: time 2.748e-05/0.005211, allocations: 8.125 kB / 472.6 MB, free: 11.55 MB / 350.1 MB Notification: Performance of Cleanup: time 1.412e-05/0.005231, allocations: 4 kB / 472.6 MB, free: 11.55 MB / 350.1 MB Notification: Performance of Causalize: time 5.816e-05/0.005293, allocations: 36.03 kB / 472.6 MB, free: 11.51 MB / 350.1 MB Notification: Performance of Tearing: time 7.063e-06/0.005308, allocations: 0 / 472.6 MB, free: 11.51 MB / 350.1 MB Notification: Performance of Initialization: time 3.01e-07/0.005313, allocations: 0 / 472.6 MB, free: 11.51 MB / 350.1 MB Notification: Performance of Tearing: time 6.41e-07/0.005318, allocations: 0 / 472.6 MB, free: 11.51 MB / 350.1 MB Notification: Performance of Categorize: time 9.137e-06/0.005333, allocations: 4 kB / 472.6 MB, free: 11.5 MB / 350.1 MB Notification: Performance of Solve: time 1.978e-05/0.005357, allocations: 0 / 472.6 MB, free: 11.5 MB / 350.1 MB Notification: Performance of Jacobian: time 5.13e-06/0.005371, allocations: 8.125 kB / 472.6 MB, free: 11.5 MB / 350.1 MB Notification: Partition statistics after passing the back-end: * Number of ODE partitions: ..................... 0 * Number of algebraic partitions: ............... 0 * Number of ODE event partitions: ............... 0 * Number of algebraic event partitions: ......... 1 * Number of clocked partitions: ................. 0 * Number of initial partitions: ................. 1 * Number of initial(lambda=0) partitions: ....... 0 Notification: Variable statistics after passing the back-end: * Number of states: ............................. 0 (0) {} * Number of discrete states: .................... 0 (0) {} * Number of clocked states: ..................... 0 (0) {NOT YET AVAILABLE} * Number of discrete variables: ................. 1 (1) {result} * Number of top-level inputs: ................... 0 (0) {} Notification: [Simulation] Strong Component statistics after passing the back-end: * Number of single strong components: ........... 0 (scalar:0, array:0, record:0) * Number of multi strong components: ............ 1 (algorithm:1, when:0, if:0, tuple:0) * Number of for-loop strong components: ......... 0 (generic: 0, entwined:0) * Number of algebraic-loop strong components: ... 0 (linear: 0, nonlinear:0) Notification: [Initialization] Strong Component statistics after passing the back-end: * Number of single strong components: ........... 0 (scalar:0, array:0, record:0) * Number of multi strong components: ............ 1 (algorithm:1, when:0, if:0, tuple:0) * Number of for-loop strong components: ......... 0 (generic: 0, entwined:0) * Number of algebraic-loop strong components: ... 0 (linear: 0, nonlinear:0) Notification: Performance of backend: time 3.968e-05/0.005414, allocations: 22.2 kB / 472.7 MB, free: 11.48 MB / 350.1 MB Notification: Performance of SimCode: time 0.001473/0.006894, allocations: 0.9805 MB / 473.6 MB, free: 10.54 MB / 350.1 MB Notification: Performance of Templates: time 0.003898/0.0108, allocations: 0.9103 MB / 474.6 MB, free: 9.633 MB / 350.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams.makefile make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams.makefile clang -Os -DOM_HAVE_PTHREADS -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -Wno-parentheses-equality -Os -march=native "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Resources/C-Sources" -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c" -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=ModelicaTest_4_0_0_ModelicaTest_Utilities_TestStreams -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=0 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams.o ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams.c clang -Os -DOM_HAVE_PTHREADS -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -Wno-parentheses-equality -Os -march=native "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Resources/C-Sources" -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c" -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=ModelicaTest_4_0_0_ModelicaTest_Utilities_TestStreams -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=0 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams_functions.o ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams_functions.c ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams_functions.c:32:31: error: use of undeclared identifier '_OMC_LIT0' tmpMeta1 = stringAppend(_OMC_LIT0,_fileName); ^ ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams_functions.c:33:40: error: use of undeclared identifier '_OMC_LIT1' tmpMeta2 = stringAppend(tmpMeta1,_OMC_LIT1); ^ ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams_functions.c:34:40: error: use of undeclared identifier '_OMC_LIT3' tmpMeta3 = stringAppend(tmpMeta2,_OMC_LIT3); ^ ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams_functions.c:41:33: error: use of undeclared identifier '_OMC_LIT0' tmpMeta4 = stringAppend(_OMC_LIT0,_fileName); ^ ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams_functions.c:42:42: error: use of undeclared identifier '_OMC_LIT1' tmpMeta5 = stringAppend(tmpMeta4,_OMC_LIT1); ^ ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams_functions.c:43:42: error: use of undeclared identifier '_OMC_LIT2' tmpMeta6 = stringAppend(tmpMeta5,_OMC_LIT2); ^ ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams_functions.c:54:3: warning: implicit declaration of function 'ModelicaInternal_removeFile' is invalid in C99 [-Wimplicit-function-declaration] ModelicaInternal_removeFile(MMC_STRINGDATA(_fileName)); ^ ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams_functions.c:63:19: warning: implicit declaration of function 'ModelicaInternal_stat' is invalid in C99 [-Wimplicit-function-declaration] _fileType_ext = ModelicaInternal_stat(MMC_STRINGDATA(_name)); ^ ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams_functions.c:78:3: warning: implicit declaration of function 'ModelicaStreams_closeFile' is invalid in C99 [-Wimplicit-function-declaration] ModelicaStreams_closeFile(MMC_STRINGDATA(_fileName)); ^ ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams_functions.c:87:24: warning: implicit declaration of function 'ModelicaInternal_countLines' is invalid in C99 [-Wimplicit-function-declaration] _numberOfLines_ext = ModelicaInternal_countLines(MMC_STRINGDATA(_fileName)); ^ ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams_functions.c:102:3: warning: implicit declaration of function 'ModelicaError' is invalid in C99 [-Wimplicit-function-declaration] ModelicaError(MMC_STRINGDATA(_string)); ^ ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams_functions.c:108:3: warning: implicit declaration of function 'ModelicaInternal_print' is invalid in C99 [-Wimplicit-function-declaration] ModelicaInternal_print(MMC_STRINGDATA(_string), MMC_STRINGDATA(_fileName)); ^ ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams_functions.c:119:3: warning: implicit declaration of function 'ModelicaInternal_readFile' is invalid in C99 [-Wimplicit-function-declaration] ModelicaInternal_readFile(MMC_STRINGDATA(_fileName), (const char**) _stringVector_c89, size_of_dimension_base_array(_stringVector, ((modelica_integer) 1))); ^ ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams_functions.c:134:17: warning: implicit declaration of function 'ModelicaInternal_readLine' is invalid in C99 [-Wimplicit-function-declaration] _string_ext = ModelicaInternal_readLine(MMC_STRINGDATA(_fileName), _lineNumber_ext, &_endOfFile_ext); ^ ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams_functions.c:134:15: warning: incompatible integer to pointer conversion assigning to 'const char *' from 'int' [-Wint-conversion] _string_ext = ModelicaInternal_readLine(MMC_STRINGDATA(_fileName), _lineNumber_ext, &_endOfFile_ext); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams_functions.c:178:12: error: use of undeclared identifier '_OMC_LIT6' _file1 = _OMC_LIT6; ^ ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams_functions.c:179:12: error: use of undeclared identifier '_OMC_LIT7' _file2 = _OMC_LIT7; ^ ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams_functions.c:180:12: error: use of undeclared identifier '_OMC_LIT8' _line1 = _OMC_LIT8; ^ ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams_functions.c:181:12: error: use of undeclared identifier '_OMC_LIT9' _line2 = _OMC_LIT9; ^ ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams_functions.c:182:12: error: use of undeclared identifier '_OMC_LIT10' _line3 = _OMC_LIT10; ^ ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams_functions.c:183:12: error: use of undeclared identifier '_OMC_LIT11' _line4 = _OMC_LIT11; ^ ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams_functions.c:184:12: error: use of undeclared identifier '_OMC_LIT12' _line5 = _OMC_LIT12; ^ ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams_functions.c:189:52: error: use of undeclared identifier '_OMC_LIT13' omc_Modelica_Utilities_Streams_print(threadData, _OMC_LIT13, _OMC_LIT4); ^ ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams_functions.c:189:64: error: use of undeclared identifier '_OMC_LIT4' omc_Modelica_Utilities_Streams_print(threadData, _OMC_LIT13, _OMC_LIT4); ^ ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams_functions.c:191:52: error: use of undeclared identifier '_OMC_LIT13' omc_Modelica_Utilities_Streams_print(threadData, _OMC_LIT13, _logFile); ^ ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams_functions.c:218:53: error: use of undeclared identifier '_OMC_LIT14' omc_assert(threadData, info, MMC_STRINGDATA(_OMC_LIT14)); ^ ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams_functions.c:230:53: error: use of undeclared identifier '_OMC_LIT15' omc_assert(threadData, info, MMC_STRINGDATA(_OMC_LIT15)); ^ ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams_functions.c:242:53: error: use of undeclared identifier '_OMC_LIT16' omc_assert(threadData, info, MMC_STRINGDATA(_OMC_LIT16)); ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 9 warnings and 20 errors generated. make: *** [: ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams_functions.o] Error 1