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.InternalResistancesTwoUTubeNegative.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.InternalResistancesTwoUTubeNegative,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTubeNegative") translateModel(IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTubeNegative,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTubeNegative") [: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.002347/0.002347, allocations: 179.9 kB / 7.464 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.5932/0.5932, allocations: 133.5 MB / 141.4 MB, free: 15.69 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.133/1.133, allocations: 221.3 MB / 395 MB, free: 10.28 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.0008504/0.0008504, allocations: 94.47 kB / 477.8 MB, free: 10.95 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 7.183e-06/7.203e-06, allocations: 2.625 kB / 0.5529 GB, free: 88.95 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1057/0.1057, allocations: 82.3 MB / 0.6333 GB, free: 14.09 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3584/0.4641, allocations: 131.5 MB / 0.7617 GB, free: 7.055 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002534/0.4644, allocations: 111.1 kB / 0.7618 GB, free: 7.031 MB / 0.4948 GB Notification: Performance of FrontEnd: time 0.04107/0.5055, allocations: 15.08 MB / 0.7765 GB, free: 1.281 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 6.041e-06/0.5055, allocations: 1 kB / 0.7765 GB, free: 1.281 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.0007294/0.5063, allocations: 0.553 MB / 0.777 GB, free: 16.75 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 3.863e-05/0.5063, allocations: 9 kB / 0.7771 GB, free: 16.75 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.689e-05/0.5064, allocations: 85.97 kB / 0.7771 GB, free: 16.67 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001501/0.5065, allocations: 253.5 kB / 0.7774 GB, free: 16.39 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.319e-05/0.5066, allocations: 151.6 kB / 0.7775 GB, free: 16.25 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.143e-05/0.5066, allocations: 150.6 kB / 0.7777 GB, free: 16.1 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 4.696e-05/0.5067, allocations: 151.6 kB / 0.7778 GB, free: 15.95 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 5.245e-05/0.5067, allocations: 105.9 kB / 0.7779 GB, free: 15.84 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.298e-05/0.5068, allocations: 83.22 kB / 0.778 GB, free: 15.76 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.814e-05/0.5068, allocations: 151.3 kB / 0.7781 GB, free: 15.61 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.854e-05/0.5069, allocations: 150.6 kB / 0.7783 GB, free: 15.46 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002417/0.5071, allocations: 448.9 kB / 0.7787 GB, free: 15 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 6.016e-05/0.5072, allocations: 177.3 kB / 0.7789 GB, free: 14.82 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.439e-05/0.5072, allocations: 84.92 kB / 0.779 GB, free: 14.73 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 2.342e-05/0.5073, allocations: 79.22 kB / 0.779 GB, free: 14.66 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.134e-05/0.5073, allocations: 106.7 kB / 0.7791 GB, free: 14.54 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=0): time 1.313e-06/0.5073, allocations: 0.75 kB / 0.7791 GB, free: 14.54 MB / 0.5105 GB Notification: Performance of matching and sorting (n=0): time 7.471e-05/0.5074, allocations: 31.83 kB / 0.7792 GB, free: 14.51 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.39e-05/0.5074, allocations: 56.03 kB / 0.7792 GB, free: 14.44 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000103/0.5075, allocations: 116.1 kB / 0.7793 GB, free: 14.34 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 1.115e-05/0.5075, allocations: 26.83 kB / 0.7794 GB, free: 14.31 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 3.717e-05/0.5076, allocations: 89.84 kB / 0.7794 GB, free: 14.23 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 1.303e-06/0.5076, allocations: 0 / 0.7794 GB, free: 14.23 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.505e-06/0.5076, allocations: 0 / 0.7794 GB, free: 14.23 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 9.151e-05/0.5077, allocations: 316.5 kB / 0.7797 GB, free: 13.91 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.385e-05/0.5077, allocations: 6.625 kB / 0.7798 GB, free: 13.91 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.25e-05/0.5077, allocations: 3.938 kB / 0.7798 GB, free: 13.91 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.654e-05/0.5078, allocations: 12.5 kB / 0.7798 GB, free: 13.91 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.5078, allocations: 0 / 0.7798 GB, free: 13.91 MB / 0.5105 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001244/0.5079, allocations: 58.25 kB / 0.7798 GB, free: 13.86 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.198e-05/0.508, allocations: 5.594 kB / 0.7798 GB, free: 13.86 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.819e-05/0.508, allocations: 2.938 kB / 0.7798 GB, free: 13.86 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.345e-05/0.508, allocations: 1 kB / 0.7798 GB, free: 13.86 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.01e-07/0.508, allocations: 0 / 0.7798 GB, free: 13.86 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.306e-06/0.508, allocations: 0 / 0.7798 GB, free: 13.86 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.086e-05/0.508, allocations: 1.656 kB / 0.7798 GB, free: 13.86 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.072e-06/0.508, allocations: 0.8125 kB / 0.7798 GB, free: 13.86 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 7.765e-05/0.5081, allocations: 189 kB / 0.78 GB, free: 13.67 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.311e-05/0.5082, allocations: 107.8 kB / 0.7801 GB, free: 13.56 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.933e-05/0.5082, allocations: 110.9 kB / 0.7802 GB, free: 13.45 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.529e-05/0.5083, allocations: 180.4 kB / 0.7804 GB, free: 13.27 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.397e-05/0.5084, allocations: 177 kB / 0.7806 GB, free: 13.09 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.456e-05/0.5084, allocations: 188.9 kB / 0.7807 GB, free: 12.9 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001992/0.5086, allocations: 387.8 kB / 0.7811 GB, free: 12.49 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.539e-05/0.5087, allocations: 105.4 kB / 0.7812 GB, free: 12.38 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.94e-05/0.5087, allocations: 105.8 kB / 0.7813 GB, free: 12.27 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.27e-05/0.5088, allocations: 177.1 kB / 0.7815 GB, free: 12.09 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.802e-05/0.5088, allocations: 185.5 kB / 0.7817 GB, free: 11.91 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.726e-05/0.5089, allocations: 193.1 kB / 0.7818 GB, free: 11.71 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.494e-05/0.5089, allocations: 181.2 kB / 0.782 GB, free: 11.53 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001103/0.509, allocations: 322 kB / 0.7823 GB, free: 11.2 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 6.756e-05/0.5091, allocations: 183.8 kB / 0.7825 GB, free: 11 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.524e-05/0.5092, allocations: 181.9 kB / 0.7827 GB, free: 10.81 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.921e-05/0.5093, allocations: 105.8 kB / 0.7828 GB, free: 10.7 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.127e-05/0.5093, allocations: 177.3 kB / 0.7829 GB, free: 10.52 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.478e-05/0.5094, allocations: 105 kB / 0.783 GB, free: 10.41 MB / 0.5105 GB Notification: Performance of sort global known variables: time 4.919e-05/0.5094, allocations: 97.25 kB / 0.7831 GB, free: 10.34 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.0007945/0.5102, allocations: 326.5 kB / 0.7834 GB, free: 10.23 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.00108/0.5113, allocations: 0.5533 MB / 0.784 GB, free: 9.855 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 7.912e-05/0.5114, allocations: 41.12 kB / 0.784 GB, free: 9.812 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.5114, allocations: 0 / 0.784 GB, free: 9.812 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 2.034e-06/0.5114, allocations: 7.938 kB / 0.784 GB, free: 9.805 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002858/0.5117, allocations: 0.5241 MB / 0.7845 GB, free: 9.281 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001535/0.5119, allocations: 150.7 kB / 0.7847 GB, free: 9.113 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002236/0.5121, allocations: 0.6958 MB / 0.7854 GB, free: 8.391 MB / 0.5105 GB Notification: Performance of SimCode: time 2.31e-07/0.5121, allocations: 0 / 0.7854 GB, free: 8.391 MB / 0.5105 GB Notification: Performance of Templates: time 0.008545/0.5207, allocations: 5.575 MB / 0.7908 GB, free: 2.883 MB / 0.5105 GB make -j1 -f IDEAS_dev_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTubeNegative.makefile make -j1 -f IDEAS_dev_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTubeNegative.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_InternalResistancesTwoUTubeNegative -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.InternalResistancesTwoUTubeNegative.o IDEAS_dev_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTubeNegative.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_InternalResistancesTwoUTubeNegative -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.InternalResistancesTwoUTubeNegative_functions.o IDEAS_dev_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTubeNegative_functions.c IDEAS_dev_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTubeNegative_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.InternalResistancesTwoUTubeNegative_functions.o] Error 1