Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile.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.TestReadFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile") translateModel(ModelicaTest.Utilities.TestReadFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001095/0.001095, allocations: 106.1 kB / 18.46 MB, free: 4.609 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001117/0.001117, allocations: 215.9 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.132/1.132, allocations: 227.4 MB / 247.6 MB, free: 10.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1691/0.1691, allocations: 46.1 MB / 345 MB, free: 11.52 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.142e-05/1.143e-05, allocations: 2.281 kB / 481.9 MB, free: 4.199 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.0009554/0.0009744, allocations: 497.5 kB / 482.4 MB, free: 3.719 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008219/0.001807, allocations: 0.7738 MB / 483.1 MB, free: 2.941 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.959e-05/0.001836, allocations: 0 / 483.1 MB, free: 2.941 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.389e-05/0.001855, allocations: 7.875 kB / 483.2 MB, free: 2.934 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001223/0.001984, allocations: 11.92 kB / 483.2 MB, free: 2.922 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Utilities.mo:322:3-362:15:writable] Warning: Pure function 'ModelicaTest.Utilities.ReadFile' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.0004366/0.002432, allocations: 54.11 kB / 483.2 MB, free: 2.875 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.785e-05/0.002488, allocations: 11.98 kB / 483.2 MB, free: 2.863 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.658e-05/0.002521, allocations: 8 kB / 483.2 MB, free: 2.855 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.383e-05/0.002539, allocations: 0 / 483.2 MB, free: 2.855 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.102e-05/0.002604, allocations: 4 kB / 483.2 MB, free: 2.852 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.362e-06/0.002617, allocations: 0 / 483.2 MB, free: 2.852 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001086/0.00273, allocations: 51.95 kB / 483.3 MB, free: 2.801 MB / 350.1 MB Notification: Performance of combineBinaries: time 2.612e-05/0.002764, allocations: 15.83 kB / 483.3 MB, free: 2.785 MB / 350.1 MB Notification: Performance of replaceArrayConstructors: time 1.413e-06/0.00277, allocations: 3.938 kB / 483.3 MB, free: 2.781 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.917e-06/0.002783, allocations: 0 / 483.3 MB, free: 2.781 MB / 350.1 MB Notification: Performance of FrontEnd: time 6.282e-06/0.002793, allocations: 0 / 483.3 MB, free: 2.781 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.0001984/0.002996, allocations: 165.3 kB / 483.5 MB, free: 2.52 MB / 350.1 MB Notification: Performance of FunctionAlias: time 9.878e-06/0.003011, allocations: 3.953 kB / 483.5 MB, free: 2.516 MB / 350.1 MB Notification: Performance of Early Inline: time 4.587e-05/0.003061, allocations: 52.36 kB / 483.5 MB, free: 2.438 MB / 350.1 MB Notification: Performance of simplify1: time 1.282e-06/0.003068, allocations: 0 / 483.5 MB, free: 2.438 MB / 350.1 MB Notification: Performance of Alias: time 4.498e-05/0.003118, allocations: 52.62 kB / 483.6 MB, free: 2.348 MB / 350.1 MB Notification: Performance of simplify2: time 4.71e-07/0.003123, allocations: 0 / 483.6 MB, free: 2.348 MB / 350.1 MB Notification: Performance of Events: time 9.709e-06/0.003136, allocations: 0 / 483.6 MB, free: 2.348 MB / 350.1 MB Notification: Performance of Detect States: time 4.523e-05/0.003185, allocations: 42.52 kB / 483.6 MB, free: 2.293 MB / 350.1 MB Notification: Performance of Partitioning: time 3.278e-05/0.003223, allocations: 12.12 kB / 483.6 MB, free: 2.273 MB / 350.1 MB Notification: Performance of Causalize: time 8.258e-05/0.003311, allocations: 32.05 kB / 483.7 MB, free: 2.234 MB / 350.1 MB Notification: Performance of After Index Reduction Inline: time 3.241e-05/0.003349, allocations: 40.38 kB / 483.7 MB, free: 2.168 MB / 350.1 MB Notification: Performance of Inline: time 6.588e-05/0.003422, allocations: 72.48 kB / 483.8 MB, free: 2.062 MB / 350.1 MB Notification: Performance of Partitioning: time 7.644e-06/0.003435, allocations: 8.125 kB / 483.8 MB, free: 2.047 MB / 350.1 MB Notification: Performance of Cleanup: time 5.68e-06/0.003445, allocations: 0 / 483.8 MB, free: 2.047 MB / 350.1 MB Notification: Performance of Causalize: time 4.618e-05/0.003497, allocations: 44.16 kB / 483.8 MB, free: 1.996 MB / 350.1 MB Notification: Performance of Tearing: time 5.771e-06/0.00351, allocations: 0 / 483.8 MB, free: 1.996 MB / 350.1 MB Notification: Performance of Initialization: time 3.61e-07/0.003514, allocations: 0 / 483.8 MB, free: 1.996 MB / 350.1 MB Notification: Performance of Tearing: time 7.51e-07/0.003518, allocations: 0 / 483.8 MB, free: 1.996 MB / 350.1 MB Notification: Performance of Categorize: time 6.432e-06/0.003527, allocations: 3.984 kB / 483.8 MB, free: 1.992 MB / 350.1 MB Notification: Performance of Solve: time 1.374e-05/0.003546, allocations: 7.938 kB / 483.8 MB, free: 1.984 MB / 350.1 MB Notification: Performance of Jacobian: time 2.265e-06/0.003553, allocations: 3.938 kB / 483.8 MB, free: 1.98 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.149e-05/0.003578, allocations: 14.02 kB / 483.9 MB, free: 1.973 MB / 350.1 MB Notification: Performance of SimCode: time 0.0005932/0.004175, allocations: 0.8646 MB / 484.7 MB, free: 1.105 MB / 350.1 MB Notification: Performance of Templates: time 0.002075/0.00626, allocations: 0.5825 MB / 485.3 MB, free: 0.5234 MB / 350.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile.makefile make -j1 -f ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile.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_TestReadFile -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.TestReadFile.o ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile.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_TestReadFile -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.TestReadFile_functions.o ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile_functions.c ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile_functions.c:15: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.TestReadFile_functions.c:30: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.TestReadFile_functions.c:41: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.TestReadFile_functions.c:56: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.TestReadFile_functions.c:56: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.TestReadFile_functions.c:93:12: error: use of undeclared identifier '_OMC_LIT3' _line1 = _OMC_LIT3; ^ ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile_functions.c:94:12: error: use of undeclared identifier '_OMC_LIT4' _line2 = _OMC_LIT4; ^ ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile_functions.c:95:12: error: use of undeclared identifier '_OMC_LIT5' _line3 = _OMC_LIT5; ^ ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile_functions.c:100:52: error: use of undeclared identifier '_OMC_LIT6' omc_Modelica_Utilities_Streams_print(threadData, _OMC_LIT6, _OMC_LIT0); ^ ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile_functions.c:100:63: error: use of undeclared identifier '_OMC_LIT0' omc_Modelica_Utilities_Streams_print(threadData, _OMC_LIT6, _OMC_LIT0); ^ ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile_functions.c:102:52: error: use of undeclared identifier '_OMC_LIT6' omc_Modelica_Utilities_Streams_print(threadData, _OMC_LIT6, _logFile); ^ ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile_functions.c:111:53: error: use of undeclared identifier '_OMC_LIT7' omc_assert(threadData, info, MMC_STRINGDATA(_OMC_LIT7)); ^ ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile_functions.c:123:53: error: use of undeclared identifier '_OMC_LIT8' omc_assert(threadData, info, MMC_STRINGDATA(_OMC_LIT8)); ^ ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile_functions.c:135:53: error: use of undeclared identifier '_OMC_LIT9' omc_assert(threadData, info, MMC_STRINGDATA(_OMC_LIT9)); ^ ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile_functions.c:147:53: error: use of undeclared identifier '_OMC_LIT10' omc_assert(threadData, info, MMC_STRINGDATA(_OMC_LIT10)); ^ ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile_functions.c:159:53: error: use of undeclared identifier '_OMC_LIT11' omc_assert(threadData, info, MMC_STRINGDATA(_OMC_LIT11)); ^ ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile_functions.c:167:31: error: use of undeclared identifier '_OMC_LIT0' if(!((stringEqual(_rline, _OMC_LIT0)) && _eof)) ^ ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile_functions.c:167:31: error: use of undeclared identifier '_OMC_LIT0' ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile_functions.c:171:53: error: use of undeclared identifier '_OMC_LIT12' omc_assert(threadData, info, MMC_STRINGDATA(_OMC_LIT12)); ^ 5 warnings and 14 errors generated. make: *** [: ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile_functions.o] Error 1