Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 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.Exchange,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|yR1.1.|yI1.1.|yR2.1.|yR2.2.|yI2.1.|yI2.2.",fileNamePrefix="Buildings_9_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_9_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.0008329/0.000833, allocations: 99.11 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.0008632/0.0008632, allocations: 182.1 kB / 16.92 MB, free: 6.918 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.367/1.367, 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.427/2.427, allocations: 390.9 MB / 0.667 GB, free: 2.375 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003582/0.0003582, allocations: 8 kB / 0.8166 GB, free: 13.23 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7262/0.7266, allocations: 142.4 MB / 0.9557 GB, free: 7.84 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange): time 0.0007242/0.7273, allocations: 273.4 kB / 0.956 GB, free: 7.645 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001487/0.7288, allocations: 1.189 MB / 0.9571 GB, free: 6.738 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.631e-05/0.7289, allocations: 0 / 0.9571 GB, free: 6.738 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 8.205e-05/0.729, allocations: 14.64 kB / 0.9571 GB, free: 6.727 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.319e-05/0.729, allocations: 0 / 0.9571 GB, free: 6.727 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005438/0.7296, allocations: 242 kB / 0.9574 GB, free: 6.578 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001135/0.7297, allocations: 74.7 kB / 0.9575 GB, free: 6.547 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 4.892e-05/0.7297, allocations: 7.312 kB / 0.9575 GB, free: 6.543 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 5.242e-05/0.7298, allocations: 42.03 kB / 0.9575 GB, free: 6.523 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.933e-05/0.7298, allocations: 41.89 kB / 0.9575 GB, free: 6.504 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.973e-05/0.7299, allocations: 3.062 kB / 0.9575 GB, free: 6.504 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003798/0.7303, allocations: 180.9 kB / 0.9577 GB, free: 6.414 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.745e-05/0.7303, allocations: 7.875 kB / 0.9577 GB, free: 6.41 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 6.886e-05/0.7304, allocations: 66.44 kB / 0.9578 GB, free: 6.352 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.000254/0.7306, allocations: 177 kB / 0.958 GB, free: 6.266 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.7306, allocations: 1.312 kB / 0.958 GB, free: 6.266 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.553e-06/0.7307, allocations: 0 / 0.958 GB, free: 6.266 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.349e-06/0.7307, allocations: 4 kB / 0.958 GB, free: 6.262 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.0003087/0.731, allocations: 416.6 kB / 0.9584 GB, free: 5.828 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.19e-05/0.731, allocations: 10.81 kB / 0.9584 GB, free: 5.828 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.839e-05/0.7311, allocations: 85.56 kB / 0.9584 GB, free: 5.75 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001084/0.7312, allocations: 255.2 kB / 0.9587 GB, free: 5.465 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.076e-05/0.7312, allocations: 152.8 kB / 0.9588 GB, free: 5.316 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.545e-05/0.7313, allocations: 162.2 kB / 0.959 GB, free: 5.164 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 4.551e-05/0.7313, allocations: 113.1 kB / 0.9591 GB, free: 5.047 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.538e-05/0.7314, allocations: 87.16 kB / 0.9592 GB, free: 4.961 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.66e-05/0.7314, allocations: 154.5 kB / 0.9593 GB, free: 4.809 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.274e-05/0.7314, allocations: 156.3 kB / 0.9595 GB, free: 4.656 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.399e-05/0.7315, allocations: 150.6 kB / 0.9596 GB, free: 4.508 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002223/0.7317, allocations: 470.5 kB / 0.9601 GB, free: 4.012 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 5.183e-05/0.7317, allocations: 169.1 kB / 0.9602 GB, free: 3.836 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.191e-05/0.7318, allocations: 81.92 kB / 0.9603 GB, free: 3.754 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.792e-05/0.7318, allocations: 83.2 kB / 0.9604 GB, free: 3.672 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.579e-05/0.7318, allocations: 113.8 kB / 0.9605 GB, free: 3.551 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=0): time 1.012e-06/0.7318, allocations: 0 / 0.9605 GB, free: 3.551 MB / 0.7169 GB Notification: Performance of matching and sorting (n=0): time 7.966e-05/0.7319, allocations: 40.8 kB / 0.9605 GB, free: 3.512 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.07e-05/0.732, allocations: 126.7 kB / 0.9607 GB, free: 3.375 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001392/0.7321, allocations: 147.1 kB / 0.9608 GB, free: 3.246 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.206e-05/0.7321, allocations: 28.36 kB / 0.9608 GB, free: 3.215 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.814e-05/0.7322, allocations: 89.05 kB / 0.9609 GB, free: 3.129 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.843e-06/0.7322, allocations: 0 / 0.9609 GB, free: 3.129 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.7e-05/0.7322, allocations: 19.91 kB / 0.9609 GB, free: 3.109 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.195e-05/0.7323, allocations: 320.2 kB / 0.9612 GB, free: 2.789 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001116/0.7324, allocations: 57.08 kB / 0.9613 GB, free: 2.77 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.759e-05/0.7325, allocations: 65 kB / 0.9614 GB, free: 2.742 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001172/0.7326, allocations: 95.77 kB / 0.9614 GB, free: 2.68 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.963e-06/0.7326, allocations: 0 / 0.9614 GB, free: 2.68 MB / 0.7169 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0003619/0.733, allocations: 235.9 kB / 0.9617 GB, free: 2.547 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 4.992e-05/0.7331, allocations: 42.06 kB / 0.9617 GB, free: 2.512 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.28e-06/0.7331, allocations: 0 / 0.9617 GB, free: 2.512 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.238e-05/0.7331, allocations: 4.062 kB / 0.9617 GB, free: 2.508 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.012e-06/0.7331, allocations: 1.375 kB / 0.9617 GB, free: 2.508 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.15e-06/0.7331, allocations: 0 / 0.9617 GB, free: 2.508 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003457/0.7335, allocations: 33.5 kB / 0.9617 GB, free: 2.488 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.836e-05/0.7335, allocations: 18.98 kB / 0.9618 GB, free: 2.48 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: 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 8.873e-05/0.7336, allocations: 190.8 kB / 0.9619 GB, free: 2.293 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.38e-05/0.7337, allocations: 119.6 kB / 0.9621 GB, free: 2.172 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.971e-05/0.7337, allocations: 115 kB / 0.9622 GB, free: 2.051 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.489e-05/0.7337, allocations: 181.6 kB / 0.9623 GB, free: 1.867 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.403e-05/0.7338, allocations: 176.3 kB / 0.9625 GB, free: 1.688 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.253e-05/0.7338, allocations: 177.6 kB / 0.9627 GB, free: 1.508 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001403/0.7339, allocations: 420 kB / 0.9631 GB, free: 1.047 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.715e-05/0.734, allocations: 106.4 kB / 0.9632 GB, free: 0.9375 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.687e-05/0.734, allocations: 110.2 kB / 0.9633 GB, free: 0.8242 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.635e-05/0.734, allocations: 176.3 kB / 0.9635 GB, free: 0.6445 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.27e-05/0.734, allocations: 177.6 kB / 0.9636 GB, free: 476 kB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.15e-05/0.7341, allocations: 189.6 kB / 0.9638 GB, free: 280 kB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.111e-05/0.7341, allocations: 181.6 kB / 0.964 GB, free: 92 kB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000146/0.7343, allocations: 313.2 kB / 0.9643 GB, free: 15.77 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001353/0.7344, allocations: 199.2 kB / 0.9645 GB, free: 15.55 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.918e-05/0.7345, allocations: 181.6 kB / 0.9646 GB, free: 15.36 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001306/0.7346, allocations: 106.4 kB / 0.9647 GB, free: 15.25 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001231/0.7348, allocations: 185.6 kB / 0.9649 GB, free: 15.07 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.101e-05/0.7348, allocations: 101 kB / 0.965 GB, free: 14.96 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 7.639e-05/0.7349, allocations: 105.2 kB / 0.9651 GB, free: 14.88 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.4e-07/0.7349, allocations: 0 / 0.9651 GB, free: 14.88 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0004171/0.7353, allocations: 80.14 kB / 0.9652 GB, free: 14.84 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.000785/0.7361, allocations: 390.4 kB / 0.9656 GB, free: 14.6 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0003288/0.7365, allocations: 213.8 kB / 0.9658 GB, free: 14.46 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.7365, allocations: 0.8125 kB / 0.9658 GB, free: 14.46 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 2.224e-06/0.7365, allocations: 64 / 0.9658 GB, free: 14.46 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000429/0.7369, allocations: 0.5372 MB / 0.9663 GB, free: 13.92 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003999/0.7373, allocations: 264.2 kB / 0.9665 GB, free: 13.66 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003732/0.7377, allocations: 0.6868 MB / 0.9672 GB, free: 12.96 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.622e-05/0.7377, allocations: 8.469 kB / 0.9672 GB, free: 12.95 MB / 0.7325 GB Notification: Performance of SimCode: time 6.52e-07/0.7377, allocations: 0.9688 kB / 0.9672 GB, free: 12.95 MB / 0.7325 GB Notification: Performance of Templates: time 0.00495/0.7427, allocations: 2.356 MB / 0.9695 GB, free: 11.77 MB / 0.7325 GB make -j1 -f Buildings_9_Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange.makefile make -j1 -f Buildings_9_Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange.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.ExchangeCalcHelperMain.o OMCppBuildings_9_Buildings.Utilities.IO.Python_3_8.Functions.Examples.ExchangeCalcHelperMain.cpp In file included from OMCppBuildings_9_Buildings.Utilities.IO.Python_3_8.Functions.Examples.ExchangeCalcHelperMain.cpp:28: In file included from ./OMCppBuildings_9_Buildings.Utilities.IO.Python_3_8.Functions.Examples.ExchangeFunctions.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.ExchangeCalcHelperMain.o] Error 1