Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment,fileNamePrefix="Buildings_9_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_BoreholeSegment",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment,fileNamePrefix="Buildings_9_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 9.1.1-maint.9.1.x/package.mo): time 2.304/2.304, allocations: 387.1 MB / 399.7 MB, free: 9.477 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.001151/0.001151, allocations: 184.8 kB / 492.3 MB, free: 0.6016 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.496/1.496, allocations: 221.3 MB / 0.7871 GB, free: 12.9 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.00092/0.0009201, allocations: 94.14 kB / 0.9267 GB, free: 13.96 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.417e-05/3.427e-05, allocations: 0 / 1.073 GB, free: 180.3 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2781/0.2781, allocations: 142.3 MB / 1.212 GB, free: 38.43 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.263/1.541, allocations: 442.3 MB / 1.644 GB, free: 4.508 MB / 1.057 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003276/1.542, allocations: 113.5 kB / 1.645 GB, free: 4.445 MB / 1.057 GB Notification: Performance of FrontEnd - DAE generated: time 3.149/4.69, allocations: 0.6636 GB / 2.308 GB, free: 248.4 MB / 1.151 GB Notification: Performance of FrontEnd: time 1.854e-06/4.691, allocations: 0 / 2.308 GB, free: 248.4 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.0003276/4.691, allocations: 43.5 kB / 2.308 GB, free: 248.4 MB / 1.151 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.00807/4.699, allocations: 2.038 MB / 2.31 GB, free: 247.6 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 6.093e-05/4.699, allocations: 15.06 kB / 2.31 GB, free: 247.6 MB / 1.151 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000657/4.7, allocations: 159.9 kB / 2.31 GB, free: 247.6 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001389/4.701, allocations: 209 kB / 2.311 GB, free: 247.5 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006301/4.707, allocations: 2.076 MB / 2.313 GB, free: 247.1 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001327/4.708, allocations: 98.12 kB / 2.313 GB, free: 247.1 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007156/4.708, allocations: 137.7 kB / 2.313 GB, free: 247.1 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003403/4.712, allocations: 1.191 MB / 2.314 GB, free: 247 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.322e-05/4.712, allocations: 3.844 kB / 2.314 GB, free: 247 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002062/4.712, allocations: 47.25 kB / 2.314 GB, free: 247 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.279e-05/4.712, allocations: 31.73 kB / 2.314 GB, free: 247 MB / 1.151 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00201/4.714, allocations: 0.9006 MB / 2.315 GB, free: 246.9 MB / 1.151 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.01246/4.727, allocations: 6.957 MB / 2.322 GB, free: 244.3 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002336/4.729, allocations: 1.077 MB / 2.323 GB, free: 244.2 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006462/4.73, allocations: 448.1 kB / 2.323 GB, free: 244.2 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005824/4.73, allocations: 0.6077 MB / 2.324 GB, free: 243.5 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006735/4.731, allocations: 435.2 kB / 2.324 GB, free: 243.5 MB / 1.151 GB Notification: Performance of pre-optimization done (n=78): time 2.956e-06/4.731, allocations: 0 / 2.324 GB, free: 243.5 MB / 1.151 GB Notification: Performance of matching and sorting (n=82): time 0.005268/4.736, allocations: 2.282 MB / 2.326 GB, free: 242.9 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.9e-05/4.736, allocations: 63.91 kB / 2.327 GB, free: 242.8 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001854/4.738, allocations: 1.242 MB / 2.328 GB, free: 242.6 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 0.0002414/4.738, allocations: 54.64 kB / 2.328 GB, free: 242.6 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006137/4.739, allocations: 0.6869 MB / 2.328 GB, free: 242.3 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002962/4.739, allocations: 292.3 kB / 2.329 GB, free: 242.2 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.482e-05/4.739, allocations: 27.94 kB / 2.329 GB, free: 242.2 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 0.0001272/4.74, allocations: 355.9 kB / 2.329 GB, free: 241.9 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008511/4.74, allocations: 0.5472 MB / 2.33 GB, free: 241.9 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009828/4.741, allocations: 0.8371 MB / 2.33 GB, free: 241.6 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001016/4.742, allocations: 0.6752 MB / 2.331 GB, free: 241.5 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.632e-06/4.742, allocations: 7.25 kB / 2.331 GB, free: 241.5 MB / 1.151 GB Notification: Performance of matching and sorting (n=170) (initialization): time 0.002837/4.745, allocations: 1.742 MB / 2.333 GB, free: 241.4 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005566/4.746, allocations: 2.31 MB / 2.335 GB, free: 239 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.629e-05/4.746, allocations: 13.77 kB / 2.335 GB, free: 239 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007685/4.747, allocations: 265.9 kB / 2.335 GB, free: 239 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001301/4.748, allocations: 271.8 kB / 2.336 GB, free: 239 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001281/4.749, allocations: 1.578 MB / 2.337 GB, free: 237.9 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002852/4.752, allocations: 157.3 kB / 2.337 GB, free: 237.9 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000134/4.752, allocations: 58.14 kB / 2.337 GB, free: 237.9 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.374e-05/4.752, allocations: 3.844 kB / 2.337 GB, free: 237.9 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002532/4.755, allocations: 1.588 MB / 2.339 GB, free: 237.8 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.994e-05/4.755, allocations: 6.969 kB / 2.339 GB, free: 237.8 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006801/4.756, allocations: 255 kB / 2.339 GB, free: 237.8 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001088/4.757, allocations: 261.2 kB / 2.339 GB, free: 237.8 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009899/4.758, allocations: 0.9982 MB / 2.34 GB, free: 237.3 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002931/4.761, allocations: 157.9 kB / 2.341 GB, free: 237.3 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001345/4.761, allocations: 55.83 kB / 2.341 GB, free: 237.3 MB / 1.151 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.0004738/4.761, allocations: 179.2 kB / 2.341 GB, free: 237.2 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003469/4.762, allocations: 151.7 kB / 2.341 GB, free: 237.1 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002179/4.764, allocations: 1.056 MB / 2.342 GB, free: 237 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.731e-05/4.764, allocations: 7.781 kB / 2.342 GB, free: 237 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.266e-05/4.764, allocations: 3.844 kB / 2.342 GB, free: 237 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001286/4.765, allocations: 0.93 MB / 2.343 GB, free: 236.8 MB / 1.151 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.00483/4.77, allocations: 2.841 MB / 2.346 GB, free: 236.3 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.272e-06/4.77, allocations: 0 / 2.346 GB, free: 236.3 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006882/4.771, allocations: 154.8 kB / 2.346 GB, free: 236.3 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002894/4.771, allocations: 118.8 kB / 2.346 GB, free: 236.3 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.429e-05/4.771, allocations: 26.27 kB / 2.346 GB, free: 236.3 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003194/4.774, allocations: 5.252 MB / 2.351 GB, free: 231.7 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.894e-06/4.774, allocations: 3.938 kB / 2.351 GB, free: 231.7 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002547/4.777, allocations: 1.626 MB / 2.353 GB, free: 231.3 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009802/4.778, allocations: 372.5 kB / 2.353 GB, free: 231.1 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001794/4.778, allocations: 23.06 kB / 2.353 GB, free: 231.1 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001212/4.779, allocations: 96.23 kB / 2.353 GB, free: 231.1 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001535/4.779, allocations: 55.78 kB / 2.353 GB, free: 231.1 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.639e-05/4.779, allocations: 34.55 kB / 2.353 GB, free: 231.1 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.001454/4.781, allocations: 0.9358 MB / 2.354 GB, free: 231 MB / 1.151 GB Notification: Performance of sort global known variables: time 4.2e-07/4.781, allocations: 0 / 2.354 GB, free: 231 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.003727/4.785, allocations: 1.136 MB / 2.355 GB, free: 231 MB / 1.151 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.004229/4.789, allocations: 3.165 MB / 2.358 GB, free: 229.7 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.003969/4.793, allocations: 2.12 MB / 2.36 GB, free: 229.6 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 6.031e-06/4.793, allocations: 0 / 2.36 GB, free: 229.6 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.00108/4.794, allocations: 0.7881 MB / 2.361 GB, free: 229.2 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004031/4.798, allocations: 0.7615 MB / 2.362 GB, free: 229.1 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007424/4.806, allocations: 3.412 MB / 2.365 GB, free: 227.9 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007997/4.806, allocations: 1.311 MB / 2.366 GB, free: 227.2 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.002276/4.809, allocations: 0.5325 MB / 2.367 GB, free: 227.1 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007716/4.809, allocations: 0.5776 MB / 2.368 GB, free: 226.7 MB / 1.151 GB Notification: Performance of SimCode: time 1.012e-06/4.809, allocations: 3 kB / 2.368 GB, free: 226.7 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1019/4.911, allocations: 57.64 MB / 2.424 GB, free: 206.8 MB / 1.151 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001986/4.912, allocations: 248.8 kB / 2.424 GB, free: 206.5 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.662/9.573, allocations: 0 / 2.424 GB, free: 206.5 MB / 1.151 GB (rm -f Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.pipe ; mkfifo Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.pipe >> ../files/Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_BoreholeSegment_fmu --startTime=0 --stopTime=1.5768e+08 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_BoreholeSegment.fmu > Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.pipe 2>&1)