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.InternalResistancesTwoUTubeNegative.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.InternalResistancesTwoUTubeNegative,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Rgb|Rgg1|Rgg2|RCondGro|x",fileNamePrefix="Buildings_9_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="mat",numberOfIntervals=5000,variableFilter="time|Rgb|Rgg1|Rgg2|RCondGro|x",fileNamePrefix="Buildings_9_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 9.1.1-maint.9.1.x/package.mo): time 2.006/2.006, allocations: 387.2 MB / 394.5 MB, free: 13.7 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.00125/0.00125, allocations: 169.3 kB / 487 MB, free: 5.391 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.397/1.397, allocations: 221.3 MB / 0.7819 GB, free: 1.375 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.001086/0.001086, allocations: 89.89 kB / 0.9213 GB, free: 2.625 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 9.017e-06/9.047e-06, allocations: 4 kB / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2886/0.2886, allocations: 142.3 MB / 1.205 GB, free: 26.18 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7399/1.029, allocations: 169.4 MB / 1.371 GB, free: 5.875 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002704/1.029, allocations: 119.6 kB / 1.371 GB, free: 5.797 MB / 0.8073 GB Notification: Performance of FrontEnd: time 0.04503/1.074, allocations: 15.11 MB / 1.386 GB, free: 8.973 MB / 0.823 GB Notification: Performance of Transformations before backend: time 6.743e-06/1.074, allocations: 0 / 1.386 GB, free: 8.973 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.0009628/1.075, allocations: 0.5476 MB / 1.386 GB, free: 8.387 MB / 0.823 GB Notification: Performance of prepare preOptimizeDAE: time 3.145e-05/1.075, allocations: 8.031 kB / 1.386 GB, free: 8.379 MB / 0.823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.25e-05/1.075, allocations: 83.12 kB / 1.386 GB, free: 8.297 MB / 0.823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000163/1.075, allocations: 250.3 kB / 1.386 GB, free: 8.012 MB / 0.823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.678e-05/1.075, allocations: 158.5 kB / 1.387 GB, free: 7.855 MB / 0.823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.279e-05/1.075, allocations: 158.4 kB / 1.387 GB, free: 7.703 MB / 0.823 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 5.171e-05/1.075, allocations: 150.6 kB / 1.387 GB, free: 7.555 MB / 0.823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 5.084e-05/1.075, allocations: 101.5 kB / 1.387 GB, free: 7.449 MB / 0.823 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.45e-05/1.075, allocations: 75.28 kB / 1.387 GB, free: 7.375 MB / 0.823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.24e-05/1.076, allocations: 154.5 kB / 1.387 GB, free: 7.223 MB / 0.823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.564e-05/1.076, allocations: 158.6 kB / 1.387 GB, free: 7.066 MB / 0.823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003391/1.076, allocations: 445.2 kB / 1.388 GB, free: 6.602 MB / 0.823 GB Notification: Performance of preOpt comSubExp (simulation): time 7.602e-05/1.076, allocations: 173 kB / 1.388 GB, free: 6.422 MB / 0.823 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.879e-05/1.076, allocations: 84.08 kB / 1.388 GB, free: 6.336 MB / 0.823 GB Notification: Performance of preOpt evalFunc (simulation): time 3.333e-05/1.076, allocations: 79.28 kB / 1.388 GB, free: 6.258 MB / 0.823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.353e-05/1.076, allocations: 113.3 kB / 1.388 GB, free: 6.141 MB / 0.823 GB Notification: Performance of pre-optimization done (n=0): time 1.222e-06/1.076, allocations: 0 / 1.388 GB, free: 6.141 MB / 0.823 GB Notification: Performance of matching and sorting (n=0): time 6.906e-05/1.076, allocations: 33.61 kB / 1.388 GB, free: 6.102 MB / 0.823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.604e-05/1.076, allocations: 55.39 kB / 1.388 GB, free: 6.035 MB / 0.823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001133/1.076, allocations: 114.6 kB / 1.388 GB, free: 5.922 MB / 0.823 GB Notification: Performance of collectPreVariables (initialization): time 1.355e-05/1.076, allocations: 25.7 kB / 1.388 GB, free: 5.891 MB / 0.823 GB Notification: Performance of collectInitialEqns (initialization): time 3.84e-05/1.076, allocations: 90.77 kB / 1.389 GB, free: 5.801 MB / 0.823 GB Notification: Performance of collectInitialBindings (initialization): time 1.172e-06/1.076, allocations: 3.938 kB / 1.389 GB, free: 5.797 MB / 0.823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.715e-06/1.076, allocations: 0 / 1.389 GB, free: 5.797 MB / 0.823 GB Notification: Performance of setup shared object (initialization): time 0.000132/1.077, allocations: 318.6 kB / 1.389 GB, free: 5.48 MB / 0.823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.453e-05/1.077, allocations: 7.312 kB / 1.389 GB, free: 5.477 MB / 0.823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.88e-05/1.077, allocations: 4 kB / 1.389 GB, free: 5.473 MB / 0.823 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.006e-05/1.077, allocations: 4 kB / 1.389 GB, free: 5.469 MB / 0.823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.946e-06/1.077, allocations: 7.906 kB / 1.389 GB, free: 5.461 MB / 0.823 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001331/1.077, allocations: 52.44 kB / 1.389 GB, free: 5.41 MB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 9.768e-06/1.077, allocations: 4 kB / 1.389 GB, free: 5.406 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.886e-05/1.077, allocations: 8.062 kB / 1.389 GB, free: 5.398 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.457e-06/1.077, allocations: 3.906 kB / 1.389 GB, free: 5.395 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.81e-07/1.077, allocations: 0 / 1.389 GB, free: 5.395 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.016e-06/1.077, allocations: 0 / 1.389 GB, free: 5.395 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.231e-05/1.077, allocations: 0 / 1.389 GB, free: 5.395 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.961e-06/1.077, allocations: 4 kB / 1.389 GB, free: 5.391 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.37e-05/1.077, allocations: 179 kB / 1.389 GB, free: 5.211 MB / 0.823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.725e-05/1.077, allocations: 116.8 kB / 1.389 GB, free: 5.09 MB / 0.823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.479e-05/1.077, allocations: 116.3 kB / 1.389 GB, free: 4.969 MB / 0.823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.682e-05/1.077, allocations: 180.2 kB / 1.389 GB, free: 4.785 MB / 0.823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.553e-05/1.077, allocations: 188.1 kB / 1.39 GB, free: 4.598 MB / 0.823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.395e-05/1.077, allocations: 176.3 kB / 1.39 GB, free: 4.418 MB / 0.823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002304/1.078, allocations: 393 kB / 1.39 GB, free: 3.992 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.881e-05/1.078, allocations: 108.9 kB / 1.39 GB, free: 3.879 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.653e-05/1.078, allocations: 101 kB / 1.39 GB, free: 3.773 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.189e-05/1.078, allocations: 179.8 kB / 1.391 GB, free: 3.594 MB / 0.823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.772e-05/1.078, allocations: 184.2 kB / 1.391 GB, free: 3.406 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.678e-05/1.078, allocations: 180.3 kB / 1.391 GB, free: 3.223 MB / 0.823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.243e-05/1.078, allocations: 180.2 kB / 1.391 GB, free: 3.039 MB / 0.823 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001291/1.078, allocations: 316.6 kB / 1.391 GB, free: 2.711 MB / 0.823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001357/1.078, allocations: 182.1 kB / 1.392 GB, free: 2.508 MB / 0.823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.285e-05/1.078, allocations: 188.1 kB / 1.392 GB, free: 2.316 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.374e-05/1.078, allocations: 101 kB / 1.392 GB, free: 2.211 MB / 0.823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.575e-05/1.078, allocations: 180.3 kB / 1.392 GB, free: 2.027 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.09e-05/1.079, allocations: 116.9 kB / 1.392 GB, free: 1.906 MB / 0.823 GB Notification: Performance of sort global known variables: time 4.873e-05/1.079, allocations: 100.6 kB / 1.392 GB, free: 1.816 MB / 0.823 GB Notification: Performance of remove unused functions: time 0.001043/1.08, allocations: 321.6 kB / 1.393 GB, free: 1.512 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.001524/1.081, allocations: 0.5496 MB / 1.393 GB, free: 0.9648 MB / 0.823 GB Notification: Performance of simCode: created initialization part: time 8.554e-05/1.081, allocations: 37.33 kB / 1.393 GB, free: 0.9258 MB / 0.823 GB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/1.081, allocations: 0 / 1.393 GB, free: 0.9258 MB / 0.823 GB Notification: Performance of simCode: created simulation system equations: time 1.973e-06/1.081, allocations: 4.062 kB / 1.393 GB, free: 0.9219 MB / 0.823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003534/1.082, allocations: 0.5273 MB / 1.394 GB, free: 404 kB / 0.823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001995/1.082, allocations: 146.9 kB / 1.394 GB, free: 236 kB / 0.823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002839/1.082, allocations: 0.7035 MB / 1.394 GB, free: 15.5 MB / 0.8386 GB Notification: Performance of SimCode: time 2.2e-07/1.082, allocations: 0 / 1.394 GB, free: 15.5 MB / 0.8386 GB Notification: Performance of Templates: time 0.01021/1.092, allocations: 5.584 MB / 1.4 GB, free: 9.977 MB / 0.8386 GB make -j1 -f Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTubeNegative.makefile make -j1 -f Buildings_9_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_9_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_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTubeNegative.o Buildings_9_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_9_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_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTubeNegative_functions.o Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTubeNegative_functions.c Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTubeNegative_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: *** [: Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTubeNegative_functions.o] Error 1