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.595/1.595, allocations: 252 MB / 267.6 MB, free: 10.9 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.001538/0.001538, allocations: 178.6 kB / 327.3 MB, free: 2.211 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.176/2.176, allocations: 205.4 MB / 0.5783 GB, free: 20.3 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.001074/0.001074, allocations: 96.59 kB / 0.6829 GB, free: 12.86 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003574/0.0003578, allocations: 10.25 kB / 0.797 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2433/0.2436, allocations: 106.3 MB / 0.9009 GB, free: 63.88 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.ExchangeWithPassPythonObject): time 0.0007127/0.2444, allocations: 262.9 kB / 0.9011 GB, free: 63.62 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.001192/0.2456, allocations: 1.066 MB / 0.9021 GB, free: 62.55 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.073e-05/0.2456, allocations: 0 / 0.9021 GB, free: 62.55 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0001022/0.2458, allocations: 4 kB / 0.9021 GB, free: 62.54 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 4.402e-05/0.2458, allocations: 0 / 0.9021 GB, free: 62.54 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.0003599/0.2462, allocations: 143.7 kB / 0.9023 GB, free: 62.4 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 4.73e-05/0.2462, allocations: 19.92 kB / 0.9023 GB, free: 62.38 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 4.105e-05/0.2463, allocations: 3.984 kB / 0.9023 GB, free: 62.38 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 2.084e-05/0.2463, allocations: 4 kB / 0.9023 GB, free: 62.38 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 5.607e-05/0.2464, allocations: 11.98 kB / 0.9023 GB, free: 62.36 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 1.199e-05/0.2464, allocations: 0 / 0.9023 GB, free: 62.36 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002788/0.2467, allocations: 167.7 kB / 0.9025 GB, free: 62.2 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 2.424e-05/0.2467, allocations: 3.984 kB / 0.9025 GB, free: 62.2 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 2.437e-05/0.2467, allocations: 29.7 kB / 0.9025 GB, free: 62.16 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0001779/0.2469, allocations: 139.8 kB / 0.9026 GB, free: 62.02 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 5.17e-06/0.2469, allocations: 4 kB / 0.9027 GB, free: 62.02 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.774e-06/0.2469, allocations: 0 / 0.9027 GB, free: 62.02 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 4.568e-06/0.247, allocations: 0 / 0.9027 GB, free: 62.02 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.0003255/0.2473, allocations: 359.2 kB / 0.903 GB, free: 61.62 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.058e-05/0.2473, allocations: 8.031 kB / 0.903 GB, free: 61.61 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.961e-05/0.2474, allocations: 8 kB / 0.903 GB, free: 61.61 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001162/0.2475, allocations: 167 kB / 0.9032 GB, free: 61.4 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.418e-05/0.2475, allocations: 0 / 0.9032 GB, free: 61.4 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.019e-05/0.2475, allocations: 0 / 0.9032 GB, free: 61.4 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000133/0.2477, allocations: 49.61 kB / 0.9032 GB, free: 61.35 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.666e-06/0.2477, allocations: 4 kB / 0.9032 GB, free: 61.34 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.265e-05/0.2477, allocations: 0 / 0.9032 GB, free: 61.34 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.725e-05/0.2477, allocations: 3.938 kB / 0.9032 GB, free: 61.34 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.712e-05/0.2478, allocations: 8 kB / 0.9032 GB, free: 61.33 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001896/0.248, allocations: 157.6 kB / 0.9034 GB, free: 61.13 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 6.269e-05/0.248, allocations: 26.59 kB / 0.9034 GB, free: 61.09 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.249e-05/0.2481, allocations: 16.92 kB / 0.9034 GB, free: 61.07 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 1.007e-05/0.2481, allocations: 3.938 kB / 0.9034 GB, free: 61.07 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.425e-05/0.2481, allocations: 34.56 kB / 0.9035 GB, free: 61.03 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=2): time 1.022e-06/0.2481, allocations: 0 / 0.9035 GB, free: 61.03 MB / 0.6042 GB Notification: Performance of matching and sorting (n=2): time 0.0001722/0.2483, allocations: 61.66 kB / 0.9035 GB, free: 60.96 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.247e-05/0.2483, allocations: 51.41 kB / 0.9036 GB, free: 60.9 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.02e-05/0.2484, allocations: 94.08 kB / 0.9037 GB, free: 60.8 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 1.3e-05/0.2484, allocations: 29.73 kB / 0.9037 GB, free: 60.76 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 2.145e-05/0.2485, allocations: 84.14 kB / 0.9038 GB, free: 60.68 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 2.736e-05/0.2485, allocations: 7.891 kB / 0.9038 GB, free: 60.67 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.396e-06/0.2485, allocations: 0 / 0.9038 GB, free: 60.67 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 5.906e-05/0.2486, allocations: 314.8 kB / 0.9041 GB, free: 60.35 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.726e-05/0.2486, allocations: 4 kB / 0.9041 GB, free: 60.35 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.493e-05/0.2486, allocations: 19.92 kB / 0.9041 GB, free: 60.33 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.288e-05/0.2487, allocations: 4 kB / 0.9041 GB, free: 60.32 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.2487, allocations: 4.062 kB / 0.9041 GB, free: 60.32 MB / 0.6042 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.498e-05/0.2487, allocations: 49.69 kB / 0.9042 GB, free: 60.27 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.399e-05/0.2488, allocations: 4 kB / 0.9042 GB, free: 60.26 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.931e-06/0.2488, allocations: 0 / 0.9042 GB, free: 60.26 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.524e-05/0.2488, allocations: 3.984 kB / 0.9042 GB, free: 60.26 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.026e-06/0.2488, allocations: 0 / 0.9042 GB, free: 60.26 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.634e-06/0.2488, allocations: 3.938 kB / 0.9042 GB, free: 60.25 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.559e-05/0.2488, allocations: 4.281 kB / 0.9042 GB, free: 60.25 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.34e-05/0.2488, allocations: 0 / 0.9042 GB, free: 60.25 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.145e-05/0.2489, allocations: 117.8 kB / 0.9043 GB, free: 60.12 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.688e-06/0.2489, allocations: 3.906 kB / 0.9043 GB, free: 60.12 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.268e-05/0.249, allocations: 7.125 kB / 0.9043 GB, free: 60.11 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.384e-05/0.249, allocations: 7.984 kB / 0.9043 GB, free: 60.11 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.21e-06/0.249, allocations: 0 / 0.9043 GB, free: 60.11 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.148e-06/0.249, allocations: 0 / 0.9043 GB, free: 60.11 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.428e-05/0.2491, allocations: 161.5 kB / 0.9045 GB, free: 59.9 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.2491, allocations: 0 / 0.9045 GB, free: 59.9 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.42e-07/0.2491, allocations: 3.938 kB / 0.9045 GB, free: 59.89 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.102e-06/0.2491, allocations: 0 / 0.9045 GB, free: 59.89 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.698e-06/0.2491, allocations: 8 kB / 0.9045 GB, free: 59.89 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.81e-07/0.2491, allocations: 0 / 0.9045 GB, free: 59.89 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.71e-07/0.2491, allocations: 0 / 0.9045 GB, free: 59.89 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.088e-05/0.2492, allocations: 81.06 kB / 0.9045 GB, free: 59.79 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 2.904e-05/0.2493, allocations: 85.03 kB / 0.9046 GB, free: 59.69 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.304e-05/0.2493, allocations: 0 / 0.9046 GB, free: 59.69 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.511e-05/0.2494, allocations: 0 / 0.9046 GB, free: 59.69 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.761e-05/0.2494, allocations: 8 kB / 0.9046 GB, free: 59.68 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.322e-06/0.2494, allocations: 4.031 kB / 0.9046 GB, free: 59.68 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 2.768e-05/0.2495, allocations: 83.27 kB / 0.9047 GB, free: 59.59 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.11e-07/0.2495, allocations: 0 / 0.9047 GB, free: 59.59 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0002681/0.2497, allocations: 63.92 kB / 0.9048 GB, free: 59.53 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 (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.0006625/0.2504, allocations: 292.5 kB / 0.9051 GB, free: 59.3 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0001049/0.2505, allocations: 23.92 kB / 0.9051 GB, free: 59.27 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.955e-06/0.2505, allocations: 0 / 0.9051 GB, free: 59.27 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 1.829e-05/0.2506, allocations: 7.984 kB / 0.9051 GB, free: 59.27 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001589/0.2507, allocations: 6.031 kB / 0.9051 GB, free: 59.26 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000467/0.2512, allocations: 144.3 kB / 0.9052 GB, free: 59.09 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001756/0.2514, allocations: 0.6811 MB / 0.9059 GB, free: 58.38 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001129/0.2515, allocations: 27.36 kB / 0.9059 GB, free: 58.35 MB / 0.6042 GB Notification: Performance of SimCode: time 2.3e-07/0.2515, allocations: 0 / 0.9059 GB, free: 58.35 MB / 0.6042 GB Notification: Performance of Templates: time 0.003361/0.2549, allocations: 1.641 MB / 0.9075 GB, free: 56.71 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++ -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.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