/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 4 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 = 7417
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0252.8-2219_daily_bin140
RA = 43.2007, Dec = -22.3203
tmin = 275616001, tmax = 275875201
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='886469', job_status='RUN', time_executed='2021-08-17 00:32:13.144126', time_epoch_executed='1629185533.14' WHERE source_name='4FGL J0252.8-2219' and cadence='daily' and bin_id='140'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/886469

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/886469/ft1_4FGL_J0252.8-2219_daily_bin140.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/886469/ft2_4FGL_J0252.8-2219_daily_bin140.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/886469/ft1_4FGL_J0252.8-2219_daily_bin140.fits outfile=/scratch/kocevski/886469/ft1_filteredMKT_4FGL_J0252.8-2219_daily_bin140.fits ra=43.2007 dec=-22.3203 rad=12.0 tmin=275616001.0 tmax=275875201.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 4.95
user 3.97
sys 0.90

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/886469/ft2_4FGL_J0252.8-2219_daily_bin140.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/886469/ft2_4FGL_J0252.8-2219_daily_bin140.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/886469/ft1_filteredMKT_4FGL_J0252.8-2219_daily_bin140.fits evtable="EVENTS" outfile="/scratch/kocevski/886469/ft1_filtered_4FGL_J0252.8-2219_daily_bin140.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 1.25
user 0.34
sys 0.84

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/886469/ft1_filtered_4FGL_J0252.8-2219_daily_bin140.fits" evtable="EVENTS" scfile=/scratch/kocevski/886469/ft2_4FGL_J0252.8-2219_daily_bin140.fits sctable="SC_DATA" outfile=/scratch/kocevski/886469/ltcube_275616001_275875201_4FGL_J0252.8-2219_daily_bin140.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/886469/ft2_4FGL_J0252.8-2219_daily_bin140.fits
.....................!
real 14.00
user 12.72
sys 1.18

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/886469/ft1_filtered_4FGL_J0252.8-2219_daily_bin140.fits evtable="EVENTS" scfile=/scratch/kocevski/886469/ft2_4FGL_J0252.8-2219_daily_bin140.fits sctable="SC_DATA" expcube=/scratch/kocevski/886469/ltcube_275616001_275875201_4FGL_J0252.8-2219_daily_bin140.fits outfile=/scratch/kocevski/886469/expmap_275616001_275875201_4FGL_J0252.8-2219_daily_bin140.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/886469/ltcube_275616001_275875201_4FGL_J0252.8-2219_daily_bin140.fits
.....................!
real 192.40
user 185.63
sys 5.67

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 Fornax A in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/FornaxA.fits is the correct path to the extended template.
Added 161 point sources and 1 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 J0252.8-2219 @ 43.2007 -22.3203

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/886469/ft1_filtered_4FGL_J0252.8-2219_daily_bin140.fits scfile=/scratch/kocevski/886469/ft2_4FGL_J0252.8-2219_daily_bin140.fits outfile=/scratch/kocevski/886469/cmap_275616001_275875201_4FGL_J0252.8-2219_daily_bin140.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=43.2007 yref=-22.3203 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 1.33
user 0.36
sys 0.85

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/886469/ft1_filtered_4FGL_J0252.8-2219_daily_bin140.fits scfile=/scratch/kocevski/886469/ft2_4FGL_J0252.8-2219_daily_bin140.fits outfile=/scratch/kocevski/886469/cmap_HighResolution_275616001_275875201_4FGL_J0252.8-2219_daily_bin140.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=43.2007 yref=-22.3203 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 1.34
user 0.38
sys 0.85

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/886469/ft1_filtered_4FGL_J0252.8-2219_daily_bin140.fits evtable="EVENTS" scfile=/scratch/kocevski/886469/ft2_4FGL_J0252.8-2219_daily_bin140.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/886469/Model_4FGL_J0252.8-2219_daily_bin140.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 EG_v02
adding source Fornax A
adding source GAL_V02
Working on...
/scratch/kocevski/886469/ft1_filtered_4FGL_J0252.8-2219_daily_bin140.fits.....................!
real 114.15
user 109.11
sys 2.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/886469/ft1_filtered_4FGL_J0252.8-2219_daily_bin140.fits', '/scratch/kocevski/886469/ft2_4FGL_J0252.8-2219_daily_bin140.fits', expMap='/scratch/kocevski/886469/expmap_275616001_275875201_4FGL_J0252.8-2219_daily_bin140.fits', expCube='/scratch/kocevski/886469/ltcube_275616001_275875201_4FGL_J0252.8-2219_daily_bin140.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/886469/Model_4FGL_J0252.8-2219_daily_bin140.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0252.8-2219'

4FGL J0252.8-2219
   Spectrum: LogParabola
257         norm:  4.837e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
258        alpha:  2.252e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
259         beta:  8.603e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
260           Eb:  4.069e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/886469/ft1_filtered_4FGL_J0252.8-2219_daily_bin140.fits
Spacecraft file(s): /scratch/kocevski/886469/ft2_4FGL_J0252.8-2219_daily_bin140.fits
Exposure map: /scratch/kocevski/886469/expmap_275616001_275875201_4FGL_J0252.8-2219_daily_bin140.fits
Exposure cube: /scratch/kocevski/886469/ltcube_275616001_275875201_4FGL_J0252.8-2219_daily_bin140.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/886469/Model_4FGL_J0252.8-2219_daily_bin140.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) = 5384.13098832

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.0093       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.8826       1.0000         .10000E-03   10000.    
     4 'norm      '    .10136E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.8625       1.0000         .10000E-03   10000.    
     6 'Prefactor '    34.869       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .46401       1.0000         .10000E-03   10000.    
     8 'Prefactor '    12.350       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.9419       1.0000         .10000E-03   10000.    
    10 'Prefactor '    14.561       1.0000         .10000E-03   10000.    
    11 'norm      '    .97265       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .19756E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10516E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    4.7898       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    67.550       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .58717       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1328       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .58514       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5110E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5384.120     FROM MIGRAD    STATUS=CONVERGED    991 CALLS     3165 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.0978        .14482E-02** at limit **
   2  Prefactor     2.0092        4.6732        .11453E-02    .11285E-03
   3  Prefactor     6.8855        9.5782        .15293E-03    .28175E-04
   4  norm          .10000E-03    122.66        .18142E-02** at limit **
   5  Prefactor     4.8635        5.3133        .16735E-03   -.46127E-04
   6  Prefactor     34.899        41.762        .67865E-04   -.43555E-05
   7  Prefactor     .32238        60.617        .14002        .74571E-04
   8  Prefactor     12.333        31.396        .11398E-03   -.26132E-04
   9  Prefactor     1.9430        4.1180        .20242E-03   -.61498E-04
  10  Prefactor     14.601        44.052        .10497E-03   -.54046E-04
  11  norm          .97173        1.5567        .11255E-03    .42070E-03
  12  Prefactor     .10000E-03    4.1495        .14520E-02** at limit **
  13  Prefactor     .10000E-03    273.61        .36285E-03** at limit **
  14  Prefactor     .10000E-03    11.533        .18142E-02** at limit **
  15  norm          4.7897        3.0652        .98606E-04   -.16637E-03
  16  Prefactor     .10000E-03    3.2557        .12929E-02** at limit **
  17  Prefactor     67.541        67.726        .48835E-04   -.78686E-05
  18  Prefactor     .10000E-03    1.4015        .84237E-03** at limit **
  19  Prefactor     .10000E-03    2.6682        .11701E-02** at limit **
  20  Prefactor     .10000E-03    15.056        .18142E-02** at limit **
  21  Prefactor     .58743        1.0807        .12082E-02    .42034E-03
  22  Prefactor     .10000E-03    2.0114        .10096E-02** at limit **
  23  Normalizat    1.1328        .18505        .19296E-03    .13679E-03
  24  Prefactor     .58515        .17241        .26339E-03   -.14619E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 2.00917
  Prefactor  = 6.8855
  norm       = 0.0001
  Prefactor  = 4.86347
  Prefactor  = 34.8987
  Prefactor  = 0.32238
  Prefactor  = 12.3331
  Prefactor  = 1.94298
  Prefactor  = 14.6009
  norm       = 0.971731
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 4.78973
  Prefactor  = 0.0001
  Prefactor  = 67.5409
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.587434
  Prefactor  = 0.0001
  Normalizat = 1.13279
  Prefactor  = 0.585152
 **********
 **   18 **HESSE 
 **********

 FCN=   5384.120     FROM HESSE     STATUS=OK           387 CALLS     3552 TOTAL
                     EDM=   .63E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.0982        .28964E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.0092        4.6692        .45814E-04   -1.5424    
   3  Prefactor     6.8855        9.5761        .61172E-05   -1.5183    
   4  norm          .10000E-03    122.68        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.8635        5.3121        .66940E-05   -1.5267    
   6  Prefactor     34.899        41.757        .27146E-05   -1.4526    
   7  Prefactor     .32238        58.994        .14236       -1.5594    
   8  Prefactor     12.333        31.386        .45594E-05   -1.5005    
   9  Prefactor     1.9430        4.1164        .80970E-05   -1.5429    
  10  Prefactor     14.601        44.056        .41986E-05   -1.4944    
  11  norm          .97173        1.5566        .45020E-05   -1.5511    
  12  Prefactor     .10000E-03    4.1506        .29039E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    273.63        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    11.535        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.7897        3.0651        .39442E-05   -1.5270    
  16  Prefactor     .10000E-03    3.2557        .25859E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     67.541        67.723        .97670E-05   -1.4062    
  18  Prefactor     .10000E-03    1.4017        .16847E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    2.6682        .23402E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    15.056        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .58743        1.0800        .48328E-04   -1.5555    
  22  Prefactor     .10000E-03    2.0117        .20192E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.1328        .18515        .38591E-04   -.88706    
  24  Prefactor     .58515        .17255        .10535E-04   -1.0822    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.28011e-10
Minuit parameter uncertainties:
  1  2.16493e-06
  2  4.67007
  3  9.57818
  4  5.69082e-05
  5  5.31263
  6  41.7917
  7  8.72944
  8  31.4277
  9  4.11703
  10  44.1545
  11  1.55663
  12  1.16007e-05
  13  0.00152087
  14  7.21934e-05
  15  3.06516
  16  2.4054e-06
  17  67.8005
  18  6.29697e-06
  19  1.94031e-06
  20  1.03126e-05
  21  1.07999
  22  6.60159e-07
  23  0.185252
  24  0.172709
Done.

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

Extracting fit parameters...

4FGL J0252.8-2219
   Spectrum: LogParabola
257         norm:  9.717e-01  1.557e+00  1.000e-04  1.000e+04 ( 1.000e-11)
258        alpha:  2.252e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
259         beta:  8.603e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
260           Eb:  4.069e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
508    Prefactor:  5.852e-01  1.727e-01  0.000e+00  1.000e+01 ( 1.000e+00)
509        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
510        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
504   Normalization:  1.133e+00  1.853e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.50
Ra Dec: 43.201 -22.320
Photon Flux Upper Limit: 8.12e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.74e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/886469/likelihoodResults_275616001_275875201_4FGL_J0252.8-2219_daily_bin140.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) = 5383.11709189
delta logL = 1.00280521686

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5383.09603362
delta logL = 1.02386349069

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .77787       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.1987       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0539       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .63533       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5110E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5383.096     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      197 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .77683        9.6781        .93954E-02    .98847E-03
   2  alpha         4.2003        3.2625        .50000        .25835E-04
   3  Normalizat    1.0538        .47480E-01    .40304E-01   -.12467E-04
   4  Prefactor     .63536        .48767E-01    .41534E-01    .77609E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.776832
  alpha      = 4.20035
  Normalizat = 1.05382
  Prefactor  = 0.635358
 **********
 **   18 **HESSE 
 **********

 FCN=   5383.096     FROM HESSE     STATUS=OK            33 CALLS      230 TOTAL
                     EDM=   .37E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .77683        2.8826        .42345E-04   -1.5532    
   2  alpha         4.2003        4.4860        .26966E-01    .74795    
   3  Normalizat    1.0538        .17660        .19887E-03   -.91249    
   4  Prefactor     .63536        .17513        .25342E-03   -1.0612    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.66147e-11
Minuit parameter uncertainties:
  1  2.88312
  2  3.46002
  3  0.176697
  4  0.175276
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/886469': 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) = 5383.09603294
delta logL = 1.02386417069

Extracting fit parameters...

4FGL J0252.8-2219
   Spectrum: LogParabola
257         norm:  7.768e-01  2.883e+00  1.000e-04  1.000e+04 ( 1.000e-11)
258        alpha:  4.200e+00  3.460e+00  0.000e+00  5.000e+00 ( 1.000e+00)
259         beta:  8.603e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
260           Eb:  4.069e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
508    Prefactor:  6.354e-01  1.753e-01  0.000e+00  1.000e+01 ( 1.000e+00)
509        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
510        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
504   Normalization:  1.054e+00  1.767e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.72
Ra Dec: 43.201 -22.320
Photon Index (Free Index): 4.20 +/- 3.46
Photon Flux (Free Index): 7.92e-08 +/- 5.59e-08
Energy Flux (Free Index): 1.17e-05 +/- 9.58e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/886469/cmap_HighResolution_275616001_275875201_4FGL_J0252.8-2219_daily_bin140.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.74e-05', comment='SUCCESS', energy_flux2='1.17e-05', dlogl='1.02e+00', photon_flux2='7.92e-08', job_status='DONE', time_completed='2021-08-17 00:44:09.096502', photon_index_error2='3.46', photon_index2='4.20', ts='0.50', fit_tolerance='1e-08', GAL='0.59', photon_index_error='0.00', photon_flux_upper_limit='8.12e-08', energy_flux_error2='9.58e-06', EG='1.13', time_epoch_completed='1629186249.1', return_code='0', job_id='886469', GAL2='0.64', EG2='1.05', return_code2='0', photon_flux_error2='5.59e-08', ts2='2.72', photon_index='2.25' WHERE bin_id='140' AND source_name='4FGL J0252.8-2219' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 17 00:44:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0050>
Subject: Job 886469: <4FGL_J0252.8-2219_daily_bin140> in cluster <slac> Done

Job <4FGL_J0252.8-2219_daily_bin140> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Aug 17 00:30:48 2021
Job was executed on host(s) <bullet0050>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 17 00:31:36 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug 17 00:31:36 2021
Terminated at Tue Aug 17 00:44:10 2021
Results reported at Tue Aug 17 00:44:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0252.8-2219_daily_bin140 43.2007 -22.3203 275616001 275875201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0252.8-2219 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   714.31 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             364.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   756 sec.
    Turnaround time :                            802 sec.

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

