Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/Buildings 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gFun_int",fileNamePrefix="Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters") translateModel(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gFun_int",fileNamePrefix="Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001198/0.001197, allocations: 99.86 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001664/0.001664, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.419/1.419, allocations: 223.2 MB / 239.9 MB, free: 5.449 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.44/2.44, allocations: 390.3 MB / 0.6653 GB, free: 2.949 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.000412/0.0004121, allocations: 8 kB / 0.8146 GB, free: 14.25 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7698/0.7702, allocations: 142.3 MB / 0.9535 GB, free: 8.148 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters): time 0.001189/0.7714, allocations: 1.104 MB / 0.9546 GB, free: 7.27 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.003516/0.775, allocations: 2.785 MB / 0.9573 GB, free: 5.129 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.784e-05/0.775, allocations: 1 kB / 0.9573 GB, free: 5.129 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001227/0.7752, allocations: 7.922 kB / 0.9574 GB, free: 5.121 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001965/0.7754, allocations: 34.27 kB / 0.9574 GB, free: 5.094 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.002015/0.7774, allocations: 0.7188 MB / 0.9581 GB, free: 4.617 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001057/0.7775, allocations: 52 kB / 0.9581 GB, free: 4.586 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 5.422e-05/0.7776, allocations: 3.594 kB / 0.9581 GB, free: 4.586 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 6.551e-05/0.7776, allocations: 31.98 kB / 0.9582 GB, free: 4.57 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001936/0.7778, allocations: 149.5 kB / 0.9583 GB, free: 4.496 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.508e-05/0.7779, allocations: 17.69 kB / 0.9583 GB, free: 4.492 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0018/0.7797, allocations: 1.25 MB / 0.9596 GB, free: 3.855 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0002005/0.7799, allocations: 252.6 kB / 0.9598 GB, free: 3.73 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.000103/0.78, allocations: 111.7 kB / 0.9599 GB, free: 3.648 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.001345/0.7814, allocations: 0.9757 MB / 0.9609 GB, free: 3.125 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.156e-06/0.7814, allocations: 1.344 kB / 0.9609 GB, free: 3.125 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.974e-06/0.7814, allocations: 0 / 0.9609 GB, free: 3.125 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 8.486e-06/0.7814, allocations: 0 / 0.9609 GB, free: 3.125 MB / 0.7169 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.009681/0.7911, allocations: 1.165 MB / 0.962 GB, free: 2.18 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.593e-05/0.7912, allocations: 13.05 kB / 0.962 GB, free: 2.176 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003714/0.7915, allocations: 90.67 kB / 0.9621 GB, free: 2.109 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003856/0.7919, allocations: 352.6 kB / 0.9624 GB, free: 1.793 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.824e-05/0.792, allocations: 6.75 kB / 0.9624 GB, free: 1.789 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.875e-05/0.792, allocations: 12.77 kB / 0.9624 GB, free: 1.781 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005284/0.7925, allocations: 387.5 kB / 0.9628 GB, free: 1.664 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.118e-06/0.7926, allocations: 0 / 0.9628 GB, free: 1.664 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.446e-05/0.7926, allocations: 0 / 0.9628 GB, free: 1.664 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.705e-06/0.7926, allocations: 3.844 kB / 0.9628 GB, free: 1.664 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005219/0.7931, allocations: 435.3 kB / 0.9632 GB, free: 1.59 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006558/0.7938, allocations: 0.6394 MB / 0.9639 GB, free: 1.09 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006614/0.7945, allocations: 0.5604 MB / 0.9644 GB, free: 0.9531 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001054/0.7955, allocations: 1.037 MB / 0.9654 GB, free: 15.78 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005408/0.7961, allocations: 418.8 kB / 0.9658 GB, free: 15.63 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=8): time 1.744e-06/0.7961, allocations: 0 / 0.9658 GB, free: 15.63 MB / 0.7325 GB Notification: Performance of matching and sorting (n=8): time 0.001719/0.7978, allocations: 1.283 MB / 0.9671 GB, free: 15.34 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.046e-05/0.7979, allocations: 78.98 kB / 0.9671 GB, free: 15.25 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001413/0.7993, allocations: 1.195 MB / 0.9683 GB, free: 14.55 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 6.332e-05/0.7994, allocations: 31.8 kB / 0.9683 GB, free: 14.51 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002421/0.7996, allocations: 260.9 kB / 0.9686 GB, free: 14.28 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 4.508e-05/0.7997, allocations: 31.97 kB / 0.9686 GB, free: 14.25 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.23e-05/0.7997, allocations: 0 / 0.9686 GB, free: 14.25 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0002228/0.7999, allocations: 426.5 kB / 0.969 GB, free: 13.86 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001592/0.8015, allocations: 1.355 MB / 0.9704 GB, free: 13.29 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001809/0.8033, allocations: 1.492 MB / 0.9718 GB, free: 12.62 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001718/0.8051, allocations: 1.897 MB / 0.9737 GB, free: 11.05 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.848e-06/0.8051, allocations: 4 kB / 0.9737 GB, free: 11.04 MB / 0.7325 GB Notification: Performance of matching and sorting (n=317) (initialization): time 0.004482/0.8096, allocations: 3.938 MB / 0.9775 GB, free: 7.07 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 2.501e-05/0.8096, allocations: 9.25 kB / 0.9775 GB, free: 7.062 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.54e-05/0.8096, allocations: 0 / 0.9775 GB, free: 7.062 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.713e-05/0.8097, allocations: 0 / 0.9775 GB, free: 7.062 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001385/0.8098, allocations: 27.95 kB / 0.9775 GB, free: 7.035 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.849e-06/0.8098, allocations: 4 kB / 0.9776 GB, free: 7.031 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000738/0.8106, allocations: 224.3 kB / 0.9778 GB, free: 6.809 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.245e-05/0.8106, allocations: 23.98 kB / 0.9778 GB, free: 6.785 MB / 0.7325 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition1,$PRE.k,k,$PRE.t1,t1,$PRE.t2,t2,$PRE.gFun1,gFun1,$PRE.gFun2,gFun2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 13 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003454/0.811, allocations: 239.7 kB / 0.978 GB, free: 6.543 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.728e-05/0.811, allocations: 62.78 kB / 0.9781 GB, free: 6.48 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003061/0.8113, allocations: 82.83 kB / 0.9782 GB, free: 6.387 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.128e-06/0.8114, allocations: 0 / 0.9782 GB, free: 6.387 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.076e-05/0.8114, allocations: 8 kB / 0.9782 GB, free: 6.379 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.378e-06/0.8114, allocations: 0 / 0.9782 GB, free: 6.379 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004766/0.8119, allocations: 0.4889 MB / 0.9786 GB, free: 5.844 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.8119, allocations: 0 / 0.9786 GB, free: 5.844 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.753e-05/0.8119, allocations: 7.984 kB / 0.9786 GB, free: 5.836 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.49e-06/0.812, allocations: 4 kB / 0.9787 GB, free: 5.832 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.198e-05/0.812, allocations: 32 / 0.9787 GB, free: 5.832 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.812, allocations: 4 kB / 0.9787 GB, free: 5.828 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.515e-06/0.812, allocations: 4 kB / 0.9787 GB, free: 5.824 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009266/0.8129, allocations: 1.02 MB / 0.9797 GB, free: 4.777 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001059/0.813, allocations: 147.9 kB / 0.9798 GB, free: 4.613 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.889e-05/0.8131, allocations: 8 kB / 0.9798 GB, free: 4.605 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001331/0.8132, allocations: 7.984 kB / 0.9798 GB, free: 4.598 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.475e-05/0.8133, allocations: 8 kB / 0.9798 GB, free: 4.59 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.233e-05/0.8133, allocations: 11.97 kB / 0.9798 GB, free: 4.578 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0007134/0.814, allocations: 0.657 MB / 0.9805 GB, free: 3.91 MB / 0.7325 GB Notification: Performance of sort global known variables: time 3.61e-07/0.8141, allocations: 0 / 0.9805 GB, free: 3.91 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.001432/0.8155, allocations: 395.9 kB / 0.9809 GB, free: 3.523 MB / 0.7325 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,k,t1,t2,gFun1,gFun2) * Number of discrete states: 2 (k,t2) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001198/0.8167, allocations: 486.8 kB / 0.9813 GB, free: 3.039 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.002298/0.819, allocations: 2.492 MB / 0.9837 GB, free: 0.5391 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.819, allocations: 8 kB / 0.9838 GB, free: 0.5312 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0003641/0.8194, allocations: 340.1 kB / 0.9841 GB, free: 204 kB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002173/0.8196, allocations: 36.58 kB / 0.9841 GB, free: 168 kB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00217/0.8218, allocations: 1.824 MB / 0.9859 GB, free: 14.31 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005256/0.8223, allocations: 0.9799 MB / 0.9869 GB, free: 13.3 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 0.0001773/0.8225, allocations: 32.56 kB / 0.9869 GB, free: 13.27 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001049/0.8226, allocations: 31.41 kB / 0.9869 GB, free: 13.23 MB / 0.7481 GB Notification: Performance of SimCode: time 2.2e-07/0.8226, allocations: 0 / 0.9869 GB, free: 13.23 MB / 0.7481 GB Notification: Performance of Templates: time 0.016/0.8386, allocations: 8.965 MB / 0.9957 GB, free: 4.305 MB / 0.7481 GB make -j1 -f Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.makefile (rm -f Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe ; mkfifo Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe >> ../files/Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.sim & ./Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_1borehole_5meters.csv","../files/Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches