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.InternalResistancesOneUTube.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.InternalResistancesOneUTube,fileNamePrefix="Buildings_6_0_0_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Functions_Validation_InternalResistancesOneUTube",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Buildings): time 4.184/4.184, allocations: 433.2 MB / 440.7 MB, free: 4.609 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 2.691e-05/2.693e-05, allocations: 5.5 kB / 0.5325 GB, free: 12.69 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2291/0.2291, allocations: 98.74 MB / 0.629 GB, free: 9.098 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2638/0.4929, allocations: 144.4 MB / 0.77 GB, free: 8.492 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000448/0.4934, allocations: 119.9 kB / 0.7701 GB, free: 8.375 MB / 0.6511 GB Notification: Performance of FrontEnd - DAE generated: time 0.5927/1.086, allocations: 14.53 MB / 0.7843 GB, free: 142.6 MB / 0.6511 GB Notification: Performance of FrontEnd: time 1.533e-06/1.086, allocations: 0 / 0.7843 GB, free: 142.6 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 7.514e-06/1.086, allocations: 1.469 kB / 0.7843 GB, free: 142.6 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.001142/1.087, allocations: 0.553 MB / 0.7848 GB, free: 142.1 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 5.101e-05/1.087, allocations: 9.625 kB / 0.7848 GB, free: 142.1 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.095e-05/1.087, allocations: 89.58 kB / 0.7849 GB, free: 142 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001222/1.088, allocations: 248.1 kB / 0.7851 GB, free: 141.7 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.908e-05/1.088, allocations: 150.6 kB / 0.7853 GB, free: 141.6 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.795e-05/1.088, allocations: 152.5 kB / 0.7854 GB, free: 141.4 MB / 0.6511 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 3.717e-05/1.088, allocations: 154.4 kB / 0.7856 GB, free: 141.3 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 4.101e-05/1.088, allocations: 105.2 kB / 0.7857 GB, free: 141.2 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.914e-05/1.088, allocations: 77.53 kB / 0.7858 GB, free: 141.1 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.942e-05/1.088, allocations: 154.5 kB / 0.7859 GB, free: 141 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.836e-05/1.088, allocations: 155 kB / 0.7861 GB, free: 140.8 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002235/1.088, allocations: 445.5 kB / 0.7865 GB, free: 140.4 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 5.034e-05/1.088, allocations: 173.5 kB / 0.7866 GB, free: 140.2 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.261e-05/1.088, allocations: 86.34 kB / 0.7867 GB, free: 140.1 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 1.684e-05/1.088, allocations: 75.28 kB / 0.7868 GB, free: 140 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.923e-05/1.088, allocations: 112.5 kB / 0.7869 GB, free: 139.9 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=0): time 1.874e-06/1.088, allocations: 0 / 0.7869 GB, free: 139.9 MB / 0.6511 GB Notification: Performance of matching and sorting (n=0): time 7.756e-05/1.088, allocations: 29.62 kB / 0.7869 GB, free: 139.9 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.946e-05/1.088, allocations: 51.41 kB / 0.787 GB, free: 139.8 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001194/1.089, allocations: 121.8 kB / 0.7871 GB, free: 139.7 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 1.028e-05/1.089, allocations: 26.41 kB / 0.7871 GB, free: 139.7 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 4.098e-05/1.089, allocations: 90.94 kB / 0.7872 GB, free: 139.6 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 2.164e-06/1.089, allocations: 0 / 0.7872 GB, free: 139.6 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.687e-06/1.089, allocations: 4 kB / 0.7872 GB, free: 139.6 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 7.751e-05/1.089, allocations: 318.4 kB / 0.7875 GB, free: 139.3 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.616e-05/1.089, allocations: 9.219 kB / 0.7875 GB, free: 139.3 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.04e-05/1.089, allocations: 3.406 kB / 0.7875 GB, free: 139.3 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.946e-05/1.089, allocations: 9.938 kB / 0.7875 GB, free: 139.3 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/1.089, allocations: 0 / 0.7875 GB, free: 139.3 MB / 0.6511 GB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001528/1.089, allocations: 45.53 kB / 0.7876 GB, free: 139.3 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.866e-05/1.089, allocations: 8.375 kB / 0.7876 GB, free: 139.3 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.407e-05/1.089, allocations: 2.688 kB / 0.7876 GB, free: 139.3 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.434e-05/1.089, allocations: 4.656 kB / 0.7876 GB, free: 139.3 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.376e-06/1.089, allocations: 7.719 kB / 0.7876 GB, free: 139.3 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.2e-06/1.089, allocations: 0 / 0.7876 GB, free: 139.3 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.389e-05/1.089, allocations: 4.406 kB / 0.7876 GB, free: 139.3 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.348e-06/1.089, allocations: 1.562 kB / 0.7876 GB, free: 139.3 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.485e-05/1.089, allocations: 182 kB / 0.7878 GB, free: 139.1 MB / 0.6511 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 6.765e-05/1.089, allocations: 139.8 kB / 0.7879 GB, free: 138.9 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.599e-05/1.089, allocations: 108.4 kB / 0.788 GB, free: 138.8 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.787e-05/1.09, allocations: 111.8 kB / 0.7881 GB, free: 138.7 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.333e-05/1.09, allocations: 177.9 kB / 0.7883 GB, free: 138.5 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.566e-05/1.09, allocations: 184.5 kB / 0.7885 GB, free: 138.4 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.305e-05/1.09, allocations: 181.8 kB / 0.7886 GB, free: 138.2 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001696/1.09, allocations: 397 kB / 0.789 GB, free: 137.8 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.11e-05/1.09, allocations: 111 kB / 0.7891 GB, free: 137.6 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.965e-05/1.09, allocations: 101.5 kB / 0.7892 GB, free: 137.5 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.426e-05/1.09, allocations: 181.7 kB / 0.7894 GB, free: 137.4 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.44e-05/1.09, allocations: 178.7 kB / 0.7896 GB, free: 137.2 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.232e-05/1.09, allocations: 176.8 kB / 0.7897 GB, free: 137 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.435e-05/1.09, allocations: 183.1 kB / 0.7899 GB, free: 136.8 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.552e-05/1.09, allocations: 319.5 kB / 0.7902 GB, free: 136.5 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 4.939e-05/1.09, allocations: 184.8 kB / 0.7904 GB, free: 136.3 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.931e-05/1.09, allocations: 178.7 kB / 0.7906 GB, free: 136.1 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.924e-05/1.09, allocations: 109 kB / 0.7907 GB, free: 136 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.91e-05/1.09, allocations: 183 kB / 0.7908 GB, free: 135.8 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.203e-05/1.09, allocations: 103.3 kB / 0.7909 GB, free: 135.7 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 5.984e-05/1.091, allocations: 92.17 kB / 0.791 GB, free: 135.6 MB / 0.6511 GB Notification: Performance of sort global known variables: time 4e-07/1.091, allocations: 0 / 0.791 GB, free: 135.6 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.001564/1.092, allocations: 327.5 kB / 0.7913 GB, free: 135.6 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.002504/1.095, allocations: 1.208 MB / 0.7925 GB, free: 134.6 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.000138/1.095, allocations: 34.19 kB / 0.7926 GB, free: 134.6 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 3.958e-06/1.095, allocations: 6.875 kB / 0.7926 GB, free: 134.6 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 3.677e-06/1.095, allocations: 0.6562 kB / 0.7926 GB, free: 134.6 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003084/1.095, allocations: 0.5311 MB / 0.7931 GB, free: 134.1 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001161/1.096, allocations: 335 kB / 0.7934 GB, free: 133.8 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001478/1.097, allocations: 0.6857 MB / 0.7941 GB, free: 133.1 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 2.241e-05/1.097, allocations: 0 / 0.7941 GB, free: 133.1 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.595e-05/1.097, allocations: 16.62 kB / 0.7941 GB, free: 133.1 MB / 0.6511 GB Notification: Performance of SimCode: time 9.92e-07/1.097, allocations: 4 kB / 0.7941 GB, free: 133.1 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04665/1.143, allocations: 6.121 MB / 0.8001 GB, free: 132.6 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002723/1.144, allocations: 257.3 kB / 0.8003 GB, free: 132.3 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_InternalResistancesOneUTube -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_InternalResistancesOneUTube_FMU.o Buildings_6_0_0_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Functions_Validation_InternalResistancesOneUTube_FMU.c In file included from Buildings_6_0_0_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Functions_Validation_InternalResistancesOneUTube_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_InternalResistancesOneUTube_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_InternalResistancesOneUTube -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_InternalResistancesOneUTube.o Buildings_6_0_0_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Functions_Validation_InternalResistancesOneUTube.c In file included from Buildings_6_0_0_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Functions_Validation_InternalResistancesOneUTube.c:7: In file included from ./Buildings_6_0_0_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Functions_Validation_InternalResistancesOneUTube_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_InternalResistancesOneUTube -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_InternalResistancesOneUTube_functions.o Buildings_6_0_0_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Functions_Validation_InternalResistancesOneUTube_functions.c In file included from Buildings_6_0_0_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Functions_Validation_InternalResistancesOneUTube_functions.c:1: In file included from ./Buildings_6_0_0_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Functions_Validation_InternalResistancesOneUTube_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_InternalResistancesOneUTube_functions.c:786: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_InternalResistancesOneUTube_functions.o' failed make: *** [Buildings_6_0_0_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Functions_Validation_InternalResistancesOneUTube_functions.o] Error 1