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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.656/1.656, allocations: 289.9 MB / 297.4 MB, free: 6.391 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.00111/0.001109, allocations: 180.8 kB / 366.7 MB, free: 1.68 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.601/1.601, allocations: 205.2 MB / 0.626 GB, free: 7.188 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.0008572/0.0008572, allocations: 89.55 kB / 0.74 GB, free: 39.57 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.775e-05/1.772e-05, allocations: 4 kB / 0.8597 GB, free: 13.08 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6075/0.6075, allocations: 116.3 MB / 0.9733 GB, free: 76.31 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9522/1.56, allocations: 430.2 MB / 1.393 GB, free: 127 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002356/1.56, allocations: 106 kB / 1.393 GB, free: 127 MB / 0.8542 GB Notification: Performance of FrontEnd - DAE generated: time 2.339/3.899, allocations: 0.6448 GB / 2.038 GB, free: 180.2 MB / 0.948 GB Notification: Performance of FrontEnd: time 1.092e-06/3.899, allocations: 0 / 2.038 GB, free: 180.2 MB / 0.948 GB Notification: Performance of Transformations before backend: time 0.0001883/3.899, allocations: 42.34 kB / 2.038 GB, free: 180.2 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.00571/3.905, allocations: 2.03 MB / 2.04 GB, free: 179.6 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 5.595e-05/3.905, allocations: 9.312 kB / 2.04 GB, free: 179.6 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008068/3.906, allocations: 214.1 kB / 2.04 GB, free: 179.5 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004562/3.91, allocations: 2.055 MB / 2.042 GB, free: 179.1 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.588e-05/3.91, allocations: 37.06 kB / 2.043 GB, free: 179.1 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002142/3.911, allocations: 85.16 kB / 2.043 GB, free: 179.1 MB / 0.948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001479/3.912, allocations: 0.8326 MB / 2.043 GB, free: 179.1 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001777/3.914, allocations: 1.033 MB / 2.044 GB, free: 179 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.599e-05/3.914, allocations: 6.188 kB / 2.044 GB, free: 179 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.523e-05/3.914, allocations: 4.234 kB / 2.044 GB, free: 179 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.643e-05/3.914, allocations: 32.17 kB / 2.044 GB, free: 179 MB / 0.948 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.925, allocations: 6.726 MB / 2.051 GB, free: 176.4 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00229/3.927, allocations: 1.04 MB / 2.052 GB, free: 176.4 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006574/3.928, allocations: 421.5 kB / 2.052 GB, free: 176.4 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005423/3.928, allocations: 0.5985 MB / 2.053 GB, free: 175.7 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006679/3.929, allocations: 411.8 kB / 2.053 GB, free: 175.7 MB / 0.948 GB Notification: Performance of pre-optimization done (n=78): time 2.835e-06/3.929, allocations: 3.281 kB / 2.053 GB, free: 175.7 MB / 0.948 GB Notification: Performance of matching and sorting (n=82): time 0.005968/3.935, allocations: 2.227 MB / 2.056 GB, free: 175.1 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.195e-05/3.935, allocations: 67.59 kB / 2.056 GB, free: 175 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001686/3.937, allocations: 1.061 MB / 2.057 GB, free: 174.8 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 0.0001456/3.937, allocations: 27.64 kB / 2.057 GB, free: 174.8 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006162/3.938, allocations: 0.68 MB / 2.057 GB, free: 174.6 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002506/3.938, allocations: 290.2 kB / 2.058 GB, free: 174.4 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.447e-05/3.938, allocations: 0 / 2.058 GB, free: 174.4 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 9.166e-05/3.938, allocations: 357.7 kB / 2.058 GB, free: 174.1 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008434/3.939, allocations: 0.5231 MB / 2.059 GB, free: 174.1 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001032/3.94, allocations: 0.8183 MB / 2.059 GB, free: 173.8 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001394/3.941, allocations: 0.6918 MB / 2.06 GB, free: 173.8 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.372e-06/3.941, allocations: 1.5 kB / 2.06 GB, free: 173.8 MB / 0.948 GB Notification: Performance of matching and sorting (n=170) (initialization): time 0.003178/3.945, allocations: 1.663 MB / 2.062 GB, free: 173.6 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004704/3.945, allocations: 2.292 MB / 2.064 GB, free: 171.3 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.673e-05/3.945, allocations: 9.844 kB / 2.064 GB, free: 171.3 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006545/3.946, allocations: 228.1 kB / 2.064 GB, free: 171.2 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001331/3.947, allocations: 269.6 kB / 2.064 GB, free: 171.2 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001305/3.948, allocations: 1.619 MB / 2.066 GB, free: 170.1 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002508/3.951, allocations: 128.2 kB / 2.066 GB, free: 170.1 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001409/3.951, allocations: 57.83 kB / 2.066 GB, free: 170.1 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.384e-05/3.951, allocations: 5.719 kB / 2.066 GB, free: 170.1 MB / 0.948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002835/3.954, allocations: 1.498 MB / 2.068 GB, free: 170.1 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.845e-05/3.954, allocations: 6.656 kB / 2.068 GB, free: 170.1 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005421/3.955, allocations: 221.8 kB / 2.068 GB, free: 170.1 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00114/3.956, allocations: 254.8 kB / 2.068 GB, free: 170.1 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001021/3.957, allocations: 1.024 MB / 2.069 GB, free: 169.5 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002424/3.959, allocations: 127.3 kB / 2.069 GB, free: 169.5 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001215/3.959, allocations: 56.22 kB / 2.069 GB, free: 169.5 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.0004034/3.96, allocations: 142.4 kB / 2.069 GB, free: 169.4 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002852/3.96, allocations: 133 kB / 2.069 GB, free: 169.3 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002045/3.962, allocations: 0.9985 MB / 2.07 GB, free: 169.2 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.296e-05/3.962, allocations: 10.94 kB / 2.07 GB, free: 169.2 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.247e-06/3.962, allocations: 1 kB / 2.07 GB, free: 169.2 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001308/3.963, allocations: 0.9188 MB / 2.071 GB, free: 169 MB / 0.948 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.003857/3.967, allocations: 2.677 MB / 2.074 GB, free: 168.6 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.491e-06/3.967, allocations: 0 / 2.074 GB, free: 168.6 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000656/3.968, allocations: 147.7 kB / 2.074 GB, free: 168.6 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002498/3.968, allocations: 113.2 kB / 2.074 GB, free: 168.6 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.789e-05/3.968, allocations: 18.36 kB / 2.074 GB, free: 168.6 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00286/3.971, allocations: 5.122 MB / 2.079 GB, free: 164.2 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.286e-06/3.971, allocations: 0 / 2.079 GB, free: 164.2 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002415/3.974, allocations: 1.571 MB / 2.081 GB, free: 163.8 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007777/3.974, allocations: 361.8 kB / 2.081 GB, free: 163.6 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001795/3.975, allocations: 7.25 kB / 2.081 GB, free: 163.6 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001143/3.976, allocations: 81.14 kB / 2.081 GB, free: 163.6 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001163/3.976, allocations: 63.72 kB / 2.081 GB, free: 163.6 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.058e-05/3.976, allocations: 32.22 kB / 2.081 GB, free: 163.6 MB / 0.948 GB Notification: Performance of sorting global known variables: time 0.001061/3.977, allocations: 0.776 MB / 2.082 GB, free: 163.5 MB / 0.948 GB Notification: Performance of sort global known variables: time 2.41e-07/3.977, allocations: 0 / 2.082 GB, free: 163.5 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.00402/3.981, allocations: 1.073 MB / 2.083 GB, free: 163.4 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.001615/3.983, allocations: 0.8139 MB / 2.084 GB, free: 163.2 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.003447/3.986, allocations: 2.024 MB / 2.086 GB, free: 163.1 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 5.079e-06/3.986, allocations: 3.094 kB / 2.086 GB, free: 163.1 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 0.0008805/3.987, allocations: 0.7509 MB / 2.087 GB, free: 162.8 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003663/3.991, allocations: 0.6347 MB / 2.087 GB, free: 162.8 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005042/3.996, allocations: 2.904 MB / 2.09 GB, free: 162.1 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006892/3.996, allocations: 1.309 MB / 2.091 GB, free: 161.4 MB / 0.948 GB Notification: Performance of simCode: alias equations: time 0.002191/3.999, allocations: 0.5022 MB / 2.092 GB, free: 161.4 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000301/3.999, allocations: 99.25 kB / 2.092 GB, free: 161.4 MB / 0.948 GB Notification: Performance of SimCode: time 1.032e-06/3.999, allocations: 4.219 kB / 2.092 GB, free: 161.4 MB / 0.948 GB Notification: Performance of Templates: time 0.05979/4.059, allocations: 34.67 MB / 2.126 GB, free: 159.6 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)