Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.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.TestInternal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal") translateModel(ModelicaTest.Utilities.TestInternal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001001/0.001001, 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.0009959/0.000996, 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.324/1.324, allocations: 222.9 MB / 243.1 MB, free: 15.07 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.2117/0.2117, allocations: 44.19 MB / 337.4 MB, free: 2.656 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.859e-05/1.859e-05, allocations: 2.281 kB / 471.1 MB, free: 13.24 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.001194/0.00122, allocations: 485.3 kB / 471.6 MB, free: 12.77 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005931/0.001825, allocations: 251.2 kB / 471.9 MB, free: 12.52 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.713e-05/0.001862, allocations: 3.938 kB / 471.9 MB, free: 12.52 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.368e-05/0.001883, allocations: 4 kB / 471.9 MB, free: 12.51 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.799e-06/0.001892, allocations: 0 / 471.9 MB, free: 12.51 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Utilities.mo:399:3-454:15:writable] Warning: Pure function 'ModelicaTest.Utilities.Internal' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.0003111/0.002213, allocations: 47.83 kB / 471.9 MB, free: 12.46 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.876e-05/0.002279, allocations: 0 / 471.9 MB, free: 12.46 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.296e-05/0.002327, allocations: 11.97 kB / 471.9 MB, free: 12.45 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.598e-05/0.002348, allocations: 3.938 kB / 471.9 MB, free: 12.45 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.478e-05/0.002378, allocations: 0 / 471.9 MB, free: 12.45 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.889e-06/0.002392, allocations: 0 / 471.9 MB, free: 12.45 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001296/0.002525, allocations: 63.95 kB / 472 MB, free: 12.39 MB / 350.1 MB Notification: Performance of combineBinaries: time 2.246e-05/0.002555, allocations: 4 kB / 472 MB, free: 12.38 MB / 350.1 MB Notification: Performance of replaceArrayConstructors: time 2.175e-06/0.002562, allocations: 3.906 kB / 472 MB, free: 12.38 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.297e-05/0.00258, allocations: 4 kB / 472 MB, free: 12.38 MB / 350.1 MB Notification: Performance of FrontEnd: time 5.821e-06/0.00259, allocations: 0 / 472 MB, free: 12.38 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.0002487/0.002843, allocations: 153.4 kB / 472.1 MB, free: 12.12 MB / 350.1 MB Notification: Performance of FunctionAlias: time 2.324e-05/0.002875, allocations: 15.92 kB / 472.2 MB, free: 12.11 MB / 350.1 MB Notification: Performance of Early Inline: time 6.213e-05/0.002942, allocations: 44.39 kB / 472.2 MB, free: 12.04 MB / 350.1 MB Notification: Performance of simplify1: time 1.583e-06/0.002949, allocations: 0 / 472.2 MB, free: 12.04 MB / 350.1 MB Notification: Performance of Alias: time 4.764e-05/0.003001, allocations: 52.55 kB / 472.3 MB, free: 11.95 MB / 350.1 MB Notification: Performance of simplify2: time 5.91e-07/0.003008, allocations: 4 kB / 472.3 MB, free: 11.95 MB / 350.1 MB Notification: Performance of Events: time 1.222e-05/0.003025, allocations: 4 kB / 472.3 MB, free: 11.94 MB / 350.1 MB Notification: Performance of Detect States: time 0.0001584/0.003189, allocations: 37.8 kB / 472.3 MB, free: 11.89 MB / 350.1 MB Notification: Performance of Partitioning: time 4.778e-05/0.003243, allocations: 16.12 kB / 472.3 MB, free: 11.87 MB / 350.1 MB Notification: Performance of Causalize: time 0.0001146/0.003365, allocations: 27.98 kB / 472.3 MB, free: 11.84 MB / 350.1 MB Notification: Performance of After Index Reduction Inline: time 5.166e-05/0.003423, allocations: 48.38 kB / 472.4 MB, free: 11.76 MB / 350.1 MB Notification: Performance of Inline: time 7.036e-05/0.003499, allocations: 72.72 kB / 472.5 MB, free: 11.66 MB / 350.1 MB Notification: Performance of Partitioning: time 1.025e-05/0.003515, allocations: 8.125 kB / 472.5 MB, free: 11.64 MB / 350.1 MB Notification: Performance of Cleanup: time 6.592e-06/0.003526, allocations: 0 / 472.5 MB, free: 11.64 MB / 350.1 MB Notification: Performance of Causalize: time 6.305e-05/0.003594, allocations: 36.05 kB / 472.5 MB, free: 11.6 MB / 350.1 MB Notification: Performance of Tearing: time 6.372e-06/0.003608, allocations: 0 / 472.5 MB, free: 11.6 MB / 350.1 MB Notification: Performance of Initialization: time 3.01e-07/0.003612, allocations: 0 / 472.5 MB, free: 11.6 MB / 350.1 MB Notification: Performance of Tearing: time 7.61e-07/0.003617, allocations: 0 / 472.5 MB, free: 11.6 MB / 350.1 MB Notification: Performance of Categorize: time 7.004e-06/0.003627, allocations: 256 / 472.5 MB, free: 11.6 MB / 350.1 MB Notification: Performance of Solve: time 1.33e-05/0.00365, allocations: 8 kB / 472.5 MB, free: 11.59 MB / 350.1 MB Notification: Performance of Jacobian: time 3.156e-06/0.003658, allocations: 0 / 472.5 MB, free: 11.59 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.44e-05/0.003696, allocations: 22.2 kB / 472.5 MB, free: 11.57 MB / 350.1 MB Notification: Performance of SimCode: time 0.000924/0.004624, allocations: 0.9588 MB / 473.5 MB, free: 10.66 MB / 350.1 MB Notification: Performance of Templates: time 0.002672/0.007307, allocations: 0.7385 MB / 474.2 MB, free: 9.922 MB / 350.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.makefile make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.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_TestInternal -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.TestInternal.o ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.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_TestInternal -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.TestInternal_functions.o ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal_functions.c ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal_functions.c:12:3: warning: implicit declaration of function 'ModelicaInternal_mkdir' is invalid in C99 [-Wimplicit-function-declaration] ModelicaInternal_mkdir(MMC_STRINGDATA(_directoryName)); ^ ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal_functions.c:18:3: warning: implicit declaration of function 'ModelicaInternal_rename' is invalid in C99 [-Wimplicit-function-declaration] ModelicaInternal_rename(MMC_STRINGDATA(_oldName), MMC_STRINGDATA(_newName)); ^ ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal_functions.c:24:3: warning: implicit declaration of function 'ModelicaInternal_rmdir' is invalid in C99 [-Wimplicit-function-declaration] ModelicaInternal_rmdir(MMC_STRINGDATA(_directoryName)); ^ ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal_functions.c:33: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.TestInternal_functions.c:48: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.TestInternal_functions.c:62:3: warning: implicit declaration of function 'ModelicaInternal_getenv' is invalid in C99 [-Wimplicit-function-declaration] ModelicaInternal_getenv(MMC_STRINGDATA(_name), _convertToSlash_ext, &_content_ext, &_exist_ext); ^ ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal_functions.c:85:20: warning: implicit declaration of function 'ModelicaInternal_getcwd' is invalid in C99 [-Wimplicit-function-declaration] _directory_ext = ModelicaInternal_getcwd(((modelica_integer) 0)); ^ ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal_functions.c:85:18: warning: incompatible integer to pointer conversion assigning to 'const char *' from 'int' [-Wint-conversion] _directory_ext = ModelicaInternal_getcwd(((modelica_integer) 0)); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal_functions.c:94:3: warning: implicit declaration of function 'ModelicaInternal_setenv' is invalid in C99 [-Wimplicit-function-declaration] ModelicaInternal_setenv(MMC_STRINGDATA(_name), MMC_STRINGDATA(_content), _convertFromSlash_ext); ^ ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal_functions.c:107:3: warning: implicit declaration of function 'ModelicaInternal_chdir' is invalid in C99 [-Wimplicit-function-declaration] ModelicaInternal_chdir(MMC_STRINGDATA(_directory)); ^ ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal_functions.c:143:52: error: use of undeclared identifier '_OMC_LIT2' omc_Modelica_Utilities_Streams_print(threadData, _OMC_LIT2, _OMC_LIT0); ^ ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal_functions.c:143:63: error: use of undeclared identifier '_OMC_LIT0' omc_Modelica_Utilities_Streams_print(threadData, _OMC_LIT2, _OMC_LIT0); ^ ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal_functions.c:145:52: error: use of undeclared identifier '_OMC_LIT2' omc_Modelica_Utilities_Streams_print(threadData, _OMC_LIT2, _logFile); ^ ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal_functions.c:149:33: error: use of undeclared identifier '_OMC_LIT3' tmpMeta1 = stringAppend(_dir1,_OMC_LIT3); ^ ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal_functions.c:168:53: error: use of undeclared identifier '_OMC_LIT4' omc_assert(threadData, info, MMC_STRINGDATA(_OMC_LIT4)); ^ ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal_functions.c:180:31: error: use of undeclared identifier '_OMC_LIT5' tmpMeta3 = stringAppend(_OMC_LIT5,_dir1); ^ ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal_functions.c:181:40: error: use of undeclared identifier '_OMC_LIT6' tmpMeta4 = stringAppend(tmpMeta3,_OMC_LIT6); ^ ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal_functions.c:182:40: error: use of undeclared identifier '_OMC_LIT7' tmpMeta5 = stringAppend(tmpMeta4,_OMC_LIT7); ^ ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal_functions.c:184:40: error: use of undeclared identifier '_OMC_LIT6' tmpMeta7 = stringAppend(tmpMeta6,_OMC_LIT6); ^ ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal_functions.c:192:62: error: use of undeclared identifier '_OMC_LIT8' omc_Modelica_Utilities_System_setWorkDirectory(threadData, _OMC_LIT8); ^ ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal_functions.c:194:33: error: use of undeclared identifier '_OMC_LIT9' tmpMeta9 = stringAppend(_dir1,_OMC_LIT9); ^ ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal_functions.c:201:68: error: use of undeclared identifier '_OMC_LIT10' omc_Modelica_Utilities_System_setEnvironmentVariable(threadData, _OMC_LIT10, _OMC_LIT11, 1 /* true */); ^ ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal_functions.c:201:80: error: use of undeclared identifier '_OMC_LIT11' omc_Modelica_Utilities_System_setEnvironmentVariable(threadData, _OMC_LIT10, _OMC_LIT11, 1 /* true */); ^ ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal_functions.c:203:75: error: use of undeclared identifier '_OMC_LIT10' _env = omc_Modelica_Utilities_System_getEnvironmentVariable(threadData, _OMC_LIT10, 1 /* true */ ,&_exist); ^ ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal_functions.c:210:53: error: use of undeclared identifier '_OMC_LIT12' omc_assert(threadData, info, MMC_STRINGDATA(_OMC_LIT12)); ^ ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal_functions.c:216:28: error: use of undeclared identifier '_OMC_LIT11' if(!(stringEqual(_env, _OMC_LIT11))) ^ ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal_functions.c:216:28: error: use of undeclared identifier '_OMC_LIT11' ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal_functions.c:218:32: error: use of undeclared identifier '_OMC_LIT13' tmpMeta11 = stringAppend(_OMC_LIT13,_env); ^ 10 warnings and 18 errors generated. make: *** [: ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal_functions.o] Error 1