Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTubeNegative.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.InternalResistancesTwoUTubeNegative,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTubeNegative") translateModel(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTubeNegative,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.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/BuildingSystems 2.0.0-master/package.mo): time 0.7304/0.7304, allocations: 141.8 MB / 149.1 MB, free: 13.72 MB / 138.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001102/0.001102, allocations: 177.9 kB / 181.9 MB, free: 10.32 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.371/1.371, allocations: 221.3 MB / 436 MB, free: 2.73 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.0009459/0.0009461, allocations: 104.6 kB / 0.507 GB, free: 17.99 MB / 378.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00179/0.00179, allocations: 274.5 kB / 0.5884 GB, free: 4.258 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 9.778e-06/9.889e-06, allocations: 1.438 kB / 0.6759 GB, free: 137.1 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1724/0.1724, allocations: 82.78 MB / 0.7568 GB, free: 84.05 MB / 0.5107 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.149/0.3214, allocations: 129.3 MB / 0.8831 GB, free: 2.543 MB / 0.5575 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003153/0.3218, allocations: 124.8 kB / 0.8832 GB, free: 2.422 MB / 0.5575 GB Notification: Performance of FrontEnd: time 0.3984/0.7202, allocations: 15.24 MB / 0.8981 GB, free: 89.48 MB / 0.5575 GB Notification: Performance of Transformations before backend: time 8.456e-06/0.7202, allocations: 1.312 kB / 0.8981 GB, free: 89.48 MB / 0.5575 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.0009771/0.7212, allocations: 0.543 MB / 0.8986 GB, free: 88.98 MB / 0.5575 GB Notification: Performance of prepare preOptimizeDAE: time 4.356e-05/0.7212, allocations: 10.98 kB / 0.8986 GB, free: 88.98 MB / 0.5575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.319e-05/0.7213, allocations: 81.22 kB / 0.8987 GB, free: 88.91 MB / 0.5575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001112/0.7214, allocations: 251.1 kB / 0.8989 GB, free: 88.62 MB / 0.5575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.426e-05/0.7214, allocations: 152 kB / 0.8991 GB, free: 88.48 MB / 0.5575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.931e-05/0.7215, allocations: 156 kB / 0.8992 GB, free: 88.32 MB / 0.5575 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 3.175e-05/0.7215, allocations: 156.2 kB / 0.8994 GB, free: 88.18 MB / 0.5575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 3.467e-05/0.7216, allocations: 104.9 kB / 0.8995 GB, free: 88.07 MB / 0.5575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.48e-05/0.7216, allocations: 79.47 kB / 0.8995 GB, free: 87.99 MB / 0.5575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.251e-05/0.7216, allocations: 154.5 kB / 0.8997 GB, free: 87.84 MB / 0.5575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.231e-05/0.7216, allocations: 155.7 kB / 0.8998 GB, free: 87.68 MB / 0.5575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001888/0.7218, allocations: 444.7 kB / 0.9003 GB, free: 87.23 MB / 0.5575 GB Notification: Performance of preOpt comSubExp (simulation): time 4.407e-05/0.7219, allocations: 166.5 kB / 0.9004 GB, free: 87.06 MB / 0.5575 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.628e-05/0.7219, allocations: 83.64 kB / 0.9005 GB, free: 86.98 MB / 0.5575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.374e-05/0.7219, allocations: 82.39 kB / 0.9006 GB, free: 86.9 MB / 0.5575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.336e-05/0.722, allocations: 105.8 kB / 0.9007 GB, free: 86.79 MB / 0.5575 GB Notification: Performance of pre-optimization done (n=0): time 1.022e-06/0.722, allocations: 0 / 0.9007 GB, free: 86.79 MB / 0.5575 GB Notification: Performance of matching and sorting (n=0): time 7.594e-05/0.7221, allocations: 36.83 kB / 0.9007 GB, free: 86.75 MB / 0.5575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.8e-05/0.7221, allocations: 53.19 kB / 0.9008 GB, free: 86.69 MB / 0.5575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.842e-05/0.7222, allocations: 119.5 kB / 0.9009 GB, free: 86.59 MB / 0.5575 GB Notification: Performance of collectPreVariables (initialization): time 8.646e-06/0.7222, allocations: 26.73 kB / 0.9009 GB, free: 86.56 MB / 0.5575 GB Notification: Performance of collectInitialEqns (initialization): time 2.268e-05/0.7222, allocations: 91.25 kB / 0.901 GB, free: 86.47 MB / 0.5575 GB Notification: Performance of collectInitialBindings (initialization): time 1.864e-06/0.7222, allocations: 0.9688 kB / 0.901 GB, free: 86.47 MB / 0.5575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.866e-06/0.7222, allocations: 3.938 kB / 0.901 GB, free: 86.47 MB / 0.5575 GB Notification: Performance of setup shared object (initialization): time 5.213e-05/0.7223, allocations: 319.2 kB / 0.9013 GB, free: 86.16 MB / 0.5575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.432e-05/0.7223, allocations: 3.531 kB / 0.9013 GB, free: 86.16 MB / 0.5575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.31e-05/0.7224, allocations: 6.781 kB / 0.9013 GB, free: 86.16 MB / 0.5575 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.675e-05/0.7224, allocations: 7.688 kB / 0.9013 GB, free: 86.16 MB / 0.5575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.7224, allocations: 0 / 0.9013 GB, free: 86.16 MB / 0.5575 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001358/0.7226, allocations: 56.52 kB / 0.9014 GB, free: 86.12 MB / 0.5575 GB Notification: Performance of prepare postOptimizeDAE: time 1.147e-05/0.7226, allocations: 4.969 kB / 0.9014 GB, free: 86.12 MB / 0.5575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.069e-05/0.7226, allocations: 12.28 kB / 0.9014 GB, free: 86.11 MB / 0.5575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.066e-05/0.7226, allocations: 0 / 0.9014 GB, free: 86.11 MB / 0.5575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.31e-07/0.7226, allocations: 0 / 0.9014 GB, free: 86.11 MB / 0.5575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.062e-06/0.7227, allocations: 2.766 kB / 0.9014 GB, free: 86.11 MB / 0.5575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.262e-05/0.7227, allocations: 4.906 kB / 0.9014 GB, free: 86.11 MB / 0.5575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.812e-06/0.7227, allocations: 1.469 kB / 0.9014 GB, free: 86.11 MB / 0.5575 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.21e-05/0.7227, allocations: 180.4 kB / 0.9016 GB, free: 85.93 MB / 0.5575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.801e-05/0.7228, allocations: 107.7 kB / 0.9017 GB, free: 85.82 MB / 0.5575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.037e-05/0.7228, allocations: 119.6 kB / 0.9018 GB, free: 85.69 MB / 0.5575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.492e-05/0.7229, allocations: 181.6 kB / 0.902 GB, free: 85.51 MB / 0.5575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.694e-05/0.7229, allocations: 177.3 kB / 0.9021 GB, free: 85.33 MB / 0.5575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.313e-05/0.7229, allocations: 178 kB / 0.9023 GB, free: 85.15 MB / 0.5575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001276/0.7231, allocations: 401.8 kB / 0.9027 GB, free: 84.73 MB / 0.5575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.367e-05/0.7231, allocations: 105 kB / 0.9028 GB, free: 84.62 MB / 0.5575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.751e-05/0.7231, allocations: 103.4 kB / 0.9029 GB, free: 84.52 MB / 0.5575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.765e-05/0.7231, allocations: 182.2 kB / 0.903 GB, free: 84.33 MB / 0.5575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.765e-05/0.7232, allocations: 177.4 kB / 0.9032 GB, free: 84.15 MB / 0.5575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.767e-05/0.7232, allocations: 183 kB / 0.9034 GB, free: 83.97 MB / 0.5575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.428e-05/0.7232, allocations: 181.8 kB / 0.9036 GB, free: 83.79 MB / 0.5575 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 6.866e-05/0.7233, allocations: 310.9 kB / 0.9039 GB, free: 83.47 MB / 0.5575 GB Notification: Performance of postOpt removeConstants (simulation): time 4.381e-05/0.7233, allocations: 193.8 kB / 0.904 GB, free: 83.26 MB / 0.5575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.795e-05/0.7234, allocations: 177.4 kB / 0.9042 GB, free: 83.08 MB / 0.5575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.096e-05/0.7235, allocations: 102.3 kB / 0.9043 GB, free: 82.97 MB / 0.5575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.931e-05/0.7235, allocations: 188.7 kB / 0.9045 GB, free: 82.79 MB / 0.5575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.581e-05/0.7235, allocations: 107.3 kB / 0.9046 GB, free: 82.68 MB / 0.5575 GB Notification: Performance of sort global known variables: time 3.75e-05/0.7236, allocations: 92.39 kB / 0.9047 GB, free: 82.6 MB / 0.5575 GB Notification: Performance of remove unused functions: time 0.001204/0.7248, allocations: 332.2 kB / 0.905 GB, free: 82.51 MB / 0.5575 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.001154/0.7259, allocations: 0.5794 MB / 0.9056 GB, free: 82.24 MB / 0.5575 GB Notification: Performance of simCode: created initialization part: time 9.906e-05/0.726, allocations: 46.64 kB / 0.9056 GB, free: 82.2 MB / 0.5575 GB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.7261, allocations: 0 / 0.9056 GB, free: 82.2 MB / 0.5575 GB Notification: Performance of simCode: created simulation system equations: time 2.404e-06/0.7261, allocations: 0.9375 kB / 0.9056 GB, free: 82.2 MB / 0.5575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002386/0.7263, allocations: 0.529 MB / 0.9061 GB, free: 81.68 MB / 0.5575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001815/0.7265, allocations: 151.5 kB / 0.9063 GB, free: 81.52 MB / 0.5575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001089/0.7266, allocations: 0.6943 MB / 0.907 GB, free: 80.82 MB / 0.5575 GB Notification: Performance of SimCode: time 2.51e-07/0.7266, allocations: 0 / 0.907 GB, free: 80.82 MB / 0.5575 GB Notification: Performance of Templates: time 0.01071/0.7373, allocations: 5.701 MB / 0.9125 GB, free: 80.34 MB / 0.5575 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTubeNegative.makefile make -j1 -f BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTubeNegative.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_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 BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTubeNegative.o BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTubeNegative.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_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 BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTubeNegative_functions.o BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTubeNegative_functions.c BuildingSystems_BuildingSystems.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: *** [: BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTubeNegative_functions.o] Error 1