Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.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 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: translateModel(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_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_maint.8.0.x_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.566/1.566, allocations: 285.6 MB / 293.1 MB, free: 10.23 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.001069/0.001069, allocations: 176.9 kB / 361.4 MB, free: 6.832 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.644/1.644, allocations: 205.3 MB / 0.62 GB, free: 11.65 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.0008451/0.0008453, allocations: 97.97 kB / 0.733 GB, free: 44.16 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.044e-05/2.048e-05, allocations: 4 kB / 0.8518 GB, free: 2.723 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6085/0.6085, allocations: 115.3 MB / 0.9644 GB, free: 78.78 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9432/1.552, allocations: 429.2 MB / 1.384 GB, free: 138.5 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002714/1.552, allocations: 111.3 kB / 1.384 GB, free: 138.4 MB / 0.8542 GB Notification: Performance of FrontEnd - DAE generated: time 2.251/3.803, allocations: 0.6448 GB / 2.028 GB, free: 172.7 MB / 0.9323 GB Notification: Performance of FrontEnd: time 1.974e-06/3.803, allocations: 0 / 2.028 GB, free: 172.7 MB / 0.9323 GB Notification: Performance of Transformations before backend: time 0.0001788/3.803, allocations: 46.27 kB / 2.028 GB, free: 172.7 MB / 0.9323 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.006706/3.81, allocations: 2.021 MB / 2.03 GB, free: 172 MB / 0.9323 GB Notification: Performance of prepare preOptimizeDAE: time 6.799e-05/3.81, allocations: 11.28 kB / 2.03 GB, free: 172 MB / 0.9323 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001148/3.811, allocations: 210 kB / 2.031 GB, free: 171.9 MB / 0.9323 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00473/3.816, allocations: 2.05 MB / 2.033 GB, free: 171.6 MB / 0.9323 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.887e-05/3.816, allocations: 36.34 kB / 2.033 GB, free: 171.6 MB / 0.9323 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002385/3.816, allocations: 91.25 kB / 2.033 GB, free: 171.6 MB / 0.9323 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001635/3.818, allocations: 0.8355 MB / 2.034 GB, free: 171.6 MB / 0.9323 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001931/3.819, allocations: 1.031 MB / 2.035 GB, free: 171.5 MB / 0.9323 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.628e-05/3.82, allocations: 11.42 kB / 2.035 GB, free: 171.5 MB / 0.9323 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.416e-05/3.82, allocations: 4.734 kB / 2.035 GB, free: 171.5 MB / 0.9323 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.768e-05/3.82, allocations: 28.47 kB / 2.035 GB, free: 171.5 MB / 0.9323 GB Warning: The model contains alias variables with conflicting start and/or nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01079/3.83, allocations: 6.725 MB / 2.041 GB, free: 168.9 MB / 0.9323 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002336/3.833, allocations: 1.034 MB / 2.042 GB, free: 168.9 MB / 0.9323 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006392/3.833, allocations: 428.7 kB / 2.043 GB, free: 168.8 MB / 0.9323 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000609/3.834, allocations: 0.6062 MB / 2.043 GB, free: 168.2 MB / 0.9323 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006366/3.835, allocations: 407.8 kB / 2.044 GB, free: 168.1 MB / 0.9323 GB Notification: Performance of pre-optimization done (n=78): time 2.875e-06/3.835, allocations: 0 / 2.044 GB, free: 168.1 MB / 0.9323 GB Notification: Performance of matching and sorting (n=82): time 0.005976/3.841, allocations: 2.24 MB / 2.046 GB, free: 167.5 MB / 0.9323 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.558e-05/3.841, allocations: 65.5 kB / 2.046 GB, free: 167.4 MB / 0.9323 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001412/3.842, allocations: 1.059 MB / 2.047 GB, free: 167.3 MB / 0.9323 GB Notification: Performance of collectPreVariables (initialization): time 0.000156/3.842, allocations: 28.42 kB / 2.047 GB, free: 167.2 MB / 0.9323 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005225/3.843, allocations: 0.6829 MB / 2.048 GB, free: 167 MB / 0.9323 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002139/3.843, allocations: 290.3 kB / 2.048 GB, free: 166.8 MB / 0.9323 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.624e-05/3.843, allocations: 0 / 2.048 GB, free: 166.8 MB / 0.9323 GB Notification: Performance of setup shared object (initialization): time 9.041e-05/3.843, allocations: 359.5 kB / 2.048 GB, free: 166.5 MB / 0.9323 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007154/3.844, allocations: 0.5186 MB / 2.049 GB, free: 166.5 MB / 0.9323 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008441/3.845, allocations: 0.8215 MB / 2.049 GB, free: 166.1 MB / 0.9323 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00128/3.846, allocations: 0.693 MB / 2.05 GB, free: 166.1 MB / 0.9323 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.947e-06/3.846, allocations: 0 / 2.05 GB, free: 166.1 MB / 0.9323 GB Notification: Performance of matching and sorting (n=170) (initialization): time 0.002669/3.849, allocations: 1.67 MB / 2.052 GB, free: 166 MB / 0.9323 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004766/3.849, allocations: 2.285 MB / 2.054 GB, free: 163.6 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.245e-05/3.849, allocations: 9.781 kB / 2.054 GB, free: 163.6 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005771/3.85, allocations: 231.8 kB / 2.054 GB, free: 163.6 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001264/3.851, allocations: 269.5 kB / 2.055 GB, free: 163.6 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001145/3.852, allocations: 1.625 MB / 2.056 GB, free: 162.5 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002544/3.855, allocations: 126.6 kB / 2.056 GB, free: 162.5 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001245/3.855, allocations: 56.97 kB / 2.056 GB, free: 162.5 MB / 0.9323 GB Notification: Performance of prepare postOptimizeDAE: time 1.097e-05/3.855, allocations: 6.188 kB / 2.056 GB, free: 162.5 MB / 0.9323 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00245/3.858, allocations: 1.495 MB / 2.058 GB, free: 162.4 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.845e-05/3.858, allocations: 9.375 kB / 2.058 GB, free: 162.4 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005074/3.858, allocations: 222.9 kB / 2.058 GB, free: 162.4 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001072/3.859, allocations: 261.8 kB / 2.058 GB, free: 162.4 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000852/3.86, allocations: 1.015 MB / 2.059 GB, free: 161.9 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002471/3.863, allocations: 124.3 kB / 2.059 GB, free: 161.9 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001152/3.863, allocations: 59.3 kB / 2.059 GB, free: 161.9 MB / 0.9323 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.0003523/3.863, allocations: 139.4 kB / 2.06 GB, free: 161.8 MB / 0.9323 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002465/3.863, allocations: 132.8 kB / 2.06 GB, free: 161.7 MB / 0.9323 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001864/3.865, allocations: 0.9996 MB / 2.061 GB, free: 161.6 MB / 0.9323 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.1e-05/3.865, allocations: 11.39 kB / 2.061 GB, free: 161.6 MB / 0.9323 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.938e-06/3.865, allocations: 3.938 kB / 2.061 GB, free: 161.6 MB / 0.9323 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001265/3.866, allocations: 0.9137 MB / 2.062 GB, free: 161.4 MB / 0.9323 GB Warning: The model contains alias variables with conflicting start and/or nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003849/3.87, allocations: 2.678 MB / 2.064 GB, free: 160.9 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.262e-06/3.87, allocations: 6 kB / 2.064 GB, free: 160.9 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006442/3.871, allocations: 140.6 kB / 2.064 GB, free: 160.9 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002582/3.871, allocations: 112.8 kB / 2.064 GB, free: 160.9 MB / 0.9323 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.104e-05/3.871, allocations: 17.95 kB / 2.064 GB, free: 160.9 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002733/3.874, allocations: 5.119 MB / 2.069 GB, free: 156.5 MB / 0.9323 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.448e-06/3.874, allocations: 5.75 kB / 2.069 GB, free: 156.5 MB / 0.9323 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002257/3.876, allocations: 1.571 MB / 2.071 GB, free: 156.1 MB / 0.9323 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007505/3.877, allocations: 356.4 kB / 2.071 GB, free: 156 MB / 0.9323 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001963/3.877, allocations: 11.56 kB / 2.071 GB, free: 156 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001213/3.879, allocations: 77.47 kB / 2.071 GB, free: 156 MB / 0.9323 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001144/3.879, allocations: 62.11 kB / 2.071 GB, free: 156 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.657e-05/3.879, allocations: 33.56 kB / 2.071 GB, free: 156 MB / 0.9323 GB Notification: Performance of sorting global known variables: time 0.001049/3.88, allocations: 0.7716 MB / 2.072 GB, free: 155.8 MB / 0.9323 GB Notification: Performance of sort global known variables: time 3.7e-07/3.88, allocations: 0 / 2.072 GB, free: 155.8 MB / 0.9323 GB Notification: Performance of remove unused functions: time 0.003863/3.884, allocations: 1.083 MB / 2.073 GB, free: 155.8 MB / 0.9323 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.001839/3.886, allocations: 0.802 MB / 2.074 GB, free: 155.6 MB / 0.9323 GB Notification: Performance of simCode: created initialization part: time 0.003488/3.889, allocations: 2.024 MB / 2.076 GB, free: 155.5 MB / 0.9323 GB Notification: Performance of simCode: created event and clocks part: time 5.289e-06/3.889, allocations: 3.281 kB / 2.076 GB, free: 155.5 MB / 0.9323 GB Notification: Performance of simCode: created simulation system equations: time 0.0009473/3.89, allocations: 0.755 MB / 2.077 GB, free: 155.2 MB / 0.9323 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003299/3.893, allocations: 0.6348 MB / 2.077 GB, free: 155.2 MB / 0.9323 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004823/3.898, allocations: 2.909 MB / 2.08 GB, free: 154.5 MB / 0.9323 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007033/3.899, allocations: 1.31 MB / 2.082 GB, free: 153.8 MB / 0.9323 GB Notification: Performance of simCode: alias equations: time 0.002158/3.901, allocations: 0.4967 MB / 2.082 GB, free: 153.7 MB / 0.9323 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003176/3.901, allocations: 97.17 kB / 2.082 GB, free: 153.7 MB / 0.9323 GB Notification: Performance of SimCode: time 1.102e-06/3.901, allocations: 0 / 2.082 GB, free: 153.7 MB / 0.9323 GB Notification: Performance of Templates: time 0.05553/3.957, allocations: 34.65 MB / 2.116 GB, free: 151.9 MB / 0.9323 GB make -j1 -f Buildings_maint.8.0.x_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.makefile (rm -f Buildings_maint.8.0.x_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.sim & ./Buildings_maint.8.0.x_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.8.0.x_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.pipe 2>&1)