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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8107/0.8107, allocations: 141.8 MB / 149.3 MB, free: 9.215 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001038/0.001038, allocations: 172.9 kB / 182.2 MB, free: 9.461 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.58/1.58, allocations: 221.5 MB / 436.4 MB, free: 13.29 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009069/0.0009069, allocations: 103.5 kB / 0.5074 GB, free: 10.11 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001701/0.001701, allocations: 284.2 kB / 0.5889 GB, free: 54.67 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 2.339e-05/2.342e-05, allocations: 8 kB / 0.6766 GB, free: 12.78 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4714/0.4715, allocations: 82.78 MB / 0.7574 GB, free: 32.02 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1667/0.6383, allocations: 129.4 MB / 0.8838 GB, free: 14.45 MB / 0.5573 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003182/0.6386, allocations: 123.8 kB / 0.8839 GB, free: 14.33 MB / 0.5573 GB Notification: Performance of FrontEnd - DAE generated: time 0.4116/1.05, allocations: 15.41 MB / 0.8989 GB, free: 128.4 MB / 0.5573 GB Notification: Performance of FrontEnd: time 1.543e-06/1.05, allocations: 3.156 kB / 0.899 GB, free: 128.4 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 7.023e-06/1.05, allocations: 0 / 0.899 GB, free: 128.4 MB / 0.5573 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.001091/1.051, allocations: 0.5481 MB / 0.8995 GB, free: 128 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.859e-05/1.051, allocations: 9.562 kB / 0.8995 GB, free: 128 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.088e-05/1.052, allocations: 88.05 kB / 0.8996 GB, free: 127.9 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001672/1.052, allocations: 253.4 kB / 0.8998 GB, free: 127.7 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.478e-05/1.052, allocations: 152.4 kB / 0.9 GB, free: 127.5 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.053e-05/1.052, allocations: 153.5 kB / 0.9001 GB, free: 127.4 MB / 0.5573 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 3.913e-05/1.052, allocations: 153.4 kB / 0.9003 GB, free: 127.2 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 4.076e-05/1.052, allocations: 105.4 kB / 0.9004 GB, free: 127.1 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.735e-05/1.052, allocations: 77.97 kB / 0.9004 GB, free: 127 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.929e-05/1.052, allocations: 151.1 kB / 0.9006 GB, free: 126.9 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.677e-05/1.052, allocations: 152.5 kB / 0.9007 GB, free: 126.7 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002744/1.052, allocations: 445.9 kB / 0.9012 GB, free: 126.3 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 7.527e-05/1.052, allocations: 172.7 kB / 0.9013 GB, free: 126.1 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.692e-05/1.052, allocations: 80.64 kB / 0.9014 GB, free: 126 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 1.942e-05/1.052, allocations: 76.69 kB / 0.9015 GB, free: 126 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.364e-05/1.052, allocations: 115 kB / 0.9016 GB, free: 125.9 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=0): time 9.11e-07/1.052, allocations: 1.312 kB / 0.9016 GB, free: 125.9 MB / 0.5573 GB Notification: Performance of matching and sorting (n=0): time 9.097e-05/1.053, allocations: 33.27 kB / 0.9016 GB, free: 125.8 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.055e-05/1.053, allocations: 51.41 kB / 0.9017 GB, free: 125.8 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001298/1.053, allocations: 116.3 kB / 0.9018 GB, free: 125.7 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 1.025e-05/1.053, allocations: 25.7 kB / 0.9018 GB, free: 125.6 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 5.369e-05/1.053, allocations: 97.27 kB / 0.9019 GB, free: 125.5 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 2.265e-06/1.053, allocations: 0 / 0.9019 GB, free: 125.5 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.996e-06/1.053, allocations: 1.094 kB / 0.9019 GB, free: 125.5 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 7.314e-05/1.053, allocations: 319.5 kB / 0.9022 GB, free: 125.2 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.954e-05/1.053, allocations: 9.016 kB / 0.9022 GB, free: 125.2 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.655e-05/1.053, allocations: 3.594 kB / 0.9022 GB, free: 125.2 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.853e-05/1.053, allocations: 11.38 kB / 0.9022 GB, free: 125.2 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/1.053, allocations: 0 / 0.9022 GB, free: 125.2 MB / 0.5573 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001636/1.053, allocations: 54.52 kB / 0.9023 GB, free: 125.2 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 2.324e-05/1.053, allocations: 9.484 kB / 0.9023 GB, free: 125.2 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.527e-05/1.053, allocations: 3.031 kB / 0.9023 GB, free: 125.2 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.464e-05/1.053, allocations: 1.297 kB / 0.9023 GB, free: 125.2 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.041e-06/1.053, allocations: 0 / 0.9023 GB, free: 125.2 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.487e-06/1.053, allocations: 0.75 kB / 0.9023 GB, free: 125.2 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.433e-05/1.053, allocations: 3.328 kB / 0.9023 GB, free: 125.2 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.765e-06/1.053, allocations: 3.125 kB / 0.9023 GB, free: 125.2 MB / 0.5573 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 8.334e-05/1.053, allocations: 178.6 kB / 0.9025 GB, free: 125 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.373e-05/1.053, allocations: 120.1 kB / 0.9026 GB, free: 124.9 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.036e-05/1.054, allocations: 108.4 kB / 0.9027 GB, free: 124.8 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.969e-05/1.054, allocations: 183.3 kB / 0.9028 GB, free: 124.6 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.868e-05/1.054, allocations: 181.8 kB / 0.903 GB, free: 124.4 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.235e-05/1.054, allocations: 179.8 kB / 0.9032 GB, free: 124.2 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000161/1.054, allocations: 402.1 kB / 0.9036 GB, free: 123.8 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.803e-05/1.054, allocations: 101.9 kB / 0.9037 GB, free: 123.7 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.224e-05/1.054, allocations: 106.6 kB / 0.9038 GB, free: 123.6 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.253e-05/1.054, allocations: 181.6 kB / 0.9039 GB, free: 123.4 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.39e-05/1.054, allocations: 178 kB / 0.9041 GB, free: 123.3 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.457e-05/1.054, allocations: 185.5 kB / 0.9043 GB, free: 123.1 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.4e-05/1.054, allocations: 181.8 kB / 0.9045 GB, free: 122.9 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.926e-05/1.054, allocations: 305.6 kB / 0.9048 GB, free: 122.6 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 4.574e-05/1.054, allocations: 186.5 kB / 0.9049 GB, free: 122.4 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.205e-05/1.054, allocations: 186.2 kB / 0.9051 GB, free: 122.2 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.572e-05/1.054, allocations: 106.3 kB / 0.9052 GB, free: 122.1 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.398e-05/1.054, allocations: 184.5 kB / 0.9054 GB, free: 121.9 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.829e-05/1.054, allocations: 104.8 kB / 0.9055 GB, free: 121.8 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 4.782e-05/1.054, allocations: 96.52 kB / 0.9056 GB, free: 121.7 MB / 0.5573 GB Notification: Performance of sort global known variables: time 1.4e-07/1.054, allocations: 0 / 0.9056 GB, free: 121.7 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.001625/1.056, allocations: 327.9 kB / 0.9059 GB, free: 121.7 MB / 0.5573 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.001322/1.057, allocations: 0.5663 MB / 0.9065 GB, free: 121.4 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.0001005/1.057, allocations: 44.59 kB / 0.9065 GB, free: 121.4 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/1.058, allocations: 1.375 kB / 0.9065 GB, free: 121.4 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 2.635e-06/1.058, allocations: 0.8125 kB / 0.9065 GB, free: 121.4 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002465/1.058, allocations: 0.5256 MB / 0.907 GB, free: 120.9 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001939/1.058, allocations: 144.5 kB / 0.9071 GB, free: 120.7 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001388/1.058, allocations: 0.696 MB / 0.9078 GB, free: 120 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 1.444e-05/1.058, allocations: 4.594 kB / 0.9078 GB, free: 120 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.399e-05/1.058, allocations: 10.64 kB / 0.9078 GB, free: 120 MB / 0.5573 GB Notification: Performance of SimCode: time 2.5e-07/1.058, allocations: 3.828 kB / 0.9078 GB, free: 120 MB / 0.5573 GB Notification: Performance of Templates: time 0.01094/1.069, allocations: 5.438 MB / 0.9132 GB, free: 119.6 MB / 0.5573 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 -Os -fPIC -falign-functions -mfpmath=sse "-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 -Os -fPIC -falign-functions -mfpmath=sse "-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:817: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