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.407/1.407, allocations: 252 MB / 267.6 MB, free: 10.91 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.001249/0.001249, allocations: 174.5 kB / 327.3 MB, free: 2.219 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.01/2.01, allocations: 205.4 MB / 0.5783 GB, free: 20.55 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.0009224/0.0009225, allocations: 87.98 kB / 0.6829 GB, free: 13.33 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003668/0.0003669, allocations: 9.125 kB / 0.797 GB, free: 134.9 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2595/0.2599, allocations: 106.3 MB / 0.9008 GB, free: 64.27 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.Exchange): time 0.0008428/0.2608, allocations: 278.9 kB / 0.9011 GB, free: 64 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.001479/0.2623, allocations: 1.191 MB / 0.9023 GB, free: 62.8 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.559e-05/0.2624, allocations: 0 / 0.9023 GB, free: 62.8 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0001058/0.2625, allocations: 11.94 kB / 0.9023 GB, free: 62.79 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 4.257e-05/0.2625, allocations: 0 / 0.9023 GB, free: 62.79 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.000541/0.2631, allocations: 267.5 kB / 0.9025 GB, free: 62.53 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 9.169e-05/0.2632, allocations: 55.88 kB / 0.9026 GB, free: 62.48 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 5.032e-05/0.2632, allocations: 0 / 0.9026 GB, free: 62.48 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 5.121e-05/0.2633, allocations: 47.89 kB / 0.9026 GB, free: 62.43 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 6.336e-05/0.2634, allocations: 47.89 kB / 0.9027 GB, free: 62.38 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 2.16e-05/0.2634, allocations: 0 / 0.9027 GB, free: 62.38 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003693/0.2638, allocations: 199.6 kB / 0.9029 GB, free: 62.19 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 1.712e-05/0.2638, allocations: 0 / 0.9029 GB, free: 62.19 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 5.071e-05/0.2639, allocations: 37.64 kB / 0.9029 GB, free: 62.14 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0002467/0.2641, allocations: 191.7 kB / 0.9031 GB, free: 61.96 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 5.59e-06/0.2641, allocations: 0 / 0.9031 GB, free: 61.96 MB / 0.6042 GB Notification: Performance of FrontEnd: time 2.535e-06/0.2641, allocations: 0 / 0.9031 GB, free: 61.96 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 5.831e-06/0.2641, allocations: 0 / 0.9031 GB, free: 61.96 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.0003767/0.2645, allocations: 420.9 kB / 0.9035 GB, free: 61.49 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.123e-05/0.2646, allocations: 12.03 kB / 0.9035 GB, free: 61.48 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.439e-05/0.2646, allocations: 11.91 kB / 0.9035 GB, free: 61.47 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001305/0.2648, allocations: 179 kB / 0.9037 GB, free: 61.25 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.742e-05/0.2648, allocations: 4 kB / 0.9037 GB, free: 61.25 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.387e-05/0.2648, allocations: 8 kB / 0.9037 GB, free: 61.24 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001971/0.265, allocations: 121.5 kB / 0.9038 GB, free: 61.12 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.197e-06/0.265, allocations: 0 / 0.9038 GB, free: 61.12 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.025e-05/0.2651, allocations: 8 kB / 0.9038 GB, free: 61.11 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.589e-06/0.2651, allocations: 0 / 0.9038 GB, free: 61.11 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.226e-05/0.2652, allocations: 59.94 kB / 0.9039 GB, free: 61.05 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001375/0.2653, allocations: 173.8 kB / 0.904 GB, free: 60.83 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001311/0.2655, allocations: 110.6 kB / 0.9042 GB, free: 60.71 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001027/0.2656, allocations: 100.9 kB / 0.9042 GB, free: 60.61 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 1.091e-05/0.2656, allocations: 0 / 0.9042 GB, free: 60.61 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.167e-05/0.2656, allocations: 34.56 kB / 0.9043 GB, free: 60.57 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=6): time 9.52e-07/0.2656, allocations: 7.875 kB / 0.9043 GB, free: 60.56 MB / 0.6042 GB Notification: Performance of matching and sorting (n=6): time 0.0004353/0.2661, allocations: 295.1 kB / 0.9046 GB, free: 60.26 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.722e-05/0.2661, allocations: 89.09 kB / 0.9047 GB, free: 60.16 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.169e-05/0.2662, allocations: 121.8 kB / 0.9048 GB, free: 60.03 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 1.977e-05/0.2662, allocations: 29.7 kB / 0.9048 GB, free: 59.99 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 2.586e-05/0.2663, allocations: 84.14 kB / 0.9049 GB, free: 59.91 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 4.031e-05/0.2663, allocations: 27.72 kB / 0.9049 GB, free: 59.88 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.316e-05/0.2663, allocations: 0 / 0.9049 GB, free: 59.88 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 6.633e-05/0.2664, allocations: 322.8 kB / 0.9052 GB, free: 59.55 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.151e-05/0.2665, allocations: 63.97 kB / 0.9053 GB, free: 59.49 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.142e-05/0.2666, allocations: 55.95 kB / 0.9053 GB, free: 59.44 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.384e-05/0.2667, allocations: 93.59 kB / 0.9054 GB, free: 59.34 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.447e-06/0.2667, allocations: 0 / 0.9054 GB, free: 59.34 MB / 0.6042 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002528/0.2669, allocations: 231.2 kB / 0.9056 GB, free: 59.1 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 4.114e-05/0.267, allocations: 49.69 kB / 0.9057 GB, free: 59.05 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.42e-06/0.267, allocations: 0 / 0.9057 GB, free: 59.05 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.465e-05/0.267, allocations: 0 / 0.9057 GB, free: 59.05 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.133e-06/0.267, allocations: 0 / 0.9057 GB, free: 59.05 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.891e-06/0.267, allocations: 0 / 0.9057 GB, free: 59.05 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003117/0.2674, allocations: 27.94 kB / 0.9057 GB, free: 59.02 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.578e-05/0.2674, allocations: 12 kB / 0.9057 GB, free: 59.01 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000118/0.2675, allocations: 167.5 kB / 0.9059 GB, free: 58.83 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.414e-05/0.2676, allocations: 11.91 kB / 0.9059 GB, free: 58.82 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.496e-05/0.2676, allocations: 8.375 kB / 0.9059 GB, free: 58.81 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.284e-06/0.2676, allocations: 3.984 kB / 0.9059 GB, free: 58.8 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.2e-06/0.2676, allocations: 0 / 0.9059 GB, free: 58.8 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.697e-06/0.2676, allocations: 3.984 kB / 0.9059 GB, free: 58.8 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.722e-05/0.2677, allocations: 169.6 kB / 0.9061 GB, free: 58.59 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.165e-06/0.2677, allocations: 7.984 kB / 0.9061 GB, free: 58.58 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.41e-07/0.2677, allocations: 0 / 0.9061 GB, free: 58.58 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.363e-06/0.2677, allocations: 0 / 0.9061 GB, free: 58.58 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.151e-05/0.2678, allocations: 12.25 kB / 0.9061 GB, free: 58.57 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.415e-06/0.2678, allocations: 8.312 kB / 0.9061 GB, free: 58.56 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.2678, allocations: 3.984 kB / 0.9061 GB, free: 58.55 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002953/0.2681, allocations: 290.5 kB / 0.9064 GB, free: 58.25 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 3.03e-05/0.2681, allocations: 96.94 kB / 0.9065 GB, free: 58.13 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.217e-05/0.2682, allocations: 11.97 kB / 0.9065 GB, free: 58.12 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001971/0.2684, allocations: 19.97 kB / 0.9065 GB, free: 58.1 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.212e-05/0.2684, allocations: 8 kB / 0.9065 GB, free: 58.09 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.54e-05/0.2684, allocations: 19.98 kB / 0.9065 GB, free: 58.07 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 3.955e-05/0.2685, allocations: 91.27 kB / 0.9066 GB, free: 57.98 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.21e-07/0.2685, allocations: 0 / 0.9066 GB, free: 57.98 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0003287/0.2688, allocations: 91.92 kB / 0.9067 GB, free: 57.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008056/0.2696, allocations: 390.7 kB / 0.9071 GB, free: 57.61 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0003452/0.27, allocations: 291.2 kB / 0.9074 GB, free: 57.31 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.27, allocations: 0 / 0.9074 GB, free: 57.31 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0001616/0.2702, allocations: 211.3 kB / 0.9076 GB, free: 57.09 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001922/0.2704, allocations: 15.95 kB / 0.9076 GB, free: 57.07 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005402/0.2709, allocations: 332.4 kB / 0.9079 GB, free: 56.71 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001356/0.2711, allocations: 0.6809 MB / 0.9086 GB, free: 56.01 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.3e-05/0.2711, allocations: 11.44 kB / 0.9086 GB, free: 56 MB / 0.6042 GB Notification: Performance of SimCode: time 7.42e-07/0.2711, allocations: 0 / 0.9086 GB, free: 56 MB / 0.6042 GB Notification: Performance of Templates: time 0.004917/0.276, allocations: 3.303 MB / 0.9118 GB, free: 52.72 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++ -Winvalid-pch -O0 -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/c/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