Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Obsolete.Utilities.IO.Python27.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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 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.Obsolete.Utilities.IO.Python27.Functions.Examples.ExchangeWithPassPythonObject,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_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_8_Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.ExchangeWithPassPythonObject") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001463/0.001463, allocations: 102.1 kB / 16.27 MB, free: 6.348 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.001488/0.001489, allocations: 187.6 kB / 17.2 MB, free: 5.949 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.534/1.534, allocations: 205.1 MB / 223.1 MB, free: 12.3 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.786/1.786, allocations: 292.3 MB / 0.5495 GB, free: 17.48 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001597/0.001597, allocations: 75.17 kB / 0.6722 GB, free: 6.535 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2397/0.2413, allocations: 114.5 MB / 0.784 GB, free: 3.875 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.ExchangeWithPassPythonObject): time 0.002356/0.2437, allocations: 0.5414 MB / 0.7846 GB, free: 3.332 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.001788/0.2456, allocations: 1.124 MB / 0.7857 GB, free: 2.199 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.116e-05/0.2456, allocations: 0 / 0.7857 GB, free: 2.199 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 0.0001155/0.2458, allocations: 0 / 0.7857 GB, free: 2.199 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 5.446e-05/0.2458, allocations: 11.94 kB / 0.7857 GB, free: 2.188 MB / 0.6544 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:216:3-259:11:writable] Warning: Pure function 'Modelica.Utilities.Strings.find' contains a call to impure function 'Modelica.Utilities.Strings.length'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:310:3-383:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.replace' contains a call to impure function 'Modelica.Utilities.Strings.length'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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.Strings.replace'. Notification: Performance of NFTyping.typeClassSections: time 0.0007437/0.2466, allocations: 175.4 kB / 0.7858 GB, free: 2.016 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 6.487e-05/0.2467, allocations: 19.86 kB / 0.7859 GB, free: 1.996 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 5.386e-05/0.2467, allocations: 4 kB / 0.7859 GB, free: 1.992 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 2.625e-05/0.2468, allocations: 4 kB / 0.7859 GB, free: 1.988 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 6.27e-05/0.2468, allocations: 11.98 kB / 0.7859 GB, free: 1.977 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 1.178e-05/0.2468, allocations: 0 / 0.7859 GB, free: 1.977 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004579/0.2473, allocations: 183.7 kB / 0.7861 GB, free: 1.797 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 3.81e-05/0.2474, allocations: 4 kB / 0.7861 GB, free: 1.793 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 3.843e-05/0.2474, allocations: 11.92 kB / 0.7861 GB, free: 1.781 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.000393/0.2478, allocations: 187.7 kB / 0.7863 GB, free: 1.598 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 6.242e-06/0.2478, allocations: 0 / 0.7863 GB, free: 1.598 MB / 0.6544 GB Notification: Performance of FrontEnd: time 4.769e-06/0.2478, allocations: 4 kB / 0.7863 GB, free: 1.594 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 7.073e-06/0.2478, allocations: 0 / 0.7863 GB, free: 1.594 MB / 0.6544 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.0004201/0.2483, allocations: 367.5 kB / 0.7866 GB, free: 1.188 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 4.361e-05/0.2483, allocations: 8.031 kB / 0.7866 GB, free: 1.18 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.797e-05/0.2484, allocations: 0.9375 kB / 0.7866 GB, free: 1.18 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001375/0.2485, allocations: 176.4 kB / 0.7868 GB, free: 0.9688 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.204e-05/0.2485, allocations: 384 / 0.7868 GB, free: 0.9688 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.537e-05/0.2485, allocations: 4.312 kB / 0.7868 GB, free: 0.9648 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001341/0.2487, allocations: 41.81 kB / 0.7868 GB, free: 0.918 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.839e-06/0.2487, allocations: 0 / 0.7868 GB, free: 0.918 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.684e-05/0.2487, allocations: 7.984 kB / 0.7868 GB, free: 0.9102 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.979e-05/0.2488, allocations: 0 / 0.7868 GB, free: 0.9102 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.154e-05/0.2488, allocations: 7.984 kB / 0.7868 GB, free: 0.9023 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001968/0.249, allocations: 154 kB / 0.787 GB, free: 0.7031 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 7.688e-05/0.2491, allocations: 30.56 kB / 0.787 GB, free: 0.6641 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.314e-05/0.2491, allocations: 20.84 kB / 0.787 GB, free: 0.6406 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 8.206e-06/0.2491, allocations: 0 / 0.787 GB, free: 0.6406 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.098e-05/0.2492, allocations: 38.5 kB / 0.7871 GB, free: 0.5938 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=2): time 1.072e-06/0.2492, allocations: 0 / 0.7871 GB, free: 0.5938 MB / 0.6544 GB Notification: Performance of matching and sorting (n=2): time 0.0001883/0.2494, allocations: 53.59 kB / 0.7871 GB, free: 0.5352 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.617e-05/0.2494, allocations: 59.53 kB / 0.7872 GB, free: 476 kB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.946e-05/0.2495, allocations: 101.8 kB / 0.7873 GB, free: 364 kB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 1.927e-05/0.2495, allocations: 25.7 kB / 0.7873 GB, free: 332 kB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 3.384e-05/0.2496, allocations: 84.14 kB / 0.7874 GB, free: 244 kB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 2.932e-05/0.2496, allocations: 7.891 kB / 0.7874 GB, free: 236 kB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.914e-05/0.2497, allocations: 13.72 kB / 0.7874 GB, free: 216 kB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 0.3981/0.6478, allocations: 311.9 kB / 0.7877 GB, free: 49 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.092e-05/0.6479, allocations: 10.06 kB / 0.7877 GB, free: 49 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.852e-05/0.6479, allocations: 10.19 kB / 0.7877 GB, free: 49 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.408e-05/0.648, allocations: 21.53 kB / 0.7877 GB, free: 49 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.287e-06/0.648, allocations: 0 / 0.7877 GB, free: 49 MB / 0.6544 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001265/0.6482, allocations: 57.16 kB / 0.7878 GB, free: 48.96 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 2.179e-05/0.6482, allocations: 5.156 kB / 0.7878 GB, free: 48.96 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.099e-05/0.6482, allocations: 6.484 kB / 0.7878 GB, free: 48.96 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.194e-05/0.6482, allocations: 2.156 kB / 0.7878 GB, free: 48.96 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.393e-06/0.6482, allocations: 0 / 0.7878 GB, free: 48.96 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.175e-05/0.6483, allocations: 7.062 kB / 0.7878 GB, free: 48.96 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.025e-05/0.6483, allocations: 3.125 kB / 0.7878 GB, free: 48.96 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.667e-05/0.6483, allocations: 0 / 0.7878 GB, free: 48.96 MB / 0.6544 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 7.515e-05/0.6484, allocations: 110.9 kB / 0.7879 GB, free: 48.85 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.719e-05/0.6484, allocations: 4.969 kB / 0.7879 GB, free: 48.85 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.403e-05/0.6484, allocations: 4.469 kB / 0.7879 GB, free: 48.85 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.914e-05/0.6485, allocations: 4.656 kB / 0.7879 GB, free: 48.85 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.893e-06/0.6485, allocations: 3.938 kB / 0.7879 GB, free: 48.85 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.935e-06/0.6485, allocations: 0 / 0.7879 GB, free: 48.85 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001008/0.6486, allocations: 154.4 kB / 0.7881 GB, free: 48.66 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.6486, allocations: 3.156 kB / 0.7881 GB, free: 48.66 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.413e-06/0.6486, allocations: 2.062 kB / 0.7881 GB, free: 48.66 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.252e-06/0.6486, allocations: 0 / 0.7881 GB, free: 48.66 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.326e-06/0.6486, allocations: 2.891 kB / 0.7881 GB, free: 48.66 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.72e-07/0.6486, allocations: 0 / 0.7881 GB, free: 48.66 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/0.6486, allocations: 8.094 kB / 0.7881 GB, free: 48.66 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.719e-05/0.6487, allocations: 73.06 kB / 0.7882 GB, free: 48.59 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 2.95e-05/0.6488, allocations: 82.53 kB / 0.7883 GB, free: 48.5 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.34e-05/0.6488, allocations: 0 / 0.7883 GB, free: 48.5 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.655e-05/0.6489, allocations: 2.938 kB / 0.7883 GB, free: 48.5 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.564e-05/0.6489, allocations: 7.719 kB / 0.7883 GB, free: 48.5 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.855e-06/0.6489, allocations: 6.312 kB / 0.7883 GB, free: 48.5 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 2.651e-05/0.6489, allocations: 78.75 kB / 0.7883 GB, free: 48.42 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.11e-07/0.6489, allocations: 0 / 0.7883 GB, free: 48.42 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0003287/0.6493, allocations: 64.25 kB / 0.7884 GB, free: 48.42 MB / 0.6544 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.0006765/0.65, allocations: 302.6 kB / 0.7887 GB, free: 48.34 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.000116/0.6501, allocations: 21.67 kB / 0.7887 GB, free: 48.34 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 4.679e-06/0.6501, allocations: 0.5312 kB / 0.7887 GB, free: 48.34 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 1.856e-05/0.6501, allocations: 11.05 kB / 0.7887 GB, free: 48.34 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001546/0.6503, allocations: 4.359 kB / 0.7887 GB, free: 48.34 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003333/0.6506, allocations: 121.6 kB / 0.7888 GB, free: 48.22 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001199/0.6508, allocations: 0.6748 MB / 0.7895 GB, free: 47.52 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001537/0.6509, allocations: 27.38 kB / 0.7895 GB, free: 47.52 MB / 0.6544 GB Notification: Performance of SimCode: time 7.51e-07/0.6509, allocations: 0 / 0.7895 GB, free: 47.52 MB / 0.6544 GB Notification: Performance of Templates: time 0.003508/0.6544, allocations: 1.659 MB / 0.7912 GB, free: 47.4 MB / 0.6544 GB make -j1 -f Buildings_8_Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.ExchangeWithPassPythonObject.makefile make -j1 -f Buildings_8_Buildings.Obsolete.Utilities.IO.Python27.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/Buildings 8.1.4-maint.8.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/Buildings 8.1.4-maint.8.1.x/Resources/C-Sources" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppBuildings_8_Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.ExchangeWithPassPythonObjectCalcHelperMain.o OMCppBuildings_8_Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.ExchangeWithPassPythonObjectCalcHelperMain.cpp In file included from OMCppBuildings_8_Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.ExchangeWithPassPythonObjectCalcHelperMain.cpp:28: In file included from ./OMCppBuildings_8_Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.ExchangeWithPassPythonObjectFunctions.cpp:5: /home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/Resources/C-Sources/pythonWrapper.c:35:3: error: use of undeclared identifier 'pythonExchangeValuesNoModelica' pythonExchangeValuesNoModelica( ^ 1 error generated. make: *** [: OMCppBuildings_8_Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.ExchangeWithPassPythonObjectCalcHelperMain.o] Error 1