Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXTwoUTube.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.Examples.InternalHEXTwoUTube,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXTwoUTube") translateModel(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXTwoUTube,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.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/BuildingSystems 2.0.0-master/package.mo): time 0.7391/0.7391, allocations: 141.8 MB / 149.1 MB, free: 7.621 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.001123/0.001123, allocations: 182.2 kB / 181.9 MB, free: 4.988 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.334/1.334, allocations: 221.3 MB / 436 MB, free: 12.78 MB / 346.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009232/0.0009233, allocations: 104.9 kB / 0.507 GB, free: 6.211 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001818/0.001817, allocations: 275.4 kB / 0.5884 GB, free: 3.02 MB / 474.9 MB Notification: Performance of FrontEnd - loaded program: time 8.556e-06/8.596e-06, allocations: 2 kB / 0.6759 GB, free: 164.4 MB / 0.5419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1748/0.1748, allocations: 82.78 MB / 0.7568 GB, free: 110.3 MB / 0.5419 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.103/1.277, allocations: 401.1 MB / 1.148 GB, free: 187.9 MB / 0.7138 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000315/1.278, allocations: 125.5 kB / 1.149 GB, free: 187.9 MB / 0.7138 GB Notification: Performance of FrontEnd: time 3.657/4.934, allocations: 1.04 GB / 2.189 GB, free: 55.34 MB / 0.7294 GB Notification: Performance of Transformations before backend: time 0.0005487/4.935, allocations: 75.81 kB / 2.189 GB, free: 55.27 MB / 0.7294 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 526 * Number of variables: 526 Notification: Performance of Generate backend data structure: time 0.01086/4.946, allocations: 3.073 MB / 2.192 GB, free: 52.15 MB / 0.7294 GB Notification: Performance of prepare preOptimizeDAE: time 4.908e-05/4.946, allocations: 8.031 kB / 2.192 GB, free: 52.14 MB / 0.7294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002175/4.948, allocations: 375.8 kB / 2.192 GB, free: 51.77 MB / 0.7294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007566/4.956, allocations: 2.929 MB / 2.195 GB, free: 48.84 MB / 0.7294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.4e-05/4.956, allocations: 64 kB / 2.195 GB, free: 48.77 MB / 0.7294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003729/4.956, allocations: 135.9 kB / 2.195 GB, free: 48.64 MB / 0.7294 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003444/4.96, allocations: 1.461 MB / 2.197 GB, free: 47.17 MB / 0.7294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003415/4.963, allocations: 1.792 MB / 2.198 GB, free: 45.28 MB / 0.7294 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.069e-05/4.963, allocations: 3.938 kB / 2.198 GB, free: 45.27 MB / 0.7294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001727/4.963, allocations: 4 kB / 2.198 GB, free: 45.27 MB / 0.7294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.58e-05/4.964, allocations: 51.91 kB / 2.198 GB, free: 45.22 MB / 0.7294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0163/4.98, allocations: 8.866 MB / 2.207 GB, free: 36.24 MB / 0.7294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001282/4.981, allocations: 0.8438 MB / 2.208 GB, free: 35.39 MB / 0.7294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009753/4.982, allocations: 0.7738 MB / 2.209 GB, free: 34.62 MB / 0.7294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002339/4.984, allocations: 2.913 MB / 2.211 GB, free: 31.07 MB / 0.7294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.423e-05/4.985, allocations: 60.48 kB / 2.211 GB, free: 31 MB / 0.7294 GB Notification: Performance of pre-optimization done (n=148): time 4.318e-06/4.985, allocations: 0 / 2.211 GB, free: 31 MB / 0.7294 GB Notification: Performance of matching and sorting (n=148): time 0.004559/4.989, allocations: 1.672 MB / 2.213 GB, free: 29.3 MB / 0.7294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.538e-05/4.989, allocations: 98.33 kB / 2.213 GB, free: 29.19 MB / 0.7294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002852/4.992, allocations: 1.685 MB / 2.215 GB, free: 27.48 MB / 0.7294 GB Notification: Performance of collectPreVariables (initialization): time 0.0002506/4.992, allocations: 29.7 kB / 2.215 GB, free: 27.45 MB / 0.7294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005621/4.993, allocations: 0.7967 MB / 2.216 GB, free: 26.64 MB / 0.7294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006299/4.994, allocations: 0.4964 MB / 2.216 GB, free: 26.13 MB / 0.7294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.299e-05/4.994, allocations: 0 / 2.216 GB, free: 26.13 MB / 0.7294 GB Notification: Performance of setup shared object (initialization): time 0.0001214/4.994, allocations: 377.8 kB / 2.217 GB, free: 25.76 MB / 0.7294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007441/4.994, allocations: 0.4921 MB / 2.217 GB, free: 25.27 MB / 0.7294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009279/4.995, allocations: 0.8481 MB / 2.218 GB, free: 24.29 MB / 0.7294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002134/4.998, allocations: 0.8359 MB / 2.219 GB, free: 23.46 MB / 0.7294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.115e-06/4.998, allocations: 4 kB / 2.219 GB, free: 23.45 MB / 0.7294 GB Notification: Performance of matching and sorting (n=215) (initialization): time 0.004573/5.002, allocations: 2.013 MB / 2.221 GB, free: 21.41 MB / 0.7294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006515/5.003, allocations: 2.689 MB / 2.223 GB, free: 18.45 MB / 0.7294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.235e-05/5.003, allocations: 8 kB / 2.223 GB, free: 18.45 MB / 0.7294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005029/5.003, allocations: 212.1 kB / 2.223 GB, free: 18.23 MB / 0.7294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001184/5.005, allocations: 347.5 kB / 2.224 GB, free: 17.89 MB / 0.7294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004075/5.009, allocations: 6.842 MB / 2.23 GB, free: 10.54 MB / 0.7294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003036/5.012, allocations: 222.4 kB / 2.231 GB, free: 10.32 MB / 0.7294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002982/5.012, allocations: 75.97 kB / 2.231 GB, free: 10.25 MB / 0.7294 GB Notification: Performance of prepare postOptimizeDAE: time 1.026e-05/5.012, allocations: 0 / 2.231 GB, free: 10.25 MB / 0.7294 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004041/5.016, allocations: 1.703 MB / 2.232 GB, free: 8.527 MB / 0.7294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.407e-05/5.016, allocations: 12 kB / 2.232 GB, free: 8.516 MB / 0.7294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004596/5.017, allocations: 205.5 kB / 2.233 GB, free: 8.297 MB / 0.7294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001172/5.018, allocations: 351.4 kB / 2.233 GB, free: 7.953 MB / 0.7294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005892/5.024, allocations: 8.583 MB / 2.241 GB, free: 14.7 MB / 0.745 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003221/5.027, allocations: 206.7 kB / 2.242 GB, free: 14.5 MB / 0.745 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002798/5.027, allocations: 71.92 kB / 2.242 GB, free: 14.43 MB / 0.745 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (191): * Single equations (assignments): 184 * 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.0005935/5.028, allocations: 144.5 kB / 2.242 GB, free: 14.28 MB / 0.745 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006751/5.029, allocations: 233.1 kB / 2.242 GB, free: 14.05 MB / 0.745 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005491/5.034, allocations: 2.139 MB / 2.244 GB, free: 11.9 MB / 0.745 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.736e-05/5.034, allocations: 23.98 kB / 2.244 GB, free: 11.88 MB / 0.745 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.09e-05/5.034, allocations: 0 / 2.244 GB, free: 11.88 MB / 0.745 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003595/5.038, allocations: 1.729 MB / 2.246 GB, free: 10.08 MB / 0.745 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01138/5.049, allocations: 4.173 MB / 2.25 GB, free: 5.824 MB / 0.745 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.566e-06/5.049, allocations: 3.938 kB / 2.25 GB, free: 5.82 MB / 0.745 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001204/5.05, allocations: 279.8 kB / 2.25 GB, free: 5.547 MB / 0.745 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004698/5.051, allocations: 178.8 kB / 2.25 GB, free: 5.355 MB / 0.745 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.973e-05/5.051, allocations: 27.89 kB / 2.25 GB, free: 5.328 MB / 0.745 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.494/5.545, allocations: 6.819 MB / 2.257 GB, free: 114.8 MB / 0.745 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.145e-06/5.545, allocations: 3.562 kB / 2.257 GB, free: 114.8 MB / 0.745 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00625/5.551, allocations: 2.785 MB / 2.26 GB, free: 114.5 MB / 0.745 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001894/5.553, allocations: 0.5462 MB / 2.26 GB, free: 114.4 MB / 0.745 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000345/5.554, allocations: 8.812 kB / 2.26 GB, free: 114.4 MB / 0.745 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001399/5.555, allocations: 125.6 kB / 2.26 GB, free: 114.4 MB / 0.745 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001415/5.555, allocations: 91.33 kB / 2.26 GB, free: 114.4 MB / 0.745 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000116/5.555, allocations: 57.14 kB / 2.26 GB, free: 114.4 MB / 0.745 GB Notification: Performance of sort global known variables: time 0.002077/5.557, allocations: 1.265 MB / 2.262 GB, free: 114.2 MB / 0.745 GB Notification: Performance of remove unused functions: time 0.008879/5.566, allocations: 1.956 MB / 2.264 GB, free: 114.2 MB / 0.745 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (140): * Single equations (assignments): 123 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 11 * 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.006137/5.573, allocations: 1.762 MB / 2.265 GB, free: 114 MB / 0.745 GB Notification: Performance of simCode: created initialization part: time 0.005811/5.578, allocations: 3.387 MB / 2.269 GB, free: 112.9 MB / 0.745 GB Notification: Performance of simCode: created event and clocks part: time 8.797e-06/5.578, allocations: 3.094 kB / 2.269 GB, free: 112.9 MB / 0.745 GB Notification: Performance of simCode: created simulation system equations: time 0.001509/5.58, allocations: 1.145 MB / 2.27 GB, free: 112.5 MB / 0.745 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006617/5.587, allocations: 1.112 MB / 2.271 GB, free: 112.5 MB / 0.745 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009468/5.596, allocations: 4.033 MB / 2.275 GB, free: 111.5 MB / 0.745 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002/5.598, allocations: 2.015 MB / 2.277 GB, free: 110.8 MB / 0.745 GB Notification: Performance of SimCode: time 1.342e-06/5.598, allocations: 0 / 2.277 GB, free: 110.8 MB / 0.745 GB Notification: Performance of Templates: time 0.1108/5.709, allocations: 64.89 MB / 2.34 GB, free: 107.7 MB / 0.745 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXTwoUTube.makefile make -j1 -f BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXTwoUTube.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_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 BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXTwoUTube.o BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXTwoUTube.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_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 BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXTwoUTube_functions.o BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXTwoUTube_functions.c BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXTwoUTube_functions.c:1179: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.Examples.InternalHEXTwoUTube_functions.o] Error 1