Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXOneUTube.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXOneUTube,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|realExpression.y|Rb_ref.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXOneUTube") translateModel(Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXOneUTube,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|realExpression.y|Rb_ref.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXOneUTube") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.431/1.431, allocations: 249.3 MB / 261.8 MB, free: 5.938 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001266/0.001266, allocations: 162.7 kB / 321.3 MB, free: 14.64 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.451/1.451, allocations: 205.2 MB / 0.572 GB, free: 10.67 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008239/0.0008239, allocations: 86.42 kB / 0.6764 GB, free: 15.65 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 2.887e-05/2.889e-05, allocations: 4 kB / 0.788 GB, free: 97.05 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.22/0.22, allocations: 106.3 MB / 0.8918 GB, free: 6.621 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.502/1.722, allocations: 405.9 MB / 1.288 GB, free: 318.1 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0005142/1.723, allocations: 128.5 kB / 1.288 GB, free: 318.1 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 1.613/3.336, allocations: 475.6 MB / 1.753 GB, free: 170 MB / 0.8698 GB Notification: Performance of FrontEnd: time 1.984e-06/3.336, allocations: 0 / 1.753 GB, free: 170 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 0.0001624/3.336, allocations: 50 kB / 1.753 GB, free: 170 MB / 0.8698 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 264 * Number of variables: 264 Notification: Performance of Generate backend data structure: time 0.004325/3.34, allocations: 1.941 MB / 1.755 GB, free: 168.6 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.549e-05/3.34, allocations: 7.125 kB / 1.755 GB, free: 168.6 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005949/3.341, allocations: 205 kB / 1.755 GB, free: 168.5 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003101/3.344, allocations: 1.694 MB / 1.756 GB, free: 167.4 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.821e-05/3.344, allocations: 83.45 kB / 1.757 GB, free: 167.3 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001451/3.344, allocations: 119.7 kB / 1.757 GB, free: 167.3 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001718/3.346, allocations: 1.046 MB / 1.758 GB, free: 166.6 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.741e-05/3.346, allocations: 3.625 kB / 1.758 GB, free: 166.6 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.231e-05/3.346, allocations: 46.22 kB / 1.758 GB, free: 166.6 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.932e-05/3.346, allocations: 24.91 kB / 1.758 GB, free: 166.6 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001301/3.347, allocations: 0.7748 MB / 1.759 GB, free: 166.3 MB / 0.8698 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.007223/3.355, allocations: 6.482 MB / 1.765 GB, free: 160.5 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008661/3.356, allocations: 0.5477 MB / 1.765 GB, free: 160.2 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004422/3.356, allocations: 338.2 kB / 1.766 GB, free: 160.1 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008727/3.357, allocations: 1.272 MB / 1.767 GB, free: 158.6 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.855e-05/3.357, allocations: 42.72 kB / 1.767 GB, free: 158.5 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=68): time 3.827e-06/3.357, allocations: 0 / 1.767 GB, free: 158.5 MB / 0.8698 GB Notification: Performance of matching and sorting (n=68): time 0.001458/3.358, allocations: 0.7164 MB / 1.768 GB, free: 158.2 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.997e-05/3.358, allocations: 89.42 kB / 1.768 GB, free: 158.1 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00181/3.36, allocations: 1.355 MB / 1.769 GB, free: 157.4 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 6.119e-05/3.36, allocations: 36.86 kB / 1.769 GB, free: 157.4 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004936/3.361, allocations: 0.7154 MB / 1.77 GB, free: 156.7 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001974/3.361, allocations: 241.2 kB / 1.77 GB, free: 156.5 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.774e-05/3.361, allocations: 19.41 kB / 1.77 GB, free: 156.5 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 8.824e-05/3.361, allocations: 341.1 kB / 1.77 GB, free: 156.2 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003968/3.362, allocations: 262.5 kB / 1.771 GB, free: 156.1 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005359/3.362, allocations: 495.2 kB / 1.771 GB, free: 155.7 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005108/3.363, allocations: 349 kB / 1.771 GB, free: 155.5 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.098e-06/3.363, allocations: 0 / 1.771 GB, free: 155.5 MB / 0.8698 GB Notification: Performance of matching and sorting (n=108) (initialization): time 0.001535/3.364, allocations: 0.9677 MB / 1.772 GB, free: 155 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002988/3.365, allocations: 1.354 MB / 1.774 GB, free: 153.6 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.976e-05/3.365, allocations: 3.781 kB / 1.774 GB, free: 153.6 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002844/3.365, allocations: 74.38 kB / 1.774 GB, free: 153.6 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006175/3.366, allocations: 182.1 kB / 1.774 GB, free: 153.5 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001946/3.367, allocations: 2.967 MB / 1.777 GB, free: 150.5 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00143/3.369, allocations: 151.2 kB / 1.777 GB, free: 150.4 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.455e-05/3.369, allocations: 44.92 kB / 1.777 GB, free: 150.4 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.11e-05/3.369, allocations: 3.094 kB / 1.777 GB, free: 150.4 MB / 0.8698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001259/3.37, allocations: 0.797 MB / 1.778 GB, free: 150 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.443e-05/3.37, allocations: 7.031 kB / 1.778 GB, free: 150 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001323/3.37, allocations: 59.36 kB / 1.778 GB, free: 150 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005706/3.371, allocations: 182.2 kB / 1.778 GB, free: 150 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001561/3.373, allocations: 2.966 MB / 1.781 GB, free: 147 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001365/3.374, allocations: 128.4 kB / 1.781 GB, free: 146.9 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.08e-05/3.374, allocations: 41.92 kB / 1.781 GB, free: 146.9 MB / 0.8698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (99): * Single equations (assignments): 96 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002405/3.374, allocations: 158.6 kB / 1.781 GB, free: 146.8 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002678/3.375, allocations: 155.9 kB / 1.781 GB, free: 146.7 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001807/3.376, allocations: 0.9689 MB / 1.782 GB, free: 146.2 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.246e-05/3.376, allocations: 7.875 kB / 1.782 GB, free: 146.2 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/3.376, allocations: 3.938 kB / 1.782 GB, free: 146.2 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0009517/3.377, allocations: 0.7715 MB / 1.783 GB, free: 145.7 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00407/3.382, allocations: 2.629 MB / 1.786 GB, free: 143.8 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.384e-06/3.382, allocations: 3.656 kB / 1.786 GB, free: 143.8 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005036/3.382, allocations: 139.1 kB / 1.786 GB, free: 143.7 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002019/3.382, allocations: 72.56 kB / 1.786 GB, free: 143.7 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.748e-05/3.382, allocations: 26.17 kB / 1.786 GB, free: 143.7 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001767/3.384, allocations: 2.962 MB / 1.789 GB, free: 140.7 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.181e-06/3.384, allocations: 11.48 kB / 1.789 GB, free: 140.7 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00204/3.386, allocations: 1.579 MB / 1.79 GB, free: 139.6 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008167/3.387, allocations: 369.2 kB / 1.791 GB, free: 139.3 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001777/3.387, allocations: 23.14 kB / 1.791 GB, free: 139.2 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007174/3.388, allocations: 54 kB / 1.791 GB, free: 139.2 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.971e-05/3.388, allocations: 57.5 kB / 1.791 GB, free: 139.2 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.511e-05/3.388, allocations: 31.92 kB / 1.791 GB, free: 139.2 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 0.001596/3.39, allocations: 1.069 MB / 1.792 GB, free: 138.7 MB / 0.8698 GB Notification: Performance of sort global known variables: time 1.41e-07/3.39, allocations: 0 / 1.792 GB, free: 138.7 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.003982/3.394, allocations: 1.201 MB / 1.793 GB, free: 138.3 MB / 0.8698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 6 (intHex.vol1.dynBal.U,intHex.vol2.dynBal.U,intHex.intResUTub.capFil1.T,intHex.intResUTub.capFil2.T,senTem.T,senTem1.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (70): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 7 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002839/3.397, allocations: 1.282 MB / 1.794 GB, free: 137.8 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.002532/3.399, allocations: 1.688 MB / 1.796 GB, free: 136.8 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 9.698e-06/3.399, allocations: 6.25 kB / 1.796 GB, free: 136.8 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.0006426/3.4, allocations: 0.5874 MB / 1.797 GB, free: 136.4 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004254/3.404, allocations: 0.7953 MB / 1.797 GB, free: 136.1 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003975/3.408, allocations: 2.303 MB / 1.8 GB, free: 134.9 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007455/3.409, allocations: 1.306 MB / 1.801 GB, free: 133.9 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 0.002211/3.411, allocations: 0.5008 MB / 1.801 GB, free: 133.6 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002135/3.411, allocations: 99.41 kB / 1.802 GB, free: 133.5 MB / 0.8698 GB Notification: Performance of SimCode: time 9.42e-07/3.411, allocations: 0 / 1.802 GB, free: 133.5 MB / 0.8698 GB Notification: Performance of Templates: time 0.06619/3.477, allocations: 43.94 MB / 1.844 GB, free: 90.55 MB / 0.8698 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXOneUTube.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXOneUTube.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXOneUTube.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXOneUTube.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXOneUTube.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXOneUTube -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXOneUTube.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXOneUTube_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalHEXOneUTube.csv","../files/Buildings_maint.7.0.x_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalHEXOneUTube.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches