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


Performing analysis on: 4FGL_J2253.9+1609_daily_bin70
RA = 343.496, Dec = 16.1506
tmin = 257472001, tmax = 257731201
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='572923', job_status='RUN', time_executed='2021-09-29 01:48:53.265061', time_epoch_executed='1632905333.27' WHERE source_name='4FGL J2253.9+1609' and cadence='daily' and bin_id='70'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/572923

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/572923/ft1_4FGL_J2253.9+1609_daily_bin70.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/572923/ft2_4FGL_J2253.9+1609_daily_bin70.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/572923/ft1_4FGL_J2253.9+1609_daily_bin70.fits outfile=/scratch/kocevski/572923/ft1_filteredMKT_4FGL_J2253.9+1609_daily_bin70.fits ra=343.496 dec=16.1506 rad=12.0 tmin=257472001.0 tmax=257731201.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 2.05
user 1.80
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/572923/ft1_filtered_4FGL_J2253.9+1609_daily_bin70.fits evtable="EVENTS" scfile=/scratch/kocevski/572923/ft2_4FGL_J2253.9+1609_daily_bin70.fits sctable="SC_DATA" expcube=/scratch/kocevski/572923/ltcube_257472001_257731201_4FGL_J2253.9+1609_daily_bin70.fits outfile=/scratch/kocevski/572923/expmap_257472001_257731201_4FGL_J2253.9+1609_daily_bin70.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/572923/ltcube_257472001_257731201_4FGL_J2253.9+1609_daily_bin70.fits
.....................!
real 196.00
user 189.23
sys 6.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/572923/ft1_filtered_4FGL_J2253.9+1609_daily_bin70.fits scfile=/scratch/kocevski/572923/ft2_4FGL_J2253.9+1609_daily_bin70.fits outfile=/scratch/kocevski/572923/cmap_257472001_257731201_4FGL_J2253.9+1609_daily_bin70.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.38
sys 0.15

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

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

This is gtbin version HEAD
real 0.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.9586       1.0000         .10000E-03   10000.    
     2 'norm      '    .14431       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.2137       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.8256       1.0000         .10000E-03   10000.    
     7 'norm      '    1.2050       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .55484       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    12.886       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.2495       1.0000         .10000E-03   10000.    
    15 'Prefactor '    13.221       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10148E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .38844E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.8990       1.0000         .10000E-03   10000.    
    20 'norm      '    11.002       1.0000         .10000E-03   10000.    
    21 'Prefactor '    13.508       1.0000         .10000E-03   10000.    
    22 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .95557       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .98208       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=   9215.595     FROM MIGRAD    STATUS=CONVERGED    537 CALLS     2387 TOTAL
                     EDM=   .89E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.9587        18.925        .67831E-06   -.17507E-03
   2  norm          .13374        2.6748       -.47933E-06    .23641E-03
   3  Prefactor     .10000E-03    20.785        .21373E-05** at limit **
   4  Prefactor     .10000E-03    12.709       -.45389E-05** at limit **
   5  Prefactor     1.2137        .23656       -.68385E-08   -.39002E-03
   6  Prefactor     3.8251        4.3855        .56368E-06   -.17494E-02
   7  norm          1.2053        1.3236       -.26735E-08   -.46702E-03
   8  Prefactor     .10000E-03    7.1711       -.39624E-05** at limit **
   9  Prefactor     .10000E-03    10.282        .42332E-05** at limit **
  10  Prefactor     .10000E-03    6.5898        .33771E-05** at limit **
  11  Prefactor     .55484        .14819        .41584E-09   -.32055E-03
  12  Prefactor     .10000E-03    5.7787       -.58916E-06** at limit **
  13  Prefactor     12.885        21.985       -.11561E-05   -.30310E-04
  14  Prefactor     5.2476        8.0922       -.13952E-06   -.83618E-04
  15  Prefactor     13.222        15.144       -.37239E-07   -.48743E-05
  16  Prefactor     .10000E-03    20.938        .80305E-06** at limit **
  17  Prefactor     .10000E-03    3.2362       -.82471E-07** at limit **
  18  Prefactor     .10007E-03    6.3438       -.29412E-06** at limit **
  19  Prefactor     3.8966        10.954        .13683E-05   -.66128E-03
  20  norm          11.019        11.281       -.64023E-06    .63926E-05
  21  Prefactor     13.505        8.9251        .36206E-06    .65622E-04
  22  norm          .10000E-03    4.4425       -.14298E-08** at limit **
  23  Normalizat    .95563        .19624        .83159E-07    .62059E-04
  24  Prefactor     .98210        .10714       -.34635E-07    .93207E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.95866
  norm       = 0.133737
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.21365
  Prefactor  = 3.82513
  norm       = 1.20531
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.554836
  Prefactor  = 0.0001
  Prefactor  = 12.8846
  Prefactor  = 5.24765
  Prefactor  = 13.2215
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100074
  Prefactor  = 3.89664
  norm       = 11.019
  Prefactor  = 13.5052
  norm       = 0.0001
  Normalizat = 0.955629
  Prefactor  = 0.982103
 **********
 **   18 **HESSE 
 **********

 FCN=   9215.595     FROM HESSE     STATUS=OK           405 CALLS     2792 TOTAL
                     EDM=   .70E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.9587        19.322        .76042E-03   -1.5180    
   2  norm          .13374        16.619        .30150E-02   -1.5635    
   3  Prefactor     .10000E-03    21.674        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    13.056        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.2137        .23663        .19469E-04   -1.5488    
   6  Prefactor     3.8251        5.4848        .10318E-02   -1.5317    
   7  norm          1.2053        1.2940        .11239E-03   -1.5488    
   8  Prefactor     .10000E-03    7.2566        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    10.481        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.6580        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .55484        .14773        .17862E-04   -1.5559    
  12  Prefactor     .10000E-03    5.8306        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     12.885        22.010        .11158E-03   -1.4990    
  14  Prefactor     5.2476        8.0685        .17544E-03   -1.5250    
  15  Prefactor     13.222        15.135        .11016E-03   -1.4981    
  16  Prefactor     .10000E-03    21.382        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    3.2858        .16851E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10007E-03    51.034        .43668E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.8966        13.074        .10217E-02   -1.5313    
  20  norm          11.019        10.696        .12079E-03   -1.5044    
  21  Prefactor     13.505        8.9057        .10898E-03   -1.4973    
  22  norm          .10000E-03    4.4512        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .95563        .23040        .34160E-03   -.94532    
  24  Prefactor     .98210        .12674        .19348E-03   -.93328    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.97934e-09
Minuit parameter uncertainties:
  1  19.3391
  2  2.98141
  3  4.94059e-05
  4  0.000109896
  5  0.236628
  6  5.48555
  7  1.29403
  8  0.000105804
  9  0.000103019
  10  8.49018e-05
  11  0.147728
  12  1.5956e-05
  13  22.0242
  14  8.07015
  15  15.139
  16  2.06204e-05
  17  3.27658e-06
  18  0.0038824
  19  13.0833
  20  10.6974
  21  8.90653
  22  8.81231e-07
  23  0.230639
  24  0.126775
Done.

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

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  5.548e-01  1.477e-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.821e-01  1.268e-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.556e-01  2.306e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 33.92
Ra Dec: 343.496 16.151
Photon Index (Fixed Index): 2.02 +/- 0.00
Photon Flux (Fixed Index): 2.02e-07 +/- 5.39e-08
Energy Flux (Fixed Index): 6.50e-05 +/- 1.73e-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) = 9214.36026601
delta logL = 1.23491364184

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9214.29147404
delta logL = 1.30370561321

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .67929       1.0000         .10000E-03   10000.    
     2 'Index1    '    2.5479       1.0000          .0000       10.000    
     3 'Normalizat'    .85704       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0217       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=   9214.291     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      215 TOTAL
                     EDM=   .59E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .67929        .17518        .40638E-02   -.21472E-02
   2  Index1        2.5479        .34266        .16182       -.10368E-03
   3  Normalizat    .85704        .19294        .80839E-01   -.40436E-04
   4  Prefactor     1.0217        .10974        .41974E-01   -.14716E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.679288
  Index1     = 2.54788
  Normalizat = 0.857037
  Prefactor  = 1.02172
 **********
 **   18 **HESSE 
 **********

 FCN=   9214.291     FROM HESSE     STATUS=OK            33 CALLS      248 TOTAL
                     EDM=   .63E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .67929        .16598        .18014E-04   -1.5543    
   2  Index1        2.5479        .34489        .67790E-02   -.51258    
   3  Normalizat    .85704        .22896        .35788E-03   -.97987    
   4  Prefactor     1.0217        .12908        .19004E-03   -.92009    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.30476e-11
Minuit parameter uncertainties:
  1  0.165975
  2  0.345252
  3  0.229223
  4  0.129118
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/572923': 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) = 9214.29147403
delta logL = 1.30370561555

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  6.793e-01  1.660e-01  1.000e-04  1.000e+04 ( 1.000e-09)
317       Index1:  2.548e+00  3.453e-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.022e+00  1.291e-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.570e-01  2.292e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 36.78
Ra Dec: 343.496 16.151
Photon Index (Free Index): 2.55 +/- 0.35
Photon Flux (Free Index): 2.73e-07 +/- 7.51e-08
Energy Flux (Free Index): 5.97e-05 +/- 1.47e-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/572923/cmap_HighResolution_257472001_257731201_4FGL_J2253.9+1609_daily_bin70.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.02e-07', energy_flux2='5.97e-05', photon_flux_error='5.39e-08', dlogl='1.30e+00', energy_flux='6.50e-05', photon_flux2='2.73e-07', job_status='DONE', time_completed='2021-09-29 02:00:29.091297', photon_index_error2='0.35', photon_index2='2.55', ts='33.92', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', energy_flux_error2='1.47e-05', EG='0.96', time_epoch_completed='1632906029.09', return_code='0', job_id='572923', GAL2='1.02', EG2='0.86', return_code2='0', energy_flux_error='1.73e-05', photon_flux_error2='7.51e-08', ts2='36.78', photon_index='2.02' WHERE bin_id='70' AND source_name='4FGL J2253.9+1609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:00:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0215>
Subject: Job 572923: <4FGL_J2253.9+1609_daily_bin70> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2253.9+1609_daily_bin70 343.496 16.1506 257472001 257731201 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 :                                   695.29 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             286.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   893 sec.
    Turnaround time :                            895 sec.

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

