Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment,fileNamePrefix="Buildings_latest_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_BoreholeSegment",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment,fileNamePrefix="Buildings_latest_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 10.0.0-master/package.mo): time 2.316/2.316, allocations: 393.5 MB / 408.4 MB, free: 10.98 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001225/0.001225, allocations: 174.9 kB / 0.4901 GB, free: 2.242 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.671/1.671, allocations: 223.1 MB / 0.7992 GB, free: 15.66 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001026/0.001026, allocations: 102.2 kB / 0.9396 GB, free: 2.859 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003691/0.0003691, allocations: 9.516 kB / 1.09 GB, free: 212.8 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2639/0.2643, allocations: 143 MB / 1.229 GB, free: 85.36 MB / 0.8073 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.065/1.329, allocations: 443.2 MB / 1.662 GB, free: 15.12 MB / 1.01 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003061/1.33, allocations: 113.9 kB / 1.662 GB, free: 15.05 MB / 1.01 GB Notification: Performance of FrontEnd - DAE generated: time 2.651/3.981, allocations: 0.6654 GB / 2.328 GB, free: 248.2 MB / 1.167 GB Notification: Performance of FrontEnd: time 3.036e-06/3.981, allocations: 0 / 2.328 GB, free: 248.2 MB / 1.167 GB Notification: Performance of Transformations before backend: time 0.0003851/3.981, allocations: 41.25 kB / 2.328 GB, free: 248.2 MB / 1.167 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.009533/3.991, allocations: 2.351 MB / 2.33 GB, free: 247.5 MB / 1.167 GB Notification: Performance of prepare preOptimizeDAE: time 6.016e-05/3.991, allocations: 9.781 kB / 2.33 GB, free: 247.5 MB / 1.167 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006919/3.991, allocations: 162.4 kB / 2.33 GB, free: 247.5 MB / 1.167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001482/3.993, allocations: 215.7 kB / 2.33 GB, free: 247.4 MB / 1.167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006616/4, allocations: 2.088 MB / 2.332 GB, free: 247.1 MB / 1.167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001515/4, allocations: 98 kB / 2.332 GB, free: 247.1 MB / 1.167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006803/4, allocations: 138.1 kB / 2.333 GB, free: 247.1 MB / 1.167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003288/4.004, allocations: 1.207 MB / 2.334 GB, free: 246.9 MB / 1.167 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.568e-05/4.004, allocations: 11 kB / 2.334 GB, free: 246.9 MB / 1.167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001186/4.004, allocations: 44.25 kB / 2.334 GB, free: 246.9 MB / 1.167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.64e-05/4.004, allocations: 34.81 kB / 2.334 GB, free: 246.9 MB / 1.167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00168/4.006, allocations: 0.9094 MB / 2.335 GB, free: 246.9 MB / 1.167 GB Warning: The model contains alias variables with redundant start and/or conflicting 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.01208/4.018, allocations: 6.961 MB / 2.342 GB, free: 244.2 MB / 1.167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002521/4.02, allocations: 1.09 MB / 2.343 GB, free: 244.2 MB / 1.167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000576/4.021, allocations: 0.6027 MB / 2.343 GB, free: 243.6 MB / 1.167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006822/4.022, allocations: 438.2 kB / 2.344 GB, free: 243.5 MB / 1.167 GB Notification: Performance of pre-optimization done (n=78): time 3.116e-06/4.022, allocations: 0 / 2.344 GB, free: 243.5 MB / 1.167 GB Notification: Performance of matching and sorting (n=82): time 0.00681/4.028, allocations: 2.918 MB / 2.346 GB, free: 242.6 MB / 1.167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.861e-05/4.029, allocations: 71.72 kB / 2.347 GB, free: 242.6 MB / 1.167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00268/4.031, allocations: 1.257 MB / 2.348 GB, free: 242.4 MB / 1.167 GB Notification: Performance of collectPreVariables (initialization): time 0.0003337/4.032, allocations: 50.42 kB / 2.348 GB, free: 242.4 MB / 1.167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009771/4.033, allocations: 0.6888 MB / 2.348 GB, free: 242.2 MB / 1.167 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003456/4.033, allocations: 300.4 kB / 2.349 GB, free: 242 MB / 1.167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001988/4.033, allocations: 23.19 kB / 2.349 GB, free: 242 MB / 1.167 GB Notification: Performance of setup shared object (initialization): time 0.0001171/4.033, allocations: 359.5 kB / 2.349 GB, free: 241.7 MB / 1.167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001159/4.034, allocations: 0.553 MB / 2.35 GB, free: 241.7 MB / 1.167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001167/4.036, allocations: 0.8475 MB / 2.351 GB, free: 241.4 MB / 1.167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001218/4.037, allocations: 0.6815 MB / 2.351 GB, free: 241.4 MB / 1.167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.907e-06/4.037, allocations: 2.938 kB / 2.351 GB, free: 241.4 MB / 1.167 GB Notification: Performance of matching and sorting (n=170) (initialization): time 0.003104/4.04, allocations: 1.768 MB / 2.353 GB, free: 241.3 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005272/4.041, allocations: 2.306 MB / 2.355 GB, free: 238.9 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.818e-05/4.041, allocations: 7.562 kB / 2.355 GB, free: 238.9 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007536/4.041, allocations: 256.1 kB / 2.355 GB, free: 238.9 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001491/4.043, allocations: 263.6 kB / 2.356 GB, free: 238.9 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001185/4.044, allocations: 1.584 MB / 2.357 GB, free: 237.8 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003018/4.047, allocations: 149.8 kB / 2.357 GB, free: 237.8 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001929/4.047, allocations: 58.83 kB / 2.357 GB, free: 237.8 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 1.515e-05/4.047, allocations: 11.12 kB / 2.357 GB, free: 237.8 MB / 1.167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002653/4.05, allocations: 1.611 MB / 2.359 GB, free: 237.7 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.495e-05/4.05, allocations: 3.875 kB / 2.359 GB, free: 237.7 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005692/4.051, allocations: 254.9 kB / 2.359 GB, free: 237.7 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001197/4.052, allocations: 257.7 kB / 2.359 GB, free: 237.7 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008753/4.053, allocations: 0.9935 MB / 2.36 GB, free: 237.2 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002741/4.055, allocations: 153 kB / 2.361 GB, free: 237.2 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001432/4.056, allocations: 54.83 kB / 2.361 GB, free: 237.2 MB / 1.167 GB 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 () * Number of clocked 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 {2 26} Notification: Performance of prepare postOptimizeDAE: time 0.001058/4.057, allocations: 0.5078 MB / 2.361 GB, free: 237 MB / 1.167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004716/4.057, allocations: 148 kB / 2.361 GB, free: 236.9 MB / 1.167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0022/4.059, allocations: 1.054 MB / 2.362 GB, free: 236.8 MB / 1.167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.777e-05/4.059, allocations: 12.91 kB / 2.362 GB, free: 236.8 MB / 1.167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.551e-05/4.059, allocations: 8.109 kB / 2.362 GB, free: 236.8 MB / 1.167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00147/4.061, allocations: 0.9489 MB / 2.363 GB, free: 236.6 MB / 1.167 GB Warning: The model contains alias variables with redundant start and/or conflicting 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.005564/4.066, allocations: 2.846 MB / 2.366 GB, free: 236.1 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.448e-06/4.066, allocations: 8.812 kB / 2.366 GB, free: 236.1 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007958/4.067, allocations: 148.8 kB / 2.366 GB, free: 236.1 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003372/4.068, allocations: 120.2 kB / 2.366 GB, free: 236.1 MB / 1.167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.138e-05/4.068, allocations: 28.52 kB / 2.366 GB, free: 236.1 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003693/4.071, allocations: 5.291 MB / 2.371 GB, free: 231.5 MB / 1.167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.727e-06/4.071, allocations: 5.844 kB / 2.372 GB, free: 231.5 MB / 1.167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002943/4.074, allocations: 1.641 MB / 2.373 GB, free: 231.1 MB / 1.167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001081/4.075, allocations: 375.5 kB / 2.373 GB, free: 230.9 MB / 1.167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000328/4.076, allocations: 29.27 kB / 2.373 GB, free: 230.9 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001646/4.077, allocations: 91.03 kB / 2.374 GB, free: 230.9 MB / 1.167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001594/4.078, allocations: 52.92 kB / 2.374 GB, free: 230.9 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.993e-05/4.078, allocations: 38.83 kB / 2.374 GB, free: 230.9 MB / 1.167 GB Notification: Performance of sorting global known variables: time 0.001518/4.079, allocations: 0.9534 MB / 2.375 GB, free: 230.8 MB / 1.167 GB Notification: Performance of sort global known variables: time 3.01e-07/4.079, allocations: 0 / 2.375 GB, free: 230.8 MB / 1.167 GB Notification: Performance of remove unused functions: time 0.003779/4.083, allocations: 1.148 MB / 2.376 GB, free: 230.7 MB / 1.167 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 14 (seg.pipFil.vol1.dynBal.U,seg.pipFil.vol2.dynBal.U,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) * Number of clocked states: 0 () * 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,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003999/4.087, allocations: 3.169 MB / 2.379 GB, free: 229.5 MB / 1.167 GB Notification: Performance of simCode: created initialization part: time 0.003956/4.091, allocations: 2.091 MB / 2.381 GB, free: 229.4 MB / 1.167 GB Notification: Performance of simCode: created event and clocks part: time 7.184e-06/4.091, allocations: 2.469 kB / 2.381 GB, free: 229.4 MB / 1.167 GB Notification: Performance of simCode: created simulation system equations: time 0.0009542/4.092, allocations: 0.8092 MB / 2.382 GB, free: 229 MB / 1.167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003707/4.096, allocations: 0.7579 MB / 2.382 GB, free: 229 MB / 1.167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008352/4.104, allocations: 8.954 MB / 2.391 GB, free: 223.1 MB / 1.167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007222/4.105, allocations: 1.32 MB / 2.392 GB, free: 222.4 MB / 1.167 GB Notification: Performance of simCode: alias equations: time 0.001829/4.107, allocations: 452.5 kB / 2.393 GB, free: 222.4 MB / 1.167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007983/4.108, allocations: 0.6113 MB / 2.393 GB, free: 222.4 MB / 1.167 GB Notification: Performance of SimCode: time 7.234e-06/4.108, allocations: 0 / 2.393 GB, free: 222.4 MB / 1.167 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07938/4.187, allocations: 54.67 MB / 2.447 GB, free: 220.6 MB / 1.167 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000182/4.187, allocations: 290 kB / 2.447 GB, free: 220.2 MB / 1.167 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.733/7.92, allocations: 2.031 kB / 2.447 GB, free: 220.2 MB / 1.167 GB (rm -f Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.pipe >> ../files/Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_BoreholeSegment_fmu --startTime=0 --stopTime=1.5768e+08 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_BoreholeSegment.fmu > Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.pipe 2>&1)