Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_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 9.1.1-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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_9_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_ExchangeValues",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ExchangeValues,fileNamePrefix="Buildings_9_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.001027/0.001027, allocations: 98.38 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.001058/0.001058, 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 1.376/1.376, allocations: 223.2 MB / 239.9 MB, free: 5.371 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.487/2.487, allocations: 390.3 MB / 0.6653 GB, free: 3.02 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.000477/0.0004777, allocations: 12 kB / 0.8146 GB, free: 14.22 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8061/0.8066, allocations: 142.3 MB / 0.9536 GB, free: 8.102 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ExchangeValues): time 0.0007037/0.8073, allocations: 275.8 kB / 0.9539 GB, free: 7.902 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0001884/0.8076, allocations: 108.6 kB / 0.954 GB, free: 7.82 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.962e-05/0.8076, allocations: 0 / 0.954 GB, free: 7.82 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 8.283e-05/0.8077, allocations: 6.5 kB / 0.954 GB, free: 7.816 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.886e-05/0.8077, allocations: 0 / 0.954 GB, free: 7.816 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001223/0.8079, allocations: 29.88 kB / 0.954 GB, free: 7.801 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 6.129e-05/0.8079, allocations: 17.62 kB / 0.954 GB, free: 7.789 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 3.856e-05/0.808, allocations: 1.25 kB / 0.954 GB, free: 7.789 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 2.97e-05/0.808, allocations: 16.45 kB / 0.954 GB, free: 7.781 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 3.147e-05/0.808, allocations: 15.77 kB / 0.954 GB, free: 7.77 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.906e-05/0.8081, allocations: 1.219 kB / 0.954 GB, free: 7.77 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 3.708e-05/0.8081, allocations: 9.219 kB / 0.9541 GB, free: 7.766 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 6.552e-06/0.8081, allocations: 0 / 0.9541 GB, free: 7.766 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 1.995e-05/0.8081, allocations: 30.08 kB / 0.9541 GB, free: 7.734 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 6.652e-05/0.8082, allocations: 18.75 kB / 0.9541 GB, free: 7.723 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.184e-06/0.8082, allocations: 0 / 0.9541 GB, free: 7.723 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.653e-06/0.8082, allocations: 0 / 0.9541 GB, free: 7.723 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.336e-06/0.8082, allocations: 0 / 0.9541 GB, free: 7.723 MB / 0.7169 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.0002058/0.8085, allocations: 342.6 kB / 0.9544 GB, free: 7.34 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.907e-05/0.8085, allocations: 13.16 kB / 0.9544 GB, free: 7.336 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.671e-05/0.8085, allocations: 31.88 kB / 0.9545 GB, free: 7.297 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.727e-05/0.8086, allocations: 7.703 kB / 0.9545 GB, free: 7.293 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.2e-05/0.8086, allocations: 168.3 kB / 0.9546 GB, free: 7.09 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.119e-05/0.8087, allocations: 1.281 kB / 0.9546 GB, free: 7.09 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.269e-05/0.8087, allocations: 3.656 kB / 0.9546 GB, free: 7.09 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001005/0.8088, allocations: 59.34 kB / 0.9547 GB, free: 7.039 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.761e-06/0.8088, allocations: 0 / 0.9547 GB, free: 7.039 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.057e-05/0.8088, allocations: 1.781 kB / 0.9547 GB, free: 7.039 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.519e-06/0.8088, allocations: 5.312 kB / 0.9547 GB, free: 7.035 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.38e-05/0.8089, allocations: 10.58 kB / 0.9547 GB, free: 7.031 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.716e-05/0.809, allocations: 152.7 kB / 0.9549 GB, free: 6.836 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 5.113e-05/0.809, allocations: 31.59 kB / 0.9549 GB, free: 6.805 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 3.937e-06/0.809, allocations: 0.9688 kB / 0.9549 GB, free: 6.805 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.551e-05/0.809, allocations: 35.59 kB / 0.9549 GB, free: 6.762 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=1): time 7.81e-07/0.8091, allocations: 0 / 0.9549 GB, free: 6.762 MB / 0.7169 GB Notification: Performance of matching and sorting (n=1): time 0.0001982/0.8093, allocations: 106.3 kB / 0.955 GB, free: 6.68 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.751e-05/0.8093, allocations: 82.75 kB / 0.9551 GB, free: 6.582 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.535e-05/0.8093, allocations: 96.23 kB / 0.9552 GB, free: 6.48 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.208e-05/0.8094, allocations: 32.33 kB / 0.9552 GB, free: 6.445 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.476e-05/0.8094, allocations: 80.14 kB / 0.9553 GB, free: 6.363 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.011e-05/0.8094, allocations: 2.688 kB / 0.9553 GB, free: 6.363 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.232e-06/0.8094, allocations: 5.125 kB / 0.9553 GB, free: 6.359 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.143e-05/0.8095, allocations: 320.6 kB / 0.9556 GB, free: 6.039 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.691e-05/0.8095, allocations: 18.67 kB / 0.9556 GB, free: 6.027 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.341e-05/0.8095, allocations: 10.73 kB / 0.9556 GB, free: 6.023 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.854e-05/0.8096, allocations: 37.52 kB / 0.9557 GB, free: 5.988 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.8096, allocations: 0 / 0.9557 GB, free: 5.988 MB / 0.7169 GB Notification: Performance of matching and sorting (n=1) (initialization): time 0.000108/0.8097, allocations: 94.62 kB / 0.9558 GB, free: 5.91 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.84e-05/0.8097, allocations: 31.98 kB / 0.9558 GB, free: 5.879 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.639e-06/0.8097, allocations: 1.656 kB / 0.9558 GB, free: 5.879 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.919e-06/0.8098, allocations: 0 / 0.9558 GB, free: 5.879 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.62e-07/0.8098, allocations: 4.094 kB / 0.9558 GB, free: 5.875 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.908e-06/0.8098, allocations: 0 / 0.9558 GB, free: 5.875 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001368/0.8099, allocations: 11.77 kB / 0.9558 GB, free: 5.871 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.339e-05/0.8099, allocations: 6.688 kB / 0.9558 GB, free: 5.867 MB / 0.7169 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 6.331e-05/0.81, allocations: 143.2 kB / 0.956 GB, free: 5.719 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.331e-05/0.81, allocations: 7.25 kB / 0.956 GB, free: 5.715 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.029e-05/0.81, allocations: 4.406 kB / 0.956 GB, free: 5.711 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.793e-06/0.81, allocations: 0 / 0.956 GB, free: 5.711 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.837e-06/0.81, allocations: 4 kB / 0.956 GB, free: 5.707 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.145e-06/0.8101, allocations: 8.922 kB / 0.956 GB, free: 5.699 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.409e-05/0.8101, allocations: 160.5 kB / 0.9561 GB, free: 5.496 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.303e-06/0.8101, allocations: 3.984 kB / 0.9561 GB, free: 5.492 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.142e-06/0.8101, allocations: 5.219 kB / 0.9562 GB, free: 5.488 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.393e-06/0.8101, allocations: 0 / 0.9562 GB, free: 5.488 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.149e-05/0.8101, allocations: 3.969 kB / 0.9562 GB, free: 5.488 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.283e-06/0.8102, allocations: 0 / 0.9562 GB, free: 5.488 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.8102, allocations: 0 / 0.9562 GB, free: 5.488 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001203/0.8103, allocations: 129.7 kB / 0.9563 GB, free: 5.367 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.717e-05/0.8103, allocations: 77.11 kB / 0.9564 GB, free: 5.273 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.793e-05/0.8103, allocations: 6.359 kB / 0.9564 GB, free: 5.27 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001037/0.8104, allocations: 5.125 kB / 0.9564 GB, free: 5.27 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.351e-05/0.8105, allocations: 1.438 kB / 0.9564 GB, free: 5.27 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.807e-06/0.8105, allocations: 2.812 kB / 0.9564 GB, free: 5.27 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 1.809e-05/0.8105, allocations: 89.86 kB / 0.9565 GB, free: 5.184 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.8105, allocations: 0 / 0.9565 GB, free: 5.184 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0001956/0.8107, allocations: 16.66 kB / 0.9565 GB, free: 5.18 MB / 0.7169 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.0003868/0.8111, allocations: 0.6699 MB / 0.9571 GB, free: 4.531 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.000106/0.8112, allocations: 87.44 kB / 0.9572 GB, free: 4.453 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.8112, allocations: 3.938 kB / 0.9572 GB, free: 4.449 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 4.186e-05/0.8113, allocations: 67.25 kB / 0.9573 GB, free: 4.383 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.697e-05/0.8114, allocations: 8.875 kB / 0.9573 GB, free: 4.379 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003102/0.8117, allocations: 139.7 kB / 0.9574 GB, free: 4.223 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.245e-05/0.8118, allocations: 0.6765 MB / 0.9581 GB, free: 3.523 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 7.59e-05/0.8119, allocations: 7.688 kB / 0.9581 GB, free: 3.52 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.584e-05/0.8119, allocations: 7.438 kB / 0.9581 GB, free: 3.512 MB / 0.7169 GB Notification: Performance of SimCode: time 2.11e-07/0.8119, allocations: 0 / 0.9581 GB, free: 3.512 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01201/0.8239, allocations: 1.595 MB / 0.9596 GB, free: 2.77 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001429/0.8241, allocations: 206.2 kB / 0.9598 GB, free: 2.535 MB / 0.7169 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 9.1.1-maint.9.1.x/Resources/C-Sources" -c -o Buildings_9_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_ExchangeValues.o Buildings_9_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_ExchangeValues.c In file included from Buildings_9_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_ExchangeValues.c:7: In file included from ./Buildings_9_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 9.1.1-maint.9.1.x/Resources/C-Sources" -c -o Buildings_9_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_ExchangeValues_functions.o Buildings_9_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_ExchangeValues_functions.c In file included from Buildings_9_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_ExchangeValues_functions.c:2: In file included from ./Buildings_9_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_9_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_ExchangeValues_functions.c:7: In file included from ./Buildings_9_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_ExchangeValues_includes.h:5: /home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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_9_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_ExchangeValues_functions.o] Error 1