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.ExchangeWithPassPythonObject.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.ExchangeWithPassPythonObject,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.ExchangeWithPassPythonObject") translateModel(Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.ExchangeWithPassPythonObject,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.ExchangeWithPassPythonObject") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.434/1.434, allocations: 252 MB / 268 MB, free: 10.86 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.001332/0.001332, allocations: 179.2 kB / 327.6 MB, free: 2.07 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.873/1.873, allocations: 205.4 MB / 0.5786 GB, free: 20.12 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.0009742/0.0009742, allocations: 91.8 kB / 0.6832 GB, free: 12.75 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0004554/0.0004554, allocations: 8.531 kB / 0.7976 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2377/0.2382, allocations: 106.3 MB / 0.9015 GB, free: 63.49 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.ExchangeWithPassPythonObject): time 0.0008707/0.2391, allocations: 266.9 kB / 0.9017 GB, free: 63.23 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.001508/0.2407, allocations: 1.109 MB / 0.9028 GB, free: 62.11 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.079e-05/0.2407, allocations: 4 kB / 0.9028 GB, free: 62.11 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0001207/0.2408, allocations: 4 kB / 0.9028 GB, free: 62.11 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 5.6e-05/0.2409, allocations: 11.98 kB / 0.9028 GB, free: 62.09 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.0005199/0.2414, allocations: 139.7 kB / 0.903 GB, free: 61.96 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 5.722e-05/0.2415, allocations: 15.98 kB / 0.903 GB, free: 61.94 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 5.415e-05/0.2416, allocations: 3.938 kB / 0.903 GB, free: 61.94 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 2.48e-05/0.2416, allocations: 4 kB / 0.903 GB, free: 61.93 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 5.845e-05/0.2417, allocations: 11.92 kB / 0.903 GB, free: 61.92 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 1.369e-05/0.2417, allocations: 4 kB / 0.903 GB, free: 61.92 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003837/0.2421, allocations: 179.7 kB / 0.9032 GB, free: 61.74 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 4.238e-05/0.2421, allocations: 3.984 kB / 0.9032 GB, free: 61.74 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 4.346e-05/0.2422, allocations: 37.7 kB / 0.9032 GB, free: 61.7 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0002296/0.2424, allocations: 139.8 kB / 0.9033 GB, free: 61.56 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 4.037e-06/0.2424, allocations: 0 / 0.9033 GB, free: 61.56 MB / 0.6042 GB Notification: Performance of FrontEnd: time 2.405e-06/0.2424, allocations: 0 / 0.9033 GB, free: 61.56 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 4.077e-06/0.2424, allocations: 4 kB / 0.9033 GB, free: 61.55 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: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0003354/0.2428, allocations: 359.5 kB / 0.9037 GB, free: 61.16 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.151e-05/0.2428, allocations: 12.02 kB / 0.9037 GB, free: 61.14 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.423e-05/0.2429, allocations: 0.9375 kB / 0.9037 GB, free: 61.14 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001039/0.243, allocations: 164.4 kB / 0.9039 GB, free: 60.95 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.089e-05/0.243, allocations: 12.36 kB / 0.9039 GB, free: 60.93 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.242e-05/0.243, allocations: 384 / 0.9039 GB, free: 60.93 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001181/0.2431, allocations: 41.81 kB / 0.9039 GB, free: 60.89 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.764e-06/0.2432, allocations: 0 / 0.9039 GB, free: 60.89 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.212e-05/0.2432, allocations: 0 / 0.9039 GB, free: 60.89 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.824e-05/0.2432, allocations: 11.92 kB / 0.9039 GB, free: 60.88 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.633e-05/0.2432, allocations: 4 kB / 0.9039 GB, free: 60.87 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00016/0.2434, allocations: 153.7 kB / 0.9041 GB, free: 60.67 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 5.609e-05/0.2435, allocations: 34.59 kB / 0.9041 GB, free: 60.63 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.181e-05/0.2435, allocations: 12.92 kB / 0.9041 GB, free: 60.61 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 9.227e-06/0.2435, allocations: 4 kB / 0.9041 GB, free: 60.61 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.894e-05/0.2435, allocations: 34.5 kB / 0.9042 GB, free: 60.57 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=2): time 9.32e-07/0.2435, allocations: 0 / 0.9042 GB, free: 60.57 MB / 0.6042 GB Notification: Performance of matching and sorting (n=2): time 0.0001665/0.2437, allocations: 57.61 kB / 0.9042 GB, free: 60.5 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.129e-05/0.2437, allocations: 51.41 kB / 0.9043 GB, free: 60.44 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.583e-05/0.2438, allocations: 102 kB / 0.9044 GB, free: 60.33 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 1.031e-05/0.2438, allocations: 25.7 kB / 0.9044 GB, free: 60.3 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 1.812e-05/0.2438, allocations: 80.14 kB / 0.9045 GB, free: 60.22 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 2.51e-05/0.2439, allocations: 7.906 kB / 0.9045 GB, free: 60.21 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.967e-06/0.2439, allocations: 3.984 kB / 0.9045 GB, free: 60.21 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 5.053e-05/0.2439, allocations: 314.8 kB / 0.9048 GB, free: 59.89 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.83e-05/0.244, allocations: 8 kB / 0.9048 GB, free: 59.88 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.35e-05/0.244, allocations: 12.06 kB / 0.9048 GB, free: 59.87 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.948e-05/0.244, allocations: 28.84 kB / 0.9048 GB, free: 59.84 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.273e-06/0.244, allocations: 0 / 0.9048 GB, free: 59.84 MB / 0.6042 GB Notification: Performance of matching and sorting (n=2) (initialization): time 7.112e-05/0.2441, allocations: 53.62 kB / 0.9049 GB, free: 59.78 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.719e-05/0.2442, allocations: 7.984 kB / 0.9049 GB, free: 59.77 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.61e-06/0.2442, allocations: 3.938 kB / 0.9049 GB, free: 59.77 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.525e-05/0.2442, allocations: 4 kB / 0.9049 GB, free: 59.77 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.22e-07/0.2442, allocations: 0 / 0.9049 GB, free: 59.77 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.851e-06/0.2442, allocations: 0 / 0.9049 GB, free: 59.77 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.478e-05/0.2442, allocations: 320 / 0.9049 GB, free: 59.77 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.278e-05/0.2442, allocations: 4 kB / 0.9049 GB, free: 59.76 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 0 * Array equations: 2 * Algorithm blocks: 0 * 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 5.476e-05/0.2443, allocations: 109.8 kB / 0.905 GB, free: 59.64 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.138e-05/0.2443, allocations: 11.84 kB / 0.905 GB, free: 59.63 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.267e-05/0.2443, allocations: 7.125 kB / 0.905 GB, free: 59.62 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.423e-05/0.2444, allocations: 3.984 kB / 0.905 GB, free: 59.62 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.458e-06/0.2444, allocations: 0 / 0.905 GB, free: 59.62 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.976e-06/0.2444, allocations: 0 / 0.905 GB, free: 59.62 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.312e-05/0.2445, allocations: 153.6 kB / 0.9052 GB, free: 59.42 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.2445, allocations: 4 kB / 0.9052 GB, free: 59.42 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.513e-06/0.2445, allocations: 7.938 kB / 0.9052 GB, free: 59.41 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.205e-06/0.2445, allocations: 0 / 0.9052 GB, free: 59.41 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.658e-06/0.2445, allocations: 0 / 0.9052 GB, free: 59.41 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/0.2445, allocations: 3.938 kB / 0.9052 GB, free: 59.41 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.2445, allocations: 0 / 0.9052 GB, free: 59.41 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.639e-05/0.2446, allocations: 73.12 kB / 0.9052 GB, free: 59.32 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 2.365e-05/0.2446, allocations: 89.03 kB / 0.9053 GB, free: 59.21 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.368e-05/0.2447, allocations: 4.016 kB / 0.9053 GB, free: 59.21 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.163e-05/0.2447, allocations: 8 kB / 0.9053 GB, free: 59.2 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.861e-05/0.2448, allocations: 0 / 0.9053 GB, free: 59.2 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.668e-06/0.2448, allocations: 7.984 kB / 0.9054 GB, free: 59.19 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 1.835e-05/0.2448, allocations: 75.28 kB / 0.9054 GB, free: 59.12 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2448, allocations: 0 / 0.9054 GB, free: 59.12 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0002755/0.2451, allocations: 59.92 kB / 0.9055 GB, free: 59.06 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 0 * Array equations: 2 * Algorithm blocks: 0 * 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.0006348/0.2457, allocations: 308.2 kB / 0.9058 GB, free: 58.81 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 8.658e-05/0.2458, allocations: 19.94 kB / 0.9058 GB, free: 58.79 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.2458, allocations: 3.938 kB / 0.9058 GB, free: 58.79 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 1.789e-05/0.2459, allocations: 11.98 kB / 0.9058 GB, free: 58.77 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001474/0.246, allocations: 6.984 kB / 0.9058 GB, free: 58.77 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003952/0.2464, allocations: 140.6 kB / 0.9059 GB, free: 58.6 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001226/0.2465, allocations: 0.677 MB / 0.9066 GB, free: 57.89 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001029/0.2467, allocations: 19.42 kB / 0.9066 GB, free: 57.88 MB / 0.6042 GB Notification: Performance of SimCode: time 4.81e-07/0.2467, allocations: 0 / 0.9066 GB, free: 57.88 MB / 0.6042 GB Notification: Performance of Templates: time 0.003226/0.2499, allocations: 1.65 MB / 0.9082 GB, free: 56.23 MB / 0.6042 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.ExchangeWithPassPythonObject.makefile make -j1 -f Buildings_maint.7.0.x_Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.ExchangeWithPassPythonObject.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.ExchangeWithPassPythonObjectCalcHelperMain.o OMCppBuildings_maint.7.0.x_Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.ExchangeWithPassPythonObjectCalcHelperMain.cpp In file included from OMCppBuildings_maint.7.0.x_Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.ExchangeWithPassPythonObjectCalcHelperMain.cpp:28: In file included from ./OMCppBuildings_maint.7.0.x_Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.ExchangeWithPassPythonObjectFunctions.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.ExchangeWithPassPythonObjectCalcHelperMain.o] Error 1