Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.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.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: translateModel(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_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_maint.8.0.x_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.692/1.692, allocations: 285.4 MB / 298 MB, free: 5.977 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.001152/0.001153, allocations: 180.8 kB / 366.4 MB, free: 2.082 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.311/1.311, allocations: 205.1 MB / 0.6248 GB, free: 7.742 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.0009548/0.0009549, allocations: 95.3 kB / 0.738 GB, free: 40.24 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.801e-05/2.819e-05, allocations: 8 kB / 0.8583 GB, free: 13.07 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6139/0.614, allocations: 115.3 MB / 0.9709 GB, free: 77.74 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.005/1.619, allocations: 429.9 MB / 1.391 GB, free: 130.5 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002509/1.619, allocations: 108.3 kB / 1.391 GB, free: 130.5 MB / 0.8542 GB Notification: Performance of FrontEnd - DAE generated: time 2.633/4.253, allocations: 0.6479 GB / 2.039 GB, free: 179.3 MB / 0.948 GB Notification: Performance of FrontEnd: time 2.295e-06/4.253, allocations: 0 / 2.039 GB, free: 179.3 MB / 0.948 GB Notification: Performance of Transformations before backend: time 0.0004605/4.253, allocations: 44.95 kB / 2.039 GB, free: 179.3 MB / 0.948 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.01153/4.265, allocations: 2.028 MB / 2.041 GB, free: 178.7 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 7.975e-05/4.265, allocations: 9.469 kB / 2.041 GB, free: 178.7 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002335/4.267, allocations: 215 kB / 2.041 GB, free: 178.6 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007702/4.275, allocations: 2.046 MB / 2.043 GB, free: 178.2 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001874/4.275, allocations: 101.7 kB / 2.043 GB, free: 178.2 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007803/4.276, allocations: 144.2 kB / 2.043 GB, free: 178.2 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003707/4.28, allocations: 1.184 MB / 2.044 GB, free: 178.1 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.813e-05/4.28, allocations: 2.25 kB / 2.044 GB, free: 178.1 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001864/4.28, allocations: 45.48 kB / 2.044 GB, free: 178.1 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.41e-05/4.28, allocations: 32.66 kB / 2.044 GB, free: 178.1 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002084/4.282, allocations: 0.8978 MB / 2.045 GB, free: 178.1 MB / 0.948 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.0127/4.295, allocations: 6.963 MB / 2.052 GB, free: 175.4 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002449/4.297, allocations: 1.078 MB / 2.053 GB, free: 175.4 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006726/4.298, allocations: 448.7 kB / 2.054 GB, free: 175.4 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005749/4.299, allocations: 0.6015 MB / 2.054 GB, free: 174.7 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007277/4.299, allocations: 441.3 kB / 2.055 GB, free: 174.7 MB / 0.948 GB Notification: Performance of pre-optimization done (n=78): time 2.665e-06/4.299, allocations: 0 / 2.055 GB, free: 174.7 MB / 0.948 GB Notification: Performance of matching and sorting (n=82): time 0.005572/4.305, allocations: 2.283 MB / 2.057 GB, free: 174.1 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.321e-05/4.305, allocations: 65.86 kB / 2.057 GB, free: 174 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002074/4.307, allocations: 1.236 MB / 2.058 GB, free: 173.8 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 0.0001358/4.307, allocations: 53.42 kB / 2.058 GB, free: 173.8 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006809/4.308, allocations: 0.6791 MB / 2.059 GB, free: 173.6 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003327/4.308, allocations: 301.3 kB / 2.059 GB, free: 173.4 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.13e-05/4.308, allocations: 27.22 kB / 2.059 GB, free: 173.4 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 0.0001684/4.308, allocations: 359.8 kB / 2.059 GB, free: 173.1 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001204/4.31, allocations: 0.5466 MB / 2.06 GB, free: 173.1 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001418/4.311, allocations: 0.8513 MB / 2.061 GB, free: 172.8 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001445/4.313, allocations: 0.6678 MB / 2.061 GB, free: 172.8 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.745e-06/4.313, allocations: 1.219 kB / 2.061 GB, free: 172.8 MB / 0.948 GB Notification: Performance of matching and sorting (n=170) (initialization): time 0.00381/4.316, allocations: 1.754 MB / 2.063 GB, free: 172.6 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005443/4.317, allocations: 2.305 MB / 2.065 GB, free: 170.3 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.624e-05/4.317, allocations: 7.5 kB / 2.065 GB, free: 170.3 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008231/4.318, allocations: 263.2 kB / 2.066 GB, free: 170.2 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001358/4.319, allocations: 273.2 kB / 2.066 GB, free: 170.2 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001275/4.32, allocations: 1.576 MB / 2.067 GB, free: 169.1 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002915/4.323, allocations: 171.2 kB / 2.068 GB, free: 169.1 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001457/4.324, allocations: 56.3 kB / 2.068 GB, free: 169.1 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.417e-05/4.324, allocations: 5.344 kB / 2.068 GB, free: 169.1 MB / 0.948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002763/4.326, allocations: 1.592 MB / 2.069 GB, free: 169.1 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.914e-05/4.326, allocations: 9.5 kB / 2.069 GB, free: 169.1 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006954/4.327, allocations: 248.4 kB / 2.07 GB, free: 169.1 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001161/4.328, allocations: 262.1 kB / 2.07 GB, free: 169.1 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009752/4.329, allocations: 0.9815 MB / 2.071 GB, free: 168.5 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002854/4.332, allocations: 163 kB / 2.071 GB, free: 168.5 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001444/4.332, allocations: 58.28 kB / 2.071 GB, free: 168.5 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 () * 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.0003826/4.333, allocations: 181.1 kB / 2.071 GB, free: 168.4 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003607/4.333, allocations: 147.1 kB / 2.071 GB, free: 168.3 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001992/4.335, allocations: 1.06 MB / 2.072 GB, free: 168.2 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.611e-05/4.335, allocations: 11.14 kB / 2.072 GB, free: 168.2 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.278e-06/4.335, allocations: 3.688 kB / 2.072 GB, free: 168.2 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001236/4.336, allocations: 0.9315 MB / 2.073 GB, free: 168 MB / 0.948 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.004576/4.341, allocations: 2.835 MB / 2.076 GB, free: 167.6 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.391e-06/4.341, allocations: 2.938 kB / 2.076 GB, free: 167.6 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006654/4.342, allocations: 149.3 kB / 2.076 GB, free: 167.6 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002769/4.342, allocations: 120.3 kB / 2.076 GB, free: 167.5 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.177e-05/4.342, allocations: 28.88 kB / 2.076 GB, free: 167.5 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003118/4.345, allocations: 5.259 MB / 2.081 GB, free: 162.9 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/4.345, allocations: 0 / 2.081 GB, free: 162.9 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002239/4.347, allocations: 1.62 MB / 2.083 GB, free: 162.5 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00088/4.348, allocations: 363.8 kB / 2.083 GB, free: 162.4 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001802/4.348, allocations: 29.44 kB / 2.083 GB, free: 162.4 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001208/4.35, allocations: 93.47 kB / 2.083 GB, free: 162.4 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001247/4.35, allocations: 60.14 kB / 2.084 GB, free: 162.4 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.812e-05/4.35, allocations: 36.58 kB / 2.084 GB, free: 162.4 MB / 0.948 GB Notification: Performance of sorting global known variables: time 0.001325/4.351, allocations: 0.9306 MB / 2.084 GB, free: 162.2 MB / 0.948 GB Notification: Performance of sort global known variables: time 1.51e-07/4.351, allocations: 0 / 2.084 GB, free: 162.2 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.003699/4.355, allocations: 1.131 MB / 2.086 GB, free: 162.2 MB / 0.948 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.0016/4.356, allocations: 0.8345 MB / 2.086 GB, free: 162 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.003596/4.36, allocations: 2.124 MB / 2.088 GB, free: 161.9 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 3.577e-06/4.36, allocations: 0 / 2.088 GB, free: 161.9 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 0.000921/4.361, allocations: 0.7817 MB / 2.089 GB, free: 161.5 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003541/4.365, allocations: 0.7706 MB / 2.09 GB, free: 161.5 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004765/4.369, allocations: 2.974 MB / 2.093 GB, free: 160.8 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006873/4.37, allocations: 1.314 MB / 2.094 GB, free: 160.1 MB / 0.948 GB Notification: Performance of simCode: alias equations: time 0.002124/4.372, allocations: 0.5344 MB / 2.095 GB, free: 160.1 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002971/4.373, allocations: 98.72 kB / 2.095 GB, free: 160.1 MB / 0.948 GB Notification: Performance of SimCode: time 9.62e-07/4.373, allocations: 0 / 2.095 GB, free: 160.1 MB / 0.948 GB Notification: Performance of Templates: time 0.0657/4.438, allocations: 42.27 MB / 2.136 GB, free: 158.2 MB / 0.948 GB make -j1 -f Buildings_maint.8.0.x_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.makefile (rm -f Buildings_maint.8.0.x_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.sim & ./Buildings_maint.8.0.x_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.8.0.x_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.pipe 2>&1)