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.InternalResistancesOneUTubeNegative.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.InternalResistancesOneUTubeNegative,fileNamePrefix="Buildings_6_0_0_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Functions_Validation_InternalResistancesOneUTubeNegative",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.574 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 2.902e-05/2.919e-05, allocations: 6.125 kB / 0.5325 GB, free: 12.74 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.283/0.283, allocations: 98.75 MB / 0.629 GB, free: 9.059 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.3173/0.6004, allocations: 144.4 MB / 0.77 GB, free: 8.461 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004382/0.6009, allocations: 119.9 kB / 0.7701 GB, free: 8.344 MB / 0.6511 GB Notification: Performance of FrontEnd - DAE generated: time 0.6283/1.229, allocations: 14.53 MB / 0.7843 GB, free: 142.5 MB / 0.6511 GB Notification: Performance of FrontEnd: time 2.484e-06/1.229, allocations: 0.6094 kB / 0.7843 GB, free: 142.5 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 8.486e-06/1.229, allocations: 2.75 kB / 0.7843 GB, free: 142.5 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.001209/1.231, allocations: 0.5486 MB / 0.7848 GB, free: 142 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 5.139e-05/1.231, allocations: 10.23 kB / 0.7848 GB, free: 142 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.684e-05/1.231, allocations: 93.58 kB / 0.7849 GB, free: 141.9 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001332/1.231, allocations: 250.8 kB / 0.7852 GB, free: 141.7 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.77e-05/1.231, allocations: 150.6 kB / 0.7853 GB, free: 141.5 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.338e-05/1.231, allocations: 151.2 kB / 0.7854 GB, free: 141.4 MB / 0.6511 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 3.833e-05/1.231, allocations: 155.6 kB / 0.7856 GB, free: 141.2 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 3.988e-05/1.231, allocations: 101.5 kB / 0.7857 GB, free: 141.1 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.779e-05/1.231, allocations: 75.28 kB / 0.7858 GB, free: 141 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.914e-05/1.231, allocations: 157.1 kB / 0.7859 GB, free: 140.9 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.606e-05/1.231, allocations: 151.2 kB / 0.786 GB, free: 140.7 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002592/1.231, allocations: 452 kB / 0.7865 GB, free: 140.3 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 5.725e-05/1.231, allocations: 169.2 kB / 0.7866 GB, free: 140.1 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.095e-05/1.231, allocations: 84.08 kB / 0.7867 GB, free: 140 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 1.897e-05/1.231, allocations: 78.97 kB / 0.7868 GB, free: 139.9 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.53e-05/1.232, allocations: 108 kB / 0.7869 GB, free: 139.8 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=0): time 1.904e-06/1.232, allocations: 0 / 0.7869 GB, free: 139.8 MB / 0.6511 GB Notification: Performance of matching and sorting (n=0): time 8.988e-05/1.232, allocations: 31.23 kB / 0.7869 GB, free: 139.8 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.033e-05/1.232, allocations: 52.06 kB / 0.787 GB, free: 139.7 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001334/1.232, allocations: 121.3 kB / 0.7871 GB, free: 139.6 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 1.016e-05/1.232, allocations: 25.7 kB / 0.7871 GB, free: 139.6 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 4.201e-05/1.232, allocations: 95.7 kB / 0.7872 GB, free: 139.5 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 2.795e-06/1.232, allocations: 0 / 0.7872 GB, free: 139.5 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.737e-06/1.232, allocations: 0 / 0.7872 GB, free: 139.5 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 6.634e-05/1.232, allocations: 322.3 kB / 0.7875 GB, free: 139.2 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.689e-05/1.232, allocations: 3.031 kB / 0.7875 GB, free: 139.2 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.068e-05/1.232, allocations: 7.562 kB / 0.7875 GB, free: 139.2 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.903e-05/1.232, allocations: 7.844 kB / 0.7875 GB, free: 139.2 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/1.232, allocations: 0 / 0.7875 GB, free: 139.2 MB / 0.6511 GB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001668/1.232, allocations: 57.55 kB / 0.7876 GB, free: 139.2 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.82e-05/1.232, allocations: 10.19 kB / 0.7876 GB, free: 139.2 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.686e-05/1.232, allocations: 3.125 kB / 0.7876 GB, free: 139.2 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.462e-05/1.232, allocations: 0 / 0.7876 GB, free: 139.2 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.444e-06/1.232, allocations: 0.5625 kB / 0.7876 GB, free: 139.2 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.69e-06/1.232, allocations: 2.031 kB / 0.7876 GB, free: 139.2 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.493e-05/1.233, allocations: 0 / 0.7876 GB, free: 139.2 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.337e-06/1.233, allocations: 1.062 kB / 0.7876 GB, free: 139.2 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.582e-05/1.233, allocations: 182.1 kB / 0.7878 GB, free: 139 MB / 0.6511 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 6.71e-05/1.233, allocations: 144.7 kB / 0.7879 GB, free: 138.8 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.637e-05/1.233, allocations: 108 kB / 0.788 GB, free: 138.7 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.132e-05/1.233, allocations: 110.8 kB / 0.7881 GB, free: 138.6 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.619e-05/1.233, allocations: 179.8 kB / 0.7883 GB, free: 138.4 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.559e-05/1.233, allocations: 184.1 kB / 0.7885 GB, free: 138.3 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.088e-05/1.233, allocations: 176.8 kB / 0.7886 GB, free: 138.1 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000172/1.233, allocations: 403.3 kB / 0.789 GB, free: 137.7 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.011e-05/1.233, allocations: 103.3 kB / 0.7891 GB, free: 137.6 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.342e-05/1.233, allocations: 104.7 kB / 0.7892 GB, free: 137.4 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.406e-05/1.233, allocations: 178.5 kB / 0.7894 GB, free: 137.3 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.647e-05/1.233, allocations: 179.6 kB / 0.7896 GB, free: 137.1 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.268e-05/1.233, allocations: 181.8 kB / 0.7897 GB, free: 136.9 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.501e-05/1.233, allocations: 186.1 kB / 0.7899 GB, free: 136.7 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.131e-05/1.233, allocations: 310.3 kB / 0.7902 GB, free: 136.4 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 5.299e-05/1.234, allocations: 189.4 kB / 0.7904 GB, free: 136.2 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.011e-05/1.234, allocations: 178.5 kB / 0.7906 GB, free: 136 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.246e-05/1.234, allocations: 106.6 kB / 0.7907 GB, free: 135.9 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.862e-05/1.234, allocations: 183.3 kB / 0.7908 GB, free: 135.7 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.208e-05/1.234, allocations: 102.9 kB / 0.7909 GB, free: 135.6 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 6.727e-05/1.234, allocations: 95.8 kB / 0.791 GB, free: 135.6 MB / 0.6511 GB Notification: Performance of sort global known variables: time 3.9e-07/1.234, allocations: 0 / 0.791 GB, free: 135.6 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.001614/1.235, allocations: 328 kB / 0.7913 GB, free: 135.5 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.002132/1.238, allocations: 1.21 MB / 0.7925 GB, free: 134.5 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0001327/1.238, allocations: 37.41 kB / 0.7926 GB, free: 134.5 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/1.238, allocations: 1.312 kB / 0.7926 GB, free: 134.5 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 4.138e-06/1.238, allocations: 0 / 0.7926 GB, free: 134.5 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003186/1.238, allocations: 0.5279 MB / 0.7931 GB, free: 134 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001132/1.239, allocations: 341 kB / 0.7934 GB, free: 133.7 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000142/1.24, allocations: 0.687 MB / 0.7941 GB, free: 133 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 2.177e-05/1.24, allocations: 4 kB / 0.7941 GB, free: 133 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.279e-05/1.24, allocations: 18.02 kB / 0.7941 GB, free: 133 MB / 0.6511 GB Notification: Performance of SimCode: time 1.031e-06/1.24, allocations: 0 / 0.7941 GB, free: 133 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0567/1.296, allocations: 6.121 MB / 0.8001 GB, free: 132.5 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002613/1.297, allocations: 268.7 kB / 0.8003 GB, free: 132.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_InternalResistancesOneUTubeNegative -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_InternalResistancesOneUTubeNegative_FMU.o Buildings_6_0_0_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Functions_Validation_InternalResistancesOneUTubeNegative_FMU.c In file included from Buildings_6_0_0_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Functions_Validation_InternalResistancesOneUTubeNegative_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_InternalResistancesOneUTubeNegative_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_InternalResistancesOneUTubeNegative -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_InternalResistancesOneUTubeNegative.o Buildings_6_0_0_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Functions_Validation_InternalResistancesOneUTubeNegative.c In file included from Buildings_6_0_0_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Functions_Validation_InternalResistancesOneUTubeNegative.c:7: In file included from ./Buildings_6_0_0_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Functions_Validation_InternalResistancesOneUTubeNegative_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_InternalResistancesOneUTubeNegative -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_InternalResistancesOneUTubeNegative_functions.o Buildings_6_0_0_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Functions_Validation_InternalResistancesOneUTubeNegative_functions.c In file included from Buildings_6_0_0_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Functions_Validation_InternalResistancesOneUTubeNegative_functions.c:1: In file included from ./Buildings_6_0_0_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Functions_Validation_InternalResistancesOneUTubeNegative_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_InternalResistancesOneUTubeNegative_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_InternalResistancesOneUTubeNegative_functions.o' failed make: *** [Buildings_6_0_0_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Functions_Validation_InternalResistancesOneUTubeNegative_functions.o] Error 1