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: 251.5 MB / 267.4 MB, free: 11.05 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.001508/0.001508, allocations: 180.3 kB / 326.5 MB, free: 2.676 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.133/2.133, allocations: 205 MB / 0.5766 GB, free: 20.98 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.0008127/0.0008124, allocations: 88.08 kB / 0.6803 GB, free: 14.7 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003371/0.000337, allocations: 14.34 kB / 0.7938 GB, free: 136.6 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2411/0.2415, allocations: 105.4 MB / 0.8968 GB, free: 68.13 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.Exchange): time 0.001257/0.2428, allocations: 270.5 kB / 0.897 GB, free: 67.87 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.002887/0.2457, allocations: 1.298 MB / 0.8983 GB, free: 66.56 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.56e-05/0.2458, allocations: 3.938 kB / 0.8983 GB, free: 66.56 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0001427/0.2459, allocations: 0 / 0.8983 GB, free: 66.56 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 6.054e-05/0.246, allocations: 3.938 kB / 0.8983 GB, free: 66.55 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.001022/0.247, allocations: 267.5 kB / 0.8985 GB, free: 66.29 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0001584/0.2472, allocations: 67.88 kB / 0.8986 GB, free: 66.23 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 5.184e-05/0.2473, allocations: 7.938 kB / 0.8986 GB, free: 66.22 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 7.141e-05/0.2474, allocations: 35.91 kB / 0.8987 GB, free: 66.18 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 7.943e-05/0.2475, allocations: 47.89 kB / 0.8987 GB, free: 66.14 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 3.565e-05/0.2475, allocations: 4 kB / 0.8987 GB, free: 66.13 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005912/0.2481, allocations: 207.6 kB / 0.8989 GB, free: 65.93 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 3.312e-05/0.2482, allocations: 11.92 kB / 0.8989 GB, free: 65.92 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 9.434e-05/0.2483, allocations: 35.84 kB / 0.8989 GB, free: 65.88 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0004212/0.2487, allocations: 191.7 kB / 0.8991 GB, free: 65.7 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 5.831e-06/0.2487, allocations: 0 / 0.8991 GB, free: 65.7 MB / 0.6042 GB Notification: Performance of FrontEnd: time 2.614e-06/0.2487, allocations: 0 / 0.8991 GB, free: 65.7 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 5.29e-06/0.2488, allocations: 0 / 0.8991 GB, free: 65.7 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.0004621/0.2492, allocations: 421.1 kB / 0.8995 GB, free: 65.23 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.834e-05/0.2493, allocations: 8.031 kB / 0.8995 GB, free: 65.22 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.298e-05/0.2494, allocations: 20.84 kB / 0.8996 GB, free: 65.2 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001446/0.2495, allocations: 172.4 kB / 0.8997 GB, free: 65 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.033e-05/0.2496, allocations: 4.375 kB / 0.8997 GB, free: 64.99 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.767e-05/0.2496, allocations: 8.312 kB / 0.8997 GB, free: 64.98 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003232/0.25, allocations: 125.7 kB / 0.8999 GB, free: 64.86 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.193e-05/0.25, allocations: 3.938 kB / 0.8999 GB, free: 64.85 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.767e-05/0.25, allocations: 4 kB / 0.8999 GB, free: 64.85 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.63e-06/0.2501, allocations: 0 / 0.8999 GB, free: 64.85 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001631/0.2502, allocations: 67.88 kB / 0.8999 GB, free: 64.78 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001731/0.2504, allocations: 161.7 kB / 0.9001 GB, free: 64.57 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002115/0.2507, allocations: 110.6 kB / 0.9002 GB, free: 64.46 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001815/0.2509, allocations: 104.8 kB / 0.9003 GB, free: 64.35 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 1.303e-05/0.2509, allocations: 4 kB / 0.9003 GB, free: 64.35 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.876e-05/0.2509, allocations: 38.5 kB / 0.9003 GB, free: 64.3 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=6): time 1.783e-06/0.2509, allocations: 4 kB / 0.9003 GB, free: 64.3 MB / 0.6042 GB Notification: Performance of matching and sorting (n=6): time 0.0007103/0.2517, allocations: 291.1 kB / 0.9006 GB, free: 64 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.628e-05/0.2517, allocations: 89.09 kB / 0.9007 GB, free: 63.89 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001109/0.2518, allocations: 125.7 kB / 0.9008 GB, free: 63.76 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 2.411e-05/0.2519, allocations: 25.7 kB / 0.9008 GB, free: 63.73 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 3.412e-05/0.2519, allocations: 88.14 kB / 0.9009 GB, free: 63.64 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 5.476e-05/0.252, allocations: 19.73 kB / 0.9009 GB, free: 63.62 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.165e-05/0.2521, allocations: 17.72 kB / 0.901 GB, free: 63.6 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 5.942e-05/0.2521, allocations: 314.8 kB / 0.9013 GB, free: 63.28 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001485/0.2523, allocations: 67.97 kB / 0.9013 GB, free: 63.21 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001399/0.2525, allocations: 59.94 kB / 0.9014 GB, free: 63.16 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003079/0.2528, allocations: 176.2 kB / 0.9015 GB, free: 62.97 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.2528, allocations: 0 / 0.9015 GB, free: 62.97 MB / 0.6042 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0004793/0.2533, allocations: 235.2 kB / 0.9018 GB, free: 62.73 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 5.309e-05/0.2534, allocations: 45.69 kB / 0.9018 GB, free: 62.68 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.604e-06/0.2534, allocations: 0 / 0.9018 GB, free: 62.68 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.802e-05/0.2534, allocations: 0 / 0.9018 GB, free: 62.68 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.693e-06/0.2534, allocations: 0 / 0.9018 GB, free: 62.68 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.385e-06/0.2534, allocations: 4 kB / 0.9018 GB, free: 62.67 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004465/0.2539, allocations: 35.81 kB / 0.9019 GB, free: 62.64 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.384e-05/0.254, allocations: 8 kB / 0.9019 GB, free: 62.63 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 (yI2[2],yI2[1],yI1[1]) * 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.0001741/0.2542, allocations: 163.5 kB / 0.902 GB, free: 62.45 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.611e-05/0.2542, allocations: 15.84 kB / 0.902 GB, free: 62.44 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.077e-05/0.2543, allocations: 8.375 kB / 0.902 GB, free: 62.43 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.26e-06/0.2543, allocations: 3.984 kB / 0.902 GB, free: 62.43 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.222e-06/0.2543, allocations: 4.188 kB / 0.902 GB, free: 62.42 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.851e-06/0.2543, allocations: 4.359 kB / 0.9021 GB, free: 62.42 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001405/0.2545, allocations: 181.6 kB / 0.9022 GB, free: 62.19 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.2545, allocations: 0 / 0.9022 GB, free: 62.19 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.725e-06/0.2545, allocations: 3.938 kB / 0.9022 GB, free: 62.19 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.797e-06/0.2545, allocations: 3.938 kB / 0.9022 GB, free: 62.18 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.468e-05/0.2546, allocations: 8 kB / 0.9022 GB, free: 62.18 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.748e-06/0.2546, allocations: 3.984 kB / 0.9022 GB, free: 62.17 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.315e-06/0.2546, allocations: 4 kB / 0.9023 GB, free: 62.17 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005773/0.2552, allocations: 286.6 kB / 0.9025 GB, free: 61.86 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 2.367e-05/0.2552, allocations: 85.08 kB / 0.9026 GB, free: 61.76 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.227e-05/0.2553, allocations: 4 kB / 0.9026 GB, free: 61.76 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003447/0.2557, allocations: 23.97 kB / 0.9026 GB, free: 61.73 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.972e-05/0.2557, allocations: 7.938 kB / 0.9026 GB, free: 61.73 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.774e-05/0.2558, allocations: 19.98 kB / 0.9027 GB, free: 61.71 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 5.224e-05/0.2558, allocations: 91.27 kB / 0.9027 GB, free: 61.62 MB / 0.6042 GB Notification: Performance of sort global known variables: time 3.51e-07/0.2558, allocations: 0 / 0.9027 GB, free: 61.62 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0005736/0.2564, allocations: 99.88 kB / 0.9028 GB, free: 61.52 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.001313/0.2578, allocations: 400.5 kB / 0.9032 GB, free: 61.22 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0005388/0.2583, allocations: 287.2 kB / 0.9035 GB, free: 60.93 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/0.2583, allocations: 0 / 0.9035 GB, free: 60.93 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0002933/0.2586, allocations: 207.3 kB / 0.9037 GB, free: 60.71 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002767/0.2589, allocations: 18 kB / 0.9037 GB, free: 60.7 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008453/0.2598, allocations: 344.4 kB / 0.904 GB, free: 60.32 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001505/0.26, allocations: 0.6809 MB / 0.9047 GB, free: 59.62 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.716e-05/0.26, allocations: 11.44 kB / 0.9047 GB, free: 59.61 MB / 0.6042 GB Notification: Performance of SimCode: time 3.5e-07/0.26, allocations: 0 / 0.9047 GB, free: 59.61 MB / 0.6042 GB Notification: Performance of Templates: time 0.009046/0.2691, allocations: 3.298 MB / 0.9079 GB, free: 56.33 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