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.001284/0.001284, allocations: 105.7 kB / 18.46 MB, free: 4.605 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.001256/0.001256, allocations: 184.2 kB / 19.4 MB, free: 3.68 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.426/1.426, allocations: 222.9 MB / 243.1 MB, free: 15.09 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.2228/0.2228, allocations: 44.19 MB / 337.4 MB, free: 2.68 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.681e-05/2.683e-05, allocations: 2.281 kB / 471.1 MB, free: 13.27 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStrings): time 0.00173/0.001766, allocations: 488.3 kB / 471.6 MB, free: 12.8 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002748/0.004526, allocations: 1.304 MB / 472.9 MB, free: 11.49 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.781e-05/0.004557, allocations: 0 / 472.9 MB, free: 11.49 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.862e-05/0.004583, allocations: 0 / 472.9 MB, free: 11.49 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.282e-06/0.004594, allocations: 0 / 472.9 MB, free: 11.49 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.002023/0.006642, allocations: 0.5764 MB / 473.5 MB, free: 10.91 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 6.281e-05/0.006715, allocations: 7.984 kB / 473.5 MB, free: 10.9 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.608e-05/0.006769, allocations: 4 kB / 473.5 MB, free: 10.9 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.846e-05/0.006793, allocations: 0 / 473.5 MB, free: 10.9 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.117e-05/0.00682, allocations: 0 / 473.5 MB, free: 10.9 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.402e-06/0.006831, allocations: 0 / 473.5 MB, free: 10.9 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01314/0.01998, allocations: 2.53 MB / 476 MB, free: 8.887 MB / 350.1 MB Notification: Performance of combineBinaries: time 3.388e-05/0.02003, allocations: 4 kB / 476 MB, free: 8.883 MB / 350.1 MB Notification: Performance of replaceArrayConstructors: time 2.625e-06/0.02004, allocations: 3.906 kB / 476 MB, free: 8.879 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.792e-05/0.02006, allocations: 0 / 476 MB, free: 8.879 MB / 350.1 MB Notification: Performance of FrontEnd: time 5.55e-05/0.02012, allocations: 0 / 476 MB, free: 8.879 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.0003509/0.02048, allocations: 165.4 kB / 476.2 MB, free: 8.617 MB / 350.1 MB Notification: Performance of FunctionAlias: time 1.596e-05/0.02051, allocations: 7.938 kB / 476.2 MB, free: 8.609 MB / 350.1 MB Notification: Performance of Early Inline: time 7.156e-05/0.02059, allocations: 48.36 kB / 476.3 MB, free: 8.535 MB / 350.1 MB Notification: Performance of simplify1: time 2.405e-06/0.02059, allocations: 0 / 476.3 MB, free: 8.535 MB / 350.1 MB Notification: Performance of Alias: time 6.313e-05/0.02066, allocations: 56.52 kB / 476.3 MB, free: 8.441 MB / 350.1 MB Notification: Performance of simplify2: time 7.31e-07/0.02067, allocations: 0 / 476.3 MB, free: 8.441 MB / 350.1 MB Notification: Performance of Detect States: time 6.703e-05/0.02074, allocations: 28.23 kB / 476.3 MB, free: 8.398 MB / 350.1 MB Notification: Performance of Events: time 2.011e-05/0.02077, allocations: 4 kB / 476.3 MB, free: 8.395 MB / 350.1 MB Notification: Performance of Partitioning: time 5.563e-05/0.02083, allocations: 20.12 kB / 476.4 MB, free: 8.367 MB / 350.1 MB Notification: Performance of Causalize: time 0.0001104/0.02095, allocations: 24.05 kB / 476.4 MB, free: 8.336 MB / 350.1 MB Notification: Performance of After Index Reduction Inline: time 4.731e-05/0.02101, allocations: 40.38 kB / 476.4 MB, free: 8.27 MB / 350.1 MB Notification: Performance of Inline: time 8.669e-05/0.0211, allocations: 72.44 kB / 476.5 MB, free: 8.164 MB / 350.1 MB Notification: Performance of Partitioning: time 9.638e-06/0.02112, allocations: 12.31 kB / 476.5 MB, free: 8.145 MB / 350.1 MB Notification: Performance of Cleanup: time 7.935e-06/0.02113, allocations: 0 / 476.5 MB, free: 8.145 MB / 350.1 MB Notification: Performance of Causalize: time 7.134e-05/0.02121, allocations: 36.05 kB / 476.5 MB, free: 8.102 MB / 350.1 MB Notification: Performance of Tearing: time 1.064e-05/0.02123, allocations: 0 / 476.5 MB, free: 8.102 MB / 350.1 MB Notification: Performance of Initialization: time 3e-07/0.02124, allocations: 0 / 476.5 MB, free: 8.102 MB / 350.1 MB Notification: Performance of Tearing: time 1.232e-06/0.02124, allocations: 0 / 476.5 MB, free: 8.102 MB / 350.1 MB Notification: Performance of Categorize: time 8.807e-06/0.02126, allocations: 0 / 476.5 MB, free: 8.102 MB / 350.1 MB Notification: Performance of Solve: time 1.861e-05/0.02128, allocations: 7.984 kB / 476.6 MB, free: 8.094 MB / 350.1 MB Notification: Performance of Jacobian: time 4.148e-06/0.02129, allocations: 0 / 476.6 MB, free: 8.094 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.12e-05/0.02134, allocations: 24.41 kB / 476.6 MB, free: 8.078 MB / 350.1 MB Notification: Performance of SimCode: time 0.002195/0.02354, allocations: 1.166 MB / 477.7 MB, free: 6.973 MB / 350.1 MB Notification: Performance of Templates: time 0.006117/0.02967, allocations: 2.013 MB / 479.8 MB, free: 4.965 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