Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange.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.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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.Exchange,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|yR1.1.|yI1.1.|yR2.1.|yR2.2.|yI2.1.|yI2.2.",fileNamePrefix="Buildings_10_Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange") translateModel(Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|yR1.1.|yI1.1.|yR2.1.|yR2.2.|yI2.1.|yI2.2.",fileNamePrefix="Buildings_10_Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001749/0.001749, allocations: 110.6 kB / 16.41 MB, free: 6.492 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.00203/0.00203, allocations: 187 kB / 17.34 MB, free: 5.766 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.344/1.344, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.455/2.455, allocations: 437 MB / 0.7112 GB, free: 4.422 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001568/0.001568, allocations: 59.91 kB / 1.019 GB, free: 9.461 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.06/1.062, allocations: 151.6 MB / 1.167 GB, free: 3.891 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange): time 0.002149/1.064, allocations: 0.5476 MB / 1.168 GB, free: 3.348 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001954/1.066, allocations: 1.193 MB / 1.169 GB, free: 2.148 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.234e-05/1.066, allocations: 0 / 1.169 GB, free: 2.148 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.0001142/1.066, allocations: 15.92 kB / 1.169 GB, free: 2.133 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 5.146e-05/1.066, allocations: 3.938 kB / 1.169 GB, free: 2.129 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008516/1.067, allocations: 275.3 kB / 1.169 GB, free: 1.859 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0001967/1.067, allocations: 75.86 kB / 1.169 GB, free: 1.785 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 5.097e-05/1.067, allocations: 4 kB / 1.169 GB, free: 1.781 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 6.2e-05/1.067, allocations: 39.89 kB / 1.169 GB, free: 1.742 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001095/1.067, allocations: 47.84 kB / 1.169 GB, free: 1.695 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 2.557e-05/1.067, allocations: 4 kB / 1.169 GB, free: 1.691 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004774/1.068, allocations: 215.6 kB / 1.17 GB, free: 1.48 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 3.184e-05/1.068, allocations: 4 kB / 1.17 GB, free: 1.477 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 6.549e-05/1.068, allocations: 27.86 kB / 1.17 GB, free: 1.449 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0004631/1.069, allocations: 255.5 kB / 1.17 GB, free: 1.199 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 5.62e-06/1.069, allocations: 0 / 1.17 GB, free: 1.199 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.803e-06/1.069, allocations: 0 / 1.17 GB, free: 1.199 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 7.324e-06/1.069, allocations: 0 / 1.17 GB, free: 1.199 MB / 0.8887 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.0005428/1.069, allocations: 448.9 kB / 1.17 GB, free: 0.7109 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.13e-05/1.069, allocations: 12.03 kB / 1.17 GB, free: 0.6992 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001077/1.069, allocations: 84.22 kB / 1.17 GB, free: 0.6172 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001903/1.069, allocations: 251.6 kB / 1.171 GB, free: 340 kB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.907e-05/1.07, allocations: 150.9 kB / 1.171 GB, free: 188 kB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.357e-05/1.07, allocations: 162.9 kB / 1.171 GB, free: 24 kB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.259e-05/1.07, allocations: 105.1 kB / 1.171 GB, free: 15.91 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.69e-05/1.07, allocations: 79.28 kB / 1.171 GB, free: 15.84 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.571e-05/1.07, allocations: 150.6 kB / 1.171 GB, free: 15.69 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.854e-05/1.07, allocations: 150.6 kB / 1.171 GB, free: 15.54 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.44e-05/1.07, allocations: 158.6 kB / 1.172 GB, free: 15.38 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003452/1.07, allocations: 469.9 kB / 1.172 GB, free: 14.88 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 9.733e-05/1.07, allocations: 181.1 kB / 1.172 GB, free: 14.69 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.362e-05/1.07, allocations: 80.14 kB / 1.172 GB, free: 14.61 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 2.766e-05/1.07, allocations: 75.28 kB / 1.172 GB, free: 14.53 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.716e-05/1.071, allocations: 113.8 kB / 1.172 GB, free: 14.41 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=0): time 2.765e-06/1.071, allocations: 3.984 kB / 1.172 GB, free: 14.41 MB / 0.9044 GB Notification: Performance of matching and sorting (n=0): time 0.000117/1.071, allocations: 45.55 kB / 1.173 GB, free: 14.36 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.794e-05/1.071, allocations: 130.6 kB / 1.173 GB, free: 14.21 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00017/1.071, allocations: 141.5 kB / 1.173 GB, free: 14.07 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 2.657e-05/1.071, allocations: 29.7 kB / 1.173 GB, free: 14.04 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 7.451e-05/1.071, allocations: 92.12 kB / 1.173 GB, free: 13.94 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 3.045e-06/1.071, allocations: 0 / 1.173 GB, free: 13.94 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.922e-05/1.071, allocations: 49.69 kB / 1.173 GB, free: 13.89 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001219/1.071, allocations: 310.8 kB / 1.173 GB, free: 13.57 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001256/1.071, allocations: 63.94 kB / 1.173 GB, free: 13.51 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.784e-05/1.072, allocations: 63.95 kB / 1.173 GB, free: 13.45 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001314/1.072, allocations: 90.52 kB / 1.173 GB, free: 13.35 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/1.072, allocations: 3.938 kB / 1.173 GB, free: 13.35 MB / 0.9044 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0004048/1.072, allocations: 231.1 kB / 1.174 GB, free: 13.11 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 6.099e-05/1.072, allocations: 48.03 kB / 1.174 GB, free: 13.06 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.2e-06/1.072, allocations: 0 / 1.174 GB, free: 13.06 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.615e-05/1.072, allocations: 4 kB / 1.174 GB, free: 13.05 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.495e-06/1.072, allocations: 3.984 kB / 1.174 GB, free: 13.05 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.22e-06/1.072, allocations: 4.062 kB / 1.174 GB, free: 13.05 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003391/1.073, allocations: 23.83 kB / 1.174 GB, free: 13.02 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.895e-05/1.073, allocations: 15.98 kB / 1.174 GB, free: 13.01 MB / 0.9044 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 (yI2[2],yI2[1],yI1[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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.000137/1.073, allocations: 197.1 kB / 1.174 GB, free: 12.8 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.621e-05/1.073, allocations: 112.8 kB / 1.174 GB, free: 12.69 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.278e-05/1.073, allocations: 112.5 kB / 1.174 GB, free: 12.57 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.247e-05/1.073, allocations: 184.3 kB / 1.174 GB, free: 12.38 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.833e-05/1.073, allocations: 180.2 kB / 1.175 GB, free: 12.2 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.97e-05/1.073, allocations: 180.3 kB / 1.175 GB, free: 12.01 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000246/1.073, allocations: 413.2 kB / 1.175 GB, free: 11.55 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.852e-05/1.073, allocations: 104.9 kB / 1.175 GB, free: 11.44 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.773e-05/1.073, allocations: 112.9 kB / 1.175 GB, free: 11.32 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.402e-05/1.074, allocations: 188.2 kB / 1.175 GB, free: 11.13 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.692e-05/1.074, allocations: 184.3 kB / 1.176 GB, free: 10.95 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.682e-05/1.074, allocations: 176.3 kB / 1.176 GB, free: 10.77 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.912e-05/1.074, allocations: 184.2 kB / 1.176 GB, free: 10.58 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000164/1.074, allocations: 319.7 kB / 1.176 GB, free: 10.24 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 8.421e-05/1.074, allocations: 182 kB / 1.176 GB, free: 10.04 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.587e-05/1.074, allocations: 180.3 kB / 1.177 GB, free: 9.855 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.744e-05/1.074, allocations: 104.9 kB / 1.177 GB, free: 9.746 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.078e-05/1.074, allocations: 176.3 kB / 1.177 GB, free: 9.566 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.782e-05/1.074, allocations: 108.9 kB / 1.177 GB, free: 9.453 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 7.675e-05/1.074, allocations: 107.3 kB / 1.177 GB, free: 9.348 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.4e-07/1.074, allocations: 0 / 1.177 GB, free: 9.348 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0003827/1.075, allocations: 75.89 kB / 1.177 GB, free: 9.273 MB / 0.9044 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.0008792/1.076, allocations: 406.4 kB / 1.178 GB, free: 8.945 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0003061/1.076, allocations: 215.3 kB / 1.178 GB, free: 8.723 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/1.076, allocations: 0 / 1.178 GB, free: 8.723 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 4.058e-06/1.076, allocations: 0 / 1.178 GB, free: 8.723 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003665/1.076, allocations: 459.8 kB / 1.178 GB, free: 8.27 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003788/1.077, allocations: 266 kB / 1.178 GB, free: 7.977 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002792/1.077, allocations: 0.6768 MB / 1.179 GB, free: 7.273 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.441e-05/1.077, allocations: 7.438 kB / 1.179 GB, free: 7.266 MB / 0.9044 GB Notification: Performance of SimCode: time 2.01e-07/1.077, allocations: 0 / 1.179 GB, free: 7.266 MB / 0.9044 GB Notification: Performance of Templates: time 0.004724/1.082, allocations: 2.367 MB / 1.181 GB, free: 4.91 MB / 0.9044 GB make -j1 -f Buildings_10_Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange.makefile make -j1 -f Buildings_10_Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange.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 10.1.1-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.1-maint.10.0.x/Resources/C-Sources" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppBuildings_10_Buildings.Utilities.IO.Python_3_8.Functions.Examples.ExchangeCalcHelperMain.o OMCppBuildings_10_Buildings.Utilities.IO.Python_3_8.Functions.Examples.ExchangeCalcHelperMain.cpp In file included from OMCppBuildings_10_Buildings.Utilities.IO.Python_3_8.Functions.Examples.ExchangeCalcHelperMain.cpp:28: In file included from ./OMCppBuildings_10_Buildings.Utilities.IO.Python_3_8.Functions.Examples.ExchangeFunctions.cpp:7: /home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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.ExchangeCalcHelperMain.o] Error 1