Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.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: translateModel(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|seg.port_a1.m_flow|seg.TBouCon.port.T|seg.soi.T.1.|seg.soi.T.2.|seg.soi.T.3.|seg.soi.T.4.|seg.soi.T.5.|seg.soi.T.6.|seg.soi.T.7.|seg.soi.T.8.|seg.soi.T.9.",fileNamePrefix="Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment") translateModel(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|seg.port_a1.m_flow|seg.TBouCon.port.T|seg.soi.T.1.|seg.soi.T.2.|seg.soi.T.3.|seg.soi.T.4.|seg.soi.T.5.|seg.soi.T.6.|seg.soi.T.7.|seg.soi.T.8.|seg.soi.T.9.",fileNamePrefix="Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment") [: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 10.0.0-master/package.mo): time 2.016/2.016, allocations: 390.4 MB / 397.7 MB, free: 15.51 MB / 318.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001016/0.001016, allocations: 189.2 kB / 490.8 MB, free: 6.453 MB / 398.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.332/1.332, allocations: 221.4 MB / 0.7863 GB, free: 1.844 MB / 0.545 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009288/0.0009288, allocations: 93.27 kB / 0.9264 GB, free: 2.406 MB / 0.6856 GB Notification: Performance of FrontEnd - loaded program: time 7.063e-06/7.103e-06, allocations: 0 / 1.072 GB, free: 186.4 MB / 0.7637 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2645/0.2645, allocations: 143 MB / 1.212 GB, free: 43.93 MB / 0.7637 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8943/1.159, allocations: 442.4 MB / 1.644 GB, free: 12.17 MB / 1.061 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000305/1.159, allocations: 102.2 kB / 1.644 GB, free: 12.11 MB / 1.061 GB Notification: Performance of FrontEnd: time 2.545/3.705, allocations: 0.664 GB / 2.308 GB, free: 222 MB / 1.154 GB Notification: Performance of Transformations before backend: time 0.0002884/3.705, allocations: 43.17 kB / 2.308 GB, free: 222 MB / 1.154 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 274 * Number of variables: 274 Notification: Performance of Generate backend data structure: time 0.00704/3.712, allocations: 2.023 MB / 2.31 GB, free: 221.2 MB / 1.154 GB Notification: Performance of prepare preOptimizeDAE: time 4.697e-05/3.712, allocations: 11.56 kB / 2.31 GB, free: 221.2 MB / 1.154 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001356/3.713, allocations: 210.3 kB / 2.31 GB, free: 221.1 MB / 1.154 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0058/3.719, allocations: 2.092 MB / 2.312 GB, free: 220.7 MB / 1.154 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.02e-05/3.719, allocations: 34.38 kB / 2.312 GB, free: 220.7 MB / 1.154 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003765/3.72, allocations: 84.88 kB / 2.312 GB, free: 220.7 MB / 1.154 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001554/3.721, allocations: 0.8448 MB / 2.313 GB, free: 220.7 MB / 1.154 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001667/3.723, allocations: 1.043 MB / 2.314 GB, free: 220.6 MB / 1.154 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.67e-05/3.723, allocations: 7.516 kB / 2.314 GB, free: 220.5 MB / 1.154 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.774e-05/3.723, allocations: 7.5 kB / 2.314 GB, free: 220.5 MB / 1.154 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.715e-05/3.723, allocations: 33.44 kB / 2.314 GB, free: 220.5 MB / 1.154 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007723/3.731, allocations: 6.548 MB / 2.32 GB, free: 217.8 MB / 1.154 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001074/3.732, allocations: 0.7424 MB / 2.321 GB, free: 217.7 MB / 1.154 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005598/3.733, allocations: 436.5 kB / 2.322 GB, free: 217.7 MB / 1.154 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005539/3.733, allocations: 0.6059 MB / 2.322 GB, free: 217.1 MB / 1.154 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005902/3.734, allocations: 413.1 kB / 2.323 GB, free: 217 MB / 1.154 GB Notification: Performance of pre-optimization done (n=78): time 3.437e-06/3.734, allocations: 2.938 kB / 2.323 GB, free: 217 MB / 1.154 GB Notification: Performance of matching and sorting (n=82): time 0.005714/3.739, allocations: 2.229 MB / 2.325 GB, free: 216.4 MB / 1.154 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.828e-05/3.74, allocations: 66.28 kB / 2.325 GB, free: 216.3 MB / 1.154 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001479/3.741, allocations: 1.071 MB / 2.326 GB, free: 216.1 MB / 1.154 GB Notification: Performance of collectPreVariables (initialization): time 0.0001029/3.741, allocations: 28.77 kB / 2.326 GB, free: 216.1 MB / 1.154 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004704/3.742, allocations: 498.9 kB / 2.326 GB, free: 215.8 MB / 1.154 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003094/3.742, allocations: 285.2 kB / 2.327 GB, free: 215.7 MB / 1.154 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.75e-05/3.742, allocations: 0 / 2.327 GB, free: 215.7 MB / 1.154 GB Notification: Performance of setup shared object (initialization): time 0.0001163/3.742, allocations: 356.7 kB / 2.327 GB, free: 215.4 MB / 1.154 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008411/3.743, allocations: 0.5431 MB / 2.327 GB, free: 215.3 MB / 1.154 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009586/3.744, allocations: 0.8097 MB / 2.328 GB, free: 215.1 MB / 1.154 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001388/3.745, allocations: 0.7131 MB / 2.329 GB, free: 215 MB / 1.154 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/3.745, allocations: 3.656 kB / 2.329 GB, free: 215 MB / 1.154 GB Notification: Performance of matching and sorting (n=170) (initialization): time 0.002948/3.748, allocations: 1.705 MB / 2.331 GB, free: 214.9 MB / 1.154 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005088/3.749, allocations: 2.289 MB / 2.333 GB, free: 212.5 MB / 1.154 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.524e-05/3.749, allocations: 14.19 kB / 2.333 GB, free: 212.5 MB / 1.154 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006347/3.749, allocations: 236 kB / 2.333 GB, free: 212.5 MB / 1.154 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001405/3.751, allocations: 264.8 kB / 2.333 GB, free: 212.5 MB / 1.154 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001333/3.752, allocations: 1.636 MB / 2.335 GB, free: 211.4 MB / 1.154 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002462/3.755, allocations: 117 kB / 2.335 GB, free: 211.4 MB / 1.154 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001333/3.755, allocations: 62.16 kB / 2.335 GB, free: 211.4 MB / 1.154 GB Notification: Performance of prepare postOptimizeDAE: time 8.576e-06/3.755, allocations: 0 / 2.335 GB, free: 211.4 MB / 1.154 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002532/3.757, allocations: 1.538 MB / 2.337 GB, free: 211.3 MB / 1.154 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.549e-05/3.757, allocations: 7.875 kB / 2.337 GB, free: 211.3 MB / 1.154 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005218/3.758, allocations: 225.4 kB / 2.337 GB, free: 211.3 MB / 1.154 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001147/3.759, allocations: 253.4 kB / 2.337 GB, free: 211.3 MB / 1.154 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009391/3.76, allocations: 1.035 MB / 2.338 GB, free: 210.8 MB / 1.154 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002388/3.762, allocations: 121.8 kB / 2.338 GB, free: 210.8 MB / 1.154 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001177/3.763, allocations: 58.02 kB / 2.338 GB, free: 210.8 MB / 1.154 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: seg.pipFil.Rgg.Q_flow:VARIABLE(unit = "W" protected = true ) "Heat flow rate from port_a -> port_b" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 26 * Number of states: 0 () * Number of discrete variables: 9 ($PRE.seg.TBouCon.iSam,seg.TBouCon.iSam,$PRE.seg.TBouCon.UOld,seg.TBouCon.UOld,$PRE.seg.TBouCon.QAve_flow,seg.TBouCon.QAve_flow,$whenCondition1,$PRE.seg.TBouCon.port.T,seg.TBouCon.port.T) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (140): * Single equations (assignments): 137 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 25} Notification: Performance of prepare postOptimizeDAE: time 0.0004207/3.763, allocations: 142.4 kB / 2.338 GB, free: 210.7 MB / 1.154 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002063/3.763, allocations: 131.1 kB / 2.338 GB, free: 210.6 MB / 1.154 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001967/3.765, allocations: 1.011 MB / 2.339 GB, free: 210.5 MB / 1.154 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.255e-05/3.765, allocations: 11.34 kB / 2.339 GB, free: 210.5 MB / 1.154 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.208e-05/3.765, allocations: 3.281 kB / 2.339 GB, free: 210.5 MB / 1.154 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001318/3.767, allocations: 0.9137 MB / 2.34 GB, free: 210.3 MB / 1.154 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003957/3.771, allocations: 2.695 MB / 2.343 GB, free: 209.9 MB / 1.154 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.859e-06/3.771, allocations: 0 / 2.343 GB, free: 209.9 MB / 1.154 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007104/3.771, allocations: 145.3 kB / 2.343 GB, free: 209.9 MB / 1.154 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002696/3.772, allocations: 111.3 kB / 2.343 GB, free: 209.8 MB / 1.154 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.852e-05/3.772, allocations: 19.16 kB / 2.343 GB, free: 209.8 MB / 1.154 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002954/3.775, allocations: 5.049 MB / 2.348 GB, free: 205.4 MB / 1.154 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.629e-06/3.775, allocations: 3.938 kB / 2.348 GB, free: 205.4 MB / 1.154 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002486/3.777, allocations: 1.589 MB / 2.35 GB, free: 205.1 MB / 1.154 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007744/3.778, allocations: 353.9 kB / 2.35 GB, free: 204.9 MB / 1.154 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001951/3.778, allocations: 12.23 kB / 2.35 GB, free: 204.9 MB / 1.154 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001281/3.779, allocations: 75.55 kB / 2.35 GB, free: 204.9 MB / 1.154 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.45e-05/3.779, allocations: 44.27 kB / 2.35 GB, free: 204.9 MB / 1.154 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.669e-05/3.78, allocations: 31.14 kB / 2.35 GB, free: 204.9 MB / 1.154 GB Notification: Performance of sort global known variables: time 0.001207/3.781, allocations: 0.7911 MB / 2.351 GB, free: 204.8 MB / 1.154 GB Notification: Performance of remove unused functions: time 0.003773/3.785, allocations: 1.083 MB / 2.352 GB, free: 204.7 MB / 1.154 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 14 (seg.port_b1.h_outflow,seg.port_a2.h_outflow,seg.pipFil.capFil1.T,seg.pipFil.capFil2.T,seg.soi.T[1],seg.soi.T[2],seg.soi.T[3],seg.soi.T[4],seg.soi.T[5],seg.soi.T[6],seg.soi.T[7],seg.soi.T[8],seg.soi.T[9],seg.TBouCon.U) * Number of discrete variables: 5 ($whenCondition1,seg.TBouCon.QAve_flow,seg.TBouCon.port.T,seg.TBouCon.UOld,seg.TBouCon.iSam) * Number of discrete states: 2 (seg.TBouCon.iSam,seg.TBouCon.UOld) * Top-level inputs: 0 Notification: Strong component statistics for simulation (73): * Single equations (assignments): 63 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 4 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 3,(1,100.0%) 3,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001665/3.786, allocations: 0.8159 MB / 2.353 GB, free: 204.5 MB / 1.154 GB Notification: Performance of simCode: created initialization part: time 0.003533/3.79, allocations: 2.076 MB / 2.355 GB, free: 204.4 MB / 1.154 GB Notification: Performance of simCode: created event and clocks part: time 3.897e-06/3.79, allocations: 0 / 2.355 GB, free: 204.4 MB / 1.154 GB Notification: Performance of simCode: created simulation system equations: time 0.0008722/3.791, allocations: 0.7403 MB / 2.356 GB, free: 204.1 MB / 1.154 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003043/3.794, allocations: 0.6055 MB / 2.356 GB, free: 204.1 MB / 1.154 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005455/3.799, allocations: 2.991 MB / 2.359 GB, free: 203.5 MB / 1.154 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001051/3.8, allocations: 1.447 MB / 2.361 GB, free: 202.8 MB / 1.154 GB Notification: Performance of SimCode: time 7.81e-07/3.8, allocations: 0 / 2.361 GB, free: 202.8 MB / 1.154 GB Notification: Performance of Templates: time 0.06666/3.867, allocations: 40.37 MB / 2.4 GB, free: 201.3 MB / 1.154 GB make -j1 -f Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.makefile (rm -f Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.pipe >> ../files/Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.sim & ./Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_BoreholeSegment.csv","../files/Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches