/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 38 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 = 7502
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2253.2-1232_daily_bin1643
RA = 343.308, Dec = -12.5416
tmin = 665193601, tmax = 665452801
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='496627', job_status='RUN', time_executed='2022-02-02 00:36:49.709690', time_epoch_executed='1643791009.71' WHERE source_name='4FGL J2253.2-1232' and cadence='daily' and bin_id='1643'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/496627

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/496627/ft1_4FGL_J2253.2-1232_daily_bin1643.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/496627/ft2_4FGL_J2253.2-1232_daily_bin1643.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/496627/ft1_4FGL_J2253.2-1232_daily_bin1643.fits outfile=/scratch/kocevski/496627/ft1_filteredMKT_4FGL_J2253.2-1232_daily_bin1643.fits ra=343.308 dec=-12.5416 rad=12.0 tmin=665193601.0 tmax=665452801.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 3.61
user 3.41
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/496627/ft2_4FGL_J2253.2-1232_daily_bin1643.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/496627/ft2_4FGL_J2253.2-1232_daily_bin1643.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/496627/ft1_filteredMKT_4FGL_J2253.2-1232_daily_bin1643.fits evtable="EVENTS" outfile="/scratch/kocevski/496627/ft1_filtered_4FGL_J2253.2-1232_daily_bin1643.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.51
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/496627/ft1_filtered_4FGL_J2253.2-1232_daily_bin1643.fits" evtable="EVENTS" scfile=/scratch/kocevski/496627/ft2_4FGL_J2253.2-1232_daily_bin1643.fits sctable="SC_DATA" outfile=/scratch/kocevski/496627/ltcube_665193601_665452801_4FGL_J2253.2-1232_daily_bin1643.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/496627/ft2_4FGL_J2253.2-1232_daily_bin1643.fits
.....................!
real 16.42
user 16.02
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/496627/ft1_filtered_4FGL_J2253.2-1232_daily_bin1643.fits evtable="EVENTS" scfile=/scratch/kocevski/496627/ft2_4FGL_J2253.2-1232_daily_bin1643.fits sctable="SC_DATA" expcube=/scratch/kocevski/496627/ltcube_665193601_665452801_4FGL_J2253.2-1232_daily_bin1643.fits outfile=/scratch/kocevski/496627/expmap_665193601_665452801_4FGL_J2253.2-1232_daily_bin1643.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/496627/ltcube_665193601_665452801_4FGL_J2253.2-1232_daily_bin1643.fits
.....................!
real 190.44
user 186.24
sys 3.75

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
Added 154 point sources and 0 extended sources

Setting source of interest to:
4FGL J2253.2-1232 @ 343.308 -12.5416

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/496627/ft1_filtered_4FGL_J2253.2-1232_daily_bin1643.fits scfile=/scratch/kocevski/496627/ft2_4FGL_J2253.2-1232_daily_bin1643.fits outfile=/scratch/kocevski/496627/cmap_665193601_665452801_4FGL_J2253.2-1232_daily_bin1643.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.308 yref=-12.5416 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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/496627/ft1_filtered_4FGL_J2253.2-1232_daily_bin1643.fits scfile=/scratch/kocevski/496627/ft2_4FGL_J2253.2-1232_daily_bin1643.fits outfile=/scratch/kocevski/496627/cmap_HighResolution_665193601_665452801_4FGL_J2253.2-1232_daily_bin1643.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.308 yref=-12.5416 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.56
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/496627/ft1_filtered_4FGL_J2253.2-1232_daily_bin1643.fits evtable="EVENTS" scfile=/scratch/kocevski/496627/ft2_4FGL_J2253.2-1232_daily_bin1643.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/496627/Model_4FGL_J2253.2-1232_daily_bin1643.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 GAL_V02
Working on...
/scratch/kocevski/496627/ft1_filtered_4FGL_J2253.2-1232_daily_bin1643.fits.....................!
real 46.03
user 44.70
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/496627/ft1_filtered_4FGL_J2253.2-1232_daily_bin1643.fits', '/scratch/kocevski/496627/ft2_4FGL_J2253.2-1232_daily_bin1643.fits', expMap='/scratch/kocevski/496627/expmap_665193601_665452801_4FGL_J2253.2-1232_daily_bin1643.fits', expCube='/scratch/kocevski/496627/ltcube_665193601_665452801_4FGL_J2253.2-1232_daily_bin1643.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/496627/Model_4FGL_J2253.2-1232_daily_bin1643.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2253.2-1232'

4FGL J2253.2-1232
   Spectrum: PowerLaw
278    Prefactor:  7.270e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
279        Index:  2.646e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
280        Scale:  8.906e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/496627/ft1_filtered_4FGL_J2253.2-1232_daily_bin1643.fits
Spacecraft file(s): /scratch/kocevski/496627/ft2_4FGL_J2253.2-1232_daily_bin1643.fits
Exposure map: /scratch/kocevski/496627/expmap_665193601_665452801_4FGL_J2253.2-1232_daily_bin1643.fits
Exposure cube: /scratch/kocevski/496627/ltcube_665193601_665452801_4FGL_J2253.2-1232_daily_bin1643.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/496627/Model_4FGL_J2253.2-1232_daily_bin1643.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) = 5062.96018063

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    28.030       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.3608       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .86424       1.0000         .10000E-03   10000.    
     5 'norm      '    11.395       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10864E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    24.192       1.0000         .10000E-03   10000.    
     8 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    25.853       1.0000         .10000E-03   10000.    
    10 'norm      '    .11456E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.6477       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.6293       1.0000         .10000E-03   10000.    
    14 'norm      '    17.784       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.1081       1.0000         .10000E-03   10000.    
    18 'norm      '    2.5032       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10420E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .78896       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1434       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4910E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5062.951     FROM MIGRAD    STATUS=CONVERGED    533 CALLS     2763 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     28.015        18.166       -.21059E-05   -.39957E-04
   2  Prefactor     .10000E-03    49.908       -.12790E-04** at limit **
   3  Prefactor     8.3575        7.0636       -.94761E-06   -.14703E-03
   4  Prefactor     .86386        73.199       -.14230E-05    .17019E-04
   5  norm          11.395        5.6123       -.15782E-05   -.29296E-03
   6  Prefactor     .10000E-03    35.406        .18935E-04** at limit **
   7  Prefactor     24.193        16.131       -.23583E-06    .12804E-04
   8  norm          .10000E-03    .26244       -.13560E-07** at limit **
   9  Prefactor     25.843        25.885        .35907E-05   -.14864E-03
  10  norm          .10000E-03    1.2773        .26664E-06** at limit **
  11  Prefactor     8.6336        53.533       -.18241E-04   -.11353E-03
  12  Prefactor     .10000E-03    5.2202        .85657E-07** at limit **
  13  Prefactor     1.6245        4.0226        .21966E-05   -.17519E-02
  14  norm          17.786        16.921       -.43520E-06   -.56677E-05
  15  Prefactor     .10000E-03    20.464        .71335E-05** at limit **
  16  Prefactor     .10000E-03    23.057       -.64477E-05** at limit **
  17  Prefactor     6.1066        7.2757        .17863E-06   -.25961E-04
  18  norm          2.5031        1.3871       -.48923E-07   -.41422E-05
  19  norm          .10000E-03    2.0821        .34647E-07** at limit **
  20  Prefactor     .10000E-03    21.514       -.57658E-06** at limit **
  21  Prefactor     .10000E-03    4.9183       -.83847E-07** at limit **
  22  Prefactor     .10000E-03    24.229       -.72001E-05** at limit **
  23  Normalizat    .78908        .23711        .29011E-05   -.62054E-05
  24  Prefactor     1.1435        .17984       -.10565E-06    .71064E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 28.0152
  Prefactor  = 0.000100001
  Prefactor  = 8.35751
  Prefactor  = 0.863857
  norm       = 11.3953
  Prefactor  = 0.000100002
  Prefactor  = 24.1929
  norm       = 0.0001
  Prefactor  = 25.8431
  norm       = 0.0001
  Prefactor  = 8.63361
  Prefactor  = 0.0001
  Prefactor  = 1.62453
  norm       = 17.7863
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.10658
  norm       = 2.50305
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.789079
  Prefactor  = 1.14351
 **********
 **   18 **HESSE 
 **********

 FCN=   5062.951     FROM HESSE     STATUS=OK           403 CALLS     3166 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     28.015        18.184        .75671E-04   -1.4649    
   2  Prefactor     .10000E-03    49.820        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     8.3575        7.0715        .13864E-03   -1.5130    
   4  Prefactor     .86386        77.377        .16928       -1.5522    
   5  norm          11.395        5.6125        .11087E-03   -1.5033    
   6  Prefactor     .10000E-03    35.459        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     24.193        16.144        .81441E-04   -1.4724    
   8  norm          .10000E-03    .26563        .35546E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     25.843        23.193        .78786E-04   -1.4691    
  10  norm          .10000E-03    1.6065        .12800E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     8.6336        52.359        .13631E-03   -1.5120    
  12  Prefactor     .10000E-03    5.2274        .15876E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.6245        13.373        .16567E-02   -1.5453    
  14  norm          17.786        16.939        .94975E-04   -1.4864    
  15  Prefactor     .10000E-03    20.459        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    23.197        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     6.1066        7.2702        .16245E-03   -1.5214    
  18  norm          2.5031        1.3872        .60514E-04   -1.5392    
  19  norm          .10000E-03    2.0864        .10024E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    21.527        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    4.9200        .15412E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    24.234        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .78908        .27414        .32235E-03   -1.0048    
  24  Prefactor     1.1435        .20925        .21240E-03   -.88088    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.66762e-08
Minuit parameter uncertainties:
  1  18.1871
  2  0.000320218
  3  7.07225
  4  16.3724
  5  5.61276
  6  0.000556921
  7  16.1465
  8  3.82762e-07
  9  23.2013
  10  1.82628e-05
  11  42.5783
  12  1.65896e-05
  13  9.32467
  14  16.9433
  15  0.0001343
  16  0.000153576
  17  7.27127
  18  1.38719
  19  2.43211e-06
  20  2.49214e-05
  21  3.78402e-06
  22  0.000170788
  23  0.274624
  24  0.209398
Done.

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

Extracting fit parameters...

4FGL J2253.2-1232
   Spectrum: PowerLaw
278    Prefactor:  8.634e+00  4.258e+01  1.000e-04  1.000e+04 ( 1.000e-13)
279        Index:  2.646e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
280        Scale:  8.906e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
488    Prefactor:  1.144e+00  2.094e-01  0.000e+00  1.000e+01 ( 1.000e+00)
489        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
490        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
487   Normalization:  7.891e-01  2.746e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.08
Ra Dec: 343.308 -12.542
Photon Flux Upper Limit: 1.60e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.25e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/496627/likelihoodResults_665193601_665452801_4FGL_J2253.2-1232_daily_bin1643.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) = 5062.44230941
delta logL = 0.508551947659

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5062.42734927
delta logL = 0.523512091918

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5062.427     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      336 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .18076        3.2694        .66280E-02    .16556E-02
   2  Index         5.5966        3.1195        .11510        .12077E-03
   3  Normalizat    .70937        .50172E-01    .76383E-01    .85223E-05
   4  Prefactor     1.1872        .39323E-01    .34946E-01   -.78834E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.18076
  Index      = 5.5966
  Normalizat = 0.709374
  Prefactor  = 1.18716
 **********
 **   18 **HESSE 
 **********

 FCN=   5062.427     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      369 TOTAL
                     EDM=   .86E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .18076        9.0770        .30306E-03   -1.5623    
   2  Index         5.5966        7.6947        .56944E-02    .11961    
   3  Normalizat    .70937        .19088        .33814E-03   -1.0352    
   4  Prefactor     1.1872        .14642        .20893E-03   -.86727    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.5681e-08
Minuit parameter uncertainties:
  1  2.56155
  2  6.95738
  3  0.191064
  4  0.146468
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/496627': 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): 102
logL (Free Index) = 5062.4273425
delta logL = 0.523518856743

Extracting fit parameters...

4FGL J2253.2-1232
   Spectrum: PowerLaw
278    Prefactor:  1.808e-01  2.562e+00  1.000e-04  1.000e+04 ( 1.000e-13)
279        Index:  5.597e+00  6.957e+00  0.000e+00  1.000e+01 (-1.000e+00)
280        Scale:  8.906e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
488    Prefactor:  1.187e+00  1.465e-01  0.000e+00  1.000e+01 ( 1.000e+00)
489        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
490        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
487   Normalization:  7.094e-01  1.911e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.23
Ra Dec: 343.308 -12.542
Photon Index (Free Index): 5.60 +/- 6.96
Photon Flux (Free Index): 8.19e-08 +/- 8.59e-08
Energy Flux (Free Index): 1.04e-05 +/- 1.34e-05

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/496627/cmap_HighResolution_665193601_665452801_4FGL_J2253.2-1232_daily_bin1643.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.25e-02', comment='SUCCESS', energy_flux2='1.04e-05', dlogl='5.24e-01', photon_flux2='8.19e-08', job_status='DONE', time_completed='2022-02-02 00:46:26.527161', photon_index_error2='6.96', photon_index2='5.60', ts='0.08', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', photon_flux_upper_limit='1.60e-07', energy_flux_error2='1.34e-05', EG='0.79', time_epoch_completed='1643791586.53', return_code='0', job_id='496627', GAL2='1.19', EG2='0.71', return_code2='102', photon_flux_error2='8.59e-08', ts2='1.23', photon_index='2.65' WHERE bin_id='1643' AND source_name='4FGL J2253.2-1232' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Feb  2 00:46:26 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0204>
Subject: Job 496627: <4FGL_J2253.2-1232_daily_bin1643> in cluster <slac> Done

Job <4FGL_J2253.2-1232_daily_bin1643> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Wed Feb  2 00:35:57 2022
Job was executed on host(s) <bullet0204>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Feb  2 00:35:58 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Feb  2 00:35:58 2022
Terminated at Wed Feb  2 00:46:27 2022
Results reported at Wed Feb  2 00:46:27 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2253.2-1232_daily_bin1643 343.308 -12.5416 665193601 665452801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2253.2-1232 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   579.02 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             348.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   628 sec.
    Turnaround time :                            630 sec.

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

