Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Utilities.IO.Python36.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.Utilities.IO.Python36.Functions.Examples.Exchange,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Utilities.IO.Python36.Functions.Examples.Exchange") translateModel(Buildings.Utilities.IO.Python36.Functions.Examples.Exchange,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Utilities.IO.Python36.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.353/1.353, allocations: 252 MB / 267.6 MB, free: 10.89 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.001074/0.001074, allocations: 175.9 kB / 327.3 MB, free: 2.191 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.742/1.742, allocations: 205.4 MB / 0.5783 GB, free: 20.17 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.0007276/0.0007274, allocations: 94.34 kB / 0.6829 GB, free: 12.84 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003301/0.0003302, allocations: 10.28 kB / 0.797 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2488/0.2492, allocations: 106.3 MB / 0.9008 GB, free: 63.85 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python36.Functions.Examples.Exchange): time 0.0008335/0.2501, allocations: 274.9 kB / 0.9011 GB, free: 63.59 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.001547/0.2516, allocations: 1.195 MB / 0.9023 GB, free: 62.38 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.191e-05/0.2517, allocations: 0 / 0.9023 GB, free: 62.38 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0001203/0.2518, allocations: 15.92 kB / 0.9023 GB, free: 62.37 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 4.632e-05/0.2519, allocations: 0 / 0.9023 GB, free: 62.37 MB / 0.6042 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/Utilities/IO/Python36/Functions/exchange.mo:2:1-113:13:writable] Warning: Pure function ‘Buildings.Utilities.IO.Python36.Functions.exchange‘ contains a call to impure function ‘Modelica.Utilities.System.getEnvironmentVariable‘. Notification: Performance of NFTyping.typeClassSections: time 0.0005697/0.2524, allocations: 255.5 kB / 0.9025 GB, free: 62.12 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 8.233e-05/0.2525, allocations: 63.86 kB / 0.9026 GB, free: 62.05 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 5.127e-05/0.2526, allocations: 4 kB / 0.9026 GB, free: 62.05 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 4.297e-05/0.2526, allocations: 39.91 kB / 0.9026 GB, free: 62.01 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 5.821e-05/0.2527, allocations: 43.89 kB / 0.9027 GB, free: 61.97 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 2.009e-05/0.2527, allocations: 0 / 0.9027 GB, free: 61.97 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003507/0.2531, allocations: 199.6 kB / 0.9029 GB, free: 61.77 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 1.871e-05/0.2531, allocations: 7.938 kB / 0.9029 GB, free: 61.77 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 3.121e-05/0.2532, allocations: 33.7 kB / 0.9029 GB, free: 61.73 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0002344/0.2534, allocations: 195.7 kB / 0.9031 GB, free: 61.54 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 7.374e-06/0.2534, allocations: 0 / 0.9031 GB, free: 61.54 MB / 0.6042 GB Notification: Performance of FrontEnd: time 3.136e-06/0.2534, allocations: 0 / 0.9031 GB, free: 61.54 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 6.682e-06/0.2534, allocations: 0 / 0.9031 GB, free: 61.54 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.0003641/0.2538, allocations: 424.9 kB / 0.9035 GB, free: 61.07 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.596e-05/0.2538, allocations: 8.031 kB / 0.9035 GB, free: 61.06 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.682e-05/0.2539, allocations: 15.89 kB / 0.9035 GB, free: 61.04 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001128/0.254, allocations: 179 kB / 0.9037 GB, free: 60.83 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.698e-05/0.2541, allocations: 0 / 0.9037 GB, free: 60.83 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.365e-05/0.2541, allocations: 8 kB / 0.9037 GB, free: 60.82 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001961/0.2543, allocations: 121.5 kB / 0.9038 GB, free: 60.7 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.626e-06/0.2543, allocations: 3.984 kB / 0.9038 GB, free: 60.69 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.136e-05/0.2543, allocations: 4 kB / 0.9038 GB, free: 60.69 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.699e-06/0.2543, allocations: 0 / 0.9038 GB, free: 60.69 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001029/0.2544, allocations: 63.94 kB / 0.9039 GB, free: 60.62 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001572/0.2546, allocations: 173.9 kB / 0.904 GB, free: 60.41 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001391/0.2548, allocations: 106.5 kB / 0.9041 GB, free: 60.29 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001111/0.2549, allocations: 108.9 kB / 0.9042 GB, free: 60.18 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 1.026e-05/0.2549, allocations: 0 / 0.9042 GB, free: 60.18 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.277e-05/0.2549, allocations: 34.5 kB / 0.9043 GB, free: 60.14 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=6): time 2.024e-06/0.2549, allocations: 0 / 0.9043 GB, free: 60.14 MB / 0.6042 GB Notification: Performance of matching and sorting (n=6): time 0.0004399/0.2554, allocations: 295 kB / 0.9046 GB, free: 59.84 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.582e-05/0.2554, allocations: 97.12 kB / 0.9046 GB, free: 59.73 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.356e-05/0.2555, allocations: 113.8 kB / 0.9048 GB, free: 59.61 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 2.234e-05/0.2556, allocations: 29.7 kB / 0.9048 GB, free: 59.57 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 3.142e-05/0.2556, allocations: 92.12 kB / 0.9049 GB, free: 59.48 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 4.347e-05/0.2557, allocations: 19.75 kB / 0.9049 GB, free: 59.46 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.235e-05/0.2557, allocations: 0 / 0.9049 GB, free: 59.46 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 7.07e-05/0.2558, allocations: 318.8 kB / 0.9052 GB, free: 59.14 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.496e-05/0.2558, allocations: 67.88 kB / 0.9053 GB, free: 59.07 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.538e-05/0.2559, allocations: 59.94 kB / 0.9053 GB, free: 59.01 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.633e-05/0.256, allocations: 85.7 kB / 0.9054 GB, free: 58.92 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/0.256, allocations: 4 kB / 0.9054 GB, free: 58.92 MB / 0.6042 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002552/0.2563, allocations: 231.5 kB / 0.9056 GB, free: 58.68 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 4.336e-05/0.2564, allocations: 44.19 kB / 0.9057 GB, free: 58.63 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.789e-06/0.2564, allocations: 0 / 0.9057 GB, free: 58.63 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.539e-05/0.2564, allocations: 384 / 0.9057 GB, free: 58.63 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.305e-06/0.2564, allocations: 4 kB / 0.9057 GB, free: 58.63 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.132e-06/0.2564, allocations: 0 / 0.9057 GB, free: 58.63 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003125/0.2567, allocations: 27.88 kB / 0.9057 GB, free: 58.6 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.654e-05/0.2568, allocations: 11.94 kB / 0.9057 GB, free: 58.59 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.0001178/0.2569, allocations: 171.5 kB / 0.9059 GB, free: 58.41 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.453e-05/0.2569, allocations: 11.91 kB / 0.9059 GB, free: 58.39 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.509e-05/0.2569, allocations: 16.36 kB / 0.9059 GB, free: 58.38 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.613e-06/0.2569, allocations: 0 / 0.9059 GB, free: 58.38 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.648e-06/0.257, allocations: 0 / 0.9059 GB, free: 58.38 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.405e-06/0.257, allocations: 0 / 0.9059 GB, free: 58.38 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.17e-05/0.2571, allocations: 173.6 kB / 0.9061 GB, free: 58.16 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.42e-07/0.2571, allocations: 3.938 kB / 0.9061 GB, free: 58.16 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.11e-07/0.2571, allocations: 0 / 0.9061 GB, free: 58.16 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.753e-06/0.2571, allocations: 4 kB / 0.9061 GB, free: 58.15 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.087e-05/0.2571, allocations: 11.98 kB / 0.9061 GB, free: 58.14 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.202e-06/0.2571, allocations: 0 / 0.9061 GB, free: 58.14 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.2571, allocations: 0 / 0.9061 GB, free: 58.14 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002996/0.2574, allocations: 294.5 kB / 0.9064 GB, free: 57.83 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 2.937e-05/0.2575, allocations: 96.88 kB / 0.9065 GB, free: 57.71 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.043e-05/0.2575, allocations: 4 kB / 0.9065 GB, free: 57.71 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002019/0.2577, allocations: 28 kB / 0.9065 GB, free: 57.68 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.357e-05/0.2577, allocations: 8 kB / 0.9065 GB, free: 57.68 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.474e-05/0.2578, allocations: 15.98 kB / 0.9065 GB, free: 57.66 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 4.612e-05/0.2578, allocations: 91.27 kB / 0.9066 GB, free: 57.57 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2578, allocations: 0 / 0.9066 GB, free: 57.57 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0003594/0.2582, allocations: 91.98 kB / 0.9067 GB, free: 57.48 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.0008523/0.2591, allocations: 400.6 kB / 0.9071 GB, free: 57.19 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0003424/0.2594, allocations: 295.2 kB / 0.9073 GB, free: 56.89 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.2594, allocations: 0 / 0.9073 GB, free: 56.89 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.000162/0.2596, allocations: 211.3 kB / 0.9076 GB, free: 56.67 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001789/0.2598, allocations: 11.95 kB / 0.9076 GB, free: 56.66 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005527/0.2603, allocations: 324.4 kB / 0.9079 GB, free: 56.3 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001673/0.2605, allocations: 0.685 MB / 0.9085 GB, free: 55.59 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.531e-05/0.2605, allocations: 11.44 kB / 0.9086 GB, free: 55.58 MB / 0.6042 GB Notification: Performance of SimCode: time 2.41e-07/0.2605, allocations: 3.938 kB / 0.9086 GB, free: 55.58 MB / 0.6042 GB Notification: Performance of Templates: time 0.004729/0.2653, allocations: 3.235 MB / 0.9117 GB, free: 52.36 MB / 0.6042 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Utilities.IO.Python36.Functions.Examples.Exchange.makefile make -j1 -f Buildings_maint.7.0.x_Buildings.Utilities.IO.Python36.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.Utilities.IO.Python36.Functions.Examples.ExchangeCalcHelperMain.o OMCppBuildings_maint.7.0.x_Buildings.Utilities.IO.Python36.Functions.Examples.ExchangeCalcHelperMain.cpp In file included from OMCppBuildings_maint.7.0.x_Buildings.Utilities.IO.Python36.Functions.Examples.ExchangeCalcHelperMain.cpp:28: In file included from ./OMCppBuildings_maint.7.0.x_Buildings.Utilities.IO.Python36.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.Utilities.IO.Python36.Functions.Examples.ExchangeCalcHelperMain.o] Error 1