Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Utilities.IO.Python36.Functions.Examples.Exchange.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Utilities.IO.Python36.Functions.Examples.Exchange,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Utilities.IO.Python36.Functions.Examples.Exchange") translateModel(Buildings.Utilities.IO.Python36.Functions.Examples.Exchange,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Utilities.IO.Python36.Functions.Examples.Exchange") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.386/1.386, allocations: 252 MB / 268 MB, free: 10.86 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001078/0.001078, allocations: 174.2 kB / 327.6 MB, free: 2.098 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.824/1.824, allocations: 205.4 MB / 0.5786 GB, free: 20.16 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007916/0.0007917, allocations: 86.36 kB / 0.6832 GB, free: 12.78 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0004184/0.0004187, allocations: 12.3 kB / 0.7976 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2743/0.2748, allocations: 106.3 MB / 0.9015 GB, free: 63.49 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python36.Functions.Examples.Exchange): time 0.001031/0.2759, allocations: 286.8 kB / 0.9017 GB, free: 63.21 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.001855/0.2777, allocations: 1.257 MB / 0.903 GB, free: 61.95 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.129e-05/0.2778, allocations: 4 kB / 0.903 GB, free: 61.94 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0001278/0.2779, allocations: 7.984 kB / 0.903 GB, free: 61.93 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 6.37e-05/0.278, allocations: 0 / 0.903 GB, free: 61.93 MB / 0.6042 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/Utilities/IO/Python36/Functions/exchange.mo:2:1-113:13:writable] Warning: Pure function ‘Buildings.Utilities.IO.Python36.Functions.exchange‘ contains a call to impure function ‘Modelica.Utilities.System.getEnvironmentVariable‘. Notification: Performance of NFTyping.typeClassSections: time 0.0005983/0.2786, allocations: 267.4 kB / 0.9032 GB, free: 61.67 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0001064/0.2787, allocations: 63.94 kB / 0.9033 GB, free: 61.61 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 5.381e-05/0.2788, allocations: 8 kB / 0.9033 GB, free: 61.6 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 4.462e-05/0.2788, allocations: 47.83 kB / 0.9033 GB, free: 61.55 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 5.484e-05/0.2789, allocations: 39.84 kB / 0.9034 GB, free: 61.52 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 4.053e-05/0.2789, allocations: 4 kB / 0.9034 GB, free: 61.51 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003901/0.2793, allocations: 207.7 kB / 0.9036 GB, free: 61.31 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 2.515e-05/0.2794, allocations: 7.938 kB / 0.9036 GB, free: 61.3 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 7.542e-05/0.2794, allocations: 57.55 kB / 0.9036 GB, free: 61.24 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0002331/0.2797, allocations: 195.7 kB / 0.9038 GB, free: 61.05 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 6.392e-06/0.2797, allocations: 3.984 kB / 0.9038 GB, free: 61.04 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.954e-06/0.2797, allocations: 4 kB / 0.9038 GB, free: 61.04 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 4.709e-06/0.2797, allocations: 0 / 0.9038 GB, free: 61.04 MB / 0.6042 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0003898/0.2801, allocations: 421.1 kB / 0.9042 GB, free: 60.57 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.566e-05/0.2802, allocations: 8.031 kB / 0.9043 GB, free: 60.57 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.464e-05/0.2802, allocations: 12.84 kB / 0.9043 GB, free: 60.55 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001392/0.2804, allocations: 176.4 kB / 0.9044 GB, free: 60.34 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.45e-05/0.2804, allocations: 384 / 0.9044 GB, free: 60.34 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.624e-05/0.2804, allocations: 8.375 kB / 0.9044 GB, free: 60.34 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002248/0.2807, allocations: 121.7 kB / 0.9046 GB, free: 60.21 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.165e-06/0.2807, allocations: 7.938 kB / 0.9046 GB, free: 60.2 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.168e-05/0.2807, allocations: 7.984 kB / 0.9046 GB, free: 60.2 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.019e-06/0.2807, allocations: 0 / 0.9046 GB, free: 60.2 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.861e-05/0.2808, allocations: 59.95 kB / 0.9046 GB, free: 60.14 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001427/0.281, allocations: 161.9 kB / 0.9048 GB, free: 59.93 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001242/0.2811, allocations: 114.6 kB / 0.9049 GB, free: 59.81 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001071/0.2812, allocations: 100.9 kB / 0.905 GB, free: 59.71 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 9.227e-06/0.2812, allocations: 0 / 0.905 GB, free: 59.71 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.11e-05/0.2813, allocations: 38.5 kB / 0.905 GB, free: 59.66 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=6): time 2.054e-06/0.2813, allocations: 0 / 0.905 GB, free: 59.66 MB / 0.6042 GB Notification: Performance of matching and sorting (n=6): time 0.0004579/0.2817, allocations: 299 kB / 0.9053 GB, free: 59.36 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.243e-05/0.2818, allocations: 89.09 kB / 0.9054 GB, free: 59.25 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.713e-05/0.2819, allocations: 125.7 kB / 0.9055 GB, free: 59.12 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 2.02e-05/0.2819, allocations: 29.7 kB / 0.9055 GB, free: 59.08 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 2.691e-05/0.2819, allocations: 88.12 kB / 0.9056 GB, free: 58.99 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 3.746e-05/0.282, allocations: 15.78 kB / 0.9056 GB, free: 58.98 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.421e-05/0.282, allocations: 8 kB / 0.9056 GB, free: 58.97 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 5.315e-05/0.2821, allocations: 314.8 kB / 0.9059 GB, free: 58.65 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.968e-05/0.2821, allocations: 63.94 kB / 0.906 GB, free: 58.59 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.772e-05/0.2822, allocations: 64.12 kB / 0.9061 GB, free: 58.53 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001687/0.2824, allocations: 184.2 kB / 0.9062 GB, free: 58.33 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.472e-06/0.2824, allocations: 0 / 0.9062 GB, free: 58.33 MB / 0.6042 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002596/0.2827, allocations: 235.2 kB / 0.9065 GB, free: 58.09 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 3.574e-05/0.2827, allocations: 41.69 kB / 0.9065 GB, free: 58.04 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.977e-06/0.2827, allocations: 64 / 0.9065 GB, free: 58.04 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.208e-05/0.2828, allocations: 4 kB / 0.9065 GB, free: 58.04 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.783e-06/0.2828, allocations: 0 / 0.9065 GB, free: 58.04 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.961e-06/0.2828, allocations: 3.938 kB / 0.9065 GB, free: 58.04 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003342/0.2831, allocations: 27.88 kB / 0.9065 GB, free: 58.01 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.697e-05/0.2832, allocations: 12 kB / 0.9066 GB, free: 58 MB / 0.6042 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 (yI1[1],yI2[1],yI2[2]) * 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.0001134/0.2833, allocations: 163.5 kB / 0.9067 GB, free: 57.82 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.733e-05/0.2833, allocations: 19.83 kB / 0.9067 GB, free: 57.8 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.671e-05/0.2833, allocations: 8.375 kB / 0.9067 GB, free: 57.79 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.314e-06/0.2833, allocations: 7.984 kB / 0.9067 GB, free: 57.79 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.807e-06/0.2833, allocations: 0 / 0.9067 GB, free: 57.79 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.705e-06/0.2834, allocations: 0 / 0.9067 GB, free: 57.79 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.43e-05/0.2835, allocations: 169.6 kB / 0.9069 GB, free: 57.57 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.512e-06/0.2835, allocations: 7.922 kB / 0.9069 GB, free: 57.56 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.613e-06/0.2835, allocations: 3.938 kB / 0.9069 GB, free: 57.56 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.363e-06/0.2835, allocations: 0 / 0.9069 GB, free: 57.56 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.28e-05/0.2835, allocations: 12 kB / 0.9069 GB, free: 57.55 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.02e-07/0.2835, allocations: 0 / 0.9069 GB, free: 57.55 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.2835, allocations: 3.984 kB / 0.9069 GB, free: 57.54 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003315/0.2839, allocations: 294.6 kB / 0.9072 GB, free: 57.23 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 2.745e-05/0.2839, allocations: 92.88 kB / 0.9073 GB, free: 57.12 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.195e-05/0.2839, allocations: 4 kB / 0.9073 GB, free: 57.12 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002011/0.2841, allocations: 31.97 kB / 0.9073 GB, free: 57.09 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.377e-05/0.2842, allocations: 4 kB / 0.9073 GB, free: 57.08 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.583e-05/0.2842, allocations: 15.98 kB / 0.9074 GB, free: 57.07 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 4.056e-05/0.2843, allocations: 95.58 kB / 0.9075 GB, free: 56.97 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2843, allocations: 4.031 kB / 0.9075 GB, free: 56.97 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0003063/0.2846, allocations: 91.92 kB / 0.9075 GB, free: 56.88 MB / 0.6042 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 (yI1[1],yI2[1],yI2[2]) * Number of discrete states: 3 (yI2[2],yI2[1],yI1[1]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (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 Backend phase and start with SimCode phase: time 0.00084/0.2854, allocations: 385.9 kB / 0.9079 GB, free: 56.59 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0003351/0.2858, allocations: 291.2 kB / 0.9082 GB, free: 56.3 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.2858, allocations: 0 / 0.9082 GB, free: 56.3 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0001637/0.286, allocations: 203.3 kB / 0.9084 GB, free: 56.09 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001874/0.2861, allocations: 27.94 kB / 0.9084 GB, free: 56.06 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007251/0.2869, allocations: 339.6 kB / 0.9087 GB, free: 55.7 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000288/0.2872, allocations: 0.6809 MB / 0.9094 GB, free: 54.99 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.86e-05/0.2872, allocations: 7.438 kB / 0.9094 GB, free: 54.98 MB / 0.6042 GB Notification: Performance of SimCode: time 2.4e-07/0.2872, allocations: 3.938 kB / 0.9094 GB, free: 54.98 MB / 0.6042 GB Notification: Performance of Templates: time 0.005363/0.2926, allocations: 3.233 MB / 0.9126 GB, free: 51.76 MB / 0.6042 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Utilities.IO.Python36.Functions.Examples.Exchange.makefile make -j1 -f Buildings_maint.7.0.x_Buildings.Utilities.IO.Python36.Functions.Examples.Exchange.makefile clang++ -std=c++14 -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 7.0.3-maint.7.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/Buildings 7.0.3-maint.7.0.x/Resources/C-Sources" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppBuildings_maint.7.0.x_Buildings.Utilities.IO.Python36.Functions.Examples.ExchangeCalcHelperMain.o OMCppBuildings_maint.7.0.x_Buildings.Utilities.IO.Python36.Functions.Examples.ExchangeCalcHelperMain.cpp In file included from OMCppBuildings_maint.7.0.x_Buildings.Utilities.IO.Python36.Functions.Examples.ExchangeCalcHelperMain.cpp:28: In file included from ./OMCppBuildings_maint.7.0.x_Buildings.Utilities.IO.Python36.Functions.Examples.ExchangeFunctions.cpp:5: /home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/Resources/C-Sources/pythonWrapper.c:35:3: error: use of undeclared identifier 'pythonExchangeValuesNoModelica' pythonExchangeValuesNoModelica( ^ 1 error generated. make: *** [: OMCppBuildings_maint.7.0.x_Buildings.Utilities.IO.Python36.Functions.Examples.ExchangeCalcHelperMain.o] Error 1