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


Performing analysis on: 4FGL_J2253.9+1609_daily_bin51
RA = 343.496, Dec = 16.1506
tmin = 252547201, tmax = 252806401
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='572894', job_status='RUN', time_executed='2021-09-29 01:47:55.813180', time_epoch_executed='1632905275.81' WHERE source_name='4FGL J2253.9+1609' and cadence='daily' and bin_id='51'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/572894

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/572894/ft1_4FGL_J2253.9+1609_daily_bin51.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/572894/ft2_4FGL_J2253.9+1609_daily_bin51.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/572894/ft1_4FGL_J2253.9+1609_daily_bin51.fits outfile=/scratch/kocevski/572894/ft1_filteredMKT_4FGL_J2253.9+1609_daily_bin51.fits ra=343.496 dec=16.1506 rad=12.0 tmin=252547201.0 tmax=252806401.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.38
user 1.22
sys 0.16

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/572894/ft1_filtered_4FGL_J2253.9+1609_daily_bin51.fits evtable="EVENTS" scfile=/scratch/kocevski/572894/ft2_4FGL_J2253.9+1609_daily_bin51.fits sctable="SC_DATA" expcube=/scratch/kocevski/572894/ltcube_252547201_252806401_4FGL_J2253.9+1609_daily_bin51.fits outfile=/scratch/kocevski/572894/expmap_252547201_252806401_4FGL_J2253.9+1609_daily_bin51.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/572894/ltcube_252547201_252806401_4FGL_J2253.9+1609_daily_bin51.fits
.....................!
real 191.11
user 185.95
sys 4.83

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/572894/ft1_filtered_4FGL_J2253.9+1609_daily_bin51.fits scfile=/scratch/kocevski/572894/ft2_4FGL_J2253.9+1609_daily_bin51.fits outfile=/scratch/kocevski/572894/cmap_252547201_252806401_4FGL_J2253.9+1609_daily_bin51.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=343.496 yref=16.1506 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.36
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.404       1.0000         .10000E-03   10000.    
     2 'norm      '    1.8467       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .59178E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .13274E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .27012E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.0058       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    28.452       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10224E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.4660       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.7766       1.0000         .10000E-03   10000.    
    20 'norm      '    23.251       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.0040       1.0000         .10000E-03   10000.    
    22 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .46279       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.2793       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=   9309.739     FROM MIGRAD    STATUS=CONVERGED    574 CALLS     3702 TOTAL
                     EDM=   .79E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.406        19.432       -.46764E-05   -.53601E-05
   2  norm          1.8463        3.0301       -.29352E-06   -.55197E-03
   3  Prefactor     .10000E-03    16.365        .13229E-06** at limit **
   4  Prefactor     .10000E-03    2.3975        .85549E-07** at limit **
   5  Prefactor     .59199E-01    .12565       -.20565E-06   -.49404E-02
   6  Prefactor     .10000E-03    1.7434       -.86044E-08** at limit **
   7  norm          .10000E-03    .95329       -.44930E-06** at limit **
   8  Prefactor     .10000E-03    22.296       -.90333E-07** at limit **
   9  Prefactor     .10000E-03    3.2149       -.12174E-06** at limit **
  10  Prefactor     .10000E-03    12.519        .32483E-07** at limit **
  11  Prefactor     2.0057        .23537       -.17271E-08    .18041E-02
  12  Prefactor     .10000E-03    9.4928       -.10235E-06** at limit **
  13  Prefactor     28.459        27.457       -.54385E-05    .13607E-04
  14  Prefactor     .10000E-03    9.0570        .34846E-06** at limit **
  15  Prefactor     7.4668        14.238        .41247E-05    .10862E-04
  16  Prefactor     .10000E-03    9.1220       -.50515E-06** at limit **
  17  Prefactor     .10000E-03    2.3731       -.30449E-07** at limit **
  18  Prefactor     .10000E-03    3.3603        .52031E-06** at limit **
  19  Prefactor     3.7812        11.688       -.70782E-06   -.10323E-03
  20  norm          23.280        12.005        .19366E-06    .63767E-03
  21  Prefactor     .96103        4.4884       -.16007E-05    .11196E-03
  22  norm          .10000E-03    3.5574        .10379E-05** at limit **
  23  Normalizat    .46284        .22922        .73837E-06    .16496E-03
  24  Prefactor     1.2793        .12775        .33868E-06    .46399E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.406
  norm       = 1.84631
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0591989
  Prefactor  = 0.0001
  norm       = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.00567
  Prefactor  = 0.0001
  Prefactor  = 28.4587
  Prefactor  = 0.0001
  Prefactor  = 7.46675
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.78119
  norm       = 23.2804
  Prefactor  = 0.96103
  norm       = 0.0001
  Normalizat = 0.462845
  Prefactor  = 1.27932
 **********
 **   18 **HESSE 
 **********

 FCN=   9309.739     FROM HESSE     STATUS=OK           407 CALLS     4109 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.406        19.328        .10205E-03   -1.4923    
   2  norm          1.8463        3.0285        .21042E-03   -1.5436    
   3  Prefactor     .10000E-03    16.717        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.4000        .14589E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .59199E-01    .14362        .48182E-03   -1.5659    
   6  Prefactor     .10000E-03    1.7452        .12441E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    3.4896        .18178E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    22.947        .13896       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.2228        .16893E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    12.540        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.0057        .23558        .14764E-04   -1.5425    
  12  Prefactor     .10000E-03    9.7956        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     28.459        27.228        .75108E-04   -1.4641    
  14  Prefactor     .10000E-03    9.2284        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     7.4668        13.902        .14678E-03   -1.5161    
  16  Prefactor     .10000E-03    9.1541        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2.3984        .14502E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.3614        .17259E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.7812        11.679        .20773E-03   -1.5319    
  20  norm          23.280        12.500        .83070E-04   -1.4743    
  21  Prefactor     .96103        16.506        .31247E-02   -1.5512    
  22  norm          .10000E-03    3.5525        .17755E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .46284        .22841        .48304E-03   -1.1417    
  24  Prefactor     1.2793        .13144        .18043E-03   -.83924    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.01892e-09
Minuit parameter uncertainties:
  1  19.3358
  2  3.02877
  3  4.214e-05
  4  4.40181e-06
  5  0.143623
  6  1.21687e-06
  7  0.000212015
  8  1.1602e-05
  9  2.1384e-07
  10  1.05753e-05
  11  0.235583
  12  1.02649e-05
  13  27.2399
  14  5.15801e-05
  15  13.9079
  16  4.93043e-06
  17  1.48382e-06
  18  1.5971e-07
  19  11.6858
  20  12.5013
  21  7.9677
  22  1.40994e-08
  23  0.228876
  24  0.131479
Done.

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

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  2.006e+00  2.356e-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.279e+00  1.315e-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:  4.628e-01  2.289e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 221.80
Ra Dec: 343.496 16.151
Photon Index (Fixed Index): 2.02 +/- 0.00
Photon Flux (Fixed Index): 7.32e-07 +/- 8.59e-08
Energy Flux (Fixed Index): 2.35e-04 +/- 2.76e-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) = 9309.25922738
delta logL = 0.479396010614

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9309.25888605
delta logL = 0.479737341344

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.0891       1.0000         .10000E-03   10000.    
     2 'Index1    '    2.1484       1.0000          .0000       10.000    
     3 'Normalizat'    .41925       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2974       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=   9309.259     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      206 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.0891        .24010        .33681E-02   -.13402E-03
   2  Index1        2.1484        .12893        .65705E-01   -.10911E-03
   3  Normalizat    .41925        .22343        .11406        .11722E-03
   4  Prefactor     1.2974        .13186        .32655E-01   -.27475E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.08915
  Index1     = 2.14837
  Normalizat = 0.419254
  Prefactor  = 1.29738
 **********
 **   18 **HESSE 
 **********

 FCN=   9309.259     FROM HESSE     STATUS=OK            29 CALLS      235 TOTAL
                     EDM=   .29E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.0891        .24649        .14889E-04   -1.5419    
   2  Index1        2.1484        .13363        .28858E-03   -.60690    
   3  Normalizat    .41925        .22258        .50556E-03   -1.1632    
   4  Prefactor     1.2974        .13196        .17928E-03   -.83385    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.93951e-11
Minuit parameter uncertainties:
  1  0.246488
  2  0.133653
  3  0.223047
  4  0.131996
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/572894': 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) = 9309.25888604
delta logL = 0.479737347105

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  2.089e+00  2.465e-01  1.000e-04  1.000e+04 ( 1.000e-09)
317       Index1:  2.148e+00  1.337e-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.297e+00  1.320e-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:  4.193e-01  2.230e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 221.88
Ra Dec: 343.496 16.151
Photon Index (Free Index): 2.15 +/- 0.13
Photon Flux (Free Index): 7.72e-07 +/- 9.57e-08
Energy Flux (Free Index): 2.21e-04 +/- 2.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/572894/cmap_HighResolution_252547201_252806401_4FGL_J2253.9+1609_daily_bin51.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.32e-07', energy_flux2='2.21e-04', photon_flux_error='8.59e-08', dlogl='4.80e-01', energy_flux='2.35e-04', photon_flux2='7.72e-07', job_status='DONE', time_completed='2021-09-29 02:01:42.577710', photon_index_error2='0.13', photon_index2='2.15', ts='221.80', fit_tolerance='1e-08', GAL='1.28', photon_index_error='0.00', energy_flux_error2='2.83e-05', EG='0.46', time_epoch_completed='1632906102.58', return_code='0', job_id='572894', GAL2='1.30', EG2='0.42', return_code2='0', energy_flux_error='2.76e-05', photon_flux_error2='9.57e-08', ts2='221.88', photon_index='2.02' WHERE bin_id='51' AND source_name='4FGL J2253.9+1609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:01:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0280>
Subject: Job 572894: <4FGL_J2253.9+1609_daily_bin51> in cluster <slac> Done

Job <4FGL_J2253.9+1609_daily_bin51> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 01:45:32 2021
Job was executed on host(s) <bullet0280>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 01:45:33 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:33 2021
Terminated at Wed Sep 29 02:01:43 2021
Results reported at Wed Sep 29 02:01:43 2021

Your job looked like:

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

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

