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.001631/0.001632, allocations: 111.7 kB / 18.47 MB, free: 4.59 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002172/0.002172, allocations: 206.3 kB / 19.42 MB, free: 3.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.465/1.465, allocations: 227.4 MB / 247.6 MB, free: 10.41 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2254/0.2254, allocations: 46.1 MB / 345 MB, free: 11.48 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.828e-05/2.829e-05, allocations: 6.219 kB / 481.9 MB, free: 4.148 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.00147/0.001507, allocations: 489.5 kB / 482.4 MB, free: 3.676 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001191/0.002711, allocations: 0.7854 MB / 483.2 MB, free: 2.887 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.278e-05/0.002746, allocations: 0 / 483.2 MB, free: 2.887 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.288e-05/0.002764, allocations: 0 / 483.2 MB, free: 2.887 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002346/0.003006, allocations: 11.98 kB / 483.2 MB, free: 2.875 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.0006346/0.003664, allocations: 50.22 kB / 483.2 MB, free: 2.828 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 6.114e-05/0.003735, allocations: 8 kB / 483.2 MB, free: 2.82 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.73e-05/0.003778, allocations: 4 kB / 483.2 MB, free: 2.816 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.869e-05/0.003802, allocations: 0 / 483.2 MB, free: 2.816 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.316e-05/0.003889, allocations: 11.97 kB / 483.2 MB, free: 2.805 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.755e-06/0.003905, allocations: 0 / 483.2 MB, free: 2.805 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001388/0.004048, allocations: 59.89 kB / 483.3 MB, free: 2.746 MB / 350.1 MB Notification: Performance of combineBinaries: time 2.597e-05/0.004082, allocations: 11.84 kB / 483.3 MB, free: 2.734 MB / 350.1 MB Notification: Performance of replaceArrayConstructors: time 2.154e-06/0.00409, allocations: 0 / 483.3 MB, free: 2.734 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.409e-05/0.004109, allocations: 0 / 483.3 MB, free: 2.734 MB / 350.1 MB Notification: Performance of FrontEnd: time 8.346e-06/0.004122, allocations: 0 / 483.3 MB, free: 2.734 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.0002471/0.004374, allocations: 165.3 kB / 483.5 MB, free: 2.473 MB / 350.1 MB Notification: Performance of FunctionAlias: time 1.508e-05/0.004395, allocations: 7.938 kB / 483.5 MB, free: 2.465 MB / 350.1 MB Notification: Performance of Early Inline: time 6.152e-05/0.004462, allocations: 48.36 kB / 483.5 MB, free: 2.391 MB / 350.1 MB Notification: Performance of simplify1: time 1.894e-06/0.00447, allocations: 4 kB / 483.5 MB, free: 2.387 MB / 350.1 MB Notification: Performance of Alias: time 4.874e-05/0.004524, allocations: 52.61 kB / 483.6 MB, free: 2.297 MB / 350.1 MB Notification: Performance of simplify2: time 1.082e-06/0.00453, allocations: 0 / 483.6 MB, free: 2.297 MB / 350.1 MB Notification: Performance of Detect States: time 6.208e-05/0.004596, allocations: 36.08 kB / 483.6 MB, free: 2.246 MB / 350.1 MB Notification: Performance of Events: time 1.871e-05/0.004621, allocations: 8 kB / 483.6 MB, free: 2.238 MB / 350.1 MB Notification: Performance of Partitioning: time 4.63e-05/0.004672, allocations: 20.05 kB / 483.6 MB, free: 2.211 MB / 350.1 MB Notification: Performance of Causalize: time 0.0001054/0.004784, allocations: 24.12 kB / 483.7 MB, free: 2.18 MB / 350.1 MB Notification: Performance of After Index Reduction Inline: time 4.014e-05/0.004831, allocations: 44.36 kB / 483.7 MB, free: 2.109 MB / 350.1 MB Notification: Performance of Inline: time 7.746e-05/0.004914, allocations: 68.55 kB / 483.8 MB, free: 2.008 MB / 350.1 MB Notification: Performance of Partitioning: time 1.213e-05/0.004933, allocations: 12.11 kB / 483.8 MB, free: 1.988 MB / 350.1 MB Notification: Performance of Cleanup: time 9.047e-06/0.004948, allocations: 4.188 kB / 483.8 MB, free: 1.984 MB / 350.1 MB Notification: Performance of Causalize: time 6.299e-05/0.005015, allocations: 36.05 kB / 483.8 MB, free: 1.941 MB / 350.1 MB Notification: Performance of Tearing: time 1.128e-05/0.005034, allocations: 0 / 483.8 MB, free: 1.941 MB / 350.1 MB Notification: Performance of Initialization: time 3.5e-07/0.005039, allocations: 3.938 kB / 483.8 MB, free: 1.938 MB / 350.1 MB Notification: Performance of Tearing: time 1.092e-06/0.005044, allocations: 0 / 483.8 MB, free: 1.938 MB / 350.1 MB Notification: Performance of Categorize: time 6.472e-06/0.005054, allocations: 0 / 483.8 MB, free: 1.938 MB / 350.1 MB Notification: Performance of Solve: time 1.513e-05/0.005073, allocations: 7.938 kB / 483.8 MB, free: 1.93 MB / 350.1 MB Notification: Performance of Jacobian: time 3.146e-06/0.00508, allocations: 0 / 483.8 MB, free: 1.93 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.858e-05/0.005112, allocations: 14.58 kB / 483.9 MB, free: 1.922 MB / 350.1 MB Notification: Performance of SimCode: time 0.0007584/0.005875, allocations: 0.8679 MB / 484.7 MB, free: 1.059 MB / 350.1 MB Notification: Performance of Templates: time 0.002422/0.008308, allocations: 0.5826 MB / 485.3 MB, free: 488 kB / 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