Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001022/0.001022, allocations: 80.8 kB / 20.75 MB, free: 3.738 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001053/0.001053, allocations: 161.4 kB / 24.16 MB, free: 332 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9714/0.9714, allocations: 177.1 MB / 204.6 MB, free: 5.477 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.x/package.mo): time 1.803/1.803, allocations: 377.9 MB / 0.624 GB, free: 8.363 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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=2500,variableFilter="time|gFun_int",fileNamePrefix="Buildings_12_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=2500,variableFilter="time|gFun_int",fileNamePrefix="Buildings_12_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.383e-06/1.383e-06, allocations: 0 / 0.7601 GB, free: 6.523 MB / 0.7136 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.282e-05/2.421e-05, allocations: 5.406 kB / 0.7601 GB, free: 6.52 MB / 0.7136 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters): time 0.002586/0.00261, allocations: 1.474 MB / 0.7615 GB, free: 5.055 MB / 0.7136 GB Notification: Performance of NFInst.instExpressions: time 0.00611/0.00872, allocations: 4.04 MB / 0.7655 GB, free: 1.027 MB / 0.7136 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.608e-05/0.008776, allocations: 5.031 kB / 0.7655 GB, free: 1.023 MB / 0.7136 GB Notification: Performance of NFTyping.typeComponents: time 0.0001048/0.008881, allocations: 11.86 kB / 0.7655 GB, free: 1.012 MB / 0.7136 GB Notification: Performance of NFTyping.typeBindings: time 0.0002036/0.009085, allocations: 44.38 kB / 0.7656 GB, free: 0.9688 MB / 0.7136 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/Math/Random.mo:1057:5-1146:31:writable] Warning: Pure function 'Modelica.Math.Random.Utilities.initializeImpureRandom' contains a call to impure function 'Modelica.Math.Random.Utilities.initializeImpureRandom.setInternalState'. Notification: Performance of NFTyping.typeClassSections: time 0.002766/0.01185, allocations: 1.625 MB / 0.7671 GB, free: 15.35 MB / 0.7292 GB Notification: Performance of NFFlatten.flatten: time 0.0001102/0.01196, allocations: 91.67 kB / 0.7672 GB, free: 15.26 MB / 0.7292 GB Notification: Performance of NFFlatten.resolveConnections: time 3.492e-05/0.012, allocations: 11.98 kB / 0.7672 GB, free: 15.25 MB / 0.7292 GB Notification: Performance of NFEvalConstants.evaluate: time 8.116e-05/0.01208, allocations: 71.73 kB / 0.7673 GB, free: 15.18 MB / 0.7292 GB Notification: Performance of NFSimplifyModel.simplify: time 9.256e-05/0.01217, allocations: 41.25 kB / 0.7673 GB, free: 15.14 MB / 0.7292 GB Notification: Performance of NFPackage.collectConstants: time 1.434e-05/0.01218, allocations: 6.531 kB / 0.7674 GB, free: 15.13 MB / 0.7292 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002593/0.01478, allocations: 2.405 MB / 0.7697 GB, free: 12.73 MB / 0.7292 GB Notification: Performance of NFScalarize.scalarize: time 0.0001389/0.01492, allocations: 255.3 kB / 0.7699 GB, free: 12.48 MB / 0.7292 GB Notification: Performance of NFVerifyModel.verify: time 9.093e-05/0.01501, allocations: 121.8 kB / 0.7701 GB, free: 12.37 MB / 0.7292 GB Notification: Performance of NFConvertDAE.convert: time 0.002197/0.0172, allocations: 2.337 MB / 0.7723 GB, free: 10.02 MB / 0.7292 GB Notification: Performance of FrontEnd - DAE generated: time 2.985e-06/0.01721, allocations: 0 / 0.7723 GB, free: 10.02 MB / 0.7292 GB Notification: Performance of FrontEnd: time 1.082e-06/0.01721, allocations: 6.688 kB / 0.7723 GB, free: 10.02 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 5.29e-06/0.01721, allocations: 7.984 kB / 0.7724 GB, free: 10.01 MB / 0.7292 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.001406/0.01862, allocations: 1.2 MB / 0.7735 GB, free: 8.781 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 3.155e-05/0.01865, allocations: 8.031 kB / 0.7735 GB, free: 8.773 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001893/0.01884, allocations: 28.91 kB / 0.7736 GB, free: 8.746 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002329/0.01907, allocations: 295.7 kB / 0.7738 GB, free: 8.422 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.056e-05/0.01908, allocations: 4.375 kB / 0.7739 GB, free: 8.418 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.778e-05/0.01911, allocations: 4.375 kB / 0.7739 GB, free: 8.414 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001953/0.01931, allocations: 229.7 kB / 0.7741 GB, free: 8.176 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.754e-06/0.01931, allocations: 192 / 0.7741 GB, free: 8.176 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.127e-06/0.01932, allocations: 5.984 kB / 0.7741 GB, free: 8.172 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.172e-06/0.01933, allocations: 7.922 kB / 0.7741 GB, free: 8.164 MB / 0.7292 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001181/0.01945, allocations: 195.9 kB / 0.7743 GB, free: 7.973 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002025/0.01965, allocations: 260.5 kB / 0.7745 GB, free: 7.699 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001784/0.01983, allocations: 285.8 kB / 0.7748 GB, free: 7.402 MB / 0.7292 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.067e-05/0.01992, allocations: 154.3 kB / 0.7749 GB, free: 7.246 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002947/0.02021, allocations: 129.2 kB / 0.7751 GB, free: 7.125 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001778/0.02039, allocations: 225.6 kB / 0.7753 GB, free: 6.887 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=8): time 9.31e-07/0.02039, allocations: 0 / 0.7753 GB, free: 6.887 MB / 0.7292 GB Notification: Performance of matching and sorting (n=8): time 0.0003725/0.02076, allocations: 491.1 kB / 0.7757 GB, free: 6.402 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.745e-05/0.0208, allocations: 85.09 kB / 0.7758 GB, free: 6.301 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005243/0.02133, allocations: 0.9973 MB / 0.7768 GB, free: 5.289 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 2.981e-05/0.02136, allocations: 30.92 kB / 0.7768 GB, free: 5.254 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 0.000109/0.02147, allocations: 265.7 kB / 0.7771 GB, free: 4.988 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 2.671e-05/0.02149, allocations: 15.84 kB / 0.7771 GB, free: 4.973 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002003/0.02169, allocations: 344.2 kB / 0.7774 GB, free: 4.633 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 6.71e-05/0.02176, allocations: 314 kB / 0.7777 GB, free: 4.32 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003185/0.02208, allocations: 0.5067 MB / 0.7782 GB, free: 3.812 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000341/0.02242, allocations: 0.6109 MB / 0.7788 GB, free: 3.191 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001673/0.02409, allocations: 2.239 MB / 0.781 GB, free: 0.8633 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.365e-06/0.02409, allocations: 0 / 0.781 GB, free: 0.8633 MB / 0.7292 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.002367/0.02646, allocations: 3.721 MB / 0.7846 GB, free: 13.11 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 1.668e-05/0.02648, allocations: 7.938 kB / 0.7846 GB, free: 13.11 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.329e-05/0.02649, allocations: 0 / 0.7846 GB, free: 13.11 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.507e-05/0.02651, allocations: 4 kB / 0.7847 GB, free: 13.1 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.417e-05/0.0266, allocations: 19.98 kB / 0.7847 GB, free: 13.08 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.915e-06/0.0266, allocations: 3.031 kB / 0.7847 GB, free: 13.08 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002381/0.02684, allocations: 249.2 kB / 0.7849 GB, free: 12.84 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.94e-05/0.02687, allocations: 15.98 kB / 0.7849 GB, free: 12.82 MB / 0.7448 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 13 (labels[1],cluSiz[1],gFun2,$PRE.gFun2,gFun1,$PRE.gFun1,t2,$PRE.t2,t1,$PRE.t1,k,$PRE.k,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 13 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001277/0.027, allocations: 128.6 kB / 0.7851 GB, free: 12.68 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.115e-05/0.02702, allocations: 8 kB / 0.7851 GB, free: 12.68 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000302/0.02732, allocations: 366.3 kB / 0.7854 GB, free: 12.31 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.867e-06/0.02733, allocations: 4 kB / 0.7854 GB, free: 12.31 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.653e-06/0.02733, allocations: 0 / 0.7854 GB, free: 12.31 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.36e-06/0.02733, allocations: 3.938 kB / 0.7854 GB, free: 12.3 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002141/0.02755, allocations: 290.7 kB / 0.7857 GB, free: 12 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-06/0.02755, allocations: 3.938 kB / 0.7857 GB, free: 12 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.178e-05/0.02759, allocations: 7.984 kB / 0.7857 GB, free: 11.99 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.994e-06/0.02759, allocations: 0 / 0.7857 GB, free: 11.99 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.274e-06/0.0276, allocations: 7.875 kB / 0.7857 GB, free: 11.99 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.412e-06/0.0276, allocations: 0 / 0.7857 GB, free: 11.99 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.0276, allocations: 0 / 0.7857 GB, free: 11.99 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002386/0.02784, allocations: 378.9 kB / 0.7861 GB, free: 11.6 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 5.218e-05/0.02789, allocations: 83.28 kB / 0.7862 GB, free: 11.52 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.237e-05/0.02793, allocations: 0 / 0.7862 GB, free: 11.52 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.403e-05/0.02799, allocations: 8 kB / 0.7862 GB, free: 11.51 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.616e-05/0.02802, allocations: 11.92 kB / 0.7862 GB, free: 11.5 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.341e-05/0.02804, allocations: 11.97 kB / 0.7862 GB, free: 11.48 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 0.0002411/0.02828, allocations: 390.5 kB / 0.7866 GB, free: 11.1 MB / 0.7448 GB Notification: Performance of sort global known variables: time 6e-08/0.02828, allocations: 0 / 0.7866 GB, free: 11.1 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.001263/0.02954, allocations: 0.5923 MB / 0.7871 GB, free: 10.5 MB / 0.7448 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001337/0.03088, allocations: 0.8204 MB / 0.7879 GB, free: 9.719 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.000672/0.03155, allocations: 0.9663 MB / 0.7889 GB, free: 8.734 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 7.995e-06/0.03156, allocations: 8 kB / 0.7889 GB, free: 8.727 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 0.0001044/0.03166, allocations: 164.8 kB / 0.789 GB, free: 8.562 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001712/0.03184, allocations: 40.75 kB / 0.7891 GB, free: 8.523 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001082/0.03292, allocations: 1.444 MB / 0.7905 GB, free: 7.047 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.899e-05/0.03302, allocations: 183.1 kB / 0.7907 GB, free: 6.848 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 7.437e-05/0.03309, allocations: 32.61 kB / 0.7907 GB, free: 6.82 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001232/0.03321, allocations: 80.16 kB / 0.7908 GB, free: 6.742 MB / 0.7448 GB Notification: Performance of SimCode: time 8.42e-07/0.03322, allocations: 0 / 0.7908 GB, free: 6.742 MB / 0.7448 GB Notification: Performance of Templates: time 0.01797/0.05119, allocations: 15.52 MB / 0.8059 GB, free: 7.457 MB / 0.7605 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe ; mkfifo Buildings_12_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe ; head -c 1048576 < Buildings_12_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe >> ../files/Buildings_12_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.sim & ./Buildings_12_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_12_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_1borehole_5meters.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.3503569648601115]