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


Performing analysis on: 4FGL_J2253.9+1609_daily_bin52
RA = 343.496, Dec = 16.1506
tmin = 252806401, tmax = 253065601
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='572895', job_status='RUN', time_executed='2021-09-29 01:48:23.474184', time_epoch_executed='1632905303.47' WHERE source_name='4FGL J2253.9+1609' and cadence='daily' and bin_id='52'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/572895

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/572895/ft1_4FGL_J2253.9+1609_daily_bin52.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/572895/ft2_4FGL_J2253.9+1609_daily_bin52.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/572895/ft1_4FGL_J2253.9+1609_daily_bin52.fits outfile=/scratch/kocevski/572895/ft1_filteredMKT_4FGL_J2253.9+1609_daily_bin52.fits ra=343.496 dec=16.1506 rad=12.0 tmin=252806401.0 tmax=253065601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 1.42
user 1.24
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/572895/ft2_4FGL_J2253.9+1609_daily_bin52.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/572895/ft1_filteredMKT_4FGL_J2253.9+1609_daily_bin52.fits evtable="EVENTS" outfile="/scratch/kocevski/572895/ft1_filtered_4FGL_J2253.9+1609_daily_bin52.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/572895/ft1_filtered_4FGL_J2253.9+1609_daily_bin52.fits" evtable="EVENTS" scfile=/scratch/kocevski/572895/ft2_4FGL_J2253.9+1609_daily_bin52.fits sctable="SC_DATA" outfile=/scratch/kocevski/572895/ltcube_252806401_253065601_4FGL_J2253.9+1609_daily_bin52.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/572895/ft2_4FGL_J2253.9+1609_daily_bin52.fits
.....................!
real 13.47
user 13.02
sys 0.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/572895/ft1_filtered_4FGL_J2253.9+1609_daily_bin52.fits evtable="EVENTS" scfile=/scratch/kocevski/572895/ft2_4FGL_J2253.9+1609_daily_bin52.fits sctable="SC_DATA" expcube=/scratch/kocevski/572895/ltcube_252806401_253065601_4FGL_J2253.9+1609_daily_bin52.fits outfile=/scratch/kocevski/572895/expmap_252806401_253065601_4FGL_J2253.9+1609_daily_bin52.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/572895/ltcube_252806401_253065601_4FGL_J2253.9+1609_daily_bin52.fits
.....................!
real 192.84
user 187.20
sys 5.31

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/572895/ft1_filtered_4FGL_J2253.9+1609_daily_bin52.fits scfile=/scratch/kocevski/572895/ft2_4FGL_J2253.9+1609_daily_bin52.fits outfile=/scratch/kocevski/572895/cmap_252806401_253065601_4FGL_J2253.9+1609_daily_bin52.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.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/572895/ft1_filtered_4FGL_J2253.9+1609_daily_bin52.fits scfile=/scratch/kocevski/572895/ft2_4FGL_J2253.9+1609_daily_bin52.fits outfile=/scratch/kocevski/572895/cmap_HighResolution_252806401_253065601_4FGL_J2253.9+1609_daily_bin52.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/572895/ft1_filtered_4FGL_J2253.9+1609_daily_bin52.fits evtable="EVENTS" scfile=/scratch/kocevski/572895/ft2_4FGL_J2253.9+1609_daily_bin52.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/572895/Model_4FGL_J2253.9+1609_daily_bin52.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/572895/ft1_filtered_4FGL_J2253.9+1609_daily_bin52.fits.....................!
real 114.74
user 113.37
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.9062       1.0000         .10000E-03   10000.    
     2 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .30026       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.6428       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    19.669       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.2847       1.0000         .10000E-03   10000.    
    10 'Prefactor '    15.922       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.6758       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.8493       1.0000         .10000E-03   10000.    
    13 'Prefactor '    27.214       1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.328       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .22003E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10229E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    11.963       1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.8075       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .88188       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0693       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=   11133.04     FROM MIGRAD    STATUS=CONVERGED    533 CALLS     2713 TOTAL
                     EDM=   .82E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.9042        36.257       -.51218E-05   -.87134E-05
   2  norm          .10000E-03    3.2920        .49377E-06** at limit **
   3  Prefactor     .10000E-03    2.7021       -.11442E-06** at limit **
   4  Prefactor     .10000E-03    4.5939        .86965E-06** at limit **
   5  Prefactor     .30029        .14853       -.15458E-07   -.28377E-03
   6  Prefactor     2.6428        3.2743        .16767E-05    .34569E-04
   7  norm          .10000E-03    .70621       -.26812E-07** at limit **
   8  Prefactor     19.669        19.395        .26247E-06    .29497E-07
   9  Prefactor     4.2862        7.3676        .92610E-06   -.56073E-05
  10  Prefactor     15.922        15.982        .90483E-07    .17420E-06
  11  Prefactor     2.6758        .25298       -.31703E-08    .52470E-04
  12  Prefactor     2.8494        6.5202       -.35181E-06   -.43401E-03
  13  Prefactor     27.215        27.165        .34319E-06    .40223E-05
  14  Prefactor     10.327        7.6598       -.18194E-06   -.58843E-05
  15  Prefactor     .10000E-03    5.2124       -.87902E-06** at limit **
  16  Prefactor     .10000E-03    3.9728       -.12948E-05** at limit **
  17  Prefactor     .10000E-03    2.3321        .28631E-07** at limit **
  18  Prefactor     .10002E-03    4.4333       -.57086E-07** at limit **
  19  Prefactor     .10000E-03    19.485        .10084E-05** at limit **
  20  norm          11.956        8.1011       -.76811E-06    .26375E-05
  21  Prefactor     4.8074        4.2898        .28795E-06   -.80493E-03
  22  norm          .10000E-03    4.6352        .85789E-06** at limit **
  23  Normalizat    .88178        .19473        .23684E-06   -.14297E-04
  24  Prefactor     1.0693        .10929       -.10162E-07    .22001E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.90415
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.300287
  Prefactor  = 2.64285
  norm       = 0.0001
  Prefactor  = 19.6691
  Prefactor  = 4.28619
  Prefactor  = 15.9224
  Prefactor  = 2.67579
  Prefactor  = 2.84939
  Prefactor  = 27.2146
  Prefactor  = 10.3269
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100019
  Prefactor  = 0.0001
  norm       = 11.9563
  Prefactor  = 4.80738
  norm       = 0.0001
  Normalizat = 0.881775
  Prefactor  = 1.06931
 **********
 **   18 **HESSE 
 **********

 FCN=   11133.04     FROM HESSE     STATUS=OK           405 CALLS     3118 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.9042        36.393        .23834E-03   -1.5367    
   2  norm          .10000E-03    3.3602        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.7055        .16937E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.6423        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .30029        .14558        .27297E-04   -1.5598    
   6  Prefactor     2.6428        3.2688        .20698E-03   -1.5383    
   7  norm          .10000E-03    .73886        .17295E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     19.669        19.409        .90311E-04   -1.4821    
   9  Prefactor     4.2862        7.3521        .19463E-03   -1.5294    
  10  Prefactor     15.922        15.995        .10037E-03   -1.4910    
  11  Prefactor     2.6758        .25405        .15088E-04   -1.5381    
  12  Prefactor     2.8494        10.563        .12043E-02   -1.5370    
  13  Prefactor     27.215        27.204        .76794E-04   -1.4664    
  14  Prefactor     10.327        7.6608        .12468E-03   -1.5065    
  15  Prefactor     .10000E-03    5.2452        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    3.9725        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2.3489        .15729E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10002E-03    30.177        .41569E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    19.691        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          11.956        7.9572        .11582E-03   -1.5016    
  21  Prefactor     4.8074        5.2872        .91742E-03   -1.5269    
  22  norm          .10000E-03    4.6440        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .88178        .22363        .38441E-03   -.97104    
  24  Prefactor     1.0693        .12633        .20319E-03   -.90453    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.69395e-09
Minuit parameter uncertainties:
  1  20.5763
  2  1.88595e-06
  3  4.72328e-07
  4  3.1531e-06
  5  0.145584
  6  3.26902
  7  2.00881e-06
  8  19.4155
  9  7.35366
  10  15.9995
  11  0.254047
  12  10.5695
  13  27.2167
  14  7.6615
  15  1.51906e-06
  16  1.33324e-06
  17  7.45501e-07
  18  0.00150351
  19  8.36208e-06
  20  7.95789
  21  5.28776
  22  2.39218e-07
  23  0.223866
  24  0.126368
Done.

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

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  2.676e+00  2.540e-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.069e+00  1.264e-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.818e-01  2.239e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 382.88
Ra Dec: 343.496 16.151
Photon Index (Fixed Index): 2.02 +/- 0.00
Photon Flux (Fixed Index): 9.76e-07 +/- 9.26e-08
Energy Flux (Fixed Index): 3.13e-04 +/- 2.97e-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) = 11132.724304
delta logL = 0.317924338586

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11132.7228703
delta logL = 0.319358056171

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.5829       1.0000         .10000E-03   10000.    
     2 'Index1    '    1.9374       1.0000          .0000       10.000    
     3 'Normalizat'    .92194       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0531       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=   11132.72     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      203 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.5828        .25778        .33849E-02   -.48516E-04
   2  Index1        1.9374        .96077E-01    .52725E-01   -.95537E-04
   3  Normalizat    .92192        .19167        .85217E-01    .38785E-04
   4  Prefactor     1.0531        .10878        .39733E-01    .26360E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.58285
  Index1     = 1.93744
  Normalizat = 0.921922
  Prefactor  = 1.05309
 **********
 **   18 **HESSE 
 **********

 FCN=   11132.72     FROM HESSE     STATUS=OK            31 CALLS      234 TOTAL
                     EDM=   .14E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.5828        .27162        .14959E-04   -1.5387    
   2  Index1        1.9374        .10183        .23221E-03   -.65923    
   3  Normalizat    .92192        .22394        .37732E-03   -.95694    
   4  Prefactor     1.0531        .12692        .20460E-03   -.90980    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.35308e-14
Minuit parameter uncertainties:
  1  0.271618
  2  0.101841
  3  0.224168
  4  0.126951
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/572895': 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) = 11132.7228703
delta logL = 0.319358062676

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  2.583e+00  2.716e-01  1.000e-04  1.000e+04 ( 1.000e-09)
317       Index1:  1.937e+00  1.018e-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.053e+00  1.270e-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.219e-01  2.242e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 386.17
Ra Dec: 343.496 16.151
Photon Index (Free Index): 1.94 +/- 0.10
Photon Flux (Free Index): 9.38e-07 +/- 9.97e-08
Energy Flux (Free Index): 3.27e-04 +/- 3.57e-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/572895/cmap_HighResolution_252806401_253065601_4FGL_J2253.9+1609_daily_bin52.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.76e-07', energy_flux2='3.27e-04', photon_flux_error='9.26e-08', dlogl='3.19e-01', energy_flux='3.13e-04', photon_flux2='9.38e-07', job_status='DONE', time_completed='2021-09-29 02:02:07.974842', photon_index_error2='0.10', photon_index2='1.94', ts='382.88', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', energy_flux_error2='3.57e-05', EG='0.88', time_epoch_completed='1632906127.97', return_code='0', job_id='572895', GAL2='1.05', EG2='0.92', return_code2='0', energy_flux_error='2.97e-05', photon_flux_error2='9.97e-08', ts2='386.17', photon_index='2.02' WHERE bin_id='52' AND source_name='4FGL J2253.9+1609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:02:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0055>
Subject: Job 572895: <4FGL_J2253.9+1609_daily_bin52> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2253.9+1609_daily_bin52 343.496 16.1506 252806401 253065601 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 :                                   820.13 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             334.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   994 sec.
    Turnaround time :                            995 sec.

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

