Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_dev_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTube.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.Functions.Validation.InternalResistancesTwoUTube,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTube") translateModel(IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTube,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.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/Complex 4.0.0+maint.om/package.mo): time 0.002159/0.002159, allocations: 183 kB / 7.462 MB, free: 2.48 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.5997/0.5997, allocations: 133.5 MB / 141.4 MB, free: 15.67 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.125/1.125, allocations: 221.3 MB / 395 MB, free: 10.25 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.0008688/0.0008687, allocations: 95.52 kB / 477.8 MB, free: 10.84 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 7.875e-06/8.075e-06, allocations: 2.688 kB / 0.5529 GB, free: 89.19 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1151/0.1151, allocations: 82.3 MB / 0.6333 GB, free: 14.04 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3426/0.4578, allocations: 131.5 MB / 0.7617 GB, free: 6.973 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002366/0.458, allocations: 115 kB / 0.7618 GB, free: 6.949 MB / 0.4948 GB Notification: Performance of FrontEnd: time 0.04168/0.4997, allocations: 15.08 MB / 0.7765 GB, free: 1.199 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 6.773e-06/0.4998, allocations: 0.9062 kB / 0.7765 GB, free: 1.199 MB / 0.4948 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.0007916/0.5006, allocations: 0.5558 MB / 0.777 GB, free: 16.67 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 3.914e-05/0.5006, allocations: 9.312 kB / 0.7771 GB, free: 16.67 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.718e-05/0.5007, allocations: 81.56 kB / 0.7771 GB, free: 16.59 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001444/0.5008, allocations: 250.5 kB / 0.7774 GB, free: 16.31 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.778e-05/0.5009, allocations: 157.9 kB / 0.7775 GB, free: 16.16 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.572e-05/0.5009, allocations: 151.4 kB / 0.7777 GB, free: 16.01 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 4.782e-05/0.501, allocations: 155.7 kB / 0.7778 GB, free: 15.86 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 4.381e-05/0.501, allocations: 102.1 kB / 0.7779 GB, free: 15.75 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.082e-05/0.5011, allocations: 75.28 kB / 0.778 GB, free: 15.68 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.974e-05/0.5011, allocations: 150.6 kB / 0.7781 GB, free: 15.53 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.603e-05/0.5011, allocations: 151.2 kB / 0.7783 GB, free: 15.38 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002248/0.5014, allocations: 457.1 kB / 0.7787 GB, free: 14.91 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 6.113e-05/0.5014, allocations: 174 kB / 0.7789 GB, free: 14.73 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.544e-05/0.5015, allocations: 83.89 kB / 0.779 GB, free: 14.65 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 2.131e-05/0.5015, allocations: 76.22 kB / 0.779 GB, free: 14.58 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.482e-05/0.5015, allocations: 110.8 kB / 0.7791 GB, free: 14.46 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=0): time 1.162e-06/0.5015, allocations: 0 / 0.7791 GB, free: 14.46 MB / 0.5105 GB Notification: Performance of matching and sorting (n=0): time 7.052e-05/0.5016, allocations: 36.02 kB / 0.7792 GB, free: 14.42 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.443e-05/0.5016, allocations: 52.06 kB / 0.7792 GB, free: 14.36 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.626e-05/0.5017, allocations: 116.4 kB / 0.7793 GB, free: 14.26 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 1.449e-05/0.5018, allocations: 26.36 kB / 0.7794 GB, free: 14.23 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 2.77e-05/0.5018, allocations: 86.16 kB / 0.7794 GB, free: 14.14 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 1.543e-06/0.5018, allocations: 0 / 0.7794 GB, free: 14.14 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.445e-06/0.5018, allocations: 0 / 0.7794 GB, free: 14.14 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 7.562e-05/0.5019, allocations: 323.8 kB / 0.7797 GB, free: 13.82 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.335e-05/0.5019, allocations: 6.281 kB / 0.7798 GB, free: 13.82 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.451e-05/0.5019, allocations: 3.406 kB / 0.7798 GB, free: 13.82 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.791e-05/0.502, allocations: 9 kB / 0.7798 GB, free: 13.82 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.502, allocations: 0 / 0.7798 GB, free: 13.82 MB / 0.5105 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.000134/0.5022, allocations: 54.78 kB / 0.7798 GB, free: 13.79 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.273e-05/0.5022, allocations: 5.594 kB / 0.7798 GB, free: 13.79 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.835e-05/0.5022, allocations: 2.812 kB / 0.7798 GB, free: 13.79 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.182e-05/0.5022, allocations: 4.875 kB / 0.7798 GB, free: 13.78 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.21e-07/0.5022, allocations: 64 / 0.7798 GB, free: 13.78 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.687e-06/0.5022, allocations: 4.875 kB / 0.7798 GB, free: 13.78 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.38e-05/0.5023, allocations: 0.7812 kB / 0.7798 GB, free: 13.78 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.342e-06/0.5023, allocations: 4.812 kB / 0.7798 GB, free: 13.77 MB / 0.5105 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 6.919e-05/0.5023, allocations: 185.5 kB / 0.78 GB, free: 13.59 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.745e-05/0.5024, allocations: 107.9 kB / 0.7801 GB, free: 13.48 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.923e-05/0.5024, allocations: 106.4 kB / 0.7802 GB, free: 13.37 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.362e-05/0.5025, allocations: 188.4 kB / 0.7804 GB, free: 13.18 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.22e-05/0.5025, allocations: 181.7 kB / 0.7806 GB, free: 13 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.85e-05/0.5026, allocations: 177.9 kB / 0.7807 GB, free: 12.82 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001571/0.5028, allocations: 393.3 kB / 0.7811 GB, free: 12.4 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.459e-05/0.5028, allocations: 101.8 kB / 0.7812 GB, free: 12.3 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.625e-05/0.5028, allocations: 101.9 kB / 0.7813 GB, free: 12.19 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.354e-05/0.5029, allocations: 193.9 kB / 0.7815 GB, free: 12 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.558e-05/0.5029, allocations: 180.9 kB / 0.7817 GB, free: 11.81 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.518e-05/0.503, allocations: 184.8 kB / 0.7818 GB, free: 11.62 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.134e-05/0.503, allocations: 181.2 kB / 0.782 GB, free: 11.44 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 9.93e-05/0.5031, allocations: 312.8 kB / 0.7823 GB, free: 11.12 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 5.525e-05/0.5032, allocations: 187.7 kB / 0.7825 GB, free: 10.91 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.848e-05/0.5033, allocations: 181.7 kB / 0.7827 GB, free: 10.73 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.134e-05/0.5033, allocations: 105.9 kB / 0.7828 GB, free: 10.62 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.853e-05/0.5034, allocations: 180.2 kB / 0.7829 GB, free: 10.44 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.654e-05/0.5034, allocations: 106.1 kB / 0.783 GB, free: 10.33 MB / 0.5105 GB Notification: Performance of sort global known variables: time 4.533e-05/0.5035, allocations: 100.4 kB / 0.7831 GB, free: 10.25 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.0008689/0.5044, allocations: 325.5 kB / 0.7835 GB, free: 10.14 MB / 0.5105 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.001152/0.5055, allocations: 0.548 MB / 0.784 GB, free: 9.805 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 7.699e-05/0.5056, allocations: 41.06 kB / 0.784 GB, free: 9.762 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.533e-06/0.5056, allocations: 0 / 0.784 GB, free: 9.762 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 1.312e-06/0.5056, allocations: 0 / 0.784 GB, free: 9.762 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002645/0.5059, allocations: 0.5294 MB / 0.7845 GB, free: 9.23 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001577/0.506, allocations: 150.6 kB / 0.7847 GB, free: 9.062 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001816/0.5062, allocations: 0.6919 MB / 0.7854 GB, free: 8.344 MB / 0.5105 GB Notification: Performance of SimCode: time 2.4e-07/0.5062, allocations: 0 / 0.7854 GB, free: 8.344 MB / 0.5105 GB Notification: Performance of Templates: time 0.008362/0.5146, allocations: 5.578 MB / 0.7908 GB, free: 2.832 MB / 0.5105 GB make -j1 -f IDEAS_dev_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTube.makefile make -j1 -f IDEAS_dev_IDEAS.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=IDEAS_dev_IDEAS_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 IDEAS_dev_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTube.o IDEAS_dev_IDEAS.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=IDEAS_dev_IDEAS_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 IDEAS_dev_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTube_functions.o IDEAS_dev_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTube_functions.c IDEAS_dev_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTube_functions.c:1119: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.Functions.Validation.InternalResistancesTwoUTube_functions.o] Error 1