Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXTwoUTube.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: translateModel(Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXTwoUTube,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|realExpression.y|Rb_ref.y",fileNamePrefix="Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXTwoUTube") translateModel(Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXTwoUTube,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|realExpression.y|Rb_ref.y",fileNamePrefix="Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXTwoUTube") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 1.98/1.98, allocations: 390.4 MB / 397.7 MB, free: 11.29 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001197/0.001198, allocations: 177.2 kB / 490.8 MB, free: 1.969 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.313/1.313, allocations: 221.3 MB / 0.7863 GB, free: 13.68 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009563/0.0009562, allocations: 76.73 kB / 0.9264 GB, free: 14.21 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 7.494e-06/7.514e-06, allocations: 0 / 1.072 GB, free: 182.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2642/0.2643, allocations: 143 MB / 1.212 GB, free: 40.07 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9399/1.204, allocations: 441.9 MB / 1.643 GB, free: 5.164 MB / 1.057 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003343/1.205, allocations: 124.4 kB / 1.643 GB, free: 5.09 MB / 1.057 GB Notification: Performance of FrontEnd: time 4.176/5.38, allocations: 1.065 GB / 2.708 GB, free: 181.2 MB / 1.167 GB Notification: Performance of Transformations before backend: time 0.0005412/5.381, allocations: 84.14 kB / 2.709 GB, free: 181.2 MB / 1.167 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 526 * Number of variables: 526 Notification: Performance of Generate backend data structure: time 0.01095/5.392, allocations: 3.077 MB / 2.712 GB, free: 180.1 MB / 1.167 GB Notification: Performance of prepare preOptimizeDAE: time 5.378e-05/5.392, allocations: 7.75 kB / 2.712 GB, free: 180.1 MB / 1.167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002442/5.394, allocations: 373.8 kB / 2.712 GB, free: 179.9 MB / 1.167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009146/5.404, allocations: 2.96 MB / 2.715 GB, free: 179.5 MB / 1.167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001447/5.404, allocations: 65.31 kB / 2.715 GB, free: 179.5 MB / 1.167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007825/5.405, allocations: 132.1 kB / 2.715 GB, free: 179.5 MB / 1.167 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004322/5.409, allocations: 1.457 MB / 2.716 GB, free: 179.5 MB / 1.167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004881/5.414, allocations: 1.798 MB / 2.718 GB, free: 179.2 MB / 1.167 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.731e-05/5.414, allocations: 6.25 kB / 2.718 GB, free: 179.2 MB / 1.167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002886/5.414, allocations: 3.875 kB / 2.718 GB, free: 179.2 MB / 1.167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.146e-05/5.414, allocations: 50.03 kB / 2.718 GB, free: 179.2 MB / 1.167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01658/5.431, allocations: 8.851 MB / 2.727 GB, free: 176.3 MB / 1.167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001374/5.432, allocations: 0.8408 MB / 2.728 GB, free: 176.3 MB / 1.167 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00109/5.433, allocations: 0.7712 MB / 2.728 GB, free: 176.3 MB / 1.167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002148/5.436, allocations: 2.918 MB / 2.731 GB, free: 173 MB / 1.167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.726e-05/5.436, allocations: 54.81 kB / 2.731 GB, free: 172.9 MB / 1.167 GB Notification: Performance of pre-optimization done (n=148): time 4.228e-06/5.436, allocations: 0 / 2.731 GB, free: 172.9 MB / 1.167 GB Notification: Performance of matching and sorting (n=148): time 0.004765/5.44, allocations: 1.682 MB / 2.733 GB, free: 172.7 MB / 1.167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.266e-05/5.44, allocations: 92.98 kB / 2.733 GB, free: 172.6 MB / 1.167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004084/5.445, allocations: 1.701 MB / 2.735 GB, free: 172.4 MB / 1.167 GB Notification: Performance of collectPreVariables (initialization): time 0.0001877/5.445, allocations: 29.58 kB / 2.735 GB, free: 172.4 MB / 1.167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007719/5.446, allocations: 0.7973 MB / 2.736 GB, free: 171.9 MB / 1.167 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006851/5.446, allocations: 0.4905 MB / 2.736 GB, free: 171.6 MB / 1.167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.634e-05/5.446, allocations: 0 / 2.736 GB, free: 171.6 MB / 1.167 GB Notification: Performance of setup shared object (initialization): time 0.0001239/5.446, allocations: 379.4 kB / 2.736 GB, free: 171.3 MB / 1.167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008456/5.447, allocations: 0.492 MB / 2.737 GB, free: 171.3 MB / 1.167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001076/5.448, allocations: 0.8399 MB / 2.738 GB, free: 170.9 MB / 1.167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002321/5.451, allocations: 0.8369 MB / 2.739 GB, free: 170.9 MB / 1.167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.816e-06/5.451, allocations: 0 / 2.739 GB, free: 170.9 MB / 1.167 GB Notification: Performance of matching and sorting (n=215) (initialization): time 0.005225/5.456, allocations: 2.019 MB / 2.74 GB, free: 170.7 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007837/5.457, allocations: 2.697 MB / 2.743 GB, free: 167.8 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.303e-05/5.457, allocations: 10.53 kB / 2.743 GB, free: 167.8 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005712/5.457, allocations: 202.8 kB / 2.743 GB, free: 167.8 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00123/5.459, allocations: 352.1 kB / 2.744 GB, free: 167.8 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004499/5.463, allocations: 6.845 MB / 2.75 GB, free: 161.6 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002829/5.466, allocations: 218.9 kB / 2.751 GB, free: 161.6 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002366/5.466, allocations: 74 kB / 2.751 GB, free: 161.6 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 1.135e-05/5.466, allocations: 7.031 kB / 2.751 GB, free: 161.6 MB / 1.167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00402/5.47, allocations: 1.71 MB / 2.752 GB, free: 161.5 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.716e-05/5.47, allocations: 7.75 kB / 2.752 GB, free: 161.5 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004856/5.471, allocations: 198.3 kB / 2.753 GB, free: 161.4 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00118/5.472, allocations: 354.8 kB / 2.753 GB, free: 161.4 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005809/5.478, allocations: 8.575 MB / 2.761 GB, free: 153.8 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002647/5.481, allocations: 199.6 kB / 2.761 GB, free: 153.7 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002424/5.481, allocations: 70.78 kB / 2.761 GB, free: 153.7 MB / 1.167 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (191): * Single equations (assignments): 184 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 2 {1 4,1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0005266/5.481, allocations: 136.7 kB / 2.762 GB, free: 153.6 MB / 1.167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001037/5.482, allocations: 237.4 kB / 2.762 GB, free: 153.5 MB / 1.167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005423/5.488, allocations: 2.154 MB / 2.764 GB, free: 153.3 MB / 1.167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.987e-05/5.488, allocations: 16.88 kB / 2.764 GB, free: 153.3 MB / 1.167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.582e-05/5.488, allocations: 3.406 kB / 2.764 GB, free: 153.3 MB / 1.167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003249/5.491, allocations: 1.724 MB / 2.766 GB, free: 153 MB / 1.167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009796/5.501, allocations: 4.184 MB / 2.77 GB, free: 152.5 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.065e-06/5.501, allocations: 3.719 kB / 2.77 GB, free: 152.5 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001121/5.502, allocations: 276.6 kB / 2.77 GB, free: 152.5 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004281/5.503, allocations: 185.1 kB / 2.77 GB, free: 152.4 MB / 1.167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001197/5.503, allocations: 26.47 kB / 2.77 GB, free: 152.4 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004045/5.507, allocations: 6.811 MB / 2.777 GB, free: 146.3 MB / 1.167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.64e-06/5.507, allocations: 7.328 kB / 2.777 GB, free: 146.3 MB / 1.167 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005345/5.512, allocations: 2.8 MB / 2.78 GB, free: 145.8 MB / 1.167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001982/5.514, allocations: 0.551 MB / 2.78 GB, free: 145.5 MB / 1.167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009239/5.515, allocations: 7.625 kB / 2.78 GB, free: 145.5 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002212/5.517, allocations: 124 kB / 2.78 GB, free: 145.5 MB / 1.167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001371/5.517, allocations: 88.2 kB / 2.78 GB, free: 145.5 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001509/5.518, allocations: 58.67 kB / 2.78 GB, free: 145.5 MB / 1.167 GB Notification: Performance of sort global known variables: time 0.002927/5.521, allocations: 1.272 MB / 2.782 GB, free: 145.4 MB / 1.167 GB Notification: Performance of remove unused functions: time 0.008687/5.529, allocations: 1.952 MB / 2.784 GB, free: 145 MB / 1.167 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 12 (intHex.vol1.dynBal.U,intHex.vol2.dynBal.U,intHex.vol3.dynBal.U,intHex.vol4.dynBal.U,intHex.intRes2UTub.capFil1.T,intHex.intRes2UTub.capFil2.T,intHex.intRes2UTub.capFil3.T,intHex.intRes2UTub.capFil4.T,senTem.T,senTem1.T,senTem2.T,senTem3.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (140): * Single equations (assignments): 123 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 11 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 2 {1 4,1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.004894/5.534, allocations: 1.738 MB / 2.785 GB, free: 144.6 MB / 1.167 GB Notification: Performance of simCode: created initialization part: time 0.005559/5.54, allocations: 3.385 MB / 2.789 GB, free: 143.5 MB / 1.167 GB Notification: Performance of simCode: created event and clocks part: time 9.558e-06/5.54, allocations: 3.859 kB / 2.789 GB, free: 143.5 MB / 1.167 GB Notification: Performance of simCode: created simulation system equations: time 0.001597/5.541, allocations: 1.145 MB / 2.79 GB, free: 143.1 MB / 1.167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006809/5.548, allocations: 1.097 MB / 2.791 GB, free: 143.1 MB / 1.167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01202/5.56, allocations: 4.063 MB / 2.795 GB, free: 142.1 MB / 1.167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003561/5.564, allocations: 2.026 MB / 2.797 GB, free: 141.4 MB / 1.167 GB Notification: Performance of SimCode: time 1.763e-06/5.564, allocations: 3.406 kB / 2.797 GB, free: 141.4 MB / 1.167 GB Notification: Performance of Templates: time 0.1088/5.673, allocations: 64.57 MB / 2.86 GB, free: 138.3 MB / 1.167 GB make -j1 -f Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXTwoUTube.makefile make -j1 -f Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXTwoUTube.makefile clang -fPIC -O0 -falign-functions -march=native "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Resources/C-Sources" -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=Buildings_latest_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalHEXTwoUTube -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=14 -DOMC_NUM_NONLINEAR_SYSTEMS=4 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXTwoUTube.o Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXTwoUTube.c clang -fPIC -O0 -falign-functions -march=native "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Resources/C-Sources" -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=Buildings_latest_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalHEXTwoUTube -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=14 -DOMC_NUM_NONLINEAR_SYSTEMS=4 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXTwoUTube_functions.o Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXTwoUTube_functions.c Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXTwoUTube_functions.c:1141:59: error: cannot take the address of an rvalue of type 'real_array_t' (aka 'struct base_array_s') copy_real_array_data(add_alloc_scalar_real_array(_TBor, &mul_alloc_real_matrix_product_smart(_R0, _QPip_flow)), &_TFlu); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1 error generated. make: *** [: Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXTwoUTube_functions.o] Error 1