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: "" <> buildModelFMU(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment,fileNamePrefix="Buildings_8_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_BoreholeSegment",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment,fileNamePrefix="Buildings_8_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_BoreholeSegment",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.842/1.842, allocations: 289.9 MB / 297.4 MB, free: 6.414 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.001279/0.001279, allocations: 176.9 kB / 366.7 MB, free: 1.672 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.651/1.651, allocations: 205.2 MB / 0.626 GB, free: 7.207 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.0008367/0.0008368, allocations: 87.52 kB / 0.74 GB, free: 39.58 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.2e-05/2.187e-05, allocations: 4 kB / 0.8598 GB, free: 12.99 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8264/0.8265, allocations: 116.3 MB / 0.9734 GB, free: 76.17 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.216/2.043, allocations: 430.2 MB / 1.393 GB, free: 126.9 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003111/2.043, allocations: 109 kB / 1.394 GB, free: 126.8 MB / 0.8542 GB Notification: Performance of FrontEnd - DAE generated: time 2.682/4.725, allocations: 0.6447 GB / 2.038 GB, free: 180 MB / 0.948 GB Notification: Performance of FrontEnd: time 2.835e-06/4.725, allocations: 0 / 2.038 GB, free: 180 MB / 0.948 GB Notification: Performance of Transformations before backend: time 0.0003015/4.726, allocations: 38.81 kB / 2.038 GB, free: 180 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.007864/4.734, allocations: 2.033 MB / 2.04 GB, free: 179.4 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 5.45e-05/4.734, allocations: 8.344 kB / 2.04 GB, free: 179.4 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001445/4.735, allocations: 211.8 kB / 2.041 GB, free: 179.3 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006026/4.741, allocations: 2.058 MB / 2.043 GB, free: 179 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.614e-05/4.741, allocations: 34.53 kB / 2.043 GB, free: 179 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006306/4.742, allocations: 92.19 kB / 2.043 GB, free: 179 MB / 0.948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002429/4.744, allocations: 0.8288 MB / 2.043 GB, free: 179 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002731/4.747, allocations: 1.034 MB / 2.044 GB, free: 178.8 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.057e-05/4.747, allocations: 4.125 kB / 2.045 GB, free: 178.8 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001234/4.747, allocations: 5.75 kB / 2.045 GB, free: 178.8 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.564e-05/4.747, allocations: 32.55 kB / 2.045 GB, free: 178.8 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.01333/4.761, allocations: 6.721 MB / 2.051 GB, free: 176.2 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00275/4.763, allocations: 1.045 MB / 2.052 GB, free: 176.2 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000758/4.764, allocations: 423.8 kB / 2.053 GB, free: 176.2 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006134/4.765, allocations: 0.6052 MB / 2.053 GB, free: 175.5 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007827/4.766, allocations: 407.8 kB / 2.054 GB, free: 175.5 MB / 0.948 GB Notification: Performance of pre-optimization done (n=78): time 3.347e-06/4.766, allocations: 2.188 kB / 2.054 GB, free: 175.5 MB / 0.948 GB Notification: Performance of matching and sorting (n=82): time 0.007392/4.773, allocations: 2.234 MB / 2.056 GB, free: 174.9 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.222e-05/4.773, allocations: 64.59 kB / 2.056 GB, free: 174.8 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0027/4.776, allocations: 1.057 MB / 2.057 GB, free: 174.7 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 0.0003214/4.776, allocations: 29.36 kB / 2.057 GB, free: 174.6 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 0.001063/4.777, allocations: 0.6837 MB / 2.057 GB, free: 174.4 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003968/4.778, allocations: 281.2 kB / 2.058 GB, free: 174.2 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001917/4.778, allocations: 3.062 kB / 2.058 GB, free: 174.2 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 0.000138/4.778, allocations: 364.3 kB / 2.058 GB, free: 173.9 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001147/4.779, allocations: 0.5217 MB / 2.059 GB, free: 173.9 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001346/4.781, allocations: 0.8133 MB / 2.059 GB, free: 173.6 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001856/4.782, allocations: 0.694 MB / 2.06 GB, free: 173.6 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.198e-05/4.782, allocations: 1.125 kB / 2.06 GB, free: 173.6 MB / 0.948 GB Notification: Performance of matching and sorting (n=170) (initialization): time 0.004115/4.787, allocations: 1.673 MB / 2.062 GB, free: 173.4 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005993/4.787, allocations: 2.288 MB / 2.064 GB, free: 171.1 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.563e-05/4.787, allocations: 8.031 kB / 2.064 GB, free: 171.1 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007032/4.788, allocations: 226 kB / 2.064 GB, free: 171.1 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001493/4.789, allocations: 266.3 kB / 2.064 GB, free: 171.1 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001473/4.791, allocations: 1.615 MB / 2.066 GB, free: 170 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002912/4.794, allocations: 126.7 kB / 2.066 GB, free: 169.9 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002059/4.794, allocations: 57.92 kB / 2.066 GB, free: 169.9 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.334e-05/4.794, allocations: 3.344 kB / 2.066 GB, free: 169.9 MB / 0.948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003289/4.797, allocations: 1.499 MB / 2.068 GB, free: 169.9 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.865e-05/4.797, allocations: 6.438 kB / 2.068 GB, free: 169.9 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006111/4.798, allocations: 219.1 kB / 2.068 GB, free: 169.9 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001269/4.799, allocations: 257.5 kB / 2.068 GB, free: 169.9 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001136/4.8, allocations: 1.019 MB / 2.069 GB, free: 169.4 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002791/4.803, allocations: 128.1 kB / 2.069 GB, free: 169.3 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001997/4.804, allocations: 59.95 kB / 2.069 GB, free: 169.3 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.0004937/4.804, allocations: 148.4 kB / 2.069 GB, free: 169.2 MB / 0.948 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002339/4.806, allocations: 0.9247 MB / 2.07 GB, free: 169.1 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000505/4.807, allocations: 133.2 kB / 2.07 GB, free: 169 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002211/4.809, allocations: 1.004 MB / 2.071 GB, free: 168.9 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.18e-05/4.809, allocations: 7.281 kB / 2.071 GB, free: 168.9 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.363e-05/4.809, allocations: 7.781 kB / 2.071 GB, free: 168.9 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001421/4.811, allocations: 0.9041 MB / 2.072 GB, free: 168.7 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.005552/4.816, allocations: 2.678 MB / 2.075 GB, free: 168.3 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.124e-05/4.816, allocations: 1.594 kB / 2.075 GB, free: 168.3 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008167/4.817, allocations: 146.5 kB / 2.075 GB, free: 168.3 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000341/4.817, allocations: 112.5 kB / 2.075 GB, free: 168.2 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.269e-05/4.818, allocations: 22.05 kB / 2.075 GB, free: 168.2 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004227/4.822, allocations: 5.114 MB / 2.08 GB, free: 163.8 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.153e-06/4.822, allocations: 3.219 kB / 2.08 GB, free: 163.8 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003314/4.825, allocations: 1.57 MB / 2.082 GB, free: 163.5 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001314/4.826, allocations: 356 kB / 2.082 GB, free: 163.3 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005541/4.827, allocations: 14.25 kB / 2.082 GB, free: 163.3 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001748/4.829, allocations: 79.41 kB / 2.082 GB, free: 163.3 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001465/4.829, allocations: 59 kB / 2.082 GB, free: 163.3 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.338e-05/4.829, allocations: 31.11 kB / 2.082 GB, free: 163.3 MB / 0.948 GB Notification: Performance of sorting global known variables: time 0.001555/4.831, allocations: 0.7808 MB / 2.083 GB, free: 163.2 MB / 0.948 GB Notification: Performance of sort global known variables: time 1.443e-06/4.831, allocations: 0 / 2.083 GB, free: 163.2 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.005427/4.836, allocations: 1.08 MB / 2.084 GB, free: 163.1 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.005341/4.841, allocations: 3.102 MB / 2.087 GB, free: 161.8 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.005189/4.847, allocations: 2.022 MB / 2.089 GB, free: 161.7 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 9.137e-06/4.847, allocations: 3.781 kB / 2.089 GB, free: 161.7 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 0.001183/4.848, allocations: 0.7518 MB / 2.09 GB, free: 161.4 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004401/4.852, allocations: 0.6367 MB / 2.09 GB, free: 161.4 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009581/4.862, allocations: 3.289 MB / 2.094 GB, free: 160.6 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001064/4.863, allocations: 1.311 MB / 2.095 GB, free: 159.9 MB / 0.948 GB Notification: Performance of simCode: alias equations: time 0.002754/4.866, allocations: 0.502 MB / 2.095 GB, free: 159.9 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009809/4.867, allocations: 0.5671 MB / 2.096 GB, free: 159.9 MB / 0.948 GB Notification: Performance of SimCode: time 1.613e-06/4.867, allocations: 0 / 2.096 GB, free: 159.9 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0974/4.964, allocations: 48.24 MB / 2.143 GB, free: 157.6 MB / 0.948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002489/4.964, allocations: 193.5 kB / 2.143 GB, free: 157.4 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.005/8.969, allocations: 8 kB / 2.143 GB, free: 157.4 MB / 0.948 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_BoreholeSegment_fmu --startTime=0 --stopTime=1.5768e+08 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_BoreholeSegment.fmu > Buildings_8_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.pipe 2>&1)