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


Performing analysis on: 4FGL_J2253.9+1609_daily_bin1170
RA = 343.496, Dec = 16.1506
tmin = 542592001, tmax = 542851201
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='579713', job_status='RUN', time_executed='2021-09-29 02:07:54.049389', time_epoch_executed='1632906474.05' WHERE source_name='4FGL J2253.9+1609' and cadence='daily' and bin_id='1170'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/579713

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/579713/ft1_4FGL_J2253.9+1609_daily_bin1170.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/579713/ft2_4FGL_J2253.9+1609_daily_bin1170.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/579713/ft1_4FGL_J2253.9+1609_daily_bin1170.fits outfile=/scratch/kocevski/579713/ft1_filteredMKT_4FGL_J2253.9+1609_daily_bin1170.fits ra=343.496 dec=16.1506 rad=12.0 tmin=542592001.0 tmax=542851201.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 6.77
user 6.48
sys 0.26

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/579713/ft1_filtered_4FGL_J2253.9+1609_daily_bin1170.fits evtable="EVENTS" scfile=/scratch/kocevski/579713/ft2_4FGL_J2253.9+1609_daily_bin1170.fits sctable="SC_DATA" expcube=/scratch/kocevski/579713/ltcube_542592001_542851201_4FGL_J2253.9+1609_daily_bin1170.fits outfile=/scratch/kocevski/579713/expmap_542592001_542851201_4FGL_J2253.9+1609_daily_bin1170.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/579713/ltcube_542592001_542851201_4FGL_J2253.9+1609_daily_bin1170.fits
.....................!
real 191.08
user 185.96
sys 4.80

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/579713/ft1_filtered_4FGL_J2253.9+1609_daily_bin1170.fits scfile=/scratch/kocevski/579713/ft2_4FGL_J2253.9+1609_daily_bin1170.fits outfile=/scratch/kocevski/579713/cmap_542592001_542851201_4FGL_J2253.9+1609_daily_bin1170.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/579713/ft1_filtered_4FGL_J2253.9+1609_daily_bin1170.fits scfile=/scratch/kocevski/579713/ft2_4FGL_J2253.9+1609_daily_bin1170.fits outfile=/scratch/kocevski/579713/cmap_HighResolution_542592001_542851201_4FGL_J2253.9+1609_daily_bin1170.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.56
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    56.011       1.0000         .10000E-03   10000.    
     2 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.7149       1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.161       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.6038       1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.1402       1.0000         .10000E-03   10000.    
     7 'norm      '    .92028       1.0000         .10000E-03   10000.    
     8 'Prefactor '    17.087       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10216E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.3678       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .15360E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.3427       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .17283E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10135E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10607E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10187E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    21.931       1.0000         .10000E-03   10000.    
    20 'norm      '    16.478       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10216E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    8.5015       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .98762       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0093       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=   4905.569     FROM MIGRAD    STATUS=CONVERGED    566 CALLS     2753 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     56.064        41.645       -.74449E-06   -.89498E-04
   2  norm          .10000E-03    5.8207        .14306E-06** at limit **
   3  Prefactor     4.7571        31.684       -.26686E-05   -.83194E-04
   4  Prefactor     11.156        17.865        .32823E-06   -.22126E-04
   5  Prefactor     1.6037        .40509        .50332E-07   -.21386E-03
   6  Prefactor     8.1348        8.9144       -.14648E-06   -.45422E-04
   7  norm          .91799        2.3860        .76013E-06    .19719E-03
   8  Prefactor     17.074        45.829        .11853E-05    .19931E-05
   9  Prefactor     .10000E-03    17.997       -.83450E-06** at limit **
  10  Prefactor     .10000E-03    18.936        .16847E-05** at limit **
  11  Prefactor     1.3679        .31512       -.35887E-07   -.49084E-03
  12  Prefactor     .10000E-03    7.2718        .16307E-06** at limit **
  13  Prefactor     .10000E-03    525.18       -.78421E-05** at limit **
  14  Prefactor     6.3529        10.516        .39286E-05   -.38814E-04
  15  Prefactor     .10000E-03    61.607       -.17941E-06** at limit **
  16  Prefactor     .10000E-03    25.569        .16192E-05** at limit **
  17  Prefactor     .10000E-03    5.0088       -.12708E-06** at limit **
  18  Prefactor     .10000E-03    14.224        .30747E-06** at limit **
  19  Prefactor     21.960        38.695       -.73724E-06   -.46746E-04
  20  norm          16.475        13.753       -.67201E-06    .28260E-04
  21  Prefactor     .10000E-03    22.883       -.15337E-05** at limit **
  22  norm          8.4995        23.252        .21826E-06    .32039E-05
  23  Normalizat    .98746        .31368       -.21530E-05   -.97547E-05
  24  Prefactor     1.0095        .16251       -.44789E-06   -.44503E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 56.0637
  norm       = 0.0001
  Prefactor  = 4.75711
  Prefactor  = 11.1563
  Prefactor  = 1.60372
  Prefactor  = 8.13484
  norm       = 0.917989
  Prefactor  = 17.0743
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.36788
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 6.35286
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.96
  norm       = 16.4752
  Prefactor  = 0.0001
  norm       = 8.49954
  Normalizat = 0.987458
  Prefactor  = 1.00947
 **********
 **   18 **HESSE 
 **********

 FCN=   4905.569     FROM HESSE     STATUS=OK           401 CALLS     3154 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     56.064        41.834        .53599E-04   -1.4209    
   2  norm          .10000E-03    5.9001        .16502E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.7571        32.928        .18532E-03   -1.5272    
   4  Prefactor     11.156        17.864        .11992E-03   -1.5040    
   5  Prefactor     1.6037        .40615        .20048E-04   -1.5455    
   6  Prefactor     8.1348        8.9243        .14052E-03   -1.5137    
   7  norm          .91799        2.2740        .16936E-02   -1.5516    
   8  Prefactor     17.074        45.972        .96890E-04   -1.4881    
   9  Prefactor     .10000E-03    18.190        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    19.119        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.3679        .31750        .17239E-04   -1.5474    
  12  Prefactor     .10000E-03    7.2846        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    545.14        .36398E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.3529        10.582        .79689E-03   -1.5204    
  15  Prefactor     .10000E-03    64.011        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    25.731        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    5.0212        .15296E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    14.379        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     21.960        38.948        .85531E-04   -1.4770    
  20  norm          16.475        13.744        .98666E-04   -1.4896    
  21  Prefactor     .10000E-03    23.304        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          8.4995        23.248        .13748E-03   -1.5125    
  23  Normalizat    .98746        .36288        .38330E-03   -.93452    
  24  Prefactor     1.0095        .18943        .21002E-03   -.92414    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.57581e-10
Minuit parameter uncertainties:
  1  41.8564
  2  1.32784e-05
  3  25.0509
  4  17.8721
  5  0.406152
  6  8.92579
  7  2.27424
  8  46.068
  9  0.000110561
  10  0.000182008
  11  0.317503
  12  7.4404e-06
  13  0.00204326
  14  10.5855
  15  0.000126006
  16  0.000202452
  17  8.04416e-06
  18  4.57976e-05
  19  38.9927
  20  13.7471
  21  5.92204e-05
  22  23.2727
  23  0.363795
  24  0.189555
Done.

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

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  1.368e+00  3.175e-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:  1.009e+00  1.896e-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.875e-01  3.638e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 54.32
Ra Dec: 343.496 16.151
Photon Index (Fixed Index): 2.02 +/- 0.00
Photon Flux (Fixed Index): 4.99e-07 +/- 1.16e-07
Energy Flux (Fixed Index): 1.60e-04 +/- 3.72e-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) = 4904.56257842
delta logL = 1.00642608886

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4904.56248707
delta logL = 1.0065174379

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.6533       1.0000         .10000E-03   10000.    
     2 'Index1    '    2.4349       1.0000          .0000       10.000    
     3 'Normalizat'    .81379       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0765       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=   4904.562     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      198 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.6534        .34458        .39589E-02    .30116E-04
   2  Index1        2.4351        .27903        .99927E-01   -.34050E-04
   3  Normalizat    .81361        .31162        .93882E-01    .19405E-04
   4  Prefactor     1.0765        .16931        .38559E-01   -.19036E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.65343
  Index1     = 2.43514
  Normalizat = 0.813612
  Prefactor  = 1.07654
 **********
 **   18 **HESSE 
 **********

 FCN=   4904.562     FROM HESSE     STATUS=OK            29 CALLS      227 TOTAL
                     EDM=   .25E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.6534        .36580        .17516E-04   -1.5451    
   2  Index1        2.4351        .30298        .43338E-03   -.53864    
   3  Normalizat    .81361        .36173        .41593E-03   -.99566    
   4  Prefactor     1.0765        .19483        .20401E-03   -.90220    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.48339e-13
Minuit parameter uncertainties:
  1  0.365805
  2  0.303229
  3  0.362804
  4  0.194963
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/579713': 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) = 4904.56248679
delta logL = 1.00651771244

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  1.653e+00  3.658e-01  1.000e-04  1.000e+04 ( 1.000e-09)
317       Index1:  2.435e+00  3.032e-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:  1.077e+00  1.950e-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.136e-01  3.628e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 56.91
Ra Dec: 343.496 16.151
Photon Index (Free Index): 2.44 +/- 0.30
Photon Flux (Free Index): 6.45e-07 +/- 1.64e-07
Energy Flux (Free Index): 1.50e-04 +/- 3.18e-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/579713/cmap_HighResolution_542592001_542851201_4FGL_J2253.9+1609_daily_bin1170.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.99e-07', energy_flux2='1.50e-04', photon_flux_error='1.16e-07', dlogl='1.01e+00', energy_flux='1.60e-04', photon_flux2='6.45e-07', job_status='DONE', time_completed='2021-09-29 02:17:18.354017', photon_index_error2='0.30', photon_index2='2.44', ts='54.32', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', energy_flux_error2='3.18e-05', EG='0.99', time_epoch_completed='1632907038.35', return_code='0', job_id='579713', GAL2='1.08', EG2='0.81', return_code2='0', energy_flux_error='3.72e-05', photon_flux_error2='1.64e-07', ts2='56.91', photon_index='2.02' WHERE bin_id='1170' AND source_name='4FGL J2253.9+1609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:17:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0042>
Subject: Job 579713: <4FGL_J2253.9+1609_daily_bin1170> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2253.9+1609_daily_bin1170 343.496 16.1506 542592001 542851201 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 :                                   558.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             293.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   724 sec.
    Turnaround time :                            725 sec.

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

