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


Performing analysis on: 4FGL_J2253.9+1609_daily_bin1627
RA = 343.496, Dec = 16.1506
tmin = 661046401, tmax = 661305601
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='251030', job_status='RUN', time_executed='2021-12-16 00:39:55.378365', time_epoch_executed='1639643995.38' WHERE source_name='4FGL J2253.9+1609' and cadence='daily' and bin_id='1627'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/251030

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/251030/ft1_4FGL_J2253.9+1609_daily_bin1627.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/251030/ft2_4FGL_J2253.9+1609_daily_bin1627.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/251030/ft1_4FGL_J2253.9+1609_daily_bin1627.fits outfile=/scratch/kocevski/251030/ft1_filteredMKT_4FGL_J2253.9+1609_daily_bin1627.fits ra=343.496 dec=16.1506 rad=12.0 tmin=661046401.0 tmax=661305601.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.33
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/251030/ft1_filtered_4FGL_J2253.9+1609_daily_bin1627.fits" evtable="EVENTS" scfile=/scratch/kocevski/251030/ft2_4FGL_J2253.9+1609_daily_bin1627.fits sctable="SC_DATA" outfile=/scratch/kocevski/251030/ltcube_661046401_661305601_4FGL_J2253.9+1609_daily_bin1627.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/251030/ft2_4FGL_J2253.9+1609_daily_bin1627.fits
.....................!
real 12.26
user 11.88
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/251030/ft1_filtered_4FGL_J2253.9+1609_daily_bin1627.fits evtable="EVENTS" scfile=/scratch/kocevski/251030/ft2_4FGL_J2253.9+1609_daily_bin1627.fits sctable="SC_DATA" expcube=/scratch/kocevski/251030/ltcube_661046401_661305601_4FGL_J2253.9+1609_daily_bin1627.fits outfile=/scratch/kocevski/251030/expmap_661046401_661305601_4FGL_J2253.9+1609_daily_bin1627.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/251030/ltcube_661046401_661305601_4FGL_J2253.9+1609_daily_bin1627.fits
.....................!
real 190.74
user 185.00
sys 5.37

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/251030/ft1_filtered_4FGL_J2253.9+1609_daily_bin1627.fits scfile=/scratch/kocevski/251030/ft2_4FGL_J2253.9+1609_daily_bin1627.fits outfile=/scratch/kocevski/251030/cmap_661046401_661305601_4FGL_J2253.9+1609_daily_bin1627.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.35
sys 0.18

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.5045       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.8638       1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.2062       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .17629       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.9908       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11119E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.473       1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.9317       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .76077       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .34422E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.9338       1.0000         .10000E-03   10000.    
    20 'norm      '    3.3259       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2133       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .88534       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=   7443.147     FROM MIGRAD    STATUS=CONVERGED    565 CALLS     2357 TOTAL
                     EDM=   .72E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.491       -.20864E-05** at limit **
   2  norm          1.5050        4.0439        .58539E-05    .33409E-04
   3  Prefactor     1.8558        13.906        .89746E-08   -.63029E-03
   4  Prefactor     7.2171        11.687       -.92787E-06   -.63824E-04
   5  Prefactor     .17652        .20581       -.85694E-07   -.76716E-03
   6  Prefactor     .10000E-03    2.7521        .53961E-07** at limit **
   7  norm          1.9907        1.4905        .84644E-08   -.21963E-04
   8  Prefactor     .10000E-03    38.377        .79645E-06** at limit **
   9  Prefactor     11.475        10.447       -.53640E-06   -.17034E-04
  10  Prefactor     7.8509        34.324       -.62230E-05   -.63109E-05
  11  Prefactor     .76088        .20912        .38700E-07   -.11618E-05
  12  Prefactor     .10000E-03    2.8521       -.12692E-08** at limit **
  13  Prefactor     .10000E-03    15.443        .10877E-05** at limit **
  14  Prefactor     .10004E-03    5.7798       -.94750E-07** at limit **
  15  Prefactor     .10000E-03    5.5072       -.35930E-07** at limit **
  16  Prefactor     .10000E-03    11.833        .16443E-05** at limit **
  17  Prefactor     .10000E-03    2.4410        .90717E-07** at limit **
  18  Prefactor     .10000E-03    3.3534       -.12886E-06** at limit **
  19  Prefactor     9.9443        18.421       -.74823E-05   -.51226E-04
  20  norm          3.3254        5.9229        .25752E-06   -.13020E-02
  21  Prefactor     .10000E-03    1.8033       -.85549E-07** at limit **
  22  norm          .10000E-03    3.4562        .73441E-07** at limit **
  23  Normalizat    1.2128        .21598        .14061E-05   -.92220E-04
  24  Prefactor     .88560        .11542       -.51046E-06    .59808E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.505
  Prefactor  = 1.85584
  Prefactor  = 7.21707
  Prefactor  = 0.176522
  Prefactor  = 0.0001
  norm       = 1.99071
  Prefactor  = 0.0001
  Prefactor  = 11.475
  Prefactor  = 7.85095
  Prefactor  = 0.760884
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100038
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.9443
  norm       = 3.32545
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.21284
  Prefactor  = 0.8856
 **********
 **   18 **HESSE 
 **********

 FCN=   7443.147     FROM HESSE     STATUS=OK           401 CALLS     2758 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.523        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.5050        4.0358        .27504E-03   -1.5463    
   3  Prefactor     1.8558        31.931        .15259E-02   -1.5436    
   4  Prefactor     7.2171        11.731        .14942E-03   -1.5171    
   5  Prefactor     .17652        .19664        .36805E-03   -1.5624    
   6  Prefactor     .10000E-03    2.7599        .13976E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.9907        1.4929        .87611E-04   -1.5426    
   8  Prefactor     .10000E-03    38.533        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     11.475        10.452        .11827E-03   -1.5030    
  10  Prefactor     7.8509        34.390        .14237E-03   -1.5148    
  11  Prefactor     .76088        .20863        .18194E-04   -1.5534    
  12  Prefactor     .10000E-03    2.8546        .14229E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    15.459        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10004E-03    34.689        .39070E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.5288        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    11.864        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2.4508        .13159E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.3565        .15427E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     9.9443        18.462        .12714E-03   -1.5077    
  20  norm          3.3254        7.0127        .11098E-02   -1.5343    
  21  Prefactor     .10000E-03    1.8055        .11310E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    3.4573        .15665E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.2128        .25908        .30861E-03   -.86207    
  24  Prefactor     .88560        .13701        .19834E-03   -.96646    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.37624e-08
Minuit parameter uncertainties:
  1  1.94789e-05
  2  4.03654
  3  15.4051
  4  11.7346
  5  0.196645
  6  1.47509e-06
  7  1.4929
  8  4.1239e-05
  9  10.4536
  10  32.8946
  11  0.20863
  12  1.16971e-07
  13  5.61773e-06
  14  0.00228508
  15  1.75358e-06
  16  8.79218e-06
  17  1.90327e-05
  18  1.0296e-06
  19  18.473
  20  7.01439
  21  3.50155e-07
  22  2.116e-06
  23  0.259355
  24  0.137061
Done.

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

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  7.609e-01  2.086e-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.856e-01  1.371e-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.213e+00  2.594e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 32.30
Ra Dec: 343.496 16.151
Photon Index (Fixed Index): 2.02 +/- 0.00
Photon Flux (Fixed Index): 2.78e-07 +/- 7.61e-08
Energy Flux (Fixed Index): 8.91e-05 +/- 2.44e-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) = 7443.02032484
delta logL = 0.126841053407

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7442.98453972
delta logL = 0.162626178325

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .83021       1.0000         .10000E-03   10000.    
     2 'Index1    '    2.1777       1.0000          .0000       10.000    
     3 'Normalizat'    1.1754       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89953       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=   7442.985     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      210 TOTAL
                     EDM=   .23E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .83024        .20979        .41504E-02    .45547E-03
   2  Index1        2.1777        .24701        .11452       -.78752E-04
   3  Normalizat    1.1754        .20924        .70627E-01    .14743E-04
   4  Prefactor     .89952        .11548        .44999E-01    .67909E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.830241
  Index1     = 2.1777
  Normalizat = 1.17538
  Prefactor  = 0.899524
 **********
 **   18 **HESSE 
 **********

 FCN=   7442.985     FROM HESSE     STATUS=OK            33 CALLS      243 TOTAL
                     EDM=   .74E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .83024        .22940        .18397E-04   -1.5526    
   2  Index1        2.1777        .27839        .49400E-02   -.59978    
   3  Normalizat    1.1754        .25304        .31251E-03   -.87367    
   4  Prefactor     .89952        .13832        .19694E-03   -.96158    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.41486e-13
Minuit parameter uncertainties:
  1  0.229398
  2  0.278598
  3  0.253299
  4  0.138377
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/251030': 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) = 7442.9845397
delta logL = 0.162626189775

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  8.302e-01  2.294e-01  1.000e-04  1.000e+04 ( 1.000e-09)
317       Index1:  2.178e+00  2.786e-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.995e-01  1.384e-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.175e+00  2.533e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 32.70
Ra Dec: 343.496 16.151
Photon Index (Free Index): 2.18 +/- 0.28
Photon Flux (Free Index): 3.08e-07 +/- 9.10e-08
Energy Flux (Free Index): 8.60e-05 +/- 2.22e-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/251030/cmap_HighResolution_661046401_661305601_4FGL_J2253.9+1609_daily_bin1627.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.78e-07', energy_flux2='8.60e-05', photon_flux_error='7.61e-08', dlogl='1.63e-01', energy_flux='8.91e-05', photon_flux2='3.08e-07', job_status='DONE', time_completed='2021-12-16 00:50:08.329560', photon_index_error2='0.28', photon_index2='2.18', ts='32.30', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', energy_flux_error2='2.22e-05', EG='1.21', time_epoch_completed='1639644608.33', return_code='0', job_id='251030', GAL2='0.90', EG2='1.18', return_code2='0', energy_flux_error='2.44e-05', photon_flux_error2='9.10e-08', ts2='32.70', photon_index='2.02' WHERE bin_id='1627' AND source_name='4FGL J2253.9+1609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Dec 16 00:50:08 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0252>
Subject: Job 251030: <4FGL_J2253.9+1609_daily_bin1627> in cluster <slac> Done

Job <4FGL_J2253.9+1609_daily_bin1627> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Thu Dec 16 00:35:49 2021
Job was executed on host(s) <bullet0252>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Dec 16 00:35:51 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Dec 16 00:35:51 2021
Terminated at Thu Dec 16 00:50:09 2021
Results reported at Thu Dec 16 00:50:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2253.9+1609_daily_bin1627 343.496 16.1506 661046401 661305601 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 :                                   615.20 sec.
    Max Memory :                                 1204 MB
    Average Memory :                             261.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   857 sec.
    Turnaround time :                            860 sec.

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

