Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_dev_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXTwoUTube.conf.json 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/IDEAS 3.0.0-master/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 IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/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) Running command: translateModel(IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXTwoUTube,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXTwoUTube") translateModel(IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXTwoUTube,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.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/Complex 4.0.0+maint.om/package.mo): time 0.002112/0.002112, allocations: 179.1 kB / 7.463 MB, free: 2.484 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.5898/0.5898, allocations: 133.5 MB / 141.4 MB, free: 15.71 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.104/1.104, allocations: 221.3 MB / 395 MB, free: 10.27 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008282/0.0008281, allocations: 101.3 kB / 477.8 MB, free: 10.86 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 6.983e-06/7.013e-06, allocations: 2.844 kB / 0.5529 GB, free: 89.1 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1116/0.1116, allocations: 82.31 MB / 0.6333 GB, free: 14.08 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7259/0.8376, allocations: 403 MB / 1.027 GB, free: 230.6 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003332/0.838, allocations: 125.8 kB / 1.027 GB, free: 230.6 MB / 0.6823 GB Notification: Performance of FrontEnd: time 2.783/3.621, allocations: 1.041 GB / 2.068 GB, free: 57.16 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 0.0002189/3.621, allocations: 78.3 kB / 2.068 GB, free: 57.16 MB / 0.7136 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.00446/3.626, allocations: 3.073 MB / 2.071 GB, free: 56.09 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 3.048e-05/3.626, allocations: 9.594 kB / 2.071 GB, free: 56.09 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007323/3.626, allocations: 376.3 kB / 2.072 GB, free: 55.91 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004293/3.631, allocations: 2.958 MB / 2.075 GB, free: 55.38 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.662e-05/3.631, allocations: 69.28 kB / 2.075 GB, free: 55.38 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000198/3.631, allocations: 128.7 kB / 2.075 GB, free: 55.38 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002162/3.633, allocations: 1.46 MB / 2.076 GB, free: 55.36 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002486/3.636, allocations: 1.795 MB / 2.078 GB, free: 55.11 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.94e-05/3.636, allocations: 13.83 kB / 2.078 GB, free: 55.11 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001366/3.636, allocations: 2.844 kB / 2.078 GB, free: 55.11 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.13e-05/3.636, allocations: 48.94 kB / 2.078 GB, free: 55.11 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008615/3.645, allocations: 8.847 MB / 2.087 GB, free: 52.2 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009678/3.646, allocations: 0.8452 MB / 2.088 GB, free: 52.16 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008098/3.646, allocations: 0.7683 MB / 2.088 GB, free: 52.14 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001587/3.648, allocations: 2.921 MB / 2.091 GB, free: 48.86 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.613e-05/3.648, allocations: 55.58 kB / 2.091 GB, free: 48.82 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=148): time 3.276e-06/3.648, allocations: 0 / 2.091 GB, free: 48.82 MB / 0.7136 GB Notification: Performance of matching and sorting (n=148): time 0.003178/3.651, allocations: 1.672 MB / 2.093 GB, free: 48.58 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.654e-05/3.651, allocations: 100 kB / 2.093 GB, free: 48.49 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001789/3.653, allocations: 1.696 MB / 2.095 GB, free: 48.28 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 8.052e-05/3.653, allocations: 28.7 kB / 2.095 GB, free: 48.25 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004032/3.653, allocations: 0.8008 MB / 2.095 GB, free: 47.81 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004265/3.654, allocations: 0.4953 MB / 2.096 GB, free: 47.48 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.803e-05/3.654, allocations: 0 / 2.096 GB, free: 47.48 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 7.605e-05/3.654, allocations: 371.3 kB / 2.096 GB, free: 47.18 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006405/3.655, allocations: 0.4929 MB / 2.097 GB, free: 47.18 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007903/3.656, allocations: 0.8459 MB / 2.098 GB, free: 46.82 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001681/3.657, allocations: 0.8386 MB / 2.098 GB, free: 46.8 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.09e-06/3.657, allocations: 2.844 kB / 2.098 GB, free: 46.8 MB / 0.7136 GB Notification: Performance of matching and sorting (n=215) (initialization): time 0.003329/3.661, allocations: 2.012 MB / 2.1 GB, free: 46.55 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003603/3.661, allocations: 2.692 MB / 2.103 GB, free: 43.69 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.998e-05/3.661, allocations: 6.969 kB / 2.103 GB, free: 43.69 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004393/3.661, allocations: 203.8 kB / 2.103 GB, free: 43.64 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001104/3.663, allocations: 351.7 kB / 2.104 GB, free: 43.64 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003262/3.666, allocations: 6.843 MB / 2.11 GB, free: 37.53 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001623/3.667, allocations: 217.5 kB / 2.11 GB, free: 37.45 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001153/3.668, allocations: 68.14 kB / 2.111 GB, free: 37.45 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 4.538e-06/3.668, allocations: 3.75 kB / 2.111 GB, free: 37.45 MB / 0.7136 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00294/3.67, allocations: 1.709 MB / 2.112 GB, free: 37.36 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.548e-05/3.671, allocations: 11.09 kB / 2.112 GB, free: 37.36 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003977/3.671, allocations: 204.3 kB / 2.112 GB, free: 37.31 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001035/3.672, allocations: 348.4 kB / 2.113 GB, free: 37.31 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004284/3.676, allocations: 8.575 MB / 2.121 GB, free: 29.69 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001514/3.678, allocations: 201.5 kB / 2.121 GB, free: 29.62 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001149/3.678, allocations: 78.47 kB / 2.121 GB, free: 29.62 MB / 0.7136 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.000248/3.678, allocations: 135 kB / 2.121 GB, free: 29.51 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002712/3.678, allocations: 239.4 kB / 2.122 GB, free: 29.39 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003706/3.682, allocations: 2.144 MB / 2.124 GB, free: 29.21 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.666e-05/3.682, allocations: 23.34 kB / 2.124 GB, free: 29.21 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.522e-06/3.682, allocations: 2.344 kB / 2.124 GB, free: 29.21 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002516/3.685, allocations: 1.724 MB / 2.126 GB, free: 28.87 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00585/3.691, allocations: 4.186 MB / 2.13 GB, free: 28.39 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.21e-06/3.691, allocations: 0 / 2.13 GB, free: 28.39 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001004/3.692, allocations: 275.6 kB / 2.13 GB, free: 28.39 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003443/3.692, allocations: 186.1 kB / 2.13 GB, free: 28.35 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.283e-05/3.692, allocations: 28.16 kB / 2.13 GB, free: 28.34 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004163/3.696, allocations: 6.814 MB / 2.137 GB, free: 38.21 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.369e-06/3.696, allocations: 3.875 kB / 2.137 GB, free: 38.21 MB / 0.7292 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004427/3.701, allocations: 2.796 MB / 2.139 GB, free: 37.69 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001277/3.702, allocations: 0.5503 MB / 2.14 GB, free: 37.45 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005348/3.702, allocations: 2.594 kB / 2.14 GB, free: 37.45 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001551/3.704, allocations: 133.8 kB / 2.14 GB, free: 37.43 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001153/3.704, allocations: 83.86 kB / 2.14 GB, free: 37.43 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001082/3.704, allocations: 56.38 kB / 2.14 GB, free: 37.43 MB / 0.7292 GB Notification: Performance of sort global known variables: time 0.001949/3.706, allocations: 1.27 MB / 2.141 GB, free: 37.29 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.005709/3.712, allocations: 1.953 MB / 2.143 GB, free: 36.94 MB / 0.7292 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.00335/3.715, allocations: 1.729 MB / 2.145 GB, free: 36.52 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.004268/3.72, allocations: 3.385 MB / 2.148 GB, free: 35.42 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 5.491e-06/3.72, allocations: 4.031 kB / 2.148 GB, free: 35.42 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.001277/3.721, allocations: 1.151 MB / 2.15 GB, free: 35.02 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00512/3.726, allocations: 1.102 MB / 2.151 GB, free: 35 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007688/3.734, allocations: 4.045 MB / 2.155 GB, free: 34.05 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002138/3.736, allocations: 2.025 MB / 2.157 GB, free: 33.3 MB / 0.7292 GB Notification: Performance of SimCode: time 1.062e-06/3.736, allocations: 0 / 2.157 GB, free: 33.3 MB / 0.7292 GB Notification: Performance of Templates: time 0.08659/3.823, allocations: 64.55 MB / 2.22 GB, free: 29.46 MB / 0.7292 GB make -j1 -f IDEAS_dev_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXTwoUTube.makefile make -j1 -f IDEAS_dev_IDEAS.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/OMCompiler/build/include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=IDEAS_dev_IDEAS_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 IDEAS_dev_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXTwoUTube.o IDEAS_dev_IDEAS.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/OMCompiler/build/include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=IDEAS_dev_IDEAS_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 IDEAS_dev_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXTwoUTube_functions.o IDEAS_dev_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXTwoUTube_functions.c IDEAS_dev_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXTwoUTube_functions.c:1403: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: *** [: IDEAS_dev_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXTwoUTube_functions.o] Error 1