Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_1.6_Buildings.Fluid.HeatExchangers.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Using package Buildings with version 1.6 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo) Running command: translateModel(Buildings.Fluid.HeatExchangers.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Fluid.HeatExchangers.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition") translateModel(Buildings.Fluid.HeatExchangers.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Fluid.HeatExchangers.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo): time 0.526/0.526, allocations: 94.74 MB / 102 MB, free: 10.37 MB / 90.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.001537/0.001537, allocations: 180 kB / 125.3 MB, free: 11.99 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.515/1.515, allocations: 170.5 MB / 319 MB, free: 9.348 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001731/0.001731, allocations: 111 kB / 381 MB, free: 18.15 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 8.576e-06/8.616e-06, allocations: 224 / 448.6 MB, free: 2.09 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.146/0.146, allocations: 61.52 MB / 0.4981 GB, free: 4.484 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3755/0.5215, allocations: 97.43 MB / 0.5933 GB, free: 4.898 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002948/0.5219, allocations: 95.94 kB / 0.5934 GB, free: 4.805 MB / 410.7 MB Notification: Performance of FrontEnd: time 0.01605/0.538, allocations: 4.786 MB / 0.5981 GB, free: 100 kB / 410.7 MB Notification: Performance of Transformations before backend: time 1.272e-05/0.5381, allocations: 4 kB / 0.5981 GB, free: 96 kB / 410.7 MB 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.001003/0.5391, allocations: 0.6764 MB / 0.5987 GB, free: 15.34 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.495e-05/0.5391, allocations: 8.031 kB / 0.5987 GB, free: 15.33 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001058/0.5392, allocations: 31.62 kB / 0.5988 GB, free: 15.3 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005455/0.5398, allocations: 309.7 kB / 0.5991 GB, free: 14.96 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.711e-05/0.5398, allocations: 4 kB / 0.5991 GB, free: 14.95 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.642e-05/0.5399, allocations: 12 kB / 0.5991 GB, free: 14.94 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001835/0.5401, allocations: 60.22 kB / 0.5991 GB, free: 14.88 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002638/0.5403, allocations: 159.3 kB / 0.5993 GB, free: 14.7 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.449e-05/0.5404, allocations: 0 / 0.5993 GB, free: 14.7 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.414e-05/0.5404, allocations: 4 kB / 0.5993 GB, free: 14.7 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.693e-06/0.5404, allocations: 0 / 0.5993 GB, free: 14.7 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001183/0.5416, allocations: 0.8492 MB / 0.6001 GB, free: 13.79 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002084/0.5418, allocations: 123.9 kB / 0.6002 GB, free: 13.64 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001322/0.542, allocations: 74.64 kB / 0.6003 GB, free: 13.56 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.626e-05/0.542, allocations: 9.031 kB / 0.6003 GB, free: 13.55 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002668/0.5423, allocations: 224.6 kB / 0.6005 GB, free: 13.29 MB / 426.7 MB Notification: Performance of pre-optimization done (n=23): time 1.483e-06/0.5423, allocations: 0 / 0.6005 GB, free: 13.29 MB / 426.7 MB Notification: Performance of matching and sorting (n=23): time 0.0005596/0.5428, allocations: 193.5 kB / 0.6007 GB, free: 13.1 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001608/0.543, allocations: 280.9 kB / 0.601 GB, free: 12.76 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002264/0.5432, allocations: 200.2 kB / 0.6012 GB, free: 12.56 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 4.124e-05/0.5433, allocations: 39.77 kB / 0.6012 GB, free: 12.52 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.967e-05/0.5434, allocations: 112.4 kB / 0.6013 GB, free: 12.41 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.892e-05/0.5435, allocations: 59.2 kB / 0.6014 GB, free: 12.35 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.348e-05/0.5435, allocations: 4 kB / 0.6014 GB, free: 12.34 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001561/0.5436, allocations: 338.8 kB / 0.6017 GB, free: 12 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001145/0.5438, allocations: 52.38 kB / 0.6017 GB, free: 11.95 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001984/0.544, allocations: 171 kB / 0.6019 GB, free: 11.73 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001588/0.5441, allocations: 77.42 kB / 0.602 GB, free: 11.66 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.499e-06/0.5441, allocations: 8 kB / 0.602 GB, free: 11.65 MB / 426.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0004628/0.5446, allocations: 260.9 kB / 0.6022 GB, free: 11.39 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.625e-05/0.5446, allocations: 7.984 kB / 0.6022 GB, free: 11.38 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.946e-06/0.5447, allocations: 4 kB / 0.6022 GB, free: 11.38 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.026e-05/0.5447, allocations: 4.438 kB / 0.6023 GB, free: 11.38 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000218/0.5449, allocations: 56.98 kB / 0.6023 GB, free: 11.32 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.579e-05/0.5449, allocations: 8.609 kB / 0.6023 GB, free: 11.31 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002701/0.5452, allocations: 44.86 kB / 0.6024 GB, free: 11.27 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.542e-05/0.5452, allocations: 12 kB / 0.6024 GB, free: 11.25 MB / 426.7 MB Warning: Assuming fixed start value for the following 6 variables: TBouPul.port.T:DISCRETE(flow=false min = 0.0 start = 288.15 unit = "K" fixed = false nominal = 300.0 ) "Port temperature" type: Real TBouPul.QAve_flow:DISCRETE(unit = "W" fixed = false ) "Average heat flux over a time period" type: Real TBouSte.port.T:DISCRETE(flow=false min = 0.0 start = 288.15 unit = "K" fixed = false nominal = 300.0 ) "Port temperature" type: Real TBouSte.QAve_flow:DISCRETE(unit = "W" fixed = false ) "Average heat flux over a time period" type: Real TBouCon.port.T:DISCRETE(flow=false min = 0.0 start = 288.15 unit = "K" fixed = false nominal = 300.0 ) "Port temperature" type: Real TBouCon.QAve_flow:DISCRETE(unit = "W" fixed = false ) "Average heat flux over a time period" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 32 ($PRE.TBouPul.port.T,TBouPul.port.T,$PRE.TBouPul.UOld,TBouPul.UOld,$PRE.TBouPul.iSam,TBouPul.iSam,$PRE.TBouPul.QAve_flow,TBouPul.QAve_flow,$whenCondition4,$PRE.TBouSte.port.T,TBouSte.port.T,$PRE.TBouSte.UOld,TBouSte.UOld,$PRE.TBouSte.iSam,TBouSte.iSam,$PRE.TBouSte.QAve_flow,TBouSte.QAve_flow,$whenCondition2,$PRE.TBouCon.port.T,TBouCon.port.T,$PRE.TBouCon.UOld,TBouCon.UOld,$PRE.TBouCon.iSam,TBouCon.iSam,$PRE.TBouCon.QAve_flow,TBouCon.QAve_flow,$whenCondition1,$whenCondition3,$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 (37): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 7 * 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.0003026/0.5456, allocations: 246.9 kB / 0.6026 GB, free: 10.99 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.927e-05/0.5456, allocations: 31.62 kB / 0.6026 GB, free: 10.96 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.277e-05/0.5457, allocations: 28.33 kB / 0.6027 GB, free: 10.93 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.749e-06/0.5457, allocations: 3.703 kB / 0.6027 GB, free: 10.93 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.465e-06/0.5457, allocations: 4 kB / 0.6027 GB, free: 10.93 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.942e-06/0.5457, allocations: 0 / 0.6027 GB, free: 10.93 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003176/0.5461, allocations: 250 kB / 0.6029 GB, free: 10.65 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.914e-06/0.5461, allocations: 0 / 0.6029 GB, free: 10.65 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001321/0.5462, allocations: 23.98 kB / 0.6029 GB, free: 10.62 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.681e-06/0.5462, allocations: 4 kB / 0.6029 GB, free: 10.62 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.993e-05/0.5463, allocations: 8 kB / 0.6029 GB, free: 10.61 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.964e-06/0.5463, allocations: 0 / 0.6029 GB, free: 10.61 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.751e-06/0.5463, allocations: 5.344 kB / 0.6029 GB, free: 10.61 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000688/0.547, allocations: 379.3 kB / 0.6033 GB, free: 10.21 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.726e-05/0.5471, allocations: 100.8 kB / 0.6034 GB, free: 10.09 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.106e-05/0.5471, allocations: 11.98 kB / 0.6034 GB, free: 10.08 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000195/0.5473, allocations: 27.98 kB / 0.6034 GB, free: 10.05 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.43e-05/0.5474, allocations: 15.97 kB / 0.6035 GB, free: 10.04 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.575e-05/0.5475, allocations: 12 kB / 0.6035 GB, free: 10.02 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.0001434/0.5476, allocations: 148.5 kB / 0.6036 GB, free: 9.875 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0004491/0.5481, allocations: 91.83 kB / 0.6037 GB, free: 9.785 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 3 (TBouPul.U,TBouSte.U,TBouCon.U) * Number of discrete variables: 18 ($whenCondition3,$whenCondition4,TBouPul.QAve_flow,TBouPul.port.T,TBouPul.UOld,TBouPul.iSam,pulse.T_start,pulse.count,$whenCondition2,TBouSte.QAve_flow,TBouSte.port.T,TBouSte.UOld,TBouSte.iSam,$whenCondition1,TBouCon.QAve_flow,TBouCon.port.T,TBouCon.UOld,TBouCon.iSam) * Number of discrete states: 16 (TBouCon.iSam,TBouCon.port.T,TBouCon.UOld,TBouCon.QAve_flow,$whenCondition1,TBouSte.iSam,TBouSte.port.T,TBouSte.UOld,TBouSte.QAve_flow,$whenCondition2,pulse.count,TBouPul.iSam,TBouPul.port.T,TBouPul.UOld,TBouPul.QAve_flow,$whenCondition4) * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 2 * 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.0004501/0.5485, allocations: 184.9 kB / 0.6039 GB, free: 9.605 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0004498/0.549, allocations: 375.7 kB / 0.6042 GB, free: 9.199 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.549, allocations: 0 / 0.6042 GB, free: 9.199 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002611/0.5493, allocations: 221.1 kB / 0.6044 GB, free: 8.965 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003587/0.5496, allocations: 49.27 kB / 0.6045 GB, free: 8.922 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001459/0.5511, allocations: 0.5872 MB / 0.6051 GB, free: 8.332 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003893/0.5515, allocations: 0.7749 MB / 0.6058 GB, free: 7.527 MB / 426.7 MB Notification: Performance of SimCode: time 2.3e-07/0.5515, allocations: 0 / 0.6058 GB, free: 7.527 MB / 426.7 MB Notification: Performance of Templates: time 0.009403/0.5609, allocations: 3.833 MB / 0.6096 GB, free: 3.84 MB / 426.7 MB make -j1 -f Buildings_1.6_Buildings.Fluid.HeatExchangers.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.makefile (rm -f Buildings_1.6_Buildings.Fluid.HeatExchangers.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.pipe ; mkfifo Buildings_1.6_Buildings.Fluid.HeatExchangers.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Fluid.HeatExchangers.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.pipe >> ../files/Buildings_1.6_Buildings.Fluid.HeatExchangers.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.sim & ./Buildings_1.6_Buildings.Fluid.HeatExchangers.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Fluid.HeatExchangers.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.pipe 2>&1)