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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.7834/0.7834, allocations: 141.8 MB / 149.3 MB, free: 9.207 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00106/0.00106, allocations: 177 kB / 182.2 MB, free: 9.457 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.409/1.409, allocations: 221.5 MB / 436.4 MB, free: 13.27 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001126/0.001126, allocations: 84.16 kB / 0.5074 GB, free: 10.1 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001723/0.001723, allocations: 268 kB / 0.5889 GB, free: 54.64 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 2.03e-05/2.031e-05, allocations: 4 kB / 0.6766 GB, free: 12.73 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4565/0.4566, allocations: 82.77 MB / 0.7574 GB, free: 32 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1766/0.6332, allocations: 128.7 MB / 0.8831 GB, free: 15.14 MB / 0.5573 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004227/0.6337, allocations: 127.7 kB / 0.8832 GB, free: 15.02 MB / 0.5573 GB Notification: Performance of FrontEnd - DAE generated: time 0.443/1.077, allocations: 15.1 MB / 0.8979 GB, free: 128.4 MB / 0.5573 GB Notification: Performance of FrontEnd: time 2.455e-06/1.077, allocations: 0.625 kB / 0.8979 GB, free: 128.4 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 1.147e-05/1.077, allocations: 0.625 kB / 0.8979 GB, free: 128.4 MB / 0.5573 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.001084/1.078, allocations: 0.5377 MB / 0.8985 GB, free: 128 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 5.02e-05/1.078, allocations: 11.03 kB / 0.8985 GB, free: 128 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.549e-05/1.078, allocations: 81.25 kB / 0.8986 GB, free: 127.9 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001283/1.078, allocations: 258.9 kB / 0.8988 GB, free: 127.6 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.498e-05/1.078, allocations: 151.3 kB / 0.8989 GB, free: 127.5 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.402e-05/1.078, allocations: 151.7 kB / 0.8991 GB, free: 127.3 MB / 0.5573 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 3.204e-05/1.078, allocations: 152.5 kB / 0.8992 GB, free: 127.2 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 3.161e-05/1.078, allocations: 105.9 kB / 0.8993 GB, free: 127.1 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.36e-05/1.078, allocations: 78.66 kB / 0.8994 GB, free: 127 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.582e-05/1.078, allocations: 153.8 kB / 0.8996 GB, free: 126.9 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.183e-05/1.078, allocations: 151.4 kB / 0.8997 GB, free: 126.7 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001984/1.079, allocations: 443.2 kB / 0.9001 GB, free: 126.3 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 4.629e-05/1.079, allocations: 176.7 kB / 0.9003 GB, free: 126.1 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.688e-05/1.079, allocations: 80.64 kB / 0.9004 GB, free: 126 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 1.487e-05/1.079, allocations: 76.44 kB / 0.9004 GB, free: 125.9 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.359e-05/1.079, allocations: 110 kB / 0.9005 GB, free: 125.8 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=0): time 1.042e-06/1.079, allocations: 3.625 kB / 0.9006 GB, free: 125.8 MB / 0.5573 GB Notification: Performance of matching and sorting (n=0): time 7.585e-05/1.079, allocations: 33.22 kB / 0.9006 GB, free: 125.8 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.623e-05/1.079, allocations: 52.55 kB / 0.9006 GB, free: 125.7 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001143/1.079, allocations: 114.2 kB / 0.9007 GB, free: 125.6 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 7.063e-06/1.079, allocations: 26.67 kB / 0.9008 GB, free: 125.6 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 3.912e-05/1.079, allocations: 90.78 kB / 0.9009 GB, free: 125.5 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 1.353e-06/1.079, allocations: 0 / 0.9009 GB, free: 125.5 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.545e-06/1.079, allocations: 0.7188 kB / 0.9009 GB, free: 125.5 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 5.366e-05/1.079, allocations: 321 kB / 0.9012 GB, free: 125.2 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.699e-05/1.079, allocations: 4.406 kB / 0.9012 GB, free: 125.2 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.511e-05/1.079, allocations: 4.688 kB / 0.9012 GB, free: 125.2 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 7e-05/1.079, allocations: 9.781 kB / 0.9012 GB, free: 125.2 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/1.079, allocations: 0.8125 kB / 0.9012 GB, free: 125.2 MB / 0.5573 GB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001414/1.079, allocations: 51.94 kB / 0.9012 GB, free: 125.2 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.781e-05/1.079, allocations: 7.125 kB / 0.9012 GB, free: 125.2 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.278e-05/1.079, allocations: 3.719 kB / 0.9012 GB, free: 125.2 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.409e-05/1.079, allocations: 0.5625 kB / 0.9012 GB, free: 125.2 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.386e-06/1.079, allocations: 3.938 kB / 0.9012 GB, free: 125.2 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.089e-06/1.079, allocations: 2.25 kB / 0.9012 GB, free: 125.2 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.029e-05/1.079, allocations: 3.438 kB / 0.9013 GB, free: 125.2 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.536e-06/1.079, allocations: 0.75 kB / 0.9013 GB, free: 125.2 MB / 0.5573 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.545e-05/1.08, allocations: 181.7 kB / 0.9014 GB, free: 125 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.119e-05/1.08, allocations: 115 kB / 0.9015 GB, free: 124.9 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.436e-05/1.08, allocations: 111.8 kB / 0.9016 GB, free: 124.8 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.481e-05/1.08, allocations: 182.6 kB / 0.9018 GB, free: 124.6 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.896e-05/1.08, allocations: 180.6 kB / 0.902 GB, free: 124.4 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.814e-05/1.08, allocations: 185 kB / 0.9022 GB, free: 124.2 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001482/1.08, allocations: 390.1 kB / 0.9025 GB, free: 123.8 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.725e-05/1.08, allocations: 103.1 kB / 0.9026 GB, free: 123.7 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.028e-05/1.08, allocations: 110.6 kB / 0.9027 GB, free: 123.6 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.456e-05/1.08, allocations: 178 kB / 0.9029 GB, free: 123.4 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.608e-05/1.08, allocations: 183 kB / 0.9031 GB, free: 123.2 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.719e-05/1.08, allocations: 186.7 kB / 0.9033 GB, free: 123.1 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.833e-05/1.08, allocations: 179.2 kB / 0.9034 GB, free: 122.9 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.108e-05/1.08, allocations: 307.8 kB / 0.9037 GB, free: 122.6 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 4.279e-05/1.08, allocations: 187.3 kB / 0.9039 GB, free: 122.4 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.474e-05/1.08, allocations: 182.2 kB / 0.9041 GB, free: 122.2 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.119e-05/1.08, allocations: 103.5 kB / 0.9042 GB, free: 122.1 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.718e-05/1.08, allocations: 188.3 kB / 0.9044 GB, free: 121.9 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.932e-05/1.08, allocations: 107.5 kB / 0.9045 GB, free: 121.8 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 5.099e-05/1.08, allocations: 94.09 kB / 0.9045 GB, free: 121.7 MB / 0.5573 GB Notification: Performance of sort global known variables: time 1.132e-06/1.08, allocations: 0 / 0.9045 GB, free: 121.7 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.001196/1.082, allocations: 327.5 kB / 0.9049 GB, free: 121.7 MB / 0.5573 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.001418/1.083, allocations: 0.5555 MB / 0.9054 GB, free: 121.4 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 8.429e-05/1.083, allocations: 40.62 kB / 0.9054 GB, free: 121.4 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/1.083, allocations: 3.938 kB / 0.9054 GB, free: 121.4 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 2.655e-06/1.083, allocations: 4.5 kB / 0.9055 GB, free: 121.4 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002255/1.083, allocations: 0.5236 MB / 0.906 GB, free: 120.9 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000185/1.084, allocations: 148.4 kB / 0.9061 GB, free: 120.7 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001164/1.084, allocations: 0.6854 MB / 0.9068 GB, free: 120 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 1.362e-05/1.084, allocations: 1.453 kB / 0.9068 GB, free: 120 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.456e-06/1.084, allocations: 9.438 kB / 0.9068 GB, free: 120 MB / 0.5573 GB Notification: Performance of SimCode: time 2.5e-07/1.084, allocations: 0 / 0.9068 GB, free: 120 MB / 0.5573 GB Notification: Performance of Templates: time 0.009854/1.094, allocations: 5.3 MB / 0.912 GB, free: 119.6 MB / 0.5573 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 -Os -fPIC -falign-functions -mfpmath=sse "-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 -Os -fPIC -falign-functions -mfpmath=sse "-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:786: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