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.001602/0.001602, allocations: 101.4 kB / 16.27 MB, free: 6.418 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.001685/0.001685, allocations: 189.8 kB / 17.2 MB, free: 5.953 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.504/1.504, allocations: 205.1 MB / 223.1 MB, free: 12.31 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.845/1.845, allocations: 292.3 MB / 0.5495 GB, free: 17.63 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.001434/0.001434, allocations: 67.91 kB / 0.6722 GB, free: 6.527 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.288/0.2894, allocations: 114.6 MB / 0.784 GB, free: 3.863 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.Exchange): time 0.002064/0.2915, allocations: 0.5497 MB / 0.7846 GB, free: 3.309 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.001928/0.2935, allocations: 1.265 MB / 0.7858 GB, free: 2.035 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.779e-05/0.2935, allocations: 0 / 0.7858 GB, free: 2.035 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 0.0001072/0.2936, allocations: 7.922 kB / 0.7858 GB, free: 2.027 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 5.206e-05/0.2937, allocations: 0 / 0.7858 GB, free: 2.027 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.0007669/0.2945, allocations: 299.2 kB / 0.7861 GB, free: 1.734 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.0001462/0.2946, allocations: 79.81 kB / 0.7862 GB, free: 1.656 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 5.785e-05/0.2947, allocations: 11.92 kB / 0.7862 GB, free: 1.645 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 5.021e-05/0.2947, allocations: 31.92 kB / 0.7862 GB, free: 1.613 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 6.497e-05/0.2948, allocations: 39.84 kB / 0.7863 GB, free: 1.574 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 2.071e-05/0.2948, allocations: 8 kB / 0.7863 GB, free: 1.566 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004407/0.2953, allocations: 207.7 kB / 0.7865 GB, free: 1.363 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 3.067e-05/0.2953, allocations: 11.92 kB / 0.7865 GB, free: 1.352 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 6.317e-05/0.2954, allocations: 27.86 kB / 0.7865 GB, free: 1.324 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0004029/0.2958, allocations: 271.5 kB / 0.7868 GB, free: 1.059 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 5.701e-06/0.2958, allocations: 3.938 kB / 0.7868 GB, free: 1.055 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.844e-06/0.2958, allocations: 0 / 0.7868 GB, free: 1.055 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 6.132e-06/0.2958, allocations: 4 kB / 0.7868 GB, free: 1.051 MB / 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.0005229/0.2964, allocations: 445.3 kB / 0.7872 GB, free: 0.5625 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 4.46e-05/0.2964, allocations: 12.03 kB / 0.7872 GB, free: 0.5508 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.767e-05/0.2965, allocations: 8.938 kB / 0.7872 GB, free: 0.543 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001645/0.2967, allocations: 180.3 kB / 0.7874 GB, free: 336 kB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.643e-05/0.2967, allocations: 4.375 kB / 0.7874 GB, free: 332 kB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.246e-05/0.2967, allocations: 4.375 kB / 0.7874 GB, free: 328 kB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002408/0.297, allocations: 129.7 kB / 0.7875 GB, free: 192 kB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.956e-06/0.297, allocations: 0 / 0.7875 GB, free: 192 kB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.994e-05/0.297, allocations: 0 / 0.7875 GB, free: 192 kB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.669e-06/0.297, allocations: 0 / 0.7875 GB, free: 192 kB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001092/0.2971, allocations: 67.88 kB / 0.7876 GB, free: 124 kB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5263/0.8234, allocations: 155 kB / 0.7877 GB, free: 48.46 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002629/0.8238, allocations: 114 kB / 0.7878 GB, free: 48.43 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001337/0.8239, allocations: 103 kB / 0.7879 GB, free: 48.43 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 7.715e-06/0.8239, allocations: 7.375 kB / 0.788 GB, free: 48.43 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.903e-05/0.824, allocations: 39.53 kB / 0.788 GB, free: 48.39 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=6): time 4.338e-06/0.824, allocations: 0 / 0.788 GB, free: 48.39 MB / 0.6544 GB Notification: Performance of matching and sorting (n=6): time 0.0006249/0.8246, allocations: 287.2 kB / 0.7883 GB, free: 48.32 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.756e-05/0.8247, allocations: 92.38 kB / 0.7884 GB, free: 48.23 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001265/0.8248, allocations: 126 kB / 0.7885 GB, free: 48.13 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 2.389e-05/0.8249, allocations: 28.33 kB / 0.7885 GB, free: 48.1 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 3.833e-05/0.8249, allocations: 83.36 kB / 0.7886 GB, free: 48.02 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 6.075e-05/0.825, allocations: 22.12 kB / 0.7886 GB, free: 48.01 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.803e-05/0.8251, allocations: 43.55 kB / 0.7886 GB, free: 48 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 9.014e-05/0.8252, allocations: 317.7 kB / 0.7889 GB, free: 47.68 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.759e-05/0.8253, allocations: 62.84 kB / 0.789 GB, free: 47.68 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.486e-05/0.8254, allocations: 60.09 kB / 0.7891 GB, free: 47.68 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002129/0.8256, allocations: 183.7 kB / 0.7892 GB, free: 47.61 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.8256, allocations: 1.406 kB / 0.7892 GB, free: 47.61 MB / 0.6544 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0003293/0.8259, allocations: 228.7 kB / 0.7895 GB, free: 47.55 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 6.013e-05/0.826, allocations: 50.05 kB / 0.7895 GB, free: 47.52 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.392e-06/0.826, allocations: 2.016 kB / 0.7895 GB, free: 47.52 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.187e-05/0.826, allocations: 0 / 0.7895 GB, free: 47.52 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.423e-06/0.826, allocations: 3 kB / 0.7895 GB, free: 47.52 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.102e-05/0.8261, allocations: 4.594 kB / 0.7895 GB, free: 47.52 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004127/0.8265, allocations: 30.09 kB / 0.7895 GB, free: 47.51 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.265e-05/0.8265, allocations: 13.84 kB / 0.7896 GB, free: 47.51 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.0001372/0.8267, allocations: 160.8 kB / 0.7897 GB, free: 47.36 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.337e-05/0.8267, allocations: 15.91 kB / 0.7897 GB, free: 47.36 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.149e-05/0.8268, allocations: 8.094 kB / 0.7897 GB, free: 47.36 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.04e-06/0.8268, allocations: 3.125 kB / 0.7897 GB, free: 47.36 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.255e-06/0.8268, allocations: 3.938 kB / 0.7897 GB, free: 47.36 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.44e-06/0.8268, allocations: 3.5 kB / 0.7897 GB, free: 47.36 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001225/0.8269, allocations: 167.5 kB / 0.7899 GB, free: 47.17 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.8269, allocations: 5.625 kB / 0.7899 GB, free: 47.17 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.886e-06/0.8269, allocations: 1.219 kB / 0.7899 GB, free: 47.17 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.132e-06/0.8269, allocations: 2.078 kB / 0.7899 GB, free: 47.17 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.857e-05/0.827, allocations: 15.38 kB / 0.7899 GB, free: 47.17 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.31e-07/0.827, allocations: 0 / 0.7899 GB, free: 47.17 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.344e-06/0.827, allocations: 3.938 kB / 0.7899 GB, free: 47.16 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000422/0.8274, allocations: 296.1 kB / 0.7902 GB, free: 47.07 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 3.181e-05/0.8275, allocations: 77.11 kB / 0.7903 GB, free: 46.97 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.965e-05/0.8275, allocations: 7.422 kB / 0.7903 GB, free: 46.97 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002144/0.8277, allocations: 19.33 kB / 0.7903 GB, free: 46.97 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.659e-05/0.8278, allocations: 13.91 kB / 0.7903 GB, free: 46.97 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.967e-05/0.8278, allocations: 17 kB / 0.7903 GB, free: 46.97 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 5.002e-05/0.8279, allocations: 98.64 kB / 0.7904 GB, free: 46.89 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.21e-07/0.8279, allocations: 0 / 0.7904 GB, free: 46.89 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0004248/0.8283, allocations: 89.08 kB / 0.7905 GB, free: 46.89 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.003582/0.8319, allocations: 386.5 kB / 0.7909 GB, free: 46.8 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0004877/0.8324, allocations: 296.3 kB / 0.7912 GB, free: 46.74 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.8324, allocations: 0 / 0.7912 GB, free: 46.74 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0002106/0.8326, allocations: 206.8 kB / 0.7914 GB, free: 46.68 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002009/0.8328, allocations: 11.81 kB / 0.7914 GB, free: 46.68 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005118/0.8334, allocations: 264 kB / 0.7916 GB, free: 46.54 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001826/0.8335, allocations: 0.6836 MB / 0.7923 GB, free: 45.84 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.742e-05/0.8336, allocations: 13.41 kB / 0.7923 GB, free: 45.84 MB / 0.6544 GB Notification: Performance of SimCode: time 4.51e-07/0.8336, allocations: 0 / 0.7923 GB, free: 45.84 MB / 0.6544 GB Notification: Performance of Templates: time 0.005853/0.8394, allocations: 3.315 MB / 0.7955 GB, free: 45.58 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