Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Buildings_6.0.0_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.MultipoleThermalResistances_OneUTube.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package Buildings with version 6.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.MultipoleThermalResistances_OneUTube,fileNamePrefix="Buildings_6_0_0_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Functions_Validation_MultipoleThermalResistances_OneUTube",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Buildings): time 4.116/4.116, allocations: 433.2 MB / 440.7 MB, free: 4.602 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 2.829e-05/2.825e-05, allocations: 5.344 kB / 0.5325 GB, free: 12.68 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2237/0.2238, allocations: 98.74 MB / 0.629 GB, free: 9.109 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2544/0.4783, allocations: 136.1 MB / 0.7618 GB, free: 0.832 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004421/0.4788, allocations: 115.9 kB / 0.762 GB, free: 0.7188 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.03828/0.5171, allocations: 7.8 MB / 0.7696 GB, free: 8.906 MB / 0.6511 GB Notification: Performance of FrontEnd: time 6.953e-06/0.5171, allocations: 0 / 0.7696 GB, free: 8.906 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 1.116e-05/0.5172, allocations: 3.938 kB / 0.7696 GB, free: 8.902 MB / 0.6511 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0009464/0.5181, allocations: 493.8 kB / 0.7701 GB, free: 8.375 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 5.779e-05/0.5182, allocations: 12.03 kB / 0.7701 GB, free: 8.363 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.512e-05/0.5182, allocations: 7.859 kB / 0.7701 GB, free: 8.355 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002302/0.5185, allocations: 187.5 kB / 0.7702 GB, free: 8.129 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.078e-05/0.5185, allocations: 0 / 0.7702 GB, free: 8.129 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.391e-05/0.5185, allocations: 0 / 0.7702 GB, free: 8.129 MB / 0.6511 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.884e-05/0.5186, allocations: 27.98 kB / 0.7703 GB, free: 8.102 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001229/0.5188, allocations: 49.69 kB / 0.7703 GB, free: 8.047 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.725e-06/0.5188, allocations: 0 / 0.7703 GB, free: 8.047 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.332e-05/0.5188, allocations: 8 kB / 0.7703 GB, free: 8.039 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.568e-06/0.5188, allocations: 7.938 kB / 0.7703 GB, free: 8.031 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002509/0.5191, allocations: 162.2 kB / 0.7705 GB, free: 7.836 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001038/0.5192, allocations: 50.5 kB / 0.7705 GB, free: 7.777 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.666e-05/0.5193, allocations: 32.88 kB / 0.7706 GB, free: 7.742 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 2.934e-05/0.5193, allocations: 0 / 0.7706 GB, free: 7.742 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.766e-05/0.5194, allocations: 30.56 kB / 0.7706 GB, free: 7.703 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=8): time 1.673e-06/0.5194, allocations: 7.938 kB / 0.7706 GB, free: 7.695 MB / 0.6511 GB Notification: Performance of matching and sorting (n=8): time 0.0002737/0.5197, allocations: 93.72 kB / 0.7707 GB, free: 7.598 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.59e-05/0.5197, allocations: 55.39 kB / 0.7708 GB, free: 7.531 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001746/0.5199, allocations: 133.5 kB / 0.7709 GB, free: 7.391 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 2.162e-05/0.52, allocations: 25.7 kB / 0.7709 GB, free: 7.359 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 6.839e-05/0.52, allocations: 101.9 kB / 0.771 GB, free: 7.258 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 5.28e-05/0.5201, allocations: 31.55 kB / 0.771 GB, free: 7.227 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.318e-06/0.5201, allocations: 3.938 kB / 0.771 GB, free: 7.223 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001349/0.5203, allocations: 326.8 kB / 0.7713 GB, free: 6.895 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.167e-05/0.5203, allocations: 19.98 kB / 0.7714 GB, free: 6.875 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.737e-05/0.5204, allocations: 31.97 kB / 0.7714 GB, free: 6.844 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.314e-05/0.5205, allocations: 27.97 kB / 0.7714 GB, free: 6.816 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.5205, allocations: 4 kB / 0.7714 GB, free: 6.812 MB / 0.6511 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001996/0.5207, allocations: 89.58 kB / 0.7715 GB, free: 6.719 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 2.153e-05/0.5208, allocations: 5.094 kB / 0.7715 GB, free: 6.715 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.442e-05/0.5208, allocations: 7.938 kB / 0.7715 GB, free: 6.707 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.833e-05/0.5208, allocations: 0 / 0.7715 GB, free: 6.707 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.457e-06/0.5208, allocations: 3.984 kB / 0.7715 GB, free: 6.703 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.579e-06/0.5208, allocations: 4.062 kB / 0.7715 GB, free: 6.699 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.055e-05/0.5209, allocations: 0 / 0.7715 GB, free: 6.699 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.451e-05/0.5209, allocations: 4 kB / 0.7715 GB, free: 6.695 MB / 0.6511 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.731e-05/0.521, allocations: 104.9 kB / 0.7716 GB, free: 6.586 MB / 0.6511 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.000177/0.5212, allocations: 97.42 kB / 0.7717 GB, free: 6.484 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.796e-05/0.5212, allocations: 7.906 kB / 0.7717 GB, free: 6.477 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00027/0.5215, allocations: 204.3 kB / 0.7719 GB, free: 6.242 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.727e-05/0.5216, allocations: 180.3 kB / 0.7721 GB, free: 6.059 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.362e-05/0.5217, allocations: 180.2 kB / 0.7723 GB, free: 5.875 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.605e-05/0.5218, allocations: 180.2 kB / 0.7724 GB, free: 5.691 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002895/0.5221, allocations: 421.6 kB / 0.7728 GB, free: 5.234 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.798e-05/0.5221, allocations: 101 kB / 0.7729 GB, free: 5.129 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.972e-05/0.5222, allocations: 105 kB / 0.773 GB, free: 5.02 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.516e-05/0.5222, allocations: 184.3 kB / 0.7732 GB, free: 4.832 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.009e-05/0.5223, allocations: 184.2 kB / 0.7734 GB, free: 4.645 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.179e-05/0.5224, allocations: 180.3 kB / 0.7736 GB, free: 4.461 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.385e-05/0.5225, allocations: 180.2 kB / 0.7737 GB, free: 4.277 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000171/0.5226, allocations: 315.6 kB / 0.774 GB, free: 3.945 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001802/0.5228, allocations: 217.9 kB / 0.7742 GB, free: 3.707 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.697e-05/0.5229, allocations: 176.3 kB / 0.7744 GB, free: 3.527 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001428/0.5231, allocations: 109 kB / 0.7745 GB, free: 3.414 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.235e-05/0.5232, allocations: 184.2 kB / 0.7747 GB, free: 3.227 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.439e-05/0.5232, allocations: 105 kB / 0.7748 GB, free: 3.117 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.0004211/0.5237, allocations: 259.2 kB / 0.775 GB, free: 2.863 MB / 0.6511 GB Notification: Performance of sort global known variables: time 4.71e-07/0.5237, allocations: 3.938 kB / 0.775 GB, free: 2.859 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.001104/0.5248, allocations: 243.7 kB / 0.7753 GB, free: 2.621 MB / 0.6511 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.001528/0.5263, allocations: 1.082 MB / 0.7763 GB, free: 1.512 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0001774/0.5266, allocations: 69.69 kB / 0.7764 GB, free: 1.438 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 2.885e-06/0.5266, allocations: 0 / 0.7764 GB, free: 1.438 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 2.665e-06/0.5266, allocations: 0 / 0.7764 GB, free: 1.438 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004819/0.5271, allocations: 0.5341 MB / 0.7769 GB, free: 0.8984 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008428/0.5279, allocations: 340.8 kB / 0.7772 GB, free: 0.5312 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.5146/1.043, allocations: 0.7042 MB / 0.7779 GB, free: 140.8 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 3.976e-05/1.043, allocations: 3.359 kB / 0.7779 GB, free: 140.8 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.777e-05/1.043, allocations: 17.78 kB / 0.778 GB, free: 140.8 MB / 0.6511 GB Notification: Performance of SimCode: time 1.533e-06/1.043, allocations: 0 / 0.778 GB, free: 140.8 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05283/1.096, allocations: 5.279 MB / 0.7831 GB, free: 140.5 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003632/1.096, allocations: 241 kB / 0.7833 GB, free: 140.2 MB / 0.6511 GB Error: Error building simulator. Build log: clang -Os -fPIC -mfpmath=sse -DOMC_MINIMAL_RUNTIME=1 -DCMINPACK_NO_DLL=1 -Iinclude/ -Iinclude/fmi2 -I. -DOMC_MODEL_PREFIX=Buildings_6_0_0_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Functions_Validation_MultipoleThermalResistances_OneUTube -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 Buildings_6_0_0_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Functions_Validation_MultipoleThermalResistances_OneUTube_FMU.o Buildings_6_0_0_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Functions_Validation_MultipoleThermalResistances_OneUTube_FMU.c In file included from Buildings_6_0_0_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Functions_Validation_MultipoleThermalResistances_OneUTube_FMU.c:9: In file included from include/openmodelica.h:69: In file included from include/openmodelica_types.h:110: include/gc/omc_gc.h:217:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ include/gc/omc_gc.h:221:34: warning: expression result unused [-Wunused-value] GC_set_force_unmap_on_gcollect(1); ^ In file included from Buildings_6_0_0_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Functions_Validation_MultipoleThermalResistances_OneUTube_FMU.c:54: include/fmi2/fmu2_model_interface.c:73:11: warning: enumeration value 'modelSlaveInitialized' not handled in switch [-Wswitch] switch (comp->state) ^ include/fmi2/fmu2_model_interface.c:162:16: warning: passing 'char **' to parameter of type 'const char **' discards qualifiers in nested pointer types [-Wincompatible-pointer-types-discards-qualifiers] GC_vasprintf(&str, msg, args); ^~~~ include/util/modelica_string.h:71:31: note: passing argument to parameter 'strp' here int GC_vasprintf(const char **strp, const char *fmt, va_list ap); ^ 4 warnings generated. clang -Os -fPIC -mfpmath=sse -DOMC_MINIMAL_RUNTIME=1 -DCMINPACK_NO_DLL=1 -Iinclude/ -Iinclude/fmi2 -I. -DOMC_MODEL_PREFIX=Buildings_6_0_0_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Functions_Validation_MultipoleThermalResistances_OneUTube -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 Buildings_6_0_0_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Functions_Validation_MultipoleThermalResistances_OneUTube.o Buildings_6_0_0_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Functions_Validation_MultipoleThermalResistances_OneUTube.c In file included from Buildings_6_0_0_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Functions_Validation_MultipoleThermalResistances_OneUTube.c:7: In file included from ./Buildings_6_0_0_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Functions_Validation_MultipoleThermalResistances_OneUTube_model.h:5: In file included from include/openmodelica.h:69: In file included from include/openmodelica_types.h:110: include/gc/omc_gc.h:217:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ include/gc/omc_gc.h:221:34: warning: expression result unused [-Wunused-value] GC_set_force_unmap_on_gcollect(1); ^ 2 warnings generated. clang -Os -fPIC -mfpmath=sse -DOMC_MINIMAL_RUNTIME=1 -DCMINPACK_NO_DLL=1 -Iinclude/ -Iinclude/fmi2 -I. -DOMC_MODEL_PREFIX=Buildings_6_0_0_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Functions_Validation_MultipoleThermalResistances_OneUTube -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 Buildings_6_0_0_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Functions_Validation_MultipoleThermalResistances_OneUTube_functions.o Buildings_6_0_0_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Functions_Validation_MultipoleThermalResistances_OneUTube_functions.c In file included from Buildings_6_0_0_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Functions_Validation_MultipoleThermalResistances_OneUTube_functions.c:1: In file included from ./Buildings_6_0_0_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Functions_Validation_MultipoleThermalResistances_OneUTube_functions.h:3: In file included from include/meta/meta_modelica.h:49: include/gc/omc_gc.h:217:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ include/gc/omc_gc.h:221:34: warning: expression result unused [-Wunused-value] GC_set_force_unmap_on_gcollect(1); ^ Buildings_6_0_0_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Functions_Validation_MultipoleThermalResistances_OneUTube_functions.c:310: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); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2 warnings and 1 error generated. : recipe for target 'Buildings_6_0_0_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Functions_Validation_MultipoleThermalResistances_OneUTube_functions.o' failed make: *** [Buildings_6_0_0_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Functions_Validation_MultipoleThermalResistances_OneUTube_functions.o] Error 1