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


Performing analysis on: 4FGL_J2253.9+1609_daily_bin644
RA = 343.496, Dec = 16.1506
tmin = 406252801, tmax = 406512001
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='576636', job_status='RUN', time_executed='2021-09-29 01:55:36.895446', time_epoch_executed='1632905736.9' WHERE source_name='4FGL J2253.9+1609' and cadence='daily' and bin_id='644'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/576636

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/576636/ft1_4FGL_J2253.9+1609_daily_bin644.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/576636/ft2_4FGL_J2253.9+1609_daily_bin644.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/576636/ft1_4FGL_J2253.9+1609_daily_bin644.fits outfile=/scratch/kocevski/576636/ft1_filteredMKT_4FGL_J2253.9+1609_daily_bin644.fits ra=343.496 dec=16.1506 rad=12.0 tmin=406252801.0 tmax=406512001.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.83
user 3.59
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/576636/ft2_4FGL_J2253.9+1609_daily_bin644.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/576636/ft1_filteredMKT_4FGL_J2253.9+1609_daily_bin644.fits evtable="EVENTS" outfile="/scratch/kocevski/576636/ft1_filtered_4FGL_J2253.9+1609_daily_bin644.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/576636/ft1_filtered_4FGL_J2253.9+1609_daily_bin644.fits" evtable="EVENTS" scfile=/scratch/kocevski/576636/ft2_4FGL_J2253.9+1609_daily_bin644.fits sctable="SC_DATA" outfile=/scratch/kocevski/576636/ltcube_406252801_406512001_4FGL_J2253.9+1609_daily_bin644.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/576636/ft2_4FGL_J2253.9+1609_daily_bin644.fits
.....................!
real 12.61
user 12.23
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/576636/ft1_filtered_4FGL_J2253.9+1609_daily_bin644.fits evtable="EVENTS" scfile=/scratch/kocevski/576636/ft2_4FGL_J2253.9+1609_daily_bin644.fits sctable="SC_DATA" expcube=/scratch/kocevski/576636/ltcube_406252801_406512001_4FGL_J2253.9+1609_daily_bin644.fits outfile=/scratch/kocevski/576636/expmap_406252801_406512001_4FGL_J2253.9+1609_daily_bin644.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/576636/ltcube_406252801_406512001_4FGL_J2253.9+1609_daily_bin644.fits
.....................!
real 190.18
user 185.14
sys 4.60

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/576636/ft1_filtered_4FGL_J2253.9+1609_daily_bin644.fits scfile=/scratch/kocevski/576636/ft2_4FGL_J2253.9+1609_daily_bin644.fits outfile=/scratch/kocevski/576636/cmap_406252801_406512001_4FGL_J2253.9+1609_daily_bin644.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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/576636/ft1_filtered_4FGL_J2253.9+1609_daily_bin644.fits scfile=/scratch/kocevski/576636/ft2_4FGL_J2253.9+1609_daily_bin644.fits outfile=/scratch/kocevski/576636/cmap_HighResolution_406252801_406512001_4FGL_J2253.9+1609_daily_bin644.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.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    39.043       1.0000         .10000E-03   10000.    
     2 'norm      '    7.9728       1.0000         .10000E-03   10000.    
     3 'Prefactor '    19.295       1.0000         .10000E-03   10000.    
     4 'Prefactor '    50.959       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.7703       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.6884       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.9282       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.8309       1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.6141       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.5798       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    32.110       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .45496       1.0000         .10000E-03   10000.    
    19 'Prefactor '    24.124       1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0898       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .81735       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=   9252.836     FROM MIGRAD    STATUS=CONVERGED    521 CALLS     2691 TOTAL
                     EDM=   .62E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     39.036        36.324       -.19007E-05    .59891E-04
   2  norm          7.9729        5.4172       -.16414E-06    .19460E-04
   3  Prefactor     19.295        16.280       -.51682E-06    .10479E-04
   4  Prefactor     50.958        19.893       -.13806E-06    .62028E-04
   5  Prefactor     2.7702        .36353       -.84602E-08    .35916E-03
   6  Prefactor     .10000E-03    3.1418       -.17723E-06** at limit **
   7  norm          1.6884        1.5751       -.10646E-06    .61155E-04
   8  Prefactor     .10000E-03    8.7530       -.37122E-06** at limit **
   9  Prefactor     5.9278        12.916       -.19756E-05    .28345E-04
  10  Prefactor     .10000E-03    24.620       -.54958E-06** at limit **
  11  Prefactor     1.8308        .24530       -.16471E-08    .95140E-03
  12  Prefactor     8.6140        8.5676        .22826E-07    .25406E-04
  13  Prefactor     .10000E-03    7.1595       -.10990E-06** at limit **
  14  Prefactor     5.5789        7.2860       -.15713E-05    .52933E-04
  15  Prefactor     .10000E-03    2.9813       -.46786E-06** at limit **
  16  Prefactor     32.108        23.494       -.45861E-06    .34141E-04
  17  Prefactor     .10000E-03    8.5193       -.22715E-05** at limit **
  18  Prefactor     .42566        60.590       -.60320E-05    .12696E-04
  19  Prefactor     24.125        17.307        .16232E-06    .64632E-04
  20  norm          .10000E-03    3.1549       -.48815E-06** at limit **
  21  Prefactor     .10000E-03    2.9929       -.35044E-06** at limit **
  22  norm          .10000E-03    4.0452       -.22345E-06** at limit **
  23  Normalizat    1.0897        .23359        .66805E-06    .18076E-03
  24  Prefactor     .81748        .12099        .15602E-05    .12987E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 39.0356
  norm       = 7.9729
  Prefactor  = 19.2955
  Prefactor  = 50.9583
  Prefactor  = 2.77023
  Prefactor  = 0.0001
  norm       = 1.68845
  Prefactor  = 0.0001
  Prefactor  = 5.92781
  Prefactor  = 0.0001
  Prefactor  = 1.83084
  Prefactor  = 8.614
  Prefactor  = 0.0001
  Prefactor  = 5.57894
  Prefactor  = 0.0001
  Prefactor  = 32.1083
  Prefactor  = 0.0001
  Prefactor  = 0.425658
  Prefactor  = 24.1253
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.08966
  Prefactor  = 0.817484
 **********
 **   18 **HESSE 
 **********

 FCN=   9252.836     FROM HESSE     STATUS=OK           405 CALLS     3096 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     39.036        36.233        .64146E-04   -1.4458    
   2  norm          7.9729        5.4166        .14200E-03   -1.5143    
   3  Prefactor     19.295        16.353        .91180E-04   -1.4829    
   4  Prefactor     50.958        19.927        .56180E-04   -1.4279    
   5  Prefactor     2.7702        .36603        .19247E-04   -1.5375    
   6  Prefactor     .10000E-03    3.1550        .16653E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.6884        1.5629        .11065E-03   -1.5448    
   8  Prefactor     .10000E-03    8.7531        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.9278        12.885        .16493E-03   -1.5221    
  10  Prefactor     .10000E-03    24.876        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.8308        .24579        .16427E-04   -1.5437    
  12  Prefactor     8.6140        8.5647        .13658E-03   -1.5121    
  13  Prefactor     .10000E-03    7.1627        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.5789        7.2563        .17007E-03   -1.5236    
  15  Prefactor     .10000E-03    2.9845        .16218E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     32.108        23.503        .70712E-04   -1.4574    
  17  Prefactor     .10000E-03    8.8654        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .42566        60.672        .43014E-02   -1.5577    
  19  Prefactor     24.125        17.348        .81556E-04   -1.4725    
  20  norm          .10000E-03    3.1704        .16687E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    3.0150        .16243E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    4.0487        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.0897        .27330        .37734E-03   -.90084    
  24  Prefactor     .81748        .13919        .22990E-03   -.99087    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.74948e-10
Minuit parameter uncertainties:
  1  36.2531
  2  5.41692
  3  16.3567
  4  19.9293
  5  0.36603
  6  4.81396e-06
  7  1.56294
  8  7.99455e-06
  9  12.891
  10  7.57663e-05
  11  0.245794
  12  8.56587
  13  7.01199e-06
  14  7.25743
  15  4.09239e-06
  16  23.5099
  17  6.57045e-06
  18  10.1731
  19  17.3514
  20  1.55553e-06
  21  1.15552e-05
  22  2.44178e-06
  23  0.273653
  24  0.13925
Done.

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

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  1.831e+00  2.458e-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.175e-01  1.393e-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.090e+00  2.737e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 173.04
Ra Dec: 343.496 16.151
Photon Index (Fixed Index): 2.02 +/- 0.00
Photon Flux (Fixed Index): 6.68e-07 +/- 8.96e-08
Energy Flux (Fixed Index): 2.14e-04 +/- 2.88e-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) = 9252.32273564
delta logL = 0.513682075736

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9252.32262068
delta logL = 0.513797034235

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.6761       1.0000         .10000E-03   10000.    
     2 'Index1    '    1.8733       1.0000          .0000       10.000    
     3 'Normalizat'    1.1469       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79722       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=   9252.323     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      200 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.6762        .25843        .36279E-02    .68515E-02
   2  Index1        1.8734        .13046        .62474E-01   -.17235E-03
   3  Normalizat    1.1469        .22375        .83517E-01   -.11786E-03
   4  Prefactor     .79720        .11818        .43681E-01   -.81364E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.67617
  Index1     = 1.87335
  Normalizat = 1.1469
  Prefactor  = 0.797202
 **********
 **   18 **HESSE 
 **********

 FCN=   9252.323     FROM HESSE     STATUS=OK            27 CALLS      227 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.6762        .28182        .16037E-04   -1.5449    
   2  Index1        1.8734        .14309        .27472E-03   -.67555    
   3  Normalizat    1.1469        .26443        .36977E-03   -.88260    
   4  Prefactor     .79720        .13910        .23259E-03   -.99832    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.23746e-09
Minuit parameter uncertainties:
  1  0.281824
  2  0.143125
  3  0.26474
  4  0.139166
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/576636': 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) = 9252.32262066
delta logL = 0.513797046657

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  1.676e+00  2.818e-01  1.000e-04  1.000e+04 ( 1.000e-09)
317       Index1:  1.873e+00  1.431e-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:  7.972e-01  1.392e-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.147e+00  2.647e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 170.91
Ra Dec: 343.496 16.151
Photon Index (Free Index): 1.87 +/- 0.14
Photon Flux (Free Index): 6.09e-07 +/- 1.02e-07
Energy Flux (Free Index): 2.28e-04 +/- 3.41e-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/576636/cmap_HighResolution_406252801_406512001_4FGL_J2253.9+1609_daily_bin644.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.68e-07', energy_flux2='2.28e-04', photon_flux_error='8.96e-08', dlogl='5.14e-01', energy_flux='2.14e-04', photon_flux2='6.09e-07', job_status='DONE', time_completed='2021-09-29 02:07:48.003446', photon_index_error2='0.14', photon_index2='1.87', ts='173.04', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', energy_flux_error2='3.41e-05', EG='1.09', time_epoch_completed='1632906468.0', return_code='0', job_id='576636', GAL2='0.80', EG2='1.15', return_code2='0', energy_flux_error='2.88e-05', photon_flux_error2='1.02e-07', ts2='170.91', photon_index='2.02' WHERE bin_id='644' AND source_name='4FGL J2253.9+1609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:07:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0117>
Subject: Job 576636: <4FGL_J2253.9+1609_daily_bin644> in cluster <slac> Done

Job <4FGL_J2253.9+1609_daily_bin644> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 01:55:22 2021
Job was executed on host(s) <bullet0117>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 01:55:23 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:55:23 2021
Terminated at Wed Sep 29 02:07:50 2021
Results reported at Wed Sep 29 02:07:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2253.9+1609_daily_bin644 343.496 16.1506 406252801 406512001 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 :                                   729.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             334.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   745 sec.
    Turnaround time :                            748 sec.

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

