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


Performing analysis on: 4FGL_J2253.9+1609_daily_bin1121
RA = 343.496, Dec = 16.1506
tmin = 529891201, tmax = 530150401
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='578555', job_status='RUN', time_executed='2021-09-29 02:01:59.801710', time_epoch_executed='1632906119.8' WHERE source_name='4FGL J2253.9+1609' and cadence='daily' and bin_id='1121'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/578555

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/578555/ft1_4FGL_J2253.9+1609_daily_bin1121.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/578555/ft2_4FGL_J2253.9+1609_daily_bin1121.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/578555/ft1_4FGL_J2253.9+1609_daily_bin1121.fits outfile=/scratch/kocevski/578555/ft1_filteredMKT_4FGL_J2253.9+1609_daily_bin1121.fits ra=343.496 dec=16.1506 rad=12.0 tmin=529891201.0 tmax=530150401.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.57
user 3.31
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/578555/ft1_filtered_4FGL_J2253.9+1609_daily_bin1121.fits evtable="EVENTS" scfile=/scratch/kocevski/578555/ft2_4FGL_J2253.9+1609_daily_bin1121.fits sctable="SC_DATA" expcube=/scratch/kocevski/578555/ltcube_529891201_530150401_4FGL_J2253.9+1609_daily_bin1121.fits outfile=/scratch/kocevski/578555/expmap_529891201_530150401_4FGL_J2253.9+1609_daily_bin1121.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/578555/ltcube_529891201_530150401_4FGL_J2253.9+1609_daily_bin1121.fits
.....................!
real 191.41
user 185.79
sys 5.26

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/578555/ft1_filtered_4FGL_J2253.9+1609_daily_bin1121.fits scfile=/scratch/kocevski/578555/ft2_4FGL_J2253.9+1609_daily_bin1121.fits outfile=/scratch/kocevski/578555/cmap_529891201_530150401_4FGL_J2253.9+1609_daily_bin1121.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/578555/ft1_filtered_4FGL_J2253.9+1609_daily_bin1121.fits scfile=/scratch/kocevski/578555/ft2_4FGL_J2253.9+1609_daily_bin1121.fits outfile=/scratch/kocevski/578555/cmap_HighResolution_529891201_530150401_4FGL_J2253.9+1609_daily_bin1121.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/578555/ft1_filtered_4FGL_J2253.9+1609_daily_bin1121.fits evtable="EVENTS" scfile=/scratch/kocevski/578555/ft2_4FGL_J2253.9+1609_daily_bin1121.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/578555/Model_4FGL_J2253.9+1609_daily_bin1121.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/578555/ft1_filtered_4FGL_J2253.9+1609_daily_bin1121.fits.....................!
real 92.01
user 90.52
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.104       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    52.908       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.7915       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    3.2977       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .23577E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.537       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .71098       1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.527       1.0000         .10000E-03   10000.    
    13 'Prefactor '    37.484       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.6151       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.8755       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.8068       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    13.831       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      '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.4004       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .62511       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=   8721.889     FROM MIGRAD    STATUS=CONVERGED    550 CALLS     3083 TOTAL
                     EDM=   .50E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.106        19.147       -.96662E-05   -.15419E-04
   2  norm          .10000E-03    2.4346       -.17912E-06** at limit **
   3  Prefactor     52.910        22.185       -.52826E-05    .52464E-04
   4  Prefactor     .10000E-03    4.6113       -.67017E-07** at limit **
   5  Prefactor     2.7915        .37243        .13641E-06   -.10589E-02
   6  Prefactor     .10000E-03    4.8758       -.25704E-06** at limit **
   7  norm          3.2978        2.0647       -.16997E-06   -.39429E-04
   8  Prefactor     .10032E-03    34.080       -.97689E-06** at limit **
   9  Prefactor     10.539        13.954        .12271E-05   -.42519E-04
  10  Prefactor     .10000E-03    8.3318       -.14431E-05** at limit **
  11  Prefactor     .71077        .19932       -.11810E-07    .98376E-03
  12  Prefactor     10.528        9.1665        .36331E-05   -.32382E-04
  13  Prefactor     37.484        34.552       -.20844E-06    .37422E-05
  14  Prefactor     4.6170        7.7017        .27900E-05   -.19562E-03
  15  Prefactor     1.8760        6.4644       -.16573E-05   -.52710E-03
  16  Prefactor     .10000E-03    5.8549        .79021E-06** at limit **
  17  Prefactor     3.8082        7.9247       -.19311E-05   -.36199E-03
  18  Prefactor     .10000E-03    3.2292        .19028E-07** at limit **
  19  Prefactor     13.831        21.643        .21758E-05   -.13641E-05
  20  norm          .10000E-03    1.9286       -.23090E-06** at limit **
  21  Prefactor     .10000E-03    2.6335       -.42470E-06** at limit **
  22  norm          .10000E-03    8.4708        .18179E-05** at limit **
  23  Normalizat    1.4004        .21792        .59583E-06    .53223E-04
  24  Prefactor     .62506        .11014       -.76847E-07    .97084E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.1059
  norm       = 0.0001
  Prefactor  = 52.9103
  Prefactor  = 0.0001
  Prefactor  = 2.79151
  Prefactor  = 0.0001
  norm       = 3.29778
  Prefactor  = 0.00010032
  Prefactor  = 10.5393
  Prefactor  = 0.0001
  Prefactor  = 0.710773
  Prefactor  = 10.5277
  Prefactor  = 37.4839
  Prefactor  = 4.617
  Prefactor  = 1.87596
  Prefactor  = 0.0001
  Prefactor  = 3.80819
  Prefactor  = 0.0001
  Prefactor  = 13.8305
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.40038
  Prefactor  = 0.625062
 **********
 **   18 **HESSE 
 **********

 FCN=   8721.889     FROM HESSE     STATUS=OK           411 CALLS     3494 TOTAL
                     EDM=   .99E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.106        19.176        .11065E-03   -1.4984    
   2  norm          .10000E-03    2.4540        .14226E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     52.910        22.243        .55141E-04   -1.4252    
   4  Prefactor     .10000E-03    4.6329        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.7915        .37447        .18605E-04   -1.5374    
   6  Prefactor     .10000E-03    4.9191        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.2978        2.0637        .96856E-04   -1.5345    
   8  Prefactor     .10032E-03    32.378        .14180       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     10.539        13.931        .12343E-03   -1.5059    
  10  Prefactor     .10000E-03    8.3416        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .71077        .19971        .19598E-04   -1.5539    
  12  Prefactor     10.528        9.1321        .12349E-03   -1.5059    
  13  Prefactor     37.484        34.652        .65462E-04   -1.4483    
  14  Prefactor     4.6170        7.6388        .18736E-03   -1.5278    
  15  Prefactor     1.8760        6.5118        .30405E-03   -1.5434    
  16  Prefactor     .10000E-03    5.8571        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.8082        7.9260        .20688E-03   -1.5318    
  18  Prefactor     .10000E-03    3.2420        .16389E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     13.831        21.560        .10770E-03   -1.4964    
  20  norm          .10000E-03    1.9354        .12665E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    2.6692        .14798E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    8.5112        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.4004        .25700        .31283E-03   -.80618    
  24  Prefactor     .62506        .12850        .23664E-03   -1.0654    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.86125e-10
Minuit parameter uncertainties:
  1  19.1849
  2  5.70802e-06
  3  22.2469
  4  1.30621e-05
  5  0.374468
  6  5.0348e-06
  7  2.06374
  8  0.00644453
  9  13.935
  10  7.51854e-06
  11  0.199709
  12  9.13331
  13  34.6706
  14  7.64045
  15  6.51428
  16  4.78469e-06
  17  7.92822
  18  7.69631e-07
  19  21.5725
  20  6.09783e-07
  21  1.79672e-06
  22  8.40397e-06
  23  0.257235
  24  0.128564
Done.

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

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  7.108e-01  1.997e-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:  6.251e-01  1.286e-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.400e+00  2.572e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 34.53
Ra Dec: 343.496 16.151
Photon Index (Fixed Index): 2.02 +/- 0.00
Photon Flux (Fixed Index): 2.59e-07 +/- 7.28e-08
Energy Flux (Fixed Index): 8.32e-05 +/- 2.34e-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) = 8719.98136945
delta logL = 1.90757829912

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8719.93987298
delta logL = 1.94907476127

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .93165       1.0000         .10000E-03   10000.    
     2 'Index1    '    2.6153       1.0000          .0000       10.000    
     3 'Normalizat'    1.2580       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .67823       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=   8719.940     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      213 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .93178        .22928        .44525E-02    .52321E-03
   2  Index1        2.6154        .30963        .14297       -.45954E-04
   3  Normalizat    1.2580        .21125        .73661E-01    .14804E-04
   4  Prefactor     .67823        .11049        .42111E-01    .20545E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.931775
  Index1     = 2.61541
  Normalizat = 1.258
  Prefactor  = 0.67823
 **********
 **   18 **HESSE 
 **********

 FCN=   8719.940     FROM HESSE     STATUS=OK            33 CALLS      246 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .93178        .22185        .19733E-04   -1.5515    
   2  Index1        2.6154        .31500        .60475E-02   -.49715    
   3  Normalizat    1.2580        .25451        .32597E-03   -.84829    
   4  Prefactor     .67823        .13156        .22789E-03   -1.0439    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.74359e-10
Minuit parameter uncertainties:
  1  0.22185
  2  0.315266
  3  0.254761
  4  0.131622
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/578555': 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) = 8719.93987278
delta logL = 1.94907496102

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  9.318e-01  2.218e-01  1.000e-04  1.000e+04 ( 1.000e-09)
317       Index1:  2.615e+00  3.153e-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:  6.782e-01  1.316e-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.258e+00  2.548e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 38.46
Ra Dec: 343.496 16.151
Photon Index (Free Index): 2.62 +/- 0.32
Photon Flux (Free Index): 3.82e-07 +/- 1.02e-07
Energy Flux (Free Index): 8.07e-05 +/- 1.91e-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/578555/cmap_HighResolution_529891201_530150401_4FGL_J2253.9+1609_daily_bin1121.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.59e-07', energy_flux2='8.07e-05', photon_flux_error='7.28e-08', dlogl='1.95e+00', energy_flux='8.32e-05', photon_flux2='3.82e-07', job_status='DONE', time_completed='2021-09-29 02:14:16.069114', photon_index_error2='0.32', photon_index2='2.62', ts='34.53', fit_tolerance='1e-08', GAL='0.63', photon_index_error='0.00', energy_flux_error2='1.91e-05', EG='1.40', time_epoch_completed='1632906856.07', return_code='0', job_id='578555', GAL2='0.68', EG2='1.26', return_code2='0', energy_flux_error='2.34e-05', photon_flux_error2='1.02e-07', ts2='38.46', photon_index='2.02' WHERE bin_id='1121' AND source_name='4FGL J2253.9+1609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:14:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0253>
Subject: Job 578555: <4FGL_J2253.9+1609_daily_bin1121> in cluster <slac> Done

Job <4FGL_J2253.9+1609_daily_bin1121> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 02:00:39 2021
Job was executed on host(s) <bullet0253>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 02:00: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:00:40 2021
Terminated at Wed Sep 29 02:14:16 2021
Results reported at Wed Sep 29 02:14:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2253.9+1609_daily_bin1121 343.496 16.1506 529891201 530150401 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 :                                 1033 MB
    Average Memory :                             322.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   816 sec.
    Turnaround time :                            817 sec.

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

