Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXTwoUTube.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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_9_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_9_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 9.1.1-maint.9.1.x/package.mo): time 2.007/2.007, allocations: 387.2 MB / 394.5 MB, free: 13.69 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.001146/0.001146, allocations: 184.6 kB / 487 MB, free: 5.387 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.45/1.45, allocations: 221.3 MB / 0.7819 GB, free: 1.422 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009941/0.0009941, allocations: 98.98 kB / 0.9213 GB, free: 2.668 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 8.927e-06/8.947e-06, allocations: 4 kB / 1.066 GB, free: 167.7 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.29/0.2901, allocations: 142.3 MB / 1.205 GB, free: 25.68 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.043/1.333, allocations: 441.1 MB / 1.636 GB, free: 13.21 MB / 1.073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003121/1.333, allocations: 116.2 kB / 1.636 GB, free: 13.15 MB / 1.073 GB Notification: Performance of FrontEnd: time 4.42/5.753, allocations: 1.065 GB / 2.701 GB, free: 188.5 MB / 1.214 GB Notification: Performance of Transformations before backend: time 0.0005352/5.754, allocations: 80.88 kB / 2.701 GB, free: 188.5 MB / 1.214 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.01136/5.765, allocations: 3.083 MB / 2.704 GB, free: 187.4 MB / 1.214 GB Notification: Performance of prepare preOptimizeDAE: time 5.013e-05/5.765, allocations: 7.719 kB / 2.704 GB, free: 187.4 MB / 1.214 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002795/5.768, allocations: 381.3 kB / 2.705 GB, free: 187.2 MB / 1.214 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009465/5.777, allocations: 2.947 MB / 2.708 GB, free: 186.8 MB / 1.214 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001486/5.778, allocations: 66.84 kB / 2.708 GB, free: 186.8 MB / 1.214 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008608/5.778, allocations: 128.7 kB / 2.708 GB, free: 186.8 MB / 1.214 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004528/5.783, allocations: 1.462 MB / 2.709 GB, free: 186.7 MB / 1.214 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005442/5.788, allocations: 1.79 MB / 2.711 GB, free: 186.5 MB / 1.214 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001077/5.789, allocations: 6.406 kB / 2.711 GB, free: 186.5 MB / 1.214 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004521/5.789, allocations: 3.844 kB / 2.711 GB, free: 186.5 MB / 1.214 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.384e-05/5.789, allocations: 49.44 kB / 2.711 GB, free: 186.5 MB / 1.214 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01489/5.804, allocations: 8.874 MB / 2.72 GB, free: 183.6 MB / 1.214 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00116/5.805, allocations: 0.8507 MB / 2.721 GB, free: 183.5 MB / 1.214 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009017/5.806, allocations: 0.7621 MB / 2.721 GB, free: 183.5 MB / 1.214 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001931/5.808, allocations: 2.925 MB / 2.724 GB, free: 180.2 MB / 1.214 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.153e-05/5.808, allocations: 55.91 kB / 2.724 GB, free: 180.2 MB / 1.214 GB Notification: Performance of pre-optimization done (n=148): time 4.068e-06/5.808, allocations: 0 / 2.724 GB, free: 180.2 MB / 1.214 GB Notification: Performance of matching and sorting (n=148): time 0.00439/5.813, allocations: 1.678 MB / 2.726 GB, free: 179.9 MB / 1.214 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.089e-05/5.813, allocations: 91.2 kB / 2.726 GB, free: 179.9 MB / 1.214 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003971/5.817, allocations: 1.698 MB / 2.728 GB, free: 179.6 MB / 1.214 GB Notification: Performance of collectPreVariables (initialization): time 0.0002692/5.817, allocations: 29.67 kB / 2.728 GB, free: 179.6 MB / 1.214 GB Notification: Performance of collectInitialEqns (initialization): time 0.00079/5.818, allocations: 0.7949 MB / 2.728 GB, free: 179.2 MB / 1.214 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007751/5.818, allocations: 0.5034 MB / 2.729 GB, free: 178.8 MB / 1.214 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001093/5.819, allocations: 2.5 kB / 2.729 GB, free: 178.8 MB / 1.214 GB Notification: Performance of setup shared object (initialization): time 0.0001361/5.819, allocations: 367.5 kB / 2.729 GB, free: 178.5 MB / 1.214 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009101/5.82, allocations: 0.4973 MB / 2.73 GB, free: 178.5 MB / 1.214 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001094/5.821, allocations: 0.8432 MB / 2.731 GB, free: 178.2 MB / 1.214 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002348/5.823, allocations: 0.8374 MB / 2.731 GB, free: 178.2 MB / 1.214 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.959e-06/5.823, allocations: 0 / 2.731 GB, free: 178.2 MB / 1.214 GB Notification: Performance of matching and sorting (n=215) (initialization): time 0.005145/5.828, allocations: 2.021 MB / 2.733 GB, free: 177.9 MB / 1.214 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009094/5.829, allocations: 2.692 MB / 2.736 GB, free: 175 MB / 1.214 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.249e-05/5.829, allocations: 7.562 kB / 2.736 GB, free: 175 MB / 1.214 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006463/5.83, allocations: 202.3 kB / 2.736 GB, free: 175 MB / 1.214 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001346/5.831, allocations: 349.6 kB / 2.737 GB, free: 175 MB / 1.214 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005254/5.837, allocations: 6.852 MB / 2.743 GB, free: 168.9 MB / 1.214 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002931/5.84, allocations: 213.3 kB / 2.743 GB, free: 168.8 MB / 1.214 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003233/5.84, allocations: 77.05 kB / 2.744 GB, free: 168.8 MB / 1.214 GB Notification: Performance of prepare postOptimizeDAE: time 8.476e-06/5.84, allocations: 3.719 kB / 2.744 GB, free: 168.8 MB / 1.214 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004546/5.844, allocations: 1.704 MB / 2.745 GB, free: 168.7 MB / 1.214 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.506e-05/5.845, allocations: 14.55 kB / 2.745 GB, free: 168.7 MB / 1.214 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005269/5.845, allocations: 201.6 kB / 2.745 GB, free: 168.7 MB / 1.214 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001276/5.846, allocations: 351.3 kB / 2.746 GB, free: 168.7 MB / 1.214 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005931/5.852, allocations: 8.56 MB / 2.754 GB, free: 161 MB / 1.214 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002812/5.855, allocations: 204.6 kB / 2.754 GB, free: 161 MB / 1.214 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003801/5.856, allocations: 73.48 kB / 2.754 GB, free: 161 MB / 1.214 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.0006402/5.856, allocations: 143.6 kB / 2.754 GB, free: 160.8 MB / 1.214 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001037/5.857, allocations: 236.8 kB / 2.755 GB, free: 160.7 MB / 1.214 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005676/5.863, allocations: 2.152 MB / 2.757 GB, free: 160.6 MB / 1.214 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.087e-05/5.863, allocations: 29.88 kB / 2.757 GB, free: 160.6 MB / 1.214 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.626e-05/5.863, allocations: 0 / 2.757 GB, free: 160.6 MB / 1.214 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003298/5.866, allocations: 1.728 MB / 2.759 GB, free: 160.2 MB / 1.214 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01035/5.877, allocations: 4.182 MB / 2.763 GB, free: 159.7 MB / 1.214 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.208e-05/5.877, allocations: 1.781 kB / 2.763 GB, free: 159.7 MB / 1.214 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001167/5.878, allocations: 273.2 kB / 2.763 GB, free: 159.7 MB / 1.214 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004453/5.878, allocations: 185.7 kB / 2.763 GB, free: 159.7 MB / 1.214 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001229/5.879, allocations: 22.48 kB / 2.763 GB, free: 159.7 MB / 1.214 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004231/5.883, allocations: 6.811 MB / 2.77 GB, free: 153.6 MB / 1.214 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.971e-06/5.883, allocations: 6.594 kB / 2.77 GB, free: 153.6 MB / 1.214 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005971/5.889, allocations: 2.798 MB / 2.772 GB, free: 153 MB / 1.214 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002008/5.891, allocations: 0.5511 MB / 2.773 GB, free: 152.8 MB / 1.214 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009243/5.892, allocations: 6.906 kB / 2.773 GB, free: 152.8 MB / 1.214 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002239/5.894, allocations: 120.3 kB / 2.773 GB, free: 152.8 MB / 1.214 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001465/5.894, allocations: 96.25 kB / 2.773 GB, free: 152.8 MB / 1.214 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001594/5.894, allocations: 54.27 kB / 2.773 GB, free: 152.8 MB / 1.214 GB Notification: Performance of sort global known variables: time 0.003215/5.898, allocations: 1.272 MB / 2.774 GB, free: 152.6 MB / 1.214 GB Notification: Performance of remove unused functions: time 0.009662/5.907, allocations: 1.958 MB / 2.776 GB, free: 152.3 MB / 1.214 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.005354/5.913, allocations: 1.739 MB / 2.778 GB, free: 151.9 MB / 1.214 GB Notification: Performance of simCode: created initialization part: time 0.006244/5.919, allocations: 3.389 MB / 2.781 GB, free: 150.8 MB / 1.214 GB Notification: Performance of simCode: created event and clocks part: time 9.849e-06/5.919, allocations: 3.875 kB / 2.781 GB, free: 150.8 MB / 1.214 GB Notification: Performance of simCode: created simulation system equations: time 0.001759/5.921, allocations: 1.15 MB / 2.783 GB, free: 150.4 MB / 1.214 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006926/5.928, allocations: 1.096 MB / 2.784 GB, free: 150.3 MB / 1.214 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0115/5.939, allocations: 4.042 MB / 2.788 GB, free: 149.4 MB / 1.214 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002889/5.942, allocations: 2.025 MB / 2.79 GB, free: 148.6 MB / 1.214 GB Notification: Performance of SimCode: time 1.312e-06/5.942, allocations: 0 / 2.79 GB, free: 148.6 MB / 1.214 GB Notification: Performance of Templates: time 0.1124/6.055, allocations: 64.57 MB / 2.853 GB, free: 145.6 MB / 1.214 GB make -j1 -f Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXTwoUTube.makefile make -j1 -f Buildings_9_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_9_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_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXTwoUTube.o Buildings_9_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_9_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_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXTwoUTube_functions.o Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXTwoUTube_functions.c Buildings_9_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_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXTwoUTube_functions.o] Error 1