Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXTwoUTube.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/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 BuildSysPro with version 3.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo) Running command: translateModel(BuildSysPro.IBPSA.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXTwoUTube,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.IBPSA.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXTwoUTube") translateModel(BuildSysPro.IBPSA.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXTwoUTube,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.IBPSA.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXTwoUTube") [: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/BuildSysPro 3.5.0/package.mo): time 0.689/0.689, allocations: 127.4 MB / 134.6 MB, free: 4.078 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002079/0.002079, allocations: 177.3 kB / 164.4 MB, free: 6.883 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.429/1.429, allocations: 205.1 MB / 399.1 MB, free: 6.07 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001027/0.001028, allocations: 90.62 kB / 476.3 MB, free: 8.824 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 7.635e-06/7.755e-06, allocations: 0 / 0.546 GB, free: 42.68 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.164/0.164, allocations: 76.74 MB / 0.621 GB, free: 13.87 MB / 426.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9636/1.128, allocations: 400.6 MB / 1.012 GB, free: 79.62 MB / 0.6198 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003089/1.128, allocations: 130.9 kB / 1.012 GB, free: 79.55 MB / 0.6198 GB Notification: Performance of FrontEnd: time 4.136/5.264, allocations: 1.043 GB / 2.056 GB, free: 47.53 MB / 0.6667 GB Notification: Performance of Transformations before backend: time 0.0006455/5.264, allocations: 82.41 kB / 2.056 GB, free: 47.46 MB / 0.6667 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 534 * Number of variables: 534 Notification: Performance of Generate backend data structure: time 0.01392/5.278, allocations: 3.094 MB / 2.059 GB, free: 44.32 MB / 0.6667 GB Notification: Performance of prepare preOptimizeDAE: time 6.105e-05/5.278, allocations: 12.03 kB / 2.059 GB, free: 44.31 MB / 0.6667 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00303/5.282, allocations: 383.8 kB / 2.059 GB, free: 43.93 MB / 0.6667 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01287/5.294, allocations: 3.303 MB / 2.062 GB, free: 40.63 MB / 0.6667 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002744/5.295, allocations: 68 kB / 2.062 GB, free: 40.56 MB / 0.6667 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001332/5.296, allocations: 128 kB / 2.062 GB, free: 40.44 MB / 0.6667 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005425/5.302, allocations: 1.465 MB / 2.064 GB, free: 38.96 MB / 0.6667 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006362/5.308, allocations: 1.823 MB / 2.066 GB, free: 37.03 MB / 0.6667 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001397/5.308, allocations: 7.984 kB / 2.066 GB, free: 37.02 MB / 0.6667 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005637/5.309, allocations: 3.844 kB / 2.066 GB, free: 37.02 MB / 0.6667 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.023e-05/5.309, allocations: 52 kB / 2.066 GB, free: 36.97 MB / 0.6667 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01992/5.329, allocations: 9.964 MB / 2.075 GB, free: 26.68 MB / 0.6667 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001446/5.33, allocations: 0.7643 MB / 2.076 GB, free: 25.9 MB / 0.6667 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001081/5.331, allocations: 0.7031 MB / 2.077 GB, free: 25.2 MB / 0.6667 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002309/5.334, allocations: 2.758 MB / 2.08 GB, free: 21.84 MB / 0.6667 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.705e-05/5.334, allocations: 47.86 kB / 2.08 GB, free: 21.78 MB / 0.6667 GB Notification: Performance of pre-optimization done (n=135): time 4.609e-06/5.334, allocations: 0 / 2.08 GB, free: 21.78 MB / 0.6667 GB Notification: Performance of matching and sorting (n=135): time 0.009004/5.343, allocations: 1.933 MB / 2.081 GB, free: 19.82 MB / 0.6667 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.043e-05/5.343, allocations: 102.3 kB / 2.082 GB, free: 19.7 MB / 0.6667 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004925/5.348, allocations: 1.73 MB / 2.083 GB, free: 17.95 MB / 0.6667 GB Notification: Performance of collectPreVariables (initialization): time 0.0005066/5.348, allocations: 25.7 kB / 2.083 GB, free: 17.92 MB / 0.6667 GB Notification: Performance of collectInitialEqns (initialization): time 0.001014/5.349, allocations: 0.8628 MB / 2.084 GB, free: 17.04 MB / 0.6667 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009964/5.35, allocations: 461.1 kB / 2.085 GB, free: 16.59 MB / 0.6667 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001926/5.351, allocations: 0 / 2.085 GB, free: 16.59 MB / 0.6667 GB Notification: Performance of setup shared object (initialization): time 0.000189/5.351, allocations: 373.8 kB / 2.085 GB, free: 16.21 MB / 0.6667 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001117/5.352, allocations: 0.5038 MB / 2.085 GB, free: 15.71 MB / 0.6667 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001341/5.353, allocations: 0.9114 MB / 2.086 GB, free: 14.63 MB / 0.6667 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002748/5.356, allocations: 0.8437 MB / 2.087 GB, free: 13.8 MB / 0.6667 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.492e-05/5.356, allocations: 4 kB / 2.087 GB, free: 13.79 MB / 0.6667 GB Notification: Performance of matching and sorting (n=220) (initialization): time 0.009154/5.365, allocations: 2.335 MB / 2.089 GB, free: 11.43 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 0.001/5.366, allocations: 3.611 MB / 2.093 GB, free: 7.465 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.083e-05/5.366, allocations: 12 kB / 2.093 GB, free: 7.453 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007239/5.367, allocations: 264.5 kB / 2.093 GB, free: 7.18 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001544/5.369, allocations: 359.5 kB / 2.094 GB, free: 6.828 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004991/5.374, allocations: 6.923 MB / 2.1 GB, free: 15.41 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00362/5.377, allocations: 258.3 kB / 2.101 GB, free: 15.16 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004895/5.378, allocations: 67.98 kB / 2.101 GB, free: 15.09 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.304e-05/5.378, allocations: 4 kB / 2.101 GB, free: 15.09 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005733/5.384, allocations: 1.707 MB / 2.102 GB, free: 13.36 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.07e-05/5.384, allocations: 12 kB / 2.102 GB, free: 13.35 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005981/5.384, allocations: 213.1 kB / 2.103 GB, free: 13.13 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001493/5.386, allocations: 355.5 kB / 2.103 GB, free: 12.78 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008864/5.395, allocations: 8.567 MB / 2.111 GB, free: 3.547 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003764/5.399, allocations: 210.6 kB / 2.111 GB, free: 3.34 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006617/5.399, allocations: 75.98 kB / 2.111 GB, free: 3.266 MB / 0.6823 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 39 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (196): * Single equations (assignments): 189 * 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: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 2 {1 4,1 4} Notification: Performance of prepare postOptimizeDAE: time 0.000979/5.4, allocations: 144.5 kB / 2.112 GB, free: 3.117 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001394/5.402, allocations: 237.1 kB / 2.112 GB, free: 2.883 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009155/5.411, allocations: 2.097 MB / 2.114 GB, free: 0.7656 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.15e-05/5.411, allocations: 19.98 kB / 2.114 GB, free: 0.7461 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.988e-05/5.411, allocations: 0 / 2.114 GB, free: 0.7461 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.5194/5.93, allocations: 1.799 MB / 2.116 GB, free: 117.8 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01178/5.942, allocations: 4.072 MB / 2.12 GB, free: 117.4 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.538e-06/5.942, allocations: 0 / 2.12 GB, free: 117.4 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001085/5.943, allocations: 241.4 kB / 2.12 GB, free: 117.4 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000545/5.944, allocations: 249 kB / 2.12 GB, free: 117.4 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.307e-05/5.944, allocations: 19.2 kB / 2.12 GB, free: 117.4 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01003/5.954, allocations: 9.203 MB / 2.129 GB, free: 109.9 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.642e-06/5.954, allocations: 6.656 kB / 2.129 GB, free: 109.9 MB / 0.6823 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.008118/5.962, allocations: 2.665 MB / 2.132 GB, free: 109.6 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002479/5.965, allocations: 0.5357 MB / 2.132 GB, free: 109.5 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007177/5.966, allocations: 7.438 kB / 2.132 GB, free: 109.5 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001882/5.967, allocations: 147.3 kB / 2.132 GB, free: 109.5 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001574/5.968, allocations: 69.98 kB / 2.132 GB, free: 109.5 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001338/5.968, allocations: 56.02 kB / 2.133 GB, free: 109.5 MB / 0.6823 GB Notification: Performance of sort global known variables: time 0.002362/5.97, allocations: 1.286 MB / 2.134 GB, free: 109.3 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.009169/5.979, allocations: 1.996 MB / 2.136 GB, free: 109.2 MB / 0.6823 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 12 (intHex.vol1.dynBal.U,intHex.vol2.dynBal.U,intHex.vol3.dynBal.U,intHex.vol4.dynBal.U,intHex.intRes2UTub.capFil1.T,intHex.intRes2UTub.capFil2.T,intHex.intRes2UTub.capFil3.T,intHex.intRes2UTub.capFil4.T,senTem.T,senTem1.T,senTem2.T,senTem3.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (122): * Single equations (assignments): 110 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 2 {1 4,1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.004446/5.984, allocations: 1.768 MB / 2.137 GB, free: 109 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.005071/5.989, allocations: 3.342 MB / 2.141 GB, free: 107.9 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 9.638e-06/5.989, allocations: 3.844 kB / 2.141 GB, free: 107.9 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.001554/5.99, allocations: 1.261 MB / 2.142 GB, free: 107.3 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007007/5.997, allocations: 1.087 MB / 2.143 GB, free: 107.3 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009634/6.007, allocations: 3.991 MB / 2.147 GB, free: 106.4 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002273/6.01, allocations: 2.016 MB / 2.149 GB, free: 105.6 MB / 0.6823 GB Notification: Performance of SimCode: time 1.673e-06/6.01, allocations: 0 / 2.149 GB, free: 105.6 MB / 0.6823 GB Notification: Performance of Templates: time 0.1267/6.136, allocations: 67.43 MB / 2.215 GB, free: 102 MB / 0.6823 GB make -j1 -f BuildSysPro_BuildSysPro.IBPSA.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXTwoUTube.makefile make -j1 -f BuildSysPro_BuildSysPro.IBPSA.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXTwoUTube.makefile clang -fPIC -O0 -falign-functions -march=native -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=BuildSysPro_BuildSysPro_IBPSA_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalHEXTwoUTube -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=14 -DOMC_NUM_NONLINEAR_SYSTEMS=4 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o BuildSysPro_BuildSysPro.IBPSA.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXTwoUTube.o BuildSysPro_BuildSysPro.IBPSA.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXTwoUTube.c clang -fPIC -O0 -falign-functions -march=native -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=BuildSysPro_BuildSysPro_IBPSA_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalHEXTwoUTube -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=14 -DOMC_NUM_NONLINEAR_SYSTEMS=4 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o BuildSysPro_BuildSysPro.IBPSA.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXTwoUTube_functions.o BuildSysPro_BuildSysPro.IBPSA.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXTwoUTube_functions.c BuildSysPro_BuildSysPro.IBPSA.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXTwoUTube_functions.c:1123: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: *** [: BuildSysPro_BuildSysPro.IBPSA.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXTwoUTube_functions.o] Error 1