Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Obsolete.Utilities.IO.Python27.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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 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.Obsolete.Utilities.IO.Python27.Functions.Examples.Exchange,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.Exchange") translateModel(Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.Exchange,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.Exchange") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001655/0.001654, allocations: 106 kB / 15.99 MB, free: 6.352 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.001944/0.001944, allocations: 195.6 kB / 16.91 MB, free: 6.188 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.579/1.579, allocations: 205.1 MB / 222.8 MB, free: 4.684 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.691/1.691, allocations: 292.3 MB / 0.5492 GB, free: 13.64 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001531/0.001531, allocations: 63.75 kB / 0.6717 GB, free: 26.1 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2804/0.282, allocations: 114.6 MB / 0.7835 GB, free: 13.89 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.Exchange): time 0.001884/0.2839, allocations: 0.6064 MB / 0.7841 GB, free: 13.29 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001728/0.2856, allocations: 1.25 MB / 0.7853 GB, free: 12.03 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.249e-05/0.2857, allocations: 0 / 0.7853 GB, free: 12.03 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0001155/0.2858, allocations: 11.98 kB / 0.7854 GB, free: 12.02 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 5.293e-05/0.2859, allocations: 4 kB / 0.7854 GB, free: 12.01 MB / 0.6075 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/Obsolete/Utilities/IO/Python27/Functions/exchange.mo:2:1-109:13:writable] Warning: Pure function ‘Buildings.Obsolete.Utilities.IO.Python27.Functions.exchange‘ contains a call to impure function ‘Modelica.Utilities.System.getEnvironmentVariable‘. Notification: Performance of NFTyping.typeClassSections: time 0.0006547/0.2865, allocations: 267.5 kB / 0.7856 GB, free: 11.75 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001319/0.2867, allocations: 79.86 kB / 0.7857 GB, free: 11.67 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 4.739e-05/0.2867, allocations: 8 kB / 0.7857 GB, free: 11.66 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 4.906e-05/0.2868, allocations: 39.91 kB / 0.7857 GB, free: 11.62 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 5.659e-05/0.2868, allocations: 47.83 kB / 0.7858 GB, free: 11.58 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.775e-05/0.2869, allocations: 0 / 0.7858 GB, free: 11.58 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003798/0.2872, allocations: 211.7 kB / 0.786 GB, free: 11.37 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 2.294e-05/0.2873, allocations: 4 kB / 0.786 GB, free: 11.37 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 5.185e-05/0.2873, allocations: 39.78 kB / 0.786 GB, free: 11.33 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.000245/0.2876, allocations: 195.7 kB / 0.7862 GB, free: 11.14 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.2876, allocations: 0 / 0.7862 GB, free: 11.14 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.613e-06/0.2876, allocations: 0 / 0.7862 GB, free: 11.14 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 5.561e-06/0.2876, allocations: 4 kB / 0.7862 GB, free: 11.13 MB / 0.6075 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.0004738/0.2881, allocations: 449.3 kB / 0.7866 GB, free: 10.64 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.7e-05/0.2881, allocations: 12.03 kB / 0.7867 GB, free: 10.63 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.8e-05/0.2882, allocations: 4.938 kB / 0.7867 GB, free: 10.62 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001341/0.2883, allocations: 180.3 kB / 0.7868 GB, free: 10.41 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.534e-05/0.2884, allocations: 4.375 kB / 0.7868 GB, free: 10.41 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.331e-05/0.2884, allocations: 4.375 kB / 0.7868 GB, free: 10.4 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002438/0.2886, allocations: 129.7 kB / 0.787 GB, free: 10.27 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.808e-06/0.2887, allocations: 3.984 kB / 0.787 GB, free: 10.27 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.968e-05/0.2887, allocations: 4 kB / 0.787 GB, free: 10.26 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.49e-06/0.2887, allocations: 4 kB / 0.787 GB, free: 10.26 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00011/0.2888, allocations: 67.88 kB / 0.787 GB, free: 10.19 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001691/0.289, allocations: 157.6 kB / 0.7872 GB, free: 9.988 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001554/0.2892, allocations: 118.6 kB / 0.7873 GB, free: 9.863 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001227/0.2893, allocations: 100.9 kB / 0.7874 GB, free: 9.762 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 7.904e-06/0.2893, allocations: 0 / 0.7874 GB, free: 9.762 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.974e-05/0.2893, allocations: 46.5 kB / 0.7874 GB, free: 9.707 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=6): time 7.32e-07/0.2893, allocations: 0 / 0.7874 GB, free: 9.707 MB / 0.6075 GB Notification: Performance of matching and sorting (n=6): time 0.0005059/0.2899, allocations: 291 kB / 0.7877 GB, free: 9.41 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.048e-05/0.2899, allocations: 85.11 kB / 0.7878 GB, free: 9.309 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001096/0.29, allocations: 125.8 kB / 0.7879 GB, free: 9.176 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.851e-05/0.2901, allocations: 29.7 kB / 0.788 GB, free: 9.141 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 4.448e-05/0.2901, allocations: 88.08 kB / 0.788 GB, free: 9.051 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 4.325e-05/0.2902, allocations: 15.81 kB / 0.7881 GB, free: 9.035 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.605e-05/0.2903, allocations: 49.72 kB / 0.7881 GB, free: 8.98 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001156/0.2904, allocations: 314.8 kB / 0.7884 GB, free: 8.664 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001053/0.2905, allocations: 63.95 kB / 0.7885 GB, free: 8.602 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.17e-05/0.2906, allocations: 59.94 kB / 0.7885 GB, free: 8.543 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002044/0.2908, allocations: 180.1 kB / 0.7887 GB, free: 8.352 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.916e-06/0.2908, allocations: 3.984 kB / 0.7887 GB, free: 8.348 MB / 0.6075 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0003237/0.2911, allocations: 231.1 kB / 0.7889 GB, free: 8.109 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 4.491e-05/0.2912, allocations: 45.69 kB / 0.789 GB, free: 8.059 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.45e-06/0.2912, allocations: 0 / 0.789 GB, free: 8.059 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.238e-05/0.2912, allocations: 8.062 kB / 0.789 GB, free: 8.051 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.41e-07/0.2912, allocations: 0 / 0.789 GB, free: 8.051 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.53e-06/0.2912, allocations: 0 / 0.789 GB, free: 8.051 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003295/0.2916, allocations: 27.81 kB / 0.789 GB, free: 8.023 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.675e-05/0.2916, allocations: 12 kB / 0.789 GB, free: 8.012 MB / 0.6075 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.0001415/0.2918, allocations: 164.6 kB / 0.7892 GB, free: 7.836 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.781e-05/0.2918, allocations: 11.94 kB / 0.7892 GB, free: 7.824 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.711e-05/0.2918, allocations: 8.359 kB / 0.7892 GB, free: 7.816 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.737e-06/0.2918, allocations: 8 kB / 0.7892 GB, free: 7.809 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.119e-06/0.2919, allocations: 0 / 0.7892 GB, free: 7.809 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.435e-06/0.2919, allocations: 256 / 0.7892 GB, free: 7.809 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001265/0.292, allocations: 173.9 kB / 0.7894 GB, free: 7.59 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.395e-06/0.292, allocations: 4 kB / 0.7894 GB, free: 7.586 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.954e-06/0.292, allocations: 7.938 kB / 0.7894 GB, free: 7.578 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.132e-06/0.292, allocations: 0 / 0.7894 GB, free: 7.578 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.557e-05/0.292, allocations: 15.92 kB / 0.7894 GB, free: 7.562 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.02e-07/0.2921, allocations: 3.938 kB / 0.7894 GB, free: 7.559 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.2921, allocations: 0 / 0.7894 GB, free: 7.559 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003928/0.2925, allocations: 290.6 kB / 0.7897 GB, free: 7.25 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 3.682e-05/0.2925, allocations: 85.05 kB / 0.7897 GB, free: 7.148 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.495e-05/0.2925, allocations: 4 kB / 0.7897 GB, free: 7.145 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001964/0.2927, allocations: 19.97 kB / 0.7898 GB, free: 7.125 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.501e-05/0.2928, allocations: 4 kB / 0.7898 GB, free: 7.121 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.654e-05/0.2928, allocations: 19.98 kB / 0.7898 GB, free: 7.102 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 6.221e-05/0.2929, allocations: 95.27 kB / 0.7899 GB, free: 7.008 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2929, allocations: 7.969 kB / 0.7899 GB, free: 7 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0003542/0.2932, allocations: 87.97 kB / 0.79 GB, free: 6.914 MB / 0.6075 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.0009051/0.2942, allocations: 402.5 kB / 0.7904 GB, free: 6.613 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0003743/0.2945, allocations: 287.2 kB / 0.7906 GB, free: 6.32 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.315e-06/0.2945, allocations: 0 / 0.7906 GB, free: 6.32 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001953/0.2947, allocations: 215.3 kB / 0.7908 GB, free: 6.098 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001659/0.2949, allocations: 19.16 kB / 0.7909 GB, free: 6.082 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005697/0.2955, allocations: 342.3 kB / 0.7912 GB, free: 5.715 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002462/0.2958, allocations: 0.6807 MB / 0.7918 GB, free: 5.008 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.383e-05/0.2958, allocations: 7.438 kB / 0.7919 GB, free: 5 MB / 0.6075 GB Notification: Performance of SimCode: time 2.5e-07/0.2958, allocations: 0 / 0.7919 GB, free: 5 MB / 0.6075 GB Notification: Performance of Templates: time 0.00518/0.301, allocations: 3.31 MB / 0.7951 GB, free: 1.707 MB / 0.6075 GB make -j1 -f Buildings_8_Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.Exchange.makefile make -j1 -f Buildings_8_Buildings.Obsolete.Utilities.IO.Python27.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/Buildings 8.1.4-maint.8.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/Buildings 8.1.4-maint.8.1.x/Resources/C-Sources" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppBuildings_8_Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.ExchangeCalcHelperMain.o OMCppBuildings_8_Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.ExchangeCalcHelperMain.cpp In file included from OMCppBuildings_8_Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.ExchangeCalcHelperMain.cpp:28: In file included from ./OMCppBuildings_8_Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.ExchangeFunctions.cpp:5: /home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/Resources/C-Sources/pythonWrapper.c:35:3: error: use of undeclared identifier 'pythonExchangeValuesNoModelica' pythonExchangeValuesNoModelica( ^ 1 error generated. make: *** [: OMCppBuildings_8_Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.ExchangeCalcHelperMain.o] Error 1