Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.conf.json Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition,fileNamePrefix="Buildings_7_0_0_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_SingleUTubeBoundaryCondition",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.423/2.423, allocations: 248.5 MB / 261.1 MB, free: 6.008 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001447/0.001447, allocations: 194.2 kB / 320.4 MB, free: 15.32 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.916/1.916, allocations: 205.2 MB / 0.571 GB, free: 11.79 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001424/0.001423, allocations: 98.39 kB / 0.6754 GB, free: 0.875 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 4.175e-05/4.187e-05, allocations: 4 kB / 0.7869 GB, free: 97.77 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1996/0.1996, allocations: 106.2 MB / 0.8907 GB, free: 7.43 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8481/1.048, allocations: 136.3 MB / 1.024 GB, free: 14.94 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003416/1.048, allocations: 102.8 kB / 1.024 GB, free: 14.88 MB / 0.6511 GB Notification: Performance of FrontEnd - DAE generated: time 0.02648/1.075, allocations: 5.312 MB / 1.029 GB, free: 10.28 MB / 0.6511 GB Notification: Performance of FrontEnd: time 1.553e-06/1.075, allocations: 0 / 1.029 GB, free: 10.28 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 1.85e-05/1.075, allocations: 4 kB / 1.029 GB, free: 10.28 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: 27 * Number of variables: 27 Notification: Performance of Generate backend data structure: time 0.001192/1.076, allocations: 0.5382 MB / 1.03 GB, free: 9.699 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 5.394e-05/1.076, allocations: 12.03 kB / 1.03 GB, free: 9.688 MB / 0.6511 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.115e-05/1.076, allocations: 41.8 kB / 1.03 GB, free: 9.641 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.932e-05/1.076, allocations: 27.67 kB / 1.03 GB, free: 9.613 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000588/1.077, allocations: 296.8 kB / 1.03 GB, free: 9.312 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.929e-05/1.077, allocations: 19.22 kB / 1.03 GB, free: 9.301 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.169e-05/1.077, allocations: 15.19 kB / 1.03 GB, free: 9.289 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004407/1.077, allocations: 182 kB / 1.03 GB, free: 9.121 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.183e-05/1.078, allocations: 7.906 kB / 1.03 GB, free: 9.113 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.017e-05/1.078, allocations: 7.875 kB / 1.03 GB, free: 9.109 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.072e-05/1.078, allocations: 4 kB / 1.03 GB, free: 9.105 MB / 0.6511 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000258/1.078, allocations: 76.03 kB / 1.03 GB, free: 9.051 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001652/1.08, allocations: 0.9114 MB / 1.031 GB, free: 8.145 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000508/1.08, allocations: 187.2 kB / 1.031 GB, free: 7.977 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001895/1.08, allocations: 66.8 kB / 1.031 GB, free: 7.918 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 2.12e-05/1.08, allocations: 7.875 kB / 1.031 GB, free: 7.914 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004885/1.081, allocations: 193 kB / 1.032 GB, free: 7.734 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=23): time 3.346e-06/1.081, allocations: 0 / 1.032 GB, free: 7.734 MB / 0.6511 GB Notification: Performance of matching and sorting (n=23): time 0.0007808/1.082, allocations: 243.5 kB / 1.032 GB, free: 7.535 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.072e-05/1.082, allocations: 126.3 kB / 1.032 GB, free: 7.391 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000316/1.082, allocations: 221.4 kB / 1.032 GB, free: 7.199 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 5.492e-05/1.082, allocations: 44.56 kB / 1.032 GB, free: 7.156 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001269/1.082, allocations: 140.7 kB / 1.032 GB, free: 7.047 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 7.716e-05/1.082, allocations: 57.44 kB / 1.032 GB, free: 7 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.202e-05/1.082, allocations: 11 kB / 1.032 GB, free: 6.996 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001458/1.083, allocations: 333.4 kB / 1.033 GB, free: 6.672 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001851/1.083, allocations: 58.69 kB / 1.033 GB, free: 6.629 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003272/1.083, allocations: 238.6 kB / 1.033 GB, free: 6.344 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002774/1.083, allocations: 118 kB / 1.033 GB, free: 6.242 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.501e-06/1.083, allocations: 0 / 1.033 GB, free: 6.242 MB / 0.6511 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0008487/1.084, allocations: 364.1 kB / 1.033 GB, free: 5.93 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 5.124e-05/1.084, allocations: 33.7 kB / 1.034 GB, free: 5.891 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.617e-05/1.084, allocations: 8.812 kB / 1.034 GB, free: 5.883 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.684e-05/1.084, allocations: 8 kB / 1.034 GB, free: 5.875 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004708/1.085, allocations: 78.33 kB / 1.034 GB, free: 5.801 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.883e-05/1.085, allocations: 8 kB / 1.034 GB, free: 5.793 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004202/1.085, allocations: 46.98 kB / 1.034 GB, free: 5.754 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.198e-05/1.085, allocations: 19.31 kB / 1.034 GB, free: 5.738 MB / 0.6511 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * Number of states: 0 () * Number of discrete variables: 32 ($PRE.TBouSte.QAve_flow,TBouSte.QAve_flow,$PRE.TBouSte.UOld,TBouSte.UOld,$PRE.TBouSte.port.T,TBouSte.port.T,$PRE.TBouSte.iSam,TBouSte.iSam,$whenCondition4,$PRE.TBouCon.QAve_flow,TBouCon.QAve_flow,$PRE.TBouCon.UOld,TBouCon.UOld,$PRE.TBouCon.port.T,TBouCon.port.T,$PRE.TBouCon.iSam,TBouCon.iSam,$whenCondition3,$PRE.TBouPul.QAve_flow,TBouPul.QAve_flow,$PRE.TBouPul.UOld,TBouPul.UOld,$PRE.TBouPul.port.T,TBouPul.port.T,$PRE.TBouPul.iSam,TBouPul.iSam,$whenCondition1,$whenCondition2,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 45 * 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.0001808/1.086, allocations: 146.3 kB / 1.034 GB, free: 5.602 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.296e-05/1.086, allocations: 35.58 kB / 1.034 GB, free: 5.566 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.781e-05/1.086, allocations: 22.58 kB / 1.034 GB, free: 5.551 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.015e-06/1.086, allocations: 4 kB / 1.034 GB, free: 5.547 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.434e-06/1.086, allocations: 0 / 1.034 GB, free: 5.547 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.633e-06/1.086, allocations: 0 / 1.034 GB, free: 5.547 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004055/1.086, allocations: 269.5 kB / 1.034 GB, free: 5.266 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.607e-06/1.086, allocations: 0 / 1.034 GB, free: 5.266 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002247/1.086, allocations: 27.67 kB / 1.034 GB, free: 5.242 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.566e-06/1.086, allocations: 8 kB / 1.034 GB, free: 5.234 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.254e-05/1.087, allocations: 11.94 kB / 1.034 GB, free: 5.223 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.226e-06/1.087, allocations: 0 / 1.034 GB, free: 5.223 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.198e-06/1.087, allocations: 4 kB / 1.034 GB, free: 5.219 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009901/1.088, allocations: 396.9 kB / 1.035 GB, free: 4.875 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001116/1.088, allocations: 104.1 kB / 1.035 GB, free: 4.758 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.402e-05/1.088, allocations: 7.188 kB / 1.035 GB, free: 4.754 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002968/1.088, allocations: 23.22 kB / 1.035 GB, free: 4.734 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001003/1.088, allocations: 19.78 kB / 1.035 GB, free: 4.719 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.849e-05/1.088, allocations: 11.98 kB / 1.035 GB, free: 4.707 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.0002477/1.089, allocations: 163.4 kB / 1.035 GB, free: 4.57 MB / 0.6511 GB Notification: Performance of sort global known variables: time 5.31e-07/1.089, allocations: 4 kB / 1.035 GB, free: 4.566 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0006579/1.089, allocations: 98.92 kB / 1.035 GB, free: 4.48 MB / 0.6511 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 3 (TBouSte.U,TBouCon.U,TBouPul.U) * Number of discrete variables: 18 ($whenCondition4,TBouSte.QAve_flow,TBouSte.port.T,TBouSte.UOld,TBouSte.iSam,$whenCondition3,TBouCon.QAve_flow,TBouCon.port.T,TBouCon.UOld,TBouCon.iSam,$whenCondition2,$whenCondition1,TBouPul.QAve_flow,TBouPul.port.T,TBouPul.UOld,TBouPul.iSam,pulse.T_start,pulse.count) * Number of discrete states: 7 (TBouPul.iSam,TBouPul.UOld,pulse.count,TBouCon.iSam,TBouCon.UOld,TBouSte.iSam,TBouSte.UOld) * Top-level inputs: 0 Notification: Strong component statistics for simulation (23): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 14 * 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.001721/1.091, allocations: 1.146 MB / 1.036 GB, free: 3.383 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0006636/1.092, allocations: 256.4 kB / 1.036 GB, free: 3.164 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 3.868e-06/1.092, allocations: 0 / 1.036 GB, free: 3.164 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0002602/1.092, allocations: 84.25 kB / 1.036 GB, free: 3.105 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005595/1.092, allocations: 59.02 kB / 1.036 GB, free: 3.062 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0027/1.095, allocations: 0.6827 MB / 1.037 GB, free: 2.395 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003991/1.096, allocations: 0.7485 MB / 1.038 GB, free: 1.621 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.0002765/1.096, allocations: 50.89 kB / 1.038 GB, free: 1.566 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001504/1.096, allocations: 70.81 kB / 1.038 GB, free: 1.535 MB / 0.6511 GB Notification: Performance of SimCode: time 1.994e-06/1.096, allocations: 4 kB / 1.038 GB, free: 1.531 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03667/1.133, allocations: 6.053 MB / 1.044 GB, free: 11.7 MB / 0.6667 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002974/1.133, allocations: 193.6 kB / 1.044 GB, free: 11.48 MB / 0.6667 GB Error: Error building simulator. Build log: clang -Os -fPIC -mfpmath=sse -fno-dollars-in-identifiers -DOMC_MINIMAL_RUNTIME=1 -DCMINPACK_NO_DLL=1 -I'/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/fmi' "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/Resources/C-Sources" -c -o Buildings_7_0_0_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_SingleUTubeBoundaryCondition.o Buildings_7_0_0_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_SingleUTubeBoundaryCondition.c In file included from Buildings_7_0_0_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_SingleUTubeBoundaryCondition.c:7: In file included from ./Buildings_7_0_0_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_SingleUTubeBoundaryCondition_model.h:5: In file included from ./openmodelica.h:71: In file included from ./gc/../openmodelica_types.h:111: ./gc/omc_gc.h:217:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ ./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 -fno-dollars-in-identifiers -DOMC_MINIMAL_RUNTIME=1 -DCMINPACK_NO_DLL=1 -I'/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/fmi' "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/Resources/C-Sources" -c -o Buildings_7_0_0_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_SingleUTubeBoundaryCondition_functions.o Buildings_7_0_0_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_SingleUTubeBoundaryCondition_functions.c In file included from Buildings_7_0_0_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_SingleUTubeBoundaryCondition_functions.c:2: In file included from ./Buildings_7_0_0_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_SingleUTubeBoundaryCondition_functions.h:3: In file included from ./meta/meta_modelica.h:49: ./gc/omc_gc.h:217:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ ./gc/omc_gc.h:221: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_SingleUTubeBoundaryCondition_functions.c:7: In file included from ./Buildings_7_0_0_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_SingleUTubeBoundaryCondition_includes.h:4: In file included from /home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/Resources/C-Sources/freeArray.c:13: /home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/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_SingleUTubeBoundaryCondition_functions.o' failed make: *** [Buildings_7_0_0_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_SingleUTubeBoundaryCondition_functions.o] Error 1