Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ExchangeValues.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo", uses=false) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ExchangeValues,fileNamePrefix="Buildings_latest_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_ExchangeValues",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ExchangeValues,fileNamePrefix="Buildings_latest_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_ExchangeValues",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001173/0.001173, allocations: 100.5 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001754/0.001755, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.293/2.293, allocations: 223.2 MB / 239.9 MB, free: 5.367 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 4.355/4.355, allocations: 409.2 MB / 0.6838 GB, free: 0.9883 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0006605/0.0006603, allocations: 12 kB / 0.8375 GB, free: 6.523 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.688/1.689, allocations: 146.8 MB / 0.9809 GB, free: 6.262 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ExchangeValues): time 0.0015/1.691, allocations: 280.7 kB / 0.9811 GB, free: 5.988 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.0004332/1.691, allocations: 103.8 kB / 0.9812 GB, free: 5.887 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.107e-05/1.691, allocations: 0 / 0.9812 GB, free: 5.887 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0001395/1.691, allocations: 4 kB / 0.9813 GB, free: 5.883 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 9.391e-05/1.691, allocations: 7.938 kB / 0.9813 GB, free: 5.875 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002481/1.692, allocations: 35.91 kB / 0.9813 GB, free: 5.84 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 9.205e-05/1.692, allocations: 11.97 kB / 0.9813 GB, free: 5.828 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 7.874e-05/1.692, allocations: 0 / 0.9813 GB, free: 5.828 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 5.71e-05/1.692, allocations: 15.98 kB / 0.9813 GB, free: 5.812 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 5.937e-05/1.692, allocations: 8 kB / 0.9813 GB, free: 5.805 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 3.033e-05/1.692, allocations: 0 / 0.9813 GB, free: 5.805 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 5.959e-05/1.692, allocations: 8 kB / 0.9813 GB, free: 5.797 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 1.002e-05/1.692, allocations: 0 / 0.9813 GB, free: 5.797 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 5.861e-05/1.692, allocations: 33.64 kB / 0.9814 GB, free: 5.758 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0001246/1.692, allocations: 23.95 kB / 0.9814 GB, free: 5.734 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/1.692, allocations: 0 / 0.9814 GB, free: 5.734 MB / 0.7325 GB Notification: Performance of FrontEnd: time 3.066e-06/1.692, allocations: 0 / 0.9814 GB, free: 5.734 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 8.165e-06/1.692, allocations: 0 / 0.9814 GB, free: 5.734 MB / 0.7325 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0005251/1.693, allocations: 349 kB / 0.9817 GB, free: 5.34 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 7.785e-05/1.693, allocations: 12.03 kB / 0.9817 GB, free: 5.328 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.931e-05/1.693, allocations: 30.56 kB / 0.9818 GB, free: 5.289 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.163e-05/1.693, allocations: 8 kB / 0.9818 GB, free: 5.281 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002558/1.693, allocations: 159.1 kB / 0.9819 GB, free: 5.086 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.366e-05/1.693, allocations: 4 kB / 0.9819 GB, free: 5.082 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.445e-05/1.694, allocations: 4 kB / 0.9819 GB, free: 5.078 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001981/1.694, allocations: 57.61 kB / 0.982 GB, free: 5.016 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.178e-05/1.694, allocations: 0 / 0.982 GB, free: 5.016 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.881e-05/1.694, allocations: 0 / 0.982 GB, free: 5.016 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.088e-05/1.694, allocations: 0 / 0.982 GB, free: 5.016 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.168e-05/1.694, allocations: 23.81 kB / 0.982 GB, free: 4.992 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002515/1.694, allocations: 153.7 kB / 0.9822 GB, free: 4.793 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001027/1.694, allocations: 30.59 kB / 0.9822 GB, free: 4.754 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.147e-05/1.694, allocations: 4.062 kB / 0.9822 GB, free: 4.75 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.765e-05/1.694, allocations: 30.56 kB / 0.9822 GB, free: 4.711 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=1): time 1.854e-06/1.694, allocations: 0 / 0.9822 GB, free: 4.711 MB / 0.7325 GB Notification: Performance of matching and sorting (n=1): time 0.0004178/1.695, allocations: 111.3 kB / 0.9823 GB, free: 4.586 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.019e-05/1.695, allocations: 85.22 kB / 0.9824 GB, free: 4.484 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001176/1.695, allocations: 97.86 kB / 0.9825 GB, free: 4.379 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 6.713e-05/1.695, allocations: 25.7 kB / 0.9825 GB, free: 4.348 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 5.234e-05/1.695, allocations: 80.14 kB / 0.9826 GB, free: 4.266 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 4.242e-05/1.695, allocations: 4 kB / 0.9826 GB, free: 4.262 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.437e-05/1.695, allocations: 4 kB / 0.9826 GB, free: 4.258 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001664/1.695, allocations: 310.8 kB / 0.9829 GB, free: 3.945 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.689e-05/1.696, allocations: 11.98 kB / 0.9829 GB, free: 3.934 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.235e-05/1.696, allocations: 16.12 kB / 0.9829 GB, free: 3.918 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.082e-05/1.696, allocations: 41.69 kB / 0.983 GB, free: 3.871 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.306e-06/1.696, allocations: 0 / 0.983 GB, free: 3.871 MB / 0.7325 GB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0002427/1.696, allocations: 99.23 kB / 0.9831 GB, free: 3.762 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 6.709e-05/1.696, allocations: 33.69 kB / 0.9831 GB, free: 3.723 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.458e-06/1.696, allocations: 0 / 0.9831 GB, free: 3.723 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.313e-05/1.696, allocations: 4 kB / 0.9831 GB, free: 3.719 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.641e-06/1.696, allocations: 3.953 kB / 0.9831 GB, free: 3.715 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.645e-06/1.696, allocations: 0 / 0.9831 GB, free: 3.715 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002013/1.696, allocations: 10.34 kB / 0.9831 GB, free: 3.707 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.61e-05/1.696, allocations: 7.984 kB / 0.9831 GB, free: 3.699 MB / 0.7325 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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 prepare postOptimizeDAE: time 0.0001623/1.697, allocations: 135.5 kB / 0.9832 GB, free: 3.551 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.141e-05/1.697, allocations: 8 kB / 0.9833 GB, free: 3.543 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.525e-05/1.697, allocations: 3.125 kB / 0.9833 GB, free: 3.543 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.595e-06/1.697, allocations: 0 / 0.9833 GB, free: 3.543 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.149e-05/1.697, allocations: 3.953 kB / 0.9833 GB, free: 3.539 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.343e-06/1.697, allocations: 3.984 kB / 0.9833 GB, free: 3.535 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002395/1.697, allocations: 153.7 kB / 0.9834 GB, free: 3.336 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/1.697, allocations: 4 kB / 0.9834 GB, free: 3.332 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.989e-06/1.697, allocations: 4 kB / 0.9834 GB, free: 3.328 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.48e-06/1.697, allocations: 0 / 0.9834 GB, free: 3.328 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.802e-05/1.697, allocations: 3.938 kB / 0.9834 GB, free: 3.324 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.001e-05/1.697, allocations: 8 kB / 0.9834 GB, free: 3.316 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.844e-06/1.697, allocations: 0 / 0.9834 GB, free: 3.316 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000314/1.697, allocations: 126.7 kB / 0.9836 GB, free: 3.168 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 7.679e-05/1.697, allocations: 77.11 kB / 0.9836 GB, free: 3.074 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.218e-05/1.697, allocations: 8.031 kB / 0.9836 GB, free: 3.066 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001672/1.698, allocations: 11.92 kB / 0.9836 GB, free: 3.055 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.6e-05/1.698, allocations: 8 kB / 0.9837 GB, free: 3.047 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.379e-05/1.698, allocations: 0 / 0.9837 GB, free: 3.047 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 6.851e-05/1.698, allocations: 79.28 kB / 0.9837 GB, free: 2.969 MB / 0.7325 GB Notification: Performance of sort global known variables: time 2.4e-07/1.698, allocations: 0 / 0.9837 GB, free: 2.969 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0003966/1.698, allocations: 15.95 kB / 0.9837 GB, free: 2.953 MB / 0.7325 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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.001022/1.699, allocations: 0.6719 MB / 0.9844 GB, free: 2.254 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0002554/1.7, allocations: 83.33 kB / 0.9845 GB, free: 2.16 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 5.139e-06/1.7, allocations: 4.094 kB / 0.9845 GB, free: 2.156 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001114/1.7, allocations: 75.39 kB / 0.9846 GB, free: 2.07 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001904/1.7, allocations: 0 / 0.9846 GB, free: 2.07 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007045/1.701, allocations: 140.3 kB / 0.9847 GB, free: 1.891 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004687/1.701, allocations: 0.6731 MB / 0.9853 GB, free: 1.191 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001542/1.701, allocations: 7.984 kB / 0.9854 GB, free: 1.184 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.648e-05/1.701, allocations: 11.38 kB / 0.9854 GB, free: 1.172 MB / 0.7325 GB Notification: Performance of SimCode: time 3.81e-07/1.701, allocations: 0 / 0.9854 GB, free: 1.172 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03106/1.732, allocations: 1.593 MB / 0.9869 GB, free: 15.76 MB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0004005/1.733, allocations: 223.7 kB / 0.9871 GB, free: 15.52 MB / 0.7481 GB Error: Error building simulator. Build log: clang -Os -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -I'/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/fmi' -DOMC_FMI_RUNTIME=1 -DCMINPACK_NO_DLL=1 "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/Resources/C-Sources" -c -o Buildings_latest_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_ExchangeValues.o Buildings_latest_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_ExchangeValues.c In file included from Buildings_latest_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_ExchangeValues.c:7: In file included from ./Buildings_latest_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_ExchangeValues_model.h:5: In file included from ./openmodelica.h:71: In file included from ./gc/../openmodelica_types.h:149: ./gc/omc_gc.h:218:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ ./gc/omc_gc.h:222:34: warning: expression result unused [-Wunused-value] GC_set_force_unmap_on_gcollect(1); ^ 2 warnings generated. clang -Os -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -I'/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/fmi' -DOMC_FMI_RUNTIME=1 -DCMINPACK_NO_DLL=1 "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/Resources/C-Sources" -c -o Buildings_latest_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_ExchangeValues_functions.o Buildings_latest_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_ExchangeValues_functions.c In file included from Buildings_latest_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_ExchangeValues_functions.c:2: In file included from ./Buildings_latest_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_ExchangeValues_functions.h:3: In file included from ./meta/meta_modelica.h:49: ./gc/omc_gc.h:218:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ ./gc/omc_gc.h:222:34: warning: expression result unused [-Wunused-value] GC_set_force_unmap_on_gcollect(1); ^ In file included from Buildings_latest_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_ExchangeValues_functions.c:7: In file included from ./Buildings_latest_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_ExchangeValues_includes.h:5: /home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/Resources/C-Sources/initArray.c:14:10: fatal error: 'ModelicaUtilities.h' file not found #include "ModelicaUtilities.h" ^~~~~~~~~~~~~~~~~~~~~ 2 warnings and 1 error generated. make: *** [: Buildings_latest_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_ExchangeValues_functions.o] Error 1