Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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 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: translateModel(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition") translateModel(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00134/0.00134, allocations: 107.2 kB / 16.35 MB, free: 5.879 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.001052/0.001052, allocations: 191 kB / 17.29 MB, free: 5.516 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.27/1.27, allocations: 205.1 MB / 223.2 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.792/1.792, allocations: 292.3 MB / 0.5496 GB, free: 17.52 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001407/0.001407, allocations: 59.91 kB / 0.6729 GB, free: 5.879 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1943/0.1957, allocations: 114.6 MB / 0.7848 GB, free: 3.207 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition): time 0.003578/0.1994, allocations: 2.337 MB / 0.7871 GB, free: 0.8477 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.3073/0.5066, allocations: 1.028 MB / 0.7881 GB, free: 46.5 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001812/0.5069, allocations: 9.625 kB / 0.7881 GB, free: 46.5 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 0.0002447/0.5071, allocations: 52.06 kB / 0.7881 GB, free: 46.5 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 0.0002063/0.5074, allocations: 79.08 kB / 0.7882 GB, free: 46.5 MB / 0.6544 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/Fluid/Geothermal/Boreholes/BaseClasses/temperatureDrop.mo:2:1-107:20:writable] Warning: Pure function 'Buildings.Fluid.Geothermal.Boreholes.BaseClasses.temperatureDrop' contains a call to impure function 'Buildings.Fluid.Geothermal.Boreholes.BaseClasses.exchangeValues'. Notification: Performance of NFTyping.typeClassSections: time 0.0005156/0.5079, allocations: 165.8 kB / 0.7884 GB, free: 46.5 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.0002587/0.5082, allocations: 287.3 kB / 0.7886 GB, free: 46.5 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001065/0.5083, allocations: 34.28 kB / 0.7887 GB, free: 46.5 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001543/0.5084, allocations: 111.8 kB / 0.7888 GB, free: 46.49 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001286/0.5086, allocations: 116.8 kB / 0.7889 GB, free: 46.46 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 3.512e-05/0.5086, allocations: 17.06 kB / 0.7889 GB, free: 46.46 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002733/0.5089, allocations: 115.3 kB / 0.789 GB, free: 46.46 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 4.532e-05/0.5089, allocations: 51.39 kB / 0.7891 GB, free: 46.46 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.0001111/0.5091, allocations: 119.6 kB / 0.7892 GB, free: 46.42 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0003391/0.5094, allocations: 314.3 kB / 0.7895 GB, free: 46.38 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.5094, allocations: 0 / 0.7895 GB, free: 46.38 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.553e-06/0.5094, allocations: 3.312 kB / 0.7895 GB, free: 46.38 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 1.158e-05/0.5095, allocations: 0 / 0.7895 GB, free: 46.38 MB / 0.6544 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.0008549/0.5103, allocations: 0.5817 MB / 0.79 GB, free: 45.91 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 3.111e-05/0.5104, allocations: 11.25 kB / 0.7901 GB, free: 45.91 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.726e-05/0.5104, allocations: 31.44 kB / 0.7901 GB, free: 45.9 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003438/0.5108, allocations: 288.1 kB / 0.7904 GB, free: 45.68 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.772e-05/0.5108, allocations: 23.61 kB / 0.7904 GB, free: 45.68 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.27e-05/0.5109, allocations: 19.67 kB / 0.7904 GB, free: 45.68 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003541/0.5112, allocations: 196.6 kB / 0.7906 GB, free: 45.6 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.65e-05/0.5112, allocations: 14.28 kB / 0.7906 GB, free: 45.59 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.218e-05/0.5113, allocations: 9.094 kB / 0.7906 GB, free: 45.59 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.985e-06/0.5113, allocations: 5.156 kB / 0.7906 GB, free: 45.59 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003178/0.5116, allocations: 106.7 kB / 0.7907 GB, free: 45.59 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007899/0.5124, allocations: 0.8665 MB / 0.7916 GB, free: 44.9 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004172/0.5128, allocations: 209 kB / 0.7918 GB, free: 44.83 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001937/0.513, allocations: 84.3 kB / 0.7918 GB, free: 44.81 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 1.27e-05/0.5131, allocations: 6.875 kB / 0.7919 GB, free: 44.81 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00039/0.5135, allocations: 198.2 kB / 0.792 GB, free: 44.74 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=23): time 1.643e-06/0.5135, allocations: 0 / 0.792 GB, free: 44.74 MB / 0.6544 GB Notification: Performance of matching and sorting (n=23): time 0.000762/0.5142, allocations: 357.2 kB / 0.7924 GB, free: 44.7 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.309e-05/0.5143, allocations: 120.6 kB / 0.7925 GB, free: 44.57 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001672/0.5145, allocations: 245.2 kB / 0.7927 GB, free: 44.46 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 2.821e-05/0.5145, allocations: 41.34 kB / 0.7928 GB, free: 44.43 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 6.062e-05/0.5146, allocations: 141.2 kB / 0.7929 GB, free: 44.34 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 4.452e-05/0.5146, allocations: 64.56 kB / 0.793 GB, free: 44.3 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.85e-05/0.5147, allocations: 77.81 kB / 0.793 GB, free: 44.28 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 5.18e-05/0.5148, allocations: 340.8 kB / 0.7934 GB, free: 43.97 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001943/0.515, allocations: 78.33 kB / 0.7934 GB, free: 43.97 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002297/0.5152, allocations: 266.6 kB / 0.7937 GB, free: 43.75 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004435/0.5157, allocations: 375.4 kB / 0.7941 GB, free: 43.5 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.739e-06/0.5157, allocations: 7.438 kB / 0.7941 GB, free: 43.49 MB / 0.6544 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0006397/0.5163, allocations: 395.2 kB / 0.7944 GB, free: 43.41 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 2.753e-05/0.5164, allocations: 32.61 kB / 0.7945 GB, free: 43.38 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.558e-06/0.5164, allocations: 9.031 kB / 0.7945 GB, free: 43.38 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.928e-05/0.5164, allocations: 6.812 kB / 0.7945 GB, free: 43.38 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001938/0.5166, allocations: 69.23 kB / 0.7945 GB, free: 43.38 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.112e-05/0.5166, allocations: 12.16 kB / 0.7946 GB, free: 43.38 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002341/0.5169, allocations: 58.08 kB / 0.7946 GB, free: 43.35 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.311e-05/0.5169, allocations: 19.91 kB / 0.7946 GB, free: 43.35 MB / 0.6544 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 (TBouSte.QAve_flow,$PRE.TBouSte.QAve_flow,TBouSte.UOld,$PRE.TBouSte.UOld,TBouSte.port.T,$PRE.TBouSte.port.T,TBouSte.iSam,$PRE.TBouSte.iSam,$whenCondition4,TBouCon.QAve_flow,$PRE.TBouCon.QAve_flow,TBouCon.UOld,$PRE.TBouCon.UOld,TBouCon.port.T,$PRE.TBouCon.port.T,TBouCon.iSam,$PRE.TBouCon.iSam,$whenCondition3,TBouPul.QAve_flow,$PRE.TBouPul.QAve_flow,TBouPul.UOld,$PRE.TBouPul.UOld,TBouPul.port.T,$PRE.TBouPul.port.T,TBouPul.iSam,$PRE.TBouPul.iSam,$whenCondition1,pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition2) * Number of discrete states: 0 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000106/0.517, allocations: 162.5 kB / 0.7948 GB, free: 43.23 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.724e-05/0.5171, allocations: 25.59 kB / 0.7948 GB, free: 43.22 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.715e-05/0.5171, allocations: 22.88 kB / 0.7948 GB, free: 43.22 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.715e-06/0.5171, allocations: 0 / 0.7948 GB, free: 43.22 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.021e-06/0.5171, allocations: 10.75 kB / 0.7948 GB, free: 43.21 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.919e-06/0.5171, allocations: 5.344 kB / 0.7948 GB, free: 43.21 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001962/0.5173, allocations: 265.7 kB / 0.7951 GB, free: 43.02 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.214e-06/0.5174, allocations: 0 / 0.7951 GB, free: 43.02 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001121/0.5175, allocations: 20.77 kB / 0.7951 GB, free: 43.02 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.057e-06/0.5175, allocations: 2.625 kB / 0.7951 GB, free: 43.02 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.186e-05/0.5175, allocations: 8.234 kB / 0.7951 GB, free: 43.02 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.525e-06/0.5175, allocations: 2.625 kB / 0.7951 GB, free: 43.02 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.5175, allocations: 1.5 kB / 0.7951 GB, free: 43.02 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007127/0.5182, allocations: 424.6 kB / 0.7955 GB, free: 42.92 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 4.102e-05/0.5183, allocations: 99.61 kB / 0.7956 GB, free: 42.81 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.479e-05/0.5183, allocations: 8.719 kB / 0.7956 GB, free: 42.81 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001576/0.5185, allocations: 15.94 kB / 0.7957 GB, free: 42.81 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.725e-05/0.5186, allocations: 27.97 kB / 0.7957 GB, free: 42.8 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.748e-05/0.5186, allocations: 10.58 kB / 0.7957 GB, free: 42.8 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.0001087/0.5187, allocations: 172.1 kB / 0.7959 GB, free: 42.72 MB / 0.6544 GB Notification: Performance of sort global known variables: time 7.61e-07/0.5187, allocations: 0 / 0.7959 GB, free: 42.72 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0003845/0.5191, allocations: 85.34 kB / 0.7959 GB, free: 42.71 MB / 0.6544 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) * Number of clocked states: 0 () * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002687/0.5194, allocations: 167.3 kB / 0.7961 GB, free: 42.61 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0005242/0.5199, allocations: 300.3 kB / 0.7964 GB, free: 42.54 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.5199, allocations: 0 / 0.7964 GB, free: 42.54 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0002267/0.5202, allocations: 113.4 kB / 0.7965 GB, free: 42.54 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003389/0.5205, allocations: 60.34 kB / 0.7966 GB, free: 42.54 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009126/0.5214, allocations: 0.5827 MB / 0.7971 GB, free: 42.19 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001413/0.5216, allocations: 0.7383 MB / 0.7978 GB, free: 41.49 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 0.0001235/0.5217, allocations: 58.98 kB / 0.7979 GB, free: 41.48 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.19e-05/0.5218, allocations: 24.59 kB / 0.7979 GB, free: 41.48 MB / 0.6544 GB Notification: Performance of SimCode: time 5.01e-07/0.5218, allocations: 0 / 0.7979 GB, free: 41.48 MB / 0.6544 GB Notification: Performance of Templates: time 0.008204/0.53, allocations: 3.963 MB / 0.8018 GB, free: 41.3 MB / 0.6544 GB make -j1 -f Buildings_8_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.makefile (rm -f Buildings_8_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.pipe ; mkfifo Buildings_8_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.pipe >> ../files/Buildings_8_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.sim & ./Buildings_8_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > Buildings_8_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.pipe 2>&1)