Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.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.TestReadFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile") translateModel(ModelicaTest.Utilities.TestReadFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001141/0.001141, allocations: 106.2 kB / 18.46 MB, free: 4.594 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.001155/0.001155, allocations: 188.3 kB / 19.39 MB, free: 3.672 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.35/1.35, allocations: 222.9 MB / 243.1 MB, free: 15.04 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.2492/0.2492, allocations: 44.18 MB / 337.4 MB, free: 2.652 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.314e-05/2.315e-05, allocations: 2.281 kB / 471.1 MB, free: 13.24 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.00129/0.001321, allocations: 496.6 kB / 471.6 MB, free: 12.76 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001052/0.002385, allocations: 0.7737 MB / 472.4 MB, free: 11.98 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.745e-05/0.002423, allocations: 0 / 472.4 MB, free: 11.98 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.283e-05/0.002444, allocations: 0 / 472.4 MB, free: 11.98 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001678/0.002617, allocations: 11.92 kB / 472.4 MB, free: 11.97 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Utilities.mo:323:3-363: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.0005806/0.003212, allocations: 51.81 kB / 472.5 MB, free: 11.92 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 6.787e-05/0.003289, allocations: 15.88 kB / 472.5 MB, free: 11.9 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.954e-05/0.003336, allocations: 4 kB / 472.5 MB, free: 11.9 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.981e-05/0.003361, allocations: 4 kB / 472.5 MB, free: 11.89 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.405e-05/0.00344, allocations: 0 / 472.5 MB, free: 11.89 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.864e-06/0.003455, allocations: 0 / 472.5 MB, free: 11.89 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001768/0.003639, allocations: 59.94 kB / 472.5 MB, free: 11.84 MB / 350.1 MB Notification: Performance of combineBinaries: time 2.853e-05/0.003676, allocations: 11.83 kB / 472.5 MB, free: 11.82 MB / 350.1 MB Notification: Performance of replaceArrayConstructors: time 3.547e-06/0.003685, allocations: 4 kB / 472.5 MB, free: 11.82 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.358e-05/0.003703, allocations: 0 / 472.5 MB, free: 11.82 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.258e-06/0.003717, allocations: 0 / 472.5 MB, free: 11.82 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.000263/0.003983, allocations: 161.3 kB / 472.7 MB, free: 11.56 MB / 350.1 MB Notification: Performance of FunctionAlias: time 1.42e-05/0.004004, allocations: 3.938 kB / 472.7 MB, free: 11.56 MB / 350.1 MB Notification: Performance of Early Inline: time 5.869e-05/0.004067, allocations: 52.39 kB / 472.8 MB, free: 11.48 MB / 350.1 MB Notification: Performance of simplify1: time 3.817e-06/0.004078, allocations: 4 kB / 472.8 MB, free: 11.48 MB / 350.1 MB Notification: Performance of Alias: time 5.809e-05/0.004141, allocations: 56.55 kB / 472.8 MB, free: 11.38 MB / 350.1 MB Notification: Performance of simplify2: time 5.71e-07/0.004146, allocations: 0 / 472.8 MB, free: 11.38 MB / 350.1 MB Notification: Performance of Events: time 1.241e-05/0.004163, allocations: 0 / 472.8 MB, free: 11.38 MB / 350.1 MB Notification: Performance of Detect States: time 5.154e-05/0.004218, allocations: 32.19 kB / 472.9 MB, free: 11.34 MB / 350.1 MB Notification: Performance of Partitioning: time 4.138e-05/0.004266, allocations: 12.12 kB / 472.9 MB, free: 11.32 MB / 350.1 MB Notification: Performance of Causalize: time 0.0001067/0.004382, allocations: 36.03 kB / 472.9 MB, free: 11.27 MB / 350.1 MB Notification: Performance of After Index Reduction Inline: time 4.753e-05/0.004436, allocations: 48.36 kB / 472.9 MB, free: 11.2 MB / 350.1 MB Notification: Performance of Inline: time 7.253e-05/0.004514, allocations: 68.48 kB / 473 MB, free: 11.1 MB / 350.1 MB Notification: Performance of Partitioning: time 9.708e-06/0.00453, allocations: 8.125 kB / 473 MB, free: 11.08 MB / 350.1 MB Notification: Performance of Cleanup: time 9.879e-06/0.004546, allocations: 12.17 kB / 473 MB, free: 11.07 MB / 350.1 MB Notification: Performance of Causalize: time 5.043e-05/0.004603, allocations: 32.05 kB / 473.1 MB, free: 11.03 MB / 350.1 MB Notification: Performance of Tearing: time 5.841e-06/0.004618, allocations: 4 kB / 473.1 MB, free: 11.03 MB / 350.1 MB Notification: Performance of Initialization: time 3.01e-07/0.004622, allocations: 0 / 473.1 MB, free: 11.03 MB / 350.1 MB Notification: Performance of Tearing: time 8.31e-07/0.004628, allocations: 0 / 473.1 MB, free: 11.03 MB / 350.1 MB Notification: Performance of Categorize: time 6.693e-06/0.004638, allocations: 0 / 473.1 MB, free: 11.03 MB / 350.1 MB Notification: Performance of Solve: time 1.415e-05/0.004656, allocations: 0 / 473.1 MB, free: 11.03 MB / 350.1 MB Notification: Performance of Jacobian: time 3.366e-06/0.004663, allocations: 0 / 473.1 MB, free: 11.03 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.505e-05/0.004702, allocations: 33.16 kB / 473.1 MB, free: 11 MB / 350.1 MB Notification: Performance of SimCode: time 0.0008708/0.005578, allocations: 0.8732 MB / 474 MB, free: 10.14 MB / 350.1 MB Notification: Performance of Templates: time 0.002936/0.008526, allocations: 0.5903 MB / 474.6 MB, free: 9.555 MB / 350.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.makefile make -j1 -f ModelicaTest_4.0.0_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 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_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_4.0.0_ModelicaTest.Utilities.TestReadFile.o ModelicaTest_4.0.0_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 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_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_4.0.0_ModelicaTest.Utilities.TestReadFile_functions.o ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile_functions.c ModelicaTest_4.0.0_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_4.0.0_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_4.0.0_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_4.0.0_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_4.0.0_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_4.0.0_ModelicaTest.Utilities.TestReadFile_functions.c:93:12: error: use of undeclared identifier '_OMC_LIT3' _line1 = _OMC_LIT3; ^ ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile_functions.c:94:12: error: use of undeclared identifier '_OMC_LIT4' _line2 = _OMC_LIT4; ^ ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile_functions.c:95:12: error: use of undeclared identifier '_OMC_LIT5' _line3 = _OMC_LIT5; ^ ModelicaTest_4.0.0_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_4.0.0_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_4.0.0_ModelicaTest.Utilities.TestReadFile_functions.c:102:52: error: use of undeclared identifier '_OMC_LIT6' omc_Modelica_Utilities_Streams_print(threadData, _OMC_LIT6, _logFile); ^ ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile_functions.c:111:53: error: use of undeclared identifier '_OMC_LIT7' omc_assert(threadData, info, MMC_STRINGDATA(_OMC_LIT7)); ^ ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile_functions.c:123:53: error: use of undeclared identifier '_OMC_LIT8' omc_assert(threadData, info, MMC_STRINGDATA(_OMC_LIT8)); ^ ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile_functions.c:135:53: error: use of undeclared identifier '_OMC_LIT9' omc_assert(threadData, info, MMC_STRINGDATA(_OMC_LIT9)); ^ ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile_functions.c:147:53: error: use of undeclared identifier '_OMC_LIT10' omc_assert(threadData, info, MMC_STRINGDATA(_OMC_LIT10)); ^ ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile_functions.c:159:53: error: use of undeclared identifier '_OMC_LIT11' omc_assert(threadData, info, MMC_STRINGDATA(_OMC_LIT11)); ^ ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile_functions.c:167:31: error: use of undeclared identifier '_OMC_LIT0' if(!((stringEqual(_rline, _OMC_LIT0)) && _eof)) ^ ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile_functions.c:167:31: error: use of undeclared identifier '_OMC_LIT0' ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.Utilities.TestReadFile_functions.o] Error 1