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.239/2.239, allocations: 390.3 MB / 405.3 MB, free: 13.5 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.001135/0.001135, allocations: 185.1 kB / 498.1 MB, free: 5.742 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.51/1.51, allocations: 223.1 MB / 0.7948 GB, free: 17.93 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.0009007/0.0009006, allocations: 100.2 kB / 0.9346 GB, free: 6.242 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003703/0.0003702, allocations: 6.938 kB / 1.084 GB, free: 221.4 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2735/0.2739, allocations: 142.3 MB / 1.223 GB, free: 114.2 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9759/1.25, allocations: 442.4 MB / 1.655 GB, free: 2.867 MB / 0.9636 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003175/1.25, allocations: 112.3 kB / 1.655 GB, free: 2.805 MB / 0.9636 GB Notification: Performance of FrontEnd - DAE generated: time 1.803/3.053, allocations: 0.6655 GB / 2.321 GB, free: 8.859 MB / 1.167 GB Notification: Performance of FrontEnd: time 1.332e-06/3.053, allocations: 0 / 2.321 GB, free: 8.859 MB / 1.167 GB Notification: Performance of Transformations before backend: time 0.0002343/3.053, allocations: 39.94 kB / 2.321 GB, free: 8.82 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.006791/3.06, allocations: 2.333 MB / 2.323 GB, free: 6.43 MB / 1.167 GB Notification: Performance of prepare preOptimizeDAE: time 3.607e-05/3.06, allocations: 12.03 kB / 2.323 GB, free: 6.418 MB / 1.167 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004438/3.061, allocations: 164.8 kB / 2.323 GB, free: 6.246 MB / 1.167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008853/3.061, allocations: 218.3 kB / 2.323 GB, free: 6.031 MB / 1.167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004043/3.065, allocations: 2.093 MB / 2.325 GB, free: 3.883 MB / 1.167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.445e-05/3.066, allocations: 98.16 kB / 2.325 GB, free: 3.785 MB / 1.167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001886/3.066, allocations: 136 kB / 2.325 GB, free: 3.652 MB / 1.167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001691/3.067, allocations: 1.204 MB / 2.327 GB, free: 2.387 MB / 1.167 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.931e-05/3.067, allocations: 3.906 kB / 2.327 GB, free: 2.383 MB / 1.167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.028e-05/3.068, allocations: 48 kB / 2.327 GB, free: 2.336 MB / 1.167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.938e-05/3.068, allocations: 28 kB / 2.327 GB, free: 2.309 MB / 1.167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001266/3.069, allocations: 0.9217 MB / 2.328 GB, free: 1.379 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.5812/3.65, allocations: 6.954 MB / 2.334 GB, free: 246.6 MB / 1.167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002648/3.653, allocations: 1.093 MB / 2.335 GB, free: 246.6 MB / 1.167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005156/3.653, allocations: 0.6022 MB / 2.336 GB, free: 245.9 MB / 1.167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006824/3.654, allocations: 438.3 kB / 2.336 GB, free: 245.9 MB / 1.167 GB Notification: Performance of pre-optimization done (n=78): time 3.096e-06/3.654, allocations: 0 / 2.336 GB, free: 245.9 MB / 1.167 GB Notification: Performance of matching and sorting (n=82): time 0.005569/3.66, allocations: 2.915 MB / 2.339 GB, free: 245 MB / 1.167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.917e-05/3.66, allocations: 68.22 kB / 2.339 GB, free: 245 MB / 1.167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001729/3.661, allocations: 1.26 MB / 2.341 GB, free: 244.8 MB / 1.167 GB Notification: Performance of collectPreVariables (initialization): time 9.931e-05/3.661, allocations: 54.17 kB / 2.341 GB, free: 244.8 MB / 1.167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005592/3.662, allocations: 0.6834 MB / 2.341 GB, free: 244.6 MB / 1.167 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002421/3.662, allocations: 292.7 kB / 2.342 GB, free: 244.4 MB / 1.167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.315e-05/3.662, allocations: 26.47 kB / 2.342 GB, free: 244.4 MB / 1.167 GB Notification: Performance of setup shared object (initialization): time 0.0001008/3.662, allocations: 359.8 kB / 2.342 GB, free: 244.1 MB / 1.167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009098/3.663, allocations: 0.5578 MB / 2.343 GB, free: 244.1 MB / 1.167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001074/3.664, allocations: 0.8519 MB / 2.343 GB, free: 243.8 MB / 1.167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00102/3.665, allocations: 0.6711 MB / 2.344 GB, free: 243.8 MB / 1.167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.148e-06/3.666, allocations: 2.5 kB / 2.344 GB, free: 243.8 MB / 1.167 GB Notification: Performance of matching and sorting (n=170) (initialization): time 0.002764/3.668, allocations: 1.764 MB / 2.346 GB, free: 243.7 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004052/3.669, allocations: 2.315 MB / 2.348 GB, free: 241.3 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.401e-05/3.669, allocations: 7.141 kB / 2.348 GB, free: 241.3 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006865/3.669, allocations: 254.5 kB / 2.348 GB, free: 241.3 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001396/3.671, allocations: 265.8 kB / 2.349 GB, free: 241.3 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001139/3.672, allocations: 1.587 MB / 2.35 GB, free: 240.2 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002405/3.674, allocations: 157.2 kB / 2.35 GB, free: 240.2 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001295/3.675, allocations: 56.25 kB / 2.35 GB, free: 240.2 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 1.057e-05/3.675, allocations: 4.406 kB / 2.35 GB, free: 240.2 MB / 1.167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002641/3.677, allocations: 1.61 MB / 2.352 GB, free: 240.1 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.104e-05/3.677, allocations: 11.19 kB / 2.352 GB, free: 240.1 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006199/3.678, allocations: 251.5 kB / 2.352 GB, free: 240.1 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001281/3.679, allocations: 262.2 kB / 2.352 GB, free: 240.1 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000995/3.68, allocations: 0.9877 MB / 2.353 GB, free: 239.6 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002264/3.682, allocations: 152.8 kB / 2.353 GB, free: 239.6 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001244/3.683, allocations: 56.41 kB / 2.354 GB, free: 239.6 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.000975/3.684, allocations: 0.4995 MB / 2.354 GB, free: 239.4 MB / 1.167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002175/3.684, allocations: 149 kB / 2.354 GB, free: 239.3 MB / 1.167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00188/3.686, allocations: 1.059 MB / 2.355 GB, free: 239.2 MB / 1.167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.696e-05/3.686, allocations: 13.36 kB / 2.355 GB, free: 239.2 MB / 1.167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.121e-05/3.686, allocations: 6.281 kB / 2.355 GB, free: 239.2 MB / 1.167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00148/3.687, allocations: 0.9451 MB / 2.356 GB, free: 239 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.004289/3.691, allocations: 2.851 MB / 2.359 GB, free: 238.5 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.32e-06/3.692, allocations: 0 / 2.359 GB, free: 238.5 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000685/3.692, allocations: 150.7 kB / 2.359 GB, free: 238.5 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002637/3.692, allocations: 121.6 kB / 2.359 GB, free: 238.5 MB / 1.167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.036e-05/3.693, allocations: 34 kB / 2.359 GB, free: 238.5 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002999/3.696, allocations: 5.29 MB / 2.364 GB, free: 233.9 MB / 1.167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/3.696, allocations: 0.625 kB / 2.364 GB, free: 233.9 MB / 1.167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002228/3.698, allocations: 1.649 MB / 2.366 GB, free: 233.5 MB / 1.167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007063/3.699, allocations: 371.9 kB / 2.366 GB, free: 233.4 MB / 1.167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001714/3.699, allocations: 29 kB / 2.366 GB, free: 233.4 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001246/3.7, allocations: 92.42 kB / 2.366 GB, free: 233.3 MB / 1.167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000114/3.7, allocations: 62.52 kB / 2.367 GB, free: 233.3 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.203e-05/3.7, allocations: 29.92 kB / 2.367 GB, free: 233.3 MB / 1.167 GB Notification: Performance of sorting global known variables: time 0.001162/3.701, allocations: 0.956 MB / 2.367 GB, free: 233.2 MB / 1.167 GB Notification: Performance of sort global known variables: time 1.51e-07/3.701, allocations: 2.656 kB / 2.367 GB, free: 233.2 MB / 1.167 GB Notification: Performance of remove unused functions: time 0.003285/3.705, allocations: 1.139 MB / 2.369 GB, free: 233.2 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.003412/3.708, allocations: 3.176 MB / 2.372 GB, free: 232 MB / 1.167 GB Notification: Performance of simCode: created initialization part: time 0.003257/3.711, allocations: 2.099 MB / 2.374 GB, free: 231.9 MB / 1.167 GB Notification: Performance of simCode: created event and clocks part: time 3.286e-06/3.711, allocations: 0 / 2.374 GB, free: 231.9 MB / 1.167 GB Notification: Performance of simCode: created simulation system equations: time 0.000848/3.712, allocations: 0.7984 MB / 2.375 GB, free: 231.6 MB / 1.167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002915/3.715, allocations: 0.7589 MB / 2.375 GB, free: 231.6 MB / 1.167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006918/3.722, allocations: 8.953 MB / 2.384 GB, free: 225.8 MB / 1.167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006496/3.723, allocations: 1.309 MB / 2.385 GB, free: 225 MB / 1.167 GB Notification: Performance of simCode: alias equations: time 0.001515/3.724, allocations: 455.4 kB / 2.386 GB, free: 225 MB / 1.167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007427/3.725, allocations: 0.615 MB / 2.386 GB, free: 225 MB / 1.167 GB Notification: Performance of SimCode: time 1.403e-06/3.725, allocations: 0 / 2.386 GB, free: 225 MB / 1.167 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07697/3.802, allocations: 54.66 MB / 2.44 GB, free: 223.7 MB / 1.167 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001733/3.802, allocations: 282.5 kB / 2.44 GB, free: 223.3 MB / 1.167 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.981/7.783, allocations: 0 / 2.44 GB, free: 223.3 MB / 1.167 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)