aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 88 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7485
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2252.0+4031_daily_bin1663
RA = 343.01, Dec = 40.5232
tmin = 670377601, tmax = 670636801
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

Fitting strategies:
Fix sources to their catalog values = True
Leave variable source normalizations free = True
Perform pre-fit where ALL sources are frozen to catalog values = False
Perform secondary fit with a free spectral index = True
Remove all catalog sources = False
Remove weak (TS < 2) catalog sources = False
Freeze Galactic component = False

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository job = True

LAT data source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='261601', job_status='RUN', time_executed='2022-04-03 00:37:19.700435', time_epoch_executed='1648971439.7' WHERE source_name='4FGL J2252.0+4031' and cadence='daily' and bin_id='1663'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/261601

Creating custom pfile directory:
/scratch/kocevski/261601/pfiles/

Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStop>=670377601.0 && nMetStart<670636801.0' /Data/Flight/Reprocess/P305

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=670377601.0 && nMetStart<670636801.0' /Data/Flight/Level1/LPA

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/261601/ft1_4FGL_J2252.0+4031_daily_bin1663.fits


Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT2 --filter 'nMetStop>=670377601.0 && nMetStart<670636801.0' /Data/Flight/Level1/LPA

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/261601/ft2_4FGL_J2252.0+4031_daily_bin1663.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/261601/ft1_4FGL_J2252.0+4031_daily_bin1663.fits outfile=/scratch/kocevski/261601/ft1_filteredMKT_4FGL_J2252.0+4031_daily_bin1663.fits ra=343.01 dec=40.5232 rad=12.0 tmin=670377601.0 tmax=670636801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 2.86
user 2.66
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/261601/ft2_4FGL_J2252.0+4031_daily_bin1663.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/261601/ft2_4FGL_J2252.0+4031_daily_bin1663.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/scratch/kocevski/261601/ft1_filteredMKT_4FGL_J2252.0+4031_daily_bin1663.fits evtable="EVENTS" outfile="/scratch/kocevski/261601/ft1_filtered_4FGL_J2252.0+4031_daily_bin1663.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.41
user 0.27
sys 0.13

Number of photons that the gtmktime cut: 1485

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/261601/ft1_filtered_4FGL_J2252.0+4031_daily_bin1663.fits" evtable="EVENTS" scfile=/scratch/kocevski/261601/ft2_4FGL_J2252.0+4031_daily_bin1663.fits sctable="SC_DATA" outfile=/scratch/kocevski/261601/ltcube_670377601_670636801_4FGL_J2252.0+4031_daily_bin1663.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Working on file /scratch/kocevski/261601/ft2_4FGL_J2252.0+4031_daily_bin1663.fits
.....................!
real 8.72
user 8.41
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/261601/ft1_filtered_4FGL_J2252.0+4031_daily_bin1663.fits evtable="EVENTS" scfile=/scratch/kocevski/261601/ft2_4FGL_J2252.0+4031_daily_bin1663.fits sctable="SC_DATA" expcube=/scratch/kocevski/261601/ltcube_670377601_670636801_4FGL_J2252.0+4031_daily_bin1663.fits outfile=/scratch/kocevski/261601/expmap_670377601_670636801_4FGL_J2252.0+4031_daily_bin1663.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /scratch/kocevski/261601/ltcube_670377601_670636801_4FGL_J2252.0+4031_daily_bin1663.fits
.....................!
real 141.55
user 136.33
sys 4.96

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Extended source FHES J2304.0+5406 in ROI with RadialGaussian spatial model.
Extended source CTB 109 in ROI with RadialDisk spatial model.
Added 173 point sources and 2 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J2252.0+4031 @ 343.01 40.5232

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/261601/ft1_filtered_4FGL_J2252.0+4031_daily_bin1663.fits scfile=/scratch/kocevski/261601/ft2_4FGL_J2252.0+4031_daily_bin1663.fits outfile=/scratch/kocevski/261601/cmap_670377601_670636801_4FGL_J2252.0+4031_daily_bin1663.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=343.01 yref=40.5232 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.44
user 0.29
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/261601/ft1_filtered_4FGL_J2252.0+4031_daily_bin1663.fits scfile=/scratch/kocevski/261601/ft2_4FGL_J2252.0+4031_daily_bin1663.fits outfile=/scratch/kocevski/261601/cmap_HighResolution_670377601_670636801_4FGL_J2252.0+4031_daily_bin1663.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=343.01 yref=40.5232 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.45
user 0.31
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/261601/ft1_filtered_4FGL_J2252.0+4031_daily_bin1663.fits evtable="EVENTS" scfile=/scratch/kocevski/261601/ft2_4FGL_J2252.0+4031_daily_bin1663.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/261601/Model_4FGL_J2252.0+4031_daily_bin1663.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

adding source CTB 109
adding source EG_v02
adding source FHES J2304.0+5406
adding source GAL_V02
Working on...
/scratch/kocevski/261601/ft1_filtered_4FGL_J2252.0+4031_daily_bin1663.fits.....................!
real 137.33
user 136.09
sys 0.97

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/261601/ft1_filtered_4FGL_J2252.0+4031_daily_bin1663.fits', '/scratch/kocevski/261601/ft2_4FGL_J2252.0+4031_daily_bin1663.fits', expMap='/scratch/kocevski/261601/expmap_670377601_670636801_4FGL_J2252.0+4031_daily_bin1663.fits', expCube='/scratch/kocevski/261601/ltcube_670377601_670636801_4FGL_J2252.0+4031_daily_bin1663.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/261601/Model_4FGL_J2252.0+4031_daily_bin1663.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2252.0+4031'

4FGL J2252.0+4031
   Spectrum: PowerLaw
404    Prefactor:  2.093e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  2.052e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
406        Scale:  2.181e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/261601/ft1_filtered_4FGL_J2252.0+4031_daily_bin1663.fits
Spacecraft file(s): /scratch/kocevski/261601/ft2_4FGL_J2252.0+4031_daily_bin1663.fits
Exposure map: /scratch/kocevski/261601/expmap_670377601_670636801_4FGL_J2252.0+4031_daily_bin1663.fits
Exposure cube: /scratch/kocevski/261601/ltcube_670377601_670636801_4FGL_J2252.0+4031_daily_bin1663.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/261601/Model_4FGL_J2252.0+4031_daily_bin1663.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 14691.1001743

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 14691.0866435

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    19.235       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10199E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.208       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10165E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.7116       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.4244       1.0000         .10000E-03   10000.    
    10 'Prefactor '    47.711       1.0000         .10000E-03   10000.    
    11 'norm      '    2.3873       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .11574E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    18.917       1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.2532       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.2926       1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.7781       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0738       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0118       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5890E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   14691.09     FROM MIGRAD    STATUS=CONVERGED    415 CALLS     2056 TOTAL
                     EDM=   .68E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          19.235        1.5827       -.40439E-07    .24873E-02
   2  Prefactor     .10000E-03    31.185       -.27907E-04** at limit **
   3  Prefactor     11.212        12.678       -.15143E-05    .25592E-03
   4  Prefactor     .10000E-03    34.479        .20377E-04** at limit **
   5  Prefactor     .10000E-03    5.6255        .52593E-06** at limit **
   6  Prefactor     .10000E-03    32.929        .13376E-04** at limit **
   7  norm          1.7141        2.3117       -.74532E-06   -.13170E-02
   8  Prefactor     .10000E-03    4.6812       -.32675E-06** at limit **
   9  Prefactor     2.4245        2.8089       -.11362E-06    .12800E-03
  10  Prefactor     47.709        28.958       -.16565E-05    .17600E-04
  11  norm          2.3870        1.3421       -.25528E-06   -.53159E-03
  12  Prefactor     .10000E-03    4.0588        .26170E-06** at limit **
  13  norm          .10000E-03    3.8138       -.54215E-06** at limit **
  14  norm          18.916        11.816        .13576E-06    .45534E-04
  15  Prefactor     7.2402        15.089        .81371E-08   -.76887E-05
  16  norm          .10000E-03    .66700        .25760E-07** at limit **
  17  Prefactor     1.2808        65.095       -.69545E-05   -.12380E-03
  18  Prefactor     6.6884        89.375       -.27277E-03    .54470E-04
  19  Normalizat    1.0740        .21575        .63670E-05    .10245E-03
  20  Prefactor     1.0118        .68231E-01    .86359E-06    .37898E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 19.2353
  Prefactor  = 0.000100002
  Prefactor  = 11.2116
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 1.71405
  Prefactor  = 0.0001
  Prefactor  = 2.42454
  Prefactor  = 47.709
  norm       = 2.38698
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 18.9165
  Prefactor  = 7.24021
  norm       = 0.0001
  Prefactor  = 1.28083
  Prefactor  = 6.68841
  Normalizat = 1.07396
  Prefactor  = 1.01176
 **********
 **   18 **HESSE 
 **********

 FCN=   14691.09     FROM HESSE     STATUS=OK           289 CALLS     2345 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          19.235        1.5831        .40866E-04   -1.4831    
   2  Prefactor     .10000E-03    32.009        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     11.212        12.666        .11967E-03   -1.5038    
   4  Prefactor     .10000E-03    34.494        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    5.7336        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    34.178        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.7141        2.2807        .20685E-03   -1.5446    
   8  Prefactor     .10000E-03    4.6830        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.4245        2.8063        .21267E-03   -1.5397    
  10  Prefactor     47.709        28.950        .58052E-04   -1.4325    
  11  norm          2.3870        1.3381        .10069E-03   -1.5399    
  12  Prefactor     .10000E-03    4.0720        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    3.9023        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          18.916        11.816        .92088E-04   -1.4838    
  15  Prefactor     7.2402        15.045        .14893E-03   -1.5170    
  16  norm          .10000E-03    .67284        .96654E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.2808        66.979        .38933E-03   -1.5482    
  18  Prefactor     6.6884        90.126        .15412E-03   -1.5191    
  19  Normalizat    1.0740        .24158        .49558E-03   -.90592    
  20  Prefactor     1.0118        .77105E-01    .16296E-03   -.92338    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.37469e-09
Minuit parameter uncertainties:
  1  1.58308
  2  0.000467193
  3  12.6691
  4  6.32981e-05
  5  3.26418e-05
  6  0.000541161
  7  2.28079
  8  6.75307e-06
  9  2.80642
  10  28.9586
  11  1.33813
  12  1.30467e-05
  13  2.70288e-05
  14  11.8172
  15  15.0532
  16  1.63934e-06
  17  18.5456
  18  49.1942
  19  0.241825
  20  0.0771131
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 14691.0866384

Extracting fit parameters...

4FGL J2252.0+4031
   Spectrum: PowerLaw
404    Prefactor:  2.425e+00  2.806e+00  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  2.052e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
406        Scale:  2.181e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
586    Prefactor:  1.012e+00  7.711e-02  0.000e+00  1.000e+01 ( 1.000e+00)
587        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
588        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
581   Normalization:  1.074e+00  2.418e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.03
Ra Dec: 343.010 40.523
Photon Index (Fixed Index): 2.05 +/- 0.00
Photon Flux (Fixed Index): 1.29e-08 +/- 1.49e-08
Energy Flux (Fixed Index): 7.86e-06 +/- 9.10e-06

TS (Fixed Index): 2.03
Ra Dec: 343.010 40.523
Photon Flux Upper Limit: 6.22e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.68e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/261601/likelihoodResults_670377601_670636801_4FGL_J2252.0+4031_daily_bin1663.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 14689.1681571
delta logL = 1.91848127861

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 14689.1462296
delta logL = 1.94040878798

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.7776       1.0000         .10000E-03   10000.    
     2 'Index     '    .72024       1.0000          .0000       10.000    
     3 'Normalizat'    1.0802       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0116       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5890E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   14689.15     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      206 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.7711        1.7827        .78490E-02   -.98948E-03
   2  Index         .71894        .47247        .42670       -.68557E-04
   3  Normalizat    1.0801        .20978        .11145        .57362E-04
   4  Prefactor     1.0116        .67551E-01    .43104E-01   -.11453E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.77107
  Index      = 0.718936
  Normalizat = 1.08014
  Prefactor  = 1.01159
 **********
 **   18 **HESSE 
 **********

 FCN=   14689.15     FROM HESSE     STATUS=OK            33 CALLS      239 TOTAL
                     EDM=   .70E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.7711        2.6527        .15817E-03   -1.5442    
   2  Index         .71894        .60972        .21715E-01   -1.0279    
   3  Normalizat    1.0801        .23554        .49420E-03   -.90392    
   4  Prefactor     1.0116        .76128E-01    .16295E-03   -.92344    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.99852e-09
Minuit parameter uncertainties:
  1  2.65285
  2  0.615526
  3  0.235766
  4  0.0761366
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/261601': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 14689.1462271
delta logL = 1.94041130977

Extracting fit parameters...

4FGL J2252.0+4031
   Spectrum: PowerLaw
404    Prefactor:  1.771e+00  2.653e+00  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  7.189e-01  6.155e-01  0.000e+00  1.000e+01 (-1.000e+00)
406        Scale:  2.181e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
586    Prefactor:  1.012e+00  7.614e-02  0.000e+00  1.000e+01 ( 1.000e+00)
587        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
588        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
581   Normalization:  1.080e+00  2.358e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.91
Ra Dec: 343.010 40.523
Photon Index (Free Index): 0.72 +/- 0.62
Photon Flux (Free Index): 3.45e-09 +/- 3.58e-09
Energy Flux (Free Index): 8.84e-05 +/- 1.13e-04

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/261601/cmap_HighResolution_670377601_670636801_4FGL_J2252.0+4031_daily_bin1663.png

Cleaning up...

** Nuclear option initiated! **
rmdir /scratch/kocevski/261601

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.68e-03', comment='SUCCESS', photon_flux='1.29e-08', energy_flux2='8.84e-05', photon_flux_error='1.49e-08', dlogl='1.94e+00', energy_flux='7.86e-06', photon_flux2='3.45e-09', job_status='DONE', time_completed='2022-04-03 00:51:25.512882', photon_index_error2='0.62', photon_index2='0.72', ts='2.03', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', photon_flux_upper_limit='6.22e-08', energy_flux_error2='1.13e-04', EG='1.07', time_epoch_completed='1648972285.51', return_code='0', job_id='261601', GAL2='1.01', EG2='1.08', return_code2='0', energy_flux_error='9.10e-06', photon_flux_error2='3.58e-09', ts2='5.91', photon_index='2.05' WHERE bin_id='1663' AND source_name='4FGL J2252.0+4031' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Apr  3 00:51:25 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0086>
Subject: Job 261601: <4FGL_J2252.0+4031_daily_bin1663> in cluster <slac> Done

Job <4FGL_J2252.0+4031_daily_bin1663> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Apr  3 00:35:42 2022
Job was executed on host(s) <bullet0086>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Apr  3 00:35:43 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Apr  3 00:35:43 2022
Terminated at Sun Apr  3 00:51:26 2022
Results reported at Sun Apr  3 00:51:26 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2252.0+4031_daily_bin1663 343.01 40.5232 670377601 670636801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2252.0+4031 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   846.12 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             348.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   942 sec.
    Turnaround time :                            944 sec.

The output (if any) is above this job summary.

