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.358/1.358, allocations: 251.5 MB / 267.4 MB, free: 11.11 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.001005/0.001005, allocations: 176.2 kB / 326.5 MB, free: 2.703 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.804/1.804, allocations: 205 MB / 0.5766 GB, free: 21.01 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.0008328/0.0008326, allocations: 94.06 kB / 0.6804 GB, free: 14.73 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.000353/0.000353, allocations: 5.562 kB / 0.7938 GB, free: 136.3 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2778/0.2781, allocations: 105.4 MB / 0.8968 GB, free: 68.18 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.ExchangeWithPassPythonObject): time 0.0008468/0.279, allocations: 276.8 kB / 0.897 GB, free: 67.91 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.001309/0.2804, allocations: 1.126 MB / 0.8981 GB, free: 66.78 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.704e-05/0.2804, allocations: 0 / 0.8981 GB, free: 66.78 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0001072/0.2805, allocations: 11.94 kB / 0.8981 GB, free: 66.77 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 4.842e-05/0.2806, allocations: 0 / 0.8981 GB, free: 66.77 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.0003812/0.281, allocations: 147.7 kB / 0.8983 GB, free: 66.62 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 5.427e-05/0.281, allocations: 11.98 kB / 0.8983 GB, free: 66.61 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 4.86e-05/0.2811, allocations: 7.984 kB / 0.8983 GB, free: 66.6 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 2.443e-05/0.2811, allocations: 11.98 kB / 0.8983 GB, free: 66.59 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 5.54e-05/0.2812, allocations: 4 kB / 0.8983 GB, free: 66.59 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 1.427e-05/0.2812, allocations: 4 kB / 0.8983 GB, free: 66.58 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003029/0.2815, allocations: 183.6 kB / 0.8985 GB, free: 66.4 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 3.118e-05/0.2815, allocations: 11.94 kB / 0.8985 GB, free: 66.39 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 2.677e-05/0.2816, allocations: 4 kB / 0.8985 GB, free: 66.39 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0001949/0.2818, allocations: 135.8 kB / 0.8986 GB, free: 66.25 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.2818, allocations: 0 / 0.8986 GB, free: 66.25 MB / 0.6042 GB Notification: Performance of FrontEnd: time 2.024e-06/0.2818, allocations: 0 / 0.8986 GB, free: 66.25 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 4.829e-06/0.2818, allocations: 0 / 0.8986 GB, free: 66.25 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.000306/0.2821, allocations: 375.4 kB / 0.899 GB, free: 65.84 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.104e-05/0.2822, allocations: 12.03 kB / 0.899 GB, free: 65.83 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.525e-05/0.2822, allocations: 0.9375 kB / 0.899 GB, free: 65.83 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.127e-05/0.2823, allocations: 168.4 kB / 0.8992 GB, free: 65.62 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.155e-05/0.2823, allocations: 384 / 0.8992 GB, free: 65.62 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.01e-05/0.2823, allocations: 4.375 kB / 0.8992 GB, free: 65.62 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001148/0.2825, allocations: 45.8 kB / 0.8992 GB, free: 65.57 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.875e-06/0.2825, allocations: 0 / 0.8992 GB, free: 65.57 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.338e-05/0.2825, allocations: 3.984 kB / 0.8992 GB, free: 65.57 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.751e-05/0.2825, allocations: 4 kB / 0.8992 GB, free: 65.56 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.485e-05/0.2825, allocations: 7.938 kB / 0.8992 GB, free: 65.55 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000136/0.2827, allocations: 153.7 kB / 0.8994 GB, free: 65.36 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 5.682e-05/0.2828, allocations: 34.59 kB / 0.8994 GB, free: 65.31 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.064e-05/0.2828, allocations: 8.922 kB / 0.8994 GB, free: 65.3 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 9.258e-06/0.2828, allocations: 0 / 0.8994 GB, free: 65.3 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.966e-05/0.2828, allocations: 46.44 kB / 0.8995 GB, free: 65.25 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=2): time 8.52e-07/0.2828, allocations: 0 / 0.8995 GB, free: 65.25 MB / 0.6042 GB Notification: Performance of matching and sorting (n=2): time 0.0001577/0.283, allocations: 61.61 kB / 0.8995 GB, free: 65.18 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.655e-05/0.283, allocations: 55.53 kB / 0.8996 GB, free: 65.11 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.66e-05/0.2831, allocations: 93.86 kB / 0.8997 GB, free: 65.01 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 9.639e-06/0.2831, allocations: 25.7 kB / 0.8997 GB, free: 64.98 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 2.05e-05/0.2831, allocations: 84.14 kB / 0.8998 GB, free: 64.89 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 2.632e-05/0.2832, allocations: 11.89 kB / 0.8998 GB, free: 64.88 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.139e-05/0.2832, allocations: 9.719 kB / 0.8998 GB, free: 64.87 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 4.853e-05/0.2832, allocations: 310.8 kB / 0.9001 GB, free: 64.55 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.699e-05/0.2833, allocations: 4 kB / 0.9001 GB, free: 64.55 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.457e-05/0.2833, allocations: 16.11 kB / 0.9001 GB, free: 64.54 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.055e-05/0.2833, allocations: 24.84 kB / 0.9001 GB, free: 64.51 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.2833, allocations: 3.938 kB / 0.9001 GB, free: 64.5 MB / 0.6042 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.544e-05/0.2834, allocations: 49.62 kB / 0.9002 GB, free: 64.45 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.265e-05/0.2834, allocations: 4 kB / 0.9002 GB, free: 64.45 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.131e-06/0.2834, allocations: 0 / 0.9002 GB, free: 64.45 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.424e-05/0.2835, allocations: 0 / 0.9002 GB, free: 64.45 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.703e-06/0.2835, allocations: 4 kB / 0.9002 GB, free: 64.44 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.76e-06/0.2835, allocations: 3.938 kB / 0.9002 GB, free: 64.44 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.249e-05/0.2835, allocations: 4.094 kB / 0.9002 GB, free: 64.43 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.186e-05/0.2835, allocations: 0 / 0.9002 GB, free: 64.43 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 8.594e-05/0.2836, allocations: 117.8 kB / 0.9003 GB, free: 64.31 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.416e-05/0.2836, allocations: 11.83 kB / 0.9003 GB, free: 64.3 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.094e-05/0.2836, allocations: 3.125 kB / 0.9003 GB, free: 64.29 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.121e-05/0.2837, allocations: 4 kB / 0.9003 GB, free: 64.29 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.721e-06/0.2837, allocations: 0 / 0.9003 GB, free: 64.29 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.575e-06/0.2837, allocations: 0 / 0.9003 GB, free: 64.29 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.763e-05/0.2838, allocations: 149.7 kB / 0.9005 GB, free: 64.09 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.814e-06/0.2838, allocations: 8 kB / 0.9005 GB, free: 64.09 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.212e-06/0.2838, allocations: 3.938 kB / 0.9005 GB, free: 64.08 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.072e-06/0.2838, allocations: 0 / 0.9005 GB, free: 64.08 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.402e-06/0.2838, allocations: 0 / 0.9005 GB, free: 64.08 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.994e-06/0.2838, allocations: 0 / 0.9005 GB, free: 64.08 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.2838, allocations: 3.938 kB / 0.9005 GB, free: 64.08 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.583e-05/0.2839, allocations: 77.11 kB / 0.9005 GB, free: 63.98 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 2.142e-05/0.2839, allocations: 81.05 kB / 0.9006 GB, free: 63.89 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.211e-05/0.2839, allocations: 4.031 kB / 0.9006 GB, free: 63.88 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.149e-05/0.284, allocations: 4 kB / 0.9006 GB, free: 63.88 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.712e-05/0.284, allocations: 0 / 0.9006 GB, free: 63.88 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.126e-06/0.2841, allocations: 7.984 kB / 0.9006 GB, free: 63.87 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 1.859e-05/0.2841, allocations: 79.28 kB / 0.9007 GB, free: 63.79 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2841, allocations: 3.938 kB / 0.9007 GB, free: 63.79 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0002262/0.2843, allocations: 55.92 kB / 0.9008 GB, free: 63.73 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.0005795/0.2849, allocations: 307.3 kB / 0.9011 GB, free: 63.48 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 8.75e-05/0.285, allocations: 19.92 kB / 0.9011 GB, free: 63.46 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.876e-06/0.285, allocations: 0 / 0.9011 GB, free: 63.46 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 1.695e-05/0.285, allocations: 8 kB / 0.9011 GB, free: 63.46 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000139/0.2852, allocations: 11.92 kB / 0.9011 GB, free: 63.45 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003727/0.2856, allocations: 144.5 kB / 0.9012 GB, free: 63.27 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001184/0.2857, allocations: 0.677 MB / 0.9019 GB, free: 62.57 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.086e-05/0.2858, allocations: 19.42 kB / 0.9019 GB, free: 62.55 MB / 0.6042 GB Notification: Performance of SimCode: time 2.1e-07/0.2858, allocations: 0 / 0.9019 GB, free: 62.55 MB / 0.6042 GB Notification: Performance of Templates: time 0.002902/0.2887, allocations: 1.655 MB / 0.9035 GB, free: 60.9 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