Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.Exchange.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.Exchange,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.Exchange") translateModel(Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.Exchange,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.Exchange") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001161/0.001161, allocations: 102.9 kB / 16.38 MB, free: 6.492 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.001132/0.001132, allocations: 190.5 kB / 17.31 MB, free: 5.809 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.144/1.144, allocations: 205.1 MB / 223.2 MB, free: 12.26 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.531/1.531, allocations: 292.3 MB / 0.5496 GB, free: 17.46 MB / 462.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.864e-05/1.88e-05, allocations: 6.078 kB / 0.6729 GB, free: 5.883 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.Exchange): time 0.001523/0.001555, allocations: 0.5569 MB / 0.6734 GB, free: 5.324 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.001407/0.002974, allocations: 1.269 MB / 0.6747 GB, free: 4.047 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.933e-05/0.003004, allocations: 0 / 0.6747 GB, free: 4.047 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 7.443e-05/0.003085, allocations: 8 kB / 0.6747 GB, free: 4.039 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 3.281e-05/0.003124, allocations: 3.938 kB / 0.6747 GB, free: 4.035 MB / 0.545 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:216:3-259:11:writable] Warning: Pure function 'Modelica.Utilities.Strings.find' contains a call to impure function 'Modelica.Utilities.Strings.length'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:310:3-383:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.replace' contains a call to impure function 'Modelica.Utilities.Strings.length'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/Obsolete/Utilities/IO/Python27/Functions/exchange.mo:2:1-109:13:writable] Warning: Pure function 'Buildings.Obsolete.Utilities.IO.Python27.Functions.exchange' contains a call to impure function 'Modelica.Utilities.Strings.replace'. Notification: Performance of NFTyping.typeClassSections: time 0.0006481/0.003786, allocations: 291.2 kB / 0.6749 GB, free: 3.75 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0001174/0.003914, allocations: 75.92 kB / 0.675 GB, free: 3.676 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 3.354e-05/0.003956, allocations: 11.92 kB / 0.675 GB, free: 3.664 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 4.245e-05/0.004002, allocations: 39.91 kB / 0.6751 GB, free: 3.625 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 6.828e-05/0.004076, allocations: 27.97 kB / 0.6751 GB, free: 3.598 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 1.678e-05/0.004098, allocations: 4 kB / 0.6751 GB, free: 3.594 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003367/0.004439, allocations: 239.6 kB / 0.6753 GB, free: 3.359 MB / 0.545 GB Notification: Performance of combineBinaries: time 7.335e-05/0.004522, allocations: 59.64 kB / 0.6754 GB, free: 3.301 MB / 0.545 GB Notification: Performance of replaceArrayConstructors: time 1.054e-05/0.004538, allocations: 19.72 kB / 0.6754 GB, free: 3.281 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 2.357e-05/0.004566, allocations: 7.938 kB / 0.6754 GB, free: 3.273 MB / 0.545 GB Notification: Performance of FrontEnd: time 8.977e-06/0.00458, allocations: 8 kB / 0.6754 GB, free: 3.266 MB / 0.545 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 6 (1) * Number of variables: 6 (4) Notification: Performance of Bindings: time 0.0003066/0.004891, allocations: 260 kB / 0.6757 GB, free: 2.914 MB / 0.545 GB Notification: Performance of FunctionAlias: time 0.0001503/0.005047, allocations: 107.7 kB / 0.6758 GB, free: 2.809 MB / 0.545 GB Notification: Performance of Early Inline: time 0.0002561/0.005312, allocations: 272.2 kB / 0.676 GB, free: 2.516 MB / 0.545 GB Notification: Performance of simplify1: time 1.873e-05/0.005339, allocations: 15.98 kB / 0.676 GB, free: 2.5 MB / 0.545 GB Notification: Performance of Alias: time 6.87e-05/0.005412, allocations: 72.61 kB / 0.6761 GB, free: 2.391 MB / 0.545 GB Notification: Performance of simplify2: time 9.728e-06/0.005427, allocations: 4 kB / 0.6761 GB, free: 2.387 MB / 0.545 GB Notification: Performance of Events: time 8.87e-05/0.00552, allocations: 55.91 kB / 0.6762 GB, free: 2.332 MB / 0.545 GB Notification: Performance of Detect States: time 0.0001122/0.005638, allocations: 92.17 kB / 0.6763 GB, free: 2.227 MB / 0.545 GB Notification: Performance of Partitioning: time 9.748e-05/0.005741, allocations: 76.03 kB / 0.6763 GB, free: 2.145 MB / 0.545 GB Notification: Performance of Causalize: time 0.0003474/0.006095, allocations: 308.2 kB / 0.6766 GB, free: 1.84 MB / 0.545 GB Notification: Performance of After Index Reduction Inline: time 0.0001929/0.006296, allocations: 220.4 kB / 0.6768 GB, free: 1.598 MB / 0.545 GB Notification: Performance of Inline: time 0.0003825/0.006686, allocations: 424.1 kB / 0.6772 GB, free: 1.148 MB / 0.545 GB Notification: Performance of Partitioning: time 1.778e-05/0.006711, allocations: 20.11 kB / 0.6773 GB, free: 1.121 MB / 0.545 GB Notification: Performance of Cleanup: time 3.224e-05/0.006748, allocations: 23.92 kB / 0.6773 GB, free: 1.098 MB / 0.545 GB Notification: Performance of Causalize: time 0.0003151/0.007068, allocations: 336.1 kB / 0.6776 GB, free: 0.7617 MB / 0.545 GB Notification: Performance of Tearing: time 5.33e-06/0.007083, allocations: 0 / 0.6776 GB, free: 0.7617 MB / 0.545 GB Notification: Performance of Initialization: time 3.7e-07/0.007087, allocations: 0.75 kB / 0.6776 GB, free: 0.7617 MB / 0.545 GB Notification: Performance of Tearing: time 2.395e-06/0.007094, allocations: 3.984 kB / 0.6776 GB, free: 0.7578 MB / 0.545 GB Notification: Performance of Categorize: time 6.823e-06/0.007106, allocations: 8 kB / 0.6776 GB, free: 0.75 MB / 0.545 GB Notification: Performance of Solve: time 5.158e-05/0.007161, allocations: 23.91 kB / 0.6776 GB, free: 0.7266 MB / 0.545 GB Notification: Performance of Jacobian: time 2.064e-06/0.007169, allocations: 0 / 0.6776 GB, free: 0.7266 MB / 0.545 GB 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: ................. 6 (5) {yI1, yI2, $FUN_5, $FUN_6, $FUN_9} * Number of top-level inputs: ................... 0 (0) {} Notification: [Simulation] Strong Component statistics after passing the back-end: * Number of single strong components: ........... 9 (scalar:9, 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: ........... 9 (scalar:9, 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.615e-05/0.007198, allocations: 19.56 kB / 0.6777 GB, free: 0.7148 MB / 0.545 GB Notification: Performance of SimCode: time 0.009803/0.01701, allocations: 1.322 MB / 0.6789 GB, free: 15.46 MB / 0.5606 GB Notification: Performance of Templates: time 0.004865/0.02189, allocations: 3.013 MB / 0.6819 GB, free: 12.46 MB / 0.5606 GB make -j1 -f Buildings_8_Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.Exchange.makefile make -j1 -f Buildings_8_Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.Exchange.makefile clang -Os -DOM_HAVE_PTHREADS -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -Wno-parentheses-equality "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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=Buildings_8_Buildings_Obsolete_Utilities_IO_Python27_Functions_Examples_Exchange -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 Buildings_8_Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.Exchange.o Buildings_8_Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.Exchange.c clang -Os -DOM_HAVE_PTHREADS -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -Wno-parentheses-equality "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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=Buildings_8_Buildings_Obsolete_Utilities_IO_Python27_Functions_Examples_Exchange -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 Buildings_8_Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.Exchange_functions.o Buildings_8_Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.Exchange_functions.c Buildings_8_Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.Exchange_functions.c:29:19: error: use of undeclared identifier '_OMC_LIT0' _searchString = _OMC_LIT0; ^ Buildings_8_Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.Exchange_functions.c:30:73: error: use of undeclared identifier '_OMC_LIT1' _pytPatBuildings = omc_Modelica_Utilities_Strings_replace(threadData, _OMC_LIT1, _searchString, _OMC_LIT2, ((modelica_integer) 1), 1 /* true */, 1 /* true */); ^ Buildings_8_Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.Exchange_functions.c:30:99: error: use of undeclared identifier '_OMC_LIT2' _pytPatBuildings = omc_Modelica_Utilities_Strings_replace(threadData, _OMC_LIT1, _searchString, _OMC_LIT2, ((modelica_integer) 1), 1 /* true */, 1 /* true */); ^ Buildings_8_Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.Exchange_functions.c:32:81: error: use of undeclared identifier '_OMC_LIT3' _pytPatOld = omc_Modelica_Utilities_System_getEnvironmentVariable(threadData, _OMC_LIT3, 0 /* false */ ,&_havePytPat); ^ Buildings_8_Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.Exchange_functions.c:38:42: error: use of undeclared identifier '_OMC_LIT4' tmpMeta1 = stringAppend(_pytPatOld,_OMC_LIT4); ^ Buildings_8_Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.Exchange_functions.c:112:3: warning: implicit declaration of function 'pythonExchangeValues' is invalid in C99 [-Wimplicit-function-declaration] pythonExchangeValues(MMC_STRINGDATA(_moduleName), MMC_STRINGDATA(_functionName), MMC_STRINGDATA(_pythonPath), (const double*) _dblWri_c89, _nDblWri_ext, (double*) _dblRea_c89, _nDblRea_ext, (const int*) _intWri_c89, _nIntWri_ext, (int*) _intRea_c89, _nIntRea_ext, (const char**) _strWri_c89, _nStrWri_ext, _pytObj_ext, _passPythonObject_ext); ^ Buildings_8_Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.Exchange_functions.c:192:31: error: use of undeclared identifier '_OMC_LIT5' tmpMeta1 = stringAppend(_OMC_LIT5,_fileName); ^ Buildings_8_Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.Exchange_functions.c:193:40: error: use of undeclared identifier '_OMC_LIT6' tmpMeta2 = stringAppend(tmpMeta1,_OMC_LIT6); ^ Buildings_8_Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.Exchange_functions.c:194:40: error: use of undeclared identifier '_OMC_LIT8' tmpMeta3 = stringAppend(tmpMeta2,_OMC_LIT8); ^ Buildings_8_Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.Exchange_functions.c:201:33: error: use of undeclared identifier '_OMC_LIT5' tmpMeta4 = stringAppend(_OMC_LIT5,_fileName); ^ Buildings_8_Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.Exchange_functions.c:202:42: error: use of undeclared identifier '_OMC_LIT6' tmpMeta5 = stringAppend(tmpMeta4,_OMC_LIT6); ^ Buildings_8_Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.Exchange_functions.c:203:42: error: use of undeclared identifier '_OMC_LIT7' tmpMeta6 = stringAppend(tmpMeta5,_OMC_LIT7); ^ Buildings_8_Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.Exchange_functions.c:381:54: error: use of undeclared identifier '_OMC_LIT9' _result = ((_startIndex == ((modelica_integer) 1))?_OMC_LIT9:omc_Modelica_Utilities_Strings_substring(threadData, _string, ((modelica_integer) 1), _startIndex - ((modelica_integer) 1))); ^ Buildings_8_Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.Exchange_functions.c:397:83: error: use of undeclared identifier '_OMC_LIT9' tmpMeta1 = stringAppend(_result,((_i_found - ((modelica_integer) 1) < _i)?_OMC_LIT9:omc_Modelica_Utilities_Strings_substring(threadData, _string, _i, _i_found - ((modelica_integer) 1)))); ^ 1 warning and 13 errors generated. make: *** [: Buildings_8_Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.Exchange_functions.o] Error 1