Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.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_9_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_9_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 9.1.1-maint.9.1.x/package.mo): time 2.085/2.085, allocations: 387.2 MB / 394.5 MB, free: 13.61 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.001151/0.001152, allocations: 181.3 kB / 487 MB, free: 5.352 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.284/1.284, allocations: 221.3 MB / 0.7819 GB, free: 1.344 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001058/0.001058, allocations: 101.6 kB / 0.9213 GB, free: 2.594 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 8.096e-06/8.126e-06, allocations: 4 kB / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2597/0.2597, allocations: 142.3 MB / 1.205 GB, free: 26.21 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9406/1.2, allocations: 441.6 MB / 1.636 GB, free: 14.24 MB / 1.073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003256/1.201, allocations: 106 kB / 1.637 GB, free: 14.18 MB / 1.073 GB Notification: Performance of FrontEnd: time 2.269/3.47, allocations: 0.664 GB / 2.301 GB, free: 242.6 MB / 1.135 GB Notification: Performance of Transformations before backend: time 0.0001638/3.47, allocations: 41.23 kB / 2.301 GB, free: 242.6 MB / 1.135 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.005904/3.476, allocations: 2.027 MB / 2.303 GB, free: 241.7 MB / 1.135 GB Notification: Performance of prepare preOptimizeDAE: time 5.344e-05/3.476, allocations: 12.86 kB / 2.303 GB, free: 241.7 MB / 1.135 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008625/3.477, allocations: 209.3 kB / 2.303 GB, free: 241.6 MB / 1.135 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005036/3.482, allocations: 2.086 MB / 2.305 GB, free: 241.2 MB / 1.135 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.476e-05/3.482, allocations: 34.39 kB / 2.305 GB, free: 241.2 MB / 1.135 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002145/3.482, allocations: 85.59 kB / 2.305 GB, free: 241.2 MB / 1.135 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001617/3.484, allocations: 0.8429 MB / 2.306 GB, free: 241.2 MB / 1.135 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00174/3.486, allocations: 1.043 MB / 2.307 GB, free: 241.1 MB / 1.135 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.455e-05/3.486, allocations: 10.06 kB / 2.307 GB, free: 241.1 MB / 1.135 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.771e-05/3.486, allocations: 4.578 kB / 2.307 GB, free: 241.1 MB / 1.135 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.662e-05/3.486, allocations: 31.03 kB / 2.307 GB, free: 241.1 MB / 1.135 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009079/3.495, allocations: 6.552 MB / 2.313 GB, free: 237.5 MB / 1.135 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001174/3.496, allocations: 0.7408 MB / 2.314 GB, free: 237.2 MB / 1.135 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005829/3.497, allocations: 443.6 kB / 2.314 GB, free: 237.1 MB / 1.135 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000539/3.497, allocations: 0.6049 MB / 2.315 GB, free: 236.4 MB / 1.135 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005947/3.498, allocations: 412.1 kB / 2.315 GB, free: 236.2 MB / 1.135 GB Notification: Performance of pre-optimization done (n=78): time 3.267e-06/3.498, allocations: 0 / 2.315 GB, free: 236.2 MB / 1.135 GB Notification: Performance of matching and sorting (n=82): time 0.006919/3.505, allocations: 2.234 MB / 2.318 GB, free: 235.1 MB / 1.135 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.2e-05/3.505, allocations: 64.62 kB / 2.318 GB, free: 235 MB / 1.135 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001585/3.506, allocations: 1.073 MB / 2.319 GB, free: 234.5 MB / 1.135 GB Notification: Performance of collectPreVariables (initialization): time 0.0001945/3.507, allocations: 32.78 kB / 2.319 GB, free: 234.5 MB / 1.135 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005038/3.507, allocations: 497.6 kB / 2.319 GB, free: 234.1 MB / 1.135 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003405/3.507, allocations: 281.6 kB / 2.319 GB, free: 233.9 MB / 1.135 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.136e-05/3.508, allocations: 2.812 kB / 2.319 GB, free: 233.9 MB / 1.135 GB Notification: Performance of setup shared object (initialization): time 0.0001002/3.508, allocations: 363.7 kB / 2.32 GB, free: 233.6 MB / 1.135 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008272/3.508, allocations: 0.5279 MB / 2.32 GB, free: 233.4 MB / 1.135 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008942/3.509, allocations: 0.8192 MB / 2.321 GB, free: 232.8 MB / 1.135 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001386/3.511, allocations: 0.7127 MB / 2.322 GB, free: 232.6 MB / 1.135 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.017e-06/3.511, allocations: 0 / 2.322 GB, free: 232.6 MB / 1.135 GB Notification: Performance of matching and sorting (n=170) (initialization): time 0.00363/3.514, allocations: 1.702 MB / 2.323 GB, free: 231.9 MB / 1.135 GB Notification: Performance of prepare postOptimizeDAE: time 0.000504/3.515, allocations: 2.292 MB / 2.326 GB, free: 229.5 MB / 1.135 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.678e-05/3.515, allocations: 11.47 kB / 2.326 GB, free: 229.5 MB / 1.135 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007093/3.516, allocations: 221 kB / 2.326 GB, free: 229.5 MB / 1.135 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001508/3.517, allocations: 269.1 kB / 2.326 GB, free: 229.5 MB / 1.135 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001414/3.519, allocations: 1.633 MB / 2.328 GB, free: 228.1 MB / 1.135 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002739/3.521, allocations: 114.7 kB / 2.328 GB, free: 228.1 MB / 1.135 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001421/3.522, allocations: 59.36 kB / 2.328 GB, free: 228.1 MB / 1.135 GB Notification: Performance of prepare postOptimizeDAE: time 1.074e-05/3.522, allocations: 7.188 kB / 2.328 GB, free: 228.1 MB / 1.135 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003018/3.525, allocations: 1.538 MB / 2.329 GB, free: 227.6 MB / 1.135 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.087e-05/3.525, allocations: 11.45 kB / 2.329 GB, free: 227.6 MB / 1.135 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000555/3.525, allocations: 225.9 kB / 2.33 GB, free: 227.5 MB / 1.135 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001279/3.526, allocations: 249.5 kB / 2.33 GB, free: 227.5 MB / 1.135 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001167/3.528, allocations: 1.038 MB / 2.331 GB, free: 226.8 MB / 1.135 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002637/3.53, allocations: 117.2 kB / 2.331 GB, free: 226.7 MB / 1.135 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001486/3.53, allocations: 57.45 kB / 2.331 GB, free: 226.7 MB / 1.135 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.0004464/3.531, allocations: 137.8 kB / 2.331 GB, free: 226.6 MB / 1.135 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002991/3.531, allocations: 141.9 kB / 2.331 GB, free: 226.5 MB / 1.135 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002368/3.534, allocations: 1.001 MB / 2.332 GB, free: 226.1 MB / 1.135 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.458e-05/3.534, allocations: 7.812 kB / 2.332 GB, free: 226.1 MB / 1.135 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.909e-06/3.534, allocations: 5.344 kB / 2.332 GB, free: 226.1 MB / 1.135 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001554/3.535, allocations: 0.9147 MB / 2.333 GB, free: 225.7 MB / 1.135 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00483/3.54, allocations: 2.696 MB / 2.336 GB, free: 224.4 MB / 1.135 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.86e-06/3.54, allocations: 1.219 kB / 2.336 GB, free: 224.4 MB / 1.135 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007694/3.541, allocations: 139.3 kB / 2.336 GB, free: 224.4 MB / 1.135 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002968/3.541, allocations: 111.6 kB / 2.336 GB, free: 224.4 MB / 1.135 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.666e-05/3.541, allocations: 22.31 kB / 2.336 GB, free: 224.4 MB / 1.135 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003189/3.544, allocations: 5.053 MB / 2.341 GB, free: 219.6 MB / 1.135 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.819e-06/3.544, allocations: 2.438 kB / 2.341 GB, free: 219.6 MB / 1.135 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00275/3.547, allocations: 1.591 MB / 2.343 GB, free: 218.8 MB / 1.135 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007599/3.548, allocations: 358.1 kB / 2.343 GB, free: 218.5 MB / 1.135 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002086/3.548, allocations: 21.17 kB / 2.343 GB, free: 218.5 MB / 1.135 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001251/3.549, allocations: 74.27 kB / 2.343 GB, free: 218.5 MB / 1.135 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.118e-05/3.55, allocations: 41.75 kB / 2.343 GB, free: 218.5 MB / 1.135 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.665e-05/3.55, allocations: 33.23 kB / 2.343 GB, free: 218.5 MB / 1.135 GB Notification: Performance of sort global known variables: time 0.001181/3.551, allocations: 0.7812 MB / 2.344 GB, free: 218.1 MB / 1.135 GB Notification: Performance of remove unused functions: time 0.003979/3.555, allocations: 1.088 MB / 2.345 GB, free: 218 MB / 1.135 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.00171/3.556, allocations: 0.8119 MB / 2.346 GB, free: 217.8 MB / 1.135 GB Notification: Performance of simCode: created initialization part: time 0.004207/3.561, allocations: 2.079 MB / 2.348 GB, free: 217.1 MB / 1.135 GB Notification: Performance of simCode: created event and clocks part: time 3.968e-06/3.561, allocations: 2.25 kB / 2.348 GB, free: 217.1 MB / 1.135 GB Notification: Performance of simCode: created simulation system equations: time 0.001043/3.562, allocations: 0.73 MB / 2.348 GB, free: 216.6 MB / 1.135 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003485/3.565, allocations: 0.6059 MB / 2.349 GB, free: 216.5 MB / 1.135 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007135/3.572, allocations: 3.01 MB / 2.352 GB, free: 215.6 MB / 1.135 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002189/3.575, allocations: 1.438 MB / 2.353 GB, free: 214.8 MB / 1.135 GB Notification: Performance of SimCode: time 1.563e-06/3.575, allocations: 1.156 kB / 2.353 GB, free: 214.8 MB / 1.135 GB Notification: Performance of Templates: time 0.06736/3.642, allocations: 40.38 MB / 2.393 GB, free: 187.3 MB / 1.135 GB make -j1 -f Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.makefile (rm -f Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.pipe ; mkfifo Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.pipe >> ../files/Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.sim & ./Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_BoreholeSegment.csv","../files/Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches