Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXOneUTube.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.InternalHEXOneUTube,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.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_9_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 9.1.1-maint.9.1.x/package.mo): time 1.985/1.985, allocations: 387.2 MB / 394.5 MB, free: 13.73 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.001578/0.001577, allocations: 180.5 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.454/1.454, allocations: 221.3 MB / 0.7819 GB, free: 1.469 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.001019/0.001019, allocations: 102.9 kB / 0.9213 GB, free: 2.699 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 7.223e-06/7.233e-06, allocations: 4 kB / 1.066 GB, free: 168.3 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2931/0.2931, allocations: 142.3 MB / 1.205 GB, free: 26.21 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.048/1.341, allocations: 423.6 MB / 1.619 GB, free: 14.98 MB / 1.057 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003394/1.341, allocations: 120.7 kB / 1.619 GB, free: 14.91 MB / 1.057 GB Notification: Performance of FrontEnd: time 1.594/2.935, allocations: 490.6 MB / 2.098 GB, free: 31.64 MB / 1.135 GB Notification: Performance of Transformations before backend: time 0.0001579/2.936, allocations: 43.75 kB / 2.098 GB, free: 31.61 MB / 1.135 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.00388/2.939, allocations: 1.949 MB / 2.1 GB, free: 29.62 MB / 1.135 GB Notification: Performance of prepare preOptimizeDAE: time 4.83e-05/2.94, allocations: 8.031 kB / 2.1 GB, free: 29.61 MB / 1.135 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004894/2.94, allocations: 209.6 kB / 2.1 GB, free: 29.41 MB / 1.135 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003032/2.943, allocations: 1.718 MB / 2.102 GB, free: 27.67 MB / 1.135 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.165e-05/2.943, allocations: 35.94 kB / 2.102 GB, free: 27.63 MB / 1.135 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001254/2.943, allocations: 75.91 kB / 2.102 GB, free: 27.56 MB / 1.135 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001244/2.945, allocations: 0.7149 MB / 2.103 GB, free: 26.84 MB / 1.135 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001366/2.946, allocations: 0.9092 MB / 2.104 GB, free: 25.88 MB / 1.135 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.564e-05/2.946, allocations: 0 / 2.104 GB, free: 25.88 MB / 1.135 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.532e-05/2.946, allocations: 0 / 2.104 GB, free: 25.88 MB / 1.135 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.176e-05/2.946, allocations: 28 kB / 2.104 GB, free: 25.85 MB / 1.135 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007426/2.953, allocations: 6.643 MB / 2.11 GB, free: 18.64 MB / 1.135 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006563/2.954, allocations: 404.6 kB / 2.111 GB, free: 18.25 MB / 1.135 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004081/2.955, allocations: 327.8 kB / 2.111 GB, free: 17.92 MB / 1.135 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008584/2.955, allocations: 1.27 MB / 2.112 GB, free: 16.38 MB / 1.135 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.786e-05/2.955, allocations: 39.22 kB / 2.112 GB, free: 16.32 MB / 1.135 GB Notification: Performance of pre-optimization done (n=68): time 2.425e-06/2.956, allocations: 0 / 2.112 GB, free: 16.32 MB / 1.135 GB Notification: Performance of matching and sorting (n=68): time 0.001731/2.957, allocations: 0.7648 MB / 2.113 GB, free: 15.55 MB / 1.135 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.287e-05/2.957, allocations: 93.67 kB / 2.113 GB, free: 15.44 MB / 1.135 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001425/2.959, allocations: 1.129 MB / 2.114 GB, free: 14.3 MB / 1.135 GB Notification: Performance of collectPreVariables (initialization): time 5.788e-05/2.959, allocations: 25.7 kB / 2.114 GB, free: 14.27 MB / 1.135 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002965/2.959, allocations: 496.6 kB / 2.115 GB, free: 13.78 MB / 1.135 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002126/2.959, allocations: 236.5 kB / 2.115 GB, free: 13.54 MB / 1.135 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.288e-05/2.959, allocations: 0 / 2.115 GB, free: 13.54 MB / 1.135 GB Notification: Performance of setup shared object (initialization): time 8.976e-05/2.959, allocations: 334 kB / 2.115 GB, free: 13.21 MB / 1.135 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003557/2.96, allocations: 254 kB / 2.115 GB, free: 12.96 MB / 1.135 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004654/2.96, allocations: 459 kB / 2.116 GB, free: 12.43 MB / 1.135 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001034/2.961, allocations: 438.6 kB / 2.116 GB, free: 12.01 MB / 1.135 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.547e-06/2.961, allocations: 0 / 2.116 GB, free: 12.01 MB / 1.135 GB Notification: Performance of matching and sorting (n=108) (initialization): time 0.001776/2.963, allocations: 0.9904 MB / 2.117 GB, free: 11 MB / 1.135 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002709/2.963, allocations: 1.344 MB / 2.119 GB, free: 9.578 MB / 1.135 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.13e-05/2.963, allocations: 4 kB / 2.119 GB, free: 9.574 MB / 1.135 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002543/2.964, allocations: 69.69 kB / 2.119 GB, free: 9.5 MB / 1.135 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006468/2.964, allocations: 183.7 kB / 2.119 GB, free: 9.32 MB / 1.135 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00178/2.966, allocations: 2.846 MB / 2.122 GB, free: 6.246 MB / 1.135 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001115/2.967, allocations: 103.3 kB / 2.122 GB, free: 6.145 MB / 1.135 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.008e-05/2.967, allocations: 39.98 kB / 2.122 GB, free: 6.105 MB / 1.135 GB Notification: Performance of prepare postOptimizeDAE: time 6.492e-06/2.967, allocations: 8 kB / 2.122 GB, free: 6.098 MB / 1.135 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001659/2.969, allocations: 0.8148 MB / 2.123 GB, free: 5.277 MB / 1.135 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.379e-05/2.969, allocations: 8.094 kB / 2.123 GB, free: 5.27 MB / 1.135 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001298/2.969, allocations: 69.62 kB / 2.123 GB, free: 5.195 MB / 1.135 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005835/2.97, allocations: 175.7 kB / 2.123 GB, free: 5.023 MB / 1.135 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001565/2.971, allocations: 2.851 MB / 2.126 GB, free: 1.941 MB / 1.135 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001129/2.973, allocations: 91.39 kB / 2.126 GB, free: 1.852 MB / 1.135 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.357e-05/2.973, allocations: 43.89 kB / 2.126 GB, free: 1.809 MB / 1.135 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.0002142/2.973, allocations: 116.8 kB / 2.126 GB, free: 1.688 MB / 1.135 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002259/2.973, allocations: 142.2 kB / 2.126 GB, free: 1.547 MB / 1.135 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002183/2.975, allocations: 1.016 MB / 2.127 GB, free: 0.5117 MB / 1.135 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.132e-05/2.975, allocations: 15.98 kB / 2.127 GB, free: 0.4961 MB / 1.135 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.252e-06/2.975, allocations: 4 kB / 2.127 GB, free: 0.4922 MB / 1.135 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001385/2.977, allocations: 0.8032 MB / 2.128 GB, free: 15.64 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005044/2.982, allocations: 2.507 MB / 2.13 GB, free: 13.03 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.592e-06/2.982, allocations: 0 / 2.13 GB, free: 13.03 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000593/2.982, allocations: 135.8 kB / 2.13 GB, free: 12.89 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002226/2.983, allocations: 74.06 kB / 2.13 GB, free: 12.82 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.777e-05/2.983, allocations: 15.89 kB / 2.13 GB, free: 12.8 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002323/2.985, allocations: 2.844 MB / 2.133 GB, free: 9.73 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.047e-06/2.985, allocations: 4 kB / 2.133 GB, free: 9.727 MB / 1.151 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002736/2.988, allocations: 1.567 MB / 2.135 GB, free: 8.008 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008415/2.989, allocations: 351 kB / 2.135 GB, free: 7.645 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001966/2.989, allocations: 16.02 kB / 2.135 GB, free: 7.629 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006845/2.989, allocations: 35.91 kB / 2.135 GB, free: 7.594 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.221e-05/2.99, allocations: 44.5 kB / 2.135 GB, free: 7.551 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.437e-05/2.99, allocations: 31.98 kB / 2.135 GB, free: 7.52 MB / 1.151 GB Notification: Performance of sort global known variables: time 0.00143/2.991, allocations: 0.8599 MB / 2.136 GB, free: 6.66 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.004348/2.995, allocations: 1.193 MB / 2.137 GB, free: 5.465 MB / 1.151 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.003022/2.998, allocations: 1.262 MB / 2.138 GB, free: 4.285 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.002651/3.001, allocations: 1.569 MB / 2.14 GB, free: 2.664 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 5.3e-06/3.001, allocations: 0 / 2.14 GB, free: 2.664 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0007734/3.002, allocations: 0.5489 MB / 2.14 GB, free: 2.094 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003249/3.005, allocations: 0.5986 MB / 2.141 GB, free: 1.5 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004728/3.01, allocations: 2.265 MB / 2.143 GB, free: 15.16 MB / 1.167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001287/3.011, allocations: 1.431 MB / 2.145 GB, free: 13.7 MB / 1.167 GB Notification: Performance of SimCode: time 7.51e-07/3.011, allocations: 0 / 2.145 GB, free: 13.7 MB / 1.167 GB Notification: Performance of Templates: time 0.6358/3.647, allocations: 37.64 MB / 2.181 GB, free: 376.6 MB / 1.167 GB make -j1 -f Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXOneUTube.makefile make -j1 -f Buildings_9_Buildings.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/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_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_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXOneUTube.o Buildings_9_Buildings.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/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_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_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXOneUTube_functions.o Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXOneUTube_functions.c Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXOneUTube_functions.c:989: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.InternalHEXOneUTube_functions.o] Error 1