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.001498/0.001498, allocations: 103.5 kB / 16.37 MB, free: 6.473 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.00145/0.00145, allocations: 188.5 kB / 17.31 MB, free: 5.824 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.532/1.532, allocations: 205.1 MB / 223.2 MB, free: 12.27 MB / 190.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.797/1.797, allocations: 292.3 MB / 0.5496 GB, free: 17.45 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.001568/0.001568, allocations: 67.89 kB / 0.6729 GB, free: 5.859 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2556/0.2572, allocations: 114.6 MB / 0.7848 GB, free: 3.188 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.Exchange): time 0.002447/0.2597, allocations: 0.5531 MB / 0.7853 GB, free: 2.633 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.002099/0.2619, allocations: 1.265 MB / 0.7866 GB, free: 1.359 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.327e-05/0.2619, allocations: 0 / 0.7866 GB, free: 1.359 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 0.0001198/0.262, allocations: 15.92 kB / 0.7866 GB, free: 1.344 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 5.359e-05/0.2621, allocations: 0 / 0.7866 GB, free: 1.344 MB / 0.6544 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:216:3-259:11:writable] Warning: Pure function 'Modelica.Utilities.Strings.find' contains a call to impure function 'Modelica.Utilities.Strings.length'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:310:3-383:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.replace' contains a call to impure function 'Modelica.Utilities.Strings.length'. [/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.Strings.replace'. Notification: Performance of NFTyping.typeClassSections: time 0.0008437/0.263, allocations: 291.2 kB / 0.7869 GB, free: 1.059 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.0001487/0.2631, allocations: 79.86 kB / 0.787 GB, free: 0.9805 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 5.427e-05/0.2632, allocations: 0 / 0.787 GB, free: 0.9805 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 5.211e-05/0.2633, allocations: 43.89 kB / 0.787 GB, free: 0.9375 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 9.851e-05/0.2634, allocations: 39.91 kB / 0.787 GB, free: 0.8984 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 2.597e-05/0.2634, allocations: 8 kB / 0.787 GB, free: 0.8906 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004201/0.2638, allocations: 235.6 kB / 0.7873 GB, free: 0.6602 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 2.704e-05/0.2639, allocations: 7.922 kB / 0.7873 GB, free: 0.6523 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 6.17e-05/0.2639, allocations: 27.86 kB / 0.7873 GB, free: 0.625 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0003741/0.2643, allocations: 275.5 kB / 0.7876 GB, free: 364 kB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 5.57e-06/0.2643, allocations: 0 / 0.7876 GB, free: 364 kB / 0.6544 GB Notification: Performance of FrontEnd: time 5.24e-06/0.2643, allocations: 0 / 0.7876 GB, free: 364 kB / 0.6544 GB Notification: Performance of Transformations before backend: time 6.492e-06/0.2643, allocations: 7.875 kB / 0.7876 GB, free: 356 kB / 0.6544 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.4974/0.7618, allocations: 440.5 kB / 0.788 GB, free: 48.72 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 4.625e-05/0.7619, allocations: 9.906 kB / 0.788 GB, free: 48.72 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.315e-05/0.7619, allocations: 9.688 kB / 0.788 GB, free: 48.72 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001282/0.7621, allocations: 181.3 kB / 0.7882 GB, free: 48.52 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.255e-05/0.7621, allocations: 1.062 kB / 0.7882 GB, free: 48.52 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.936e-05/0.7621, allocations: 18.42 kB / 0.7882 GB, free: 48.52 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002284/0.7624, allocations: 120.1 kB / 0.7883 GB, free: 48.49 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.328e-06/0.7624, allocations: 0 / 0.7883 GB, free: 48.49 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.072e-05/0.7624, allocations: 6.844 kB / 0.7883 GB, free: 48.49 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.7e-06/0.7624, allocations: 0 / 0.7883 GB, free: 48.49 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001038/0.7625, allocations: 62.8 kB / 0.7884 GB, free: 48.49 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001447/0.7627, allocations: 157.9 kB / 0.7885 GB, free: 48.3 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001474/0.7628, allocations: 115.4 kB / 0.7886 GB, free: 48.28 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001096/0.763, allocations: 104.4 kB / 0.7887 GB, free: 48.27 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 6.412e-06/0.763, allocations: 1.594 kB / 0.7887 GB, free: 48.27 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.989e-05/0.763, allocations: 34.16 kB / 0.7888 GB, free: 48.23 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=6): time 1.153e-06/0.763, allocations: 2.75 kB / 0.7888 GB, free: 48.23 MB / 0.6544 GB Notification: Performance of matching and sorting (n=6): time 0.0005175/0.7635, allocations: 298.2 kB / 0.7891 GB, free: 48.16 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.52e-05/0.7636, allocations: 92.11 kB / 0.7891 GB, free: 48.07 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.164e-05/0.7637, allocations: 121.6 kB / 0.7893 GB, free: 47.97 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 1.78e-05/0.7637, allocations: 28.33 kB / 0.7893 GB, free: 47.94 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 2.981e-05/0.7637, allocations: 85.52 kB / 0.7894 GB, free: 47.86 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 4.544e-05/0.7638, allocations: 16.81 kB / 0.7894 GB, free: 47.85 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.663e-05/0.7639, allocations: 46.88 kB / 0.7894 GB, free: 47.83 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 7.221e-05/0.7639, allocations: 314.9 kB / 0.7897 GB, free: 47.52 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.835e-05/0.764, allocations: 62.19 kB / 0.7898 GB, free: 47.52 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.483e-05/0.7641, allocations: 61.02 kB / 0.7899 GB, free: 47.52 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001913/0.7643, allocations: 188.1 kB / 0.79 GB, free: 47.45 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.454e-06/0.7643, allocations: 0 / 0.79 GB, free: 47.45 MB / 0.6544 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002907/0.7646, allocations: 230.2 kB / 0.7903 GB, free: 47.38 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 4.314e-05/0.7647, allocations: 50.56 kB / 0.7903 GB, free: 47.35 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.564e-06/0.7647, allocations: 6.797 kB / 0.7903 GB, free: 47.35 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.915e-05/0.7647, allocations: 2.438 kB / 0.7903 GB, free: 47.35 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.01e-07/0.7647, allocations: 0 / 0.7903 GB, free: 47.35 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.131e-06/0.7648, allocations: 0 / 0.7903 GB, free: 47.35 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003505/0.7651, allocations: 27.75 kB / 0.7903 GB, free: 47.34 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.871e-05/0.7652, allocations: 17.12 kB / 0.7904 GB, free: 47.34 MB / 0.6544 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.0001149/0.7653, allocations: 160.4 kB / 0.7905 GB, free: 47.2 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.82e-05/0.7653, allocations: 13.22 kB / 0.7905 GB, free: 47.19 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.12e-05/0.7653, allocations: 14.14 kB / 0.7905 GB, free: 47.19 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.182e-06/0.7654, allocations: 0 / 0.7905 GB, free: 47.19 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.129e-06/0.7654, allocations: 1.641 kB / 0.7905 GB, free: 47.19 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.915e-06/0.7654, allocations: 2.438 kB / 0.7905 GB, free: 47.19 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.658e-05/0.7655, allocations: 173.5 kB / 0.7907 GB, free: 47 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.833e-06/0.7655, allocations: 1.875 kB / 0.7907 GB, free: 47 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.653e-06/0.7655, allocations: 0 / 0.7907 GB, free: 47 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.242e-06/0.7655, allocations: 1.203 kB / 0.7907 GB, free: 47 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.468e-05/0.7655, allocations: 13.69 kB / 0.7907 GB, free: 47 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.32e-07/0.7655, allocations: 0 / 0.7907 GB, free: 47 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.546e-06/0.7655, allocations: 3.031 kB / 0.7907 GB, free: 47 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003882/0.7659, allocations: 297.1 kB / 0.791 GB, free: 46.9 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 1.645e-05/0.766, allocations: 77.11 kB / 0.7911 GB, free: 46.8 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.255e-05/0.766, allocations: 9.188 kB / 0.7911 GB, free: 46.8 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002054/0.7662, allocations: 21.94 kB / 0.7911 GB, free: 46.8 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.651e-05/0.7663, allocations: 15.64 kB / 0.7911 GB, free: 46.8 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.501e-05/0.7663, allocations: 13.78 kB / 0.7911 GB, free: 46.8 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 4.471e-05/0.7663, allocations: 94.77 kB / 0.7912 GB, free: 46.73 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1e-07/0.7663, allocations: 3.391 kB / 0.7912 GB, free: 46.73 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0003796/0.7667, allocations: 89.77 kB / 0.7913 GB, free: 46.73 MB / 0.6544 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.00444/0.7712, allocations: 402 kB / 0.7917 GB, free: 46.64 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0004544/0.7716, allocations: 292.2 kB / 0.792 GB, free: 46.57 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.7717, allocations: 0 / 0.792 GB, free: 46.57 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0001957/0.7719, allocations: 210.1 kB / 0.7922 GB, free: 46.51 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001912/0.7721, allocations: 13.02 kB / 0.7922 GB, free: 46.51 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004575/0.7725, allocations: 263.6 kB / 0.7924 GB, free: 46.38 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001347/0.7727, allocations: 0.683 MB / 0.7931 GB, free: 45.68 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.571e-05/0.7727, allocations: 10.75 kB / 0.7931 GB, free: 45.68 MB / 0.6544 GB Notification: Performance of SimCode: time 3.2e-07/0.7727, allocations: 0 / 0.7931 GB, free: 45.68 MB / 0.6544 GB Notification: Performance of Templates: time 0.005418/0.7781, allocations: 3.303 MB / 0.7963 GB, free: 45.41 MB / 0.6544 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++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/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