Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition,fileNamePrefix="Buildings_latest_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_SingleUTubeBoundaryCondition",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition,fileNamePrefix="Buildings_latest_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 10.0.0-master/package.mo): time 2.368/2.368, allocations: 390.3 MB / 402.8 MB, free: 6.676 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001254/0.001254, allocations: 180 kB / 496.1 MB, free: 12.86 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.589/1.589, allocations: 221.3 MB / 0.7915 GB, free: 5.398 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001011/0.001012, allocations: 84.03 kB / 0.9317 GB, free: 5.707 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.227e-05/3.23e-05, allocations: 4 kB / 1.079 GB, free: 140.4 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3185/0.3186, allocations: 143 MB / 1.219 GB, free: 13.37 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9752/1.294, allocations: 154.8 MB / 1.37 GB, free: 15.27 MB / 0.8386 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003205/1.294, allocations: 94.19 kB / 1.37 GB, free: 15.21 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 0.01821/1.312, allocations: 5.443 MB / 1.375 GB, free: 10.49 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.824e-06/1.313, allocations: 0 / 1.375 GB, free: 10.49 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.173e-05/1.313, allocations: 4 kB / 1.375 GB, free: 10.48 MB / 0.8386 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.0008531/1.313, allocations: 0.5297 MB / 1.376 GB, free: 9.914 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.693e-05/1.313, allocations: 8.031 kB / 1.376 GB, free: 9.906 MB / 0.8386 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.983e-05/1.314, allocations: 45.3 kB / 1.376 GB, free: 9.859 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.497e-05/1.314, allocations: 35.66 kB / 1.376 GB, free: 9.824 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004056/1.314, allocations: 298.4 kB / 1.376 GB, free: 9.516 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.521e-05/1.314, allocations: 18.78 kB / 1.376 GB, free: 9.504 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.104e-05/1.314, allocations: 19.56 kB / 1.376 GB, free: 9.488 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003819/1.315, allocations: 183.1 kB / 1.377 GB, free: 9.32 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.825e-05/1.315, allocations: 0 / 1.377 GB, free: 9.32 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.807e-05/1.315, allocations: 6.938 kB / 1.377 GB, free: 9.316 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.006e-05/1.315, allocations: 8 kB / 1.377 GB, free: 9.309 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001755/1.315, allocations: 82.88 kB / 1.377 GB, free: 9.246 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00124/1.316, allocations: 0.9038 MB / 1.378 GB, free: 8.352 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003116/1.316, allocations: 192.2 kB / 1.378 GB, free: 8.176 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001067/1.316, allocations: 64.3 kB / 1.378 GB, free: 8.121 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.51e-05/1.316, allocations: 7.984 kB / 1.378 GB, free: 8.113 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003257/1.317, allocations: 192.2 kB / 1.378 GB, free: 7.938 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=23): time 1.874e-06/1.317, allocations: 0 / 1.378 GB, free: 7.938 MB / 0.8386 GB Notification: Performance of matching and sorting (n=23): time 0.0004843/1.317, allocations: 244.6 kB / 1.378 GB, free: 7.734 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.388e-05/1.317, allocations: 118.5 kB / 1.378 GB, free: 7.598 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002217/1.318, allocations: 213.5 kB / 1.379 GB, free: 7.414 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 3.589e-05/1.318, allocations: 36.64 kB / 1.379 GB, free: 7.379 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001144/1.318, allocations: 151.7 kB / 1.379 GB, free: 7.258 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 5.152e-05/1.318, allocations: 57 kB / 1.379 GB, free: 7.211 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.202e-05/1.318, allocations: 6.375 kB / 1.379 GB, free: 7.211 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001776/1.318, allocations: 345.3 kB / 1.379 GB, free: 6.879 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001113/1.318, allocations: 58.12 kB / 1.379 GB, free: 6.836 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002241/1.318, allocations: 230.5 kB / 1.379 GB, free: 6.562 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001866/1.319, allocations: 121.8 kB / 1.379 GB, free: 6.457 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.777e-06/1.319, allocations: 0 / 1.379 GB, free: 6.457 MB / 0.8386 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0005107/1.319, allocations: 363.5 kB / 1.38 GB, free: 6.145 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 3.739e-05/1.319, allocations: 34.95 kB / 1.38 GB, free: 6.105 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.147e-05/1.319, allocations: 8 kB / 1.38 GB, free: 6.098 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.263e-05/1.319, allocations: 8 kB / 1.38 GB, free: 6.09 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002245/1.319, allocations: 79.61 kB / 1.38 GB, free: 6.016 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.726e-05/1.319, allocations: 11.94 kB / 1.38 GB, free: 6.004 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002392/1.32, allocations: 49.83 kB / 1.38 GB, free: 5.961 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.852e-05/1.32, allocations: 19.19 kB / 1.38 GB, free: 5.945 MB / 0.8386 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.0001251/1.32, allocations: 142.6 kB / 1.38 GB, free: 5.812 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.346e-05/1.32, allocations: 31.67 kB / 1.38 GB, free: 5.781 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.833e-05/1.32, allocations: 28.83 kB / 1.38 GB, free: 5.762 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.075e-06/1.32, allocations: 4 kB / 1.38 GB, free: 5.758 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.546e-06/1.32, allocations: 3.938 kB / 1.38 GB, free: 5.754 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.322e-06/1.32, allocations: 3.938 kB / 1.38 GB, free: 5.75 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003147/1.32, allocations: 269.2 kB / 1.38 GB, free: 5.469 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/1.32, allocations: 0 / 1.38 GB, free: 5.469 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001232/1.321, allocations: 20.08 kB / 1.381 GB, free: 5.449 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.66e-06/1.321, allocations: 7.938 kB / 1.381 GB, free: 5.441 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.946e-05/1.321, allocations: 18.69 kB / 1.381 GB, free: 5.426 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.703e-06/1.321, allocations: 0 / 1.381 GB, free: 5.426 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.323e-06/1.321, allocations: 160 / 1.381 GB, free: 5.426 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000596/1.321, allocations: 401.7 kB / 1.381 GB, free: 5.082 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 8.32e-05/1.321, allocations: 104.8 kB / 1.381 GB, free: 4.961 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.446e-05/1.321, allocations: 7.312 kB / 1.381 GB, free: 4.957 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001637/1.322, allocations: 26.91 kB / 1.381 GB, free: 4.934 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.212e-05/1.322, allocations: 22.97 kB / 1.381 GB, free: 4.914 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.276e-05/1.322, allocations: 14.98 kB / 1.381 GB, free: 4.902 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0001529/1.322, allocations: 161.5 kB / 1.381 GB, free: 4.766 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.4e-07/1.322, allocations: 0 / 1.381 GB, free: 4.766 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0004311/1.322, allocations: 89.98 kB / 1.381 GB, free: 4.688 MB / 0.8386 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.001386/1.324, allocations: 1.151 MB / 1.382 GB, free: 3.586 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0004457/1.324, allocations: 255.7 kB / 1.383 GB, free: 3.371 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/1.324, allocations: 0 / 1.383 GB, free: 3.371 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0001691/1.324, allocations: 90.3 kB / 1.383 GB, free: 3.305 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003386/1.325, allocations: 52.56 kB / 1.383 GB, free: 3.266 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001745/1.326, allocations: 0.6703 MB / 1.383 GB, free: 2.613 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004027/1.327, allocations: 0.7523 MB / 1.384 GB, free: 1.836 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0001607/1.327, allocations: 50.89 kB / 1.384 GB, free: 1.781 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001163/1.327, allocations: 70.66 kB / 1.384 GB, free: 1.75 MB / 0.8386 GB Notification: Performance of SimCode: time 6.61e-07/1.327, allocations: 0 / 1.384 GB, free: 1.75 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02093/1.348, allocations: 6.045 MB / 1.39 GB, free: 11.95 MB / 0.8542 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000237/1.348, allocations: 213.9 kB / 1.39 GB, free: 11.72 MB / 0.8542 GB Error: Error building simulator. Build log: clang -Os -fPIC -falign-functions -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 10.0.0-master/Resources/C-Sources" -c -o Buildings_latest_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_SingleUTubeBoundaryCondition.o Buildings_latest_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_SingleUTubeBoundaryCondition.c In file included from Buildings_latest_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_SingleUTubeBoundaryCondition.c:7: In file included from ./Buildings_latest_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 -falign-functions -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 10.0.0-master/Resources/C-Sources" -c -o Buildings_latest_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_SingleUTubeBoundaryCondition_functions.o Buildings_latest_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_SingleUTubeBoundaryCondition_functions.c In file included from Buildings_latest_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_SingleUTubeBoundaryCondition_functions.c:2: In file included from ./Buildings_latest_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_latest_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_SingleUTubeBoundaryCondition_functions.c:7: In file included from ./Buildings_latest_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_SingleUTubeBoundaryCondition_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_SingleUTubeBoundaryCondition_functions.o] Error 1