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.InternalResistancesTwoUTubeNegative.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.InternalResistancesTwoUTubeNegative,fileNamePrefix="Buildings_6_0_0_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Functions_Validation_InternalResistancesTwoUTubeNegative",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Buildings): time 3.988/3.988, allocations: 433.2 MB / 440.7 MB, free: 4.559 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 3.351e-05/3.368e-05, allocations: 4.5 kB / 0.5325 GB, free: 12.84 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.255/0.2551, allocations: 98.74 MB / 0.629 GB, free: 9.055 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.3095/0.5646, allocations: 145.1 MB / 0.7707 GB, free: 7.719 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004643/0.5652, allocations: 115.9 kB / 0.7708 GB, free: 7.605 MB / 0.6511 GB Notification: Performance of FrontEnd - DAE generated: time 0.6422/1.207, allocations: 14.85 MB / 0.7853 GB, free: 142.9 MB / 0.6511 GB Notification: Performance of FrontEnd: time 1.733e-06/1.207, allocations: 4 kB / 0.7853 GB, free: 142.9 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 7.664e-06/1.207, allocations: 1.156 kB / 0.7853 GB, free: 142.9 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: 0 * Number of variables: 0 Notification: Performance of Generate backend data structure: time 0.001296/1.209, allocations: 0.5516 MB / 0.7858 GB, free: 142.4 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 5.134e-05/1.209, allocations: 8.156 kB / 0.7858 GB, free: 142.4 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.327e-05/1.209, allocations: 87.3 kB / 0.7859 GB, free: 142.3 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001277/1.209, allocations: 251.3 kB / 0.7862 GB, free: 142.1 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.114e-05/1.209, allocations: 151.2 kB / 0.7863 GB, free: 141.9 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.726e-05/1.209, allocations: 158.8 kB / 0.7865 GB, free: 141.8 MB / 0.6511 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 3.725e-05/1.209, allocations: 153.1 kB / 0.7866 GB, free: 141.6 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 4.287e-05/1.209, allocations: 102 kB / 0.7867 GB, free: 141.5 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.767e-05/1.209, allocations: 75.28 kB / 0.7868 GB, free: 141.4 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.277e-05/1.209, allocations: 155.6 kB / 0.7869 GB, free: 141.3 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.78e-05/1.209, allocations: 157.5 kB / 0.7871 GB, free: 141.1 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002376/1.21, allocations: 445.8 kB / 0.7875 GB, free: 140.7 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 5.096e-05/1.21, allocations: 167.2 kB / 0.7877 GB, free: 140.5 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.387e-05/1.21, allocations: 83.58 kB / 0.7877 GB, free: 140.4 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 1.501e-05/1.21, allocations: 79.03 kB / 0.7878 GB, free: 140.4 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.736e-05/1.21, allocations: 111.7 kB / 0.7879 GB, free: 140.2 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=0): time 2.084e-06/1.21, allocations: 0 / 0.7879 GB, free: 140.2 MB / 0.6511 GB Notification: Performance of matching and sorting (n=0): time 8.159e-05/1.21, allocations: 33.22 kB / 0.788 GB, free: 140.2 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.062e-05/1.21, allocations: 51.41 kB / 0.788 GB, free: 140.1 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001291/1.21, allocations: 122.5 kB / 0.7881 GB, free: 140.1 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 9.779e-06/1.21, allocations: 25.7 kB / 0.7881 GB, free: 140 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 4.264e-05/1.21, allocations: 88.58 kB / 0.7882 GB, free: 139.9 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 2.154e-06/1.21, allocations: 0 / 0.7882 GB, free: 139.9 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.148e-06/1.21, allocations: 4 kB / 0.7882 GB, free: 139.9 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 6.574e-05/1.21, allocations: 322.8 kB / 0.7885 GB, free: 139.6 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.965e-05/1.21, allocations: 6.438 kB / 0.7885 GB, free: 139.6 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.024e-05/1.21, allocations: 3.688 kB / 0.7886 GB, free: 139.6 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.612e-05/1.21, allocations: 10.78 kB / 0.7886 GB, free: 139.6 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/1.21, allocations: 2.172 kB / 0.7886 GB, free: 139.6 MB / 0.6511 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001874/1.211, allocations: 49.72 kB / 0.7886 GB, free: 139.6 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.735e-05/1.211, allocations: 5.812 kB / 0.7886 GB, free: 139.6 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.64e-05/1.211, allocations: 3.188 kB / 0.7886 GB, free: 139.6 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.553e-05/1.211, allocations: 5.094 kB / 0.7886 GB, free: 139.6 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.583e-06/1.211, allocations: 0 / 0.7886 GB, free: 139.6 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.31e-06/1.211, allocations: 1.781 kB / 0.7886 GB, free: 139.6 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.476e-05/1.211, allocations: 4.812 kB / 0.7886 GB, free: 139.6 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.064e-05/1.211, allocations: 10.05 kB / 0.7886 GB, free: 139.6 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 6.532e-05/1.211, allocations: 181.9 kB / 0.7888 GB, free: 139.4 MB / 0.6511 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 6.776e-05/1.211, allocations: 141.9 kB / 0.7889 GB, free: 139.2 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.688e-05/1.211, allocations: 107.9 kB / 0.7891 GB, free: 139.1 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.095e-05/1.211, allocations: 117 kB / 0.7892 GB, free: 139 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.298e-05/1.211, allocations: 184.5 kB / 0.7893 GB, free: 138.8 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.471e-05/1.211, allocations: 178 kB / 0.7895 GB, free: 138.7 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.472e-05/1.211, allocations: 179.7 kB / 0.7897 GB, free: 138.5 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001692/1.211, allocations: 399.5 kB / 0.7901 GB, free: 138.1 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.186e-05/1.211, allocations: 108 kB / 0.7902 GB, free: 138 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.131e-05/1.211, allocations: 105.4 kB / 0.7903 GB, free: 137.8 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.424e-05/1.211, allocations: 180.5 kB / 0.7904 GB, free: 137.7 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.587e-05/1.211, allocations: 182.9 kB / 0.7906 GB, free: 137.5 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.351e-05/1.211, allocations: 178.8 kB / 0.7908 GB, free: 137.3 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.597e-05/1.212, allocations: 182.5 kB / 0.791 GB, free: 137.1 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.309e-05/1.212, allocations: 310 kB / 0.7913 GB, free: 136.8 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 5.127e-05/1.212, allocations: 189 kB / 0.7914 GB, free: 136.6 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.716e-05/1.212, allocations: 178.7 kB / 0.7916 GB, free: 136.4 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.846e-05/1.212, allocations: 101.8 kB / 0.7917 GB, free: 136.3 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.742e-05/1.212, allocations: 186.1 kB / 0.7919 GB, free: 136.1 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.125e-05/1.212, allocations: 106.9 kB / 0.792 GB, free: 136 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 6.479e-05/1.212, allocations: 96.36 kB / 0.7921 GB, free: 135.9 MB / 0.6511 GB Notification: Performance of sort global known variables: time 4.3e-07/1.212, allocations: 0 / 0.7921 GB, free: 135.9 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.001571/1.214, allocations: 327.8 kB / 0.7924 GB, free: 135.9 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.002091/1.216, allocations: 1.219 MB / 0.7936 GB, free: 134.9 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0001304/1.216, allocations: 42.41 kB / 0.7936 GB, free: 134.9 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/1.216, allocations: 0 / 0.7936 GB, free: 134.9 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 3.566e-06/1.216, allocations: 1 kB / 0.7936 GB, free: 134.9 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003093/1.216, allocations: 0.5287 MB / 0.7941 GB, free: 134.4 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009712/1.217, allocations: 334.2 kB / 0.7944 GB, free: 134.1 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001378/1.217, allocations: 0.6886 MB / 0.7951 GB, free: 133.4 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 2.083e-05/1.217, allocations: 0.7188 kB / 0.7951 GB, free: 133.4 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.17e-05/1.217, allocations: 16.75 kB / 0.7951 GB, free: 133.4 MB / 0.6511 GB Notification: Performance of SimCode: time 9.42e-07/1.217, allocations: 5.094 kB / 0.7951 GB, free: 133.4 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0483/1.266, allocations: 6.271 MB / 0.8013 GB, free: 132.9 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002653/1.266, allocations: 267.4 kB / 0.8015 GB, free: 132.6 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_InternalResistancesTwoUTubeNegative -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_InternalResistancesTwoUTubeNegative_FMU.o Buildings_6_0_0_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Functions_Validation_InternalResistancesTwoUTubeNegative_FMU.c In file included from Buildings_6_0_0_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Functions_Validation_InternalResistancesTwoUTubeNegative_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_InternalResistancesTwoUTubeNegative_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_InternalResistancesTwoUTubeNegative -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_InternalResistancesTwoUTubeNegative.o Buildings_6_0_0_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Functions_Validation_InternalResistancesTwoUTubeNegative.c In file included from Buildings_6_0_0_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Functions_Validation_InternalResistancesTwoUTubeNegative.c:7: In file included from ./Buildings_6_0_0_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Functions_Validation_InternalResistancesTwoUTubeNegative_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_InternalResistancesTwoUTubeNegative -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_InternalResistancesTwoUTubeNegative_functions.o Buildings_6_0_0_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Functions_Validation_InternalResistancesTwoUTubeNegative_functions.c In file included from Buildings_6_0_0_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Functions_Validation_InternalResistancesTwoUTubeNegative_functions.c:1: In file included from ./Buildings_6_0_0_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Functions_Validation_InternalResistancesTwoUTubeNegative_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_InternalResistancesTwoUTubeNegative_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); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2 warnings and 1 error generated. : recipe for target 'Buildings_6_0_0_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Functions_Validation_InternalResistancesTwoUTubeNegative_functions.o' failed make: *** [Buildings_6_0_0_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Functions_Validation_InternalResistancesTwoUTubeNegative_functions.o] Error 1