Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTube.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.Functions.Validation.InternalResistancesTwoUTube,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Rgb|Rgg1|Rgg2|RCondGro|x",fileNamePrefix="Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTube") translateModel(Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTube,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Rgb|Rgg1|Rgg2|RCondGro|x",fileNamePrefix="Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTube") [: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 9.1.1-maint.9.1.x/package.mo): time 2.009/2.009, allocations: 387.2 MB / 394.5 MB, free: 13.7 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.001273/0.001273, allocations: 181.2 kB / 487 MB, free: 5.395 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.359/1.359, allocations: 221.3 MB / 0.7819 GB, free: 1.383 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.0009474/0.0009473, allocations: 108.5 kB / 0.9213 GB, free: 2.629 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 8.877e-06/9.358e-06, allocations: 0 / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2667/0.2667, allocations: 142.3 MB / 1.205 GB, free: 26.2 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6451/0.9119, allocations: 169.4 MB / 1.371 GB, free: 5.582 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003237/0.9123, allocations: 115.7 kB / 1.371 GB, free: 5.508 MB / 0.8073 GB Notification: Performance of FrontEnd: time 0.04481/0.9571, allocations: 15.12 MB / 1.386 GB, free: 8.684 MB / 0.823 GB Notification: Performance of Transformations before backend: time 6.202e-06/0.9571, allocations: 0 / 1.386 GB, free: 8.684 MB / 0.823 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.0009057/0.958, allocations: 0.5514 MB / 1.386 GB, free: 8.094 MB / 0.823 GB Notification: Performance of prepare preOptimizeDAE: time 4.053e-05/0.9581, allocations: 9.031 kB / 1.386 GB, free: 8.086 MB / 0.823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.12e-05/0.9581, allocations: 83.19 kB / 1.386 GB, free: 8.004 MB / 0.823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001667/0.9583, allocations: 246.2 kB / 1.386 GB, free: 7.723 MB / 0.823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.296e-05/0.9584, allocations: 158.5 kB / 1.387 GB, free: 7.566 MB / 0.823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.563e-05/0.9584, allocations: 150.6 kB / 1.387 GB, free: 7.418 MB / 0.823 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.178e-05/0.9585, allocations: 157.2 kB / 1.387 GB, free: 7.266 MB / 0.823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 5.851e-05/0.9586, allocations: 101 kB / 1.387 GB, free: 7.16 MB / 0.823 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.477e-05/0.9586, allocations: 75.28 kB / 1.387 GB, free: 7.086 MB / 0.823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.854e-05/0.9587, allocations: 158.6 kB / 1.387 GB, free: 6.93 MB / 0.823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.154e-05/0.9587, allocations: 150.6 kB / 1.387 GB, free: 6.781 MB / 0.823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002834/0.959, allocations: 446 kB / 1.388 GB, free: 6.316 MB / 0.823 GB Notification: Performance of preOpt comSubExp (simulation): time 9.49e-05/0.9591, allocations: 173 kB / 1.388 GB, free: 6.137 MB / 0.823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001016/0.9592, allocations: 88.12 kB / 1.388 GB, free: 6.047 MB / 0.823 GB Notification: Performance of preOpt evalFunc (simulation): time 2.775e-05/0.9593, allocations: 75.28 kB / 1.388 GB, free: 5.973 MB / 0.823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.489e-05/0.9593, allocations: 109 kB / 1.388 GB, free: 5.859 MB / 0.823 GB Notification: Performance of pre-optimization done (n=0): time 1.032e-06/0.9593, allocations: 0 / 1.388 GB, free: 5.859 MB / 0.823 GB Notification: Performance of matching and sorting (n=0): time 8.136e-05/0.9594, allocations: 33.61 kB / 1.388 GB, free: 5.82 MB / 0.823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.44e-05/0.9594, allocations: 51.41 kB / 1.388 GB, free: 5.758 MB / 0.823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001171/0.9596, allocations: 111.9 kB / 1.388 GB, free: 5.645 MB / 0.823 GB Notification: Performance of collectPreVariables (initialization): time 1.337e-05/0.9596, allocations: 33.7 kB / 1.388 GB, free: 5.605 MB / 0.823 GB Notification: Performance of collectInitialEqns (initialization): time 3.682e-05/0.9596, allocations: 88.06 kB / 1.389 GB, free: 5.52 MB / 0.823 GB Notification: Performance of collectInitialBindings (initialization): time 1.643e-06/0.9596, allocations: 0 / 1.389 GB, free: 5.52 MB / 0.823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.705e-06/0.9596, allocations: 0 / 1.389 GB, free: 5.52 MB / 0.823 GB Notification: Performance of setup shared object (initialization): time 0.0001155/0.9598, allocations: 318.6 kB / 1.389 GB, free: 5.203 MB / 0.823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.472e-05/0.9598, allocations: 3.938 kB / 1.389 GB, free: 5.199 MB / 0.823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.536e-05/0.9598, allocations: 7.188 kB / 1.389 GB, free: 5.195 MB / 0.823 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.663e-05/0.9599, allocations: 8 kB / 1.389 GB, free: 5.188 MB / 0.823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.406e-06/0.9599, allocations: 3.906 kB / 1.389 GB, free: 5.184 MB / 0.823 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001433/0.96, allocations: 53.28 kB / 1.389 GB, free: 5.129 MB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 1.111e-05/0.9601, allocations: 6.656 kB / 1.389 GB, free: 5.125 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.974e-05/0.9601, allocations: 4 kB / 1.389 GB, free: 5.121 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.304e-05/0.9601, allocations: 3.906 kB / 1.389 GB, free: 5.117 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.41e-07/0.9601, allocations: 0 / 1.389 GB, free: 5.117 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.406e-06/0.9601, allocations: 0 / 1.389 GB, free: 5.117 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.288e-05/0.9602, allocations: 4 kB / 1.389 GB, free: 5.113 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.151e-06/0.9602, allocations: 0 / 1.389 GB, free: 5.113 MB / 0.823 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 9.288e-05/0.9603, allocations: 189.8 kB / 1.389 GB, free: 4.926 MB / 0.823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.097e-05/0.9603, allocations: 116.9 kB / 1.389 GB, free: 4.805 MB / 0.823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.822e-05/0.9604, allocations: 112.3 kB / 1.389 GB, free: 4.688 MB / 0.823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.14e-05/0.9605, allocations: 184.2 kB / 1.389 GB, free: 4.5 MB / 0.823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.726e-05/0.9605, allocations: 180.2 kB / 1.39 GB, free: 4.316 MB / 0.823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.374e-05/0.9606, allocations: 183.6 kB / 1.39 GB, free: 4.133 MB / 0.823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002128/0.9608, allocations: 393.6 kB / 1.39 GB, free: 3.707 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.131e-05/0.9608, allocations: 104.9 kB / 1.39 GB, free: 3.598 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.319e-05/0.9609, allocations: 101 kB / 1.39 GB, free: 3.492 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.845e-05/0.9609, allocations: 176.3 kB / 1.391 GB, free: 3.312 MB / 0.823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.013e-05/0.961, allocations: 195.8 kB / 1.391 GB, free: 3.117 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.819e-05/0.9611, allocations: 176.3 kB / 1.391 GB, free: 2.938 MB / 0.823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.771e-05/0.9612, allocations: 180.3 kB / 1.391 GB, free: 2.754 MB / 0.823 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001237/0.9613, allocations: 308.9 kB / 1.391 GB, free: 2.43 MB / 0.823 GB Notification: Performance of postOpt removeConstants (simulation): time 7.945e-05/0.9614, allocations: 189.6 kB / 1.392 GB, free: 2.223 MB / 0.823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000107/0.9615, allocations: 184.1 kB / 1.392 GB, free: 2.035 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.789e-05/0.9616, allocations: 105 kB / 1.392 GB, free: 1.926 MB / 0.823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.266e-05/0.9616, allocations: 184.3 kB / 1.392 GB, free: 1.738 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.45e-05/0.9617, allocations: 108.9 kB / 1.392 GB, free: 1.625 MB / 0.823 GB Notification: Performance of sort global known variables: time 5.246e-05/0.9617, allocations: 94.22 kB / 1.392 GB, free: 1.539 MB / 0.823 GB Notification: Performance of remove unused functions: time 0.0009462/0.9627, allocations: 325.7 kB / 1.393 GB, free: 1.23 MB / 0.823 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.001038/0.9637, allocations: 0.5497 MB / 1.393 GB, free: 0.6836 MB / 0.823 GB Notification: Performance of simCode: created initialization part: time 8.508e-05/0.9638, allocations: 45.56 kB / 1.393 GB, free: 0.6367 MB / 0.823 GB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.9638, allocations: 4.062 kB / 1.393 GB, free: 0.6328 MB / 0.823 GB Notification: Performance of simCode: created simulation system equations: time 1.313e-06/0.9639, allocations: 0 / 1.393 GB, free: 0.6328 MB / 0.823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003227/0.9642, allocations: 0.5239 MB / 1.394 GB, free: 112 kB / 0.823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002019/0.9644, allocations: 146.9 kB / 1.394 GB, free: 15.95 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002541/0.9647, allocations: 0.6997 MB / 1.394 GB, free: 15.22 MB / 0.8386 GB Notification: Performance of SimCode: time 4.41e-07/0.9647, allocations: 0 / 1.394 GB, free: 15.22 MB / 0.8386 GB Notification: Performance of Templates: time 0.009661/0.9743, allocations: 5.594 MB / 1.4 GB, free: 9.684 MB / 0.8386 GB make -j1 -f Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTube.makefile make -j1 -f Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTube.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_9_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Functions_Validation_InternalResistancesTwoUTube -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 Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTube.o Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTube.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_9_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Functions_Validation_InternalResistancesTwoUTube -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 Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTube_functions.o Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTube_functions.c Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTube_functions.c:857: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.Functions.Validation.InternalResistancesTwoUTube_functions.o] Error 1