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.001045/0.001045, allocations: 108.6 kB / 18.46 MB, free: 4.59 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.0009914/0.0009915, allocations: 181.2 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.406/1.406, allocations: 222.9 MB / 243.1 MB, free: 15.05 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.2251/0.2251, allocations: 44.19 MB / 337.4 MB, free: 2.656 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.236e-05/2.237e-05, allocations: 2.281 kB / 471.1 MB, free: 13.23 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.001386/0.001416, allocations: 484.1 kB / 471.6 MB, free: 12.77 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006628/0.002091, allocations: 251.2 kB / 471.9 MB, free: 12.52 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.283e-05/0.002125, allocations: 3.938 kB / 471.9 MB, free: 12.52 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.655e-05/0.002148, allocations: 4 kB / 471.9 MB, free: 12.51 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.42e-06/0.002159, 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.000359/0.002538, allocations: 51.81 kB / 471.9 MB, free: 12.46 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 6.552e-05/0.002611, allocations: 7.984 kB / 471.9 MB, free: 12.45 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.404e-05/0.002661, allocations: 0 / 471.9 MB, free: 12.45 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.751e-05/0.002683, allocations: 3.938 kB / 471.9 MB, free: 12.45 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.288e-05/0.002711, allocations: 0 / 471.9 MB, free: 12.45 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.079e-05/0.002726, allocations: 0 / 471.9 MB, free: 12.45 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001594/0.002891, allocations: 71.94 kB / 472 MB, free: 12.38 MB / 350.1 MB Notification: Performance of combineBinaries: time 2.57e-05/0.002925, allocations: 0 / 472 MB, free: 12.38 MB / 350.1 MB Notification: Performance of replaceArrayConstructors: time 3.237e-06/0.002932, allocations: 3.906 kB / 472 MB, free: 12.38 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.336e-05/0.002952, allocations: 4 kB / 472 MB, free: 12.37 MB / 350.1 MB Notification: Performance of FrontEnd: time 7.514e-06/0.002965, allocations: 4 kB / 472 MB, free: 12.37 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.0002861/0.003256, allocations: 149.4 kB / 472.2 MB, free: 12.12 MB / 350.1 MB Notification: Performance of FunctionAlias: time 1.317e-05/0.003277, allocations: 7.938 kB / 472.2 MB, free: 12.11 MB / 350.1 MB Notification: Performance of Early Inline: time 6.365e-05/0.003364, allocations: 52.36 kB / 472.2 MB, free: 12.04 MB / 350.1 MB Notification: Performance of simplify1: time 2.164e-06/0.003372, allocations: 0 / 472.2 MB, free: 12.04 MB / 350.1 MB Notification: Performance of Alias: time 5.915e-05/0.003436, allocations: 56.56 kB / 472.3 MB, free: 11.94 MB / 350.1 MB Notification: Performance of simplify2: time 1.322e-06/0.003443, allocations: 0 / 472.3 MB, free: 11.94 MB / 350.1 MB Notification: Performance of Detect States: time 5.482e-05/0.003502, allocations: 28.23 kB / 472.3 MB, free: 11.9 MB / 350.1 MB Notification: Performance of Events: time 1.873e-05/0.003528, allocations: 7.953 kB / 472.3 MB, free: 11.89 MB / 350.1 MB Notification: Performance of Partitioning: time 6.829e-05/0.003601, allocations: 16.12 kB / 472.3 MB, free: 11.87 MB / 350.1 MB Notification: Performance of Causalize: time 0.0001089/0.003717, allocations: 20.06 kB / 472.3 MB, free: 11.84 MB / 350.1 MB Notification: Performance of After Index Reduction Inline: time 4.196e-05/0.003766, allocations: 44.36 kB / 472.4 MB, free: 11.77 MB / 350.1 MB Notification: Performance of Inline: time 7.337e-05/0.003845, allocations: 72.67 kB / 472.5 MB, free: 11.66 MB / 350.1 MB Notification: Performance of Partitioning: time 1.713e-05/0.00387, allocations: 12.06 kB / 472.5 MB, free: 11.64 MB / 350.1 MB Notification: Performance of Cleanup: time 7.394e-06/0.003883, allocations: 0 / 472.5 MB, free: 11.64 MB / 350.1 MB Notification: Performance of Causalize: time 6.017e-05/0.003949, allocations: 36.05 kB / 472.5 MB, free: 11.6 MB / 350.1 MB Notification: Performance of Tearing: time 9.708e-06/0.003967, allocations: 0 / 472.5 MB, free: 11.6 MB / 350.1 MB Notification: Performance of Initialization: time 3.3e-07/0.003972, allocations: 0 / 472.5 MB, free: 11.6 MB / 350.1 MB Notification: Performance of Tearing: time 2.495e-06/0.003978, allocations: 3.984 kB / 472.5 MB, free: 11.6 MB / 350.1 MB Notification: Performance of Categorize: time 7.183e-06/0.00399, allocations: 0 / 472.5 MB, free: 11.6 MB / 350.1 MB Notification: Performance of Solve: time 1.564e-05/0.004011, allocations: 4.188 kB / 472.5 MB, free: 11.59 MB / 350.1 MB Notification: Performance of Jacobian: time 5.37e-06/0.004023, allocations: 7.938 kB / 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.046e-05/0.004057, allocations: 14.28 kB / 472.5 MB, free: 11.58 MB / 350.1 MB Notification: Performance of SimCode: time 0.001049/0.00511, allocations: 0.966 MB / 473.5 MB, free: 10.66 MB / 350.1 MB Notification: Performance of Templates: time 0.002996/0.008118, allocations: 0.7268 MB / 474.2 MB, free: 9.934 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