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.000799/0.000799, allocations: 91.92 kB / 15.06 MB, free: 1.098 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.0008687/0.0008688, allocations: 172.7 kB / 15.95 MB, free: 208 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.322/1.322, allocations: 223.2 MB / 240 MB, free: 5.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.435/2.435, allocations: 409.4 MB / 0.684 GB, free: 0.8828 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0003702/0.0003703, allocations: 12 kB / 0.8378 GB, free: 6.453 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7062/0.7066, allocations: 146.8 MB / 0.9811 GB, free: 6.215 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ExchangeValues): time 0.0008366/0.7075, allocations: 280.8 kB / 0.9814 GB, free: 5.941 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.0002191/0.7077, allocations: 99.78 kB / 0.9815 GB, free: 5.844 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.626e-05/0.7078, allocations: 0 / 0.9815 GB, free: 5.844 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 9.445e-05/0.7079, allocations: 12 kB / 0.9815 GB, free: 5.832 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 5.734e-05/0.7079, allocations: 0 / 0.9815 GB, free: 5.832 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001268/0.7081, allocations: 31.95 kB / 0.9816 GB, free: 5.801 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 6.148e-05/0.7081, allocations: 19.92 kB / 0.9816 GB, free: 5.781 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 4.442e-05/0.7082, allocations: 4 kB / 0.9816 GB, free: 5.777 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 2.995e-05/0.7082, allocations: 15.98 kB / 0.9816 GB, free: 5.762 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 5.313e-05/0.7083, allocations: 11.98 kB / 0.9816 GB, free: 5.75 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.888e-05/0.7083, allocations: 0 / 0.9816 GB, free: 5.75 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 4.251e-05/0.7083, allocations: 8 kB / 0.9816 GB, free: 5.742 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 1.039e-05/0.7084, allocations: 3.984 kB / 0.9816 GB, free: 5.738 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 3.203e-05/0.7084, allocations: 33.64 kB / 0.9816 GB, free: 5.699 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 7.63e-05/0.7085, allocations: 27.91 kB / 0.9817 GB, free: 5.672 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 6.483e-06/0.7085, allocations: 0 / 0.9817 GB, free: 5.672 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.924e-06/0.7085, allocations: 0 / 0.9817 GB, free: 5.672 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 5.15e-06/0.7085, allocations: 0 / 0.9817 GB, free: 5.672 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.0003426/0.7089, allocations: 346.4 kB / 0.982 GB, free: 5.281 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.682e-05/0.7089, allocations: 8.031 kB / 0.982 GB, free: 5.273 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.112e-05/0.709, allocations: 38.55 kB / 0.982 GB, free: 5.227 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.209e-05/0.709, allocations: 11.92 kB / 0.9821 GB, free: 5.215 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001436/0.7092, allocations: 163.1 kB / 0.9822 GB, free: 5.016 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.352e-05/0.7092, allocations: 0 / 0.9822 GB, free: 5.016 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.347e-05/0.7092, allocations: 4 kB / 0.9822 GB, free: 5.012 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000125/0.7093, allocations: 57.62 kB / 0.9823 GB, free: 4.949 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.885e-06/0.7093, allocations: 0 / 0.9823 GB, free: 4.949 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.121e-05/0.7094, allocations: 0 / 0.9823 GB, free: 4.949 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.104e-06/0.7094, allocations: 7.984 kB / 0.9823 GB, free: 4.941 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.736e-05/0.7094, allocations: 15.94 kB / 0.9823 GB, free: 4.926 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001509/0.7096, allocations: 153.7 kB / 0.9824 GB, free: 4.727 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 6.384e-05/0.7096, allocations: 26.59 kB / 0.9825 GB, free: 4.688 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.493e-05/0.7097, allocations: 16.92 kB / 0.9825 GB, free: 4.668 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 7.384e-06/0.7097, allocations: 4 kB / 0.9825 GB, free: 4.664 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.028e-05/0.7097, allocations: 38.55 kB / 0.9825 GB, free: 4.617 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=1): time 9.62e-07/0.7097, allocations: 0 / 0.9825 GB, free: 4.617 MB / 0.7325 GB Notification: Performance of matching and sorting (n=1): time 0.0002505/0.71, allocations: 111.3 kB / 0.9826 GB, free: 4.496 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.967e-05/0.7101, allocations: 81.11 kB / 0.9827 GB, free: 4.398 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.404e-05/0.7101, allocations: 93.86 kB / 0.9828 GB, free: 4.297 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.646e-05/0.7102, allocations: 25.7 kB / 0.9828 GB, free: 4.266 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 3.355e-05/0.7102, allocations: 84.14 kB / 0.9829 GB, free: 4.18 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.724e-05/0.7102, allocations: 7.984 kB / 0.9829 GB, free: 4.172 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.761e-06/0.7103, allocations: 4.25 kB / 0.9829 GB, free: 4.168 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001204/0.7104, allocations: 310.8 kB / 0.9832 GB, free: 3.855 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.653e-05/0.7104, allocations: 8 kB / 0.9832 GB, free: 3.848 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.513e-05/0.7104, allocations: 15.98 kB / 0.9832 GB, free: 3.832 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.29e-05/0.7105, allocations: 37.7 kB / 0.9833 GB, free: 3.789 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/0.7105, allocations: 0 / 0.9833 GB, free: 3.789 MB / 0.7325 GB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001325/0.7106, allocations: 103.2 kB / 0.9834 GB, free: 3.676 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 3.896e-05/0.7107, allocations: 29.7 kB / 0.9834 GB, free: 3.641 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.09e-06/0.7107, allocations: 4.094 kB / 0.9834 GB, free: 3.637 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.369e-05/0.7107, allocations: 7.953 kB / 0.9834 GB, free: 3.629 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.443e-06/0.7107, allocations: 0 / 0.9834 GB, free: 3.629 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.961e-06/0.7107, allocations: 0 / 0.9834 GB, free: 3.629 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001183/0.7109, allocations: 10.23 kB / 0.9834 GB, free: 3.621 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.261e-05/0.7109, allocations: 7.938 kB / 0.9834 GB, free: 3.613 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 9.608e-05/0.711, allocations: 139.5 kB / 0.9836 GB, free: 3.461 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.381e-05/0.711, allocations: 11.92 kB / 0.9836 GB, free: 3.449 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.776e-06/0.711, allocations: 3.125 kB / 0.9836 GB, free: 3.449 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.92e-07/0.711, allocations: 4 kB / 0.9836 GB, free: 3.445 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.712e-06/0.711, allocations: 3.953 kB / 0.9836 GB, free: 3.441 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.268e-06/0.711, allocations: 4 kB / 0.9836 GB, free: 3.438 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001188/0.7112, allocations: 145.7 kB / 0.9837 GB, free: 3.246 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.12e-07/0.7112, allocations: 0 / 0.9837 GB, free: 3.246 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.41e-07/0.7112, allocations: 4 kB / 0.9837 GB, free: 3.242 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.373e-06/0.7112, allocations: 0 / 0.9837 GB, free: 3.242 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.35e-05/0.7112, allocations: 7.984 kB / 0.9837 GB, free: 3.234 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-06/0.7112, allocations: 4 kB / 0.9837 GB, free: 3.23 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.02e-07/0.7112, allocations: 0 / 0.9837 GB, free: 3.23 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000151/0.7114, allocations: 126.7 kB / 0.9839 GB, free: 3.082 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 3.535e-05/0.7114, allocations: 77.11 kB / 0.9839 GB, free: 2.988 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.575e-05/0.7114, allocations: 4 kB / 0.9839 GB, free: 2.984 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.883e-05/0.7115, allocations: 4 kB / 0.9839 GB, free: 2.98 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.167e-05/0.7116, allocations: 11.98 kB / 0.9839 GB, free: 2.969 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.552e-06/0.7116, allocations: 0 / 0.9839 GB, free: 2.969 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 4.091e-05/0.7116, allocations: 87.27 kB / 0.984 GB, free: 2.883 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1e-07/0.7116, allocations: 0 / 0.984 GB, free: 2.883 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0001927/0.7118, allocations: 12 kB / 0.984 GB, free: 2.871 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.0005317/0.7124, allocations: 0.6701 MB / 0.9847 GB, free: 2.172 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0001436/0.7125, allocations: 95.31 kB / 0.9848 GB, free: 2.066 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 1.943e-06/0.7125, allocations: 0 / 0.9848 GB, free: 2.066 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 5.971e-05/0.7126, allocations: 67.39 kB / 0.9849 GB, free: 1.988 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001512/0.7127, allocations: 5.406 kB / 0.9849 GB, free: 1.984 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004349/0.7132, allocations: 145.8 kB / 0.985 GB, free: 1.801 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002605/0.7135, allocations: 0.6733 MB / 0.9857 GB, free: 1.102 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 8.573e-05/0.7136, allocations: 11.92 kB / 0.9857 GB, free: 1.09 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.221e-05/0.7136, allocations: 7.438 kB / 0.9857 GB, free: 1.082 MB / 0.7325 GB Notification: Performance of SimCode: time 2.11e-07/0.7136, allocations: 0 / 0.9857 GB, free: 1.082 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01251/0.7261, allocations: 1.614 MB / 0.9872 GB, free: 15.65 MB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000222/0.7264, allocations: 220 kB / 0.9875 GB, free: 15.41 MB / 0.7481 GB Error: Error building simulator. Build log: clang -Os -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -Wno-parentheses-equality -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:144: ./gc/omc_gc.h:219:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ ./gc/omc_gc.h:223: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 -Wno-parentheses-equality -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:219:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ ./gc/omc_gc.h:223: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