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.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.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.001404/0.001404, allocations: 104.8 kB / 16.27 MB, free: 5.977 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.001407/0.001407, allocations: 189 kB / 17.2 MB, free: 5.602 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.336/1.336, allocations: 222.9 MB / 240.9 MB, free: 15.27 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.325/2.325, allocations: 390.3 MB / 0.6653 GB, free: 0.75 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001349/0.001349, allocations: 64.55 kB / 0.8132 GB, free: 32.99 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3159/0.3173, 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.Exchange): time 0.003292/0.3207, allocations: 0.5517 MB / 0.9508 GB, free: 8.359 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.002462/0.3232, allocations: 1.189 MB / 0.952 GB, free: 7.164 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.179e-05/0.3232, allocations: 0 / 0.952 GB, free: 7.164 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.000148/0.3235, allocations: 11.94 kB / 0.952 GB, free: 7.152 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 7.384e-05/0.3236, allocations: 0 / 0.952 GB, free: 7.152 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.001144/0.3247, allocations: 283.2 kB / 0.9523 GB, free: 6.875 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0002232/0.3249, allocations: 71.88 kB / 0.9523 GB, free: 6.805 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 7.646e-05/0.325, allocations: 4 kB / 0.9523 GB, free: 6.801 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 8.145e-05/0.3251, allocations: 39.91 kB / 0.9524 GB, free: 6.762 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 7.144e-05/0.3252, allocations: 31.91 kB / 0.9524 GB, free: 6.73 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 3.123e-05/0.3252, allocations: 4 kB / 0.9524 GB, free: 6.727 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006202/0.3259, allocations: 187.6 kB / 0.9526 GB, free: 6.543 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 4.778e-05/0.3259, allocations: 19.92 kB / 0.9526 GB, free: 6.523 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 7.622e-05/0.326, allocations: 27.86 kB / 0.9526 GB, free: 6.496 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0006183/0.3266, allocations: 255.5 kB / 0.9529 GB, free: 6.246 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 5.12e-06/0.3266, allocations: 0 / 0.9529 GB, free: 6.246 MB / 0.7325 GB Notification: Performance of FrontEnd: time 2.474e-06/0.3266, allocations: 0 / 0.9529 GB, free: 6.246 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 1.339e-05/0.3267, allocations: 0 / 0.9529 GB, free: 6.246 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.0006747/0.3273, allocations: 449.3 kB / 0.9533 GB, free: 5.754 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.623e-05/0.3274, allocations: 8.031 kB / 0.9533 GB, free: 5.746 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001322/0.3275, allocations: 84.12 kB / 0.9534 GB, free: 5.664 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000237/0.3278, allocations: 255.6 kB / 0.9536 GB, free: 5.375 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.148e-05/0.3279, allocations: 162.9 kB / 0.9538 GB, free: 5.215 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.154e-05/0.328, allocations: 158.9 kB / 0.9539 GB, free: 5.059 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.558e-05/0.3281, allocations: 109.1 kB / 0.954 GB, free: 4.945 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.765e-05/0.3281, allocations: 75.28 kB / 0.9541 GB, free: 4.871 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.291e-05/0.3282, allocations: 150.6 kB / 0.9543 GB, free: 4.723 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.158e-05/0.3282, allocations: 154.6 kB / 0.9544 GB, free: 4.57 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.322e-05/0.3283, allocations: 150.6 kB / 0.9545 GB, free: 4.422 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000377/0.3287, allocations: 473.8 kB / 0.955 GB, free: 3.91 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 9.677e-05/0.3288, allocations: 169.1 kB / 0.9552 GB, free: 3.734 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.091e-05/0.3288, allocations: 88.14 kB / 0.9552 GB, free: 3.645 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 3.695e-05/0.3289, allocations: 75.28 kB / 0.9553 GB, free: 3.57 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.038e-05/0.3289, allocations: 117.8 kB / 0.9554 GB, free: 3.445 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=0): time 1.793e-06/0.3289, allocations: 0 / 0.9554 GB, free: 3.445 MB / 0.7325 GB Notification: Performance of matching and sorting (n=0): time 0.0001243/0.3291, allocations: 33.64 kB / 0.9555 GB, free: 3.406 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.378e-05/0.3292, allocations: 130.7 kB / 0.9556 GB, free: 3.266 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001998/0.3294, allocations: 141.7 kB / 0.9557 GB, free: 3.117 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 3.411e-05/0.3294, allocations: 33.7 kB / 0.9558 GB, free: 3.078 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 8.421e-05/0.3295, allocations: 96.06 kB / 0.9558 GB, free: 2.98 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 3.617e-06/0.3295, allocations: 0 / 0.9558 GB, free: 2.98 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.607e-05/0.3296, allocations: 41.69 kB / 0.9559 GB, free: 2.934 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001237/0.3298, allocations: 318.8 kB / 0.9562 GB, free: 2.613 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001387/0.3299, allocations: 59.94 kB / 0.9562 GB, free: 2.555 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001055/0.33, allocations: 55.95 kB / 0.9563 GB, free: 2.5 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001544/0.3302, allocations: 98.52 kB / 0.9564 GB, free: 2.395 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.3302, allocations: 4.031 kB / 0.9564 GB, free: 2.391 MB / 0.7325 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0004503/0.3306, allocations: 235.1 kB / 0.9566 GB, free: 2.148 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 6.75e-05/0.3307, allocations: 45.69 kB / 0.9567 GB, free: 2.098 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.416e-06/0.3307, allocations: 4 kB / 0.9567 GB, free: 2.094 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.539e-05/0.3308, allocations: 0 / 0.9567 GB, free: 2.094 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.493e-06/0.3308, allocations: 0 / 0.9567 GB, free: 2.094 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.664e-06/0.3308, allocations: 3.984 kB / 0.9567 GB, free: 2.09 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003435/0.3311, allocations: 27.83 kB / 0.9567 GB, free: 2.062 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.346e-05/0.3312, allocations: 11.98 kB / 0.9567 GB, free: 2.051 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: 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.0001595/0.3313, allocations: 205.1 kB / 0.9569 GB, free: 1.84 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.042e-05/0.3314, allocations: 108.8 kB / 0.957 GB, free: 1.727 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.698e-05/0.3315, allocations: 116.3 kB / 0.9571 GB, free: 1.602 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.132e-05/0.3316, allocations: 180.3 kB / 0.9573 GB, free: 1.418 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001019/0.3317, allocations: 184.2 kB / 0.9575 GB, free: 1.23 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.719e-05/0.3318, allocations: 188.3 kB / 0.9576 GB, free: 1.039 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002785/0.3321, allocations: 409.3 kB / 0.958 GB, free: 0.582 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.538e-05/0.3321, allocations: 108.9 kB / 0.9581 GB, free: 480 kB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.162e-05/0.3322, allocations: 104.9 kB / 0.9582 GB, free: 368 kB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.412e-05/0.3322, allocations: 180.2 kB / 0.9584 GB, free: 180 kB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.106e-05/0.3323, allocations: 180.2 kB / 0.9586 GB, free: 15.99 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.136e-05/0.3324, allocations: 188.3 kB / 0.9588 GB, free: 15.8 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.462e-05/0.3325, allocations: 184.2 kB / 0.9589 GB, free: 15.61 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000194/0.3327, allocations: 307.7 kB / 0.9592 GB, free: 15.29 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001149/0.3328, allocations: 194 kB / 0.9594 GB, free: 15.07 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001001/0.3329, allocations: 180.3 kB / 0.9596 GB, free: 14.89 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.584e-05/0.333, allocations: 104.9 kB / 0.9597 GB, free: 14.78 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.095e-05/0.3331, allocations: 180.3 kB / 0.9599 GB, free: 14.6 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.9e-05/0.3332, allocations: 108.9 kB / 0.96 GB, free: 14.48 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 8.262e-05/0.3333, allocations: 105.7 kB / 0.9601 GB, free: 14.38 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3333, allocations: 0 / 0.9601 GB, free: 14.38 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0004171/0.3337, allocations: 67.98 kB / 0.9601 GB, free: 14.32 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.0009426/0.3347, allocations: 409.4 kB / 0.9605 GB, free: 13.98 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0003517/0.335, allocations: 211.3 kB / 0.9607 GB, free: 13.77 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 3.476e-06/0.335, allocations: 4 kB / 0.9607 GB, free: 13.76 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 3.467e-06/0.335, allocations: 0 / 0.9607 GB, free: 13.76 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004737/0.3355, allocations: 457.6 kB / 0.9612 GB, free: 13.31 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004591/0.336, allocations: 262.1 kB / 0.9614 GB, free: 13.02 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002998/0.3363, allocations: 0.6805 MB / 0.9621 GB, free: 12.32 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.269e-05/0.3363, allocations: 11.44 kB / 0.9621 GB, free: 12.3 MB / 0.7481 GB Notification: Performance of SimCode: time 3.4e-07/0.3363, allocations: 0 / 0.9621 GB, free: 12.3 MB / 0.7481 GB Notification: Performance of Templates: time 0.005499/0.3419, allocations: 2.361 MB / 0.9644 GB, free: 9.953 MB / 0.7481 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++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.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.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.ExchangeCalcHelperMain.o] Error 1