Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Utilities.IO.Python_3_8.Functions.Examples.ExchangeWithPassPythonObject.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Utilities.IO.Python_3_8.Functions.Examples.ExchangeWithPassPythonObject,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|yR1.1.|yR2.1.",fileNamePrefix="Buildings_10_Buildings.Utilities.IO.Python_3_8.Functions.Examples.ExchangeWithPassPythonObject") translateModel(Buildings.Utilities.IO.Python_3_8.Functions.Examples.ExchangeWithPassPythonObject,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|yR1.1.|yR2.1.",fileNamePrefix="Buildings_10_Buildings.Utilities.IO.Python_3_8.Functions.Examples.ExchangeWithPassPythonObject") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00077/0.0007702, allocations: 97.78 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009242/0.0009244, allocations: 187.3 kB / 16.92 MB, free: 6.75 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.417/1.417, allocations: 223.3 MB / 241 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.663/2.663, allocations: 437.8 MB / 0.7128 GB, free: 6.984 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0004894/0.0004895, allocations: 8 kB / 0.8735 GB, free: 3.277 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7248/0.7253, allocations: 153.8 MB / 1.024 GB, free: 15.96 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python_3_8.Functions.Examples.ExchangeWithPassPythonObject): time 0.0009339/0.7263, allocations: 264 kB / 1.024 GB, free: 15.71 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001826/0.7281, allocations: 1.109 MB / 1.025 GB, free: 14.59 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.077e-05/0.7282, allocations: 0 / 1.025 GB, free: 14.59 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 9.611e-05/0.7283, allocations: 3.984 kB / 1.025 GB, free: 14.59 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 4.749e-05/0.7283, allocations: 4 kB / 1.025 GB, free: 14.59 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005305/0.7289, allocations: 135.7 kB / 1.025 GB, free: 14.45 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 6.772e-05/0.729, allocations: 15.92 kB / 1.025 GB, free: 14.44 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 4.459e-05/0.729, allocations: 4 kB / 1.025 GB, free: 14.43 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 2.954e-05/0.729, allocations: 7.984 kB / 1.025 GB, free: 14.43 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 6.958e-05/0.7291, allocations: 11.94 kB / 1.025 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.243e-05/0.7291, allocations: 0 / 1.025 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004468/0.7296, allocations: 183.7 kB / 1.025 GB, free: 14.23 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 3.587e-05/0.7296, allocations: 4 kB / 1.025 GB, free: 14.23 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 4.012e-05/0.7297, allocations: 33.7 kB / 1.025 GB, free: 14.19 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0002516/0.7299, allocations: 135.8 kB / 1.026 GB, free: 14.06 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.596e-06/0.73, allocations: 0 / 1.026 GB, free: 14.06 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.934e-06/0.73, allocations: 0 / 1.026 GB, free: 14.06 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.037e-06/0.73, allocations: 4 kB / 1.026 GB, free: 14.05 MB / 0.7794 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 0 * Number of variables: 0 Notification: Performance of Generate backend data structure: time 0.0004001/0.7304, allocations: 363.4 kB / 1.026 GB, free: 13.65 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.196e-05/0.7304, allocations: 8.031 kB / 1.026 GB, free: 13.64 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.697e-05/0.7305, allocations: 80.16 kB / 1.026 GB, free: 13.57 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001843/0.7307, allocations: 241.6 kB / 1.026 GB, free: 13.29 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.257e-05/0.7308, allocations: 162.9 kB / 1.026 GB, free: 13.13 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.889e-05/0.7309, allocations: 154.9 kB / 1.027 GB, free: 12.98 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.225e-05/0.731, allocations: 109.1 kB / 1.027 GB, free: 12.87 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.895e-05/0.731, allocations: 75.28 kB / 1.027 GB, free: 12.79 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.684e-05/0.7311, allocations: 150.6 kB / 1.027 GB, free: 12.64 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.67e-05/0.7311, allocations: 154.6 kB / 1.027 GB, free: 12.49 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.112e-05/0.7312, allocations: 154.5 kB / 1.027 GB, free: 12.34 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003371/0.7315, allocations: 453.9 kB / 1.028 GB, free: 11.85 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001088/0.7317, allocations: 169.2 kB / 1.028 GB, free: 11.67 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.133e-05/0.7317, allocations: 84.14 kB / 1.028 GB, free: 11.59 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.806e-05/0.7317, allocations: 75.28 kB / 1.028 GB, free: 11.51 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.353e-05/0.7318, allocations: 117.8 kB / 1.028 GB, free: 11.39 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=0): time 9.82e-07/0.7318, allocations: 0 / 1.028 GB, free: 11.39 MB / 0.7794 GB Notification: Performance of matching and sorting (n=0): time 8.113e-05/0.7319, allocations: 29.64 kB / 1.028 GB, free: 11.35 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.892e-05/0.732, allocations: 126.7 kB / 1.028 GB, free: 11.21 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001232/0.7321, allocations: 109.8 kB / 1.028 GB, free: 11.1 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.178e-05/0.7321, allocations: 25.7 kB / 1.028 GB, free: 11.07 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001078/0.7322, allocations: 80.14 kB / 1.028 GB, free: 10.98 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.214e-06/0.7322, allocations: 0 / 1.028 GB, free: 10.98 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.706e-05/0.7323, allocations: 13.72 kB / 1.028 GB, free: 10.96 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001098/0.7324, allocations: 314.8 kB / 1.029 GB, free: 10.65 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.948e-05/0.7324, allocations: 7.938 kB / 1.029 GB, free: 10.64 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.02e-05/0.7325, allocations: 19.92 kB / 1.029 GB, free: 10.62 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.146e-05/0.7325, allocations: 24.89 kB / 1.029 GB, free: 10.59 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.7325, allocations: 0 / 1.029 GB, free: 10.59 MB / 0.7794 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.00014/0.7327, allocations: 57.53 kB / 1.029 GB, free: 10.53 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.78e-05/0.7327, allocations: 11.98 kB / 1.029 GB, free: 10.52 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.382e-06/0.7327, allocations: 0 / 1.029 GB, free: 10.52 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.477e-05/0.7327, allocations: 0 / 1.029 GB, free: 10.52 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.92e-07/0.7327, allocations: 0 / 1.029 GB, free: 10.52 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.571e-06/0.7327, allocations: 3.984 kB / 1.029 GB, free: 10.52 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.817e-05/0.7328, allocations: 0 / 1.029 GB, free: 10.52 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.401e-05/0.7328, allocations: 4 kB / 1.029 GB, free: 10.51 MB / 0.7794 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 0.0001009/0.733, allocations: 193.6 kB / 1.029 GB, free: 10.31 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.877e-05/0.733, allocations: 112.8 kB / 1.029 GB, free: 10.2 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.746e-05/0.7331, allocations: 108.1 kB / 1.029 GB, free: 10.08 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.24e-05/0.7332, allocations: 180.3 kB / 1.029 GB, free: 9.898 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.148e-05/0.7332, allocations: 180.4 kB / 1.03 GB, free: 9.715 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.166e-05/0.7333, allocations: 180.3 kB / 1.03 GB, free: 9.531 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002535/0.7336, allocations: 413.1 kB / 1.03 GB, free: 9.07 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.666e-05/0.7336, allocations: 101 kB / 1.03 GB, free: 8.965 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.52e-05/0.7337, allocations: 104.9 kB / 1.03 GB, free: 8.855 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.992e-05/0.7337, allocations: 184.2 kB / 1.03 GB, free: 8.668 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.405e-05/0.7338, allocations: 180.3 kB / 1.031 GB, free: 8.484 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.097e-05/0.7339, allocations: 188.2 kB / 1.031 GB, free: 8.293 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.306e-05/0.734, allocations: 176.3 kB / 1.031 GB, free: 8.113 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001637/0.7341, allocations: 311.8 kB / 1.031 GB, free: 7.785 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 8.17e-05/0.7342, allocations: 182 kB / 1.031 GB, free: 7.582 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.335e-05/0.7343, allocations: 192.2 kB / 1.032 GB, free: 7.387 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.791e-05/0.7344, allocations: 101 kB / 1.032 GB, free: 7.281 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.368e-05/0.7345, allocations: 184.2 kB / 1.032 GB, free: 7.094 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.099e-05/0.7345, allocations: 105 kB / 1.032 GB, free: 6.984 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 4.3e-05/0.7346, allocations: 79.28 kB / 1.032 GB, free: 6.906 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1e-07/0.7346, allocations: 0 / 1.032 GB, free: 6.906 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003437/0.7349, allocations: 63.91 kB / 1.032 GB, free: 6.844 MB / 0.7794 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 (0): * Single equations (assignments): 0 * Array equations: 0 * 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.0007508/0.7357, allocations: 377.2 kB / 1.033 GB, free: 6.531 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 8.856e-05/0.7358, allocations: 15.98 kB / 1.033 GB, free: 6.516 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.514e-06/0.7358, allocations: 3.938 kB / 1.033 GB, free: 6.512 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 6.532e-06/0.7358, allocations: 4.266 kB / 1.033 GB, free: 6.508 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004498/0.7363, allocations: 0.5185 MB / 1.033 GB, free: 5.984 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003349/0.7366, allocations: 200 kB / 1.033 GB, free: 5.754 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002853/0.7369, allocations: 0.6731 MB / 1.034 GB, free: 5.055 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.32e-05/0.737, allocations: 15.42 kB / 1.034 GB, free: 5.039 MB / 0.7794 GB Notification: Performance of SimCode: time 3.41e-07/0.737, allocations: 0 / 1.034 GB, free: 5.039 MB / 0.7794 GB Notification: Performance of Templates: time 0.003944/0.7409, allocations: 1.545 MB / 1.035 GB, free: 3.5 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Utilities.IO.Python_3_8.Functions.Examples.ExchangeWithPassPythonObject.makefile make -j1 -f Buildings_10_Buildings.Utilities.IO.Python_3_8.Functions.Examples.ExchangeWithPassPythonObject.makefile clang++ -std=c++14 -fopenmp=libomp -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/Modelica 4.0.0+maint.om/Resources/C-Sources""-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.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/Modelica 4.0.0+maint.om/Resources/C-Sources" "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/Resources/C-Sources" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppBuildings_10_Buildings.Utilities.IO.Python_3_8.Functions.Examples.ExchangeWithPassPythonObjectCalcHelperMain.o OMCppBuildings_10_Buildings.Utilities.IO.Python_3_8.Functions.Examples.ExchangeWithPassPythonObjectCalcHelperMain.cpp In file included from OMCppBuildings_10_Buildings.Utilities.IO.Python_3_8.Functions.Examples.ExchangeWithPassPythonObjectCalcHelperMain.cpp:28: In file included from ./OMCppBuildings_10_Buildings.Utilities.IO.Python_3_8.Functions.Examples.ExchangeWithPassPythonObjectFunctions.cpp:7: /home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/Resources/C-Sources/pythonWrapper.c:35:3: error: use of undeclared identifier 'pythonExchangeValuesNoModelica' pythonExchangeValuesNoModelica( ^ 1 error generated. make: *** [: OMCppBuildings_10_Buildings.Utilities.IO.Python_3_8.Functions.Examples.ExchangeWithPassPythonObjectCalcHelperMain.o] Error 1