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.361/1.361, allocations: 251.5 MB / 267.4 MB, free: 11.05 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.0009305/0.0009305, allocations: 178.3 kB / 326.5 MB, free: 2.691 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.932/1.932, allocations: 205 MB / 0.5766 GB, free: 21 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.0008434/0.0008435, allocations: 93.17 kB / 0.6804 GB, free: 14.7 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003717/0.0003717, allocations: 8.812 kB / 0.7938 GB, free: 136.6 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2877/0.2881, allocations: 105.4 MB / 0.8967 GB, free: 68.16 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python36.Functions.Examples.Exchange): time 0.000917/0.2891, allocations: 282.4 kB / 0.897 GB, free: 67.89 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.001698/0.2908, allocations: 1.282 MB / 0.8983 GB, free: 66.6 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.122e-05/0.2908, allocations: 4 kB / 0.8983 GB, free: 66.59 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0001195/0.291, allocations: 3.938 kB / 0.8983 GB, free: 66.59 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 5.05e-05/0.291, allocations: 0 / 0.8983 GB, free: 66.59 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.0005376/0.2916, allocations: 279.3 kB / 0.8985 GB, free: 66.32 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0001006/0.2917, allocations: 75.86 kB / 0.8986 GB, free: 66.24 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 4.885e-05/0.2917, allocations: 7.938 kB / 0.8986 GB, free: 66.23 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 4.218e-05/0.2918, allocations: 31.92 kB / 0.8987 GB, free: 66.2 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 5.272e-05/0.2918, allocations: 43.89 kB / 0.8987 GB, free: 66.16 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 2.092e-05/0.2919, allocations: 0 / 0.8987 GB, free: 66.16 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003722/0.2922, allocations: 215.6 kB / 0.8989 GB, free: 65.95 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 2.448e-05/0.2923, allocations: 11.92 kB / 0.8989 GB, free: 65.94 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 5.635e-05/0.2923, allocations: 23.92 kB / 0.8989 GB, free: 65.91 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.000236/0.2926, allocations: 199.7 kB / 0.8991 GB, free: 65.72 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 4.959e-06/0.2926, allocations: 4 kB / 0.8991 GB, free: 65.71 MB / 0.6042 GB Notification: Performance of FrontEnd: time 2.315e-06/0.2926, allocations: 0 / 0.8991 GB, free: 65.71 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 5.3e-06/0.2926, allocations: 0 / 0.8991 GB, free: 65.71 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.0003592/0.293, allocations: 417.1 kB / 0.8995 GB, free: 65.25 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.038e-05/0.293, allocations: 12.03 kB / 0.8995 GB, free: 65.24 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.401e-05/0.2931, allocations: 8.844 kB / 0.8995 GB, free: 65.23 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001156/0.2932, allocations: 176.4 kB / 0.8997 GB, free: 65.02 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.607e-05/0.2932, allocations: 4.375 kB / 0.8997 GB, free: 65.02 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.438e-05/0.2933, allocations: 8.375 kB / 0.8997 GB, free: 65.01 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002027/0.2935, allocations: 129.6 kB / 0.8999 GB, free: 64.88 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.797e-06/0.2935, allocations: 0 / 0.8999 GB, free: 64.88 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.764e-05/0.2935, allocations: 3.938 kB / 0.8999 GB, free: 64.88 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.801e-06/0.2935, allocations: 4 kB / 0.8999 GB, free: 64.87 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.061e-05/0.2936, allocations: 59.94 kB / 0.8999 GB, free: 64.81 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001298/0.2938, allocations: 161.7 kB / 0.9001 GB, free: 64.61 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001355/0.2939, allocations: 114.6 kB / 0.9002 GB, free: 64.48 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000104/0.294, allocations: 108.8 kB / 0.9003 GB, free: 64.38 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 8.266e-06/0.294, allocations: 0 / 0.9003 GB, free: 64.38 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.238e-05/0.2941, allocations: 42.5 kB / 0.9003 GB, free: 64.32 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=6): time 1.533e-06/0.2941, allocations: 3.984 kB / 0.9003 GB, free: 64.32 MB / 0.6042 GB Notification: Performance of matching and sorting (n=6): time 0.0004111/0.2945, allocations: 287.1 kB / 0.9006 GB, free: 64.03 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.088e-05/0.2945, allocations: 93.09 kB / 0.9007 GB, free: 63.92 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.055e-05/0.2946, allocations: 125.6 kB / 0.9008 GB, free: 63.79 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 1.774e-05/0.2946, allocations: 33.73 kB / 0.9008 GB, free: 63.75 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 2.229e-05/0.2947, allocations: 84.14 kB / 0.9009 GB, free: 63.66 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 3.71e-05/0.2947, allocations: 23.78 kB / 0.9009 GB, free: 63.64 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.303e-05/0.2948, allocations: 17.72 kB / 0.901 GB, free: 63.61 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 5.322e-05/0.2948, allocations: 314.8 kB / 0.9013 GB, free: 63.3 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.788e-05/0.2949, allocations: 67.94 kB / 0.9013 GB, free: 63.23 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.363e-05/0.295, allocations: 59.94 kB / 0.9014 GB, free: 63.17 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000161/0.2951, allocations: 176.2 kB / 0.9016 GB, free: 62.98 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.923e-06/0.2952, allocations: 0 / 0.9016 GB, free: 62.98 MB / 0.6042 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002682/0.2954, allocations: 235.2 kB / 0.9018 GB, free: 62.74 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 4.176e-05/0.2955, allocations: 45.69 kB / 0.9018 GB, free: 62.69 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.722e-06/0.2955, allocations: 4 kB / 0.9018 GB, free: 62.69 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.237e-05/0.2955, allocations: 0 / 0.9018 GB, free: 62.69 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.082e-06/0.2955, allocations: 0 / 0.9018 GB, free: 62.69 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.931e-06/0.2955, allocations: 0 / 0.9018 GB, free: 62.69 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000287/0.2958, allocations: 23.83 kB / 0.9018 GB, free: 62.66 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.673e-05/0.2959, allocations: 19.92 kB / 0.9019 GB, free: 62.64 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 (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.0001188/0.296, allocations: 167.5 kB / 0.902 GB, free: 62.46 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.438e-05/0.296, allocations: 15.84 kB / 0.902 GB, free: 62.45 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.262e-05/0.296, allocations: 8.375 kB / 0.902 GB, free: 62.44 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.152e-06/0.2961, allocations: 0 / 0.902 GB, free: 62.44 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/0.2961, allocations: 0 / 0.902 GB, free: 62.44 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.236e-06/0.2961, allocations: 7.922 kB / 0.9021 GB, free: 62.43 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.22e-05/0.2962, allocations: 169.7 kB / 0.9022 GB, free: 62.22 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.2962, allocations: 0 / 0.9022 GB, free: 62.22 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.484e-06/0.2962, allocations: 7.922 kB / 0.9022 GB, free: 62.21 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.413e-06/0.2962, allocations: 0 / 0.9022 GB, free: 62.21 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.044e-05/0.2962, allocations: 8.25 kB / 0.9022 GB, free: 62.2 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.904e-06/0.2962, allocations: 8 kB / 0.9022 GB, free: 62.2 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.2962, allocations: 0 / 0.9022 GB, free: 62.2 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003224/0.2966, allocations: 294.6 kB / 0.9025 GB, free: 61.88 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 2.223e-05/0.2966, allocations: 81.05 kB / 0.9026 GB, free: 61.79 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.224e-05/0.2966, allocations: 4 kB / 0.9026 GB, free: 61.78 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000179/0.2968, allocations: 19.97 kB / 0.9026 GB, free: 61.76 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.335e-05/0.2968, allocations: 11.94 kB / 0.9026 GB, free: 61.75 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.433e-05/0.2969, allocations: 24.02 kB / 0.9027 GB, free: 61.73 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 4.239e-05/0.2969, allocations: 95.58 kB / 0.9027 GB, free: 61.63 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2969, allocations: 0 / 0.9027 GB, free: 61.63 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0002972/0.2972, allocations: 95.89 kB / 0.9028 GB, free: 61.54 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.0008694/0.2981, allocations: 386.6 kB / 0.9032 GB, free: 61.25 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0003146/0.2984, allocations: 287.2 kB / 0.9035 GB, free: 60.96 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.2984, allocations: 4.062 kB / 0.9035 GB, free: 60.96 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0001666/0.2986, allocations: 211.3 kB / 0.9037 GB, free: 60.74 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001604/0.2988, allocations: 19.88 kB / 0.9037 GB, free: 60.72 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005513/0.2993, allocations: 344.2 kB / 0.904 GB, free: 60.35 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001782/0.2995, allocations: 0.6809 MB / 0.9047 GB, free: 59.64 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.477e-05/0.2996, allocations: 7.438 kB / 0.9047 GB, free: 59.63 MB / 0.6042 GB Notification: Performance of SimCode: time 2.1e-07/0.2996, allocations: 4.062 kB / 0.9047 GB, free: 59.63 MB / 0.6042 GB Notification: Performance of Templates: time 0.004508/0.3041, allocations: 3.235 MB / 0.9079 GB, free: 56.41 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