Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesOneUTubeNegative.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.Functions.Validation.InternalResistancesOneUTubeNegative,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Rgb|Rgg|RCondGro|x",fileNamePrefix="Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesOneUTubeNegative") translateModel(Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesOneUTubeNegative,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Rgb|Rgg|RCondGro|x",fileNamePrefix="Buildings_9_Buildings.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/Buildings 9.1.1-maint.9.1.x/package.mo): time 1.96/1.96, allocations: 387.2 MB / 394.5 MB, free: 13.71 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.001276/0.001276, allocations: 193.2 kB / 487 MB, free: 5.363 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.323/1.323, allocations: 221.3 MB / 0.7819 GB, free: 1.359 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.001015/0.001015, allocations: 96.62 kB / 0.9213 GB, free: 2.625 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 7.654e-06/7.675e-06, allocations: 4 kB / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2447/0.2447, allocations: 142.3 MB / 1.205 GB, free: 26.2 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6534/0.8981, allocations: 168.7 MB / 1.37 GB, free: 6.336 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002541/0.8984, allocations: 115 kB / 1.37 GB, free: 6.262 MB / 0.8073 GB Notification: Performance of FrontEnd: time 0.04318/0.9416, allocations: 14.78 MB / 1.385 GB, free: 9.75 MB / 0.823 GB Notification: Performance of Transformations before backend: time 1.088e-05/0.9417, allocations: 0 / 1.385 GB, free: 9.75 MB / 0.823 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.0008551/0.9425, allocations: 0.5512 MB / 1.385 GB, free: 9.164 MB / 0.823 GB Notification: Performance of prepare preOptimizeDAE: time 4.371e-05/0.9426, allocations: 12.02 kB / 1.385 GB, free: 9.152 MB / 0.823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.151e-05/0.9427, allocations: 75.28 kB / 1.385 GB, free: 9.078 MB / 0.823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001757/0.9428, allocations: 262.1 kB / 1.385 GB, free: 8.781 MB / 0.823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.802e-05/0.9429, allocations: 150.6 kB / 1.386 GB, free: 8.633 MB / 0.823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001204/0.943, allocations: 154.5 kB / 1.386 GB, free: 8.48 MB / 0.823 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 5.816e-05/0.9431, allocations: 150.6 kB / 1.386 GB, free: 8.332 MB / 0.823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 5.387e-05/0.9431, allocations: 101 kB / 1.386 GB, free: 8.227 MB / 0.823 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.935e-05/0.9432, allocations: 79.22 kB / 1.386 GB, free: 8.148 MB / 0.823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.085e-05/0.9433, allocations: 154.6 kB / 1.386 GB, free: 7.996 MB / 0.823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.149e-05/0.9433, allocations: 150.6 kB / 1.386 GB, free: 7.848 MB / 0.823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002717/0.9436, allocations: 441.7 kB / 1.387 GB, free: 7.387 MB / 0.823 GB Notification: Performance of preOpt comSubExp (simulation): time 8.501e-05/0.9437, allocations: 172.5 kB / 1.387 GB, free: 7.211 MB / 0.823 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.343e-05/0.9437, allocations: 84.14 kB / 1.387 GB, free: 7.125 MB / 0.823 GB Notification: Performance of preOpt evalFunc (simulation): time 2.369e-05/0.9438, allocations: 79.19 kB / 1.387 GB, free: 7.047 MB / 0.823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.716e-05/0.9438, allocations: 105.8 kB / 1.387 GB, free: 6.934 MB / 0.823 GB Notification: Performance of pre-optimization done (n=0): time 7.81e-07/0.9438, allocations: 0 / 1.387 GB, free: 6.934 MB / 0.823 GB Notification: Performance of matching and sorting (n=0): time 8.751e-05/0.9439, allocations: 37.62 kB / 1.387 GB, free: 6.891 MB / 0.823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.884e-05/0.9439, allocations: 51.41 kB / 1.387 GB, free: 6.828 MB / 0.823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001247/0.9441, allocations: 121 kB / 1.387 GB, free: 6.711 MB / 0.823 GB Notification: Performance of collectPreVariables (initialization): time 1.562e-05/0.9441, allocations: 29.7 kB / 1.387 GB, free: 6.676 MB / 0.823 GB Notification: Performance of collectInitialEqns (initialization): time 4.174e-05/0.9441, allocations: 83.33 kB / 1.387 GB, free: 6.594 MB / 0.823 GB Notification: Performance of collectInitialBindings (initialization): time 1.212e-06/0.9441, allocations: 0 / 1.387 GB, free: 6.594 MB / 0.823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.196e-06/0.9442, allocations: 4 kB / 1.387 GB, free: 6.59 MB / 0.823 GB Notification: Performance of setup shared object (initialization): time 0.0001079/0.9443, allocations: 317.9 kB / 1.388 GB, free: 6.273 MB / 0.823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.226e-05/0.9443, allocations: 7.938 kB / 1.388 GB, free: 6.266 MB / 0.823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.064e-05/0.9443, allocations: 0 / 1.388 GB, free: 6.266 MB / 0.823 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.742e-05/0.9444, allocations: 10.94 kB / 1.388 GB, free: 6.258 MB / 0.823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.392e-06/0.9444, allocations: 0 / 1.388 GB, free: 6.258 MB / 0.823 GB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001357/0.9445, allocations: 57.56 kB / 1.388 GB, free: 6.195 MB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 1.013e-05/0.9446, allocations: 4 kB / 1.388 GB, free: 6.191 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.864e-05/0.9446, allocations: 0 / 1.388 GB, free: 6.191 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.228e-05/0.9446, allocations: 4 kB / 1.388 GB, free: 6.188 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.92e-07/0.9446, allocations: 0 / 1.388 GB, free: 6.188 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.358e-06/0.9446, allocations: 0 / 1.388 GB, free: 6.188 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.18e-05/0.9446, allocations: 3.906 kB / 1.388 GB, free: 6.184 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.603e-06/0.9447, allocations: 0 / 1.388 GB, free: 6.184 MB / 0.823 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 8.961e-05/0.9448, allocations: 182.9 kB / 1.388 GB, free: 6 MB / 0.823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.392e-05/0.9448, allocations: 112.9 kB / 1.388 GB, free: 5.883 MB / 0.823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.973e-05/0.9449, allocations: 116.3 kB / 1.388 GB, free: 5.762 MB / 0.823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.254e-05/0.945, allocations: 180.2 kB / 1.388 GB, free: 5.578 MB / 0.823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.666e-05/0.945, allocations: 179.1 kB / 1.389 GB, free: 5.398 MB / 0.823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.476e-05/0.9451, allocations: 176.3 kB / 1.389 GB, free: 5.219 MB / 0.823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002573/0.9454, allocations: 405 kB / 1.389 GB, free: 4.781 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.489e-05/0.9454, allocations: 101 kB / 1.389 GB, free: 4.676 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.635e-05/0.9455, allocations: 104.2 kB / 1.389 GB, free: 4.57 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.539e-05/0.9456, allocations: 188.2 kB / 1.39 GB, free: 4.379 MB / 0.823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.024e-05/0.9457, allocations: 180.3 kB / 1.39 GB, free: 4.195 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.645e-05/0.9457, allocations: 180.2 kB / 1.39 GB, free: 4.012 MB / 0.823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.031e-05/0.9458, allocations: 188.2 kB / 1.39 GB, free: 3.82 MB / 0.823 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001511/0.946, allocations: 308.2 kB / 1.39 GB, free: 3.5 MB / 0.823 GB Notification: Performance of postOpt removeConstants (simulation): time 8.233e-05/0.9461, allocations: 189.9 kB / 1.391 GB, free: 3.289 MB / 0.823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.255e-05/0.9462, allocations: 176.3 kB / 1.391 GB, free: 3.109 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.671e-05/0.9463, allocations: 109 kB / 1.391 GB, free: 2.996 MB / 0.823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.078e-05/0.9464, allocations: 180.2 kB / 1.391 GB, free: 2.812 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.01e-05/0.9464, allocations: 104.4 kB / 1.391 GB, free: 2.707 MB / 0.823 GB Notification: Performance of sort global known variables: time 6.138e-05/0.9465, allocations: 95.02 kB / 1.391 GB, free: 2.617 MB / 0.823 GB Notification: Performance of remove unused functions: time 0.001277/0.9478, allocations: 317.9 kB / 1.391 GB, free: 2.316 MB / 0.823 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.001262/0.949, allocations: 0.5566 MB / 1.392 GB, free: 1.766 MB / 0.823 GB Notification: Performance of simCode: created initialization part: time 0.0001014/0.9491, allocations: 37.7 kB / 1.392 GB, free: 1.723 MB / 0.823 GB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.9491, allocations: 0 / 1.392 GB, free: 1.723 MB / 0.823 GB Notification: Performance of simCode: created simulation system equations: time 3.416e-06/0.9492, allocations: 4 kB / 1.392 GB, free: 1.719 MB / 0.823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003968/0.9496, allocations: 0.5312 MB / 1.393 GB, free: 1.188 MB / 0.823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002453/0.9498, allocations: 146.8 kB / 1.393 GB, free: 1.023 MB / 0.823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003668/0.9502, allocations: 0.6919 MB / 1.393 GB, free: 312 kB / 0.823 GB Notification: Performance of SimCode: time 2.3e-07/0.9502, allocations: 0 / 1.393 GB, free: 312 kB / 0.823 GB Notification: Performance of Templates: time 0.01021/0.9604, allocations: 5.413 MB / 1.399 GB, free: 10.96 MB / 0.8386 GB make -j1 -f Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesOneUTubeNegative.makefile make -j1 -f Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesOneUTubeNegative.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_9_Buildings_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 Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesOneUTubeNegative.o Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesOneUTubeNegative.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_9_Buildings_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 Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesOneUTubeNegative_functions.o Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesOneUTubeNegative_functions.c Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesOneUTubeNegative_functions.c:819: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.Functions.Validation.InternalResistancesOneUTubeNegative_functions.o] Error 1