Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTubeNegative.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.Functions.Validation.InternalResistancesTwoUTubeNegative,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTubeNegative") translateModel(Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTubeNegative,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTubeNegative") [: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.53/1.53, allocations: 289.8 MB / 297.1 MB, free: 12.64 MB / 242.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001106/0.001106, allocations: 172.8 kB / 366.3 MB, free: 11.95 MB / 290.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.524/1.524, allocations: 205.1 MB / 0.6256 GB, free: 2.055 MB / 466.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009481/0.000948, allocations: 93.78 kB / 0.7395 GB, free: 47.03 MB / 0.5183 GB Notification: Performance of FrontEnd - loaded program: time 8.476e-06/8.516e-06, allocations: 0 / 0.8591 GB, free: 7.148 MB / 0.5964 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7518/0.7518, allocations: 116.3 MB / 0.9726 GB, free: 81.63 MB / 0.6746 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2048/0.9567, allocations: 159.4 MB / 1.128 GB, free: 0.5977 MB / 0.7214 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003064/0.957, allocations: 115.9 kB / 1.128 GB, free: 496 kB / 0.7214 GB Notification: Performance of FrontEnd: time 0.04743/1.004, allocations: 15 MB / 1.143 GB, free: 1.523 MB / 0.7371 GB Notification: Performance of Transformations before backend: time 9.467e-06/1.005, allocations: 4 kB / 1.143 GB, free: 1.52 MB / 0.7371 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.001204/1.006, allocations: 0.5487 MB / 1.144 GB, free: 0.9258 MB / 0.7371 GB Notification: Performance of prepare preOptimizeDAE: time 5.066e-05/1.006, allocations: 12.69 kB / 1.144 GB, free: 0.9141 MB / 0.7371 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.847e-05/1.006, allocations: 79.19 kB / 1.144 GB, free: 0.8359 MB / 0.7371 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001955/1.006, allocations: 250.2 kB / 1.144 GB, free: 0.5508 MB / 0.7371 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.861e-05/1.006, allocations: 154.6 kB / 1.144 GB, free: 408 kB / 0.7371 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.217e-05/1.006, allocations: 158.5 kB / 1.144 GB, free: 248 kB / 0.7371 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.156e-05/1.006, allocations: 150.6 kB / 1.144 GB, free: 96 kB / 0.7371 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.67e-05/1.006, allocations: 108.9 kB / 1.144 GB, free: 15.98 MB / 0.7527 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.112e-05/1.006, allocations: 76.41 kB / 1.145 GB, free: 15.91 MB / 0.7527 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.029e-05/1.007, allocations: 151.9 kB / 1.145 GB, free: 15.76 MB / 0.7527 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.272e-05/1.007, allocations: 150.6 kB / 1.145 GB, free: 15.61 MB / 0.7527 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004245/1.007, allocations: 446.4 kB / 1.145 GB, free: 15.14 MB / 0.7527 GB Notification: Performance of preOpt comSubExp (simulation): time 8.693e-05/1.007, allocations: 173.1 kB / 1.145 GB, free: 14.96 MB / 0.7527 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.63e-05/1.007, allocations: 80.14 kB / 1.145 GB, free: 14.88 MB / 0.7527 GB Notification: Performance of preOpt evalFunc (simulation): time 4.514e-05/1.007, allocations: 79.22 kB / 1.146 GB, free: 14.8 MB / 0.7527 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.364e-05/1.007, allocations: 105.8 kB / 1.146 GB, free: 14.68 MB / 0.7527 GB Notification: Performance of pre-optimization done (n=0): time 3.126e-06/1.007, allocations: 0 / 1.146 GB, free: 14.68 MB / 0.7527 GB Notification: Performance of matching and sorting (n=0): time 8.573e-05/1.007, allocations: 45.53 kB / 1.146 GB, free: 14.63 MB / 0.7527 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.04e-05/1.007, allocations: 55.41 kB / 1.146 GB, free: 14.57 MB / 0.7527 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001494/1.008, allocations: 119 kB / 1.146 GB, free: 14.44 MB / 0.7527 GB Notification: Performance of collectPreVariables (initialization): time 1.436e-05/1.008, allocations: 26.27 kB / 1.146 GB, free: 14.41 MB / 0.7527 GB Notification: Performance of collectInitialEqns (initialization): time 4.391e-05/1.008, allocations: 84.14 kB / 1.146 GB, free: 14.32 MB / 0.7527 GB Notification: Performance of collectInitialBindings (initialization): time 1.663e-06/1.008, allocations: 0 / 1.146 GB, free: 14.32 MB / 0.7527 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.825e-06/1.008, allocations: 0 / 1.146 GB, free: 14.32 MB / 0.7527 GB Notification: Performance of setup shared object (initialization): time 0.0001396/1.008, allocations: 318.8 kB / 1.146 GB, free: 14 MB / 0.7527 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.776e-05/1.008, allocations: 8 kB / 1.146 GB, free: 14 MB / 0.7527 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.64e-05/1.008, allocations: 9.406 kB / 1.146 GB, free: 13.99 MB / 0.7527 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.435e-05/1.008, allocations: 7.906 kB / 1.146 GB, free: 13.98 MB / 0.7527 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.586e-06/1.008, allocations: 0 / 1.146 GB, free: 13.98 MB / 0.7527 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001662/1.008, allocations: 58.5 kB / 1.146 GB, free: 13.92 MB / 0.7527 GB Notification: Performance of prepare postOptimizeDAE: time 1.374e-05/1.008, allocations: 4 kB / 1.146 GB, free: 13.91 MB / 0.7527 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.604e-05/1.008, allocations: 7.906 kB / 1.146 GB, free: 13.91 MB / 0.7527 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.375e-05/1.008, allocations: 0 / 1.146 GB, free: 13.91 MB / 0.7527 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.102e-06/1.008, allocations: 0 / 1.146 GB, free: 13.91 MB / 0.7527 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.558e-06/1.008, allocations: 0 / 1.146 GB, free: 13.91 MB / 0.7527 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.279e-05/1.008, allocations: 4.062 kB / 1.146 GB, free: 13.9 MB / 0.7527 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.388e-06/1.008, allocations: 5.375 kB / 1.146 GB, free: 13.9 MB / 0.7527 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 9.812e-05/1.008, allocations: 180.2 kB / 1.147 GB, free: 13.71 MB / 0.7527 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.405e-05/1.008, allocations: 105 kB / 1.147 GB, free: 13.61 MB / 0.7527 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.94e-05/1.009, allocations: 120.4 kB / 1.147 GB, free: 13.48 MB / 0.7527 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.924e-05/1.009, allocations: 176.3 kB / 1.147 GB, free: 13.3 MB / 0.7527 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.423e-05/1.009, allocations: 184.8 kB / 1.147 GB, free: 13.11 MB / 0.7527 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.327e-05/1.009, allocations: 180.2 kB / 1.147 GB, free: 12.93 MB / 0.7527 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002218/1.009, allocations: 393.8 kB / 1.148 GB, free: 12.5 MB / 0.7527 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.49e-05/1.009, allocations: 105 kB / 1.148 GB, free: 12.39 MB / 0.7527 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.902e-05/1.009, allocations: 104.9 kB / 1.148 GB, free: 12.28 MB / 0.7527 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.189e-05/1.009, allocations: 176.3 kB / 1.148 GB, free: 12.1 MB / 0.7527 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.205e-05/1.009, allocations: 187.2 kB / 1.148 GB, free: 11.91 MB / 0.7527 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.337e-05/1.009, allocations: 189.2 kB / 1.148 GB, free: 11.72 MB / 0.7527 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0001202/1.009, allocations: 176.3 kB / 1.149 GB, free: 11.54 MB / 0.7527 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001506/1.01, allocations: 311.6 kB / 1.149 GB, free: 11.21 MB / 0.7527 GB Notification: Performance of postOpt removeConstants (simulation): time 8.718e-05/1.01, allocations: 190.1 kB / 1.149 GB, free: 11 MB / 0.7527 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.648e-05/1.01, allocations: 180.2 kB / 1.149 GB, free: 10.82 MB / 0.7527 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.41e-05/1.01, allocations: 108.9 kB / 1.149 GB, free: 10.71 MB / 0.7527 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.567e-05/1.01, allocations: 176.3 kB / 1.149 GB, free: 10.53 MB / 0.7527 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.701e-05/1.01, allocations: 106.5 kB / 1.15 GB, free: 10.42 MB / 0.7527 GB Notification: Performance of sort global known variables: time 5.341e-05/1.01, allocations: 98.55 kB / 1.15 GB, free: 10.32 MB / 0.7527 GB Notification: Performance of remove unused functions: time 0.001255/1.011, allocations: 335.4 kB / 1.15 GB, free: 9.996 MB / 0.7527 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.001255/1.013, allocations: 0.5667 MB / 1.151 GB, free: 9.434 MB / 0.7527 GB Notification: Performance of simCode: created initialization part: time 0.0001019/1.013, allocations: 37.7 kB / 1.151 GB, free: 9.391 MB / 0.7527 GB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/1.013, allocations: 3.938 kB / 1.151 GB, free: 9.387 MB / 0.7527 GB Notification: Performance of simCode: created simulation system equations: time 1.302e-06/1.013, allocations: 3.938 kB / 1.151 GB, free: 9.383 MB / 0.7527 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003687/1.013, allocations: 0.5303 MB / 1.151 GB, free: 8.848 MB / 0.7527 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002341/1.013, allocations: 148.8 kB / 1.151 GB, free: 8.68 MB / 0.7527 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003085/1.014, allocations: 0.6994 MB / 1.152 GB, free: 7.957 MB / 0.7527 GB Notification: Performance of SimCode: time 4.4e-07/1.014, allocations: 0 / 1.152 GB, free: 7.957 MB / 0.7527 GB Notification: Performance of Templates: time 0.01/1.024, allocations: 5.705 MB / 1.158 GB, free: 2.32 MB / 0.7527 GB make -j1 -f Buildings_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTubeNegative.makefile make -j1 -f Buildings_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTubeNegative.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_Functions_Validation_InternalResistancesTwoUTubeNegative -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 Buildings_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTubeNegative.o Buildings_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTubeNegative.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_Functions_Validation_InternalResistancesTwoUTubeNegative -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 Buildings_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTubeNegative_functions.o Buildings_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTubeNegative_functions.c Buildings_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTubeNegative_functions.c:895: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.Functions.Validation.InternalResistancesTwoUTubeNegative_functions.o] Error 1