Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTube.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) 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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) 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 Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: translateModel(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTube,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTube") translateModel(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTube,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.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/BuildingSystems 2.0.0-master/package.mo): time 0.7492/0.7492, allocations: 141.8 MB / 149.1 MB, free: 8.996 MB / 139.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00158/0.00158, allocations: 183.1 kB / 181.9 MB, free: 6.102 MB / 155.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.373/1.373, allocations: 221.4 MB / 436 MB, free: 14.11 MB / 347.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009418/0.0009421, allocations: 94.28 kB / 0.507 GB, free: 7.371 MB / 395.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001775/0.001775, allocations: 276.3 kB / 0.5884 GB, free: 4.172 MB / 475.1 MB Notification: Performance of FrontEnd - loaded program: time 1.082e-05/1.084e-05, allocations: 3.594 kB / 0.6759 GB, free: 165.6 MB / 0.5421 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1787/0.1787, allocations: 82.78 MB / 0.7568 GB, free: 112.3 MB / 0.5421 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4752/0.654, allocations: 129.3 MB / 0.8831 GB, free: 121.9 MB / 0.5578 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002833/0.6544, allocations: 126.5 kB / 0.8832 GB, free: 121.9 MB / 0.5578 GB Notification: Performance of FrontEnd: time 0.04922/0.7036, allocations: 15.24 MB / 0.8981 GB, free: 120.7 MB / 0.5578 GB Notification: Performance of Transformations before backend: time 7.725e-06/0.7036, allocations: 1.25 kB / 0.8981 GB, free: 120.7 MB / 0.5578 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.001076/0.7047, allocations: 0.5483 MB / 0.8986 GB, free: 120.2 MB / 0.5578 GB Notification: Performance of prepare preOptimizeDAE: time 4.807e-05/0.7048, allocations: 8.344 kB / 0.8986 GB, free: 120.2 MB / 0.5578 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.765e-05/0.7048, allocations: 82.44 kB / 0.8987 GB, free: 120.1 MB / 0.5578 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001048/0.7049, allocations: 249.6 kB / 0.8989 GB, free: 119.8 MB / 0.5578 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.298e-05/0.705, allocations: 150.6 kB / 0.8991 GB, free: 119.7 MB / 0.5578 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.982e-05/0.705, allocations: 151.9 kB / 0.8992 GB, free: 119.5 MB / 0.5578 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 3.057e-05/0.705, allocations: 158.5 kB / 0.8994 GB, free: 119.4 MB / 0.5578 GB Notification: Performance of preOpt clockPartitioning (simulation): time 3.4e-05/0.7051, allocations: 102.2 kB / 0.8995 GB, free: 119.3 MB / 0.5578 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.341e-05/0.7051, allocations: 79.27 kB / 0.8995 GB, free: 119.2 MB / 0.5578 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.854e-05/0.7051, allocations: 155.7 kB / 0.8997 GB, free: 119.1 MB / 0.5578 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.313e-05/0.7051, allocations: 150.6 kB / 0.8998 GB, free: 118.9 MB / 0.5578 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001935/0.7053, allocations: 454.3 kB / 0.9003 GB, free: 118.4 MB / 0.5578 GB Notification: Performance of preOpt comSubExp (simulation): time 4.816e-05/0.7054, allocations: 166.8 kB / 0.9004 GB, free: 118.3 MB / 0.5578 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.882e-05/0.7054, allocations: 80.14 kB / 0.9005 GB, free: 118.2 MB / 0.5578 GB Notification: Performance of preOpt evalFunc (simulation): time 1.382e-05/0.7054, allocations: 75.28 kB / 0.9006 GB, free: 118.1 MB / 0.5578 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.39e-05/0.7055, allocations: 111.4 kB / 0.9007 GB, free: 118 MB / 0.5578 GB Notification: Performance of pre-optimization done (n=0): time 1.083e-06/0.7055, allocations: 7.938 kB / 0.9007 GB, free: 118 MB / 0.5578 GB Notification: Performance of matching and sorting (n=0): time 6.518e-05/0.7056, allocations: 29.14 kB / 0.9007 GB, free: 118 MB / 0.5578 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.002e-05/0.7056, allocations: 55.34 kB / 0.9008 GB, free: 117.9 MB / 0.5578 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.294e-05/0.7057, allocations: 121.5 kB / 0.9009 GB, free: 117.8 MB / 0.5578 GB Notification: Performance of collectPreVariables (initialization): time 7.524e-06/0.7057, allocations: 25.7 kB / 0.9009 GB, free: 117.8 MB / 0.5578 GB Notification: Performance of collectInitialEqns (initialization): time 2.38e-05/0.7057, allocations: 89.44 kB / 0.901 GB, free: 117.7 MB / 0.5578 GB Notification: Performance of collectInitialBindings (initialization): time 1.433e-06/0.7057, allocations: 1.531 kB / 0.901 GB, free: 117.7 MB / 0.5578 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.866e-06/0.7057, allocations: 0 / 0.901 GB, free: 117.7 MB / 0.5578 GB Notification: Performance of setup shared object (initialization): time 4.751e-05/0.7058, allocations: 320 kB / 0.9013 GB, free: 117.4 MB / 0.5578 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.597e-05/0.7058, allocations: 3.156 kB / 0.9013 GB, free: 117.4 MB / 0.5578 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.581e-05/0.7058, allocations: 7.094 kB / 0.9013 GB, free: 117.4 MB / 0.5578 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.111e-05/0.7059, allocations: 9.328 kB / 0.9013 GB, free: 117.4 MB / 0.5578 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-06/0.7059, allocations: 1.031 kB / 0.9013 GB, free: 117.4 MB / 0.5578 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001389/0.7061, allocations: 50.98 kB / 0.9014 GB, free: 117.3 MB / 0.5578 GB Notification: Performance of prepare postOptimizeDAE: time 1.62e-05/0.7061, allocations: 5.5 kB / 0.9014 GB, free: 117.3 MB / 0.5578 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.649e-05/0.7061, allocations: 2 kB / 0.9014 GB, free: 117.3 MB / 0.5578 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.219e-05/0.7061, allocations: 1.125 kB / 0.9014 GB, free: 117.3 MB / 0.5578 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.71e-07/0.7062, allocations: 0 / 0.9014 GB, free: 117.3 MB / 0.5578 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.042e-06/0.7062, allocations: 12.55 kB / 0.9014 GB, free: 117.3 MB / 0.5578 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.293e-05/0.7062, allocations: 0.8125 kB / 0.9014 GB, free: 117.3 MB / 0.5578 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.135e-06/0.7062, allocations: 1.906 kB / 0.9014 GB, free: 117.3 MB / 0.5578 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 5.28e-05/0.7063, allocations: 181.1 kB / 0.9016 GB, free: 117.1 MB / 0.5578 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.066e-05/0.7063, allocations: 107.1 kB / 0.9017 GB, free: 117 MB / 0.5578 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.392e-05/0.7064, allocations: 114.1 kB / 0.9018 GB, free: 116.9 MB / 0.5578 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.804e-05/0.7064, allocations: 185.2 kB / 0.902 GB, free: 116.7 MB / 0.5578 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.839e-05/0.7064, allocations: 181.5 kB / 0.9021 GB, free: 116.5 MB / 0.5578 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.809e-05/0.7065, allocations: 180.8 kB / 0.9023 GB, free: 116.3 MB / 0.5578 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001365/0.7066, allocations: 400.9 kB / 0.9027 GB, free: 115.9 MB / 0.5578 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.809e-05/0.7066, allocations: 101 kB / 0.9028 GB, free: 115.8 MB / 0.5578 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.867e-05/0.7066, allocations: 102.3 kB / 0.9029 GB, free: 115.7 MB / 0.5578 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.822e-05/0.7067, allocations: 189.3 kB / 0.9031 GB, free: 115.5 MB / 0.5578 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.624e-05/0.7067, allocations: 181.4 kB / 0.9032 GB, free: 115.3 MB / 0.5578 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.475e-05/0.7067, allocations: 177.1 kB / 0.9034 GB, free: 115.2 MB / 0.5578 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.812e-05/0.7068, allocations: 180.8 kB / 0.9036 GB, free: 115 MB / 0.5578 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 7.717e-05/0.7069, allocations: 314 kB / 0.9039 GB, free: 114.6 MB / 0.5578 GB Notification: Performance of postOpt removeConstants (simulation): time 4.64e-05/0.7069, allocations: 187.9 kB / 0.904 GB, free: 114.4 MB / 0.5578 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.05e-05/0.707, allocations: 181.2 kB / 0.9042 GB, free: 114.3 MB / 0.5578 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001018/0.7071, allocations: 106.1 kB / 0.9043 GB, free: 114.1 MB / 0.5578 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.468e-05/0.7071, allocations: 188.8 kB / 0.9045 GB, free: 114 MB / 0.5578 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.934e-05/0.7071, allocations: 102.4 kB / 0.9046 GB, free: 113.9 MB / 0.5578 GB Notification: Performance of sort global known variables: time 4.619e-05/0.7072, allocations: 99.41 kB / 0.9047 GB, free: 113.8 MB / 0.5578 GB Notification: Performance of remove unused functions: time 0.001367/0.7085, allocations: 329.6 kB / 0.905 GB, free: 113.7 MB / 0.5578 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.001375/0.7099, allocations: 0.5764 MB / 0.9056 GB, free: 113.3 MB / 0.5578 GB Notification: Performance of simCode: created initialization part: time 9.446e-05/0.71, allocations: 37.45 kB / 0.9056 GB, free: 113.3 MB / 0.5578 GB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.71, allocations: 3.938 kB / 0.9056 GB, free: 113.3 MB / 0.5578 GB Notification: Performance of simCode: created simulation system equations: time 2.334e-06/0.7101, allocations: 0.75 kB / 0.9056 GB, free: 113.3 MB / 0.5578 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002416/0.7103, allocations: 0.526 MB / 0.9061 GB, free: 112.8 MB / 0.5578 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001923/0.7105, allocations: 144.5 kB / 0.9063 GB, free: 112.6 MB / 0.5578 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001363/0.7106, allocations: 0.6956 MB / 0.9069 GB, free: 111.9 MB / 0.5578 GB Notification: Performance of SimCode: time 2.31e-07/0.7107, allocations: 4 kB / 0.9069 GB, free: 111.9 MB / 0.5578 GB Notification: Performance of Templates: time 0.01076/0.7214, allocations: 5.708 MB / 0.9125 GB, free: 108.4 MB / 0.5578 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTube.makefile make -j1 -f BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTube.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=BuildingSystems_BuildingSystems_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 BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTube.o BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTube.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=BuildingSystems_BuildingSystems_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 BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTube_functions.o BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTube_functions.c BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTube_functions.c:895: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: *** [: BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTube_functions.o] Error 1