Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: translateModel(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment") translateModel(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_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 8.1.4-maint.8.1.x/package.mo): time 1.537/1.537, allocations: 289.8 MB / 297.1 MB, free: 6.68 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001092/0.001092, allocations: 173.3 kB / 366.3 MB, free: 1.969 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.522/1.522, allocations: 205.2 MB / 0.6256 GB, free: 5.809 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009168/0.0009167, allocations: 89.67 kB / 0.7396 GB, free: 39.64 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.005e-05/1.007e-05, allocations: 4 kB / 0.859 GB, free: 13.34 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.625/0.625, allocations: 116.3 MB / 0.9726 GB, free: 68.8 MB / 0.6511 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8857/1.511, allocations: 430.1 MB / 1.393 GB, free: 55.45 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000264/1.511, allocations: 109.8 kB / 1.393 GB, free: 55.39 MB / 0.823 GB Notification: Performance of FrontEnd: time 2.42/3.931, allocations: 0.6482 GB / 2.041 GB, free: 183.8 MB / 0.948 GB Notification: Performance of Transformations before backend: time 0.0003228/3.931, allocations: 37.97 kB / 2.041 GB, free: 183.8 MB / 0.948 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.008074/3.939, allocations: 2.023 MB / 2.043 GB, free: 183 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 5.323e-05/3.939, allocations: 11.19 kB / 2.043 GB, free: 183 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001753/3.941, allocations: 214.3 kB / 2.043 GB, free: 182.9 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006182/3.947, allocations: 2.072 MB / 2.045 GB, free: 182.5 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.93e-05/3.947, allocations: 34.31 kB / 2.045 GB, free: 182.5 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006303/3.948, allocations: 88.58 kB / 2.045 GB, free: 182.5 MB / 0.948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002289/3.95, allocations: 0.8403 MB / 2.046 GB, free: 182.5 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001895/3.952, allocations: 1.039 MB / 2.047 GB, free: 182.4 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.041e-05/3.952, allocations: 14.25 kB / 2.047 GB, free: 182.4 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.492e-05/3.952, allocations: 0 / 2.047 GB, free: 182.4 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.538e-05/3.952, allocations: 31.16 kB / 2.047 GB, free: 182.4 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008226/3.961, allocations: 6.553 MB / 2.054 GB, free: 179.6 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00113/3.962, allocations: 0.7509 MB / 2.054 GB, free: 179.5 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005858/3.962, allocations: 434.8 kB / 2.055 GB, free: 179.5 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005614/3.963, allocations: 0.605 MB / 2.055 GB, free: 178.9 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005595/3.963, allocations: 415.1 kB / 2.056 GB, free: 178.8 MB / 0.948 GB Notification: Performance of pre-optimization done (n=78): time 2.865e-06/3.963, allocations: 0 / 2.056 GB, free: 178.8 MB / 0.948 GB Notification: Performance of matching and sorting (n=82): time 0.006083/3.97, allocations: 2.234 MB / 2.058 GB, free: 178.2 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.424e-05/3.97, allocations: 66.97 kB / 2.058 GB, free: 178.1 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001868/3.972, allocations: 1.061 MB / 2.059 GB, free: 178 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 0.0002527/3.972, allocations: 29.12 kB / 2.059 GB, free: 177.9 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004945/3.972, allocations: 498.9 kB / 2.06 GB, free: 177.7 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003478/3.973, allocations: 294.1 kB / 2.06 GB, free: 177.5 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.952e-05/3.973, allocations: 0 / 2.06 GB, free: 177.5 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 0.0001097/3.973, allocations: 355.1 kB / 2.06 GB, free: 177.2 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008191/3.974, allocations: 0.5306 MB / 2.061 GB, free: 177.2 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000934/3.975, allocations: 0.8358 MB / 2.061 GB, free: 176.8 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001478/3.976, allocations: 0.7155 MB / 2.062 GB, free: 176.8 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.831e-06/3.976, allocations: 0 / 2.062 GB, free: 176.8 MB / 0.948 GB Notification: Performance of matching and sorting (n=170) (initialization): time 0.003349/3.98, allocations: 1.704 MB / 2.064 GB, free: 176.7 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006078/3.98, allocations: 2.287 MB / 2.066 GB, free: 174.3 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.178e-05/3.98, allocations: 7.469 kB / 2.066 GB, free: 174.3 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007058/3.981, allocations: 228.6 kB / 2.066 GB, free: 174.3 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001533/3.982, allocations: 264.8 kB / 2.067 GB, free: 174.3 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001473/3.984, allocations: 1.643 MB / 2.068 GB, free: 173.2 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002882/3.987, allocations: 115.6 kB / 2.068 GB, free: 173.2 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000153/3.987, allocations: 59.78 kB / 2.068 GB, free: 173.2 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.227e-05/3.987, allocations: 3.906 kB / 2.068 GB, free: 173.2 MB / 0.948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00278/3.99, allocations: 1.532 MB / 2.07 GB, free: 173.1 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.82e-05/3.99, allocations: 7.125 kB / 2.07 GB, free: 173.1 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005355/3.99, allocations: 220.9 kB / 2.07 GB, free: 173.1 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001231/3.992, allocations: 256.6 kB / 2.07 GB, free: 173.1 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001007/3.993, allocations: 1.037 MB / 2.071 GB, free: 172.6 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002716/3.995, allocations: 116.3 kB / 2.071 GB, free: 172.6 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000133/3.996, allocations: 55.86 kB / 2.071 GB, free: 172.6 MB / 0.948 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.0004165/3.996, allocations: 135.8 kB / 2.072 GB, free: 172.5 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002966/3.996, allocations: 136.5 kB / 2.072 GB, free: 172.4 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002046/3.998, allocations: 1.013 MB / 2.073 GB, free: 172.3 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.344e-05/3.998, allocations: 8.125 kB / 2.073 GB, free: 172.3 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.03e-05/3.998, allocations: 4.906 kB / 2.073 GB, free: 172.3 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001398/4, allocations: 0.9085 MB / 2.074 GB, free: 172.1 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004708/4.004, allocations: 2.695 MB / 2.076 GB, free: 171.7 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.313e-06/4.005, allocations: 3.656 kB / 2.076 GB, free: 171.7 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000741/4.005, allocations: 141.3 kB / 2.076 GB, free: 171.7 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000275/4.006, allocations: 113 kB / 2.076 GB, free: 171.7 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.433e-05/4.006, allocations: 17.17 kB / 2.077 GB, free: 171.7 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003128/4.009, allocations: 5.063 MB / 2.081 GB, free: 167.3 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.146e-06/4.009, allocations: 0 / 2.081 GB, free: 167.3 MB / 0.948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002572/4.011, allocations: 1.588 MB / 2.083 GB, free: 166.9 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008142/4.012, allocations: 357.5 kB / 2.083 GB, free: 166.7 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002114/4.012, allocations: 14.78 kB / 2.083 GB, free: 166.7 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001279/4.014, allocations: 76.86 kB / 2.083 GB, free: 166.7 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.665e-05/4.014, allocations: 43.09 kB / 2.083 GB, free: 166.7 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.113e-05/4.014, allocations: 36.19 kB / 2.083 GB, free: 166.7 MB / 0.948 GB Notification: Performance of sort global known variables: time 0.001159/4.015, allocations: 0.7733 MB / 2.084 GB, free: 166.6 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.003879/4.019, allocations: 1.09 MB / 2.085 GB, free: 166.5 MB / 0.948 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.001728/4.021, allocations: 0.8005 MB / 2.086 GB, free: 166.3 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.003907/4.025, allocations: 2.083 MB / 2.088 GB, free: 166.2 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 5.891e-06/4.025, allocations: 3.406 kB / 2.088 GB, free: 166.2 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 0.0009536/4.026, allocations: 0.7349 MB / 2.089 GB, free: 165.9 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003506/4.029, allocations: 0.6053 MB / 2.089 GB, free: 165.9 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005838/4.035, allocations: 3.006 MB / 2.092 GB, free: 165.3 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001275/4.036, allocations: 1.431 MB / 2.094 GB, free: 164.6 MB / 0.948 GB Notification: Performance of SimCode: time 1.143e-06/4.036, allocations: 0 / 2.094 GB, free: 164.6 MB / 0.948 GB Notification: Performance of Templates: time 0.07285/4.109, allocations: 40.5 MB / 2.133 GB, free: 158.7 MB / 0.948 GB make -j1 -f Buildings_8_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.makefile (rm -f Buildings_8_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.pipe ; mkfifo Buildings_8_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.pipe >> ../files/Buildings_8_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.sim & ./Buildings_8_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.pipe 2>&1)