Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesOneUTubeNegative.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.InternalResistancesOneUTubeNegative,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesOneUTubeNegative") translateModel(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesOneUTubeNegative,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesOneUTubeNegative") [: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.7588/0.7588, allocations: 141.8 MB / 149.1 MB, free: 1.379 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.001471/0.001471, allocations: 181.2 kB / 181.9 MB, free: 0.7539 MB / 154.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.389/1.389, allocations: 221.3 MB / 436 MB, free: 5.422 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.0009671/0.0009672, allocations: 84.66 kB / 0.507 GB, free: 2.094 MB / 410.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001747/0.001747, allocations: 274.5 kB / 0.5884 GB, free: 47.23 MB / 410.9 MB Notification: Performance of FrontEnd - loaded program: time 1.046e-05/1.047e-05, allocations: 2.625 kB / 0.6759 GB, free: 59.55 MB / 442.9 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1792/0.1792, allocations: 82.77 MB / 0.7568 GB, free: 0.6133 MB / 442.9 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5333/0.7126, allocations: 128.6 MB / 0.8824 GB, free: 20.23 MB / 0.5419 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002869/0.7129, allocations: 122 kB / 0.8825 GB, free: 20.23 MB / 0.5419 GB Notification: Performance of FrontEnd: time 0.04393/0.7569, allocations: 14.91 MB / 0.897 GB, free: 19.55 MB / 0.5419 GB Notification: Performance of Transformations before backend: time 6.883e-06/0.7569, allocations: 4 kB / 0.897 GB, free: 19.55 MB / 0.5419 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.001052/0.7579, allocations: 0.548 MB / 0.8976 GB, free: 19.05 MB / 0.5419 GB Notification: Performance of prepare preOptimizeDAE: time 4.062e-05/0.758, allocations: 7.719 kB / 0.8976 GB, free: 19.05 MB / 0.5419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.882e-05/0.7581, allocations: 82 kB / 0.8977 GB, free: 18.97 MB / 0.5419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001089/0.7582, allocations: 250.9 kB / 0.8979 GB, free: 18.7 MB / 0.5419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.423e-05/0.7582, allocations: 150.6 kB / 0.898 GB, free: 18.55 MB / 0.5419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.991e-05/0.7582, allocations: 163.1 kB / 0.8982 GB, free: 18.39 MB / 0.5419 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 2.796e-05/0.7583, allocations: 154.5 kB / 0.8983 GB, free: 18.24 MB / 0.5419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 5.919e-05/0.7583, allocations: 101 kB / 0.8984 GB, free: 18.13 MB / 0.5419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.356e-05/0.7584, allocations: 75.94 kB / 0.8985 GB, free: 18.06 MB / 0.5419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.291e-05/0.7584, allocations: 150.6 kB / 0.8987 GB, free: 17.91 MB / 0.5419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.067e-05/0.7584, allocations: 153.6 kB / 0.8988 GB, free: 17.76 MB / 0.5419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002069/0.7586, allocations: 444.5 kB / 0.8992 GB, free: 17.31 MB / 0.5419 GB Notification: Performance of preOpt comSubExp (simulation): time 4.113e-05/0.7587, allocations: 165.1 kB / 0.8994 GB, free: 17.14 MB / 0.5419 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.212e-05/0.7587, allocations: 84.64 kB / 0.8995 GB, free: 17.05 MB / 0.5419 GB Notification: Performance of preOpt evalFunc (simulation): time 1.635e-05/0.7587, allocations: 79.06 kB / 0.8995 GB, free: 16.98 MB / 0.5419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.539e-05/0.7588, allocations: 118.1 kB / 0.8996 GB, free: 16.86 MB / 0.5419 GB Notification: Performance of pre-optimization done (n=0): time 1.373e-06/0.7588, allocations: 3.938 kB / 0.8997 GB, free: 16.86 MB / 0.5419 GB Notification: Performance of matching and sorting (n=0): time 7.02e-05/0.7588, allocations: 30.39 kB / 0.8997 GB, free: 16.82 MB / 0.5419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.826e-05/0.7589, allocations: 51.41 kB / 0.8997 GB, free: 16.76 MB / 0.5419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.521e-05/0.759, allocations: 118.6 kB / 0.8998 GB, free: 16.66 MB / 0.5419 GB Notification: Performance of collectPreVariables (initialization): time 8.175e-06/0.759, allocations: 25.7 kB / 0.8999 GB, free: 16.63 MB / 0.5419 GB Notification: Performance of collectInitialEqns (initialization): time 2.255e-05/0.759, allocations: 85.02 kB / 0.8999 GB, free: 16.55 MB / 0.5419 GB Notification: Performance of collectInitialBindings (initialization): time 1.513e-06/0.759, allocations: 0 / 0.8999 GB, free: 16.55 MB / 0.5419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.926e-06/0.759, allocations: 4 kB / 0.9 GB, free: 16.55 MB / 0.5419 GB Notification: Performance of setup shared object (initialization): time 5.086e-05/0.7591, allocations: 317.6 kB / 0.9003 GB, free: 16.23 MB / 0.5419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.696e-05/0.7591, allocations: 7.875 kB / 0.9003 GB, free: 16.23 MB / 0.5419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.283e-05/0.7591, allocations: 0 / 0.9003 GB, free: 16.23 MB / 0.5419 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.796e-05/0.7592, allocations: 12.92 kB / 0.9003 GB, free: 16.23 MB / 0.5419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.814e-06/0.7592, allocations: 0 / 0.9003 GB, free: 16.23 MB / 0.5419 GB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001367/0.7593, allocations: 51.58 kB / 0.9003 GB, free: 16.2 MB / 0.5419 GB Notification: Performance of prepare postOptimizeDAE: time 1.284e-05/0.7594, allocations: 3.844 kB / 0.9003 GB, free: 16.2 MB / 0.5419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.853e-05/0.7594, allocations: 4.516 kB / 0.9003 GB, free: 16.2 MB / 0.5419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.257e-05/0.7594, allocations: 0 / 0.9003 GB, free: 16.2 MB / 0.5419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.254e-06/0.7594, allocations: 4.859 kB / 0.9003 GB, free: 16.19 MB / 0.5419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.258e-06/0.7594, allocations: 0 / 0.9003 GB, free: 16.19 MB / 0.5419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.457e-05/0.7595, allocations: 3.906 kB / 0.9003 GB, free: 16.19 MB / 0.5419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.546e-06/0.7595, allocations: 4.5 kB / 0.9003 GB, free: 16.19 MB / 0.5419 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 5.477e-05/0.7595, allocations: 176.3 kB / 0.9005 GB, free: 16.01 MB / 0.5419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.444e-05/0.7596, allocations: 113.2 kB / 0.9006 GB, free: 15.89 MB / 0.5419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.373e-05/0.7596, allocations: 122.3 kB / 0.9007 GB, free: 15.76 MB / 0.5419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.767e-05/0.7596, allocations: 184.8 kB / 0.9009 GB, free: 15.58 MB / 0.5419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.64e-05/0.7597, allocations: 180.7 kB / 0.9011 GB, free: 15.4 MB / 0.5419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.784e-05/0.7597, allocations: 180.9 kB / 0.9013 GB, free: 15.21 MB / 0.5419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001377/0.7599, allocations: 394.2 kB / 0.9016 GB, free: 14.8 MB / 0.5419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.741e-05/0.7599, allocations: 101.6 kB / 0.9017 GB, free: 14.7 MB / 0.5419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.624e-05/0.7599, allocations: 109.6 kB / 0.9018 GB, free: 14.58 MB / 0.5419 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.141e-05/0.7599, allocations: 177 kB / 0.902 GB, free: 14.4 MB / 0.5419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.105e-05/0.76, allocations: 184.7 kB / 0.9022 GB, free: 14.22 MB / 0.5419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.729e-05/0.76, allocations: 186.3 kB / 0.9024 GB, free: 14.04 MB / 0.5419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.71e-05/0.76, allocations: 176.3 kB / 0.9025 GB, free: 13.86 MB / 0.5419 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 7.109e-05/0.7601, allocations: 310.8 kB / 0.9028 GB, free: 13.54 MB / 0.5419 GB Notification: Performance of postOpt removeConstants (simulation): time 4.131e-05/0.7602, allocations: 190.3 kB / 0.903 GB, free: 13.33 MB / 0.5419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.208e-05/0.7602, allocations: 181 kB / 0.9032 GB, free: 13.15 MB / 0.5419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.153e-05/0.7603, allocations: 105.5 kB / 0.9033 GB, free: 13.04 MB / 0.5419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.839e-05/0.7603, allocations: 177 kB / 0.9034 GB, free: 12.86 MB / 0.5419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.913e-05/0.7604, allocations: 109.2 kB / 0.9036 GB, free: 12.75 MB / 0.5419 GB Notification: Performance of sort global known variables: time 4.019e-05/0.7604, allocations: 98.91 kB / 0.9036 GB, free: 12.68 MB / 0.5419 GB Notification: Performance of remove unused functions: time 0.001153/0.7616, allocations: 320.7 kB / 0.904 GB, free: 12.58 MB / 0.5419 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.002374/0.7639, allocations: 0.5666 MB / 0.9045 GB, free: 12.32 MB / 0.5419 GB Notification: Performance of simCode: created initialization part: time 0.000113/0.7641, allocations: 41.92 kB / 0.9045 GB, free: 12.29 MB / 0.5419 GB Notification: Performance of simCode: created event and clocks part: time 3.066e-06/0.7641, allocations: 11.94 kB / 0.9046 GB, free: 12.27 MB / 0.5419 GB Notification: Performance of simCode: created simulation system equations: time 2.344e-06/0.7641, allocations: 0 / 0.9046 GB, free: 12.27 MB / 0.5419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002986/0.7644, allocations: 0.5288 MB / 0.9051 GB, free: 11.75 MB / 0.5419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002351/0.7647, allocations: 135.1 kB / 0.9052 GB, free: 11.61 MB / 0.5419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002094/0.7649, allocations: 0.698 MB / 0.9059 GB, free: 26.9 MB / 0.5575 GB Notification: Performance of SimCode: time 3.61e-07/0.7649, allocations: 0 / 0.9059 GB, free: 26.9 MB / 0.5575 GB Notification: Performance of Templates: time 0.009887/0.7748, allocations: 5.526 MB / 0.9113 GB, free: 24.89 MB / 0.5575 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesOneUTubeNegative.makefile make -j1 -f BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesOneUTubeNegative.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_InternalResistancesOneUTubeNegative -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.InternalResistancesOneUTubeNegative.o BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesOneUTubeNegative.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_InternalResistancesOneUTubeNegative -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.InternalResistancesOneUTubeNegative_functions.o BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesOneUTubeNegative_functions.c BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesOneUTubeNegative_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.InternalResistancesOneUTubeNegative_functions.o] Error 1