Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) 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.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/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_maint.7.0.x_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_maint.7.0.x_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 7.0.3-maint.7.0.x/package.mo): time 1.199/1.199, allocations: 249.4 MB / 256.7 MB, free: 6.988 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.001079/0.001079, allocations: 173.3 kB / 316 MB, free: 3.531 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.054/1.054, allocations: 205.1 MB / 0.5667 GB, free: 15.47 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.0008073/0.0008072, allocations: 86.16 kB / 0.671 GB, free: 4.594 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 6.252e-06/6.272e-06, allocations: 0 / 0.7807 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1435/0.1435, allocations: 106.3 MB / 0.8846 GB, free: 12.62 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9224/1.066, allocations: 422.6 MB / 1.297 GB, free: 323.2 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002689/1.066, allocations: 108.9 kB / 1.297 GB, free: 323.2 MB / 0.8698 GB Notification: Performance of FrontEnd: time 1.376/2.443, allocations: 0.6308 GB / 1.928 GB, free: 15.49 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 0.0001237/2.443, allocations: 39.91 kB / 1.928 GB, free: 15.46 MB / 0.8698 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.004081/2.447, allocations: 2.027 MB / 1.93 GB, free: 13.39 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 3.617e-05/2.447, allocations: 8.031 kB / 1.93 GB, free: 13.38 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004672/2.447, allocations: 209.6 kB / 1.93 GB, free: 13.18 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003708/2.451, allocations: 2.063 MB / 1.932 GB, free: 11.09 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.311e-05/2.451, allocations: 32 kB / 1.932 GB, free: 11.06 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001808/2.451, allocations: 83.91 kB / 1.933 GB, free: 10.98 MB / 0.8698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001329/2.453, allocations: 0.8478 MB / 1.933 GB, free: 10.12 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001409/2.454, allocations: 1.032 MB / 1.934 GB, free: 9.035 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.232e-05/2.454, allocations: 3.938 kB / 1.934 GB, free: 9.031 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.001e-05/2.454, allocations: 8 kB / 1.934 GB, free: 9.023 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.071e-05/2.454, allocations: 31.94 kB / 1.934 GB, free: 8.992 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006/2.46, allocations: 6.545 MB / 1.941 GB, free: 2.148 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000981/2.461, allocations: 0.7361 MB / 1.942 GB, free: 1.414 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005548/2.462, allocations: 445.3 kB / 1.942 GB, free: 0.9727 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004755/2.462, allocations: 0.6005 MB / 1.943 GB, free: 248 kB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.2755/2.738, allocations: 413.4 kB / 1.943 GB, free: 232.3 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=78): time 6.773e-06/2.738, allocations: 3.812 kB / 1.943 GB, free: 232.3 MB / 0.8698 GB Notification: Performance of matching and sorting (n=82): time 0.006097/2.744, allocations: 2.226 MB / 1.945 GB, free: 231.9 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.874e-05/2.744, allocations: 67.31 kB / 1.945 GB, free: 231.8 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001327/2.745, allocations: 1.061 MB / 1.946 GB, free: 231.6 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 0.000114/2.746, allocations: 25.7 kB / 1.946 GB, free: 231.6 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004098/2.746, allocations: 0.4887 MB / 1.947 GB, free: 231.4 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002454/2.746, allocations: 289.2 kB / 1.947 GB, free: 231.2 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.608e-05/2.746, allocations: 2.719 kB / 1.947 GB, free: 231.2 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 7.66e-05/2.746, allocations: 355.3 kB / 1.947 GB, free: 230.9 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00074/2.747, allocations: 0.5391 MB / 1.948 GB, free: 230.9 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008062/2.748, allocations: 0.8266 MB / 1.949 GB, free: 230.6 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001182/2.749, allocations: 0.7167 MB / 1.949 GB, free: 230.6 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.937e-06/2.749, allocations: 3.844 kB / 1.949 GB, free: 230.6 MB / 0.8698 GB Notification: Performance of matching and sorting (n=170) (initialization): time 0.002484/2.752, allocations: 1.711 MB / 1.951 GB, free: 230.5 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003533/2.752, allocations: 2.278 MB / 1.953 GB, free: 228.1 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.882e-05/2.752, allocations: 6.469 kB / 1.953 GB, free: 228.1 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005545/2.753, allocations: 222.7 kB / 1.953 GB, free: 228.1 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001314/2.754, allocations: 267.1 kB / 1.954 GB, free: 228.1 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001151/2.755, allocations: 1.635 MB / 1.955 GB, free: 227 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002392/2.757, allocations: 120.4 kB / 1.955 GB, free: 227 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001178/2.758, allocations: 61.55 kB / 1.956 GB, free: 227 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 7.875e-06/2.758, allocations: 3.406 kB / 1.956 GB, free: 227 MB / 0.8698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002369/2.76, allocations: 1.531 MB / 1.957 GB, free: 226.9 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.485e-05/2.76, allocations: 14.64 kB / 1.957 GB, free: 226.9 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004842/2.761, allocations: 228.6 kB / 1.957 GB, free: 226.9 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001144/2.762, allocations: 249.5 kB / 1.957 GB, free: 226.9 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000851/2.763, allocations: 1.037 MB / 1.958 GB, free: 226.4 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002338/2.765, allocations: 119.2 kB / 1.959 GB, free: 226.4 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001061/2.765, allocations: 59.78 kB / 1.959 GB, free: 226.4 MB / 0.8698 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.0003063/2.765, allocations: 142.7 kB / 1.959 GB, free: 226.3 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001882/2.766, allocations: 130.3 kB / 1.959 GB, free: 226.2 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0018/2.767, allocations: 1.01 MB / 1.96 GB, free: 226.1 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.158e-05/2.767, allocations: 10.84 kB / 1.96 GB, free: 226.1 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.765e-06/2.767, allocations: 0 / 1.96 GB, free: 226.1 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001253/2.769, allocations: 0.9126 MB / 1.961 GB, free: 225.9 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003574/2.772, allocations: 2.674 MB / 1.963 GB, free: 225.5 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.739e-06/2.772, allocations: 0 / 1.963 GB, free: 225.5 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006807/2.773, allocations: 139.6 kB / 1.964 GB, free: 225.5 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002491/2.773, allocations: 122.2 kB / 1.964 GB, free: 225.5 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.556e-05/2.773, allocations: 22.31 kB / 1.964 GB, free: 225.5 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002726/2.776, allocations: 5.06 MB / 1.969 GB, free: 221.1 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.507e-06/2.776, allocations: 3.938 kB / 1.969 GB, free: 221.1 MB / 0.8698 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002079/2.778, allocations: 1.586 MB / 1.97 GB, free: 220.7 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006164/2.779, allocations: 355.3 kB / 1.971 GB, free: 220.5 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000194/2.779, allocations: 14.23 kB / 1.971 GB, free: 220.5 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001241/2.78, allocations: 77.22 kB / 1.971 GB, free: 220.5 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.747e-05/2.78, allocations: 54.47 kB / 1.971 GB, free: 220.5 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.561e-05/2.78, allocations: 26.11 kB / 1.971 GB, free: 220.5 MB / 0.8698 GB Notification: Performance of sort global known variables: time 0.0009702/2.781, allocations: 0.7832 MB / 1.971 GB, free: 220.4 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.003232/2.785, allocations: 1.074 MB / 1.972 GB, free: 220.4 MB / 0.8698 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.001408/2.786, allocations: 0.8093 MB / 1.973 GB, free: 220.3 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.003196/2.789, allocations: 2.074 MB / 1.975 GB, free: 220.2 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 3.567e-06/2.789, allocations: 3.719 kB / 1.975 GB, free: 220.2 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.0008059/2.79, allocations: 0.7346 MB / 1.976 GB, free: 219.9 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002691/2.793, allocations: 0.6084 MB / 1.977 GB, free: 219.9 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0048/2.797, allocations: 2.993 MB / 1.98 GB, free: 219.3 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009531/2.798, allocations: 1.434 MB / 1.981 GB, free: 218.6 MB / 0.8698 GB Notification: Performance of SimCode: time 8.21e-07/2.798, allocations: 0 / 1.981 GB, free: 218.6 MB / 0.8698 GB Notification: Performance of Templates: time 0.05038/2.849, allocations: 40.38 MB / 2.02 GB, free: 218 MB / 0.8698 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_BoreholeSegment.csv","../files/Buildings_maint.7.0.x_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches