Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXOneUTube.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.Examples.InternalHEXOneUTube,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|realExpression.y|Rb_ref.y",fileNamePrefix="Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXOneUTube") translateModel(Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXOneUTube,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|realExpression.y|Rb_ref.y",fileNamePrefix="Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXOneUTube") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.345/2.345, allocations: 387.4 MB / 394.9 MB, free: 13.39 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.001122/0.001122, allocations: 188.8 kB / 487.4 MB, free: 5.035 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.499/1.499, allocations: 221.5 MB / 0.7824 GB, free: 1.008 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.0009634/0.0009635, allocations: 87.91 kB / 0.9219 GB, free: 2.25 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 1.866e-05/1.858e-05, allocations: 4 kB / 1.067 GB, free: 185.7 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3004/0.3004, allocations: 142.4 MB / 1.206 GB, free: 43.95 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.264/1.564, allocations: 423.7 MB / 1.62 GB, free: 13.97 MB / 1.042 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003211/1.565, allocations: 125.7 kB / 1.62 GB, free: 13.9 MB / 1.042 GB Notification: Performance of FrontEnd - DAE generated: time 1.748/3.313, allocations: 487.9 MB / 2.096 GB, free: 106.5 MB / 1.151 GB Notification: Performance of FrontEnd: time 1.643e-06/3.313, allocations: 0 / 2.096 GB, free: 106.5 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.0001571/3.313, allocations: 47.92 kB / 2.096 GB, free: 106.5 MB / 1.151 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 264 * Number of variables: 264 Notification: Performance of Generate backend data structure: time 0.004085/3.317, allocations: 1.936 MB / 2.098 GB, free: 104.5 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 5.31e-05/3.317, allocations: 12.03 kB / 2.098 GB, free: 104.5 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005064/3.318, allocations: 206 kB / 2.098 GB, free: 104.3 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002875/3.321, allocations: 1.707 MB / 2.1 GB, free: 102.5 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.086e-05/3.321, allocations: 36 kB / 2.1 GB, free: 102.5 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001344/3.321, allocations: 64 kB / 2.1 GB, free: 102.4 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001254/3.322, allocations: 0.7149 MB / 2.101 GB, free: 101.7 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001415/3.323, allocations: 0.9053 MB / 2.102 GB, free: 100.7 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.018e-05/3.323, allocations: 0 / 2.102 GB, free: 100.7 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.278e-05/3.324, allocations: 0 / 2.102 GB, free: 100.7 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.127e-05/3.324, allocations: 28 kB / 2.102 GB, free: 100.7 MB / 1.151 GB Warning: The model contains alias variables with conflicting start and/or nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006955/3.331, allocations: 6.251 MB / 2.108 GB, free: 93.85 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007201/3.331, allocations: 0.5133 MB / 2.108 GB, free: 93.32 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003714/3.332, allocations: 312.4 kB / 2.109 GB, free: 93.01 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008788/3.333, allocations: 1.271 MB / 2.11 GB, free: 91.46 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.509e-05/3.333, allocations: 43.12 kB / 2.11 GB, free: 91.41 MB / 1.151 GB Notification: Performance of pre-optimization done (n=68): time 3.507e-06/3.333, allocations: 0 / 2.11 GB, free: 91.41 MB / 1.151 GB Notification: Performance of matching and sorting (n=68): time 0.001657/3.334, allocations: 0.7448 MB / 2.111 GB, free: 90.65 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.203e-05/3.334, allocations: 85.67 kB / 2.111 GB, free: 90.55 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001387/3.336, allocations: 1.13 MB / 2.112 GB, free: 89.41 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 5.585e-05/3.336, allocations: 29.7 kB / 2.112 GB, free: 89.38 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004271/3.336, allocations: 0.7233 MB / 2.113 GB, free: 88.65 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001596/3.336, allocations: 236.5 kB / 2.113 GB, free: 88.41 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.184e-05/3.336, allocations: 3.938 kB / 2.113 GB, free: 88.41 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 8.896e-05/3.336, allocations: 337.9 kB / 2.113 GB, free: 88.07 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003365/3.337, allocations: 246.6 kB / 2.113 GB, free: 87.84 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004677/3.337, allocations: 461.5 kB / 2.114 GB, free: 87.31 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001023/3.338, allocations: 420.4 kB / 2.114 GB, free: 86.89 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.511e-06/3.338, allocations: 4 kB / 2.114 GB, free: 86.89 MB / 1.151 GB Notification: Performance of matching and sorting (n=108) (initialization): time 0.001757/3.34, allocations: 0.9725 MB / 2.115 GB, free: 85.91 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002757/3.34, allocations: 1.346 MB / 2.117 GB, free: 84.48 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.23e-05/3.34, allocations: 11.98 kB / 2.117 GB, free: 84.47 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002605/3.341, allocations: 69.69 kB / 2.117 GB, free: 84.4 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005795/3.341, allocations: 179.7 kB / 2.117 GB, free: 84.22 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001711/3.343, allocations: 2.867 MB / 2.12 GB, free: 81.12 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001088/3.344, allocations: 111.2 kB / 2.12 GB, free: 81.02 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.065e-05/3.344, allocations: 39.98 kB / 2.12 GB, free: 80.98 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.042e-05/3.344, allocations: 4 kB / 2.12 GB, free: 80.97 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00156/3.346, allocations: 0.7929 MB / 2.121 GB, free: 80.17 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.4e-05/3.346, allocations: 4 kB / 2.121 GB, free: 80.17 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001176/3.346, allocations: 73.58 kB / 2.121 GB, free: 80.09 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005377/3.346, allocations: 171.8 kB / 2.121 GB, free: 79.92 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001487/3.348, allocations: 2.875 MB / 2.124 GB, free: 76.82 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001093/3.349, allocations: 87.44 kB / 2.124 GB, free: 76.73 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.245e-05/3.349, allocations: 36 kB / 2.124 GB, free: 76.7 MB / 1.151 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (99): * Single equations (assignments): 96 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002621/3.349, allocations: 128.7 kB / 2.124 GB, free: 76.57 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002065/3.35, allocations: 146.2 kB / 2.124 GB, free: 76.42 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00206/3.352, allocations: 0.9607 MB / 2.125 GB, free: 75.44 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.102e-05/3.352, allocations: 8 kB / 2.125 GB, free: 75.43 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.596e-06/3.352, allocations: 0 / 2.125 GB, free: 75.43 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001219/3.353, allocations: 0.7856 MB / 2.126 GB, free: 74.61 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004168/3.357, allocations: 2.472 MB / 2.128 GB, free: 72 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.723e-06/3.357, allocations: 0 / 2.128 GB, free: 72 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005743/3.358, allocations: 140.2 kB / 2.128 GB, free: 71.87 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002164/3.358, allocations: 77.77 kB / 2.128 GB, free: 71.79 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.623e-05/3.358, allocations: 15.98 kB / 2.128 GB, free: 71.77 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001618/3.36, allocations: 2.868 MB / 2.131 GB, free: 68.67 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.312e-06/3.36, allocations: 4 kB / 2.131 GB, free: 68.67 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002375/3.362, allocations: 1.538 MB / 2.133 GB, free: 66.98 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009052/3.363, allocations: 355 kB / 2.133 GB, free: 66.61 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004466/3.363, allocations: 8 kB / 2.133 GB, free: 66.6 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009865/3.364, allocations: 35.88 kB / 2.133 GB, free: 66.57 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001028/3.365, allocations: 60.38 kB / 2.133 GB, free: 66.51 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.094e-05/3.365, allocations: 35.98 kB / 2.133 GB, free: 66.47 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.001785/3.366, allocations: 0.8521 MB / 2.134 GB, free: 65.62 MB / 1.151 GB Notification: Performance of sort global known variables: time 1.4e-07/3.366, allocations: 0 / 2.134 GB, free: 65.62 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.005155/3.372, allocations: 1.197 MB / 2.135 GB, free: 64.42 MB / 1.151 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 6 (intHex.vol1.dynBal.U,intHex.vol2.dynBal.U,intHex.intResUTub.capFil1.T,intHex.intResUTub.capFil2.T,senTem.T,senTem1.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (70): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 7 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003928/3.376, allocations: 1.267 MB / 2.136 GB, free: 63.16 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.002753/3.378, allocations: 1.593 MB / 2.138 GB, free: 61.51 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 7.524e-06/3.378, allocations: 0 / 2.138 GB, free: 61.51 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0006924/3.379, allocations: 0.5492 MB / 2.138 GB, free: 60.94 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003663/3.383, allocations: 0.598 MB / 2.139 GB, free: 60.35 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005027/3.388, allocations: 2.22 MB / 2.141 GB, free: 58.05 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00114/3.389, allocations: 1.311 MB / 2.142 GB, free: 56.71 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.002367/3.391, allocations: 456.9 kB / 2.143 GB, free: 56.26 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002578/3.392, allocations: 87.41 kB / 2.143 GB, free: 56.18 MB / 1.151 GB Notification: Performance of SimCode: time 1.683e-06/3.392, allocations: 0 / 2.143 GB, free: 56.18 MB / 1.151 GB Notification: Performance of Templates: time 0.05842/3.45, allocations: 33.88 MB / 2.176 GB, free: 22.62 MB / 1.151 GB make -j1 -f Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXOneUTube.makefile make -j1 -f Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXOneUTube.makefile clang -Os -fPIC -falign-functions -mfpmath=sse "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Resources/C-Sources" -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_Examples_InternalHEXOneUTube -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=6 -DOMC_NUM_NONLINEAR_SYSTEMS=0 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXOneUTube.o Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXOneUTube.c clang -Os -fPIC -falign-functions -mfpmath=sse "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Resources/C-Sources" -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_Examples_InternalHEXOneUTube -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=6 -DOMC_NUM_NONLINEAR_SYSTEMS=0 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXOneUTube_functions.o Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXOneUTube_functions.c Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXOneUTube_functions.c:915: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.Examples.InternalHEXOneUTube_functions.o] Error 1