Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Utilities.TestStreams,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams") translateModel(ModelicaTest.Utilities.TestStreams,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001076/0.001076, allocations: 111.8 kB / 18.47 MB, free: 4.605 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001131/0.001131, allocations: 218.2 kB / 19.42 MB, free: 3.66 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.152/1.152, allocations: 227.4 MB / 247.6 MB, free: 10.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1774/0.1774, allocations: 46.1 MB / 345 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.515e-05/1.516e-05, allocations: 2.281 kB / 481.9 MB, free: 4.176 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.001015/0.001038, allocations: 493.5 kB / 482.4 MB, free: 3.699 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005546/0.001603, allocations: 295.1 kB / 482.7 MB, free: 3.41 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.444e-05/0.001628, allocations: 4 kB / 482.7 MB, free: 3.406 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.119e-05/0.001645, allocations: 0 / 482.7 MB, free: 3.406 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.358e-06/0.001653, allocations: 3.938 kB / 482.7 MB, free: 3.402 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Utilities.mo:221:3-287: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.0006158/0.002277, allocations: 94 kB / 482.7 MB, free: 3.316 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.051e-05/0.002326, allocations: 4 kB / 482.8 MB, free: 3.312 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.748e-05/0.002359, allocations: 3.984 kB / 482.8 MB, free: 3.309 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.417e-05/0.002377, allocations: 7.984 kB / 482.8 MB, free: 3.301 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.578e-05/0.002397, allocations: 0 / 482.8 MB, free: 3.301 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.107e-05/0.002413, allocations: 4 kB / 482.8 MB, free: 3.297 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001484/0.002565, allocations: 103.9 kB / 482.9 MB, free: 3.195 MB / 350.1 MB Notification: Performance of combineBinaries: time 1.476e-05/0.002587, allocations: 3.938 kB / 482.9 MB, free: 3.191 MB / 350.1 MB Notification: Performance of replaceArrayConstructors: time 2.775e-06/0.002595, allocations: 11.91 kB / 482.9 MB, free: 3.18 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.839e-06/0.00261, allocations: 0 / 482.9 MB, free: 3.18 MB / 350.1 MB Notification: Performance of FrontEnd: time 6.352e-06/0.00262, allocations: 0 / 482.9 MB, free: 3.18 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.0001968/0.002821, allocations: 165.4 kB / 483 MB, free: 2.918 MB / 350.1 MB Notification: Performance of FunctionAlias: time 8.316e-06/0.002834, allocations: 3.953 kB / 483.1 MB, free: 2.914 MB / 350.1 MB Notification: Performance of Early Inline: time 4.856e-05/0.002887, allocations: 40.38 kB / 483.1 MB, free: 2.848 MB / 350.1 MB Notification: Performance of simplify1: time 1.403e-06/0.002895, allocations: 4 kB / 483.1 MB, free: 2.844 MB / 350.1 MB Notification: Performance of Alias: time 4.212e-05/0.002941, allocations: 52.61 kB / 483.1 MB, free: 2.754 MB / 350.1 MB Notification: Performance of simplify2: time 6.72e-07/0.002947, allocations: 0 / 483.1 MB, free: 2.754 MB / 350.1 MB Notification: Performance of Events: time 1.075e-05/0.002963, allocations: 4 kB / 483.2 MB, free: 2.75 MB / 350.1 MB Notification: Performance of Detect States: time 4.108e-05/0.003008, allocations: 32.14 kB / 483.2 MB, free: 2.703 MB / 350.1 MB Notification: Performance of Partitioning: time 3.57e-05/0.00305, allocations: 16.11 kB / 483.2 MB, free: 2.68 MB / 350.1 MB Notification: Performance of Causalize: time 8.335e-05/0.003139, allocations: 20.11 kB / 483.2 MB, free: 2.652 MB / 350.1 MB Notification: Performance of After Index Reduction Inline: time 4.092e-05/0.003186, allocations: 52.36 kB / 483.3 MB, free: 2.574 MB / 350.1 MB Notification: Performance of Inline: time 5.281e-05/0.003245, allocations: 64.62 kB / 483.3 MB, free: 2.477 MB / 350.1 MB Notification: Performance of Partitioning: time 7.694e-06/0.003259, allocations: 8.125 kB / 483.3 MB, free: 2.461 MB / 350.1 MB Notification: Performance of Cleanup: time 6.642e-06/0.003271, allocations: 7.938 kB / 483.3 MB, free: 2.453 MB / 350.1 MB Notification: Performance of Causalize: time 4.196e-05/0.003317, allocations: 24.11 kB / 483.4 MB, free: 2.422 MB / 350.1 MB Notification: Performance of Tearing: time 5.39e-06/0.003329, allocations: 0 / 483.4 MB, free: 2.422 MB / 350.1 MB Notification: Performance of Initialization: time 3.81e-07/0.003333, allocations: 0 / 483.4 MB, free: 2.422 MB / 350.1 MB Notification: Performance of Tearing: time 2.585e-06/0.003339, allocations: 4 kB / 483.4 MB, free: 2.418 MB / 350.1 MB Notification: Performance of Categorize: time 4.648e-06/0.003349, allocations: 4.188 kB / 483.4 MB, free: 2.414 MB / 350.1 MB Notification: Performance of Solve: time 1.219e-05/0.003365, allocations: 3.938 kB / 483.4 MB, free: 2.41 MB / 350.1 MB Notification: Performance of Jacobian: time 2.464e-06/0.003371, allocations: 0 / 483.4 MB, free: 2.41 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 2.295e-05/0.003398, allocations: 17.83 kB / 483.4 MB, free: 2.398 MB / 350.1 MB Notification: Performance of SimCode: time 0.0007606/0.004163, allocations: 0.9833 MB / 484.4 MB, free: 1.441 MB / 350.1 MB Notification: Performance of Templates: time 0.002679/0.006851, allocations: 0.9104 MB / 485.3 MB, free: 0.5312 MB / 350.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams.makefile make -j1 -f ModelicaTest_trunk_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 trunk/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_trunk_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_trunk_ModelicaTest.Utilities.TestStreams.o ModelicaTest_trunk_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 trunk/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_trunk_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_trunk_ModelicaTest.Utilities.TestStreams_functions.o ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams_functions.c ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams_functions.c:32:31: error: use of undeclared identifier '_OMC_LIT0' tmpMeta1 = stringAppend(_OMC_LIT0,_fileName); ^ ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams_functions.c:33:40: error: use of undeclared identifier '_OMC_LIT1' tmpMeta2 = stringAppend(tmpMeta1,_OMC_LIT1); ^ ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams_functions.c:34:40: error: use of undeclared identifier '_OMC_LIT3' tmpMeta3 = stringAppend(tmpMeta2,_OMC_LIT3); ^ ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams_functions.c:41:33: error: use of undeclared identifier '_OMC_LIT0' tmpMeta4 = stringAppend(_OMC_LIT0,_fileName); ^ ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams_functions.c:42:42: error: use of undeclared identifier '_OMC_LIT1' tmpMeta5 = stringAppend(tmpMeta4,_OMC_LIT1); ^ ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams_functions.c:43:42: error: use of undeclared identifier '_OMC_LIT2' tmpMeta6 = stringAppend(tmpMeta5,_OMC_LIT2); ^ ModelicaTest_trunk_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_trunk_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_trunk_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_trunk_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_trunk_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_trunk_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_trunk_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_trunk_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_trunk_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_trunk_ModelicaTest.Utilities.TestStreams_functions.c:178:12: error: use of undeclared identifier '_OMC_LIT6' _file1 = _OMC_LIT6; ^ ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams_functions.c:179:12: error: use of undeclared identifier '_OMC_LIT7' _file2 = _OMC_LIT7; ^ ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams_functions.c:180:12: error: use of undeclared identifier '_OMC_LIT8' _line1 = _OMC_LIT8; ^ ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams_functions.c:181:12: error: use of undeclared identifier '_OMC_LIT9' _line2 = _OMC_LIT9; ^ ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams_functions.c:182:12: error: use of undeclared identifier '_OMC_LIT10' _line3 = _OMC_LIT10; ^ ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams_functions.c:183:12: error: use of undeclared identifier '_OMC_LIT11' _line4 = _OMC_LIT11; ^ ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams_functions.c:184:12: error: use of undeclared identifier '_OMC_LIT12' _line5 = _OMC_LIT12; ^ ModelicaTest_trunk_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_trunk_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_trunk_ModelicaTest.Utilities.TestStreams_functions.c:191:52: error: use of undeclared identifier '_OMC_LIT13' omc_Modelica_Utilities_Streams_print(threadData, _OMC_LIT13, _logFile); ^ ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams_functions.c:218:53: error: use of undeclared identifier '_OMC_LIT14' omc_assert(threadData, info, MMC_STRINGDATA(_OMC_LIT14)); ^ ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams_functions.c:230:53: error: use of undeclared identifier '_OMC_LIT15' omc_assert(threadData, info, MMC_STRINGDATA(_OMC_LIT15)); ^ ModelicaTest_trunk_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_trunk_ModelicaTest.Utilities.TestStreams_functions.o] Error 1