Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXOneUTube.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.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXOneUTube,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|realExpression.y|Rb_ref.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXOneUTube") translateModel(Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXOneUTube,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|realExpression.y|Rb_ref.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXOneUTube") [: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 7.0.3-maint.7.0.x/package.mo): time 1.211/1.211, allocations: 249.4 MB / 256.7 MB, free: 6.973 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.000963/0.0009631, allocations: 184.5 kB / 316 MB, free: 3.566 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.063/1.063, allocations: 205.2 MB / 0.5667 GB, free: 15.62 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.0008591/0.0008593, allocations: 83.34 kB / 0.671 GB, free: 4.75 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 5.811e-06/5.841e-06, allocations: 0 / 0.7807 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1371/0.1372, allocations: 106.4 MB / 0.8846 GB, free: 12.6 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8884/1.026, allocations: 406.2 MB / 1.281 GB, free: 321.5 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00026/1.026, allocations: 121.6 kB / 1.281 GB, free: 321.5 MB / 0.8698 GB Notification: Performance of FrontEnd: time 1.117/2.143, allocations: 475.1 MB / 1.745 GB, free: 175 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 0.0001246/2.143, allocations: 46.11 kB / 1.745 GB, free: 175 MB / 0.8698 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 264 * Number of variables: 264 Notification: Performance of Generate backend data structure: time 0.003245/2.146, allocations: 1.941 MB / 1.747 GB, free: 173.8 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 3.676e-05/2.146, allocations: 9.109 kB / 1.747 GB, free: 173.8 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00044/2.147, allocations: 210.3 kB / 1.747 GB, free: 173.7 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003277/2.15, allocations: 1.704 MB / 1.749 GB, free: 172.8 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.453e-05/2.15, allocations: 36.03 kB / 1.749 GB, free: 172.8 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001432/2.15, allocations: 66.67 kB / 1.749 GB, free: 172.8 MB / 0.8698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001276/2.151, allocations: 0.7226 MB / 1.75 GB, free: 172.5 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001495/2.153, allocations: 0.9115 MB / 1.751 GB, free: 172.1 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.184e-05/2.153, allocations: 4.422 kB / 1.751 GB, free: 172.1 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.566e-05/2.153, allocations: 3.938 kB / 1.751 GB, free: 172.1 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.705e-05/2.153, allocations: 25.69 kB / 1.751 GB, free: 172.1 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007861/2.161, allocations: 6.647 MB / 1.757 GB, free: 167 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006487/2.162, allocations: 399.9 kB / 1.758 GB, free: 166.8 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004335/2.162, allocations: 323.2 kB / 1.758 GB, free: 166.6 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008304/2.163, allocations: 1.272 MB / 1.759 GB, free: 165.2 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.33e-05/2.163, allocations: 38.53 kB / 1.759 GB, free: 165.1 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=68): time 3.246e-06/2.163, allocations: 0 / 1.759 GB, free: 165.1 MB / 0.8698 GB Notification: Performance of matching and sorting (n=68): time 0.001789/2.165, allocations: 0.7727 MB / 1.76 GB, free: 164.7 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.099e-05/2.165, allocations: 84.92 kB / 1.76 GB, free: 164.6 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001448/2.166, allocations: 1.126 MB / 1.761 GB, free: 164 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 5.501e-05/2.166, allocations: 27.08 kB / 1.761 GB, free: 164 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.00026/2.167, allocations: 494.3 kB / 1.762 GB, free: 163.6 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001888/2.167, allocations: 230.9 kB / 1.762 GB, free: 163.4 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.433e-05/2.167, allocations: 0 / 1.762 GB, free: 163.4 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 6.238e-05/2.167, allocations: 340.6 kB / 1.762 GB, free: 163.1 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003819/2.167, allocations: 253.8 kB / 1.763 GB, free: 163 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004925/2.168, allocations: 475.1 kB / 1.763 GB, free: 162.6 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001037/2.169, allocations: 436.7 kB / 1.763 GB, free: 162.4 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.477e-06/2.169, allocations: 3.062 kB / 1.763 GB, free: 162.4 MB / 0.8698 GB Notification: Performance of matching and sorting (n=108) (initialization): time 0.001902/2.171, allocations: 0.992 MB / 1.764 GB, free: 161.9 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002148/2.171, allocations: 1.338 MB / 1.766 GB, free: 160.5 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.982e-05/2.171, allocations: 10.27 kB / 1.766 GB, free: 160.5 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000252/2.171, allocations: 66.38 kB / 1.766 GB, free: 160.5 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006561/2.172, allocations: 178.6 kB / 1.766 GB, free: 160.4 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00169/2.174, allocations: 2.848 MB / 1.769 GB, free: 157.6 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001002/2.175, allocations: 106.8 kB / 1.769 GB, free: 157.5 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.197e-05/2.175, allocations: 41.08 kB / 1.769 GB, free: 157.5 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 6.762e-06/2.175, allocations: 7.656 kB / 1.769 GB, free: 157.5 MB / 0.8698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001746/2.176, allocations: 0.8197 MB / 1.77 GB, free: 157.1 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.483e-05/2.177, allocations: 5.531 kB / 1.77 GB, free: 157.1 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001343/2.177, allocations: 64.17 kB / 1.77 GB, free: 157.1 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006154/2.177, allocations: 185.6 kB / 1.77 GB, free: 157 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001577/2.179, allocations: 2.852 MB / 1.773 GB, free: 154.2 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009524/2.18, allocations: 94.48 kB / 1.773 GB, free: 154.2 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.585e-05/2.18, allocations: 39.67 kB / 1.773 GB, free: 154.2 MB / 0.8698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (99): * Single equations (assignments): 96 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001902/2.18, allocations: 121.6 kB / 1.773 GB, free: 154 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002307/2.18, allocations: 141.1 kB / 1.773 GB, free: 154 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002127/2.182, allocations: 1.025 MB / 1.774 GB, free: 153.4 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.317e-05/2.183, allocations: 7.781 kB / 1.774 GB, free: 153.4 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.119e-06/2.183, allocations: 1.25 kB / 1.774 GB, free: 153.4 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001367/2.184, allocations: 0.8062 MB / 1.775 GB, free: 152.9 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004191/2.188, allocations: 2.498 MB / 1.777 GB, free: 151.2 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.893e-06/2.188, allocations: 3.656 kB / 1.777 GB, free: 151.2 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005693/2.189, allocations: 140.7 kB / 1.777 GB, free: 151.1 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001904/2.189, allocations: 70.84 kB / 1.777 GB, free: 151.1 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.515e-05/2.189, allocations: 16.42 kB / 1.777 GB, free: 151.1 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0016/2.191, allocations: 2.843 MB / 1.78 GB, free: 148.3 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.494e-06/2.191, allocations: 11.94 kB / 1.78 GB, free: 148.3 MB / 0.8698 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002249/2.193, allocations: 1.556 MB / 1.782 GB, free: 147.2 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005756/2.193, allocations: 348.4 kB / 1.782 GB, free: 146.9 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001878/2.194, allocations: 12.08 kB / 1.782 GB, free: 146.9 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006424/2.194, allocations: 34.28 kB / 1.782 GB, free: 146.9 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.063e-05/2.194, allocations: 53.91 kB / 1.782 GB, free: 146.8 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.98e-05/2.194, allocations: 28.8 kB / 1.782 GB, free: 146.8 MB / 0.8698 GB Notification: Performance of sort global known variables: time 0.00118/2.196, allocations: 0.8543 MB / 1.783 GB, free: 146.4 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.003628/2.199, allocations: 1.2 MB / 1.784 GB, free: 146 MB / 0.8698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 6 (intHex.vol1.dynBal.U,intHex.vol2.dynBal.U,intHex.intResUTub.capFil1.T,intHex.intResUTub.capFil2.T,senTem.T,senTem1.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (70): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 7 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002516/2.202, allocations: 1.276 MB / 1.786 GB, free: 145.5 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.002294/2.204, allocations: 1.577 MB / 1.787 GB, free: 144.6 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 3.777e-06/2.204, allocations: 7.531 kB / 1.787 GB, free: 144.6 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.0005978/2.205, allocations: 0.5392 MB / 1.788 GB, free: 144.2 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002681/2.207, allocations: 0.5928 MB / 1.788 GB, free: 144 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004058/2.211, allocations: 2.249 MB / 1.79 GB, free: 142.9 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001036/2.213, allocations: 1.435 MB / 1.792 GB, free: 141.9 MB / 0.8698 GB Notification: Performance of SimCode: time 1.403e-06/2.213, allocations: 4.719 kB / 1.792 GB, free: 141.9 MB / 0.8698 GB Notification: Performance of Templates: time 0.05307/2.266, allocations: 37.89 MB / 1.829 GB, free: 108.8 MB / 0.8698 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXOneUTube.makefile make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXOneUTube.makefile clang -fPIC -O0 -falign-functions -march=native -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=Buildings_maint_7_0_x_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalHEXOneUTube -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=6 -DOMC_NUM_NONLINEAR_SYSTEMS=0 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o Buildings_maint.7.0.x_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXOneUTube.o Buildings_maint.7.0.x_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXOneUTube.c clang -fPIC -O0 -falign-functions -march=native -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=Buildings_maint_7_0_x_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalHEXOneUTube -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=6 -DOMC_NUM_NONLINEAR_SYSTEMS=0 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o Buildings_maint.7.0.x_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXOneUTube_functions.o Buildings_maint.7.0.x_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXOneUTube_functions.c Buildings_maint.7.0.x_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXOneUTube_functions.c:1027: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_maint.7.0.x_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXOneUTube_functions.o] Error 1