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


Performing analysis on: 4FGL_J2253.9+1609_daily_bin1272
RA = 343.496, Dec = 16.1506
tmin = 569030401, tmax = 569289601
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='579865', job_status='RUN', time_executed='2021-09-29 02:07:16.035712', time_epoch_executed='1632906436.04' WHERE source_name='4FGL J2253.9+1609' and cadence='daily' and bin_id='1272'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/579865

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/579865/ft1_4FGL_J2253.9+1609_daily_bin1272.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/579865/ft2_4FGL_J2253.9+1609_daily_bin1272.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/579865/ft1_4FGL_J2253.9+1609_daily_bin1272.fits outfile=/scratch/kocevski/579865/ft1_filteredMKT_4FGL_J2253.9+1609_daily_bin1272.fits ra=343.496 dec=16.1506 rad=12.0 tmin=569030401.0 tmax=569289601.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.62
user 3.34
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/579865/ft1_filtered_4FGL_J2253.9+1609_daily_bin1272.fits" evtable="EVENTS" scfile=/scratch/kocevski/579865/ft2_4FGL_J2253.9+1609_daily_bin1272.fits sctable="SC_DATA" outfile=/scratch/kocevski/579865/ltcube_569030401_569289601_4FGL_J2253.9+1609_daily_bin1272.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/579865/ft2_4FGL_J2253.9+1609_daily_bin1272.fits
.....................!
real 11.91
user 11.53
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/579865/ft1_filtered_4FGL_J2253.9+1609_daily_bin1272.fits evtable="EVENTS" scfile=/scratch/kocevski/579865/ft2_4FGL_J2253.9+1609_daily_bin1272.fits sctable="SC_DATA" expcube=/scratch/kocevski/579865/ltcube_569030401_569289601_4FGL_J2253.9+1609_daily_bin1272.fits outfile=/scratch/kocevski/579865/expmap_569030401_569289601_4FGL_J2253.9+1609_daily_bin1272.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/579865/ltcube_569030401_569289601_4FGL_J2253.9+1609_daily_bin1272.fits
.....................!
real 190.97
user 185.23
sys 5.34

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/579865/ft1_filtered_4FGL_J2253.9+1609_daily_bin1272.fits scfile=/scratch/kocevski/579865/ft2_4FGL_J2253.9+1609_daily_bin1272.fits outfile=/scratch/kocevski/579865/cmap_569030401_569289601_4FGL_J2253.9+1609_daily_bin1272.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.52
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/579865/ft1_filtered_4FGL_J2253.9+1609_daily_bin1272.fits scfile=/scratch/kocevski/579865/ft2_4FGL_J2253.9+1609_daily_bin1272.fits outfile=/scratch/kocevski/579865/cmap_HighResolution_569030401_569289601_4FGL_J2253.9+1609_daily_bin1272.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=343.496 yref=16.1506 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.196       1.0000         .10000E-03   10000.    
     2 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.8780       1.0000         .10000E-03   10000.    
     4 'Prefactor '    17.064       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .47064       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.3185       1.0000         .10000E-03   10000.    
     7 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    38.721       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .93581       1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.4035       1.0000         .10000E-03   10000.    
    13 'Prefactor '    34.070       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.0080       1.0000         .10000E-03   10000.    
    15 'Prefactor '    12.575       1.0000         .10000E-03   10000.    
    16 'Prefactor '    19.384       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.9935       1.0000         .10000E-03   10000.    
    20 'norm      '    2.5972       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .89491       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .92534       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=   7472.014     FROM MIGRAD    STATUS=CONVERGED    524 CALLS     2697 TOTAL
                     EDM=   .18E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.196        17.316       -.20794E-06   -.19926E-05
   2  norm          .10000E-03    2.2207        .24934E-07** at limit **
   3  Prefactor     4.8778        9.3190        .12118E-06   -.12154E-03
   4  Prefactor     17.065        10.798        .24845E-06   -.74075E-05
   5  Prefactor     .47065        .20562        .18371E-07   -.12857E-03
   6  Prefactor     4.3179        7.9853        .41285E-07   -.16692E-03
   7  norm          .10000E-03    .42801        .38150E-09** at limit **
   8  Prefactor     .10000E-03    11.519       -.95970E-08** at limit **
   9  Prefactor     38.722        13.656        .32426E-06   -.78523E-05
  10  Prefactor     .10000E-03    21.268        .48753E-07** at limit **
  11  Prefactor     .93581        .18325        .85812E-08   -.32449E-03
  12  Prefactor     6.4038        6.1440        .47985E-07    .66356E-06
  13  Prefactor     34.075        41.538        .73925E-05   -.37566E-05
  14  Prefactor     4.0083        6.0617        .64480E-07   -.21245E-04
  15  Prefactor     12.576        13.747        .33212E-06   -.13393E-04
  16  Prefactor     19.384        16.600        .67478E-06   -.40368E-05
  17  Prefactor     .10000E-03    3.8134        .75699E-08** at limit **
  18  Prefactor     .10000E-03    4.2727       -.42984E-07** at limit **
  19  Prefactor     3.9945        17.093        .28952E-05   -.29617E-05
  20  norm          2.5996        2.3897       -.35711E-07   -.58295E-03
  21  Prefactor     .10000E-03    3.6834       -.20975E-07** at limit **
  22  norm          .10000E-03    6.2122        .26870E-07** at limit **
  23  Normalizat    .89477        .21563       -.19392E-05    .19448E-04
  24  Prefactor     .92542        .11570        .81094E-07   -.77926E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.1956
  norm       = 0.0001
  Prefactor  = 4.8778
  Prefactor  = 17.0645
  Prefactor  = 0.470653
  Prefactor  = 4.31788
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 38.7219
  Prefactor  = 0.0001
  Prefactor  = 0.935805
  Prefactor  = 6.40376
  Prefactor  = 34.0752
  Prefactor  = 4.00826
  Prefactor  = 12.576
  Prefactor  = 19.3844
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.99446
  norm       = 2.5996
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.894768
  Prefactor  = 0.92542
 **********
 **   18 **HESSE 
 **********

 FCN=   7472.014     FROM HESSE     STATUS=OK           405 CALLS     3102 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.196        17.317        .91416E-04   -1.4831    
   2  norm          .10000E-03    2.2467        .12577E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.8778        9.6081        .91062E-03   -1.5266    
   4  Prefactor     17.065        10.815        .96957E-04   -1.4882    
   5  Prefactor     .47065        .20383        .23853E-04   -1.5571    
   6  Prefactor     4.3179        8.3870        .96924E-03   -1.5292    
   7  norm          .10000E-03    .42913        .55205E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    11.527        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     38.722        13.663        .64412E-04   -1.4463    
  10  Prefactor     .10000E-03    21.437        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .93581        .18353        .15427E-04   -1.5514    
  12  Prefactor     6.4038        6.1470        .15861E-03   -1.5202    
  13  Prefactor     34.075        41.541        .68653E-04   -1.4540    
  14  Prefactor     4.0083        6.0514        .20144E-03   -1.5308    
  15  Prefactor     12.576        13.758        .11296E-03   -1.4999    
  16  Prefactor     19.384        16.608        .90973E-04   -1.4827    
  17  Prefactor     .10000E-03    3.8562        .16448E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.2829        .17449E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.9945        17.100        .20182E-03   -1.5308    
  20  norm          2.5996        5.9403        .12658E-02   -1.5385    
  21  Prefactor     .10000E-03    3.7238        .16189E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    6.2277        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .89477        .25300        .33740E-03   -.96644    
  24  Prefactor     .92542        .13599        .19141E-03   -.95258    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.55441e-10
Minuit parameter uncertainties:
  1  17.3212
  2  3.37596e-06
  3  9.61115
  4  10.8158
  5  0.203829
  6  8.38932
  7  2.74695e-08
  8  2.63453e-06
  9  13.664
  10  8.34209e-06
  11  0.183531
  12  6.1476
  13  41.5761
  14  6.05231
  15  13.7617
  16  16.612
  17  7.36776e-06
  18  1.94243e-06
  19  16.5374
  20  5.94167
  21  4.29936e-06
  22  2.28144e-06
  23  0.253332
  24  0.136041
Done.

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

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  9.358e-01  1.835e-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.254e-01  1.360e-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.948e-01  2.533e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 66.61
Ra Dec: 343.496 16.151
Photon Index (Fixed Index): 2.02 +/- 0.00
Photon Flux (Fixed Index): 3.41e-07 +/- 6.69e-08
Energy Flux (Fixed Index): 1.10e-04 +/- 2.15e-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) = 7469.78856027
delta logL = 2.22531175293

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7469.78600151
delta logL = 2.22787051746

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.0689       1.0000         .10000E-03   10000.    
     2 'Index1    '    2.5004       1.0000          .0000       10.000    
     3 'Normalizat'    .79535       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96456       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=   7469.786     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      209 TOTAL
                     EDM=   .96E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.0689        .20007        .34853E-02    .85139E-04
   2  Index1        2.5004        .24274        .10486       -.33568E-04
   3  Normalizat    .79519        .20272        .80066E-01    .30817E-04
   4  Prefactor     .96464        .11620        .45823E-01    .24050E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.06892
  Index1     = 2.50038
  Normalizat = 0.795187
  Prefactor  = 0.964641
 **********
 **   18 **HESSE 
 **********

 FCN=   7469.786     FROM HESSE     STATUS=OK            31 CALLS      240 TOTAL
                     EDM=   .23E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.0689        .19573        .15420E-04   -1.5501    
   2  Index1        2.5004        .24176        .45610E-03   -.52351    
   3  Normalizat    .79519        .23745        .35446E-03   -1.0025    
   4  Prefactor     .96464        .13577        .18776E-03   -.93918    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.28565e-14
Minuit parameter uncertainties:
  1  0.195731
  2  0.241883
  3  0.237758
  4  0.135821
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/579865': 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) = 7469.78600125
delta logL = 2.22787077633

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  1.069e+00  1.957e-01  1.000e-04  1.000e+04 ( 1.000e-09)
317       Index1:  2.500e+00  2.419e-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.646e-01  1.358e-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:  7.952e-01  2.378e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 71.38
Ra Dec: 343.496 16.151
Photon Index (Free Index): 2.50 +/- 0.24
Photon Flux (Free Index): 4.24e-07 +/- 8.36e-08
Energy Flux (Free Index): 9.52e-05 +/- 1.83e-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/579865/cmap_HighResolution_569030401_569289601_4FGL_J2253.9+1609_daily_bin1272.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.41e-07', energy_flux2='9.52e-05', photon_flux_error='6.69e-08', dlogl='2.23e+00', energy_flux='1.10e-04', photon_flux2='4.24e-07', job_status='DONE', time_completed='2021-09-29 02:19:04.764356', photon_index_error2='0.24', photon_index2='2.50', ts='66.61', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', energy_flux_error2='1.83e-05', EG='0.89', time_epoch_completed='1632907144.76', return_code='0', job_id='579865', GAL2='0.96', EG2='0.80', return_code2='0', energy_flux_error='2.15e-05', photon_flux_error2='8.36e-08', ts2='71.38', photon_index='2.02' WHERE bin_id='1272' AND source_name='4FGL J2253.9+1609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:19:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0094>
Subject: Job 579865: <4FGL_J2253.9+1609_daily_bin1272> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2253.9+1609_daily_bin1272 343.496 16.1506 569030401 569289601 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 :                                   655.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             310.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   819 sec.
    Turnaround time :                            821 sec.

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

