Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_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_9_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.001396/0.001396, allocations: 103.1 kB / 16.27 MB, free: 5.965 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001506/0.001506, allocations: 191 kB / 17.2 MB, free: 5.59 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.346/1.346, allocations: 222.9 MB / 240.9 MB, free: 15.22 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.305/2.305, allocations: 390.2 MB / 0.6653 GB, free: 0.7695 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001502/0.001502, allocations: 68.33 kB / 0.8132 GB, free: 32.92 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3565/0.3581, allocations: 140.4 MB / 0.9503 GB, free: 8.914 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python_3_8.Functions.Examples.ExchangeWithPassPythonObject): time 0.002204/0.3603, allocations: 0.5302 MB / 0.9508 GB, free: 8.379 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001729/0.3621, allocations: 1.13 MB / 0.9519 GB, free: 7.242 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.305e-05/0.3621, allocations: 0 / 0.9519 GB, free: 7.242 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 9.709e-05/0.3622, allocations: 7.922 kB / 0.9519 GB, free: 7.234 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 5.214e-05/0.3623, allocations: 0 / 0.9519 GB, free: 7.234 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.000598/0.3629, allocations: 171.4 kB / 0.9521 GB, free: 7.066 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 5.884e-05/0.363, allocations: 15.92 kB / 0.9521 GB, free: 7.051 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 4.043e-05/0.363, allocations: 4 kB / 0.9521 GB, free: 7.047 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 2.693e-05/0.3631, allocations: 8 kB / 0.9521 GB, free: 7.039 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 5.248e-05/0.3631, allocations: 19.91 kB / 0.9521 GB, free: 7.02 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.444e-05/0.3631, allocations: 0 / 0.9521 GB, free: 7.02 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004175/0.3636, allocations: 171.7 kB / 0.9523 GB, free: 6.852 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 4.775e-05/0.3636, allocations: 11.98 kB / 0.9523 GB, free: 6.84 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 2.952e-05/0.3637, allocations: 8 kB / 0.9523 GB, free: 6.832 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0003244/0.364, allocations: 183.7 kB / 0.9525 GB, free: 6.652 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.364, allocations: 0 / 0.9525 GB, free: 6.652 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.403e-06/0.364, allocations: 0 / 0.9525 GB, free: 6.652 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 7.895e-06/0.364, allocations: 4 kB / 0.9525 GB, free: 6.648 MB / 0.7325 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.0004277/0.3645, allocations: 379.4 kB / 0.9528 GB, free: 6.23 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.079e-05/0.3645, allocations: 11.97 kB / 0.9528 GB, free: 6.219 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.107e-05/0.3646, allocations: 76.22 kB / 0.9529 GB, free: 6.145 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001701/0.3648, allocations: 251.9 kB / 0.9532 GB, free: 5.859 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.77e-05/0.3648, allocations: 150.9 kB / 0.9533 GB, free: 5.711 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.563e-05/0.3649, allocations: 150.9 kB / 0.9534 GB, free: 5.562 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 6.303e-05/0.365, allocations: 117.1 kB / 0.9536 GB, free: 5.441 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.79e-05/0.365, allocations: 75.28 kB / 0.9536 GB, free: 5.367 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.839e-05/0.3651, allocations: 150.6 kB / 0.9538 GB, free: 5.219 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.325e-05/0.3651, allocations: 150.6 kB / 0.9539 GB, free: 5.07 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.19e-05/0.3652, allocations: 154.5 kB / 0.9541 GB, free: 4.918 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003114/0.3655, allocations: 453.9 kB / 0.9545 GB, free: 4.426 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 7.503e-05/0.3656, allocations: 165.1 kB / 0.9547 GB, free: 4.254 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.683e-05/0.3657, allocations: 84.14 kB / 0.9547 GB, free: 4.168 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.345e-05/0.3657, allocations: 79.22 kB / 0.9548 GB, free: 4.09 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.487e-05/0.3658, allocations: 117.8 kB / 0.9549 GB, free: 3.965 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=0): time 2.484e-06/0.3658, allocations: 0 / 0.9549 GB, free: 3.965 MB / 0.7325 GB Notification: Performance of matching and sorting (n=0): time 8.368e-05/0.3659, allocations: 33.62 kB / 0.955 GB, free: 3.926 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.415e-05/0.3659, allocations: 126.7 kB / 0.9551 GB, free: 3.789 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001233/0.366, allocations: 101.9 kB / 0.9552 GB, free: 3.68 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.849e-05/0.3661, allocations: 29.64 kB / 0.9552 GB, free: 3.645 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 4.644e-05/0.3661, allocations: 84.12 kB / 0.9553 GB, free: 3.559 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.214e-06/0.3661, allocations: 0 / 0.9553 GB, free: 3.559 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.199e-05/0.3662, allocations: 25.7 kB / 0.9553 GB, free: 3.527 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.000126/0.3663, allocations: 314.8 kB / 0.9556 GB, free: 3.211 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.721e-05/0.3663, allocations: 7.984 kB / 0.9556 GB, free: 3.203 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.158e-05/0.3664, allocations: 8 kB / 0.9556 GB, free: 3.195 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.048e-05/0.3664, allocations: 28.78 kB / 0.9557 GB, free: 3.164 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.3664, allocations: 0 / 0.9557 GB, free: 3.164 MB / 0.7325 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001415/0.3666, allocations: 57.53 kB / 0.9557 GB, free: 3.102 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.459e-05/0.3666, allocations: 4 kB / 0.9557 GB, free: 3.098 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.121e-06/0.3666, allocations: 4.125 kB / 0.9557 GB, free: 3.094 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.322e-05/0.3666, allocations: 0 / 0.9557 GB, free: 3.094 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.012e-06/0.3667, allocations: 0 / 0.9557 GB, free: 3.094 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.017e-06/0.3667, allocations: 0 / 0.9557 GB, free: 3.094 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.901e-05/0.3668, allocations: 7.984 kB / 0.9557 GB, free: 3.086 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.667e-05/0.3668, allocations: 0 / 0.9557 GB, free: 3.086 MB / 0.7325 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.0001131/0.3669, allocations: 191.1 kB / 0.9559 GB, free: 2.891 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.153e-05/0.367, allocations: 108.9 kB / 0.956 GB, free: 2.777 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.096e-05/0.367, allocations: 115.9 kB / 0.9561 GB, free: 2.656 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.923e-05/0.3671, allocations: 180.2 kB / 0.9563 GB, free: 2.473 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.548e-05/0.3672, allocations: 184.3 kB / 0.9565 GB, free: 2.285 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.514e-05/0.3673, allocations: 176.3 kB / 0.9566 GB, free: 2.105 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002424/0.3675, allocations: 409.2 kB / 0.957 GB, free: 1.648 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.13e-05/0.3676, allocations: 105 kB / 0.9571 GB, free: 1.539 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.708e-05/0.3676, allocations: 104.9 kB / 0.9572 GB, free: 1.43 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.21e-05/0.3677, allocations: 188.2 kB / 0.9574 GB, free: 1.238 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.788e-05/0.3677, allocations: 180.3 kB / 0.9576 GB, free: 1.055 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.64e-05/0.3678, allocations: 184.2 kB / 0.9578 GB, free: 0.8672 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.235e-05/0.3679, allocations: 176.5 kB / 0.9579 GB, free: 0.6875 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000147/0.3681, allocations: 311.7 kB / 0.9582 GB, free: 368 kB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 7.566e-05/0.3681, allocations: 194 kB / 0.9584 GB, free: 148 kB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.948e-05/0.3682, allocations: 180.2 kB / 0.9586 GB, free: 15.96 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.257e-05/0.3683, allocations: 105 kB / 0.9587 GB, free: 15.85 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.781e-05/0.3684, allocations: 188.2 kB / 0.9589 GB, free: 15.66 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.283e-05/0.3685, allocations: 101 kB / 0.9589 GB, free: 15.55 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 4.374e-05/0.3685, allocations: 87.27 kB / 0.959 GB, free: 15.47 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3685, allocations: 0 / 0.959 GB, free: 15.47 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0003414/0.3689, allocations: 55.98 kB / 0.9591 GB, free: 15.41 MB / 0.7481 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.0007202/0.3696, allocations: 382.9 kB / 0.9595 GB, free: 15.1 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 8.792e-05/0.3697, allocations: 8 kB / 0.9595 GB, free: 15.09 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.3697, allocations: 0 / 0.9595 GB, free: 15.09 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 4.799e-06/0.3697, allocations: 3.938 kB / 0.9595 GB, free: 15.09 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003665/0.3701, allocations: 463.8 kB / 0.9599 GB, free: 14.63 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002737/0.3704, allocations: 197 kB / 0.9601 GB, free: 14.41 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002626/0.3706, allocations: 0.6805 MB / 0.9608 GB, free: 13.7 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.845e-05/0.3707, allocations: 11.44 kB / 0.9608 GB, free: 13.69 MB / 0.7481 GB Notification: Performance of SimCode: time 2.6e-07/0.3707, allocations: 0 / 0.9608 GB, free: 13.69 MB / 0.7481 GB Notification: Performance of Templates: time 0.003525/0.3743, allocations: 1.547 MB / 0.9623 GB, free: 12.14 MB / 0.7481 GB make -j1 -f Buildings_9_Buildings.Utilities.IO.Python_3_8.Functions.Examples.ExchangeWithPassPythonObject.makefile make -j1 -f Buildings_9_Buildings.Utilities.IO.Python_3_8.Functions.Examples.ExchangeWithPassPythonObject.makefile clang++ -std=c++17 -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 9.1.3-maint.9.1.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 9.1.3-maint.9.1.x/Resources/C-Sources" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppBuildings_9_Buildings.Utilities.IO.Python_3_8.Functions.Examples.ExchangeWithPassPythonObjectCalcHelperMain.o OMCppBuildings_9_Buildings.Utilities.IO.Python_3_8.Functions.Examples.ExchangeWithPassPythonObjectCalcHelperMain.cpp In file included from OMCppBuildings_9_Buildings.Utilities.IO.Python_3_8.Functions.Examples.ExchangeWithPassPythonObjectCalcHelperMain.cpp:28: In file included from ./OMCppBuildings_9_Buildings.Utilities.IO.Python_3_8.Functions.Examples.ExchangeWithPassPythonObjectFunctions.cpp:7: /home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/Resources/C-Sources/pythonWrapper.c:35:3: error: use of undeclared identifier 'pythonExchangeValuesNoModelica' pythonExchangeValuesNoModelica( ^ 1 error generated. make: *** [: OMCppBuildings_9_Buildings.Utilities.IO.Python_3_8.Functions.Examples.ExchangeWithPassPythonObjectCalcHelperMain.o] Error 1