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.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.Utilities.IO.Python36.Functions.Examples.ExchangeWithPassPythonObject,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Utilities.IO.Python36.Functions.Examples.ExchangeWithPassPythonObject") translateModel(Buildings.Utilities.IO.Python36.Functions.Examples.ExchangeWithPassPythonObject,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Utilities.IO.Python36.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.39/1.39, 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.001066/0.001066, allocations: 177.2 kB / 327.3 MB, free: 2.18 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.743/1.743, allocations: 205.4 MB / 0.5783 GB, free: 20.21 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.0007634/0.0007634, allocations: 88.08 kB / 0.6829 GB, free: 12.84 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0004973/0.0004974, allocations: 9.594 kB / 0.797 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2776/0.2781, 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.ExchangeWithPassPythonObject): time 0.0009898/0.2791, allocations: 274.9 kB / 0.9011 GB, free: 63.59 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.001876/0.2811, allocations: 1.062 MB / 0.9021 GB, free: 62.52 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.997e-05/0.2811, allocations: 0 / 0.9021 GB, free: 62.52 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0001146/0.2813, allocations: 4 kB / 0.9021 GB, free: 62.51 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 5.652e-05/0.2813, allocations: 0 / 0.9021 GB, free: 62.51 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.0006828/0.282, allocations: 143.6 kB / 0.9023 GB, free: 62.37 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 5.762e-05/0.2821, allocations: 11.98 kB / 0.9023 GB, free: 62.36 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 5.299e-05/0.2822, allocations: 7.984 kB / 0.9023 GB, free: 62.35 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 3.146e-05/0.2822, allocations: 15.98 kB / 0.9023 GB, free: 62.34 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 6.21e-05/0.2823, allocations: 7.984 kB / 0.9023 GB, free: 62.33 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 1.513e-05/0.2823, allocations: 0 / 0.9023 GB, free: 62.33 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004702/0.2828, allocations: 167.7 kB / 0.9025 GB, free: 62.16 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 3.952e-05/0.2828, allocations: 3.984 kB / 0.9025 GB, free: 62.16 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 3.132e-05/0.2829, allocations: 33.7 kB / 0.9025 GB, free: 62.12 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0002671/0.2832, allocations: 135.8 kB / 0.9026 GB, free: 61.99 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 5.43e-06/0.2832, allocations: 0 / 0.9026 GB, free: 61.99 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.633e-06/0.2832, allocations: 0 / 0.9026 GB, free: 61.99 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 5.07e-06/0.2832, allocations: 0 / 0.9026 GB, free: 61.99 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.0003881/0.2836, allocations: 363.2 kB / 0.903 GB, free: 61.59 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.664e-05/0.2836, allocations: 8.031 kB / 0.903 GB, free: 61.58 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.581e-05/0.2837, allocations: 4 kB / 0.903 GB, free: 61.57 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001132/0.2838, allocations: 167 kB / 0.9032 GB, free: 61.37 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.681e-05/0.2839, allocations: 0 / 0.9032 GB, free: 61.37 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.518e-05/0.2839, allocations: 0 / 0.9032 GB, free: 61.37 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001402/0.284, allocations: 45.62 kB / 0.9032 GB, free: 61.32 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.255e-05/0.2841, allocations: 3.984 kB / 0.9032 GB, free: 61.32 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.537e-05/0.2841, allocations: 0 / 0.9032 GB, free: 61.32 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.351e-05/0.2841, allocations: 4 kB / 0.9032 GB, free: 61.31 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.708e-05/0.2842, allocations: 8 kB / 0.9032 GB, free: 61.3 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001719/0.2844, allocations: 157.6 kB / 0.9034 GB, free: 61.1 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 7.026e-05/0.2844, allocations: 30.59 kB / 0.9034 GB, free: 61.06 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.912e-05/0.2845, allocations: 12.86 kB / 0.9034 GB, free: 61.05 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 8.216e-06/0.2845, allocations: 0 / 0.9034 GB, free: 61.05 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.764e-05/0.2845, allocations: 38.56 kB / 0.9034 GB, free: 61 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=2): time 1.894e-06/0.2846, allocations: 0 / 0.9034 GB, free: 61 MB / 0.6042 GB Notification: Performance of matching and sorting (n=2): time 0.0002361/0.2848, allocations: 61.61 kB / 0.9035 GB, free: 60.93 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.185e-05/0.2849, allocations: 51.41 kB / 0.9035 GB, free: 60.87 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.648e-05/0.2849, allocations: 97.86 kB / 0.9036 GB, free: 60.77 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 1.216e-05/0.285, allocations: 25.7 kB / 0.9037 GB, free: 60.73 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 1.781e-05/0.285, allocations: 84.12 kB / 0.9037 GB, free: 60.65 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 2.66e-05/0.285, allocations: 7.891 kB / 0.9038 GB, free: 60.64 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.048e-06/0.285, allocations: 256 / 0.9038 GB, free: 60.64 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 5.794e-05/0.2851, allocations: 318.8 kB / 0.9041 GB, free: 60.32 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.51e-05/0.2851, allocations: 11.94 kB / 0.9041 GB, free: 60.31 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.086e-05/0.2852, allocations: 11.98 kB / 0.9041 GB, free: 60.3 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.122e-05/0.2852, allocations: 8 kB / 0.9041 GB, free: 60.29 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.425e-06/0.2852, allocations: 0 / 0.9041 GB, free: 60.29 MB / 0.6042 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001046/0.2853, allocations: 45.69 kB / 0.9041 GB, free: 60.24 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.81e-05/0.2854, allocations: 4 kB / 0.9041 GB, free: 60.23 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.015e-06/0.2854, allocations: 3.984 kB / 0.9041 GB, free: 60.23 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.407e-05/0.2854, allocations: 4.094 kB / 0.9041 GB, free: 60.23 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.274e-06/0.2854, allocations: 4 kB / 0.9041 GB, free: 60.22 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.494e-06/0.2854, allocations: 3.984 kB / 0.9042 GB, free: 60.22 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.342e-05/0.2855, allocations: 8.219 kB / 0.9042 GB, free: 60.21 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.522e-05/0.2855, allocations: 0 / 0.9042 GB, free: 60.21 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.592e-05/0.2856, allocations: 115.8 kB / 0.9043 GB, free: 60.09 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.627e-05/0.2856, allocations: 3.906 kB / 0.9043 GB, free: 60.09 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.401e-05/0.2856, allocations: 7.125 kB / 0.9043 GB, free: 60.08 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.061e-05/0.2857, allocations: 4 kB / 0.9043 GB, free: 60.07 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.06e-06/0.2857, allocations: 4 kB / 0.9043 GB, free: 60.07 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.56e-06/0.2857, allocations: 3.984 kB / 0.9043 GB, free: 60.07 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.742e-05/0.2858, allocations: 157.5 kB / 0.9044 GB, free: 59.86 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.285e-06/0.2858, allocations: 0 / 0.9044 GB, free: 59.86 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.935e-06/0.2858, allocations: 7.984 kB / 0.9045 GB, free: 59.86 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.104e-05/0.2858, allocations: 0 / 0.9045 GB, free: 59.86 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.749e-06/0.2858, allocations: 0 / 0.9045 GB, free: 59.86 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.803e-06/0.2859, allocations: 0 / 0.9045 GB, free: 59.86 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.2859, allocations: 0 / 0.9045 GB, free: 59.86 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001165/0.286, allocations: 85.06 kB / 0.9045 GB, free: 59.75 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 2.688e-05/0.286, allocations: 81.09 kB / 0.9046 GB, free: 59.66 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.539e-05/0.2861, allocations: 0 / 0.9046 GB, free: 59.66 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001055/0.2862, allocations: 4 kB / 0.9046 GB, free: 59.65 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.706e-05/0.2862, allocations: 0 / 0.9046 GB, free: 59.65 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.267e-05/0.2862, allocations: 4 kB / 0.9046 GB, free: 59.65 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 2.364e-05/0.2863, allocations: 75.28 kB / 0.9047 GB, free: 59.57 MB / 0.6042 GB Notification: Performance of sort global known variables: time 2.1e-07/0.2863, allocations: 128 / 0.9047 GB, free: 59.57 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0004268/0.2867, allocations: 71.91 kB / 0.9048 GB, free: 59.5 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.0007943/0.2875, allocations: 300.6 kB / 0.905 GB, free: 59.26 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0001162/0.2876, allocations: 19.98 kB / 0.9051 GB, free: 59.24 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.886e-06/0.2877, allocations: 0 / 0.9051 GB, free: 59.24 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 3.055e-05/0.2877, allocations: 12.05 kB / 0.9051 GB, free: 59.23 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002168/0.2879, allocations: 6.031 kB / 0.9051 GB, free: 59.23 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004423/0.2884, allocations: 140.3 kB / 0.9052 GB, free: 59.05 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001094/0.2885, allocations: 0.677 MB / 0.9059 GB, free: 58.35 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001273/0.2886, allocations: 23.42 kB / 0.9059 GB, free: 58.33 MB / 0.6042 GB Notification: Performance of SimCode: time 3.91e-07/0.2887, allocations: 0 / 0.9059 GB, free: 58.33 MB / 0.6042 GB Notification: Performance of Templates: time 0.004478/0.2931, allocations: 1.614 MB / 0.9075 GB, free: 56.71 MB / 0.6042 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Utilities.IO.Python36.Functions.Examples.ExchangeWithPassPythonObject.makefile make -j1 -f Buildings_maint.7.0.x_Buildings.Utilities.IO.Python36.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.Utilities.IO.Python36.Functions.Examples.ExchangeWithPassPythonObjectCalcHelperMain.o OMCppBuildings_maint.7.0.x_Buildings.Utilities.IO.Python36.Functions.Examples.ExchangeWithPassPythonObjectCalcHelperMain.cpp In file included from OMCppBuildings_maint.7.0.x_Buildings.Utilities.IO.Python36.Functions.Examples.ExchangeWithPassPythonObjectCalcHelperMain.cpp:28: In file included from ./OMCppBuildings_maint.7.0.x_Buildings.Utilities.IO.Python36.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.Utilities.IO.Python36.Functions.Examples.ExchangeWithPassPythonObjectCalcHelperMain.o] Error 1