/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 1 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 = 7476
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2253.9+1609_daily_bin98
RA = 343.496, Dec = 16.1506
tmin = 264729601, tmax = 264988801
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='572967', job_status='RUN', time_executed='2021-09-29 01:45:48.626588', time_epoch_executed='1632905148.63' WHERE source_name='4FGL J2253.9+1609' and cadence='daily' and bin_id='98'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/572967

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/572967/ft1_4FGL_J2253.9+1609_daily_bin98.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/572967/ft2_4FGL_J2253.9+1609_daily_bin98.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/572967/ft1_4FGL_J2253.9+1609_daily_bin98.fits outfile=/scratch/kocevski/572967/ft1_filteredMKT_4FGL_J2253.9+1609_daily_bin98.fits ra=343.496 dec=16.1506 rad=12.0 tmin=264729601.0 tmax=264988801.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 1.46
user 1.28
sys 0.16

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/572967/ft1_filtered_4FGL_J2253.9+1609_daily_bin98.fits evtable="EVENTS" scfile=/scratch/kocevski/572967/ft2_4FGL_J2253.9+1609_daily_bin98.fits sctable="SC_DATA" expcube=/scratch/kocevski/572967/ltcube_264729601_264988801_4FGL_J2253.9+1609_daily_bin98.fits outfile=/scratch/kocevski/572967/expmap_264729601_264988801_4FGL_J2253.9+1609_daily_bin98.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/572967/ltcube_264729601_264988801_4FGL_J2253.9+1609_daily_bin98.fits
.....................!
real 191.97
user 185.07
sys 6.59

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/572967/ft1_filtered_4FGL_J2253.9+1609_daily_bin98.fits scfile=/scratch/kocevski/572967/ft2_4FGL_J2253.9+1609_daily_bin98.fits outfile=/scratch/kocevski/572967/cmap_264729601_264988801_4FGL_J2253.9+1609_daily_bin98.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/572967/ft1_filtered_4FGL_J2253.9+1609_daily_bin98.fits scfile=/scratch/kocevski/572967/ft2_4FGL_J2253.9+1609_daily_bin98.fits outfile=/scratch/kocevski/572967/cmap_HighResolution_264729601_264988801_4FGL_J2253.9+1609_daily_bin98.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/572967/ft1_filtered_4FGL_J2253.9+1609_daily_bin98.fits evtable="EVENTS" scfile=/scratch/kocevski/572967/ft2_4FGL_J2253.9+1609_daily_bin98.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/572967/Model_4FGL_J2253.9+1609_daily_bin98.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/572967/ft1_filtered_4FGL_J2253.9+1609_daily_bin98.fits.....................!
real 95.01
user 93.64
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    27.671       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .35093       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .46854       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.8026       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.6520       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.7439       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.4012       1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.831       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.9205       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    8.3749       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .14405E-02   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0043       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .92840       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=   9207.071     FROM MIGRAD    STATUS=CONVERGED    547 CALLS     2766 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     27.674        20.694        .10766E-06    .47229E-04
   2  norm          .10000E-03    1.8847       -.77030E-07** at limit **
   3  Prefactor     .34373        26.980        .15915E-04   -.45169E-03
   4  Prefactor     .10000E-03    3.3965       -.90471E-07** at limit **
   5  Prefactor     .46855        .18050       -.84908E-09    .27238E-02
   6  Prefactor     .10000E-03    3.0275       -.84288E-07** at limit **
   7  norm          1.8027        1.1734        .88328E-07    .10273E-02
   8  Prefactor     6.6527        28.971       -.43885E-06   -.30192E-04
   9  Prefactor     .10000E-03    14.267       -.12602E-06** at limit **
  10  Prefactor     .10000E-03    13.013        .15569E-05** at limit **
  11  Prefactor     1.7439        .21932       -.64513E-08   -.12614E-02
  12  Prefactor     5.4011        11.882        .57917E-06    .19237E-03
  13  Prefactor     11.831        28.268       -.28371E-06    .20028E-04
  14  Prefactor     .10000E-03    5.8664       -.28859E-06** at limit **
  15  Prefactor     .10000E-03    4.0400       -.81977E-07** at limit **
  16  Prefactor     .10000E-03    7.8092        .69910E-06** at limit **
  17  Prefactor     .10000E-03    1.5405       -.61932E-07** at limit **
  18  Prefactor     2.9213        6.9497        .68655E-05    .12133E-02
  19  Prefactor     .10000E-03    10.628       -.67535E-07** at limit **
  20  norm          8.3749        7.6099       -.42189E-06    .75996E-03
  21  Prefactor     .10047E-03    6.5054       -.46852E-05** at limit **
  22  norm          .10000E-03    9.2688       -.12282E-05** at limit **
  23  Normalizat    1.0044        .19314        .20523E-06    .71969E-03
  24  Prefactor     .92834        .10521        .12088E-08    .13363E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 27.6738
  norm       = 0.0001
  Prefactor  = 0.343727
  Prefactor  = 0.0001
  Prefactor  = 0.468554
  Prefactor  = 0.0001
  norm       = 1.80268
  Prefactor  = 6.65271
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 1.74391
  Prefactor  = 5.40108
  Prefactor  = 11.8311
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.92134
  Prefactor  = 0.0001
  norm       = 8.37485
  Prefactor  = 0.000100473
  norm       = 0.0001
  Normalizat = 1.00438
  Prefactor  = 0.928344
 **********
 **   18 **HESSE 
 **********

 FCN=   9207.071     FROM HESSE     STATUS=OK           403 CALLS     3169 TOTAL
                     EDM=   .82E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     27.674        20.701        .76159E-04   -1.4655    
   2  norm          .10000E-03    1.9076        .12863E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .34373        55.709        .42449E-02   -1.5591    
   4  Prefactor     .10000E-03    3.4116        .17270E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .46855        .17657        .23140E-04   -1.5571    
   6  Prefactor     .10000E-03    3.0621        .16304E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.8027        1.1810        .81756E-04   -1.5439    
   8  Prefactor     6.6527        29.141        .15559E-03   -1.5192    
   9  Prefactor     .10000E-03    14.783        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    13.017        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.7439        .22060        .14707E-04   -1.5444    
  12  Prefactor     5.4011        11.868        .17291E-03   -1.5243    
  13  Prefactor     11.831        28.309        .11647E-03   -1.5020    
  14  Prefactor     .10000E-03    5.9827        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.0521        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    7.8142        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    1.5456        .11630E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.9213        8.3080        .11886E-02   -1.5366    
  19  Prefactor     .10000E-03    10.704        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          8.3749        7.6645        .13853E-03   -1.5129    
  21  Prefactor     .10047E-03    5.9826        .57286E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    9.3142        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.0044        .22722        .33433E-03   -.92884    
  24  Prefactor     .92834        .12468        .19654E-03   -.95158    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.17319e-09
Minuit parameter uncertainties:
  1  20.7065
  2  1.05496e-05
  3  8.7589
  4  1.41904e-05
  5  0.176573
  6  1.45741e-05
  7  1.18098
  8  27.8699
  9  0.000312729
  10  7.70723e-06
  11  0.2206
  12  11.8728
  13  28.3411
  14  3.71794e-05
  15  1.52184e-05
  16  4.90563e-06
  17  6.47419e-06
  18  8.31127
  19  4.08025e-05
  20  7.66541
  21  0.00336593
  22  1.64728e-05
  23  0.227441
  24  0.12472
Done.

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

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  1.744e+00  2.206e-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.283e-01  1.247e-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.004e+00  2.274e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 199.52
Ra Dec: 343.496 16.151
Photon Index (Fixed Index): 2.02 +/- 0.00
Photon Flux (Fixed Index): 6.36e-07 +/- 8.04e-08
Energy Flux (Fixed Index): 2.04e-04 +/- 2.58e-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) = 9207.02660357
delta logL = 0.0445422378871

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9207.0101427
delta logL = 0.0610031130109

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.7770       1.0000         .10000E-03   10000.    
     2 'Index1    '    2.0685       1.0000          .0000       10.000    
     3 'Normalizat'    .98825       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93481       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=   9207.010     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      197 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.7770        .22291        .33418E-02   -.29743E-03
   2  Index1        2.0685        .13269        .67441E-01   -.83965E-04
   3  Normalizat    .98825        .18752        .76054E-01    .39197E-04
   4  Prefactor     .93481        .10538        .45447E-01   -.14622E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.77702
  Index1     = 2.06849
  Normalizat = 0.988249
  Prefactor  = 0.934811
 **********
 **   18 **HESSE 
 **********

 FCN=   9207.010     FROM HESSE     STATUS=OK            29 CALLS      226 TOTAL
                     EDM=   .22E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.7770        .23448        .14772E-04   -1.5441    
   2  Index1        2.0685        .14090        .29588E-03   -.62649    
   3  Normalizat    .98825        .22307        .33656E-03   -.93425    
   4  Prefactor     .93481        .12500        .19593E-03   -.94935    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.21691e-12
Minuit parameter uncertainties:
  1  0.234477
  2  0.140932
  3  0.223283
  4  0.125043
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/572967': 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) = 9207.01014269
delta logL = 0.0610031145425

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  1.777e+00  2.345e-01  1.000e-04  1.000e+04 ( 1.000e-09)
317       Index1:  2.068e+00  1.409e-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.348e-01  1.250e-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.882e-01  2.233e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 198.84
Ra Dec: 343.496 16.151
Photon Index (Free Index): 2.07 +/- 0.14
Photon Flux (Free Index): 6.51e-07 +/- 8.94e-08
Energy Flux (Free Index): 2.00e-04 +/- 2.76e-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/572967/cmap_HighResolution_264729601_264988801_4FGL_J2253.9+1609_daily_bin98.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.36e-07', energy_flux2='2.00e-04', photon_flux_error='8.04e-08', dlogl='6.10e-02', energy_flux='2.04e-04', photon_flux2='6.51e-07', job_status='DONE', time_completed='2021-09-29 01:58:03.234032', photon_index_error2='0.14', photon_index2='2.07', ts='199.52', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', energy_flux_error2='2.76e-05', EG='1.00', time_epoch_completed='1632905883.23', return_code='0', job_id='572967', GAL2='0.93', EG2='0.99', return_code2='0', energy_flux_error='2.58e-05', photon_flux_error2='8.94e-08', ts2='198.84', photon_index='2.02' WHERE bin_id='98' AND source_name='4FGL J2253.9+1609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 01:58:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0115>
Subject: Job 572967: <4FGL_J2253.9+1609_daily_bin98> in cluster <slac> Done

Job <4FGL_J2253.9+1609_daily_bin98> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 01:45:38 2021
Job was executed on host(s) <bullet0115>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 01:45:39 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 01:45:39 2021
Terminated at Wed Sep 29 01:58:04 2021
Results reported at Wed Sep 29 01:58:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2253.9+1609_daily_bin98 343.496 16.1506 264729601 264988801 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 :                                   732.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             354.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   744 sec.
    Turnaround time :                            746 sec.

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

