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


Performing analysis on: 4FGL_J2253.9+1609_daily_bin11
RA = 343.496, Dec = 16.1506
tmin = 242179201, tmax = 242438401
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='572831', job_status='RUN', time_executed='2021-09-29 01:48:33.852493', time_epoch_executed='1632905313.85' WHERE source_name='4FGL J2253.9+1609' and cadence='daily' and bin_id='11'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/572831

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/572831/ft1_4FGL_J2253.9+1609_daily_bin11.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/572831/ft2_4FGL_J2253.9+1609_daily_bin11.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/572831/ft1_4FGL_J2253.9+1609_daily_bin11.fits outfile=/scratch/kocevski/572831/ft1_filteredMKT_4FGL_J2253.9+1609_daily_bin11.fits ra=343.496 dec=16.1506 rad=12.0 tmin=242179201.0 tmax=242438401.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.49
user 1.24
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/572831/ft2_4FGL_J2253.9+1609_daily_bin11.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/572831/ft1_filteredMKT_4FGL_J2253.9+1609_daily_bin11.fits evtable="EVENTS" outfile="/scratch/kocevski/572831/ft1_filtered_4FGL_J2253.9+1609_daily_bin11.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/572831/ft1_filtered_4FGL_J2253.9+1609_daily_bin11.fits" evtable="EVENTS" scfile=/scratch/kocevski/572831/ft2_4FGL_J2253.9+1609_daily_bin11.fits sctable="SC_DATA" outfile=/scratch/kocevski/572831/ltcube_242179201_242438401_4FGL_J2253.9+1609_daily_bin11.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/572831/ft2_4FGL_J2253.9+1609_daily_bin11.fits
.....................!
real 12.87
user 12.52
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/572831/ft1_filtered_4FGL_J2253.9+1609_daily_bin11.fits evtable="EVENTS" scfile=/scratch/kocevski/572831/ft2_4FGL_J2253.9+1609_daily_bin11.fits sctable="SC_DATA" expcube=/scratch/kocevski/572831/ltcube_242179201_242438401_4FGL_J2253.9+1609_daily_bin11.fits outfile=/scratch/kocevski/572831/expmap_242179201_242438401_4FGL_J2253.9+1609_daily_bin11.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/572831/ltcube_242179201_242438401_4FGL_J2253.9+1609_daily_bin11.fits
.....................!
real 192.33
user 187.42
sys 4.46

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/572831/ft1_filtered_4FGL_J2253.9+1609_daily_bin11.fits scfile=/scratch/kocevski/572831/ft2_4FGL_J2253.9+1609_daily_bin11.fits outfile=/scratch/kocevski/572831/cmap_242179201_242438401_4FGL_J2253.9+1609_daily_bin11.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/572831/ft1_filtered_4FGL_J2253.9+1609_daily_bin11.fits scfile=/scratch/kocevski/572831/ft2_4FGL_J2253.9+1609_daily_bin11.fits outfile=/scratch/kocevski/572831/cmap_HighResolution_242179201_242438401_4FGL_J2253.9+1609_daily_bin11.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    3.2938       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .13060E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10263E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .72002       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.0456       1.0000         .10000E-03   10000.    
     7 'norm      '    3.1585       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .82523E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11624E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.4199       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10340E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    18.905       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.7497       1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.1407       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.701       1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.9167       1.0000         .10000E-03   10000.    
    20 'norm      '    32.291       1.0000         .10000E-03   10000.    
    21 'Prefactor '    22.560       1.0000         .10000E-03   10000.    
    22 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .60324       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0664       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=   9321.799     FROM MIGRAD    STATUS=CONVERGED    552 CALLS     2362 TOTAL
                     EDM=   .75E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 14.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.4351        .42218E-05** at limit **
   2  norm          3.2933        3.9088       -.75120E-06   -.76759E-03
   3  Prefactor     .10000E-03    7.2950        .88038E-05** at limit **
   4  Prefactor     .10001E-03    18.530        .24198E-05** at limit **
   5  Prefactor     .71941        .24468        .17345E-07   -.81447E-03
   6  Prefactor     1.0586        1.0141        .55715E-06   -.96289E-03
   7  norm          3.1607        1.9312       -.12267E-06   -.85533E-03
   8  Prefactor     .10000E-03    169.47       -.13537E-03** at limit **
   9  Prefactor     .10000E-03    9.9036        .17304E-05** at limit **
  10  Prefactor     .10000E-03    19.971       -.55366E-05** at limit **
  11  Prefactor     6.4199        .42049       -.89226E-07   -.29786E-02
  12  Prefactor     .10000E-03    7.9774       -.51027E-05** at limit **
  13  Prefactor     18.907        20.061       -.11739E-06   -.79778E-05
  14  Prefactor     4.7561        8.9396       -.33953E-06   -.13857E-04
  15  Prefactor     7.1423        7.4337        .13407E-06    .73642E-04
  16  Prefactor     .10000E-03    5.7908       -.32871E-06** at limit **
  17  Prefactor     .10000E-03    2.4041       -.13083E-06** at limit **
  18  Prefactor     10.703        9.0135       -.39717E-07   -.29796E-05
  19  Prefactor     7.9214        12.452        .14172E-05    .93675E-04
  20  norm          32.292        13.560       -.28679E-06   -.76958E-04
  21  Prefactor     22.566        10.902       -.35976E-07   -.62696E-04
  22  norm          .10000E-03    3.7671        .26478E-07** at limit **
  23  Normalizat    .60302        .24407       -.48702E-06   -.31580E-03
  24  Prefactor     1.0663        .13130       -.35780E-06   -.67694E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 3.29333
  Prefactor  = 0.000100005
  Prefactor  = 0.000100011
  Prefactor  = 0.719408
  Prefactor  = 1.05863
  norm       = 3.16068
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.41994
  Prefactor  = 0.0001
  Prefactor  = 18.907
  Prefactor  = 4.75609
  Prefactor  = 7.14228
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.7034
  Prefactor  = 7.92144
  norm       = 32.2924
  Prefactor  = 22.5656
  norm       = 0.0001
  Normalizat = 0.60302
  Prefactor  = 1.06627
 **********
 **   18 **HESSE 
 **********

 FCN=   9321.799     FROM HESSE     STATUS=OK           403 CALLS     2765 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.4536        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.2933        3.9028        .20156E-03   -1.5345    
   3  Prefactor     .10000E-03    64.437        .45666E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10001E-03    19.234        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .71941        .23925        .25288E-04   -1.5538    
   6  Prefactor     1.0586        12.044        .24340E-02   -1.5502    
   7  norm          3.1607        1.9320        .10190E-03   -1.5352    
   8  Prefactor     .10000E-03    164.87        .87656E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    9.9799        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    19.996        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     6.4199        .41430        .14683E-04   -1.5201    
  12  Prefactor     .10000E-03    8.0049        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     18.907        20.065        .92117E-04   -1.4838    
  14  Prefactor     4.7561        8.9237        .18462E-03   -1.5272    
  15  Prefactor     7.1423        7.4324        .75057E-03   -1.5173    
  16  Prefactor     .10000E-03    5.7942        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2.4230        .14614E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     10.703        9.0100        .12248E-03   -1.5054    
  19  Prefactor     7.9214        12.447        .14251E-03   -1.5145    
  20  norm          32.292        13.568        .70514E-04   -1.4571    
  21  Prefactor     22.566        10.909        .84331E-04   -1.4758    
  22  norm          .10000E-03    3.7679        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .60302        .25903        .49849E-03   -1.0786    
  24  Prefactor     1.0663        .14327        .21698E-03   -.90552    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.24273e-09
Minuit parameter uncertainties:
  1  8.81621e-05
  2  3.90309
  3  0.00109669
  4  0.000921561
  5  0.239248
  6  7.14301
  7  1.93206
  8  0.000439408
  9  0.000110143
  10  4.73671e-05
  11  0.414303
  12  4.34059e-05
  13  20.0725
  14  8.92621
  15  7.43331
  16  3.9201e-07
  17  1.7263e-05
  18  9.01116
  19  12.4512
  20  13.569
  21  10.9097
  22  1.2636e-06
  23  0.259552
  24  0.143317
Done.

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

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  6.420e+00  4.143e-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.066e+00  1.433e-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:  6.030e-01  2.596e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 945.90
Ra Dec: 343.496 16.151
Photon Index (Fixed Index): 2.02 +/- 0.00
Photon Flux (Fixed Index): 2.34e-06 +/- 1.51e-07
Energy Flux (Fixed Index): 7.52e-04 +/- 4.85e-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) = 9320.29276633
delta logL = 1.50661630729

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9320.28162057
delta logL = 1.51776207018

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.6574       1.0000         .10000E-03   10000.    
     2 'Index1    '    2.1549       1.0000          .0000       10.000    
     3 'Normalizat'    .49896       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1085       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=   9320.282     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      204 TOTAL
                     EDM=   .53E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.6573        .42858        .33468E-02   -.32003E-03
   2  Index1        2.1548        .77652E-01    .39036E-01   -.43055E-04
   3  Normalizat    .49922        .24865        .12210        .57408E-04
   4  Prefactor     1.1085        .13874        .37271E-01   -.66586E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.65729
  Index1     = 2.15477
  Normalizat = 0.499221
  Prefactor  = 1.10847
 **********
 **   18 **HESSE 
 **********

 FCN=   9320.282     FROM HESSE     STATUS=OK            31 CALLS      235 TOTAL
                     EDM=   .17E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.6573        .43414        .14789E-04   -1.5192    
   2  Index1        2.1548        .79070E-01    .17229E-03   -.60534    
   3  Normalizat    .49922        .25621        .54171E-03   -1.1245    
   4  Prefactor     1.1085        .14384        .21322E-03   -.89196    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.70337e-12
Minuit parameter uncertainties:
  1  0.434144
  2  0.0790752
  3  0.256817
  4  0.143889
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/572831': 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) = 9320.28161774
delta logL = 1.51776489762

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  6.657e+00  4.341e-01  1.000e-04  1.000e+04 ( 1.000e-09)
317       Index1:  2.155e+00  7.908e-02  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.108e+00  1.439e-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.992e-01  2.568e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 936.21
Ra Dec: 343.496 16.151
Photon Index (Free Index): 2.15 +/- 0.08
Photon Flux (Free Index): 2.46e-06 +/- 1.69e-07
Energy Flux (Free Index): 7.00e-04 +/- 5.18e-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/572831/cmap_HighResolution_242179201_242438401_4FGL_J2253.9+1609_daily_bin11.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.34e-06', energy_flux2='7.00e-04', photon_flux_error='1.51e-07', dlogl='1.52e+00', energy_flux='7.52e-04', photon_flux2='2.46e-06', job_status='DONE', time_completed='2021-09-29 02:00:41.803683', photon_index_error2='0.08', photon_index2='2.15', ts='945.90', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', energy_flux_error2='5.18e-05', EG='0.60', time_epoch_completed='1632906041.8', return_code='0', job_id='572831', GAL2='1.11', EG2='0.50', return_code2='0', energy_flux_error='4.85e-05', photon_flux_error2='1.69e-07', ts2='936.21', photon_index='2.02' WHERE bin_id='11' AND source_name='4FGL J2253.9+1609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:00:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0090>
Subject: Job 572831: <4FGL_J2253.9+1609_daily_bin11> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2253.9+1609_daily_bin11 343.496 16.1506 242179201 242438401 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 :                                   727.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             304.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   913 sec.
    Turnaround time :                            914 sec.

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

