Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXOneUTube.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: translateModel(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXOneUTube,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXOneUTube") translateModel(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXOneUTube,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.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/BuildingSystems 2.0.0-master/package.mo): time 0.7449/0.7449, allocations: 141.8 MB / 149.1 MB, free: 9.801 MB / 139.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001087/0.001087, allocations: 184.7 kB / 181.9 MB, free: 6.758 MB / 155.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.36/1.36, allocations: 221.4 MB / 436 MB, free: 14.86 MB / 347.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009381/0.000938, allocations: 89.52 kB / 0.507 GB, free: 17.42 MB / 379.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001946/0.001946, allocations: 282.4 kB / 0.5885 GB, free: 0.7656 MB / 443.1 MB Notification: Performance of FrontEnd - loaded program: time 9.428e-06/9.458e-06, allocations: 2.375 kB / 0.6759 GB, free: 136.4 MB / 0.5109 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1827/0.1828, allocations: 82.79 MB / 0.7568 GB, free: 79.42 MB / 0.5109 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8298/1.013, allocations: 383.5 MB / 1.131 GB, free: 3.484 MB / 0.6984 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003436/1.013, allocations: 124.6 kB / 1.131 GB, free: 3.414 MB / 0.6984 GB Notification: Performance of FrontEnd: time 1.813/2.826, allocations: 484.3 MB / 1.604 GB, free: 117.2 MB / 0.714 GB Notification: Performance of Transformations before backend: time 0.0001577/2.827, allocations: 42.73 kB / 1.604 GB, free: 117.1 MB / 0.714 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.004334/2.831, allocations: 1.947 MB / 1.606 GB, free: 115.2 MB / 0.714 GB Notification: Performance of prepare preOptimizeDAE: time 4.726e-05/2.831, allocations: 12.03 kB / 1.606 GB, free: 115.2 MB / 0.714 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005102/2.831, allocations: 209.5 kB / 1.607 GB, free: 114.9 MB / 0.714 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003164/2.835, allocations: 1.697 MB / 1.608 GB, free: 113.2 MB / 0.714 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.472e-05/2.835, allocations: 34.94 kB / 1.608 GB, free: 113.2 MB / 0.714 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001339/2.835, allocations: 74.59 kB / 1.608 GB, free: 113.1 MB / 0.714 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001263/2.836, allocations: 0.7226 MB / 1.609 GB, free: 112.4 MB / 0.714 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001418/2.838, allocations: 0.908 MB / 1.61 GB, free: 111.4 MB / 0.714 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.263e-05/2.838, allocations: 7.922 kB / 1.61 GB, free: 111.4 MB / 0.714 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.694e-05/2.838, allocations: 0 / 1.61 GB, free: 111.4 MB / 0.714 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.325e-05/2.838, allocations: 28 kB / 1.61 GB, free: 111.4 MB / 0.714 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007767/2.845, allocations: 6.641 MB / 1.616 GB, free: 104.3 MB / 0.714 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006303/2.846, allocations: 403.7 kB / 1.617 GB, free: 103.9 MB / 0.714 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003905/2.847, allocations: 325 kB / 1.617 GB, free: 103.6 MB / 0.714 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009462/2.847, allocations: 1.265 MB / 1.618 GB, free: 102 MB / 0.714 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.535e-05/2.848, allocations: 43.22 kB / 1.618 GB, free: 102 MB / 0.714 GB Notification: Performance of pre-optimization done (n=68): time 3.798e-06/2.848, allocations: 0 / 1.618 GB, free: 102 MB / 0.714 GB Notification: Performance of matching and sorting (n=68): time 0.001797/2.849, allocations: 0.7669 MB / 1.619 GB, free: 101.2 MB / 0.714 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.818e-05/2.849, allocations: 81.77 kB / 1.619 GB, free: 101.1 MB / 0.714 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001441/2.851, allocations: 1.125 MB / 1.62 GB, free: 99.97 MB / 0.714 GB Notification: Performance of collectPreVariables (initialization): time 6.674e-05/2.851, allocations: 29.7 kB / 1.62 GB, free: 99.93 MB / 0.714 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002954/2.851, allocations: 495.3 kB / 1.621 GB, free: 99.45 MB / 0.714 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002113/2.851, allocations: 236.5 kB / 1.621 GB, free: 99.21 MB / 0.714 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.171e-05/2.851, allocations: 0 / 1.621 GB, free: 99.21 MB / 0.714 GB Notification: Performance of setup shared object (initialization): time 8.298e-05/2.852, allocations: 341.9 kB / 1.621 GB, free: 98.87 MB / 0.714 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003542/2.852, allocations: 246 kB / 1.622 GB, free: 98.63 MB / 0.714 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004831/2.852, allocations: 475.8 kB / 1.622 GB, free: 98.08 MB / 0.714 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001069/2.853, allocations: 440.3 kB / 1.622 GB, free: 97.66 MB / 0.714 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.508e-06/2.854, allocations: 0 / 1.622 GB, free: 97.66 MB / 0.714 GB Notification: Performance of matching and sorting (n=108) (initialization): time 0.001876/2.855, allocations: 0.9856 MB / 1.623 GB, free: 96.66 MB / 0.714 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002699/2.856, allocations: 1.339 MB / 1.625 GB, free: 95.25 MB / 0.714 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.251e-05/2.856, allocations: 7.375 kB / 1.625 GB, free: 95.25 MB / 0.714 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002717/2.856, allocations: 69.69 kB / 1.625 GB, free: 95.18 MB / 0.714 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006361/2.857, allocations: 183.6 kB / 1.625 GB, free: 95 MB / 0.714 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001863/2.858, allocations: 2.857 MB / 1.628 GB, free: 91.93 MB / 0.714 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001255/2.86, allocations: 109.2 kB / 1.628 GB, free: 91.82 MB / 0.714 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.519e-05/2.86, allocations: 39.98 kB / 1.628 GB, free: 91.79 MB / 0.714 GB Notification: Performance of prepare postOptimizeDAE: time 9.508e-06/2.86, allocations: 4 kB / 1.628 GB, free: 91.78 MB / 0.714 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001715/2.862, allocations: 0.8103 MB / 1.629 GB, free: 90.97 MB / 0.714 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.399e-05/2.862, allocations: 11.94 kB / 1.629 GB, free: 90.96 MB / 0.714 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001454/2.862, allocations: 72.19 kB / 1.629 GB, free: 90.89 MB / 0.714 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000584/2.862, allocations: 171.8 kB / 1.629 GB, free: 90.72 MB / 0.714 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001664/2.864, allocations: 2.857 MB / 1.632 GB, free: 87.65 MB / 0.714 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001087/2.865, allocations: 94.61 kB / 1.632 GB, free: 87.56 MB / 0.714 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.663e-05/2.865, allocations: 43.3 kB / 1.632 GB, free: 87.52 MB / 0.714 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.0002263/2.865, allocations: 120.7 kB / 1.632 GB, free: 87.4 MB / 0.714 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000233/2.866, allocations: 138.3 kB / 1.632 GB, free: 87.26 MB / 0.714 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002318/2.868, allocations: 1.025 MB / 1.633 GB, free: 86.24 MB / 0.714 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.323e-05/2.868, allocations: 11.98 kB / 1.633 GB, free: 86.23 MB / 0.714 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.06e-06/2.868, allocations: 0 / 1.633 GB, free: 86.23 MB / 0.714 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001302/2.869, allocations: 0.8124 MB / 1.634 GB, free: 85.39 MB / 0.714 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004287/2.874, allocations: 2.495 MB / 1.636 GB, free: 82.79 MB / 0.714 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.733e-06/2.874, allocations: 4 kB / 1.636 GB, free: 82.78 MB / 0.714 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005522/2.874, allocations: 135.8 kB / 1.636 GB, free: 82.65 MB / 0.714 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001978/2.874, allocations: 76.06 kB / 1.637 GB, free: 82.57 MB / 0.714 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.452e-05/2.875, allocations: 11.98 kB / 1.637 GB, free: 82.56 MB / 0.714 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001621/2.876, allocations: 2.844 MB / 1.639 GB, free: 79.5 MB / 0.714 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.328e-06/2.876, allocations: 4 kB / 1.639 GB, free: 79.5 MB / 0.714 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002195/2.878, allocations: 1.564 MB / 1.641 GB, free: 77.79 MB / 0.714 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006401/2.879, allocations: 345.9 kB / 1.641 GB, free: 77.44 MB / 0.714 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001845/2.879, allocations: 8 kB / 1.641 GB, free: 77.43 MB / 0.714 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006724/2.88, allocations: 38.53 kB / 1.641 GB, free: 77.39 MB / 0.714 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.088e-05/2.88, allocations: 55.39 kB / 1.641 GB, free: 77.34 MB / 0.714 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.803e-05/2.88, allocations: 31.98 kB / 1.641 GB, free: 77.31 MB / 0.714 GB Notification: Performance of sort global known variables: time 0.001143/2.881, allocations: 0.8517 MB / 1.642 GB, free: 76.46 MB / 0.714 GB Notification: Performance of remove unused functions: time 0.003777/2.885, allocations: 1.2 MB / 1.643 GB, free: 75.26 MB / 0.714 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.002727/2.888, allocations: 1.281 MB / 1.645 GB, free: 74.18 MB / 0.714 GB Notification: Performance of simCode: created initialization part: time 0.002206/2.89, allocations: 1.584 MB / 1.646 GB, free: 72.55 MB / 0.714 GB Notification: Performance of simCode: created event and clocks part: time 5.159e-06/2.89, allocations: 7.938 kB / 1.646 GB, free: 72.55 MB / 0.714 GB Notification: Performance of simCode: created simulation system equations: time 0.0005451/2.891, allocations: 0.5437 MB / 1.647 GB, free: 71.99 MB / 0.714 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002911/2.893, allocations: 0.5882 MB / 1.647 GB, free: 71.46 MB / 0.714 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004196/2.898, allocations: 2.249 MB / 1.649 GB, free: 69.37 MB / 0.714 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009804/2.899, allocations: 1.43 MB / 1.651 GB, free: 67.93 MB / 0.714 GB Notification: Performance of SimCode: time 2.074e-06/2.899, allocations: 4 kB / 1.651 GB, free: 67.93 MB / 0.714 GB Notification: Performance of Templates: time 0.05899/2.958, allocations: 37.91 MB / 1.688 GB, free: 30.85 MB / 0.714 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXOneUTube.makefile make -j1 -f BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXOneUTube.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@2/OMCompiler/build/include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=BuildingSystems_BuildingSystems_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 BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXOneUTube.o BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXOneUTube.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@2/OMCompiler/build/include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=BuildingSystems_BuildingSystems_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 BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXOneUTube_functions.o BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXOneUTube_functions.c BuildingSystems_BuildingSystems.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: *** [: BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXOneUTube_functions.o] Error 1