Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_1.6_Buildings.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 1.6.0+build.1/package.mo", uses=false) Using package Buildings with version 1.6 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/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.Utilities.IO.Python27.Functions.Examples.Exchange,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Utilities.IO.Python27.Functions.Examples.Exchange") translateModel(Buildings.Utilities.IO.Python27.Functions.Examples.Exchange,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.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.001198/0.001198, allocations: 110.9 kB / 16.42 MB, free: 6.422 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.001167/0.001167, allocations: 187.2 kB / 17.36 MB, free: 5.684 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.311/1.311, allocations: 205.1 MB / 223.2 MB, free: 12.2 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo): time 0.4532/0.4532, allocations: 95.47 MB / 366.1 MB, free: 12.16 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.937e-05/1.937e-05, allocations: 2.281 kB / 0.5042 GB, free: 11.92 MB / 398.1 MB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python27.Functions.Examples.Exchange): time 0.001254/0.001282, allocations: 0.5242 MB / 0.5047 GB, free: 11.39 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009159/0.002209, allocations: 434.6 kB / 0.5051 GB, free: 10.96 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.994e-05/0.00224, allocations: 0 / 0.5051 GB, free: 10.96 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 3.211e-05/0.002278, allocations: 0 / 0.5051 GB, free: 10.96 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 7.785e-06/0.00229, allocations: 3.938 kB / 0.5051 GB, free: 10.96 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/Utilities/IO/Python27/Functions/exchange.mo:2:1-99:13:writable] Warning: Pure function 'Buildings.Utilities.IO.Python27.Functions.exchange' contains a call to impure function 'Modelica.Utilities.System.getEnvironmentVariable'. Notification: Performance of NFTyping.typeClassSections: time 0.0007448/0.003048, allocations: 191.5 kB / 0.5053 GB, free: 10.77 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001396/0.003196, allocations: 55.88 kB / 0.5054 GB, free: 10.71 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.468e-05/0.003258, allocations: 4 kB / 0.5054 GB, free: 10.71 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.972e-05/0.003304, allocations: 23.91 kB / 0.5054 GB, free: 10.69 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.316e-05/0.003383, allocations: 23.98 kB / 0.5054 GB, free: 10.66 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.726e-05/0.003407, allocations: 4 kB / 0.5054 GB, free: 10.66 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002171/0.003629, allocations: 111.8 kB / 0.5055 GB, free: 10.55 MB / 398.1 MB Notification: Performance of combineBinaries: time 7.711e-05/0.003713, allocations: 43.7 kB / 0.5056 GB, free: 10.51 MB / 398.1 MB Notification: Performance of replaceArrayConstructors: time 7.875e-06/0.003727, allocations: 19.75 kB / 0.5056 GB, free: 10.49 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.972e-05/0.003762, allocations: 4 kB / 0.5056 GB, free: 10.48 MB / 398.1 MB Notification: Performance of FrontEnd: time 9.457e-06/0.003776, allocations: 0 / 0.5056 GB, free: 10.48 MB / 398.1 MB 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.0003024/0.004082, allocations: 209.1 kB / 0.5058 GB, free: 10.18 MB / 398.1 MB Notification: Performance of FunctionAlias: time 0.0001784/0.004267, allocations: 91.67 kB / 0.5059 GB, free: 10.09 MB / 398.1 MB Notification: Performance of Early Inline: time 0.0001822/0.004459, allocations: 160.3 kB / 0.506 GB, free: 9.906 MB / 398.1 MB Notification: Performance of simplify1: time 4.124e-05/0.004508, allocations: 7.984 kB / 0.506 GB, free: 9.898 MB / 398.1 MB Notification: Performance of Alias: time 9.132e-05/0.004604, allocations: 72.55 kB / 0.5061 GB, free: 9.789 MB / 398.1 MB Notification: Performance of simplify2: time 9.127e-06/0.004618, allocations: 4 kB / 0.5061 GB, free: 9.785 MB / 398.1 MB Notification: Performance of Events: time 8.898e-05/0.004713, allocations: 39.95 kB / 0.5062 GB, free: 9.746 MB / 398.1 MB Notification: Performance of Detect States: time 0.0001189/0.004838, allocations: 80.16 kB / 0.5062 GB, free: 9.652 MB / 398.1 MB Notification: Performance of Partitioning: time 0.0001177/0.004963, allocations: 60.05 kB / 0.5063 GB, free: 9.586 MB / 398.1 MB Notification: Performance of Causalize: time 0.0003898/0.005359, allocations: 283.8 kB / 0.5066 GB, free: 9.305 MB / 398.1 MB Notification: Performance of After Index Reduction Inline: time 0.0001731/0.005543, allocations: 164.3 kB / 0.5067 GB, free: 9.117 MB / 398.1 MB Notification: Performance of Inline: time 0.0002637/0.005813, allocations: 236.3 kB / 0.5069 GB, free: 8.852 MB / 398.1 MB Notification: Performance of Partitioning: time 1.861e-05/0.005839, allocations: 20.05 kB / 0.507 GB, free: 8.824 MB / 398.1 MB Notification: Performance of Cleanup: time 3.703e-05/0.00588, allocations: 27.91 kB / 0.507 GB, free: 8.797 MB / 398.1 MB Notification: Performance of Causalize: time 0.0003142/0.006199, allocations: 283.1 kB / 0.5073 GB, free: 8.52 MB / 398.1 MB Notification: Performance of Tearing: time 5.18e-06/0.006214, allocations: 0 / 0.5073 GB, free: 8.52 MB / 398.1 MB Notification: Performance of Initialization: time 6.01e-07/0.006219, allocations: 0 / 0.5073 GB, free: 8.52 MB / 398.1 MB Notification: Performance of Tearing: time 1.533e-06/0.006227, allocations: 4.75 kB / 0.5073 GB, free: 8.516 MB / 398.1 MB Notification: Performance of Categorize: time 7.785e-06/0.006241, allocations: 4 kB / 0.5073 GB, free: 8.512 MB / 398.1 MB Notification: Performance of Solve: time 6.171e-05/0.006307, allocations: 27.86 kB / 0.5073 GB, free: 8.484 MB / 398.1 MB Notification: Performance of Jacobian: time 3.366e-06/0.006316, allocations: 0 / 0.5073 GB, free: 8.484 MB / 398.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: ................. 5 (4) {yI1, yI2, $FUN_5, $FUN_6} * Number of top-level inputs: ................... 0 (0) {} Notification: [Simulation] Strong Component statistics after passing the back-end: * Number of single strong components: ........... 8 (scalar:8, 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: ........... 8 (scalar:8, 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 3.365e-05/0.006354, allocations: 13.22 kB / 0.5073 GB, free: 8.48 MB / 398.1 MB Notification: Performance of SimCode: time 0.001287/0.007645, allocations: 1.118 MB / 0.5084 GB, free: 7.391 MB / 398.1 MB Notification: Performance of Templates: time 0.004779/0.01244, allocations: 2.041 MB / 0.5104 GB, free: 5.367 MB / 398.1 MB make -j1 -f Buildings_1.6_Buildings.Utilities.IO.Python27.Functions.Examples.Exchange.makefile make -j1 -f Buildings_1.6_Buildings.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 1.6.0+build.1/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_1_6_Buildings_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_1.6_Buildings.Utilities.IO.Python27.Functions.Examples.Exchange.o Buildings_1.6_Buildings.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 1.6.0+build.1/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_1_6_Buildings_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_1.6_Buildings.Utilities.IO.Python27.Functions.Examples.Exchange_functions.o Buildings_1.6_Buildings.Utilities.IO.Python27.Functions.Examples.Exchange_functions.c Buildings_1.6_Buildings.Utilities.IO.Python27.Functions.Examples.Exchange_functions.c:26:22: error: use of undeclared identifier '_OMC_LIT0' _pytPatBuildings = _OMC_LIT0; ^ Buildings_1.6_Buildings.Utilities.IO.Python27.Functions.Examples.Exchange_functions.c:28:78: error: use of undeclared identifier '_OMC_LIT1' _pytPat = omc_Modelica_Utilities_System_getEnvironmentVariable(threadData, _OMC_LIT1, 0 /* false */ ,&_havePytPat); ^ Buildings_1.6_Buildings.Utilities.IO.Python27.Functions.Examples.Exchange_functions.c:32:37: error: use of undeclared identifier '_OMC_LIT2' tmpMeta1 = stringAppend(_pytPat,_OMC_LIT2); ^ Buildings_1.6_Buildings.Utilities.IO.Python27.Functions.Examples.Exchange_functions.c:34:70: error: use of undeclared identifier '_OMC_LIT1' omc_Modelica_Utilities_System_setEnvironmentVariable(threadData, _OMC_LIT1, tmpMeta2, 0 /* false */); ^ Buildings_1.6_Buildings.Utilities.IO.Python27.Functions.Examples.Exchange_functions.c:38:70: error: use of undeclared identifier '_OMC_LIT1' omc_Modelica_Utilities_System_setEnvironmentVariable(threadData, _OMC_LIT1, _pytPatBuildings, 0 /* false */); ^ Buildings_1.6_Buildings.Utilities.IO.Python27.Functions.Examples.Exchange_functions.c:45:70: error: use of undeclared identifier '_OMC_LIT1' omc_Modelica_Utilities_System_setEnvironmentVariable(threadData, _OMC_LIT1, _pytPat, 0 /* false */); ^ Buildings_1.6_Buildings.Utilities.IO.Python27.Functions.Examples.Exchange_functions.c:49:70: error: use of undeclared identifier '_OMC_LIT1' omc_Modelica_Utilities_System_setEnvironmentVariable(threadData, _OMC_LIT1, _OMC_LIT3, 0 /* false */); ^ Buildings_1.6_Buildings.Utilities.IO.Python27.Functions.Examples.Exchange_functions.c:49:81: error: use of undeclared identifier '_OMC_LIT3' omc_Modelica_Utilities_System_setEnvironmentVariable(threadData, _OMC_LIT1, _OMC_LIT3, 0 /* false */); ^ Buildings_1.6_Buildings.Utilities.IO.Python27.Functions.Examples.Exchange_functions.c:104:3: warning: implicit declaration of function 'pythonExchangeValues' is invalid in C99 [-Wimplicit-function-declaration] pythonExchangeValues(MMC_STRINGDATA(_moduleName), MMC_STRINGDATA(_functionName), (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); ^ Buildings_1.6_Buildings.Utilities.IO.Python27.Functions.Examples.Exchange_functions.c:152:31: error: use of undeclared identifier '_OMC_LIT4' tmpMeta1 = stringAppend(_OMC_LIT4,_fileName); ^ Buildings_1.6_Buildings.Utilities.IO.Python27.Functions.Examples.Exchange_functions.c:153:40: error: use of undeclared identifier '_OMC_LIT5' tmpMeta2 = stringAppend(tmpMeta1,_OMC_LIT5); ^ Buildings_1.6_Buildings.Utilities.IO.Python27.Functions.Examples.Exchange_functions.c:154:40: error: use of undeclared identifier '_OMC_LIT7' tmpMeta3 = stringAppend(tmpMeta2,_OMC_LIT7); ^ Buildings_1.6_Buildings.Utilities.IO.Python27.Functions.Examples.Exchange_functions.c:161:33: error: use of undeclared identifier '_OMC_LIT4' tmpMeta4 = stringAppend(_OMC_LIT4,_fileName); ^ Buildings_1.6_Buildings.Utilities.IO.Python27.Functions.Examples.Exchange_functions.c:162:42: error: use of undeclared identifier '_OMC_LIT5' tmpMeta5 = stringAppend(tmpMeta4,_OMC_LIT5); ^ Buildings_1.6_Buildings.Utilities.IO.Python27.Functions.Examples.Exchange_functions.c:163:42: error: use of undeclared identifier '_OMC_LIT6' tmpMeta6 = stringAppend(tmpMeta5,_OMC_LIT6); ^ 1 warning and 14 errors generated. make: *** [: Buildings_1.6_Buildings.Utilities.IO.Python27.Functions.Examples.Exchange_functions.o] Error 1