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


Performing analysis on: 4FGL_J2253.9+1609_daily_bin1350
RA = 343.496, Dec = 16.1506
tmin = 589248001, tmax = 589507201
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='579979', job_status='RUN', time_executed='2021-09-29 02:05:46.585173', time_epoch_executed='1632906346.59' WHERE source_name='4FGL J2253.9+1609' and cadence='daily' and bin_id='1350'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/579979

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/579979/ft1_4FGL_J2253.9+1609_daily_bin1350.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/579979/ft2_4FGL_J2253.9+1609_daily_bin1350.fits


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

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

Done.
real 3.12
user 2.92
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/579979/ft1_filtered_4FGL_J2253.9+1609_daily_bin1350.fits evtable="EVENTS" scfile=/scratch/kocevski/579979/ft2_4FGL_J2253.9+1609_daily_bin1350.fits sctable="SC_DATA" expcube=/scratch/kocevski/579979/ltcube_589248001_589507201_4FGL_J2253.9+1609_daily_bin1350.fits outfile=/scratch/kocevski/579979/expmap_589248001_589507201_4FGL_J2253.9+1609_daily_bin1350.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/579979/ltcube_589248001_589507201_4FGL_J2253.9+1609_daily_bin1350.fits
.....................!
real 190.43
user 185.78
sys 4.32

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/579979/ft1_filtered_4FGL_J2253.9+1609_daily_bin1350.fits scfile=/scratch/kocevski/579979/ft2_4FGL_J2253.9+1609_daily_bin1350.fits outfile=/scratch/kocevski/579979/cmap_589248001_589507201_4FGL_J2253.9+1609_daily_bin1350.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/579979/ft1_filtered_4FGL_J2253.9+1609_daily_bin1350.fits scfile=/scratch/kocevski/579979/ft2_4FGL_J2253.9+1609_daily_bin1350.fits outfile=/scratch/kocevski/579979/cmap_HighResolution_589248001_589507201_4FGL_J2253.9+1609_daily_bin1350.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.53
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .26270E-02   1.0000         .10000E-03   10000.    
     2 'norm      '    8.4969       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.6645       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.3758       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.6745       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10289E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    49.712       1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.5730       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.0111       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    127.41       1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.5595       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    21.513       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .88973       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    20.414       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .90927       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .80221       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=   4779.177     FROM MIGRAD    STATUS=CONVERGED    527 CALLS     2723 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10031E-03    28.143        .77089E-05** at limit **
   2  norm          8.4969        8.5418        .28555E-06   -.80627E-05
   3  Prefactor     .10000E-03    17.233        .66005E-07** at limit **
   4  Prefactor     9.6529        13.447        .54366E-06   -.12250E-03
   5  Prefactor     1.3759        .45865        .11781E-07   -.69535E-03
   6  Prefactor     .10000E-03    12.684        .14415E-06** at limit **
   7  norm          2.6746        1.9065       -.88648E-08   -.86137E-04
   8  Prefactor     .10000E-03    48.757       -.15916E-05** at limit **
   9  Prefactor     49.711        19.595        .11587E-06   -.15528E-03
  10  Prefactor     8.5299        38.927       -.34124E-05   -.14446E-03
  11  Prefactor     1.0112        .28572        .44048E-07    .12556E-02
  12  Prefactor     .10000E-03    4.1160        .10684E-06** at limit **
  13  Prefactor     127.40        113.99       -.55480E-08   -.16580E-04
  14  Prefactor     8.5621        9.1458        .25956E-05    .98383E-03
  15  Prefactor     .10000E-03    10.696       -.27132E-06** at limit **
  16  Prefactor     21.512        22.519        .28589E-06   -.62639E-04
  17  Prefactor     .88817        5.1190        .75788E-06   -.11493E-03
  18  Prefactor     .10000E-03    13.943       -.14896E-07** at limit **
  19  Prefactor     .10000E-03    8.6601        .24343E-07** at limit **
  20  norm          .10000E-03    11.205        .12983E-06** at limit **
  21  Prefactor     .10000E-03    10.597        .69725E-07** at limit **
  22  norm          20.415        17.541        .20078E-09   -.29321E-04
  23  Normalizat    .90937        .29847       -.49488E-05   -.36186E-03
  24  Prefactor     .80219        .15104        .13792E-05   -.50658E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100313
  norm       = 8.49686
  Prefactor  = 0.0001
  Prefactor  = 9.6529
  Prefactor  = 1.37591
  Prefactor  = 0.0001
  norm       = 2.6746
  Prefactor  = 0.000100001
  Prefactor  = 49.7112
  Prefactor  = 8.52987
  Prefactor  = 1.01115
  Prefactor  = 0.0001
  Prefactor  = 127.404
  Prefactor  = 8.56207
  Prefactor  = 0.0001
  Prefactor  = 21.512
  Prefactor  = 0.888167
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 20.415
  Normalizat = 0.909369
  Prefactor  = 0.80219
 **********
 **   18 **HESSE 
 **********

 FCN=   4779.177     FROM HESSE     STATUS=OK           399 CALLS     3122 TOTAL
                     EDM=   .78E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10031E-03    52.063        .46086E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          8.4969        8.5517        .13752E-03   -1.5125    
   3  Prefactor     .10000E-03    17.257        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     9.6529        13.412        .12890E-03   -1.5086    
   5  Prefactor     1.3759        .45774        .25835E-04   -1.5473    
   6  Prefactor     .10000E-03    12.731        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.6746        1.9051        .76753E-04   -1.5381    
   8  Prefactor     .10000E-03    48.929        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     49.711        19.617        .56877E-04   -1.4297    
  10  Prefactor     8.5299        40.444        .13691E-03   -1.5124    
  11  Prefactor     1.0112        .28696        .17957E-04   -1.5507    
  12  Prefactor     .10000E-03    4.1285        .13699E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     127.40        114.00        .17833E-03   -1.3446    
  14  Prefactor     8.5621        9.7094        .68508E-03   -1.5123    
  15  Prefactor     .10000E-03    10.711        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     21.512        22.568        .86358E-04   -1.4780    
  17  Prefactor     .88817        15.637        .28258E-02   -1.5519    
  18  Prefactor     .10000E-03    13.960        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    8.6665        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    11.262        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    10.676        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          20.415        17.544        .88649E-04   -1.4804    
  23  Normalizat    .90937        .34336        .36525E-03   -.96132    
  24  Prefactor     .80219        .17491        .20485E-03   -.99648    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.84907e-09
Minuit parameter uncertainties:
  1  0.00807466
  2  8.55289
  3  6.79586e-06
  4  13.4163
  5  0.457744
  6  3.81132e-05
  7  1.90509
  8  0.000521939
  9  19.6192
  10  37.1881
  11  0.286965
  12  1.12717e-05
  13  114.196
  14  9.71116
  15  4.61994e-05
  16  22.5764
  17  7.45516
  18  7.9963e-06
  19  3.57774e-06
  20  3.38343e-05
  21  7.95211e-06
  22  17.5486
  23  0.344188
  24  0.175035
Done.

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

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  1.011e+00  2.870e-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:  8.022e-01  1.750e-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.094e-01  3.442e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 29.00
Ra Dec: 343.496 16.151
Photon Index (Fixed Index): 2.02 +/- 0.00
Photon Flux (Fixed Index): 3.69e-07 +/- 1.05e-07
Energy Flux (Fixed Index): 1.18e-04 +/- 3.36e-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) = 4779.06012078
delta logL = 0.116612593768

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4779.04514068
delta logL = 0.131592692384

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .92437       1.0000         .10000E-03   10000.    
     2 'Index1    '    1.8724       1.0000          .0000       10.000    
     3 'Normalizat'    .94154       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78934       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=   4779.045     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      202 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .92433        .28120        .39149E-02    .16819E-03
   2  Index1        1.8725        .24693        .88035E-01   -.60822E-04
   3  Normalizat    .94146        .27690        .81303E-01    .14905E-04
   4  Prefactor     .78927        .14643        .43578E-01    .59776E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.924332
  Index1     = 1.8725
  Normalizat = 0.941461
  Prefactor  = 0.78927
 **********
 **   18 **HESSE 
 **********

 FCN=   4779.045     FROM HESSE     STATUS=OK            31 CALLS      233 TOTAL
                     EDM=   .37E-15    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .92433        .31381        .17337E-04   -1.5516    
   2  Index1        1.8725        .28147        .38308E-03   -.67577    
   3  Normalizat    .94146        .32778        .35992E-03   -.95018    
   4  Prefactor     .78927        .17310        .20632E-03   -1.0013    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.74521e-16
Minuit parameter uncertainties:
  1  0.313809
  2  0.281716
  3  0.328482
  4  0.17322
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/579979': 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) = 4779.04513946
delta logL = 0.131593910612

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  9.243e-01  3.138e-01  1.000e-04  1.000e+04 ( 1.000e-09)
317       Index1:  1.872e+00  2.817e-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:  7.893e-01  1.732e-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.415e-01  3.285e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 29.24
Ra Dec: 343.496 16.151
Photon Index (Free Index): 1.87 +/- 0.28
Photon Flux (Free Index): 3.36e-07 +/- 1.13e-07
Energy Flux (Free Index): 1.26e-04 +/- 3.76e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/579979/cmap_HighResolution_589248001_589507201_4FGL_J2253.9+1609_daily_bin1350.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.69e-07', energy_flux2='1.26e-04', photon_flux_error='1.05e-07', dlogl='1.32e-01', energy_flux='1.18e-04', photon_flux2='3.36e-07', job_status='DONE', time_completed='2021-09-29 02:14:26.327437', photon_index_error2='0.28', photon_index2='1.87', ts='29.00', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', energy_flux_error2='3.76e-05', EG='0.91', time_epoch_completed='1632906866.33', return_code='0', job_id='579979', GAL2='0.79', EG2='0.94', return_code2='0', energy_flux_error='3.36e-05', photon_flux_error2='1.13e-07', ts2='29.24', photon_index='2.02' WHERE bin_id='1350' AND source_name='4FGL J2253.9+1609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:14:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0291>
Subject: Job 579979: <4FGL_J2253.9+1609_daily_bin1350> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2253.9+1609_daily_bin1350 343.496 16.1506 589248001 589507201 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 :                                   513.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             340.94 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   533 sec.
    Turnaround time :                            538 sec.

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

