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


Performing analysis on: 4FGL_J2253.9+1609_daily_bin510
RA = 343.496, Dec = 16.1506
tmin = 371520001, tmax = 371779201
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='575241', job_status='RUN', time_executed='2021-09-29 01:52:51.438929', time_epoch_executed='1632905571.44' WHERE source_name='4FGL J2253.9+1609' and cadence='daily' and bin_id='510'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/575241

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/575241/ft1_4FGL_J2253.9+1609_daily_bin510.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/575241/ft2_4FGL_J2253.9+1609_daily_bin510.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/575241/ft1_4FGL_J2253.9+1609_daily_bin510.fits outfile=/scratch/kocevski/575241/ft1_filteredMKT_4FGL_J2253.9+1609_daily_bin510.fits ra=343.496 dec=16.1506 rad=12.0 tmin=371520001.0 tmax=371779201.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.66
user 4.27
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/575241/ft2_4FGL_J2253.9+1609_daily_bin510.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/575241/ft2_4FGL_J2253.9+1609_daily_bin510.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/575241/ft1_filteredMKT_4FGL_J2253.9+1609_daily_bin510.fits evtable="EVENTS" outfile="/scratch/kocevski/575241/ft1_filtered_4FGL_J2253.9+1609_daily_bin510.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.54
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/575241/ft1_filtered_4FGL_J2253.9+1609_daily_bin510.fits" evtable="EVENTS" scfile=/scratch/kocevski/575241/ft2_4FGL_J2253.9+1609_daily_bin510.fits sctable="SC_DATA" outfile=/scratch/kocevski/575241/ltcube_371520001_371779201_4FGL_J2253.9+1609_daily_bin510.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/575241/ft2_4FGL_J2253.9+1609_daily_bin510.fits
.....................!
real 12.13
user 11.65
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/575241/ft1_filtered_4FGL_J2253.9+1609_daily_bin510.fits evtable="EVENTS" scfile=/scratch/kocevski/575241/ft2_4FGL_J2253.9+1609_daily_bin510.fits sctable="SC_DATA" expcube=/scratch/kocevski/575241/ltcube_371520001_371779201_4FGL_J2253.9+1609_daily_bin510.fits outfile=/scratch/kocevski/575241/expmap_371520001_371779201_4FGL_J2253.9+1609_daily_bin510.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/575241/ltcube_371520001_371779201_4FGL_J2253.9+1609_daily_bin510.fits
.....................!
real 190.76
user 185.07
sys 4.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 157 point sources and 0 extended sources

Setting source of interest to:
4FGL J2253.9+1609 @ 343.496 16.1506

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/575241/ft1_filtered_4FGL_J2253.9+1609_daily_bin510.fits scfile=/scratch/kocevski/575241/ft2_4FGL_J2253.9+1609_daily_bin510.fits outfile=/scratch/kocevski/575241/cmap_371520001_371779201_4FGL_J2253.9+1609_daily_bin510.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.496 yref=16.1506 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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/575241/ft1_filtered_4FGL_J2253.9+1609_daily_bin510.fits scfile=/scratch/kocevski/575241/ft2_4FGL_J2253.9+1609_daily_bin510.fits outfile=/scratch/kocevski/575241/cmap_HighResolution_371520001_371779201_4FGL_J2253.9+1609_daily_bin510.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.496 yref=16.1506 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.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/575241/ft1_filtered_4FGL_J2253.9+1609_daily_bin510.fits evtable="EVENTS" scfile=/scratch/kocevski/575241/ft2_4FGL_J2253.9+1609_daily_bin510.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/575241/Model_4FGL_J2253.9+1609_daily_bin510.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/575241/ft1_filtered_4FGL_J2253.9+1609_daily_bin510.fits.....................!
real 87.37
user 85.70
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/575241/ft1_filtered_4FGL_J2253.9+1609_daily_bin510.fits', '/scratch/kocevski/575241/ft2_4FGL_J2253.9+1609_daily_bin510.fits', expMap='/scratch/kocevski/575241/expmap_371520001_371779201_4FGL_J2253.9+1609_daily_bin510.fits', expCube='/scratch/kocevski/575241/ltcube_371520001_371779201_4FGL_J2253.9+1609_daily_bin510.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/575241/Model_4FGL_J2253.9+1609_daily_bin510.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2253.9+1609'

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  5.306e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-09)
317       Index1:  2.020e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
318        Scale:  2.324e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed
319    Expfactor:  2.085e+01  0.000e+00 -1.000e+00  1.000e+02 ( 1.000e-03) fixed
320       Index2:  5.143e-01  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/575241/ft1_filtered_4FGL_J2253.9+1609_daily_bin510.fits
Spacecraft file(s): /scratch/kocevski/575241/ft2_4FGL_J2253.9+1609_daily_bin510.fits
Exposure map: /scratch/kocevski/575241/expmap_371520001_371779201_4FGL_J2253.9+1609_daily_bin510.fits
Exposure cube: /scratch/kocevski/575241/ltcube_371520001_371779201_4FGL_J2253.9+1609_daily_bin510.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/575241/Model_4FGL_J2253.9+1609_daily_bin510.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) = 8582.04509823

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.4954       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.1715       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.9974       1.0000         .10000E-03   10000.    
     7 'norm      '    1.3213       1.0000         .10000E-03   10000.    
     8 'Prefactor '    25.966       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .38796       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .24829E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.9585       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .84968E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.1623       1.0000         .10000E-03   10000.    
    17 'Prefactor '    14.902       1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.8793       1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.9310       1.0000         .10000E-03   10000.    
    20 'norm      '    .10108E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.6214       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .93120       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0282       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5100E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8581.979     FROM MIGRAD    STATUS=CONVERGED    556 CALLS     2403 TOTAL
                     EDM=   .38E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.394        .43959E-06** at limit **
   2  norm          .10000E-03    1.2738       -.24735E-08** at limit **
   3  Prefactor     7.4943        16.663        .10711E-05   -.39605E-04
   4  Prefactor     .10000E-03    3.1409        .19490E-07** at limit **
   5  Prefactor     4.1715        .42137        .20406E-07   -.20334E-04
   6  Prefactor     1.9976        6.9671       -.12075E-05   -.44024E-03
   7  norm          1.3213        1.0674        .10123E-07    .17687E-03
   8  Prefactor     25.966        25.522       -.19136E-05    .19803E-05
   9  Prefactor     .10000E-03    3.9715        .17838E-07** at limit **
  10  Prefactor     .10000E-03    9.1559       -.13290E-06** at limit **
  11  Prefactor     .38796        .14911        .28750E-07   -.12879E-02
  12  Prefactor     .10002E-03    5.3330       -.97847E-06** at limit **
  13  Prefactor     9.9609        26.511       -.78519E-05   -.18088E-04
  14  Prefactor     .10000E-03    1.8333       -.30464E-07** at limit **
  15  Prefactor     .10059E-03    7.6394        .39812E-06** at limit **
  16  Prefactor     5.1579        20.535        .16849E-04   -.21921E-04
  17  Prefactor     14.902        6.7989        .58816E-06   -.82914E-04
  18  Prefactor     7.8952        12.492       -.67940E-05   -.12416E-03
  19  Prefactor     7.9316        12.341       -.56098E-06   -.49267E-04
  20  norm          .10000E-03    16.230        .74065E-06** at limit **
  21  Prefactor     5.6371        7.8039        .47628E-05   -.24328E-03
  22  norm          .10000E-03    6.4547        .42149E-07** at limit **
  23  Normalizat    .93115        .22443       -.28473E-05    .45617E-04
  24  Prefactor     1.0282        .12156        .48776E-06   -.52182E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 7.4943
  Prefactor  = 0.0001
  Prefactor  = 4.17147
  Prefactor  = 1.99759
  norm       = 1.32128
  Prefactor  = 25.9665
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.387957
  Prefactor  = 0.000100021
  Prefactor  = 9.96093
  Prefactor  = 0.0001
  Prefactor  = 0.000100586
  Prefactor  = 5.15795
  Prefactor  = 14.9017
  Prefactor  = 7.8952
  Prefactor  = 7.93162
  norm       = 0.0001
  Prefactor  = 5.6371
  norm       = 0.0001
  Normalizat = 0.931152
  Prefactor  = 1.02821
 **********
 **   18 **HESSE 
 **********

 FCN=   8581.979     FROM HESSE     STATUS=OK           411 CALLS     2814 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.442        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    1.2772        .10210E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.4943        16.664        .14649E-03   -1.5160    
   4  Prefactor     .10000E-03    3.1490        .16032E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.1715        .42307        .17519E-04   -1.5299    
   6  Prefactor     1.9976        7.0067        .29308E-03   -1.5425    
   7  norm          1.3213        1.0736        .83845E-04   -1.5478    
   8  Prefactor     25.966        25.560        .78615E-04   -1.4688    
   9  Prefactor     .10000E-03    3.9915        .18027E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    9.1753        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .38796        .14767        .20616E-04   -1.5583    
  12  Prefactor     .10002E-03    32.650        .40921E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     9.9609        26.568        .12698E-03   -1.5077    
  14  Prefactor     .10000E-03    1.8376        .12248E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10059E-03    9.3810        .78687E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     5.1579        20.349        .17694E-03   -1.5254    
  17  Prefactor     14.902        6.8091        .10376E-03   -1.4936    
  18  Prefactor     7.8952        12.539        .14285E-03   -1.5146    
  19  Prefactor     7.9316        12.337        .14238E-03   -1.5145    
  20  norm          .10000E-03    16.510        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     5.6371        7.6944        .16944E-03   -1.5233    
  22  norm          .10000E-03    6.4789        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .93115        .25905        .37288E-03   -.95374    
  24  Prefactor     1.0282        .14097        .20549E-03   -.91795    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.31367e-09
Minuit parameter uncertainties:
  1  8.70856e-06
  2  1.38393e-06
  3  16.674
  4  4.26341e-06
  5  0.42307
  6  7.0096
  7  1.0736
  8  25.5708
  9  3.42521e-06
  10  6.75008e-06
  11  0.147665
  12  0.00166991
  13  26.5995
  14  6.03517e-07
  15  0.00468921
  16  20.3764
  17  6.80945
  18  12.5435
  19  12.3412
  20  9.37823e-05
  21  7.69571
  22  5.07383e-06
  23  0.259398
  24  0.141023
Done.

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

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  3.880e-01  1.477e-01  1.000e-04  1.000e+04 ( 1.000e-09)
317       Index1:  2.020e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
318        Scale:  2.324e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed
319    Expfactor:  2.085e+01  0.000e+00 -1.000e+00  1.000e+02 ( 1.000e-03) fixed
320       Index2:  5.143e-01  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
507    Prefactor:  1.028e+00  1.410e-01  0.000e+00  1.000e+01 ( 1.000e+00)
508        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
509        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
506   Normalization:  9.312e-01  2.594e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 12.63
Ra Dec: 343.496 16.151
Photon Index (Fixed Index): 2.02 +/- 0.00
Photon Flux (Fixed Index): 1.41e-07 +/- 5.38e-08
Energy Flux (Fixed Index): 4.54e-05 +/- 1.73e-05

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) = 8579.68660618
delta logL = 2.29191548044

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8579.68563021
delta logL = 2.29289145764

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .48809       1.0000         .10000E-03   10000.    
     2 'Index1    '    2.9738       1.0000          .0000       10.000    
     3 'Normalizat'    .81688       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0736       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5100E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8579.686     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      238 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .48809        2.2848        .42826E-02    .11029E-02
   2  Index1        2.9738        6.4210        .21838        .39613E-04
   3  Normalizat    .81688        .14068        .88986E-01    .24201E-04
   4  Prefactor     1.0736        .11470        .38688E-01    .67075E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.488093
  Index1     = 2.97376
  Normalizat = 0.816881
  Prefactor  = 1.07362
 **********
 **   18 **HESSE 
 **********

 FCN=   8579.686     FROM HESSE     STATUS=OK            31 CALLS      269 TOTAL
                     EDM=   .21E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .48809        .16923        .19083E-04   -1.5568    
   2  Index1        2.9738        .55718        .44099E-01   -.41725    
   3  Normalizat    .81688        .24668        .39414E-03   -.99446    
   4  Prefactor     1.0736        .14158        .20149E-03   -.90314    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.14432e-12
Minuit parameter uncertainties:
  1  0.169233
  2  0.558571
  3  0.247015
  4  0.141633
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/575241': 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) = 8579.6856302
delta logL = 2.29289146023

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  4.881e-01  1.692e-01  1.000e-04  1.000e+04 ( 1.000e-09)
317       Index1:  2.974e+00  5.586e-01  0.000e+00  1.000e+01 (-1.000e+00)
318        Scale:  2.324e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed
319    Expfactor:  2.085e+01  0.000e+00 -1.000e+00  1.000e+02 ( 1.000e-03) fixed
320       Index2:  5.143e-01  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
507    Prefactor:  1.074e+00  1.416e-01  0.000e+00  1.000e+01 ( 1.000e+00)
508        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
509        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
506   Normalization:  8.169e-01  2.470e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 17.62
Ra Dec: 343.496 16.151
Photon Index (Free Index): 2.97 +/- 0.56
Photon Flux (Free Index): 2.26e-07 +/- 7.13e-08
Energy Flux (Free Index): 4.13e-05 +/- 1.39e-05

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/575241/cmap_HighResolution_371520001_371779201_4FGL_J2253.9+1609_daily_bin510.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.41e-07', energy_flux2='4.13e-05', photon_flux_error='5.38e-08', dlogl='2.29e+00', energy_flux='4.54e-05', photon_flux2='2.26e-07', job_status='DONE', time_completed='2021-09-29 02:04:25.926174', photon_index_error2='0.56', photon_index2='2.97', ts='12.63', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', energy_flux_error2='1.39e-05', EG='0.93', time_epoch_completed='1632906265.93', return_code='0', job_id='575241', GAL2='1.07', EG2='0.82', return_code2='0', energy_flux_error='1.73e-05', photon_flux_error2='7.13e-08', ts2='17.62', photon_index='2.02' WHERE bin_id='510' AND source_name='4FGL J2253.9+1609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:04:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0044>
Subject: Job 575241: <4FGL_J2253.9+1609_daily_bin510> in cluster <slac> Done

Job <4FGL_J2253.9+1609_daily_bin510> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Sep 29 01:50:43 2021
Job was executed on host(s) <bullet0044>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 01:50:49 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:50:49 2021
Terminated at Wed Sep 29 02:04:26 2021
Results reported at Wed Sep 29 02:04:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2253.9+1609_daily_bin510 343.496 16.1506 371520001 371779201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2253.9+1609 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   691.00 sec.
    Max Memory :                                 1186 MB
    Average Memory :                             294.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   817 sec.
    Turnaround time :                            823 sec.

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

