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


Performing analysis on: 4FGL_J2253.9+1609_daily_bin1165
RA = 343.496, Dec = 16.1506
tmin = 541296001, tmax = 541555201
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='579705', job_status='RUN', time_executed='2021-09-29 02:08:23.492880', time_epoch_executed='1632906503.49' WHERE source_name='4FGL J2253.9+1609' and cadence='daily' and bin_id='1165'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/579705

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/579705/ft1_4FGL_J2253.9+1609_daily_bin1165.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/579705/ft2_4FGL_J2253.9+1609_daily_bin1165.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/579705/ft1_4FGL_J2253.9+1609_daily_bin1165.fits outfile=/scratch/kocevski/579705/ft1_filteredMKT_4FGL_J2253.9+1609_daily_bin1165.fits ra=343.496 dec=16.1506 rad=12.0 tmin=541296001.0 tmax=541555201.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.71
user 3.47
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/579705/ft2_4FGL_J2253.9+1609_daily_bin1165.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/579705/ft1_filteredMKT_4FGL_J2253.9+1609_daily_bin1165.fits evtable="EVENTS" outfile="/scratch/kocevski/579705/ft1_filtered_4FGL_J2253.9+1609_daily_bin1165.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.50
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/579705/ft1_filtered_4FGL_J2253.9+1609_daily_bin1165.fits" evtable="EVENTS" scfile=/scratch/kocevski/579705/ft2_4FGL_J2253.9+1609_daily_bin1165.fits sctable="SC_DATA" outfile=/scratch/kocevski/579705/ltcube_541296001_541555201_4FGL_J2253.9+1609_daily_bin1165.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/579705/ft2_4FGL_J2253.9+1609_daily_bin1165.fits
.....................!
real 12.03
user 11.66
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/579705/ft1_filtered_4FGL_J2253.9+1609_daily_bin1165.fits evtable="EVENTS" scfile=/scratch/kocevski/579705/ft2_4FGL_J2253.9+1609_daily_bin1165.fits sctable="SC_DATA" expcube=/scratch/kocevski/579705/ltcube_541296001_541555201_4FGL_J2253.9+1609_daily_bin1165.fits outfile=/scratch/kocevski/579705/expmap_541296001_541555201_4FGL_J2253.9+1609_daily_bin1165.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/579705/ltcube_541296001_541555201_4FGL_J2253.9+1609_daily_bin1165.fits
.....................!
real 191.72
user 186.19
sys 5.18

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/579705/ft1_filtered_4FGL_J2253.9+1609_daily_bin1165.fits scfile=/scratch/kocevski/579705/ft2_4FGL_J2253.9+1609_daily_bin1165.fits outfile=/scratch/kocevski/579705/cmap_541296001_541555201_4FGL_J2253.9+1609_daily_bin1165.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.54
user 0.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/579705/ft1_filtered_4FGL_J2253.9+1609_daily_bin1165.fits scfile=/scratch/kocevski/579705/ft2_4FGL_J2253.9+1609_daily_bin1165.fits outfile=/scratch/kocevski/579705/cmap_HighResolution_541296001_541555201_4FGL_J2253.9+1609_daily_bin1165.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.54
user 0.38
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/579705/ft1_filtered_4FGL_J2253.9+1609_daily_bin1165.fits', '/scratch/kocevski/579705/ft2_4FGL_J2253.9+1609_daily_bin1165.fits', expMap='/scratch/kocevski/579705/expmap_541296001_541555201_4FGL_J2253.9+1609_daily_bin1165.fits', expCube='/scratch/kocevski/579705/ltcube_541296001_541555201_4FGL_J2253.9+1609_daily_bin1165.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/579705/Model_4FGL_J2253.9+1609_daily_bin1165.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/579705/ft1_filtered_4FGL_J2253.9+1609_daily_bin1165.fits
Spacecraft file(s): /scratch/kocevski/579705/ft2_4FGL_J2253.9+1609_daily_bin1165.fits
Exposure map: /scratch/kocevski/579705/expmap_541296001_541555201_4FGL_J2253.9+1609_daily_bin1165.fits
Exposure cube: /scratch/kocevski/579705/ltcube_541296001_541555201_4FGL_J2253.9+1609_daily_bin1165.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/579705/Model_4FGL_J2253.9+1609_daily_bin1165.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) = 7689.57572102

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.0915       1.0000         .10000E-03   10000.    
     2 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .18996       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.9159       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.1088       1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.487       1.0000         .10000E-03   10000.    
     7 'norm      '    2.6920       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10219E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.3911       1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.857       1.0000         .10000E-03   10000.    
    13 'Prefactor '    63.014       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.8606       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.2406       1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.0655       1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.0016       1.0000         .10000E-03   10000.    
    20 'norm      '    .23465E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.2636       1.0000         .10000E-03   10000.    
    22 'norm      '    .10080E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0127       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .98499       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=   7689.568     FROM MIGRAD    STATUS=CONVERGED    549 CALLS     2760 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.1040        29.802       -.19207E-04   -.12429E-03
   2  norm          .10000E-03    2.5959       -.15784E-07** at limit **
   3  Prefactor     .10895        12.098       -.67294E-06    .45523E-04
   4  Prefactor     6.9131        8.8793       -.87047E-06   -.18918E-04
   5  Prefactor     2.1091        .35633       -.25970E-07    .16968E-02
   6  Prefactor     13.487        9.8567        .88801E-06    .96874E-04
   7  norm          2.6934        1.7080       -.19032E-07    .45221E-04
   8  Prefactor     .10000E-03    10.253       -.17937E-06** at limit **
   9  Prefactor     .10000E-03    5.8676       -.15362E-07** at limit **
  10  Prefactor     .10000E-03    8.9455        .18981E-05** at limit **
  11  Prefactor     1.3911        .22191       -.14713E-07    .49352E-03
  12  Prefactor     11.858        9.0745        .12942E-05    .14801E-03
  13  Prefactor     63.003        42.895       -.55058E-05   -.98234E-04
  14  Prefactor     5.8600        7.1078       -.17137E-06   -.33143E-04
  15  Prefactor     .10000E-03    9.1426       -.19525E-05** at limit **
  16  Prefactor     .10000E-03    7.5089       -.85405E-07** at limit **
  17  Prefactor     9.2392        7.4706        .29207E-07    .28150E-04
  18  Prefactor     7.0657        10.817       -.87517E-06    .56997E-04
  19  Prefactor     4.0002        12.374       -.11595E-05   -.36283E-04
  20  norm          .10002E-03    6.1748       -.11651E-05** at limit **
  21  Prefactor     3.2610        3.9234        .15998E-05   -.20751E-02
  22  norm          .10000E-03    10.660        .40935E-06** at limit **
  23  Normalizat    1.0129        .23616        .25448E-05    .12360E-03
  24  Prefactor     .98491        .12699       -.21835E-06    .34068E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.10399
  norm       = 0.0001
  Prefactor  = 0.108954
  Prefactor  = 6.9131
  Prefactor  = 2.10908
  Prefactor  = 13.4867
  norm       = 2.69335
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.39108
  Prefactor  = 11.8582
  Prefactor  = 63.0034
  Prefactor  = 5.86001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.23919
  Prefactor  = 7.06569
  Prefactor  = 4.00019
  norm       = 0.000100021
  Prefactor  = 3.26097
  norm       = 0.0001
  Normalizat = 1.01292
  Prefactor  = 0.984912
 **********
 **   18 **HESSE 
 **********

 FCN=   7689.568     FROM HESSE     STATUS=OK           407 CALLS     3167 TOTAL
                     EDM=   .88E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.1040        30.627        .28545E-03   -1.5418    
   2  norm          .10000E-03    2.6503        .13795E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10895        15.449        .84641E-01   -1.5642    
   4  Prefactor     6.9131        8.8917        .15256E-03   -1.5182    
   5  Prefactor     2.1091        .35954        .19641E-04   -1.5418    
   6  Prefactor     13.487        9.8701        .10907E-03   -1.4973    
   7  norm          2.6934        1.7116        .88712E-04   -1.5380    
   8  Prefactor     .10000E-03    10.256        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.9259        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    8.9591        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.3911        .22254        .15613E-04   -1.5472    
  12  Prefactor     11.858        9.0729        .11634E-03   -1.5019    
  13  Prefactor     63.003        43.169        .50551E-04   -1.4119    
  14  Prefactor     5.8600        7.1037        .16589E-03   -1.5224    
  15  Prefactor     .10000E-03    9.2237        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    7.5196        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     9.2392        7.4646        .13184E-03   -1.5100    
  18  Prefactor     7.0657        10.370        .15092E-03   -1.5176    
  19  Prefactor     4.0002        12.333        .20161E-03   -1.5308    
  20  norm          .10002E-03    41.277        .39057E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     3.2610        7.4974        .11208E-02   -1.5347    
  22  norm          .10000E-03    10.720        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.0129        .27772        .36268E-03   -.92599    
  24  Prefactor     .98491        .14828        .21033E-03   -.93234    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.75874e-09
Minuit parameter uncertainties:
  1  16.0643
  2  1.62628e-06
  3  2.59428
  4  8.89338
  5  0.359543
  6  9.87128
  7  1.71166
  8  6.32958e-06
  9  8.84562e-06
  10  3.55948e-05
  11  0.222541
  12  9.07397
  13  43.1905
  14  7.10476
  15  3.55763e-05
  16  1.12902e-05
  17  7.46532
  18  10.3726
  19  12.3408
  20  0.00186465
  21  7.49961
  22  4.40656e-06
  23  0.278115
  24  0.148346
Done.

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

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  1.391e+00  2.225e-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:  9.849e-01  1.483e-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:  1.013e+00  2.781e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 127.24
Ra Dec: 343.496 16.151
Photon Index (Fixed Index): 2.02 +/- 0.00
Photon Flux (Fixed Index): 5.07e-07 +/- 8.11e-08
Energy Flux (Fixed Index): 1.63e-04 +/- 2.61e-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) = 7689.25357497
delta logL = 0.314780719723

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7689.22698507
delta logL = 0.3413706225

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.4732       1.0000         .10000E-03   10000.    
     2 'Index1    '    2.1721       1.0000          .0000       10.000    
     3 'Normalizat'    .96849       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0018       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=   7689.227     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      202 TOTAL
                     EDM=   .10E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.4734        .23185        .35593E-02    .77453E-05
   2  Index1        2.1720        .17621        .81926E-01   -.57256E-04
   3  Normalizat    .96850        .22398        .83423E-01    .24411E-04
   4  Prefactor     1.0019        .12708        .45030E-01    .34063E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.47337
  Index1     = 2.17199
  Normalizat = 0.968502
  Prefactor  = 1.0019
 **********
 **   18 **HESSE 
 **********

 FCN=   7689.227     FROM HESSE     STATUS=OK            31 CALLS      233 TOTAL
                     EDM=   .71E-14    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.4734        .24361        .15735E-04   -1.5465    
   2  Index1        2.1720        .18723        .35852E-03   -.60116    
   3  Normalizat    .96850        .26055        .36932E-03   -.94093    
   4  Prefactor     1.0019        .14745        .20866E-03   -.92666    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.11922e-15
Minuit parameter uncertainties:
  1  0.243607
  2  0.18729
  3  0.260887
  4  0.147513
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/579705': 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) = 7689.22698386
delta logL = 0.341371828833

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  1.473e+00  2.436e-01  1.000e-04  1.000e+04 ( 1.000e-09)
317       Index1:  2.172e+00  1.873e-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.002e+00  1.475e-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.685e-01  2.609e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 126.91
Ra Dec: 343.496 16.151
Photon Index (Free Index): 2.17 +/- 0.19
Photon Flux (Free Index): 5.46e-07 +/- 9.61e-08
Energy Flux (Free Index): 1.53e-04 +/- 2.61e-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/579705/cmap_HighResolution_541296001_541555201_4FGL_J2253.9+1609_daily_bin1165.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.07e-07', energy_flux2='1.53e-04', photon_flux_error='8.11e-08', dlogl='3.41e-01', energy_flux='1.63e-04', photon_flux2='5.46e-07', job_status='DONE', time_completed='2021-09-29 02:19:54.707608', photon_index_error2='0.19', photon_index2='2.17', ts='127.24', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', energy_flux_error2='2.61e-05', EG='1.01', time_epoch_completed='1632907194.71', return_code='0', job_id='579705', GAL2='1.00', EG2='0.97', return_code2='0', energy_flux_error='2.61e-05', photon_flux_error2='9.61e-08', ts2='126.91', photon_index='2.02' WHERE bin_id='1165' AND source_name='4FGL J2253.9+1609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:19:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0241>
Subject: Job 579705: <4FGL_J2253.9+1609_daily_bin1165> in cluster <slac> Done

Job <4FGL_J2253.9+1609_daily_bin1165> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 02:05:13 2021
Job was executed on host(s) <bullet0241>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 02:05:14 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 02:05:14 2021
Terminated at Wed Sep 29 02:19:57 2021
Results reported at Wed Sep 29 02:19:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2253.9+1609_daily_bin1165 343.496 16.1506 541296001 541555201 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 :                                   687.30 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             302.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   881 sec.
    Turnaround time :                            884 sec.

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

