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.InternalResistancesOneUTube.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.InternalResistancesOneUTube,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesOneUTube") translateModel(IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesOneUTube,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesOneUTube") [: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.001969/0.001969, allocations: 175.9 kB / 7.46 MB, free: 2.488 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.5863/0.5863, allocations: 133.5 MB / 141.4 MB, free: 15.76 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.117/1.117, allocations: 221.3 MB / 395 MB, free: 10.16 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.0007885/0.0007887, allocations: 103.5 kB / 477.8 MB, free: 10.79 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 7.334e-06/7.434e-06, allocations: 2.844 kB / 0.5529 GB, free: 89.01 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1113/0.1114, allocations: 82.3 MB / 0.6333 GB, free: 14.03 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3362/0.4476, allocations: 130.7 MB / 0.761 GB, free: 7.324 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002904/0.448, allocations: 123.2 kB / 0.7611 GB, free: 7.297 MB / 0.4948 GB Notification: Performance of FrontEnd: time 0.04146/0.4894, allocations: 14.74 MB / 0.7755 GB, free: 1.672 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 9.017e-06/0.4895, allocations: 1 kB / 0.7755 GB, free: 1.672 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.001078/0.4906, allocations: 0.5449 MB / 0.776 GB, free: 17.15 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.509e-05/0.4906, allocations: 8.625 kB / 0.776 GB, free: 17.15 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.092e-05/0.4907, allocations: 85.75 kB / 0.7761 GB, free: 17.07 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001713/0.4909, allocations: 250.6 kB / 0.7763 GB, free: 16.79 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.019e-05/0.4909, allocations: 151.6 kB / 0.7765 GB, free: 16.64 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.375e-05/0.491, allocations: 150.6 kB / 0.7766 GB, free: 16.49 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 5.152e-05/0.491, allocations: 151.6 kB / 0.7768 GB, free: 16.34 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 4.731e-05/0.4911, allocations: 105.5 kB / 0.7769 GB, free: 16.24 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.796e-05/0.4911, allocations: 79.27 kB / 0.7769 GB, free: 16.16 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.239e-05/0.4912, allocations: 162.5 kB / 0.7771 GB, free: 16 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.38e-05/0.4912, allocations: 151.6 kB / 0.7772 GB, free: 15.85 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002699/0.4915, allocations: 444 kB / 0.7777 GB, free: 15.39 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 6.429e-05/0.4916, allocations: 173.8 kB / 0.7778 GB, free: 15.21 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.731e-05/0.4916, allocations: 85.23 kB / 0.7779 GB, free: 15.13 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 2.457e-05/0.4916, allocations: 75.28 kB / 0.778 GB, free: 15.05 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.339e-05/0.4917, allocations: 110.7 kB / 0.7781 GB, free: 14.94 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=0): time 1.834e-06/0.4917, allocations: 0 / 0.7781 GB, free: 14.94 MB / 0.5105 GB Notification: Performance of matching and sorting (n=0): time 8.464e-05/0.4918, allocations: 36.27 kB / 0.7781 GB, free: 14.9 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.983e-05/0.4918, allocations: 51.41 kB / 0.7782 GB, free: 14.84 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000118/0.4919, allocations: 116.3 kB / 0.7783 GB, free: 14.74 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 1.3e-05/0.492, allocations: 25.7 kB / 0.7783 GB, free: 14.71 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 3.398e-05/0.492, allocations: 85.08 kB / 0.7784 GB, free: 14.62 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 1.392e-06/0.492, allocations: 0.9688 kB / 0.7784 GB, free: 14.62 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.836e-06/0.492, allocations: 0 / 0.7784 GB, free: 14.62 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 8.469e-05/0.4921, allocations: 320.5 kB / 0.7787 GB, free: 14.31 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.572e-05/0.4921, allocations: 3.562 kB / 0.7787 GB, free: 14.31 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.346e-05/0.4921, allocations: 3.5 kB / 0.7787 GB, free: 14.31 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.264e-05/0.4922, allocations: 8.062 kB / 0.7787 GB, free: 14.31 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.474e-06/0.4922, allocations: 7.938 kB / 0.7787 GB, free: 14.3 MB / 0.5105 GB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001373/0.4924, allocations: 45.06 kB / 0.7788 GB, free: 14.27 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.553e-05/0.4924, allocations: 5.312 kB / 0.7788 GB, free: 14.27 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.966e-05/0.4924, allocations: 2.531 kB / 0.7788 GB, free: 14.27 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.643e-05/0.4924, allocations: 3.906 kB / 0.7788 GB, free: 14.26 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.42e-07/0.4924, allocations: 0.8438 kB / 0.7788 GB, free: 14.26 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.939e-06/0.4925, allocations: 3.938 kB / 0.7788 GB, free: 14.26 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.245e-05/0.4925, allocations: 5 kB / 0.7788 GB, free: 14.25 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.775e-06/0.4925, allocations: 5.047 kB / 0.7788 GB, free: 14.25 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.609e-05/0.4926, allocations: 182.2 kB / 0.779 GB, free: 14.07 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.455e-05/0.4926, allocations: 109.8 kB / 0.7791 GB, free: 13.96 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.1e-05/0.4927, allocations: 106.6 kB / 0.7792 GB, free: 13.85 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.62e-05/0.4927, allocations: 181.2 kB / 0.7793 GB, free: 13.67 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.927e-05/0.4928, allocations: 181.3 kB / 0.7795 GB, free: 13.48 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.43e-05/0.4928, allocations: 184.7 kB / 0.7797 GB, free: 13.3 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001975/0.493, allocations: 394.4 kB / 0.7801 GB, free: 12.88 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.446e-05/0.4931, allocations: 102.4 kB / 0.7802 GB, free: 12.77 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.838e-05/0.4931, allocations: 102.2 kB / 0.7803 GB, free: 12.67 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.597e-05/0.4932, allocations: 184.2 kB / 0.7804 GB, free: 12.48 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.817e-05/0.4932, allocations: 184.6 kB / 0.7806 GB, free: 12.3 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.42e-05/0.4933, allocations: 185.5 kB / 0.7808 GB, free: 12.11 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.78e-05/0.4933, allocations: 181.1 kB / 0.781 GB, free: 11.93 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000107/0.4934, allocations: 309.1 kB / 0.7813 GB, free: 11.61 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 6.485e-05/0.4935, allocations: 188 kB / 0.7814 GB, free: 11.4 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.251e-05/0.4936, allocations: 177.5 kB / 0.7816 GB, free: 11.22 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.764e-05/0.4936, allocations: 105.8 kB / 0.7817 GB, free: 11.11 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.484e-05/0.4937, allocations: 181.2 kB / 0.7819 GB, free: 10.93 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.83e-05/0.4937, allocations: 109.8 kB / 0.782 GB, free: 10.82 MB / 0.5105 GB Notification: Performance of sort global known variables: time 4.627e-05/0.4938, allocations: 95.31 kB / 0.7821 GB, free: 10.74 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.0009499/0.4947, allocations: 322.1 kB / 0.7824 GB, free: 10.63 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.001317/0.4961, allocations: 0.5462 MB / 0.7829 GB, free: 10.32 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 8.255e-05/0.4962, allocations: 32.89 kB / 0.7829 GB, free: 10.29 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.4962, allocations: 1.188 kB / 0.7829 GB, free: 10.29 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 2.665e-06/0.4962, allocations: 3.938 kB / 0.7829 GB, free: 10.29 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002975/0.4965, allocations: 0.526 MB / 0.7835 GB, free: 9.758 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001887/0.4967, allocations: 154.7 kB / 0.7836 GB, free: 9.598 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002001/0.4969, allocations: 0.6986 MB / 0.7843 GB, free: 8.883 MB / 0.5105 GB Notification: Performance of SimCode: time 2.3e-07/0.4969, allocations: 0 / 0.7843 GB, free: 8.883 MB / 0.5105 GB Notification: Performance of Templates: time 0.008767/0.5057, allocations: 5.396 MB / 0.7896 GB, free: 3.945 MB / 0.5105 GB make -j1 -f IDEAS_dev_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesOneUTube.makefile make -j1 -f IDEAS_dev_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesOneUTube.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_InternalResistancesOneUTube -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.InternalResistancesOneUTube.o IDEAS_dev_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesOneUTube.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_InternalResistancesOneUTube -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.InternalResistancesOneUTube_functions.o IDEAS_dev_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesOneUTube_functions.c IDEAS_dev_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesOneUTube_functions.c:1081: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.InternalResistancesOneUTube_functions.o] Error 1