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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.000925/0.0009248, allocations: 98.88 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.001232/0.001232, allocations: 183.7 kB / 16.92 MB, free: 6.77 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.365/1.365, allocations: 223.3 MB / 241 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.455/2.455, allocations: 390.9 MB / 0.667 GB, free: 2.375 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004131/0.0004134, allocations: 8 kB / 0.8166 GB, free: 13.26 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7593/0.7597, allocations: 142.4 MB / 0.9557 GB, free: 8.059 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python_3_8.Functions.Examples.ExchangeWithPassPythonObject): time 0.0007746/0.7606, allocations: 262.1 kB / 0.956 GB, free: 7.871 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001374/0.7619, allocations: 1.107 MB / 0.957 GB, free: 7.016 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.653e-05/0.762, allocations: 0 / 0.957 GB, free: 7.016 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 9.171e-05/0.7621, allocations: 9.188 kB / 0.9571 GB, free: 7.008 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.409e-05/0.7621, allocations: 0 / 0.9571 GB, free: 7.008 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004/0.7625, allocations: 136.9 kB / 0.9572 GB, free: 6.922 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 5.275e-05/0.7626, allocations: 20.31 kB / 0.9572 GB, free: 6.91 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 4.406e-05/0.7626, allocations: 1.312 kB / 0.9572 GB, free: 6.91 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 2.614e-05/0.7627, allocations: 4.75 kB / 0.9572 GB, free: 6.91 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.308e-05/0.7627, allocations: 9.828 kB / 0.9572 GB, free: 6.906 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.214e-05/0.7628, allocations: 5.188 kB / 0.9572 GB, free: 6.902 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003342/0.7631, allocations: 179.8 kB / 0.9574 GB, free: 6.809 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 4.508e-05/0.7632, allocations: 14.92 kB / 0.9574 GB, free: 6.797 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.418e-05/0.7632, allocations: 32.86 kB / 0.9574 GB, free: 6.762 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002146/0.7634, allocations: 139.9 kB / 0.9576 GB, free: 6.691 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.937e-06/0.7634, allocations: 0.875 kB / 0.9576 GB, free: 6.691 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.864e-06/0.7634, allocations: 0 / 0.9576 GB, free: 6.691 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 7.835e-06/0.7634, allocations: 0 / 0.9576 GB, free: 6.691 MB / 0.7169 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.0002725/0.7637, allocations: 357.2 kB / 0.9579 GB, free: 6.309 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.174e-05/0.7638, allocations: 8.812 kB / 0.9579 GB, free: 6.309 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.941e-05/0.7638, allocations: 89.59 kB / 0.958 GB, free: 6.223 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000103/0.7639, allocations: 243.2 kB / 0.9582 GB, free: 5.949 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.734e-05/0.764, allocations: 150.9 kB / 0.9584 GB, free: 5.801 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.032e-05/0.764, allocations: 153.1 kB / 0.9585 GB, free: 5.652 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 4.347e-05/0.7641, allocations: 114.4 kB / 0.9586 GB, free: 5.535 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.47e-05/0.7641, allocations: 79.28 kB / 0.9587 GB, free: 5.457 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.344e-05/0.7641, allocations: 150.6 kB / 0.9589 GB, free: 5.309 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.834e-05/0.7641, allocations: 151.8 kB / 0.959 GB, free: 5.16 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.094e-05/0.7642, allocations: 150.6 kB / 0.9591 GB, free: 5.012 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001773/0.7643, allocations: 448.8 kB / 0.9596 GB, free: 4.527 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 4.206e-05/0.7644, allocations: 182.4 kB / 0.9597 GB, free: 4.34 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.409e-05/0.7644, allocations: 81.83 kB / 0.9598 GB, free: 4.258 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.199e-05/0.7644, allocations: 75.28 kB / 0.9599 GB, free: 4.184 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.098e-05/0.7645, allocations: 113.8 kB / 0.96 GB, free: 4.062 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=0): time 8.62e-07/0.7645, allocations: 0 / 0.96 GB, free: 4.062 MB / 0.7169 GB Notification: Performance of matching and sorting (n=0): time 6.237e-05/0.7645, allocations: 32.55 kB / 0.96 GB, free: 4.027 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.963e-05/0.7646, allocations: 130.7 kB / 0.9602 GB, free: 3.887 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.663e-05/0.7647, allocations: 99.69 kB / 0.9603 GB, free: 3.785 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.15e-05/0.7647, allocations: 31.03 kB / 0.9603 GB, free: 3.75 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.482e-05/0.7647, allocations: 85.33 kB / 0.9604 GB, free: 3.664 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.683e-06/0.7647, allocations: 3.938 kB / 0.9604 GB, free: 3.66 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.968e-05/0.7647, allocations: 10.81 kB / 0.9604 GB, free: 3.645 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.444e-05/0.7648, allocations: 312 kB / 0.9607 GB, free: 3.332 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.452e-05/0.7648, allocations: 8.906 kB / 0.9607 GB, free: 3.328 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.598e-05/0.7649, allocations: 14.89 kB / 0.9607 GB, free: 3.32 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.562e-05/0.7649, allocations: 21.41 kB / 0.9607 GB, free: 3.309 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.7649, allocations: 0 / 0.9607 GB, free: 3.309 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.000125/0.765, allocations: 54.47 kB / 0.9608 GB, free: 3.266 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.406e-05/0.7651, allocations: 5.094 kB / 0.9608 GB, free: 3.266 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.54e-06/0.7651, allocations: 1.5 kB / 0.9608 GB, free: 3.266 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.113e-05/0.7651, allocations: 0 / 0.9608 GB, free: 3.266 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.52e-07/0.7651, allocations: 0 / 0.9608 GB, free: 3.266 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.92e-06/0.7651, allocations: 9.344 kB / 0.9608 GB, free: 3.258 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.003e-05/0.7652, allocations: 5.031 kB / 0.9608 GB, free: 3.254 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.776e-05/0.7652, allocations: 10.86 kB / 0.9608 GB, free: 3.246 MB / 0.7169 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 5.942e-05/0.7653, allocations: 184 kB / 0.961 GB, free: 3.059 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.673e-05/0.7653, allocations: 106.4 kB / 0.9611 GB, free: 2.949 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.34e-05/0.7653, allocations: 111.8 kB / 0.9612 GB, free: 2.832 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.594e-05/0.7654, allocations: 193.6 kB / 0.9614 GB, free: 2.637 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.461e-05/0.7654, allocations: 177.8 kB / 0.9615 GB, free: 2.457 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.299e-05/0.7654, allocations: 180.2 kB / 0.9617 GB, free: 2.273 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001275/0.7656, allocations: 400.8 kB / 0.9621 GB, free: 1.828 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-05/0.7656, allocations: 105 kB / 0.9622 GB, free: 1.719 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.756e-05/0.7656, allocations: 110.6 kB / 0.9623 GB, free: 1.605 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.217e-05/0.7656, allocations: 182.2 kB / 0.9625 GB, free: 1.422 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.659e-05/0.7657, allocations: 184.2 kB / 0.9627 GB, free: 1.234 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.261e-05/0.7657, allocations: 182.1 kB / 0.9628 GB, free: 1.051 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-05/0.7657, allocations: 184.2 kB / 0.963 GB, free: 0.8633 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.466e-05/0.7658, allocations: 307.4 kB / 0.9633 GB, free: 0.543 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.014e-05/0.7658, allocations: 192 kB / 0.9635 GB, free: 340 kB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.099e-05/0.7659, allocations: 178.3 kB / 0.9636 GB, free: 156 kB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.015e-05/0.7659, allocations: 108.9 kB / 0.9638 GB, free: 40 kB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.43e-05/0.766, allocations: 182 kB / 0.9639 GB, free: 15.86 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.083e-05/0.7661, allocations: 101 kB / 0.964 GB, free: 15.75 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 4.117e-05/0.7661, allocations: 86.83 kB / 0.9641 GB, free: 15.67 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7661, allocations: 1.875 kB / 0.9641 GB, free: 15.67 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0003118/0.7664, allocations: 54.17 kB / 0.9642 GB, free: 15.65 MB / 0.7325 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.0006922/0.7671, allocations: 392.6 kB / 0.9645 GB, free: 15.4 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 7.446e-05/0.7672, allocations: 10.88 kB / 0.9645 GB, free: 15.4 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.7672, allocations: 1.375 kB / 0.9645 GB, free: 15.4 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 1.453e-06/0.7672, allocations: 0 / 0.9645 GB, free: 15.4 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003675/0.7676, allocations: 0.5198 MB / 0.9651 GB, free: 14.88 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002341/0.7679, allocations: 205.9 kB / 0.9652 GB, free: 14.65 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002364/0.7681, allocations: 0.6758 MB / 0.9659 GB, free: 13.95 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.331e-05/0.7682, allocations: 11.56 kB / 0.9659 GB, free: 13.94 MB / 0.7325 GB Notification: Performance of SimCode: time 2.61e-07/0.7682, allocations: 0 / 0.9659 GB, free: 13.94 MB / 0.7325 GB Notification: Performance of Templates: time 0.003194/0.7714, allocations: 1.549 MB / 0.9674 GB, free: 13.16 MB / 0.7325 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++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 9.1.2-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.2-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.2-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