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.InternalResistancesTwoUTube.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.InternalResistancesTwoUTube,fileNamePrefix="Buildings_6_0_0_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Functions_Validation_InternalResistancesTwoUTube",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Buildings): time 4.02/4.02, allocations: 433.2 MB / 440.7 MB, free: 4.594 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 2.723e-05/2.733e-05, allocations: 5.594 kB / 0.5325 GB, free: 12.7 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2086/0.2087, allocations: 98.74 MB / 0.629 GB, free: 9.102 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2581/0.4669, allocations: 145.1 MB / 0.7707 GB, free: 7.781 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0005048/0.4675, allocations: 119.9 kB / 0.7708 GB, free: 7.664 MB / 0.6511 GB Notification: Performance of FrontEnd - DAE generated: time 0.6376/1.105, allocations: 14.85 MB / 0.7853 GB, free: 142.9 MB / 0.6511 GB Notification: Performance of FrontEnd: time 3.206e-06/1.105, allocations: 1.938 kB / 0.7853 GB, free: 142.9 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 1.003e-05/1.105, allocations: 0 / 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.001415/1.107, allocations: 0.5589 MB / 0.7858 GB, free: 142.4 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 6.23e-05/1.107, allocations: 10.12 kB / 0.7858 GB, free: 142.4 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.109e-05/1.107, allocations: 87.08 kB / 0.7859 GB, free: 142.3 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001491/1.107, allocations: 249.7 kB / 0.7862 GB, free: 142 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.653e-05/1.107, allocations: 151.3 kB / 0.7863 GB, free: 141.9 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.027e-05/1.107, allocations: 152 kB / 0.7865 GB, free: 141.7 MB / 0.6511 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 4.357e-05/1.107, allocations: 152 kB / 0.7866 GB, free: 141.6 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 5.039e-05/1.107, allocations: 107.7 kB / 0.7867 GB, free: 141.5 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.065e-05/1.107, allocations: 79.28 kB / 0.7868 GB, free: 141.4 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.669e-05/1.107, allocations: 157.5 kB / 0.7869 GB, free: 141.2 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.516e-05/1.107, allocations: 159.7 kB / 0.7871 GB, free: 141.1 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003106/1.108, allocations: 440 kB / 0.7875 GB, free: 140.6 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 5.916e-05/1.108, allocations: 170.9 kB / 0.7877 GB, free: 140.5 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.35e-05/1.108, allocations: 80.14 kB / 0.7877 GB, free: 140.4 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 1.892e-05/1.108, allocations: 82.19 kB / 0.7878 GB, free: 140.3 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.054e-05/1.108, allocations: 110.3 kB / 0.7879 GB, free: 140.2 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=0): time 2.444e-06/1.108, allocations: 1.719 kB / 0.7879 GB, free: 140.2 MB / 0.6511 GB Notification: Performance of matching and sorting (n=0): time 0.0001045/1.108, allocations: 31.94 kB / 0.788 GB, free: 140.2 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.366e-05/1.108, allocations: 56.16 kB / 0.788 GB, free: 140.1 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000157/1.108, allocations: 115 kB / 0.7881 GB, free: 140 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 1.237e-05/1.108, allocations: 26.86 kB / 0.7881 GB, free: 140 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 5.306e-05/1.108, allocations: 91.98 kB / 0.7882 GB, free: 139.9 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 2.665e-06/1.108, allocations: 0 / 0.7882 GB, free: 139.9 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.25e-06/1.108, allocations: 0 / 0.7882 GB, free: 139.9 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 7.687e-05/1.108, allocations: 322.5 kB / 0.7885 GB, free: 139.6 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.518e-05/1.108, allocations: 2.875 kB / 0.7885 GB, free: 139.6 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.037e-05/1.108, allocations: 6.812 kB / 0.7886 GB, free: 139.6 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001066/1.109, allocations: 14.16 kB / 0.7886 GB, free: 139.6 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.086e-06/1.109, allocations: 3.844 kB / 0.7886 GB, free: 139.6 MB / 0.6511 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0002266/1.109, allocations: 49.19 kB / 0.7886 GB, free: 139.5 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 2.092e-05/1.109, allocations: 5.188 kB / 0.7886 GB, free: 139.5 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.755e-05/1.109, allocations: 10.81 kB / 0.7886 GB, free: 139.5 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.769e-05/1.109, allocations: 1.344 kB / 0.7886 GB, free: 139.5 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.944e-06/1.109, allocations: 0 / 0.7886 GB, free: 139.5 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.031e-06/1.109, allocations: 0.6094 kB / 0.7886 GB, free: 139.5 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.916e-05/1.109, allocations: 1.531 kB / 0.7886 GB, free: 139.5 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.204e-05/1.109, allocations: 1.125 kB / 0.7886 GB, free: 139.5 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 8.039e-05/1.109, allocations: 186.3 kB / 0.7888 GB, free: 139.3 MB / 0.6511 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 8.491e-05/1.109, allocations: 138.5 kB / 0.7889 GB, free: 139.2 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.48e-05/1.109, allocations: 110.5 kB / 0.7891 GB, free: 139.1 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.099e-05/1.109, allocations: 108 kB / 0.7892 GB, free: 139 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.99e-05/1.11, allocations: 188 kB / 0.7893 GB, free: 138.8 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.42e-05/1.11, allocations: 182.1 kB / 0.7895 GB, free: 138.6 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.896e-05/1.11, allocations: 184 kB / 0.7897 GB, free: 138.4 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002628/1.11, allocations: 398.5 kB / 0.7901 GB, free: 138 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.62e-05/1.11, allocations: 101.6 kB / 0.7902 GB, free: 137.9 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.55e-05/1.11, allocations: 103.3 kB / 0.7903 GB, free: 137.8 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.204e-05/1.11, allocations: 180.7 kB / 0.7904 GB, free: 137.6 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.22e-05/1.11, allocations: 183.2 kB / 0.7906 GB, free: 137.4 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.961e-05/1.11, allocations: 180.3 kB / 0.7908 GB, free: 137.3 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.238e-05/1.11, allocations: 182.2 kB / 0.791 GB, free: 137.1 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001093/1.11, allocations: 305.4 kB / 0.7912 GB, free: 136.8 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 6.576e-05/1.11, allocations: 193.9 kB / 0.7914 GB, free: 136.6 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.514e-05/1.11, allocations: 178.8 kB / 0.7916 GB, free: 136.4 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001228/1.111, allocations: 103.5 kB / 0.7917 GB, free: 136.3 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.935e-05/1.111, allocations: 183.8 kB / 0.7919 GB, free: 136.1 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.523e-05/1.111, allocations: 106.9 kB / 0.792 GB, free: 136 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 8.737e-05/1.111, allocations: 93.92 kB / 0.7921 GB, free: 135.9 MB / 0.6511 GB Notification: Performance of sort global known variables: time 6.31e-07/1.111, allocations: 0 / 0.7921 GB, free: 135.9 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.001913/1.113, allocations: 334.1 kB / 0.7924 GB, free: 135.8 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.002936/1.116, allocations: 1.217 MB / 0.7936 GB, free: 134.9 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0001354/1.116, allocations: 42.19 kB / 0.7936 GB, free: 134.9 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/1.116, allocations: 3.938 kB / 0.7936 GB, free: 134.9 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 4.799e-06/1.116, allocations: 5.688 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.0003049/1.116, allocations: 0.5236 MB / 0.7941 GB, free: 134.3 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001212/1.118, allocations: 341.2 kB / 0.7945 GB, free: 134 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001425/1.118, allocations: 0.6853 MB / 0.7951 GB, free: 133.4 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 2.763e-05/1.118, allocations: 4.984 kB / 0.7951 GB, free: 133.3 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.622e-05/1.118, allocations: 17.38 kB / 0.7951 GB, free: 133.3 MB / 0.6511 GB Notification: Performance of SimCode: time 9.02e-07/1.118, allocations: 1.219 kB / 0.7951 GB, free: 133.3 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05136/1.169, allocations: 6.272 MB / 0.8013 GB, free: 132.8 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002809/1.17, allocations: 254.4 kB / 0.8015 GB, free: 132.5 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_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 Buildings_6_0_0_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Functions_Validation_InternalResistancesTwoUTube_FMU.o Buildings_6_0_0_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Functions_Validation_InternalResistancesTwoUTube_FMU.c In file included from Buildings_6_0_0_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Functions_Validation_InternalResistancesTwoUTube_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_InternalResistancesTwoUTube_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_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 Buildings_6_0_0_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Functions_Validation_InternalResistancesTwoUTube.o Buildings_6_0_0_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Functions_Validation_InternalResistancesTwoUTube.c In file included from Buildings_6_0_0_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Functions_Validation_InternalResistancesTwoUTube.c:7: In file included from ./Buildings_6_0_0_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Functions_Validation_InternalResistancesTwoUTube_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_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 Buildings_6_0_0_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Functions_Validation_InternalResistancesTwoUTube_functions.o Buildings_6_0_0_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Functions_Validation_InternalResistancesTwoUTube_functions.c In file included from Buildings_6_0_0_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Functions_Validation_InternalResistancesTwoUTube_functions.c:1: In file included from ./Buildings_6_0_0_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Functions_Validation_InternalResistancesTwoUTube_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_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); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2 warnings and 1 error generated. : recipe for target 'Buildings_6_0_0_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Functions_Validation_InternalResistancesTwoUTube_functions.o' failed make: *** [Buildings_6_0_0_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Functions_Validation_InternalResistancesTwoUTube_functions.o] Error 1