Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ExchangeValues.conf.json Using package Buildings with version 7.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 7.0.0/package.mo) Using package Modelica with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.3/package.mo) Using package Complex with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.3.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.3/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ExchangeValues,fileNamePrefix="Buildings_7_0_0_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_ExchangeValues",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.3/package.mo): time 0.01327/0.01328, allocations: 89.97 kB / 15.04 MB, free: 5.578 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.3.mo): time 0.001928/0.001928, allocations: 175.9 kB / 15.92 MB, free: 5.551 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.3/package.mo): time 2.209/2.209, allocations: 205.5 MB / 222.2 MB, free: 13.71 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 7.0.0/package.mo): time 2.393/2.393, allocations: 252.8 MB / 0.511 GB, free: 8.32 MB / 426.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004765/0.0004767, allocations: 16.31 kB / 0.6243 GB, free: 28.37 MB / 0.4948 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2366/0.2371, allocations: 106.2 MB / 0.7281 GB, free: 10.13 MB / 0.5573 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ExchangeValues): time 0.00114/0.2383, allocations: 297.7 kB / 0.7284 GB, free: 9.844 MB / 0.5573 GB Notification: Performance of NFInst.instExpressions: time 0.0004081/0.2387, allocations: 107.7 kB / 0.7285 GB, free: 9.738 MB / 0.5573 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.595e-05/0.2388, allocations: 0 / 0.7285 GB, free: 9.738 MB / 0.5573 GB Notification: Performance of NFTyping.typeComponents: time 9.15e-05/0.2389, allocations: 3.984 kB / 0.7285 GB, free: 9.734 MB / 0.5573 GB Notification: Performance of NFTyping.typeBindings: time 5.46e-05/0.239, allocations: 0 / 0.7285 GB, free: 9.734 MB / 0.5573 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002483/0.2392, allocations: 39.89 kB / 0.7285 GB, free: 9.695 MB / 0.5573 GB Notification: Performance of NFFlatten.flatten: time 8.306e-05/0.2393, allocations: 4 kB / 0.7285 GB, free: 9.691 MB / 0.5573 GB Notification: Performance of NFFlatten.resolveConnections: time 5.066e-05/0.2394, allocations: 0 / 0.7285 GB, free: 9.691 MB / 0.5573 GB Notification: Performance of NFEvalConstants.evaluate: time 5.951e-05/0.2395, allocations: 23.97 kB / 0.7285 GB, free: 9.668 MB / 0.5573 GB Notification: Performance of NFSimplifyModel.simplify: time 3.889e-05/0.2395, allocations: 11.94 kB / 0.7285 GB, free: 9.656 MB / 0.5573 GB Notification: Performance of NFPackage.collectConstants: time 3.111e-05/0.2396, allocations: 0 / 0.7285 GB, free: 9.656 MB / 0.5573 GB Notification: Performance of NFFlatten.collectFunctions: time 5.841e-05/0.2396, allocations: 8 kB / 0.7285 GB, free: 9.648 MB / 0.5573 GB Notification: Performance of NFScalarize.scalarize: time 8.486e-06/0.2397, allocations: 0 / 0.7285 GB, free: 9.648 MB / 0.5573 GB Notification: Performance of NFVerifyModel.verify: time 4.21e-05/0.2397, allocations: 29.7 kB / 0.7286 GB, free: 9.613 MB / 0.5573 GB Notification: Performance of NFConvertDAE.convert: time 9.52e-05/0.2398, allocations: 19.95 kB / 0.7286 GB, free: 9.594 MB / 0.5573 GB Notification: Performance of FrontEnd - DAE generated: time 3.026e-06/0.2398, allocations: 0 / 0.7286 GB, free: 9.594 MB / 0.5573 GB Notification: Performance of FrontEnd: time 2.084e-06/0.2399, allocations: 0 / 0.7286 GB, free: 9.594 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 4.468e-06/0.2399, allocations: 0 / 0.7286 GB, free: 9.594 MB / 0.5573 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.0003811/0.2403, allocations: 349.1 kB / 0.7289 GB, free: 9.199 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 5.585e-05/0.2403, allocations: 12.03 kB / 0.7289 GB, free: 9.188 MB / 0.5573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.622e-05/0.2404, allocations: 30.56 kB / 0.729 GB, free: 9.148 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.294e-05/0.2405, allocations: 4 kB / 0.729 GB, free: 9.145 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001542/0.2406, allocations: 163 kB / 0.7291 GB, free: 8.945 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.98e-05/0.2407, allocations: 4 kB / 0.7291 GB, free: 8.941 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.644e-05/0.2407, allocations: 4 kB / 0.7291 GB, free: 8.938 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001957/0.2409, allocations: 57.59 kB / 0.7292 GB, free: 8.875 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.957e-06/0.2409, allocations: 3.938 kB / 0.7292 GB, free: 8.871 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.835e-05/0.241, allocations: 4 kB / 0.7292 GB, free: 8.867 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.43e-06/0.241, allocations: 0 / 0.7292 GB, free: 8.867 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.29e-05/0.2411, allocations: 12 kB / 0.7292 GB, free: 8.855 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000204/0.2413, allocations: 161.5 kB / 0.7294 GB, free: 8.648 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00011/0.2414, allocations: 30.59 kB / 0.7294 GB, free: 8.609 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 8.987e-06/0.2414, allocations: 64 / 0.7294 GB, free: 8.609 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.828e-05/0.2415, allocations: 38.5 kB / 0.7294 GB, free: 8.562 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=1): time 1.864e-06/0.2415, allocations: 4 kB / 0.7294 GB, free: 8.559 MB / 0.5573 GB Notification: Performance of matching and sorting (n=1): time 0.000415/0.2419, allocations: 103.4 kB / 0.7295 GB, free: 8.445 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.555e-05/0.242, allocations: 85.09 kB / 0.7296 GB, free: 8.344 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.369e-05/0.2421, allocations: 93.86 kB / 0.7297 GB, free: 8.242 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 3.007e-05/0.2422, allocations: 25.7 kB / 0.7297 GB, free: 8.211 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 4.408e-05/0.2422, allocations: 84.14 kB / 0.7298 GB, free: 8.125 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 3.445e-05/0.2423, allocations: 7.906 kB / 0.7298 GB, free: 8.117 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.294e-05/0.2423, allocations: 0 / 0.7298 GB, free: 8.117 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0001404/0.2425, allocations: 319 kB / 0.7301 GB, free: 7.797 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.796e-05/0.2426, allocations: 11.98 kB / 0.7301 GB, free: 7.785 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.407e-05/0.2427, allocations: 19.92 kB / 0.7302 GB, free: 7.766 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.337e-05/0.2428, allocations: 37.7 kB / 0.7302 GB, free: 7.723 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.484e-06/0.2428, allocations: 0 / 0.7302 GB, free: 7.723 MB / 0.5573 GB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0002832/0.2431, allocations: 95.38 kB / 0.7303 GB, free: 7.617 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 4.788e-05/0.2431, allocations: 29.7 kB / 0.7303 GB, free: 7.582 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.901e-06/0.2432, allocations: 0 / 0.7303 GB, free: 7.582 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.795e-05/0.2432, allocations: 4.094 kB / 0.7303 GB, free: 7.578 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.024e-06/0.2432, allocations: 4 kB / 0.7303 GB, free: 7.574 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.271e-06/0.2432, allocations: 0 / 0.7303 GB, free: 7.574 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002878/0.2435, allocations: 7.984 kB / 0.7303 GB, free: 7.566 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.725e-05/0.2436, allocations: 4 kB / 0.7303 GB, free: 7.562 MB / 0.5573 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.0001455/0.2437, allocations: 143.5 kB / 0.7305 GB, free: 7.406 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.808e-05/0.2438, allocations: 4 kB / 0.7305 GB, free: 7.402 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.98e-05/0.2438, allocations: 7.078 kB / 0.7305 GB, free: 7.395 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.607e-06/0.2438, allocations: 0 / 0.7305 GB, free: 7.395 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.02e-05/0.2438, allocations: 11.98 kB / 0.7305 GB, free: 7.383 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.767e-06/0.2439, allocations: 0 / 0.7305 GB, free: 7.383 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001511/0.244, allocations: 153.9 kB / 0.7306 GB, free: 7.184 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.244, allocations: 3.938 kB / 0.7306 GB, free: 7.18 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.519e-06/0.2441, allocations: 4 kB / 0.7306 GB, free: 7.176 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.15e-06/0.2441, allocations: 0 / 0.7306 GB, free: 7.176 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.353e-05/0.2441, allocations: 7.938 kB / 0.7306 GB, free: 7.168 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.27e-06/0.2441, allocations: 4 kB / 0.7306 GB, free: 7.164 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.964e-06/0.2441, allocations: 0 / 0.7306 GB, free: 7.164 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003063/0.2445, allocations: 118.8 kB / 0.7308 GB, free: 7.023 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 5.445e-05/0.2445, allocations: 81.06 kB / 0.7308 GB, free: 6.926 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.849e-05/0.2446, allocations: 11.98 kB / 0.7309 GB, free: 6.914 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002423/0.2448, allocations: 4 kB / 0.7309 GB, free: 6.91 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.049e-05/0.2449, allocations: 7.938 kB / 0.7309 GB, free: 6.902 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.8e-05/0.2449, allocations: 0 / 0.7309 GB, free: 6.902 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 5.442e-05/0.245, allocations: 83.27 kB / 0.7309 GB, free: 6.82 MB / 0.5573 GB Notification: Performance of sort global known variables: time 5.81e-07/0.245, allocations: 4.125 kB / 0.7309 GB, free: 6.816 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.0004419/0.2455, allocations: 16 kB / 0.731 GB, free: 6.801 MB / 0.5573 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.0008384/0.2463, allocations: 0.6796 MB / 0.7316 GB, free: 6.086 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.0002955/0.2466, allocations: 87.38 kB / 0.7317 GB, free: 5.988 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 3.316e-06/0.2467, allocations: 0 / 0.7317 GB, free: 5.988 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.0001184/0.2468, allocations: 63.41 kB / 0.7318 GB, free: 5.914 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001674/0.247, allocations: 6.25 kB / 0.7318 GB, free: 5.91 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005694/0.2476, allocations: 136.3 kB / 0.7319 GB, free: 5.734 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000293/0.2479, allocations: 0.6771 MB / 0.7326 GB, free: 5.031 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 8.037e-05/0.248, allocations: 11.91 kB / 0.7326 GB, free: 5.02 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.801e-05/0.248, allocations: 11.44 kB / 0.7326 GB, free: 5.008 MB / 0.5573 GB Notification: Performance of SimCode: time 1.192e-06/0.248, allocations: 0 / 0.7326 GB, free: 5.008 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03894/0.287, allocations: 1.608 MB / 0.7342 GB, free: 3.516 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003268/0.2874, allocations: 221.4 kB / 0.7344 GB, free: 3.273 MB / 0.5573 GB Error: Error building simulator. Build log: clang -Os -fPIC -mfpmath=sse -fno-dollars-in-identifiers -I'/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/fmi' -DOMC_FMI_RUNTIME=1 -DCMINPACK_NO_DLL=1 "-I/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 7.0.0/Resources/C-Sources" -c -o Buildings_7_0_0_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_ExchangeValues.o Buildings_7_0_0_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_ExchangeValues.c In file included from Buildings_7_0_0_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_ExchangeValues.c:7: In file included from ./Buildings_7_0_0_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 -mfpmath=sse -fno-dollars-in-identifiers -I'/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/fmi' -DOMC_FMI_RUNTIME=1 -DCMINPACK_NO_DLL=1 "-I/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 7.0.0/Resources/C-Sources" -c -o Buildings_7_0_0_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_ExchangeValues_functions.o Buildings_7_0_0_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_ExchangeValues_functions.c In file included from Buildings_7_0_0_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_ExchangeValues_functions.c:2: In file included from ./Buildings_7_0_0_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_7_0_0_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_ExchangeValues_functions.c:7: In file included from ./Buildings_7_0_0_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_ExchangeValues_includes.h:4: In file included from /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 7.0.0/Resources/C-Sources/freeArray.c:13: /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 7.0.0/Resources/C-Sources/externalObjectStructure.h:8:10: fatal error: 'ModelicaUtilities.h' file not found #include "ModelicaUtilities.h" ^~~~~~~~~~~~~~~~~~~~~ 2 warnings and 1 error generated. : recipe for target 'Buildings_7_0_0_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_ExchangeValues_functions.o' failed make: *** [Buildings_7_0_0_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_ExchangeValues_functions.o] Error 1