Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.Exchange.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.Exchange,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_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_maint.7.0.x_Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.Exchange") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.496/1.496, allocations: 252 MB / 268 MB, free: 10.87 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001149/0.001149, allocations: 187 kB / 327.6 MB, free: 2.098 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.096/2.096, allocations: 205.4 MB / 0.5786 GB, free: 20.11 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009945/0.000994, allocations: 88.08 kB / 0.6832 GB, free: 12.75 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003453/0.0003453, allocations: 9.219 kB / 0.7976 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2362/0.2366, allocations: 106.3 MB / 0.9015 GB, free: 63.5 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.Exchange): time 0.0007878/0.2374, allocations: 278.8 kB / 0.9017 GB, free: 63.23 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.001669/0.2391, allocations: 1.265 MB / 0.903 GB, free: 61.95 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.777e-05/0.2392, allocations: 4 kB / 0.903 GB, free: 61.95 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 8.796e-05/0.2392, allocations: 7.984 kB / 0.903 GB, free: 61.94 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 4.031e-05/0.2393, allocations: 0 / 0.903 GB, free: 61.94 MB / 0.6042 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.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.System.getEnvironmentVariable‘. Notification: Performance of NFTyping.typeClassSections: time 0.0006309/0.2399, allocations: 259.5 kB / 0.9032 GB, free: 61.69 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 9.953e-05/0.24, allocations: 71.92 kB / 0.9033 GB, free: 61.62 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 4.813e-05/0.2401, allocations: 8 kB / 0.9033 GB, free: 61.61 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 5.262e-05/0.2402, allocations: 47.83 kB / 0.9034 GB, free: 61.56 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 5.116e-05/0.2402, allocations: 35.86 kB / 0.9034 GB, free: 61.53 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 2.344e-05/0.2402, allocations: 4 kB / 0.9034 GB, free: 61.52 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004188/0.2407, allocations: 203.7 kB / 0.9036 GB, free: 61.32 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 2.659e-05/0.2407, allocations: 11.92 kB / 0.9036 GB, free: 61.31 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 6.489e-05/0.2408, allocations: 57.56 kB / 0.9037 GB, free: 61.25 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0002857/0.2411, allocations: 199.7 kB / 0.9038 GB, free: 61.05 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 4.498e-06/0.2411, allocations: 0 / 0.9038 GB, free: 61.05 MB / 0.6042 GB Notification: Performance of FrontEnd: time 2.584e-06/0.2411, allocations: 7.938 kB / 0.9039 GB, free: 61.05 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 4.027e-06/0.2411, allocations: 0 / 0.9039 GB, free: 61.05 MB / 0.6042 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0003117/0.2414, allocations: 421.1 kB / 0.9043 GB, free: 60.58 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.723e-05/0.2415, allocations: 8.031 kB / 0.9043 GB, free: 60.57 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.598e-05/0.2415, allocations: 12.84 kB / 0.9043 GB, free: 60.56 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.877e-05/0.2416, allocations: 176.4 kB / 0.9044 GB, free: 60.35 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.436e-05/0.2417, allocations: 4.375 kB / 0.9044 GB, free: 60.35 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.299e-05/0.2417, allocations: 4.375 kB / 0.9044 GB, free: 60.34 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002046/0.2419, allocations: 141.6 kB / 0.9046 GB, free: 60.2 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.145e-06/0.2419, allocations: 0 / 0.9046 GB, free: 60.2 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.843e-05/0.2419, allocations: 4 kB / 0.9046 GB, free: 60.2 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.426e-06/0.2419, allocations: 0 / 0.9046 GB, free: 60.2 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001104/0.2421, allocations: 55.95 kB / 0.9046 GB, free: 60.14 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001251/0.2422, allocations: 165.9 kB / 0.9048 GB, free: 59.93 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000124/0.2423, allocations: 114.6 kB / 0.9049 GB, free: 59.81 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.638e-05/0.2424, allocations: 96.91 kB / 0.905 GB, free: 59.71 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 7.975e-06/0.2424, allocations: 8 kB / 0.905 GB, free: 59.7 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.786e-05/0.2425, allocations: 46.42 kB / 0.9051 GB, free: 59.65 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=6): time 1.243e-06/0.2425, allocations: 0 / 0.9051 GB, free: 59.65 MB / 0.6042 GB Notification: Performance of matching and sorting (n=6): time 0.0004153/0.2429, allocations: 287.1 kB / 0.9053 GB, free: 59.36 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.506e-05/0.2429, allocations: 89.09 kB / 0.9054 GB, free: 59.25 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.396e-05/0.243, allocations: 125.7 kB / 0.9055 GB, free: 59.12 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 1.86e-05/0.2431, allocations: 25.7 kB / 0.9056 GB, free: 59.09 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 2.601e-05/0.2431, allocations: 88.14 kB / 0.9056 GB, free: 59 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 3.64e-05/0.2431, allocations: 19.78 kB / 0.9057 GB, free: 58.98 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.541e-05/0.2431, allocations: 4 kB / 0.9057 GB, free: 58.97 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 4.956e-05/0.2432, allocations: 318.8 kB / 0.906 GB, free: 58.65 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.754e-05/0.2433, allocations: 59.95 kB / 0.906 GB, free: 58.59 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.476e-05/0.2434, allocations: 63.94 kB / 0.9061 GB, free: 58.53 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001591/0.2435, allocations: 184.1 kB / 0.9063 GB, free: 58.34 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.2435, allocations: 0 / 0.9063 GB, free: 58.34 MB / 0.6042 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002584/0.2438, allocations: 227.5 kB / 0.9065 GB, free: 58.1 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 3.754e-05/0.2439, allocations: 42.06 kB / 0.9065 GB, free: 58.05 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.46e-06/0.2439, allocations: 8.062 kB / 0.9065 GB, free: 58.05 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.257e-05/0.2439, allocations: 4 kB / 0.9065 GB, free: 58.04 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.954e-06/0.2439, allocations: 0 / 0.9065 GB, free: 58.04 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.739e-06/0.2439, allocations: 7.875 kB / 0.9065 GB, free: 58.04 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002873/0.2442, allocations: 23.88 kB / 0.9066 GB, free: 58.01 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.509e-05/0.2442, allocations: 19.98 kB / 0.9066 GB, free: 57.99 MB / 0.6042 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 (yI1[1],yI2[1],yI2[2]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001111/0.2444, allocations: 159.5 kB / 0.9067 GB, free: 57.82 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.645e-05/0.2444, allocations: 15.84 kB / 0.9067 GB, free: 57.8 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.341e-05/0.2444, allocations: 16.36 kB / 0.9068 GB, free: 57.79 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.293e-06/0.2444, allocations: 0 / 0.9068 GB, free: 57.79 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.097e-06/0.2444, allocations: 0 / 0.9068 GB, free: 57.79 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.144e-06/0.2444, allocations: 3.938 kB / 0.9068 GB, free: 57.79 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.886e-05/0.2445, allocations: 165.6 kB / 0.9069 GB, free: 57.57 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.2445, allocations: 4 kB / 0.9069 GB, free: 57.57 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.192e-06/0.2445, allocations: 3.938 kB / 0.9069 GB, free: 57.57 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.084e-06/0.2445, allocations: 0 / 0.9069 GB, free: 57.57 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.136e-05/0.2446, allocations: 15.98 kB / 0.9069 GB, free: 57.55 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.162e-06/0.2446, allocations: 0 / 0.9069 GB, free: 57.55 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.2446, allocations: 0 / 0.9069 GB, free: 57.55 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000307/0.2449, allocations: 290.6 kB / 0.9072 GB, free: 57.24 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 3.152e-05/0.2449, allocations: 100.9 kB / 0.9073 GB, free: 57.12 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.179e-05/0.245, allocations: 4 kB / 0.9073 GB, free: 57.12 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000201/0.2452, allocations: 19.97 kB / 0.9073 GB, free: 57.1 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.002e-05/0.2452, allocations: 8 kB / 0.9074 GB, free: 57.09 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.611e-05/0.2452, allocations: 19.98 kB / 0.9074 GB, free: 57.07 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 3.54e-05/0.2453, allocations: 95.3 kB / 0.9075 GB, free: 56.98 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.082e-06/0.2453, allocations: 0 / 0.9075 GB, free: 56.98 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0003132/0.2456, allocations: 95.84 kB / 0.9076 GB, free: 56.89 MB / 0.6042 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 (yI1[1],yI2[1],yI2[2]) * Number of discrete states: 3 (yI2[2],yI2[1],yI1[1]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009455/0.2466, allocations: 389.4 kB / 0.9079 GB, free: 56.6 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0003024/0.2469, allocations: 283.3 kB / 0.9082 GB, free: 56.31 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.2469, allocations: 0 / 0.9082 GB, free: 56.31 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0001541/0.247, allocations: 219.4 kB / 0.9084 GB, free: 56.08 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001716/0.2472, allocations: 19.25 kB / 0.9084 GB, free: 56.07 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004925/0.2477, allocations: 332.4 kB / 0.9087 GB, free: 55.71 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001162/0.2479, allocations: 0.6848 MB / 0.9094 GB, free: 55 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.356e-05/0.2479, allocations: 11.42 kB / 0.9094 GB, free: 54.98 MB / 0.6042 GB Notification: Performance of SimCode: time 5.01e-07/0.2479, allocations: 0 / 0.9094 GB, free: 54.98 MB / 0.6042 GB Notification: Performance of Templates: time 0.005013/0.2529, allocations: 3.302 MB / 0.9126 GB, free: 51.71 MB / 0.6042 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.Exchange.makefile make -j1 -f Buildings_maint.7.0.x_Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.Exchange.makefile clang++ -std=c++14 -Winvalid-pch -O2 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DUSE_THREAD -DSUNDIALS_MAJOR_VERSION=5 -DSUNDIALS_MINOR_VERSION=4 -DPMC_USE_SUNDIALS -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -I. "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/Resources/C-Sources" -I"." -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/sundials" "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/Resources/C-Sources" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppBuildings_maint.7.0.x_Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.ExchangeCalcHelperMain.o OMCppBuildings_maint.7.0.x_Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.ExchangeCalcHelperMain.cpp In file included from OMCppBuildings_maint.7.0.x_Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.ExchangeCalcHelperMain.cpp:28: In file included from ./OMCppBuildings_maint.7.0.x_Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.ExchangeFunctions.cpp:5: /home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/Resources/C-Sources/pythonWrapper.c:35:3: error: use of undeclared identifier 'pythonExchangeValuesNoModelica' pythonExchangeValuesNoModelica( ^ 1 error generated. make: *** [: OMCppBuildings_maint.7.0.x_Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.ExchangeCalcHelperMain.o] Error 1