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.271/2.271, allocations: 390.3 MB / 402.8 MB, free: 6.688 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.001434/0.001434, allocations: 176.8 kB / 496.1 MB, free: 12.87 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.539/1.539, allocations: 221.3 MB / 0.7915 GB, free: 5.398 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.001103/0.001103, allocations: 83.97 kB / 0.9317 GB, free: 5.719 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.656e-05/3.673e-05, allocations: 4 kB / 1.079 GB, free: 140.4 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2896/0.2897, allocations: 143 MB / 1.219 GB, free: 13.41 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.255/1.545, allocations: 443.1 MB / 1.652 GB, free: 7.238 MB / 1.104 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003327/1.545, allocations: 111.9 kB / 1.652 GB, free: 7.129 MB / 1.104 GB Notification: Performance of FrontEnd - DAE generated: time 2.834/4.379, allocations: 0.6636 GB / 2.315 GB, free: 223.7 MB / 1.135 GB Notification: Performance of FrontEnd: time 3.386e-06/4.379, allocations: 3.125 kB / 2.315 GB, free: 223.7 MB / 1.135 GB Notification: Performance of Transformations before backend: time 0.0002483/4.379, allocations: 44.08 kB / 2.315 GB, free: 223.7 MB / 1.135 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.009558/4.389, allocations: 2.037 MB / 2.317 GB, free: 222.4 MB / 1.135 GB Notification: Performance of prepare preOptimizeDAE: time 8.26e-05/4.389, allocations: 7.25 kB / 2.317 GB, free: 222.4 MB / 1.135 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005585/4.389, allocations: 164.9 kB / 2.318 GB, free: 222.2 MB / 1.135 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001743/4.391, allocations: 216.5 kB / 2.318 GB, free: 222.1 MB / 1.135 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005539/4.397, allocations: 2.071 MB / 2.32 GB, free: 220.7 MB / 1.135 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.939e-05/4.397, allocations: 102 kB / 2.32 GB, free: 220.6 MB / 1.135 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002462/4.397, allocations: 145.8 kB / 2.32 GB, free: 220.6 MB / 1.135 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002024/4.399, allocations: 1.185 MB / 2.321 GB, free: 219.9 MB / 1.135 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.062e-05/4.399, allocations: 0 / 2.321 GB, free: 219.9 MB / 1.135 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001027/4.399, allocations: 45.78 kB / 2.321 GB, free: 219.8 MB / 1.135 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.868e-05/4.399, allocations: 39.05 kB / 2.321 GB, free: 219.8 MB / 1.135 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001361/4.401, allocations: 0.8897 MB / 2.322 GB, free: 219.4 MB / 1.135 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.01054/4.411, allocations: 6.955 MB / 2.329 GB, free: 213.7 MB / 1.135 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002272/4.414, allocations: 1.075 MB / 2.33 GB, free: 213.2 MB / 1.135 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006144/4.414, allocations: 443.9 kB / 2.33 GB, free: 213 MB / 1.135 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005465/4.415, allocations: 0.6071 MB / 2.331 GB, free: 212.3 MB / 1.135 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006342/4.415, allocations: 438.4 kB / 2.331 GB, free: 212.1 MB / 1.135 GB Notification: Performance of pre-optimization done (n=78): time 4.018e-06/4.415, allocations: 0 / 2.331 GB, free: 212.1 MB / 1.135 GB Notification: Performance of matching and sorting (n=82): time 0.004818/4.42, allocations: 2.287 MB / 2.334 GB, free: 209.8 MB / 1.135 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.605e-05/4.42, allocations: 60.19 kB / 2.334 GB, free: 209.8 MB / 1.135 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001636/4.422, allocations: 1.244 MB / 2.335 GB, free: 208.5 MB / 1.135 GB Notification: Performance of collectPreVariables (initialization): time 0.0001434/4.422, allocations: 53.7 kB / 2.335 GB, free: 208.4 MB / 1.135 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005518/4.423, allocations: 0.6829 MB / 2.336 GB, free: 207.8 MB / 1.135 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002401/4.423, allocations: 303.5 kB / 2.336 GB, free: 207.5 MB / 1.135 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.255e-05/4.423, allocations: 24 kB / 2.336 GB, free: 207.4 MB / 1.135 GB Notification: Performance of setup shared object (initialization): time 9.976e-05/4.423, allocations: 357.6 kB / 2.336 GB, free: 207.1 MB / 1.135 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008125/4.424, allocations: 0.5506 MB / 2.337 GB, free: 206.5 MB / 1.135 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009295/4.425, allocations: 0.8327 MB / 2.338 GB, free: 205.6 MB / 1.135 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009504/4.426, allocations: 0.675 MB / 2.338 GB, free: 204.9 MB / 1.135 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.071e-06/4.426, allocations: 7.953 kB / 2.338 GB, free: 204.9 MB / 1.135 GB Notification: Performance of matching and sorting (n=170) (initialization): time 0.002773/4.429, allocations: 1.747 MB / 2.34 GB, free: 203.2 MB / 1.135 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004724/4.429, allocations: 2.308 MB / 2.342 GB, free: 200.7 MB / 1.135 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.373e-05/4.429, allocations: 8 kB / 2.342 GB, free: 200.7 MB / 1.135 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007512/4.43, allocations: 263 kB / 2.343 GB, free: 200.5 MB / 1.135 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001316/4.431, allocations: 267.6 kB / 2.343 GB, free: 200.2 MB / 1.135 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001094/4.432, allocations: 1.583 MB / 2.344 GB, free: 198.6 MB / 1.135 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002806/4.435, allocations: 164.5 kB / 2.344 GB, free: 198.4 MB / 1.135 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001449/4.435, allocations: 59.92 kB / 2.345 GB, free: 198.4 MB / 1.135 GB Notification: Performance of prepare postOptimizeDAE: time 1.381e-05/4.435, allocations: 4 kB / 2.345 GB, free: 198.4 MB / 1.135 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002372/4.438, allocations: 1.592 MB / 2.346 GB, free: 196.8 MB / 1.135 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.859e-05/4.438, allocations: 8 kB / 2.346 GB, free: 196.8 MB / 1.135 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006446/4.438, allocations: 250.8 kB / 2.346 GB, free: 196.5 MB / 1.135 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001082/4.439, allocations: 261.8 kB / 2.347 GB, free: 196.3 MB / 1.135 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008309/4.44, allocations: 0.9888 MB / 2.348 GB, free: 195.3 MB / 1.135 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002708/4.443, allocations: 160.6 kB / 2.348 GB, free: 195.1 MB / 1.135 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001497/4.443, allocations: 59.97 kB / 2.348 GB, free: 195.1 MB / 1.135 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 () * 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.0003872/4.444, allocations: 185.1 kB / 2.348 GB, free: 194.9 MB / 1.135 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004525/4.444, allocations: 150.1 kB / 2.348 GB, free: 194.7 MB / 1.135 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002034/4.446, allocations: 1.044 MB / 2.349 GB, free: 193.7 MB / 1.135 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.489e-05/4.446, allocations: 8 kB / 2.349 GB, free: 193.7 MB / 1.135 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.403e-05/4.446, allocations: 10.62 kB / 2.349 GB, free: 193.6 MB / 1.135 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001201/4.447, allocations: 0.9314 MB / 2.35 GB, free: 192.7 MB / 1.135 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.005004/4.452, allocations: 2.852 MB / 2.353 GB, free: 189.8 MB / 1.135 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.764e-06/4.452, allocations: 0 / 2.353 GB, free: 189.8 MB / 1.135 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006927/4.453, allocations: 143.8 kB / 2.353 GB, free: 189.6 MB / 1.135 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000291/4.453, allocations: 121.3 kB / 2.353 GB, free: 189.5 MB / 1.135 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.072e-05/4.453, allocations: 27.98 kB / 2.353 GB, free: 189.5 MB / 1.135 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003072/4.457, allocations: 5.244 MB / 2.358 GB, free: 183.8 MB / 1.135 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/4.457, allocations: 0 / 2.358 GB, free: 183.8 MB / 1.135 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002331/4.459, allocations: 1.632 MB / 2.36 GB, free: 182.1 MB / 1.135 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001088/4.46, allocations: 371 kB / 2.36 GB, free: 181.7 MB / 1.135 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000489/4.46, allocations: 23.98 kB / 2.36 GB, free: 181.7 MB / 1.135 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001675/4.462, allocations: 93.53 kB / 2.36 GB, free: 181.6 MB / 1.135 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001396/4.462, allocations: 63.83 kB / 2.36 GB, free: 181.6 MB / 1.135 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.214e-05/4.462, allocations: 27.98 kB / 2.36 GB, free: 181.5 MB / 1.135 GB Notification: Performance of sorting global known variables: time 0.001763/4.464, allocations: 0.9457 MB / 2.361 GB, free: 180.6 MB / 1.135 GB Notification: Performance of sort global known variables: time 4.51e-07/4.464, allocations: 0 / 2.361 GB, free: 180.6 MB / 1.135 GB Notification: Performance of remove unused functions: time 0.004759/4.469, allocations: 1.138 MB / 2.362 GB, free: 179.5 MB / 1.135 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,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004548/4.474, allocations: 3.152 MB / 2.365 GB, free: 176.4 MB / 1.135 GB Notification: Performance of simCode: created initialization part: time 0.005189/4.479, allocations: 2.126 MB / 2.368 GB, free: 174.3 MB / 1.135 GB Notification: Performance of simCode: created event and clocks part: time 8.155e-06/4.479, allocations: 0 / 2.368 GB, free: 174.3 MB / 1.135 GB Notification: Performance of simCode: created simulation system equations: time 0.001174/4.48, allocations: 0.7852 MB / 2.368 GB, free: 173.5 MB / 1.135 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005057/4.485, allocations: 0.7511 MB / 2.369 GB, free: 172.8 MB / 1.135 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009039/4.494, allocations: 3.422 MB / 2.372 GB, free: 169.6 MB / 1.135 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000958/4.495, allocations: 1.315 MB / 2.374 GB, free: 168.3 MB / 1.135 GB Notification: Performance of simCode: alias equations: time 0.002747/4.498, allocations: 0.5336 MB / 2.374 GB, free: 167.8 MB / 1.135 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000905/4.499, allocations: 0.5774 MB / 2.375 GB, free: 167.2 MB / 1.135 GB Notification: Performance of SimCode: time 2.374e-06/4.499, allocations: 0 / 2.375 GB, free: 167.2 MB / 1.135 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.094/4.593, allocations: 57.64 MB / 2.431 GB, free: 110.7 MB / 1.135 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001844/4.593, allocations: 261.8 kB / 2.431 GB, free: 110.3 MB / 1.135 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.317/8.91, allocations: 1.719 kB / 2.431 GB, free: 110.3 MB / 1.135 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)