Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment,fileNamePrefix="Buildings_8_0_0_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_0_0_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.0.0/package.mo): time 2.554/2.554, allocations: 284.9 MB / 292.4 MB, free: 10.57 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.001509/0.001509, allocations: 180.8 kB / 360.6 MB, free: 7.289 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.165/2.165, allocations: 205.3 MB / 0.6191 GB, free: 12.18 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.00113/0.00113, allocations: 95.61 kB / 0.7321 GB, free: 44.71 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 4.552e-05/4.639e-05, allocations: 4 kB / 0.8509 GB, free: 3.297 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8817/0.8818, allocations: 115.3 MB / 0.9634 GB, free: 78.74 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.356/2.238, allocations: 429.1 MB / 1.382 GB, free: 139.8 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003757/2.238, allocations: 103.7 kB / 1.383 GB, free: 139.7 MB / 0.8542 GB Notification: Performance of FrontEnd - DAE generated: time 3.544/5.782, allocations: 0.6447 GB / 2.027 GB, free: 172.7 MB / 0.9323 GB Notification: Performance of FrontEnd: time 2.384e-06/5.782, allocations: 5.078 kB / 2.027 GB, free: 172.7 MB / 0.9323 GB Notification: Performance of Transformations before backend: time 0.0002883/5.783, allocations: 46.67 kB / 2.027 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.009043/5.792, allocations: 2.031 MB / 2.029 GB, free: 172.1 MB / 0.9323 GB Notification: Performance of prepare preOptimizeDAE: time 5.217e-05/5.792, allocations: 9.125 kB / 2.029 GB, free: 172.1 MB / 0.9323 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001489/5.793, allocations: 210.4 kB / 2.029 GB, free: 172 MB / 0.9323 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007715/5.801, allocations: 2.054 MB / 2.031 GB, free: 171.7 MB / 0.9323 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.192e-05/5.801, allocations: 35.44 kB / 2.032 GB, free: 171.7 MB / 0.9323 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004746/5.802, allocations: 91.97 kB / 2.032 GB, free: 171.6 MB / 0.9323 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002507/5.804, allocations: 0.8257 MB / 2.032 GB, free: 171.6 MB / 0.9323 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002789/5.807, allocations: 1.034 MB / 2.033 GB, free: 171.5 MB / 0.9323 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.105e-05/5.807, allocations: 7.312 kB / 2.033 GB, free: 171.5 MB / 0.9323 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001392/5.807, allocations: 5.938 kB / 2.033 GB, free: 171.5 MB / 0.9323 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.454e-05/5.807, allocations: 34 kB / 2.033 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.01878/5.826, allocations: 6.719 MB / 2.04 GB, free: 168.9 MB / 0.9323 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004334/5.831, allocations: 1.049 MB / 2.041 GB, free: 168.9 MB / 0.9323 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001075/5.832, allocations: 427.4 kB / 2.041 GB, free: 168.9 MB / 0.9323 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007365/5.832, allocations: 0.5983 MB / 2.042 GB, free: 168.2 MB / 0.9323 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001006/5.833, allocations: 410.6 kB / 2.042 GB, free: 168.2 MB / 0.9323 GB Notification: Performance of pre-optimization done (n=78): time 2.985e-06/5.833, allocations: 0 / 2.042 GB, free: 168.2 MB / 0.9323 GB Notification: Performance of matching and sorting (n=82): time 0.008875/5.842, allocations: 2.239 MB / 2.045 GB, free: 167.6 MB / 0.9323 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.638e-05/5.842, allocations: 68.16 kB / 2.045 GB, free: 167.5 MB / 0.9323 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002323/5.845, allocations: 1.058 MB / 2.046 GB, free: 167.3 MB / 0.9323 GB Notification: Performance of collectPreVariables (initialization): time 0.0004142/5.845, allocations: 28.8 kB / 2.046 GB, free: 167.3 MB / 0.9323 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008321/5.846, allocations: 0.6824 MB / 2.046 GB, free: 167 MB / 0.9323 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004582/5.847, allocations: 279 kB / 2.047 GB, free: 166.8 MB / 0.9323 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001152/5.847, allocations: 0 / 2.047 GB, free: 166.8 MB / 0.9323 GB Notification: Performance of setup shared object (initialization): time 0.0001152/5.847, allocations: 356.4 kB / 2.047 GB, free: 166.5 MB / 0.9323 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001349/5.848, allocations: 0.5277 MB / 2.048 GB, free: 166.5 MB / 0.9323 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001494/5.85, allocations: 0.8204 MB / 2.048 GB, free: 166.2 MB / 0.9323 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002094/5.852, allocations: 0.7028 MB / 2.049 GB, free: 166.2 MB / 0.9323 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.084e-06/5.852, allocations: 0 / 2.049 GB, free: 166.2 MB / 0.9323 GB Notification: Performance of matching and sorting (n=170) (initialization): time 0.004824/5.857, allocations: 1.673 MB / 2.051 GB, free: 166 MB / 0.9323 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005293/5.857, allocations: 2.286 MB / 2.053 GB, free: 163.7 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.554e-05/5.857, allocations: 7.688 kB / 2.053 GB, free: 163.7 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009886/5.858, allocations: 224.2 kB / 2.053 GB, free: 163.7 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002767/5.861, allocations: 269.7 kB / 2.053 GB, free: 163.7 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001857/5.863, allocations: 1.618 MB / 2.055 GB, free: 162.6 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004749/5.868, allocations: 118.4 kB / 2.055 GB, free: 162.6 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002698/5.868, allocations: 61.39 kB / 2.055 GB, free: 162.6 MB / 0.9323 GB Notification: Performance of prepare postOptimizeDAE: time 1.5e-05/5.868, allocations: 3.781 kB / 2.055 GB, free: 162.6 MB / 0.9323 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00426/5.872, allocations: 1.496 MB / 2.057 GB, free: 162.5 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.855e-05/5.872, allocations: 7.625 kB / 2.057 GB, free: 162.5 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008957/5.873, allocations: 221.8 kB / 2.057 GB, free: 162.5 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002332/5.876, allocations: 260.4 kB / 2.057 GB, free: 162.5 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001466/5.877, allocations: 1.022 MB / 2.058 GB, free: 162 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004555/5.882, allocations: 128.5 kB / 2.058 GB, free: 161.9 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002545/5.882, allocations: 58.62 kB / 2.058 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.000474/5.882, allocations: 139.7 kB / 2.058 GB, free: 161.8 MB / 0.9323 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002833/5.885, allocations: 0.922 MB / 2.059 GB, free: 161.7 MB / 0.9323 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003064/5.886, allocations: 139 kB / 2.059 GB, free: 161.6 MB / 0.9323 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002841/5.888, allocations: 1.002 MB / 2.06 GB, free: 161.5 MB / 0.9323 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.437e-05/5.889, allocations: 7.688 kB / 2.06 GB, free: 161.5 MB / 0.9323 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.053e-05/5.889, allocations: 3.75 kB / 2.06 GB, free: 161.5 MB / 0.9323 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002166/5.891, allocations: 0.9138 MB / 2.061 GB, free: 161.3 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.006464/5.897, allocations: 2.672 MB / 2.064 GB, free: 160.9 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.025e-06/5.897, allocations: 1.594 kB / 2.064 GB, free: 160.9 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001335/5.899, allocations: 140.9 kB / 2.064 GB, free: 160.9 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004268/5.899, allocations: 121 kB / 2.064 GB, free: 160.9 MB / 0.9323 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.625e-05/5.899, allocations: 15.89 kB / 2.064 GB, free: 160.9 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004228/5.903, allocations: 5.117 MB / 2.069 GB, free: 156.4 MB / 0.9323 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.631e-06/5.903, allocations: 0 / 2.069 GB, free: 156.4 MB / 0.9323 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003854/5.907, allocations: 1.57 MB / 2.071 GB, free: 156.1 MB / 0.9323 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001214/5.909, allocations: 356.9 kB / 2.071 GB, free: 155.9 MB / 0.9323 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003391/5.909, allocations: 10.44 kB / 2.071 GB, free: 155.9 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002312/5.911, allocations: 84.95 kB / 2.071 GB, free: 155.9 MB / 0.9323 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001644/5.911, allocations: 57.45 kB / 2.071 GB, free: 155.9 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.613e-05/5.912, allocations: 31.78 kB / 2.071 GB, free: 155.9 MB / 0.9323 GB Notification: Performance of sorting global known variables: time 0.001539/5.913, allocations: 0.7713 MB / 2.072 GB, free: 155.8 MB / 0.9323 GB Notification: Performance of sort global known variables: time 6.21e-07/5.913, allocations: 0 / 2.072 GB, free: 155.8 MB / 0.9323 GB Notification: Performance of remove unused functions: time 0.005927/5.919, allocations: 1.085 MB / 2.073 GB, free: 155.7 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.006088/5.925, allocations: 3.105 MB / 2.076 GB, free: 154.4 MB / 0.9323 GB Notification: Performance of simCode: created initialization part: time 0.00567/5.931, allocations: 2.018 MB / 2.078 GB, free: 154.3 MB / 0.9323 GB Notification: Performance of simCode: created event and clocks part: time 8.636e-06/5.931, allocations: 0 / 2.078 GB, free: 154.3 MB / 0.9323 GB Notification: Performance of simCode: created simulation system equations: time 0.001422/5.932, allocations: 0.7533 MB / 2.079 GB, free: 154 MB / 0.9323 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005655/5.938, allocations: 0.6475 MB / 2.079 GB, free: 154 MB / 0.9323 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009872/5.948, allocations: 3.284 MB / 2.083 GB, free: 153.2 MB / 0.9323 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001014/5.949, allocations: 1.305 MB / 2.084 GB, free: 152.5 MB / 0.9323 GB Notification: Performance of simCode: alias equations: time 0.003342/5.952, allocations: 0.4948 MB / 2.084 GB, free: 152.5 MB / 0.9323 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001338/5.954, allocations: 0.5741 MB / 2.085 GB, free: 152.5 MB / 0.9323 GB Notification: Performance of SimCode: time 1.102e-06/5.954, allocations: 3.719 kB / 2.085 GB, free: 152.5 MB / 0.9323 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1356/6.089, allocations: 48.23 MB / 2.132 GB, free: 150.1 MB / 0.9323 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002318/6.09, allocations: 209 kB / 2.132 GB, free: 149.8 MB / 0.9323 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.128/11.22, allocations: 0 / 2.132 GB, free: 149.8 MB / 0.9323 GB (rm -f Buildings_8.0.0_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.pipe ; mkfifo Buildings_8.0.0_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.pipe >> ../files/Buildings_8.0.0_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_BoreholeSegment_fmu --startTime=0 --stopTime=1.5768e+08 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_BoreholeSegment.fmu > Buildings_8.0.0_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.pipe 2>&1)