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


Performing analysis on: 4FGL_J2253.9+1609_daily_bin1419
RA = 343.496, Dec = 16.1506
tmin = 607132801, tmax = 607392001
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='580080', job_status='RUN', time_executed='2021-09-29 02:07:35.730327', time_epoch_executed='1632906455.73' WHERE source_name='4FGL J2253.9+1609' and cadence='daily' and bin_id='1419'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/580080

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/580080/ft1_4FGL_J2253.9+1609_daily_bin1419.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/580080/ft2_4FGL_J2253.9+1609_daily_bin1419.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/580080/ft1_4FGL_J2253.9+1609_daily_bin1419.fits outfile=/scratch/kocevski/580080/ft1_filteredMKT_4FGL_J2253.9+1609_daily_bin1419.fits ra=343.496 dec=16.1506 rad=12.0 tmin=607132801.0 tmax=607392001.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 5.32
user 5.02
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/580080/ft2_4FGL_J2253.9+1609_daily_bin1419.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/580080/ft1_filteredMKT_4FGL_J2253.9+1609_daily_bin1419.fits evtable="EVENTS" outfile="/scratch/kocevski/580080/ft1_filtered_4FGL_J2253.9+1609_daily_bin1419.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.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/580080/ft1_filtered_4FGL_J2253.9+1609_daily_bin1419.fits" evtable="EVENTS" scfile=/scratch/kocevski/580080/ft2_4FGL_J2253.9+1609_daily_bin1419.fits sctable="SC_DATA" outfile=/scratch/kocevski/580080/ltcube_607132801_607392001_4FGL_J2253.9+1609_daily_bin1419.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/580080/ft2_4FGL_J2253.9+1609_daily_bin1419.fits
.....................!
real 11.50
user 11.15
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/580080/ft1_filtered_4FGL_J2253.9+1609_daily_bin1419.fits evtable="EVENTS" scfile=/scratch/kocevski/580080/ft2_4FGL_J2253.9+1609_daily_bin1419.fits sctable="SC_DATA" expcube=/scratch/kocevski/580080/ltcube_607132801_607392001_4FGL_J2253.9+1609_daily_bin1419.fits outfile=/scratch/kocevski/580080/expmap_607132801_607392001_4FGL_J2253.9+1609_daily_bin1419.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/580080/ltcube_607132801_607392001_4FGL_J2253.9+1609_daily_bin1419.fits
.....................!
real 192.63
user 187.04
sys 5.27

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/580080/ft1_filtered_4FGL_J2253.9+1609_daily_bin1419.fits scfile=/scratch/kocevski/580080/ft2_4FGL_J2253.9+1609_daily_bin1419.fits outfile=/scratch/kocevski/580080/cmap_607132801_607392001_4FGL_J2253.9+1609_daily_bin1419.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.36
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.6150       1.0000         .10000E-03   10000.    
     4 'Prefactor '    28.504       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .86225E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.1839       1.0000         .10000E-03   10000.    
     7 'norm      '    .11014E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    30.410       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .26947       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10590E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    14.916       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    19.961       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .72655E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    25.894       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.8124       1.0000         .10000E-03   10000.    
    20 'norm      '    8.6428       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .12155E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .81946       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .87357       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .99418       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=   6613.548     FROM MIGRAD    STATUS=CONVERGED    550 CALLS     2792 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.078       -.41978E-06** at limit **
   2  norm          .10000E-03    6.4829        .12460E-06** at limit **
   3  Prefactor     2.6048        22.584       -.16062E-05   -.64484E-04
   4  Prefactor     28.502        16.113        .55168E-07   -.37851E-04
   5  Prefactor     .86413E-01    .15072        .38813E-06    .48939E-02
   6  Prefactor     8.1825        6.8601       -.27140E-06   -.10981E-03
   7  norm          .10000E-03    1.1801        .15577E-06** at limit **
   8  Prefactor     .10000E-03    16.734       -.27958E-07** at limit **
   9  Prefactor     30.404        16.033        .23281E-07   -.71125E-05
  10  Prefactor     .10000E-03    10.693        .32288E-06** at limit **
  11  Prefactor     .26953        .15829        .16433E-07    .20224E-03
  12  Prefactor     .10000E-03    6.8078        .41956E-07** at limit **
  13  Prefactor     .10000E-03    158.80       -.31337E-06** at limit **
  14  Prefactor     14.919        10.906        .23685E-06    .12606E-03
  15  Prefactor     .10000E-03    12.844        .41107E-06** at limit **
  16  Prefactor     19.956        28.927        .42478E-06    .17663E-04
  17  Prefactor     .10002E-03    6.2261       -.22597E-05** at limit **
  18  Prefactor     25.891        14.390        .29530E-06    .37673E-03
  19  Prefactor     3.8423        39.741        .36490E-05    .73256E-04
  20  norm          8.6663        12.988        .18136E-06   -.36613E-04
  21  Prefactor     .10002E-03    5.6614        .28950E-06** at limit **
  22  norm          .84648        10.989        .28730E-05   -.49230E-03
  23  Normalizat    .87352        .23828       -.55243E-06   -.58799E-04
  24  Prefactor     .99419        .12515       -.39727E-06   -.72982E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.60482
  Prefactor  = 28.5021
  Prefactor  = 0.0864129
  Prefactor  = 8.18249
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 30.404
  Prefactor  = 0.0001
  Prefactor  = 0.26953
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 14.9192
  Prefactor  = 0.0001
  Prefactor  = 19.9555
  Prefactor  = 0.000100025
  Prefactor  = 25.8909
  Prefactor  = 3.84232
  norm       = 8.66628
  Prefactor  = 0.000100016
  norm       = 0.84648
  Normalizat = 0.873521
  Prefactor  = 0.994193
 **********
 **   18 **HESSE 
 **********

 FCN=   6613.548     FROM HESSE     STATUS=OK           409 CALLS     3201 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.095        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    6.7458        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.6048        22.172        .25223E-03   -1.5385    
   4  Prefactor     28.502        16.120        .75040E-04   -1.4640    
   5  Prefactor     .86413E-01    .15497        .42311E-03   -1.5649    
   6  Prefactor     8.1825        6.8725        .14014E-03   -1.5136    
   7  norm          .10000E-03    1.9291        .16661E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    16.749        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     30.404        15.575        .72656E-04   -1.4605    
  10  Prefactor     .10000E-03    10.730        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .26953        .15484        .22983E-04   -1.5604    
  12  Prefactor     .10000E-03    6.8334        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    161.13        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     14.919        10.875        .10371E-03   -1.4935    
  15  Prefactor     .10000E-03    13.103        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     19.956        28.950        .89648E-04   -1.4814    
  17  Prefactor     .10002E-03    15.838        .33358E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     25.891        14.375        .78724E-04   -1.4690    
  19  Prefactor     3.8423        38.113        .20672E-03   -1.5316    
  20  norm          8.6663        11.838        .13635E-03   -1.5119    
  21  Prefactor     .10002E-03    31.833        .33307E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .84648        36.780        .45501E-02   -1.5524    
  23  Normalizat    .87352        .27616        .35938E-03   -.97397    
  24  Prefactor     .99419        .14766        .18752E-03   -.92923    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.06844e-09
Minuit parameter uncertainties:
  1  0.000135529
  2  1.65202e-05
  3  15.2064
  4  16.1226
  5  0.154975
  6  6.87318
  7  2.796e-06
  8  1.4484e-05
  9  15.5767
  10  9.18712e-05
  11  0.15484
  12  6.26845e-06
  13  0.00081751
  14  10.8765
  15  7.82905e-05
  16  28.9705
  17  0.00125686
  18  14.3769
  19  24.2224
  20  11.8412
  21  0.00143381
  22  11.1661
  23  0.27661
  24  0.147723
Done.

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

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  2.695e-01  1.548e-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.942e-01  1.477e-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.735e-01  2.766e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.04
Ra Dec: 343.496 16.151
Photon Index (Fixed Index): 2.02 +/- 0.00
Photon Flux (Fixed Index): 9.83e-08 +/- 5.64e-08
Energy Flux (Fixed Index): 3.16e-05 +/- 1.81e-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) = 6613.54400985
delta logL = 0.00385287474637

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6613.53933966
delta logL = 0.008523063133

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .29116       1.0000         .10000E-03   10000.    
     2 'Index1    '    2.1021       1.0000          .0000       10.000    
     3 'Normalizat'    .86408       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99716       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=   6613.539     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      202 TOTAL
                     EDM=   .77E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .29119        .17040        .52227E-02    .88780E-03
   2  Index1        2.1023        .42658        .19682       -.83150E-04
   3  Normalizat    .86407        .22638        .81562E-01    .24153E-04
   4  Prefactor     .99716        .12397        .46232E-01    .80381E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.291188
  Index1     = 2.10231
  Normalizat = 0.864069
  Prefactor  = 0.997165
 **********
 **   18 **HESSE 
 **********

 FCN=   6613.539     FROM HESSE     STATUS=OK            33 CALLS      235 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .29119        .21871        .23376E-04   -1.5600    
   2  Index1        2.1023        .60669        .80059E-02   -.61816    
   3  Normalizat    .86407        .27202        .36110E-03   -.97734    
   4  Prefactor     .99716        .14743        .18726E-03   -.92824    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.48931e-09
Minuit parameter uncertainties:
  1  0.218713
  2  0.608954
  3  0.272454
  4  0.147493
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/580080': 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) = 6613.53933962
delta logL = 0.00852310465598

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  2.912e-01  2.187e-01  1.000e-04  1.000e+04 ( 1.000e-09)
317       Index1:  2.102e+00  6.090e-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.972e-01  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:  8.641e-01  2.725e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.06
Ra Dec: 343.496 16.151
Photon Index (Free Index): 2.10 +/- 0.61
Photon Flux (Free Index): 1.07e-07 +/- 8.53e-08
Energy Flux (Free Index): 3.18e-05 +/- 1.77e-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/580080/cmap_HighResolution_607132801_607392001_4FGL_J2253.9+1609_daily_bin1419.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.83e-08', energy_flux2='3.18e-05', photon_flux_error='5.64e-08', dlogl='8.52e-03', energy_flux='3.16e-05', photon_flux2='1.07e-07', job_status='DONE', time_completed='2021-09-29 02:18:40.102372', photon_index_error2='0.61', photon_index2='2.10', ts='6.04', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', energy_flux_error2='1.77e-05', EG='0.87', time_epoch_completed='1632907120.1', return_code='0', job_id='580080', GAL2='1.00', EG2='0.86', return_code2='0', energy_flux_error='1.81e-05', photon_flux_error2='8.53e-08', ts2='6.06', photon_index='2.02' WHERE bin_id='1419' AND source_name='4FGL J2253.9+1609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:18:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0119>
Subject: Job 580080: <4FGL_J2253.9+1609_daily_bin1419> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2253.9+1609_daily_bin1419 343.496 16.1506 607132801 607392001 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 :                                   596.27 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             291.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   780 sec.
    Turnaround time :                            782 sec.

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

