Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings.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.TestStrings,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings") translateModel(ModelicaTest.Utilities.TestStrings,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001107/0.001107, allocations: 103.4 kB / 18.46 MB, free: 4.613 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.0009818/0.000982, allocations: 191.1 kB / 19.39 MB, free: 3.688 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.348/1.348, allocations: 222.9 MB / 243.1 MB, free: 15.08 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.2234/0.2234, allocations: 44.19 MB / 337.4 MB, free: 2.703 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.065e-05/3.066e-05, allocations: 2.281 kB / 471.1 MB, free: 13.3 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStrings): time 0.001389/0.001429, allocations: 488.4 kB / 471.6 MB, free: 12.82 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002588/0.004028, allocations: 1.304 MB / 472.9 MB, free: 11.51 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.826e-05/0.004058, allocations: 0 / 472.9 MB, free: 11.51 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.236e-05/0.004089, allocations: 0 / 472.9 MB, free: 11.51 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 7.354e-06/0.004101, allocations: 3.938 kB / 472.9 MB, free: 11.51 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Utilities.mo:4:3-220:14:writable] Warning: Pure function 'ModelicaTest.Utilities.Strings' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.00149/0.005595, allocations: 0.5765 MB / 473.5 MB, free: 10.93 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.584e-05/0.005661, allocations: 4 kB / 473.5 MB, free: 10.93 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.085e-05/0.005707, allocations: 0 / 473.5 MB, free: 10.93 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.082e-05/0.005733, allocations: 8 kB / 473.5 MB, free: 10.92 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.278e-05/0.005761, allocations: 0 / 473.5 MB, free: 10.92 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.841e-06/0.005771, allocations: 0 / 473.5 MB, free: 10.92 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01226/0.01804, allocations: 2.524 MB / 476 MB, free: 8.914 MB / 350.1 MB Notification: Performance of combineBinaries: time 3.411e-05/0.01816, allocations: 0 / 476 MB, free: 8.914 MB / 350.1 MB Notification: Performance of replaceArrayConstructors: time 1.258e-05/0.01818, allocations: 7.891 kB / 476 MB, free: 8.906 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.299e-05/0.01821, allocations: 4 kB / 476 MB, free: 8.902 MB / 350.1 MB Notification: Performance of FrontEnd: time 5.643e-05/0.01827, allocations: 4 kB / 476 MB, free: 8.898 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.0003507/0.01863, allocations: 157.3 kB / 476.2 MB, free: 8.645 MB / 350.1 MB Notification: Performance of FunctionAlias: time 1.148e-05/0.01864, allocations: 0 / 476.2 MB, free: 8.645 MB / 350.1 MB Notification: Performance of Early Inline: time 7.788e-05/0.01873, allocations: 52.31 kB / 476.2 MB, free: 8.566 MB / 350.1 MB Notification: Performance of simplify1: time 2.064e-06/0.01874, allocations: 4 kB / 476.2 MB, free: 8.562 MB / 350.1 MB Notification: Performance of Alias: time 6.276e-05/0.01881, allocations: 56.56 kB / 476.3 MB, free: 8.469 MB / 350.1 MB Notification: Performance of simplify2: time 5.41e-07/0.01882, allocations: 0 / 476.3 MB, free: 8.469 MB / 350.1 MB Notification: Performance of Events: time 1.839e-05/0.01884, allocations: 0 / 476.3 MB, free: 8.469 MB / 350.1 MB Notification: Performance of Detect States: time 7.719e-05/0.01892, allocations: 24.25 kB / 476.3 MB, free: 8.43 MB / 350.1 MB Notification: Performance of Partitioning: time 5.719e-05/0.01898, allocations: 20.11 kB / 476.3 MB, free: 8.402 MB / 350.1 MB Notification: Performance of Causalize: time 0.0001362/0.01912, allocations: 20.06 kB / 476.4 MB, free: 8.375 MB / 350.1 MB Notification: Performance of After Index Reduction Inline: time 5.248e-05/0.01918, allocations: 56.33 kB / 476.4 MB, free: 8.293 MB / 350.1 MB Notification: Performance of Inline: time 9.555e-05/0.01929, allocations: 64.64 kB / 476.5 MB, free: 8.195 MB / 350.1 MB Notification: Performance of Partitioning: time 1.5e-05/0.01931, allocations: 20.09 kB / 476.5 MB, free: 8.168 MB / 350.1 MB Notification: Performance of Cleanup: time 9.257e-06/0.01933, allocations: 8 kB / 476.5 MB, free: 8.16 MB / 350.1 MB Notification: Performance of Causalize: time 5.573e-05/0.01939, allocations: 28.06 kB / 476.5 MB, free: 8.125 MB / 350.1 MB Notification: Performance of Tearing: time 6.241e-06/0.0194, allocations: 0 / 476.5 MB, free: 8.125 MB / 350.1 MB Notification: Performance of Initialization: time 2.81e-07/0.01941, allocations: 0 / 476.5 MB, free: 8.125 MB / 350.1 MB Notification: Performance of Tearing: time 6.82e-07/0.01941, allocations: 0 / 476.5 MB, free: 8.125 MB / 350.1 MB Notification: Performance of Categorize: time 7.454e-06/0.01943, allocations: 4 kB / 476.5 MB, free: 8.121 MB / 350.1 MB Notification: Performance of Solve: time 2.025e-05/0.01945, allocations: 3.984 kB / 476.5 MB, free: 8.117 MB / 350.1 MB Notification: Performance of Jacobian: time 4.268e-06/0.01946, allocations: 4.188 kB / 476.6 MB, free: 8.113 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 4.33e-05/0.01951, allocations: 20.62 kB / 476.6 MB, free: 8.102 MB / 350.1 MB Notification: Performance of SimCode: time 0.001638/0.02115, allocations: 1.168 MB / 477.7 MB, free: 6.992 MB / 350.1 MB Notification: Performance of Templates: time 0.00506/0.02623, allocations: 2.013 MB / 479.8 MB, free: 4.984 MB / 350.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings.makefile make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings.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_TestStrings -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.TestStrings.o ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings.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_TestStrings -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.TestStrings_functions.o ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings_functions.c ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings_functions.c:12: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.TestStrings_functions.c:23:17: warning: implicit declaration of function 'ModelicaStrings_compare' is invalid in C99 [-Wimplicit-function-declaration] _result_ext = ModelicaStrings_compare(MMC_STRINGDATA(_string1), MMC_STRINGDATA(_string2), _caseSensitive_ext); ^ ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings_functions.c:43:15: warning: implicit declaration of function 'ModelicaStrings_hashString' is invalid in C99 [-Wimplicit-function-declaration] _hash_ext = ModelicaStrings_hashString(MMC_STRINGDATA(_string)); ^ ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings_functions.c:61:17: warning: implicit declaration of function 'ModelicaStrings_length' is invalid in C99 [-Wimplicit-function-declaration] _result_ext = ModelicaStrings_length(MMC_STRINGDATA(_string)); ^ ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings_functions.c:83:17: warning: implicit declaration of function 'ModelicaStrings_substring' is invalid in C99 [-Wimplicit-function-declaration] _result_ext = ModelicaStrings_substring(MMC_STRINGDATA(_string), _startIndex_ext, _endIndex_ext); ^ ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings_functions.c:83:15: warning: incompatible integer to pointer conversion assigning to 'const char *' from 'int' [-Wint-conversion] _result_ext = ModelicaStrings_substring(MMC_STRINGDATA(_string), _startIndex_ext, _endIndex_ext); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings_functions.c:109:3: warning: implicit declaration of function 'ModelicaStrings_scanIdentifier' is invalid in C99 [-Wimplicit-function-declaration] ModelicaStrings_scanIdentifier(MMC_STRINGDATA(_string), _startIndex_ext, &_nextIndex_ext, &_identifier_ext); ^ ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings_functions.c:139:3: warning: implicit declaration of function 'ModelicaStrings_scanInteger' is invalid in C99 [-Wimplicit-function-declaration] ModelicaStrings_scanInteger(MMC_STRINGDATA(_string), _startIndex_ext, _unsigned_ext, &_nextIndex_ext, &_number_ext); ^ ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings_functions.c:172:3: warning: implicit declaration of function 'ModelicaStrings_scanReal' is invalid in C99 [-Wimplicit-function-declaration] ModelicaStrings_scanReal(MMC_STRINGDATA(_string), _startIndex_ext, _unsigned_ext, &_nextIndex_ext, &_number_ext); ^ ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings_functions.c:203:3: warning: implicit declaration of function 'ModelicaStrings_scanString' is invalid in C99 [-Wimplicit-function-declaration] ModelicaStrings_scanString(MMC_STRINGDATA(_string), _startIndex_ext, &_nextIndex_ext, &_string2_ext); ^ ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings_functions.c:228:20: warning: implicit declaration of function 'ModelicaStrings_skipWhiteSpace' is invalid in C99 [-Wimplicit-function-declaration] _nextIndex_ext = ModelicaStrings_skipWhiteSpace(MMC_STRINGDATA(_string), _startIndex_ext); ^ ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings_functions.c:348:52: error: use of undeclared identifier '_OMC_LIT2' omc_Modelica_Utilities_Streams_print(threadData, _OMC_LIT2, _OMC_LIT0); ^ ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings_functions.c:348:63: error: use of undeclared identifier '_OMC_LIT0' omc_Modelica_Utilities_Streams_print(threadData, _OMC_LIT2, _OMC_LIT0); ^ ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings_functions.c:350:52: error: use of undeclared identifier '_OMC_LIT2' omc_Modelica_Utilities_Streams_print(threadData, _OMC_LIT2, _logFile); ^ ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings_functions.c:352:58: error: use of undeclared identifier '_OMC_LIT3' _i = omc_Modelica_Utilities_Strings_length(threadData, _OMC_LIT3); ^ ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings_functions.c:359:53: error: use of undeclared identifier '_OMC_LIT4' omc_assert(threadData, info, MMC_STRINGDATA(_OMC_LIT4)); ^ ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings_functions.c:364:61: error: use of undeclared identifier '_OMC_LIT5' _s = omc_Modelica_Utilities_Strings_substring(threadData, _OMC_LIT5, ((modelica_integer) 3), ((modelica_integer) 3)); ^ ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings_functions.c:367:26: error: use of undeclared identifier '_OMC_LIT6' if(!(stringEqual(_s, _OMC_LIT6))) ^ ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings_functions.c:367:26: error: use of undeclared identifier '_OMC_LIT6' ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings_functions.c:371:53: error: use of undeclared identifier '_OMC_LIT7' omc_assert(threadData, info, MMC_STRINGDATA(_OMC_LIT7)); ^ ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings_functions.c:376:61: error: use of undeclared identifier '_OMC_LIT5' _s = omc_Modelica_Utilities_Strings_substring(threadData, _OMC_LIT5, ((modelica_integer) 3), ((modelica_integer) 5)); ^ ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings_functions.c:379:26: error: use of undeclared identifier '_OMC_LIT8' if(!(stringEqual(_s, _OMC_LIT8))) ^ ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings_functions.c:379:26: error: use of undeclared identifier '_OMC_LIT8' ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings_functions.c:383:53: error: use of undeclared identifier '_OMC_LIT9' omc_assert(threadData, info, MMC_STRINGDATA(_OMC_LIT9)); ^ ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings_functions.c:388:8: error: use of undeclared identifier '_OMC_LIT10' _s = _OMC_LIT10; ^ ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings_functions.c:391:26: error: use of undeclared identifier '_OMC_LIT10' if(!(stringEqual(_s, _OMC_LIT10))) ^ ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings_functions.c:391:26: error: use of undeclared identifier '_OMC_LIT10' ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings_functions.c:395:53: error: use of undeclared identifier '_OMC_LIT11' omc_assert(threadData, info, MMC_STRINGDATA(_OMC_LIT11)); ^ ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings_functions.c:400:59: error: use of undeclared identifier '_OMC_LIT12' _c = omc_Modelica_Utilities_Strings_compare(threadData, _OMC_LIT12, _OMC_LIT13, 0 /* false */); ^ ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings_functions.c:400:71: error: use of undeclared identifier '_OMC_LIT13' _c = omc_Modelica_Utilities_Strings_compare(threadData, _OMC_LIT12, _OMC_LIT13, 0 /* false */); ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 11 warnings and 20 errors generated. make: *** [: ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings_functions.o] Error 1