Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXTwoUTube.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/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 Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXTwoUTube,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|realExpression.y|Rb_ref.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXTwoUTube") translateModel(Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXTwoUTube,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|realExpression.y|Rb_ref.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.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/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.192/1.192, allocations: 249.4 MB / 256.7 MB, free: 7.051 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009703/0.0009703, allocations: 181.2 kB / 316 MB, free: 3.535 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.062/1.062, allocations: 205.2 MB / 0.5667 GB, free: 15.65 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009027/0.0009027, allocations: 98.06 kB / 0.671 GB, free: 4.777 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 6.602e-06/6.632e-06, allocations: 0 / 0.7808 GB, free: 103 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1496/0.1496, allocations: 106.3 MB / 0.8846 GB, free: 12.59 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8979/1.048, allocations: 423.1 MB / 1.298 GB, free: 319.3 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002855/1.048, allocations: 120.9 kB / 1.298 GB, free: 319.2 MB / 0.8698 GB Notification: Performance of FrontEnd: time 2.765/3.813, allocations: 1.021 GB / 2.319 GB, free: 110.1 MB / 0.9011 GB Notification: Performance of Transformations before backend: time 0.0002236/3.813, allocations: 80 kB / 2.319 GB, free: 110.1 MB / 0.9011 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.005306/3.819, allocations: 3.077 MB / 2.322 GB, free: 109 MB / 0.9011 GB Notification: Performance of prepare preOptimizeDAE: time 3.578e-05/3.819, allocations: 6.156 kB / 2.322 GB, free: 109 MB / 0.9011 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008372/3.819, allocations: 376 kB / 2.322 GB, free: 108.9 MB / 0.9011 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004746/3.824, allocations: 2.93 MB / 2.325 GB, free: 108.4 MB / 0.9011 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.941e-05/3.824, allocations: 64.66 kB / 2.325 GB, free: 108.4 MB / 0.9011 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000215/3.825, allocations: 130.1 kB / 2.325 GB, free: 108.4 MB / 0.9011 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002296/3.827, allocations: 1.466 MB / 2.327 GB, free: 108.4 MB / 0.9011 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002579/3.829, allocations: 1.789 MB / 2.328 GB, free: 108.2 MB / 0.9011 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.086e-05/3.829, allocations: 3.188 kB / 2.328 GB, free: 108.2 MB / 0.9011 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001402/3.83, allocations: 7.531 kB / 2.328 GB, free: 108.2 MB / 0.9011 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.445e-05/3.83, allocations: 56.25 kB / 2.328 GB, free: 108.2 MB / 0.9011 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01012/3.84, allocations: 8.859 MB / 2.337 GB, free: 105.2 MB / 0.9011 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001063/3.841, allocations: 0.8551 MB / 2.338 GB, free: 105.2 MB / 0.9011 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008501/3.842, allocations: 0.7626 MB / 2.339 GB, free: 105.2 MB / 0.9011 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001714/3.843, allocations: 2.924 MB / 2.341 GB, free: 101.9 MB / 0.9011 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.666e-05/3.843, allocations: 50.97 kB / 2.341 GB, free: 101.9 MB / 0.9011 GB Notification: Performance of pre-optimization done (n=148): time 3.226e-06/3.843, allocations: 0 / 2.341 GB, free: 101.9 MB / 0.9011 GB Notification: Performance of matching and sorting (n=148): time 0.003634/3.847, allocations: 1.677 MB / 2.343 GB, free: 101.6 MB / 0.9011 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.896e-05/3.847, allocations: 90.42 kB / 2.343 GB, free: 101.5 MB / 0.9011 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002121/3.849, allocations: 1.683 MB / 2.345 GB, free: 101.3 MB / 0.9011 GB Notification: Performance of collectPreVariables (initialization): time 0.0001259/3.849, allocations: 32.7 kB / 2.345 GB, free: 101.3 MB / 0.9011 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004535/3.85, allocations: 0.7931 MB / 2.346 GB, free: 100.9 MB / 0.9011 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004665/3.85, allocations: 0.5053 MB / 2.346 GB, free: 100.5 MB / 0.9011 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.014e-05/3.85, allocations: 0 / 2.346 GB, free: 100.5 MB / 0.9011 GB Notification: Performance of setup shared object (initialization): time 8.419e-05/3.851, allocations: 375.8 kB / 2.347 GB, free: 100.2 MB / 0.9011 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000677/3.851, allocations: 0.4894 MB / 2.347 GB, free: 100.2 MB / 0.9011 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008432/3.852, allocations: 0.8512 MB / 2.348 GB, free: 99.88 MB / 0.9011 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001865/3.854, allocations: 0.8388 MB / 2.349 GB, free: 99.85 MB / 0.9011 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.332e-06/3.854, allocations: 3.906 kB / 2.349 GB, free: 99.85 MB / 0.9011 GB Notification: Performance of matching and sorting (n=215) (initialization): time 0.003759/3.858, allocations: 2.014 MB / 2.351 GB, free: 99.6 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004226/3.858, allocations: 2.685 MB / 2.353 GB, free: 96.74 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.394e-05/3.858, allocations: 11.12 kB / 2.353 GB, free: 96.74 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004719/3.859, allocations: 198.7 kB / 2.353 GB, free: 96.7 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001105/3.86, allocations: 352.6 kB / 2.354 GB, free: 96.7 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003633/3.863, allocations: 6.842 MB / 2.36 GB, free: 90.57 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002194/3.866, allocations: 224.6 kB / 2.361 GB, free: 90.5 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001352/3.866, allocations: 71.19 kB / 2.361 GB, free: 90.5 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 6.142e-06/3.866, allocations: 3.656 kB / 2.361 GB, free: 90.5 MB / 0.9011 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003277/3.869, allocations: 1.706 MB / 2.362 GB, free: 90.4 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.962e-05/3.869, allocations: 15.03 kB / 2.362 GB, free: 90.4 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004376/3.87, allocations: 201.8 kB / 2.363 GB, free: 90.35 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001074/3.871, allocations: 351.2 kB / 2.363 GB, free: 90.35 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004648/3.875, allocations: 8.567 MB / 2.371 GB, free: 82.73 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002193/3.878, allocations: 203.5 kB / 2.372 GB, free: 82.67 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001369/3.878, allocations: 70.75 kB / 2.372 GB, free: 82.67 MB / 0.9011 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.0003555/3.878, allocations: 147.5 kB / 2.372 GB, free: 82.55 MB / 0.9011 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003426/3.878, allocations: 236.8 kB / 2.372 GB, free: 82.43 MB / 0.9011 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004055/3.882, allocations: 2.146 MB / 2.374 GB, free: 82.27 MB / 0.9011 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.867e-05/3.882, allocations: 22.02 kB / 2.374 GB, free: 82.27 MB / 0.9011 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.214e-06/3.882, allocations: 3.969 kB / 2.374 GB, free: 82.27 MB / 0.9011 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002803/3.885, allocations: 1.729 MB / 2.376 GB, free: 81.91 MB / 0.9011 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0074/3.893, allocations: 4.181 MB / 2.38 GB, free: 81.44 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.061e-06/3.893, allocations: 1.969 kB / 2.38 GB, free: 81.44 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00105/3.894, allocations: 285.7 kB / 2.38 GB, free: 81.44 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003853/3.894, allocations: 180.7 kB / 2.38 GB, free: 81.39 MB / 0.9011 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.724e-05/3.894, allocations: 24.78 kB / 2.38 GB, free: 81.39 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003426/3.898, allocations: 6.81 MB / 2.387 GB, free: 75.26 MB / 0.9011 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.406e-06/3.898, allocations: 0 / 2.387 GB, free: 75.26 MB / 0.9011 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004415/3.902, allocations: 2.793 MB / 2.39 GB, free: 74.74 MB / 0.9011 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001205/3.903, allocations: 0.5522 MB / 2.39 GB, free: 74.5 MB / 0.9011 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00032/3.904, allocations: 10.03 kB / 2.39 GB, free: 74.5 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001272/3.905, allocations: 120.6 kB / 2.39 GB, free: 74.49 MB / 0.9011 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001256/3.905, allocations: 88.94 kB / 2.39 GB, free: 74.49 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001019/3.905, allocations: 59.06 kB / 2.39 GB, free: 74.49 MB / 0.9011 GB Notification: Performance of sort global known variables: time 0.001643/3.907, allocations: 1.262 MB / 2.392 GB, free: 74.34 MB / 0.9011 GB Notification: Performance of remove unused functions: time 0.005288/3.912, allocations: 1.969 MB / 2.394 GB, free: 73.98 MB / 0.9011 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.002929/3.915, allocations: 1.751 MB / 2.395 GB, free: 73.57 MB / 0.9011 GB Notification: Performance of simCode: created initialization part: time 0.004088/3.919, allocations: 3.388 MB / 2.399 GB, free: 72.46 MB / 0.9011 GB Notification: Performance of simCode: created event and clocks part: time 4.869e-06/3.919, allocations: 2.188 kB / 2.399 GB, free: 72.46 MB / 0.9011 GB Notification: Performance of simCode: created simulation system equations: time 0.001211/3.92, allocations: 1.147 MB / 2.4 GB, free: 72.05 MB / 0.9011 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005085/3.926, allocations: 1.106 MB / 2.401 GB, free: 72.04 MB / 0.9011 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006556/3.932, allocations: 4.041 MB / 2.405 GB, free: 71.08 MB / 0.9011 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001448/3.934, allocations: 2.017 MB / 2.407 GB, free: 70.33 MB / 0.9011 GB Notification: Performance of SimCode: time 7.21e-07/3.934, allocations: 0 / 2.407 GB, free: 70.33 MB / 0.9011 GB Notification: Performance of Templates: time 0.08594/4.02, allocations: 64.83 MB / 2.47 GB, free: 67.04 MB / 0.9011 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXTwoUTube.makefile make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXTwoUTube.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_maint_7_0_x_Buildings_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 Buildings_maint.7.0.x_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXTwoUTube.o Buildings_maint.7.0.x_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXTwoUTube.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_maint_7_0_x_Buildings_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 Buildings_maint.7.0.x_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXTwoUTube_functions.o Buildings_maint.7.0.x_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXTwoUTube_functions.c Buildings_maint.7.0.x_Buildings.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: *** [: Buildings_maint.7.0.x_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXTwoUTube_functions.o] Error 1