/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 149 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 = 7348
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2253.2-1232_daily_bin1573
RA = 343.308, Dec = -12.5416
tmin = 647049601, tmax = 647308801
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='572770', job_status='RUN', time_executed='2021-09-29 01:48:03.018210', time_epoch_executed='1632905283.02' WHERE source_name='4FGL J2253.2-1232' and cadence='daily' and bin_id='1573'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/572770

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/572770/ft1_4FGL_J2253.2-1232_daily_bin1573.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/572770/ft2_4FGL_J2253.2-1232_daily_bin1573.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/572770/ft1_4FGL_J2253.2-1232_daily_bin1573.fits outfile=/scratch/kocevski/572770/ft1_filteredMKT_4FGL_J2253.2-1232_daily_bin1573.fits ra=343.308 dec=-12.5416 rad=12.0 tmin=647049601.0 tmax=647308801.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.52
user 3.30
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/572770/ft2_4FGL_J2253.2-1232_daily_bin1573.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/572770/ft1_filteredMKT_4FGL_J2253.2-1232_daily_bin1573.fits evtable="EVENTS" outfile="/scratch/kocevski/572770/ft1_filtered_4FGL_J2253.2-1232_daily_bin1573.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.49
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/572770/ft1_filtered_4FGL_J2253.2-1232_daily_bin1573.fits" evtable="EVENTS" scfile=/scratch/kocevski/572770/ft2_4FGL_J2253.2-1232_daily_bin1573.fits sctable="SC_DATA" outfile=/scratch/kocevski/572770/ltcube_647049601_647308801_4FGL_J2253.2-1232_daily_bin1573.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/572770/ft2_4FGL_J2253.2-1232_daily_bin1573.fits
.....................!
real 11.80
user 11.45
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/572770/ft1_filtered_4FGL_J2253.2-1232_daily_bin1573.fits evtable="EVENTS" scfile=/scratch/kocevski/572770/ft2_4FGL_J2253.2-1232_daily_bin1573.fits sctable="SC_DATA" expcube=/scratch/kocevski/572770/ltcube_647049601_647308801_4FGL_J2253.2-1232_daily_bin1573.fits outfile=/scratch/kocevski/572770/expmap_647049601_647308801_4FGL_J2253.2-1232_daily_bin1573.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/572770/ltcube_647049601_647308801_4FGL_J2253.2-1232_daily_bin1573.fits
.....................!
real 190.80
user 185.07
sys 5.31

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/572770/ft1_filtered_4FGL_J2253.2-1232_daily_bin1573.fits scfile=/scratch/kocevski/572770/ft2_4FGL_J2253.2-1232_daily_bin1573.fits outfile=/scratch/kocevski/572770/cmap_647049601_647308801_4FGL_J2253.2-1232_daily_bin1573.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.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/572770/ft1_filtered_4FGL_J2253.2-1232_daily_bin1573.fits scfile=/scratch/kocevski/572770/ft2_4FGL_J2253.2-1232_daily_bin1573.fits outfile=/scratch/kocevski/572770/cmap_HighResolution_647049601_647308801_4FGL_J2253.2-1232_daily_bin1573.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.55
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/572770/ft1_filtered_4FGL_J2253.2-1232_daily_bin1573.fits evtable="EVENTS" scfile=/scratch/kocevski/572770/ft2_4FGL_J2253.2-1232_daily_bin1573.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/572770/Model_4FGL_J2253.2-1232_daily_bin1573.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/572770/ft1_filtered_4FGL_J2253.2-1232_daily_bin1573.fits.....................!
real 52.78
user 51.29
sys 1.28

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/572770/ft1_filtered_4FGL_J2253.2-1232_daily_bin1573.fits', '/scratch/kocevski/572770/ft2_4FGL_J2253.2-1232_daily_bin1573.fits', expMap='/scratch/kocevski/572770/expmap_647049601_647308801_4FGL_J2253.2-1232_daily_bin1573.fits', expCube='/scratch/kocevski/572770/ltcube_647049601_647308801_4FGL_J2253.2-1232_daily_bin1573.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/572770/Model_4FGL_J2253.2-1232_daily_bin1573.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/572770/ft1_filtered_4FGL_J2253.2-1232_daily_bin1573.fits
Spacecraft file(s): /scratch/kocevski/572770/ft2_4FGL_J2253.2-1232_daily_bin1573.fits
Exposure map: /scratch/kocevski/572770/expmap_647049601_647308801_4FGL_J2253.2-1232_daily_bin1573.fits
Exposure cube: /scratch/kocevski/572770/ltcube_647049601_647308801_4FGL_J2253.2-1232_daily_bin1573.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/572770/Model_4FGL_J2253.2-1232_daily_bin1573.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) = 5720.50990789

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    37.156       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.4457       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10116E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    5.2810       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10141E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.9065       1.0000         .10000E-03   10000.    
     9 'Prefactor '    15.748       1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    23.161       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.4868       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    10.369       1.0000         .10000E-03   10000.    
    15 'Prefactor '    29.722       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10116E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.2049       1.0000         .10000E-03   10000.    
    19 'norm      '    4.1698       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2570       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .75854       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=   5720.246     FROM MIGRAD    STATUS=CONVERGED    528 CALLS     2748 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.316       -.85234E-06** at limit **
   2  Prefactor     37.118        67.444        .17511E-05   -.27143E-03
   3  Prefactor     1.4447        4.5594        .97151E-05   -.14130E-04
   4  Prefactor     .10000E-03    41.634        .27536E-06** at limit **
   5  norm          5.2812        4.2740       -.56673E-06   -.18076E-03
   6  Prefactor     .10000E-03    32.946       -.30731E-06** at limit **
   7  Prefactor     .10000E-03    20.360       -.64124E-07** at limit **
   8  norm          2.9066        1.0837        .15295E-07   -.48071E-03
   9  Prefactor     15.783        18.663        .19873E-06    .34272E-03
  10  norm          .10000E-03    1.2672       -.32676E-06** at limit **
  11  Prefactor     23.146        33.727        .16179E-05   -.21426E-03
  12  Prefactor     5.4868        5.9922       -.15282E-08    .59055E-05
  13  Prefactor     .10000E-03    4.4274       -.17956E-06** at limit **
  14  norm          10.365        14.003        .53358E-06   -.87210E-05
  15  Prefactor     29.739        61.513       -.23687E-05    .77706E-04
  16  Prefactor     .10000E-03    15.130       -.21025E-08** at limit **
  17  Prefactor     .10000E-03    8.9376        .17292E-05** at limit **
  18  norm          1.2050        1.0932       -.37851E-07    .78164E-04
  19  norm          4.1721        6.6886        .29703E-05    .51668E-05
  20  Prefactor     .10000E-03    24.619        .81062E-07** at limit **
  21  Prefactor     .10000E-03    6.6526        .63208E-07** at limit **
  22  Prefactor     .10000E-03    28.612       -.64685E-07** at limit **
  23  Normalizat    1.2564        .20667       -.15695E-05   -.23748E-03
  24  Prefactor     .75903        .15413       -.12341E-05   -.42971E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Prefactor  = 37.118
  Prefactor  = 1.44471
  Prefactor  = 0.000100004
  norm       = 5.28123
  Prefactor  = 0.000100002
  Prefactor  = 0.000100003
  norm       = 2.90659
  Prefactor  = 15.7833
  norm       = 0.0001
  Prefactor  = 23.1465
  Prefactor  = 5.48683
  Prefactor  = 0.0001
  norm       = 10.3645
  Prefactor  = 29.7391
  Prefactor  = 0.000100001
  Prefactor  = 0.000100002
  norm       = 1.20495
  norm       = 4.17214
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Normalizat = 1.25643
  Prefactor  = 0.759031
 **********
 **   18 **HESSE 
 **********

 FCN=   5720.246     FROM HESSE     STATUS=OK           393 CALLS     3141 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    16.572        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     37.118        67.963        .65749E-04   -1.4489    
   3  Prefactor     1.4447        4.5693        .13444E-02   -1.5468    
   4  Prefactor     .10000E-03    41.778        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          5.2812        4.2716        .13108E-03   -1.5248    
   6  Prefactor     .10000E-03    32.996        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    20.727        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.9066        1.0835        .46070E-04   -1.5367    
   9  Prefactor     15.783        15.984        .10093E-03   -1.4913    
  10  norm          .10000E-03    2.0147        .12991E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     23.146        33.910        .83232E-04   -1.4745    
  12  Prefactor     5.4868        5.9926        .17153E-03   -1.5239    
  13  Prefactor     .10000E-03    4.4363        .15542E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          10.365        14.008        .12443E-03   -1.5064    
  15  Prefactor     29.739        61.970        .73490E-04   -1.4617    
  16  Prefactor     .10000E-03    15.236        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    9.0145        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.2050        1.0859        .71987E-04   -1.5488    
  19  norm          4.1721        6.6389        .98687E-03   -1.5299    
  20  Prefactor     .10000E-03    24.648        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    6.6642        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    28.655        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.2564        .24809        .25173E-03   -.84876    
  24  Prefactor     .75903        .18370        .23856E-03   -1.0126    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.87363e-09
Minuit parameter uncertainties:
  1  0.000346816
  2  68.1055
  3  4.57038
  4  0.000830214
  5  4.27181
  6  0.00055783
  7  0.000498121
  8  1.08347
  9  15.9883
  10  1.72207e-05
  11  33.9386
  12  5.99329
  13  2.04372e-05
  14  14.0122
  15  62.1047
  16  0.000269495
  17  0.000284723
  18  1.08595
  19  6.64003
  20  2.36065e-05
  21  1.55001e-05
  22  0.000512922
  23  0.248323
  24  0.183843
Done.

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

Extracting fit parameters...

4FGL J2253.2-1232
   Spectrum: PowerLaw
278    Prefactor:  2.315e+01  3.394e+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:  7.590e-01  1.838e-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:  1.256e+00  2.483e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/572770/likelihoodResults_647049601_647308801_4FGL_J2253.2-1232_daily_bin1573.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) = 5720.15904298
delta logL = 0.0867425630886

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5720.11215083
delta logL = 0.133634712611

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    34.201       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9496       1.0000          .0000       10.000    
     3 'Normalizat'    1.2850       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74264       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5720.112     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      264 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     34.200        40.008        .68522E-04   -.54751E-05
   2  Index         1.9498        .95285        .11173E-01   -.15362E-03
   3  Normalizat    1.2852        .23759        .24940E-03    .95269E-05
   4  Prefactor     .74251        .17912        .24092E-03    .21895E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 34.2005
  Index      = 1.94975
  Normalizat = 1.2852
  Prefactor  = 0.742511
 **********
 **   18 **HESSE 
 **********

 FCN=   5720.112     FROM HESSE     STATUS=OK            25 CALLS      289 TOTAL
                     EDM=   .11E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     34.200        40.399        .27409E-05   -1.4538    
   2  Index         1.9498        .96259        .22346E-02   -.65612    
   3  Normalizat    1.2852        .23777        .99761E-05   -.84009    
   4  Prefactor     .74251        .17925        .96368E-05   -1.0188    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.09219e-12
Minuit parameter uncertainties:
  1  40.4311
  2  0.972318
  3  0.23797
  4  0.179393
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/572770': 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) = 5720.11215017
delta logL = 0.133635372779

Extracting fit parameters...

4FGL J2253.2-1232
   Spectrum: PowerLaw
278    Prefactor:  3.420e+01  4.043e+01  1.000e-04  1.000e+04 ( 1.000e-13)
279        Index:  1.950e+00  9.723e-01  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:  7.425e-01  1.794e-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:  1.285e+00  2.380e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.14
Ra Dec: 343.308 -12.542
Photon Index (Free Index): 1.95 +/- 0.97
Photon Flux (Free Index): 2.56e-08 +/- 4.63e-08
Energy Flux (Free Index): 2.01e-05 +/- 3.24e-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/572770/cmap_HighResolution_647049601_647308801_4FGL_J2253.2-1232_daily_bin1573.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.26e-02', comment='SUCCESS', energy_flux2='2.01e-05', dlogl='1.34e-01', photon_flux2='2.56e-08', job_status='DONE', time_completed='2021-09-29 01:58:16.637138', photon_index_error2='0.97', photon_index2='1.95', ts='0.86', fit_tolerance='1e-08', GAL='0.76', photon_index_error='0.00', photon_flux_upper_limit='1.61e-07', energy_flux_error2='3.24e-05', EG='1.26', time_epoch_completed='1632905896.64', return_code='0', job_id='572770', GAL2='0.74', EG2='1.29', return_code2='0', photon_flux_error2='4.63e-08', ts2='1.14', photon_index='2.65' WHERE bin_id='1573' AND source_name='4FGL J2253.2-1232' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 01:58:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0088>
Subject: Job 572770: <4FGL_J2253.2-1232_daily_bin1573> in cluster <slac> Done

Job <4FGL_J2253.2-1232_daily_bin1573> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 01:45:23 2021
Job was executed on host(s) <bullet0088>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 01:45:25 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 01:45:25 2021
Terminated at Wed Sep 29 01:58:17 2021
Results reported at Wed Sep 29 01:58:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2253.2-1232_daily_bin1573 343.308 -12.5416 647049601 647308801 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 :                                   606.16 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             245.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   771 sec.
    Turnaround time :                            774 sec.

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

