Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: translateModel(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment") translateModel(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.675/1.675, allocations: 292.6 MB / 307.5 MB, free: 5.18 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.00114/0.001139, allocations: 196.9 kB / 377.1 MB, free: 1.496 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.698/1.698, allocations: 205.4 MB / 0.6367 GB, free: 8.523 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.0009145/0.0009146, allocations: 95.23 kB / 0.751 GB, free: 63.06 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004133/0.0004134, allocations: 16 kB / 0.8748 GB, free: 11.15 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2905/0.291, allocations: 116.3 MB / 0.9884 GB, free: 6.691 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.592/1.883, allocations: 430.9 MB / 1.409 GB, free: 278.9 MB / 0.9323 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003728/1.883, allocations: 111.5 kB / 1.409 GB, free: 278.9 MB / 0.9323 GB Notification: Performance of FrontEnd - DAE generated: time 1.918/3.801, allocations: 0.6497 GB / 2.059 GB, free: 20.11 MB / 0.9323 GB Notification: Performance of FrontEnd: time 2.434e-06/3.801, allocations: 0 / 2.059 GB, free: 20.11 MB / 0.9323 GB Notification: Performance of Transformations before backend: time 0.0002825/3.802, allocations: 43.92 kB / 2.059 GB, free: 20.06 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.008489/3.81, allocations: 2.33 MB / 2.061 GB, free: 17.68 MB / 0.9323 GB Notification: Performance of prepare preOptimizeDAE: time 4.845e-05/3.81, allocations: 11.97 kB / 2.061 GB, free: 17.66 MB / 0.9323 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001435/3.812, allocations: 213.6 kB / 2.062 GB, free: 17.45 MB / 0.9323 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005822/3.818, allocations: 2.07 MB / 2.064 GB, free: 15.33 MB / 0.9323 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001167/3.818, allocations: 94.16 kB / 2.064 GB, free: 15.23 MB / 0.9323 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006522/3.818, allocations: 143.9 kB / 2.064 GB, free: 15.09 MB / 0.9323 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003061/3.821, allocations: 1.205 MB / 2.065 GB, free: 13.83 MB / 0.9323 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.184e-05/3.821, allocations: 3.938 kB / 2.065 GB, free: 13.82 MB / 0.9323 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001734/3.822, allocations: 48 kB / 2.065 GB, free: 13.78 MB / 0.9323 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.184e-05/3.822, allocations: 30.41 kB / 2.065 GB, free: 13.75 MB / 0.9323 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001812/3.824, allocations: 0.9139 MB / 2.066 GB, free: 12.83 MB / 0.9323 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.01329/3.837, allocations: 6.964 MB / 2.073 GB, free: 5.465 MB / 0.9323 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002697/3.84, allocations: 1.081 MB / 2.074 GB, free: 4.371 MB / 0.9323 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000583/3.84, allocations: 0.6057 MB / 2.074 GB, free: 3.637 MB / 0.9323 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007676/3.841, allocations: 444.3 kB / 2.075 GB, free: 3.191 MB / 0.9323 GB Notification: Performance of pre-optimization done (n=78): time 3.277e-06/3.841, allocations: 0 / 2.075 GB, free: 3.191 MB / 0.9323 GB Notification: Performance of matching and sorting (n=82): time 0.006953/3.848, allocations: 2.922 MB / 2.078 GB, free: 152 kB / 0.9323 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.789e-05/3.848, allocations: 64.06 kB / 2.078 GB, free: 76 kB / 0.9323 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003009/3.851, allocations: 1.248 MB / 2.079 GB, free: 14.81 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 0.000364/3.851, allocations: 53.7 kB / 2.079 GB, free: 14.75 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 0.001095/3.853, allocations: 0.6769 MB / 2.08 GB, free: 14.07 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004419/3.853, allocations: 295.8 kB / 2.08 GB, free: 13.78 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002269/3.853, allocations: 24 kB / 2.08 GB, free: 13.76 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 0.0002179/3.854, allocations: 357.9 kB / 2.08 GB, free: 13.4 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001252/3.855, allocations: 0.5583 MB / 2.081 GB, free: 12.84 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001554/3.856, allocations: 0.8688 MB / 2.082 GB, free: 11.86 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001385/3.858, allocations: 0.6779 MB / 2.082 GB, free: 11.18 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.305e-06/3.858, allocations: 4 kB / 2.082 GB, free: 11.18 MB / 0.948 GB Notification: Performance of matching and sorting (n=170) (initialization): time 0.003904/3.862, allocations: 1.77 MB / 2.084 GB, free: 9.395 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 0.001177/3.863, allocations: 2.306 MB / 2.086 GB, free: 6.945 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.529e-05/3.863, allocations: 8 kB / 2.086 GB, free: 6.938 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009185/3.864, allocations: 254.5 kB / 2.087 GB, free: 6.691 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001602/3.865, allocations: 279.5 kB / 2.087 GB, free: 6.418 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001649/3.867, allocations: 1.576 MB / 2.088 GB, free: 4.793 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003025/3.87, allocations: 151.7 kB / 2.089 GB, free: 4.645 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002581/3.87, allocations: 55.98 kB / 2.089 GB, free: 4.59 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.555e-05/3.87, allocations: 7.953 kB / 2.089 GB, free: 4.582 MB / 0.948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00338/3.874, allocations: 1.609 MB / 2.09 GB, free: 2.969 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.706e-05/3.874, allocations: 8 kB / 2.09 GB, free: 2.961 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006773/3.875, allocations: 253.7 kB / 2.09 GB, free: 2.711 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001381/3.876, allocations: 263.6 kB / 2.091 GB, free: 2.453 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001175/3.877, allocations: 0.9972 MB / 2.092 GB, free: 1.43 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003069/3.88, allocations: 151.6 kB / 2.092 GB, free: 1.281 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002813/3.881, allocations: 59.94 kB / 2.092 GB, free: 1.223 MB / 0.948 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.001788/3.882, allocations: 0.4991 MB / 2.092 GB, free: 0.7148 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007499/3.883, allocations: 146.1 kB / 2.093 GB, free: 0.5703 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.5849/4.468, allocations: 1.058 MB / 2.094 GB, free: 148.3 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.073e-05/4.468, allocations: 10.44 kB / 2.094 GB, free: 148.3 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.088e-05/4.468, allocations: 0.625 kB / 2.094 GB, free: 148.3 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001367/4.47, allocations: 0.9508 MB / 2.094 GB, free: 148.1 MB / 0.948 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.004844/4.474, allocations: 2.843 MB / 2.097 GB, free: 147.7 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.372e-06/4.474, allocations: 2.906 kB / 2.097 GB, free: 147.7 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006862/4.475, allocations: 143.6 kB / 2.097 GB, free: 147.7 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002698/4.475, allocations: 120.7 kB / 2.098 GB, free: 147.7 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.371e-05/4.475, allocations: 31.66 kB / 2.098 GB, free: 147.7 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003001/4.478, allocations: 5.282 MB / 2.103 GB, free: 143.1 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/4.478, allocations: 2.938 kB / 2.103 GB, free: 143.1 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002534/4.481, allocations: 1.649 MB / 2.104 GB, free: 142.8 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009287/4.482, allocations: 369.9 kB / 2.105 GB, free: 142.7 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001855/4.482, allocations: 30.17 kB / 2.105 GB, free: 142.7 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001284/4.483, allocations: 90.8 kB / 2.105 GB, free: 142.7 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001522/4.484, allocations: 66.38 kB / 2.105 GB, free: 142.7 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.441e-05/4.484, allocations: 27.08 kB / 2.105 GB, free: 142.7 MB / 0.948 GB Notification: Performance of sorting global known variables: time 0.00142/4.485, allocations: 0.9466 MB / 2.106 GB, free: 142.6 MB / 0.948 GB Notification: Performance of sort global known variables: time 9.72e-07/4.485, allocations: 0 / 2.106 GB, free: 142.6 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.003673/4.489, allocations: 1.144 MB / 2.107 GB, free: 142.6 MB / 0.948 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.002446/4.491, allocations: 0.8094 MB / 2.108 GB, free: 142.5 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.005229/4.496, allocations: 2.097 MB / 2.11 GB, free: 142.4 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 6.121e-06/4.497, allocations: 0.625 kB / 2.11 GB, free: 142.4 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 0.001263/4.498, allocations: 0.8001 MB / 2.111 GB, free: 142.1 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004144/4.502, allocations: 0.7648 MB / 2.111 GB, free: 142.1 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006565/4.509, allocations: 4.191 MB / 2.115 GB, free: 140.6 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001038/4.51, allocations: 1.306 MB / 2.117 GB, free: 139.9 MB / 0.948 GB Notification: Performance of simCode: alias equations: time 0.002362/4.512, allocations: 453.1 kB / 2.117 GB, free: 139.8 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004305/4.512, allocations: 120.2 kB / 2.117 GB, free: 139.8 MB / 0.948 GB Notification: Performance of SimCode: time 1.021e-06/4.512, allocations: 1.375 kB / 2.117 GB, free: 139.8 MB / 0.948 GB Notification: Performance of Templates: time 0.06187/4.574, allocations: 39.39 MB / 2.156 GB, free: 138.7 MB / 0.948 GB make -j1 -f Buildings_8_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.makefile (rm -f Buildings_8_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.pipe ; mkfifo Buildings_8_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.pipe >> ../files/Buildings_8_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.sim & ./Buildings_8_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.pipe 2>&1)