Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.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.TestInternal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal") translateModel(ModelicaTest.Utilities.TestInternal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0017/0.0017, allocations: 115.6 kB / 18.47 MB, free: 4.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001892/0.001892, allocations: 206.3 kB / 19.41 MB, free: 3.648 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.133/1.133, allocations: 227.4 MB / 247.6 MB, free: 10.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1744/0.1744, allocations: 46.1 MB / 345 MB, free: 11.49 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.088e-05/1.091e-05, allocations: 2.281 kB / 481.9 MB, free: 4.16 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.0009917/0.001011, allocations: 489.6 kB / 482.4 MB, free: 3.688 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004726/0.001495, allocations: 255.1 kB / 482.6 MB, free: 3.438 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.588e-05/0.00152, allocations: 0 / 482.6 MB, free: 3.438 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.12e-05/0.001537, allocations: 0 / 482.6 MB, free: 3.438 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 3.617e-06/0.001544, allocations: 0 / 482.6 MB, free: 3.438 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Utilities.mo:398:3-453: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.0002537/0.001806, allocations: 51.81 kB / 482.7 MB, free: 3.387 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.016e-05/0.001854, allocations: 3.938 kB / 482.7 MB, free: 3.383 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.09e-05/0.00189, allocations: 11.98 kB / 482.7 MB, free: 3.371 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.027e-05/0.001905, allocations: 0 / 482.7 MB, free: 3.371 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.35e-05/0.001923, allocations: 0 / 482.7 MB, free: 3.371 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.432e-06/0.001933, allocations: 0 / 482.7 MB, free: 3.371 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001106/0.002047, allocations: 63.95 kB / 482.7 MB, free: 3.309 MB / 350.1 MB Notification: Performance of combineBinaries: time 1.883e-05/0.002072, allocations: 7.984 kB / 482.8 MB, free: 3.301 MB / 350.1 MB Notification: Performance of replaceArrayConstructors: time 2.314e-06/0.002079, allocations: 3.906 kB / 482.8 MB, free: 3.297 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.107e-06/0.002092, allocations: 0 / 482.8 MB, free: 3.297 MB / 350.1 MB Notification: Performance of FrontEnd: time 4.939e-06/0.0021, allocations: 0 / 482.8 MB, free: 3.297 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.0001988/0.002303, allocations: 157.4 kB / 482.9 MB, free: 3.043 MB / 350.1 MB Notification: Performance of FunctionAlias: time 8.877e-06/0.002318, allocations: 11.88 kB / 482.9 MB, free: 3.031 MB / 350.1 MB Notification: Performance of Early Inline: time 5.44e-05/0.002376, allocations: 48.38 kB / 483 MB, free: 2.957 MB / 350.1 MB Notification: Performance of simplify1: time 1.492e-06/0.002383, allocations: 0 / 483 MB, free: 2.957 MB / 350.1 MB Notification: Performance of Alias: time 4.51e-05/0.002434, allocations: 56.61 kB / 483 MB, free: 2.863 MB / 350.1 MB Notification: Performance of simplify2: time 6.41e-07/0.002439, allocations: 0 / 483 MB, free: 2.863 MB / 350.1 MB Notification: Performance of Events: time 1.055e-05/0.002454, allocations: 4 kB / 483 MB, free: 2.859 MB / 350.1 MB Notification: Performance of Detect States: time 4.048e-05/0.002498, allocations: 30.53 kB / 483.1 MB, free: 2.816 MB / 350.1 MB Notification: Performance of Partitioning: time 4.462e-05/0.002548, allocations: 28.03 kB / 483.1 MB, free: 2.781 MB / 350.1 MB Notification: Performance of Causalize: time 7.379e-05/0.002627, allocations: 16.12 kB / 483.1 MB, free: 2.758 MB / 350.1 MB Notification: Performance of After Index Reduction Inline: time 3.559e-05/0.002669, allocations: 48.36 kB / 483.1 MB, free: 2.684 MB / 350.1 MB Notification: Performance of Inline: time 5.02e-05/0.002724, allocations: 60.5 kB / 483.2 MB, free: 2.59 MB / 350.1 MB Notification: Performance of Partitioning: time 8.576e-06/0.002741, allocations: 16.11 kB / 483.2 MB, free: 2.566 MB / 350.1 MB Notification: Performance of Cleanup: time 1.272e-05/0.002757, allocations: 0 / 483.2 MB, free: 2.566 MB / 350.1 MB Notification: Performance of Causalize: time 4.148e-05/0.002803, allocations: 28.25 kB / 483.3 MB, free: 2.531 MB / 350.1 MB Notification: Performance of Tearing: time 5.611e-06/0.002817, allocations: 4 kB / 483.3 MB, free: 2.527 MB / 350.1 MB Notification: Performance of Initialization: time 2.8e-07/0.002821, allocations: 0 / 483.3 MB, free: 2.527 MB / 350.1 MB Notification: Performance of Tearing: time 1.062e-06/0.002826, allocations: 0 / 483.3 MB, free: 2.527 MB / 350.1 MB Notification: Performance of Categorize: time 4.539e-06/0.002834, allocations: 0 / 483.3 MB, free: 2.527 MB / 350.1 MB Notification: Performance of Solve: time 1.209e-05/0.002849, allocations: 7.922 kB / 483.3 MB, free: 2.52 MB / 350.1 MB Notification: Performance of Jacobian: time 2.244e-06/0.002856, allocations: 4 kB / 483.3 MB, free: 2.516 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.228e-05/0.002882, allocations: 18.03 kB / 483.3 MB, free: 2.504 MB / 350.1 MB Notification: Performance of SimCode: time 0.0007336/0.00362, allocations: 0.9507 MB / 484.2 MB, free: 1.582 MB / 350.1 MB Notification: Performance of Templates: time 0.002378/0.006008, allocations: 0.7346 MB / 485 MB, free: 0.8477 MB / 350.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.makefile make -j1 -f ModelicaTest_trunk_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 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_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_trunk_ModelicaTest.Utilities.TestInternal.o ModelicaTest_trunk_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 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_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_trunk_ModelicaTest.Utilities.TestInternal_functions.o ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal_functions.c ModelicaTest_trunk_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_trunk_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_trunk_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_trunk_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_trunk_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_trunk_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_trunk_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_trunk_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_trunk_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_trunk_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_trunk_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_trunk_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_trunk_ModelicaTest.Utilities.TestInternal_functions.c:145:52: error: use of undeclared identifier '_OMC_LIT2' omc_Modelica_Utilities_Streams_print(threadData, _OMC_LIT2, _logFile); ^ ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal_functions.c:149:33: error: use of undeclared identifier '_OMC_LIT3' tmpMeta1 = stringAppend(_dir1,_OMC_LIT3); ^ ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal_functions.c:168:53: error: use of undeclared identifier '_OMC_LIT4' omc_assert(threadData, info, MMC_STRINGDATA(_OMC_LIT4)); ^ ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal_functions.c:180:31: error: use of undeclared identifier '_OMC_LIT5' tmpMeta3 = stringAppend(_OMC_LIT5,_dir1); ^ ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal_functions.c:181:40: error: use of undeclared identifier '_OMC_LIT6' tmpMeta4 = stringAppend(tmpMeta3,_OMC_LIT6); ^ ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal_functions.c:182:40: error: use of undeclared identifier '_OMC_LIT7' tmpMeta5 = stringAppend(tmpMeta4,_OMC_LIT7); ^ ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal_functions.c:184:40: error: use of undeclared identifier '_OMC_LIT6' tmpMeta7 = stringAppend(tmpMeta6,_OMC_LIT6); ^ ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal_functions.c:192:62: error: use of undeclared identifier '_OMC_LIT8' omc_Modelica_Utilities_System_setWorkDirectory(threadData, _OMC_LIT8); ^ ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal_functions.c:194:33: error: use of undeclared identifier '_OMC_LIT9' tmpMeta9 = stringAppend(_dir1,_OMC_LIT9); ^ ModelicaTest_trunk_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_trunk_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_trunk_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_trunk_ModelicaTest.Utilities.TestInternal_functions.c:210:53: error: use of undeclared identifier '_OMC_LIT12' omc_assert(threadData, info, MMC_STRINGDATA(_OMC_LIT12)); ^ ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal_functions.c:216:28: error: use of undeclared identifier '_OMC_LIT11' if(!(stringEqual(_env, _OMC_LIT11))) ^ ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal_functions.c:216:28: error: use of undeclared identifier '_OMC_LIT11' ModelicaTest_trunk_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_trunk_ModelicaTest.Utilities.TestInternal_functions.o] Error 1