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


Performing analysis on: 4FGL_J2253.9+1609_daily_bin1246
RA = 343.496, Dec = 16.1506
tmin = 562291201, tmax = 562550401
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='579826', job_status='RUN', time_executed='2021-09-29 02:08:39.929837', time_epoch_executed='1632906519.93' WHERE source_name='4FGL J2253.9+1609' and cadence='daily' and bin_id='1246'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/579826

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/579826/ft1_4FGL_J2253.9+1609_daily_bin1246.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/579826/ft2_4FGL_J2253.9+1609_daily_bin1246.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/579826/ft1_4FGL_J2253.9+1609_daily_bin1246.fits outfile=/scratch/kocevski/579826/ft1_filteredMKT_4FGL_J2253.9+1609_daily_bin1246.fits ra=343.496 dec=16.1506 rad=12.0 tmin=562291201.0 tmax=562550401.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.55
user 3.31
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/579826/ft1_filtered_4FGL_J2253.9+1609_daily_bin1246.fits evtable="EVENTS" scfile=/scratch/kocevski/579826/ft2_4FGL_J2253.9+1609_daily_bin1246.fits sctable="SC_DATA" expcube=/scratch/kocevski/579826/ltcube_562291201_562550401_4FGL_J2253.9+1609_daily_bin1246.fits outfile=/scratch/kocevski/579826/expmap_562291201_562550401_4FGL_J2253.9+1609_daily_bin1246.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/579826/ltcube_562291201_562550401_4FGL_J2253.9+1609_daily_bin1246.fits
.....................!
real 191.55
user 186.51
sys 4.72

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/579826/ft1_filtered_4FGL_J2253.9+1609_daily_bin1246.fits scfile=/scratch/kocevski/579826/ft2_4FGL_J2253.9+1609_daily_bin1246.fits outfile=/scratch/kocevski/579826/cmap_562291201_562550401_4FGL_J2253.9+1609_daily_bin1246.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/579826/ft1_filtered_4FGL_J2253.9+1609_daily_bin1246.fits scfile=/scratch/kocevski/579826/ft2_4FGL_J2253.9+1609_daily_bin1246.fits outfile=/scratch/kocevski/579826/cmap_HighResolution_562291201_562550401_4FGL_J2253.9+1609_daily_bin1246.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.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .62919       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.280       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.1604       1.0000         .10000E-03   10000.    
     6 'Prefactor '    21.971       1.0000         .10000E-03   10000.    
     7 'norm      '    2.9609       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .37892       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10108E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    119.27       1.0000         .10000E-03   10000.    
    14 'Prefactor '    17.578       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.3372       1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.5989       1.0000         .10000E-03   10000.    
    19 'Prefactor '    27.022       1.0000         .10000E-03   10000.    
    20 'norm      '    .10624E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.0225       1.0000         .10000E-03   10000.    
    22 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.5250       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .79946       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=   7290.667     FROM MIGRAD    STATUS=CONVERGED    513 CALLS     2706 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.482        .42569E-05** at limit **
   2  norm          .61158        3.2930       -.28969E-05    .16124E-03
   3  Prefactor     .10000E-03    11.494       -.29606E-05** at limit **
   4  Prefactor     10.291        15.397        .60328E-05    .22953E-03
   5  Prefactor     1.1606        .38366       -.32461E-07    .14895E-02
   6  Prefactor     21.968        16.389       -.21253E-05    .23038E-04
   7  norm          2.9608        1.9831       -.46913E-06    .46876E-04
   8  Prefactor     .10000E-03    12.987       -.12497E-05** at limit **
   9  Prefactor     .10000E-03    6.4092       -.15835E-05** at limit **
  10  Prefactor     .10000E-03    9.0487        .40256E-05** at limit **
  11  Prefactor     .37896        .18612       -.90421E-07    .37872E-03
  12  Prefactor     .10000E-03    6.5073       -.14274E-05** at limit **
  13  Prefactor     119.17        79.845       -.89838E-04    .12654E-04
  14  Prefactor     17.578        9.2260        .14905E-06    .86720E-04
  15  Prefactor     .10000E-03    6.0346        .17013E-05** at limit **
  16  Prefactor     .10000E-03    10.162       -.70098E-06** at limit **
  17  Prefactor     1.3425        6.8683       -.18272E-05   -.97986E-03
  18  Prefactor     9.5982        14.426        .44660E-06    .17556E-04
  19  Prefactor     27.014        21.041       -.82589E-05    .97316E-04
  20  norm          .10000E-03    12.790       -.13922E-05** at limit **
  21  Prefactor     6.0279        10.570        .11668E-05   -.89980E-05
  22  norm          .10000E-03    4.4242        .10135E-06** at limit **
  23  Normalizat    1.5244        .25638        .69309E-05    .25277E-03
  24  Prefactor     .79972        .12680        .17325E-05    .64656E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  norm       = 0.611584
  Prefactor  = 0.0001
  Prefactor  = 10.2907
  Prefactor  = 1.16056
  Prefactor  = 21.9679
  norm       = 2.96081
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.378962
  Prefactor  = 0.0001
  Prefactor  = 119.167
  Prefactor  = 17.5779
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.34249
  Prefactor  = 9.59824
  Prefactor  = 27.0137
  norm       = 0.0001
  Prefactor  = 6.02793
  norm       = 0.0001
  Normalizat = 1.52443
  Prefactor  = 0.799719
 **********
 **   18 **HESSE 
 **********

 FCN=   7290.667     FROM HESSE     STATUS=OK           399 CALLS     3105 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.560        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .61158        13.721        .29183E-02   -1.5552    
   3  Prefactor     .10000E-03    11.515        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     10.291        15.458        .12497E-03   -1.5066    
   5  Prefactor     1.1606        .38356        .28377E-04   -1.5493    
   6  Prefactor     21.968        16.445        .85453E-04   -1.4770    
   7  norm          2.9608        1.9825        .94859E-04   -1.5364    
   8  Prefactor     .10000E-03    12.991        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.4366        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    9.0546        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .37896        .18375        .24014E-04   -1.5585    
  12  Prefactor     .10000E-03    6.5576        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     119.17        79.874        .18424E-03   -1.3520    
  14  Prefactor     17.578        9.2209        .95528E-04   -1.4869    
  15  Prefactor     .10000E-03    6.0428        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    10.191        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.3425        6.6586        .37928E-03   -1.5476    
  18  Prefactor     9.5982        14.412        .12935E-03   -1.5088    
  19  Prefactor     27.014        20.797        .77066E-04   -1.4668    
  20  norm          .10000E-03    12.881        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     6.0279        10.588        .16361E-03   -1.5217    
  22  norm          .10000E-03    4.4272        .17540E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.5244        .30606        .31974E-03   -.77094    
  24  Prefactor     .79972        .15057        .22507E-03   -.99739    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.56435e-09
Minuit parameter uncertainties:
  1  0.000187787
  2  5.79459
  3  2.08102e-05
  4  15.4636
  5  0.383558
  6  16.4487
  7  1.98252
  8  1.25958e-05
  9  4.81136e-05
  10  1.5777e-06
  11  0.183755
  12  6.94707e-05
  13  79.9459
  14  9.22169
  15  5.28942e-05
  16  6.76256e-05
  17  5.98051
  18  14.4169
  19  20.8028
  20  1.68093e-05
  21  10.5911
  22  4.17499e-06
  23  0.306436
  24  0.150646
Done.

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

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  3.790e-01  1.838e-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:  7.997e-01  1.506e-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:  1.524e+00  3.064e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.71
Ra Dec: 343.496 16.151
Photon Index (Fixed Index): 2.02 +/- 0.00
Photon Flux (Fixed Index): 1.38e-07 +/- 6.70e-08
Energy Flux (Fixed Index): 4.44e-05 +/- 2.15e-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) = 7288.49638283
delta logL = 2.17028262901

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7288.49595457
delta logL = 2.17071089388

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .61551       1.0000         .10000E-03   10000.    
     2 'Index1    '    3.0472       1.0000          .0000       10.000    
     3 'Normalizat'    1.3571       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85755       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7288.496     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      278 TOTAL
                     EDM=   .75E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .61555        .22282        .22162E-04    .67371E-02
   2  Index1        3.0473        .55115        .86818E-02    .18692E-03
   3  Normalizat    1.3571        .29209        .33421E-03    .42996E-03
   4  Prefactor     .85755        .15194        .21790E-03    .45606E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.615545
  Index1     = 3.04725
  Normalizat = 1.35709
  Prefactor  = 0.857547
 **********
 **   18 **HESSE 
 **********

 FCN=   7288.496     FROM HESSE     STATUS=OK            23 CALLS      301 TOTAL
                     EDM=   .77E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .61555        .22182        .88647E-06   -1.5551    
   2  Index1        3.0473        .54853        .34727E-03   -.40123    
   3  Normalizat    1.3571        .29257        .66841E-04   -.81878    
   4  Prefactor     .85755        .15211        .43580E-04   -.97641    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.67297e-10
Minuit parameter uncertainties:
  1  0.221818
  2  0.549836
  3  0.292932
  4  0.15218
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/579826': 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) = 7288.49595454
delta logL = 2.17071092542

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  6.155e-01  2.218e-01  1.000e-04  1.000e+04 ( 1.000e-09)
317       Index1:  3.047e+00  5.498e-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:  8.575e-01  1.522e-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:  1.357e+00  2.929e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.51
Ra Dec: 343.496 16.151
Photon Index (Free Index): 3.05 +/- 0.55
Photon Flux (Free Index): 2.93e-07 +/- 1.14e-07
Energy Flux (Free Index): 5.23e-05 +/- 1.86e-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/579826/cmap_HighResolution_562291201_562550401_4FGL_J2253.9+1609_daily_bin1246.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.38e-07', energy_flux2='5.23e-05', photon_flux_error='6.70e-08', dlogl='2.17e+00', energy_flux='4.44e-05', photon_flux2='2.93e-07', job_status='DONE', time_completed='2021-09-29 02:19:15.342255', photon_index_error2='0.55', photon_index2='3.05', ts='7.71', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', energy_flux_error2='1.86e-05', EG='1.52', time_epoch_completed='1632907155.34', return_code='0', job_id='579826', GAL2='0.86', EG2='1.36', return_code2='0', energy_flux_error='2.15e-05', photon_flux_error2='1.14e-07', ts2='12.51', photon_index='2.02' WHERE bin_id='1246' AND source_name='4FGL J2253.9+1609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:19:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0302>
Subject: Job 579826: <4FGL_J2253.9+1609_daily_bin1246> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2253.9+1609_daily_bin1246 343.496 16.1506 562291201 562550401 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 :                                   633.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             314.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   832 sec.
    Turnaround time :                            834 sec.

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

