Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesOneUTube.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.Functions.Validation.InternalResistancesOneUTube,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesOneUTube") translateModel(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesOneUTube,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesOneUTube") [: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.7718/0.7718, allocations: 141.8 MB / 149.1 MB, free: 4.512 MB / 122.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001092/0.001092, allocations: 187.7 kB / 181.9 MB, free: 184 kB / 138.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.347/1.347, allocations: 221.3 MB / 436 MB, free: 9.297 MB / 330.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009304/0.0009303, allocations: 92.81 kB / 0.507 GB, free: 24.22 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001966/0.001966, allocations: 274.1 kB / 0.5884 GB, free: 12.34 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 1.023e-05/1.026e-05, allocations: 4 kB / 0.6759 GB, free: 2.641 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4058/0.4058, allocations: 82.77 MB / 0.7568 GB, free: 112.9 MB / 0.5263 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1344/0.5403, allocations: 128.6 MB / 0.8823 GB, free: 120 kB / 0.5419 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002955/0.5406, allocations: 131.6 kB / 0.8825 GB, free: 15.99 MB / 0.5575 GB Notification: Performance of FrontEnd: time 0.0469/0.5875, allocations: 14.9 MB / 0.897 GB, free: 1.129 MB / 0.5575 GB Notification: Performance of Transformations before backend: time 9.868e-06/0.5876, allocations: 0 / 0.897 GB, free: 1.129 MB / 0.5575 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 0 * Number of variables: 0 Notification: Performance of Generate backend data structure: time 0.001121/0.5887, allocations: 0.5526 MB / 0.8976 GB, free: 0.5312 MB / 0.5575 GB Notification: Performance of prepare preOptimizeDAE: time 4.343e-05/0.5887, allocations: 8.031 kB / 0.8976 GB, free: 0.5234 MB / 0.5575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.033e-05/0.5888, allocations: 75.28 kB / 0.8976 GB, free: 460 kB / 0.5575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001777/0.589, allocations: 254.2 kB / 0.8979 GB, free: 164 kB / 0.5575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.206e-05/0.5891, allocations: 150.6 kB / 0.898 GB, free: 12 kB / 0.5575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.445e-05/0.5892, allocations: 159.6 kB / 0.8982 GB, free: 15.86 MB / 0.5732 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001207/0.5893, allocations: 150.6 kB / 0.8983 GB, free: 15.71 MB / 0.5732 GB Notification: Performance of preOpt clockPartitioning (simulation): time 6.49e-05/0.5894, allocations: 108.9 kB / 0.8984 GB, free: 15.59 MB / 0.5732 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.907e-05/0.5894, allocations: 79.28 kB / 0.8985 GB, free: 15.52 MB / 0.5732 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.101e-05/0.5895, allocations: 154.5 kB / 0.8987 GB, free: 15.36 MB / 0.5732 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.801e-05/0.5896, allocations: 150.6 kB / 0.8988 GB, free: 15.21 MB / 0.5732 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003699/0.59, allocations: 438.5 kB / 0.8992 GB, free: 14.75 MB / 0.5732 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001348/0.5901, allocations: 177.1 kB / 0.8994 GB, free: 14.57 MB / 0.5732 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.544e-05/0.5902, allocations: 80.14 kB / 0.8995 GB, free: 14.48 MB / 0.5732 GB Notification: Performance of preOpt evalFunc (simulation): time 3.728e-05/0.5902, allocations: 79.22 kB / 0.8995 GB, free: 14.41 MB / 0.5732 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.838e-05/0.5903, allocations: 109.8 kB / 0.8996 GB, free: 14.29 MB / 0.5732 GB Notification: Performance of pre-optimization done (n=0): time 4.829e-06/0.5903, allocations: 4 kB / 0.8996 GB, free: 14.29 MB / 0.5732 GB Notification: Performance of matching and sorting (n=0): time 0.0001142/0.5904, allocations: 34.2 kB / 0.8997 GB, free: 14.25 MB / 0.5732 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.315e-05/0.5905, allocations: 51.41 kB / 0.8997 GB, free: 14.18 MB / 0.5732 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000174/0.5906, allocations: 120.2 kB / 0.8998 GB, free: 14.06 MB / 0.5732 GB Notification: Performance of collectPreVariables (initialization): time 1.812e-05/0.5907, allocations: 25.7 kB / 0.8999 GB, free: 14.03 MB / 0.5732 GB Notification: Performance of collectInitialEqns (initialization): time 5.702e-05/0.5907, allocations: 84.14 kB / 0.8999 GB, free: 13.94 MB / 0.5732 GB Notification: Performance of collectInitialBindings (initialization): time 2.565e-06/0.5907, allocations: 0 / 0.8999 GB, free: 13.94 MB / 0.5732 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.398e-06/0.5908, allocations: 7.188 kB / 0.9 GB, free: 13.94 MB / 0.5732 GB Notification: Performance of setup shared object (initialization): time 0.0001695/0.5909, allocations: 314.8 kB / 0.9003 GB, free: 13.62 MB / 0.5732 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.271e-05/0.591, allocations: 12 kB / 0.9003 GB, free: 13.61 MB / 0.5732 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.521e-05/0.591, allocations: 0 / 0.9003 GB, free: 13.61 MB / 0.5732 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001036/0.5911, allocations: 8 kB / 0.9003 GB, free: 13.6 MB / 0.5732 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.44e-06/0.5911, allocations: 0 / 0.9003 GB, free: 13.6 MB / 0.5732 GB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001992/0.5914, allocations: 57.53 kB / 0.9003 GB, free: 13.54 MB / 0.5732 GB Notification: Performance of prepare postOptimizeDAE: time 2.003e-05/0.5914, allocations: 4 kB / 0.9003 GB, free: 13.54 MB / 0.5732 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.99e-05/0.5914, allocations: 4 kB / 0.9003 GB, free: 13.53 MB / 0.5732 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.82e-05/0.5914, allocations: 0 / 0.9003 GB, free: 13.53 MB / 0.5732 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.933e-06/0.5915, allocations: 0 / 0.9003 GB, free: 13.53 MB / 0.5732 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.683e-06/0.5915, allocations: 0 / 0.9003 GB, free: 13.53 MB / 0.5732 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.017e-05/0.5915, allocations: 7.969 kB / 0.9003 GB, free: 13.52 MB / 0.5732 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.196e-05/0.5915, allocations: 3.984 kB / 0.9003 GB, free: 13.52 MB / 0.5732 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001057/0.5916, allocations: 180.3 kB / 0.9005 GB, free: 13.34 MB / 0.5732 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.651e-05/0.5917, allocations: 104.9 kB / 0.9006 GB, free: 13.23 MB / 0.5732 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.094e-05/0.5918, allocations: 116.3 kB / 0.9007 GB, free: 13.1 MB / 0.5732 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.625e-05/0.5919, allocations: 180.3 kB / 0.9009 GB, free: 12.91 MB / 0.5732 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.944e-05/0.592, allocations: 184.2 kB / 0.9011 GB, free: 12.73 MB / 0.5732 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.237e-05/0.592, allocations: 184.2 kB / 0.9013 GB, free: 12.54 MB / 0.5732 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00029/0.5923, allocations: 393.7 kB / 0.9016 GB, free: 12.11 MB / 0.5732 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.603e-05/0.5924, allocations: 101 kB / 0.9017 GB, free: 12 MB / 0.5732 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.229e-05/0.5924, allocations: 108.9 kB / 0.9018 GB, free: 11.89 MB / 0.5732 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001118/0.5925, allocations: 180.4 kB / 0.902 GB, free: 11.71 MB / 0.5732 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.098e-05/0.5926, allocations: 184.3 kB / 0.9022 GB, free: 11.52 MB / 0.5732 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.474e-05/0.5927, allocations: 180.2 kB / 0.9023 GB, free: 11.34 MB / 0.5732 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.362e-05/0.5928, allocations: 180.3 kB / 0.9025 GB, free: 11.15 MB / 0.5732 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001649/0.593, allocations: 312.9 kB / 0.9028 GB, free: 10.82 MB / 0.5732 GB Notification: Performance of postOpt removeConstants (simulation): time 8.671e-05/0.5931, allocations: 186 kB / 0.903 GB, free: 10.62 MB / 0.5732 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.689e-05/0.5932, allocations: 176.3 kB / 0.9032 GB, free: 10.44 MB / 0.5732 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001051/0.5933, allocations: 116.9 kB / 0.9033 GB, free: 10.32 MB / 0.5732 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.205e-05/0.5934, allocations: 176.3 kB / 0.9034 GB, free: 10.14 MB / 0.5732 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.069e-05/0.5934, allocations: 105 kB / 0.9035 GB, free: 10.03 MB / 0.5732 GB Notification: Performance of sort global known variables: time 6.009e-05/0.5935, allocations: 91.28 kB / 0.9036 GB, free: 9.938 MB / 0.5732 GB Notification: Performance of remove unused functions: time 0.001055/0.5945, allocations: 328 kB / 0.9039 GB, free: 9.617 MB / 0.5732 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (0): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001684/0.5962, allocations: 0.564 MB / 0.9045 GB, free: 9.051 MB / 0.5732 GB Notification: Performance of simCode: created initialization part: time 0.0001016/0.5963, allocations: 37.69 kB / 0.9045 GB, free: 9.008 MB / 0.5732 GB Notification: Performance of simCode: created event and clocks part: time 4.318e-06/0.5964, allocations: 4.875 kB / 0.9045 GB, free: 9.004 MB / 0.5732 GB Notification: Performance of simCode: created simulation system equations: time 2.254e-06/0.5964, allocations: 3.938 kB / 0.9045 GB, free: 9 MB / 0.5732 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003562/0.5967, allocations: 0.5302 MB / 0.9051 GB, free: 8.465 MB / 0.5732 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002247/0.597, allocations: 143.1 kB / 0.9052 GB, free: 8.301 MB / 0.5732 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003345/0.5973, allocations: 0.6958 MB / 0.9059 GB, free: 7.578 MB / 0.5732 GB Notification: Performance of SimCode: time 6.31e-07/0.5973, allocations: 4 kB / 0.9059 GB, free: 7.574 MB / 0.5732 GB Notification: Performance of Templates: time 0.009875/0.6072, allocations: 5.524 MB / 0.9113 GB, free: 2.113 MB / 0.5732 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesOneUTube.makefile make -j1 -f BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesOneUTube.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_Functions_Validation_InternalResistancesOneUTube -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=0 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesOneUTube.o BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesOneUTube.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_Functions_Validation_InternalResistancesOneUTube -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=0 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesOneUTube_functions.o BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesOneUTube_functions.c BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesOneUTube_functions.c:857: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.Functions.Validation.InternalResistancesOneUTube_functions.o] Error 1