Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXTwoUTube.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: translateModel(Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXTwoUTube,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXTwoUTube") translateModel(Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXTwoUTube,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_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 8.1.4-maint.8.1.x/package.mo): time 1.556/1.556, allocations: 289.8 MB / 297.1 MB, free: 6.68 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001049/0.001049, allocations: 177.3 kB / 366.3 MB, free: 1.996 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.456/1.456, allocations: 205.1 MB / 0.6256 GB, free: 7.531 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001008/0.001008, allocations: 95.38 kB / 0.7396 GB, free: 39.88 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 7.564e-06/7.585e-06, allocations: 0 / 0.8591 GB, free: 13.55 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6768/0.6769, allocations: 116.3 MB / 0.9726 GB, free: 76.47 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9519/1.629, allocations: 429.3 MB / 1.392 GB, free: 122 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002989/1.629, allocations: 122.3 kB / 1.392 GB, free: 122 MB / 0.8542 GB Notification: Performance of FrontEnd: time 4.067/5.696, allocations: 1.021 GB / 2.413 GB, free: 108.4 MB / 0.9948 GB Notification: Performance of Transformations before backend: time 0.0003423/5.697, allocations: 81.41 kB / 2.413 GB, free: 108.4 MB / 0.9948 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.01006/5.707, allocations: 3.074 MB / 2.416 GB, free: 107.3 MB / 0.9948 GB Notification: Performance of prepare preOptimizeDAE: time 4.862e-05/5.707, allocations: 7.656 kB / 2.416 GB, free: 107.3 MB / 0.9948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002326/5.709, allocations: 375.1 kB / 2.416 GB, free: 107.1 MB / 0.9948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008733/5.718, allocations: 2.93 MB / 2.419 GB, free: 106.6 MB / 0.9948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.709e-05/5.718, allocations: 68.09 kB / 2.419 GB, free: 106.6 MB / 0.9948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002655/5.718, allocations: 127.5 kB / 2.419 GB, free: 106.6 MB / 0.9948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002847/5.721, allocations: 1.462 MB / 2.421 GB, free: 106.6 MB / 0.9948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003033/5.724, allocations: 1.796 MB / 2.422 GB, free: 106.4 MB / 0.9948 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.189e-05/5.724, allocations: 0 / 2.422 GB, free: 106.4 MB / 0.9948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000146/5.724, allocations: 6.781 kB / 2.422 GB, free: 106.4 MB / 0.9948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.178e-05/5.724, allocations: 49.53 kB / 2.422 GB, free: 106.4 MB / 0.9948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01283/5.737, allocations: 8.852 MB / 2.431 GB, free: 103.4 MB / 0.9948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001269/5.739, allocations: 0.8467 MB / 2.432 GB, free: 103.4 MB / 0.9948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001119/5.74, allocations: 0.7703 MB / 2.433 GB, free: 103.4 MB / 0.9948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002432/5.742, allocations: 2.921 MB / 2.436 GB, free: 100.1 MB / 0.9948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.868e-05/5.742, allocations: 57.97 kB / 2.436 GB, free: 100.1 MB / 0.9948 GB Notification: Performance of pre-optimization done (n=148): time 4.639e-06/5.742, allocations: 0 / 2.436 GB, free: 100.1 MB / 0.9948 GB Notification: Performance of matching and sorting (n=148): time 0.004356/5.747, allocations: 1.666 MB / 2.437 GB, free: 99.83 MB / 0.9948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.004e-05/5.747, allocations: 95.52 kB / 2.437 GB, free: 99.74 MB / 0.9948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002591/5.749, allocations: 1.69 MB / 2.439 GB, free: 99.53 MB / 0.9948 GB Notification: Performance of collectPreVariables (initialization): time 0.000157/5.749, allocations: 30.67 kB / 2.439 GB, free: 99.5 MB / 0.9948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006221/5.75, allocations: 0.7965 MB / 2.44 GB, free: 99.06 MB / 0.9948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006115/5.751, allocations: 0.4944 MB / 2.44 GB, free: 98.73 MB / 0.9948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.895e-05/5.751, allocations: 0 / 2.44 GB, free: 98.73 MB / 0.9948 GB Notification: Performance of setup shared object (initialization): time 0.0001282/5.751, allocations: 371.1 kB / 2.441 GB, free: 98.43 MB / 0.9948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007796/5.752, allocations: 0.4965 MB / 2.441 GB, free: 98.42 MB / 0.9948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009994/5.753, allocations: 0.8402 MB / 2.442 GB, free: 98.07 MB / 0.9948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002202/5.755, allocations: 0.8459 MB / 2.443 GB, free: 98.05 MB / 0.9948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.423e-06/5.755, allocations: 3.656 kB / 2.443 GB, free: 98.05 MB / 0.9948 GB Notification: Performance of matching and sorting (n=215) (initialization): time 0.004668/5.76, allocations: 2.021 MB / 2.445 GB, free: 97.8 MB / 0.9948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006988/5.76, allocations: 2.692 MB / 2.447 GB, free: 94.93 MB / 0.9948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.113e-05/5.76, allocations: 9.312 kB / 2.447 GB, free: 94.93 MB / 0.9948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005618/5.761, allocations: 195.1 kB / 2.448 GB, free: 94.89 MB / 0.9948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00123/5.762, allocations: 354.5 kB / 2.448 GB, free: 94.89 MB / 0.9948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004513/5.767, allocations: 6.838 MB / 2.455 GB, free: 88.76 MB / 0.9948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003267/5.77, allocations: 219.4 kB / 2.455 GB, free: 88.68 MB / 0.9948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002439/5.77, allocations: 80.09 kB / 2.455 GB, free: 88.68 MB / 0.9948 GB Notification: Performance of prepare postOptimizeDAE: time 9.187e-06/5.77, allocations: 5.531 kB / 2.455 GB, free: 88.68 MB / 0.9948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004112/5.774, allocations: 1.703 MB / 2.457 GB, free: 88.59 MB / 0.9948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.225e-05/5.774, allocations: 16.58 kB / 2.457 GB, free: 88.59 MB / 0.9948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004766/5.775, allocations: 204.9 kB / 2.457 GB, free: 88.54 MB / 0.9948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001176/5.776, allocations: 350.4 kB / 2.457 GB, free: 88.54 MB / 0.9948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006124/5.782, allocations: 8.566 MB / 2.465 GB, free: 80.91 MB / 0.9948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003142/5.785, allocations: 207.5 kB / 2.466 GB, free: 80.85 MB / 0.9948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002449/5.786, allocations: 67.81 kB / 2.466 GB, free: 80.85 MB / 0.9948 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.0005583/5.786, allocations: 141.9 kB / 2.466 GB, free: 80.74 MB / 0.9948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005215/5.787, allocations: 233.5 kB / 2.466 GB, free: 80.62 MB / 0.9948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004659/5.791, allocations: 2.149 MB / 2.468 GB, free: 80.44 MB / 0.9948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.945e-05/5.791, allocations: 23.81 kB / 2.468 GB, free: 80.44 MB / 0.9948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.687e-06/5.791, allocations: 5.844 kB / 2.468 GB, free: 80.44 MB / 0.9948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002917/5.794, allocations: 1.719 MB / 2.47 GB, free: 80.1 MB / 0.9948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008483/5.803, allocations: 4.19 MB / 2.474 GB, free: 79.62 MB / 0.9948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.089e-05/5.803, allocations: 2.688 kB / 2.474 GB, free: 79.62 MB / 0.9948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001115/5.804, allocations: 274.9 kB / 2.474 GB, free: 79.62 MB / 0.9948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003968/5.804, allocations: 186.5 kB / 2.474 GB, free: 79.57 MB / 0.9948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.721e-05/5.805, allocations: 18.25 kB / 2.474 GB, free: 79.57 MB / 0.9948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003978/5.809, allocations: 6.824 MB / 2.481 GB, free: 73.44 MB / 0.9948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.229e-06/5.809, allocations: 3.812 kB / 2.481 GB, free: 73.44 MB / 0.9948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005553/5.814, allocations: 2.78 MB / 2.484 GB, free: 72.93 MB / 0.9948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001853/5.816, allocations: 0.5556 MB / 2.484 GB, free: 72.69 MB / 0.9948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004779/5.816, allocations: 5.906 kB / 2.484 GB, free: 72.69 MB / 0.9948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001523/5.818, allocations: 131.7 kB / 2.484 GB, free: 72.67 MB / 0.9948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000139/5.818, allocations: 82.73 kB / 2.485 GB, free: 72.67 MB / 0.9948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001206/5.818, allocations: 62.31 kB / 2.485 GB, free: 72.67 MB / 0.9948 GB Notification: Performance of sort global known variables: time 0.002142/5.82, allocations: 1.264 MB / 2.486 GB, free: 72.53 MB / 0.9948 GB Notification: Performance of remove unused functions: time 0.008292/5.829, allocations: 1.952 MB / 2.488 GB, free: 72.18 MB / 0.9948 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.005027/5.834, allocations: 1.758 MB / 2.489 GB, free: 71.76 MB / 0.9948 GB Notification: Performance of simCode: created initialization part: time 0.006132/5.84, allocations: 3.39 MB / 2.493 GB, free: 70.66 MB / 0.9948 GB Notification: Performance of simCode: created event and clocks part: time 1.077e-05/5.84, allocations: 0 / 2.493 GB, free: 70.66 MB / 0.9948 GB Notification: Performance of simCode: created simulation system equations: time 0.001482/5.842, allocations: 1.155 MB / 2.494 GB, free: 70.25 MB / 0.9948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006289/5.848, allocations: 1.099 MB / 2.495 GB, free: 70.23 MB / 0.9948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009306/5.857, allocations: 4.037 MB / 2.499 GB, free: 69.28 MB / 0.9948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002029/5.859, allocations: 2.014 MB / 2.501 GB, free: 68.54 MB / 0.9948 GB Notification: Performance of SimCode: time 1.924e-06/5.859, allocations: 0 / 2.501 GB, free: 68.54 MB / 0.9948 GB Notification: Performance of Templates: time 0.1091/5.968, allocations: 64.84 MB / 2.564 GB, free: 64.96 MB / 0.9948 GB make -j1 -f Buildings_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXTwoUTube.makefile make -j1 -f Buildings_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXTwoUTube.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_8_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_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXTwoUTube.o Buildings_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXTwoUTube.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_8_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_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXTwoUTube_functions.o Buildings_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXTwoUTube_functions.c Buildings_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXTwoUTube_functions.c:1179: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_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXTwoUTube_functions.o] Error 1