Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.ExchangeWithPassPythonObject.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.ExchangeWithPassPythonObject,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.ExchangeWithPassPythonObject") translateModel(Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.ExchangeWithPassPythonObject,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.ExchangeWithPassPythonObject") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001088/0.001088, allocations: 103.9 kB / 16.37 MB, free: 6.367 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.001036/0.001036, allocations: 195.4 kB / 17.31 MB, free: 5.91 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.162/1.162, allocations: 205.1 MB / 223.2 MB, free: 12.25 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.533/1.533, allocations: 292.3 MB / 0.5496 GB, free: 17.52 MB / 462.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.871e-05/1.871e-05, allocations: 2.281 kB / 0.6729 GB, free: 5.891 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.ExchangeWithPassPythonObject): time 0.001491/0.001523, allocations: 0.5489 MB / 0.6734 GB, free: 5.344 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.001186/0.00272, allocations: 1.117 MB / 0.6745 GB, free: 4.219 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.746e-05/0.002747, allocations: 3.938 kB / 0.6745 GB, free: 4.215 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 7.21e-05/0.002826, allocations: 16 kB / 0.6745 GB, free: 4.199 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 3.57e-05/0.002867, allocations: 3.984 kB / 0.6745 GB, free: 4.195 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.00043/0.003307, allocations: 167.4 kB / 0.6747 GB, free: 4.031 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 6.463e-05/0.003379, allocations: 15.98 kB / 0.6747 GB, free: 4.016 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 3.582e-05/0.00342, allocations: 7.984 kB / 0.6747 GB, free: 4.008 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 1.964e-05/0.003445, allocations: 4 kB / 0.6747 GB, free: 4.004 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 3.784e-05/0.003487, allocations: 8 kB / 0.6747 GB, free: 3.996 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 8.967e-06/0.003503, allocations: 11.94 kB / 0.6747 GB, free: 3.984 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002907/0.003798, allocations: 199.6 kB / 0.6749 GB, free: 3.789 MB / 0.545 GB Notification: Performance of combineBinaries: time 3.583e-05/0.003845, allocations: 19.83 kB / 0.6749 GB, free: 3.77 MB / 0.545 GB Notification: Performance of replaceArrayConstructors: time 7.765e-06/0.003857, allocations: 15.81 kB / 0.6749 GB, free: 3.754 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 1.756e-05/0.003879, allocations: 0 / 0.6749 GB, free: 3.754 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.213e-05/0.003895, allocations: 4 kB / 0.675 GB, free: 3.75 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: 2 (2) * Number of variables: 2 (2) Notification: Performance of Bindings: time 0.0002416/0.004141, allocations: 189.1 kB / 0.6751 GB, free: 3.465 MB / 0.545 GB Notification: Performance of FunctionAlias: time 1.947e-05/0.004166, allocations: 11.94 kB / 0.6751 GB, free: 3.453 MB / 0.545 GB Notification: Performance of Early Inline: time 6.313e-05/0.004233, allocations: 60.34 kB / 0.6752 GB, free: 3.367 MB / 0.545 GB Notification: Performance of simplify1: time 1.562e-05/0.004254, allocations: 4 kB / 0.6752 GB, free: 3.363 MB / 0.545 GB Notification: Performance of Alias: time 5.147e-05/0.00431, allocations: 60.55 kB / 0.6753 GB, free: 3.266 MB / 0.545 GB Notification: Performance of simplify2: time 7.443e-06/0.004324, allocations: 7.984 kB / 0.6753 GB, free: 3.258 MB / 0.545 GB Notification: Performance of Events: time 6.106e-05/0.004389, allocations: 27.88 kB / 0.6753 GB, free: 3.23 MB / 0.545 GB Notification: Performance of Detect States: time 5.512e-05/0.00445, allocations: 38.58 kB / 0.6753 GB, free: 3.18 MB / 0.545 GB Notification: Performance of Partitioning: time 4.892e-05/0.004505, allocations: 24.09 kB / 0.6754 GB, free: 3.148 MB / 0.545 GB Notification: Performance of Causalize: time 0.0002113/0.004721, allocations: 124.2 kB / 0.6755 GB, free: 3.02 MB / 0.545 GB Notification: Performance of After Index Reduction Inline: time 6.645e-05/0.004795, allocations: 76.33 kB / 0.6755 GB, free: 2.918 MB / 0.545 GB Notification: Performance of Inline: time 0.0001011/0.004903, allocations: 116.4 kB / 0.6757 GB, free: 2.77 MB / 0.545 GB Notification: Performance of Partitioning: time 1.865e-05/0.004927, allocations: 16.11 kB / 0.6757 GB, free: 2.746 MB / 0.545 GB Notification: Performance of Cleanup: time 9.418e-06/0.00494, allocations: 7.938 kB / 0.6757 GB, free: 2.738 MB / 0.545 GB Notification: Performance of Causalize: time 0.0001336/0.005078, allocations: 132 kB / 0.6758 GB, free: 2.602 MB / 0.545 GB Notification: Performance of Tearing: time 4.217e-06/0.005091, allocations: 4 kB / 0.6758 GB, free: 2.598 MB / 0.545 GB Notification: Performance of Initialization: time 3e-07/0.005095, allocations: 0 / 0.6758 GB, free: 2.598 MB / 0.545 GB Notification: Performance of Tearing: time 7.21e-07/0.0051, allocations: 0 / 0.6758 GB, free: 2.598 MB / 0.545 GB Notification: Performance of Categorize: time 5.781e-06/0.005109, allocations: 0 / 0.6758 GB, free: 2.598 MB / 0.545 GB Notification: Performance of Solve: time 4.274e-05/0.005155, allocations: 15.94 kB / 0.6758 GB, free: 2.582 MB / 0.545 GB Notification: Performance of Jacobian: time 2.284e-06/0.005162, allocations: 0 / 0.6758 GB, free: 2.582 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: ................. 2 (2) {$SEV_1, $SEV_0} * Number of top-level inputs: ................... 0 (0) {} Notification: [Simulation] Strong Component statistics after passing the back-end: * Number of single strong components: ........... 4 (scalar:2, array:2, record:0) * Number of multi strong components: ............ 0 (algorithm:0, 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: ........... 4 (scalar:2, array:2, record:0) * Number of multi strong components: ............ 0 (algorithm:0, 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.495e-05/0.005191, allocations: 17.14 kB / 0.6758 GB, free: 2.57 MB / 0.545 GB Notification: Performance of SimCode: time 0.0009624/0.006159, allocations: 1.131 MB / 0.6769 GB, free: 1.477 MB / 0.545 GB Notification: Performance of Templates: time 0.003429/0.009597, allocations: 1.71 MB / 0.6786 GB, free: 15.8 MB / 0.5606 GB make -j1 -f Buildings_8_Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.ExchangeWithPassPythonObject.makefile make -j1 -f Buildings_8_Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.ExchangeWithPassPythonObject.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_ExchangeWithPassPythonObject -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.ExchangeWithPassPythonObject.o Buildings_8_Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.ExchangeWithPassPythonObject.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_ExchangeWithPassPythonObject -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.ExchangeWithPassPythonObject_functions.o Buildings_8_Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.ExchangeWithPassPythonObject_functions.c Buildings_8_Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.ExchangeWithPassPythonObject_functions.c:29:19: error: use of undeclared identifier '_OMC_LIT0' _searchString = _OMC_LIT0; ^ Buildings_8_Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.ExchangeWithPassPythonObject_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.ExchangeWithPassPythonObject_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.ExchangeWithPassPythonObject_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.ExchangeWithPassPythonObject_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.ExchangeWithPassPythonObject_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.ExchangeWithPassPythonObject_functions.c:297:54: error: use of undeclared identifier '_OMC_LIT5' _result = ((_startIndex == ((modelica_integer) 1))?_OMC_LIT5:omc_Modelica_Utilities_Strings_substring(threadData, _string, ((modelica_integer) 1), _startIndex - ((modelica_integer) 1))); ^ Buildings_8_Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.ExchangeWithPassPythonObject_functions.c:313:83: error: use of undeclared identifier '_OMC_LIT5' tmpMeta1 = stringAppend(_result,((_i_found - ((modelica_integer) 1) < _i)?_OMC_LIT5:omc_Modelica_Utilities_Strings_substring(threadData, _string, _i, _i_found - ((modelica_integer) 1)))); ^ 1 warning and 7 errors generated. make: *** [: Buildings_8_Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.ExchangeWithPassPythonObject_functions.o] Error 1