Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_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/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/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_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_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.001016/0.001016, allocations: 182.7 kB / 7.454 MB, free: 1.555 MB / 6.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.6411/0.6411, allocations: 130.6 MB / 138.5 MB, free: 7.676 MB / 114.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.347/1.347, allocations: 221.3 MB / 391.4 MB, free: 1.211 MB / 306.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000934/0.000934, allocations: 97.06 kB / 473.4 MB, free: 15.33 MB / 402.8 MB Notification: Performance of FrontEnd - loaded program: time 8.976e-06/9.016e-06, allocations: 4 kB / 0.548 GB, free: 53.3 MB / 402.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.185/0.185, allocations: 81.58 MB / 0.6276 GB, free: 3.699 MB / 434.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.055/1.24, allocations: 402.7 MB / 1.021 GB, free: 127.9 MB / 0.6589 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003678/1.24, allocations: 121.6 kB / 1.021 GB, free: 127.9 MB / 0.6589 GB Notification: Performance of FrontEnd: time 3.911/5.152, allocations: 1.041 GB / 2.062 GB, free: 70.88 MB / 0.7058 GB Notification: Performance of Transformations before backend: time 0.0006089/5.152, allocations: 79.42 kB / 2.063 GB, free: 70.86 MB / 0.7058 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.01192/5.164, allocations: 3.083 MB / 2.066 GB, free: 69.32 MB / 0.7058 GB Notification: Performance of prepare preOptimizeDAE: time 5.643e-05/5.164, allocations: 6.969 kB / 2.066 GB, free: 69.32 MB / 0.7058 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002537/5.167, allocations: 376 kB / 2.066 GB, free: 69.14 MB / 0.7058 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01042/5.177, allocations: 2.954 MB / 2.069 GB, free: 68.59 MB / 0.7058 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002515/5.178, allocations: 66.59 kB / 2.069 GB, free: 68.59 MB / 0.7058 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001268/5.179, allocations: 127.9 kB / 2.069 GB, free: 68.59 MB / 0.7058 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006024/5.185, allocations: 1.459 MB / 2.07 GB, free: 68.57 MB / 0.7058 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006247/5.191, allocations: 1.797 MB / 2.072 GB, free: 68.32 MB / 0.7058 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.921e-05/5.191, allocations: 6.781 kB / 2.072 GB, free: 68.32 MB / 0.7058 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002205/5.192, allocations: 3.875 kB / 2.072 GB, free: 68.32 MB / 0.7058 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.951e-05/5.192, allocations: 48.28 kB / 2.072 GB, free: 68.32 MB / 0.7058 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01429/5.206, allocations: 8.859 MB / 2.081 GB, free: 65.39 MB / 0.7058 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001217/5.207, allocations: 0.8475 MB / 2.082 GB, free: 65.37 MB / 0.7058 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009757/5.208, allocations: 0.7748 MB / 2.082 GB, free: 65.36 MB / 0.7058 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00201/5.21, allocations: 2.922 MB / 2.085 GB, free: 62.08 MB / 0.7058 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.571e-05/5.21, allocations: 53.47 kB / 2.085 GB, free: 62.04 MB / 0.7058 GB Notification: Performance of pre-optimization done (n=148): time 4.628e-06/5.21, allocations: 0 / 2.085 GB, free: 62.04 MB / 0.7058 GB Notification: Performance of matching and sorting (n=148): time 0.004313/5.215, allocations: 1.664 MB / 2.087 GB, free: 61.8 MB / 0.7058 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.129e-05/5.215, allocations: 91.86 kB / 2.087 GB, free: 61.7 MB / 0.7058 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002814/5.217, allocations: 1.704 MB / 2.089 GB, free: 61.49 MB / 0.7058 GB Notification: Performance of collectPreVariables (initialization): time 0.000203/5.218, allocations: 29.64 kB / 2.089 GB, free: 61.46 MB / 0.7058 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005579/5.218, allocations: 0.7955 MB / 2.09 GB, free: 61.03 MB / 0.7058 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005872/5.219, allocations: 0.4978 MB / 2.09 GB, free: 60.7 MB / 0.7058 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.127e-05/5.219, allocations: 1.969 kB / 2.09 GB, free: 60.7 MB / 0.7058 GB Notification: Performance of setup shared object (initialization): time 0.0001047/5.219, allocations: 367.3 kB / 2.09 GB, free: 60.39 MB / 0.7058 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007844/5.22, allocations: 0.4941 MB / 2.091 GB, free: 60.39 MB / 0.7058 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009667/5.221, allocations: 0.8454 MB / 2.092 GB, free: 60.04 MB / 0.7058 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002072/5.223, allocations: 0.8423 MB / 2.093 GB, free: 60.01 MB / 0.7058 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.732e-06/5.223, allocations: 0 / 2.093 GB, free: 60.01 MB / 0.7058 GB Notification: Performance of matching and sorting (n=215) (initialization): time 0.004556/5.227, allocations: 2.017 MB / 2.094 GB, free: 59.76 MB / 0.7058 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005484/5.228, allocations: 2.695 MB / 2.097 GB, free: 56.9 MB / 0.7058 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.584e-05/5.228, allocations: 10.06 kB / 2.097 GB, free: 56.9 MB / 0.7058 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004959/5.229, allocations: 201.6 kB / 2.097 GB, free: 56.85 MB / 0.7058 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001182/5.23, allocations: 355.4 kB / 2.098 GB, free: 56.85 MB / 0.7058 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004443/5.234, allocations: 6.844 MB / 2.104 GB, free: 50.71 MB / 0.7058 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003758/5.238, allocations: 219.8 kB / 2.105 GB, free: 50.64 MB / 0.7058 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003734/5.238, allocations: 76.77 kB / 2.105 GB, free: 50.64 MB / 0.7058 GB Notification: Performance of prepare postOptimizeDAE: time 1.033e-05/5.238, allocations: 0 / 2.105 GB, free: 50.64 MB / 0.7058 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004058/5.243, allocations: 1.712 MB / 2.106 GB, free: 50.54 MB / 0.7058 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.242e-05/5.243, allocations: 6.906 kB / 2.106 GB, free: 50.54 MB / 0.7058 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004807/5.243, allocations: 202.7 kB / 2.106 GB, free: 50.49 MB / 0.7058 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001157/5.244, allocations: 351.6 kB / 2.107 GB, free: 50.49 MB / 0.7058 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005476/5.25, allocations: 8.568 MB / 2.115 GB, free: 42.86 MB / 0.7058 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002919/5.253, allocations: 199 kB / 2.115 GB, free: 42.8 MB / 0.7058 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001841/5.253, allocations: 70.56 kB / 2.115 GB, free: 42.8 MB / 0.7058 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.0005312/5.253, allocations: 147.2 kB / 2.116 GB, free: 42.69 MB / 0.7058 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006722/5.254, allocations: 235.9 kB / 2.116 GB, free: 42.57 MB / 0.7058 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005064/5.259, allocations: 2.142 MB / 2.118 GB, free: 42.4 MB / 0.7058 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.94e-05/5.259, allocations: 26.83 kB / 2.118 GB, free: 42.4 MB / 0.7058 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.069e-05/5.259, allocations: 0 / 2.118 GB, free: 42.4 MB / 0.7058 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003448/5.263, allocations: 1.722 MB / 2.12 GB, free: 42.05 MB / 0.7058 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01008/5.273, allocations: 4.203 MB / 2.124 GB, free: 40.54 MB / 0.7058 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.047e-06/5.273, allocations: 1.406 kB / 2.124 GB, free: 40.54 MB / 0.7058 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001228/5.274, allocations: 272.5 kB / 2.124 GB, free: 40.52 MB / 0.7058 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000451/5.275, allocations: 185.6 kB / 2.124 GB, free: 40.43 MB / 0.7058 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.417e-05/5.275, allocations: 26.89 kB / 2.124 GB, free: 40.42 MB / 0.7058 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00426/5.279, allocations: 6.805 MB / 2.131 GB, free: 33.86 MB / 0.7058 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.398e-06/5.279, allocations: 4.406 kB / 2.131 GB, free: 33.86 MB / 0.7058 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.006371/5.285, allocations: 2.792 MB / 2.134 GB, free: 32.56 MB / 0.7058 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001942/5.287, allocations: 0.5424 MB / 2.134 GB, free: 32.18 MB / 0.7058 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003883/5.288, allocations: 10.09 kB / 2.134 GB, free: 32.18 MB / 0.7058 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001438/5.289, allocations: 129.1 kB / 2.134 GB, free: 32.16 MB / 0.7058 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001654/5.289, allocations: 89.08 kB / 2.134 GB, free: 32.15 MB / 0.7058 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001294/5.289, allocations: 57.47 kB / 2.134 GB, free: 32.14 MB / 0.7058 GB Notification: Performance of sort global known variables: time 0.002415/5.292, allocations: 1.271 MB / 2.136 GB, free: 31.57 MB / 0.7058 GB Notification: Performance of remove unused functions: time 0.008458/5.3, allocations: 1.95 MB / 2.138 GB, free: 31.12 MB / 0.7058 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.00413/5.304, allocations: 1.741 MB / 2.139 GB, free: 30.61 MB / 0.7058 GB Notification: Performance of simCode: created initialization part: time 0.005229/5.31, allocations: 3.384 MB / 2.143 GB, free: 28.68 MB / 0.7058 GB Notification: Performance of simCode: created event and clocks part: time 8.366e-06/5.31, allocations: 3.859 kB / 2.143 GB, free: 28.68 MB / 0.7058 GB Notification: Performance of simCode: created simulation system equations: time 0.001499/5.311, allocations: 1.144 MB / 2.144 GB, free: 28 MB / 0.7058 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006962/5.318, allocations: 1.108 MB / 2.145 GB, free: 27.79 MB / 0.7058 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01004/5.328, allocations: 4.06 MB / 2.149 GB, free: 26.14 MB / 0.7058 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002548/5.331, allocations: 2.017 MB / 2.151 GB, free: 25.29 MB / 0.7058 GB Notification: Performance of SimCode: time 2.435e-06/5.331, allocations: 0 / 2.151 GB, free: 25.29 MB / 0.7058 GB Notification: Performance of Templates: time 0.5845/5.915, allocations: 64.53 MB / 2.214 GB, free: 143.9 MB / 0.7214 GB make -j1 -f IDEAS_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXTwoUTube.makefile make -j1 -f IDEAS_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@2/OMCompiler/build/include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=IDEAS_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_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXTwoUTube.o IDEAS_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@2/OMCompiler/build/include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=IDEAS_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_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXTwoUTube_functions.o IDEAS_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXTwoUTube_functions.c IDEAS_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_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXTwoUTube_functions.o] Error 1