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


Performing analysis on: 4FGL_J2253.9+1609_daily_bin1334
RA = 343.496, Dec = 16.1506
tmin = 585100801, tmax = 585360001
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='579955', job_status='RUN', time_executed='2021-09-29 02:07:54.305915', time_epoch_executed='1632906474.31' WHERE source_name='4FGL J2253.9+1609' and cadence='daily' and bin_id='1334'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/579955

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/579955/ft1_4FGL_J2253.9+1609_daily_bin1334.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/579955/ft2_4FGL_J2253.9+1609_daily_bin1334.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/579955/ft1_4FGL_J2253.9+1609_daily_bin1334.fits outfile=/scratch/kocevski/579955/ft1_filteredMKT_4FGL_J2253.9+1609_daily_bin1334.fits ra=343.496 dec=16.1506 rad=12.0 tmin=585100801.0 tmax=585360001.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.00
user 2.79
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/579955/ft1_filtered_4FGL_J2253.9+1609_daily_bin1334.fits" evtable="EVENTS" scfile=/scratch/kocevski/579955/ft2_4FGL_J2253.9+1609_daily_bin1334.fits sctable="SC_DATA" outfile=/scratch/kocevski/579955/ltcube_585100801_585360001_4FGL_J2253.9+1609_daily_bin1334.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/579955/ft2_4FGL_J2253.9+1609_daily_bin1334.fits
.....................!
real 12.08
user 11.74
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/579955/ft1_filtered_4FGL_J2253.9+1609_daily_bin1334.fits evtable="EVENTS" scfile=/scratch/kocevski/579955/ft2_4FGL_J2253.9+1609_daily_bin1334.fits sctable="SC_DATA" expcube=/scratch/kocevski/579955/ltcube_585100801_585360001_4FGL_J2253.9+1609_daily_bin1334.fits outfile=/scratch/kocevski/579955/expmap_585100801_585360001_4FGL_J2253.9+1609_daily_bin1334.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/579955/ltcube_585100801_585360001_4FGL_J2253.9+1609_daily_bin1334.fits
.....................!
real 192.07
user 186.13
sys 5.61

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/579955/ft1_filtered_4FGL_J2253.9+1609_daily_bin1334.fits scfile=/scratch/kocevski/579955/ft2_4FGL_J2253.9+1609_daily_bin1334.fits outfile=/scratch/kocevski/579955/cmap_585100801_585360001_4FGL_J2253.9+1609_daily_bin1334.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/579955/ft1_filtered_4FGL_J2253.9+1609_daily_bin1334.fits scfile=/scratch/kocevski/579955/ft2_4FGL_J2253.9+1609_daily_bin1334.fits outfile=/scratch/kocevski/579955/cmap_HighResolution_585100801_585360001_4FGL_J2253.9+1609_daily_bin1334.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.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.357       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .12425E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .61143       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    3.9242       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    32.286       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .53615       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.4548       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.9673       1.0000         .10000E-03   10000.    
    13 'Prefactor '    46.550       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.9469       1.0000         .10000E-03   10000.    
    18 'Prefactor '    11.441       1.0000         .10000E-03   10000.    
    19 'Prefactor '    21.345       1.0000         .10000E-03   10000.    
    20 'norm      '    4.2756       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .99023       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .88731       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=   8831.685     FROM MIGRAD    STATUS=CONVERGED    555 CALLS     2844 TOTAL
                     EDM=   .80E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.346        20.779        .28125E-04   -.15504E-04
   2  norm          .10000E-03    2.6517       -.84912E-07** at limit **
   3  Prefactor     .10539E-03    19.087       -.12038E-06** at limit **
   4  Prefactor     .10000E-03    4.2408        .12572E-06** at limit **
   5  Prefactor     .61140        .22991        .17652E-07    .22630E-03
   6  Prefactor     .10000E-03    4.3402       -.46104E-06** at limit **
   7  norm          3.9242        1.8478        .10238E-07    .34765E-04
   8  Prefactor     .10000E-03    36.750       -.19618E-05** at limit **
   9  Prefactor     32.286        12.705        .24980E-06   -.34982E-05
  10  Prefactor     .53985        17.115       -.31274E-05    .32199E-03
  11  Prefactor     1.4548        .23239        .60131E-07    .51463E-02
  12  Prefactor     2.9670        5.1993       -.16814E-06   -.34755E-03
  13  Prefactor     46.544        43.217       -.13619E-05   -.13864E-05
  14  Prefactor     .10000E-03    1.7941        .14192E-07** at limit **
  15  Prefactor     .10000E-03    4.1750        .87890E-06** at limit **
  16  Prefactor     .10000E-03    5.5546        .37140E-06** at limit **
  17  Prefactor     4.9478        7.2100        .12789E-05   -.32425E-03
  18  Prefactor     11.442        13.200        .14319E-05   -.34773E-04
  19  Prefactor     21.344        15.378        .17869E-05   -.26391E-04
  20  norm          4.2767        7.4161       -.16752E-05   -.24310E-03
  21  Prefactor     .10000E-03    6.4516        .18073E-06** at limit **
  22  norm          .10000E-03    4.1139       -.52049E-06** at limit **
  23  Normalizat    .99017        .21386       -.36273E-05    .13811E-03
  24  Prefactor     .88734        .10920       -.60455E-06    .11478E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.3462
  norm       = 0.0001
  Prefactor  = 0.000105388
  Prefactor  = 0.0001
  Prefactor  = 0.611396
  Prefactor  = 0.0001
  norm       = 3.92417
  Prefactor  = 0.0001
  Prefactor  = 32.2859
  Prefactor  = 0.539846
  Prefactor  = 1.4548
  Prefactor  = 2.967
  Prefactor  = 46.5438
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.94781
  Prefactor  = 11.4421
  Prefactor  = 21.3438
  norm       = 4.27665
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.990171
  Prefactor  = 0.887337
 **********
 **   18 **HESSE 
 **********

 FCN=   8831.685     FROM HESSE     STATUS=OK           411 CALLS     3255 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.346        20.751        .96136E-04   -1.4875    
   2  norm          .10000E-03    2.7150        .14941E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10539E-03    22.876        .98087E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.2503        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .61140        .22877        .25419E-04   -1.5552    
   6  Prefactor     .10000E-03    4.3592        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.9242        1.8486        .83654E-04   -1.5312    
   8  Prefactor     .10000E-03    36.873        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     32.286        12.713        .70519E-04   -1.4571    
  10  Prefactor     .53985        206.48        .70592E-02   -1.5561    
  11  Prefactor     1.4548        .23577        .16117E-04   -1.5467    
  12  Prefactor     2.9670        5.1842        .23572E-03   -1.5363    
  13  Prefactor     46.544        43.298        .58768E-04   -1.4342    
  14  Prefactor     .10000E-03    1.7996        .12291E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.1861        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    5.5654        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4.9478        7.1942        .18082E-03   -1.5263    
  18  Prefactor     11.442        13.158        .11844E-03   -1.5031    
  19  Prefactor     21.344        15.352        .86696E-04   -1.4784    
  20  norm          4.2767        7.3823        .19485E-03   -1.5294    
  21  Prefactor     .10000E-03    6.6594        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    4.1195        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .99017        .25041        .35200E-03   -.93360    
  24  Prefactor     .88734        .12834        .20280E-03   -.96585    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10379e-08
Minuit parameter uncertainties:
  1  20.76
  2  1.55188e-06
  3  0.0222118
  4  5.7034e-05
  5  0.228775
  6  8.62336e-06
  7  1.84866
  8  6.51553e-05
  9  12.7142
  10  21.1877
  11  0.235774
  12  5.18496
  13  43.327
  14  3.75404e-06
  15  1.2229e-05
  16  9.64228e-06
  17  7.19546
  18  13.1613
  19  15.3544
  20  7.38383
  21  8.63197e-05
  22  5.83088e-06
  23  0.250705
  24  0.128382
Done.

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

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  1.455e+00  2.358e-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:  8.873e-01  1.284e-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.902e-01  2.507e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 106.52
Ra Dec: 343.496 16.151
Photon Index (Fixed Index): 2.02 +/- 0.00
Photon Flux (Fixed Index): 5.31e-07 +/- 8.59e-08
Energy Flux (Fixed Index): 1.70e-04 +/- 2.76e-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) = 8829.63741186
delta logL = 2.0477931156

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8829.59669418
delta logL = 2.08851078999

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.6754       1.0000         .10000E-03   10000.    
     2 'Index1    '    2.3961       1.0000          .0000       10.000    
     3 'Normalizat'    .85865       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93949       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=   8829.597     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      206 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.6756        .24069        .37036E-02    .14822E-03
   2  Index1        2.3962        .18320        .89058E-01   -.64586E-04
   3  Normalizat    .85861        .20472        .84343E-01    .33687E-04
   4  Prefactor     .93949        .11115        .45506E-01    .38012E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.67557
  Index1     = 2.3962
  Normalizat = 0.85861
  Prefactor  = 0.939491
 **********
 **   18 **HESSE 
 **********

 FCN=   8829.597     FROM HESSE     STATUS=OK            31 CALLS      237 TOTAL
                     EDM=   .13E-15    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.6756        .24847        .16383E-04   -1.5449    
   2  Index1        2.3962        .19270        .38793E-03   -.54774    
   3  Normalizat    .85861        .24204        .37346E-03   -.97930    
   4  Prefactor     .93949        .13080        .19763E-03   -.94775    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.25105e-16
Minuit parameter uncertainties:
  1  0.248473
  2  0.192761
  3  0.242341
  4  0.13084
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/579955': 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) = 8829.59669402
delta logL = 2.08851095255

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  1.676e+00  2.485e-01  1.000e-04  1.000e+04 ( 1.000e-09)
317       Index1:  2.396e+00  1.928e-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:  9.395e-01  1.308e-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.586e-01  2.423e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 111.05
Ra Dec: 343.496 16.151
Photon Index (Free Index): 2.40 +/- 0.19
Photon Flux (Free Index): 6.48e-07 +/- 1.06e-07
Energy Flux (Free Index): 1.55e-04 +/- 2.32e-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/579955/cmap_HighResolution_585100801_585360001_4FGL_J2253.9+1609_daily_bin1334.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.31e-07', energy_flux2='1.55e-04', photon_flux_error='8.59e-08', dlogl='2.09e+00', energy_flux='1.70e-04', photon_flux2='6.48e-07', job_status='DONE', time_completed='2021-09-29 02:21:25.328584', photon_index_error2='0.19', photon_index2='2.40', ts='106.52', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', energy_flux_error2='2.32e-05', EG='0.99', time_epoch_completed='1632907285.33', return_code='0', job_id='579955', GAL2='0.94', EG2='0.86', return_code2='0', energy_flux_error='2.76e-05', photon_flux_error2='1.06e-07', ts2='111.05', photon_index='2.02' WHERE bin_id='1334' AND source_name='4FGL J2253.9+1609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:21:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0047>
Subject: Job 579955: <4FGL_J2253.9+1609_daily_bin1334> in cluster <slac> Done

Job <4FGL_J2253.9+1609_daily_bin1334> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 02:05:30 2021
Job was executed on host(s) <bullet0047>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 02:05:32 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:32 2021
Terminated at Wed Sep 29 02:21:26 2021
Results reported at Wed Sep 29 02:21:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2253.9+1609_daily_bin1334 343.496 16.1506 585100801 585360001 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 :                                   724.11 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             276.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   953 sec.
    Turnaround time :                            956 sec.

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

