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


Performing analysis on: 4FGL_J2253.9+1609_daily_bin944
RA = 343.496, Dec = 16.1506
tmin = 484012801, tmax = 484272001
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='578284', job_status='RUN', time_executed='2021-09-29 02:00:30.744516', time_epoch_executed='1632906030.74' WHERE source_name='4FGL J2253.9+1609' and cadence='daily' and bin_id='944'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/578284

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/578284/ft1_4FGL_J2253.9+1609_daily_bin944.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/578284/ft2_4FGL_J2253.9+1609_daily_bin944.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/578284/ft1_4FGL_J2253.9+1609_daily_bin944.fits outfile=/scratch/kocevski/578284/ft1_filteredMKT_4FGL_J2253.9+1609_daily_bin944.fits ra=343.496 dec=16.1506 rad=12.0 tmin=484012801.0 tmax=484272001.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.48
user 3.18
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/578284/ft1_filtered_4FGL_J2253.9+1609_daily_bin944.fits" evtable="EVENTS" scfile=/scratch/kocevski/578284/ft2_4FGL_J2253.9+1609_daily_bin944.fits sctable="SC_DATA" outfile=/scratch/kocevski/578284/ltcube_484012801_484272001_4FGL_J2253.9+1609_daily_bin944.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/578284/ft2_4FGL_J2253.9+1609_daily_bin944.fits
.....................!
real 12.41
user 12.06
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/578284/ft1_filtered_4FGL_J2253.9+1609_daily_bin944.fits evtable="EVENTS" scfile=/scratch/kocevski/578284/ft2_4FGL_J2253.9+1609_daily_bin944.fits sctable="SC_DATA" expcube=/scratch/kocevski/578284/ltcube_484012801_484272001_4FGL_J2253.9+1609_daily_bin944.fits outfile=/scratch/kocevski/578284/expmap_484012801_484272001_4FGL_J2253.9+1609_daily_bin944.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/578284/ltcube_484012801_484272001_4FGL_J2253.9+1609_daily_bin944.fits
.....................!
real 189.51
user 185.13
sys 4.02

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/578284/ft1_filtered_4FGL_J2253.9+1609_daily_bin944.fits scfile=/scratch/kocevski/578284/ft2_4FGL_J2253.9+1609_daily_bin944.fits outfile=/scratch/kocevski/578284/cmap_484012801_484272001_4FGL_J2253.9+1609_daily_bin944.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.40
sys 0.13

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.1735       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.5732       1.0000         .10000E-03   10000.    
     6 'Prefactor '    15.077       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10508E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    16.269       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.4024       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.2199       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .39716       1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.7253       1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.1565       1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.7358       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10635E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.3185       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .95407       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=   11273.73     FROM MIGRAD    STATUS=CONVERGED    541 CALLS     2323 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.568        .36542E-05** at limit **
   2  norm          1.1724        3.5065        .34325E-06   -.48326E-03
   3  Prefactor     .10000E-03    8.1610       -.40523E-05** at limit **
   4  Prefactor     .10000E-03    5.8231       -.16912E-05** at limit **
   5  Prefactor     2.5730        .31436        .71907E-08    .10148E-02
   6  Prefactor     15.077        8.8343        .53860E-07   -.14004E-03
   7  norm          .10000E-03    .58011       -.20121E-07** at limit **
   8  Prefactor     .10000E-03    55.536        .36631E-05** at limit **
   9  Prefactor     .10000E-03    3.1363        .47013E-07** at limit **
  10  Prefactor     16.270        13.767       -.66523E-06   -.56973E-04
  11  Prefactor     1.4024        .20276        .81017E-10   -.14689E-03
  12  Prefactor     7.2155        12.573        .23930E-05    .98327E-04
  13  Prefactor     .10000E-03    9.0512       -.14047E-05** at limit **
  14  Prefactor     .10000E-03    4.6631        .13461E-07** at limit **
  15  Prefactor     .29151        7.5904       -.66919E-06    .20799E-03
  16  Prefactor     6.7195        20.367       -.20085E-05   -.44781E-04
  17  Prefactor     4.1542        3.4680        .97179E-06   -.26676E-02
  18  Prefactor     8.7367        10.490       -.44035E-07   -.13731E-03
  19  Prefactor     .10000E-03    11.328       -.45821E-05** at limit **
  20  norm          .10000E-03    7.0108        .31396E-05** at limit **
  21  Prefactor     .10000E-03    5.3125        .83023E-06** at limit **
  22  norm          .10000E-03    9.9435        .39474E-05** at limit **
  23  Normalizat    1.3189        .20560       -.39805E-06    .46838E-04
  24  Prefactor     .95399        .11065       -.13683E-06    .55002E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.17239
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.57302
  Prefactor  = 15.0767
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.27
  Prefactor  = 1.40236
  Prefactor  = 7.21554
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.291512
  Prefactor  = 6.71949
  Prefactor  = 4.15418
  Prefactor  = 8.73665
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.31889
  Prefactor  = 0.953992
 **********
 **   18 **HESSE 
 **********

 FCN=   11273.73     FROM HESSE     STATUS=OK           403 CALLS     2726 TOTAL
                     EDM=   .79E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.631        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.1724        3.5475        .33791E-03   -1.5491    
   3  Prefactor     .10000E-03    8.2531        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.8675        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.5730        .31586        .19503E-04   -1.5387    
   6  Prefactor     15.077        8.8642        .51576E-03   -1.4931    
   7  norm          .10000E-03    .58661        .78955E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    56.759        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.1407        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     16.270        13.784        .99298E-04   -1.4901    
  11  Prefactor     1.4024        .20320        .17183E-04   -1.5471    
  12  Prefactor     7.2155        12.589        .14928E-03   -1.5171    
  13  Prefactor     .10000E-03    9.0665        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.7240        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .29151        11.238        .83832E-01   -1.5600    
  16  Prefactor     6.7195        20.396        .15473E-03   -1.5189    
  17  Prefactor     4.1542        5.8755        .98850E-03   -1.5300    
  18  Prefactor     8.7367        10.491        .13562E-03   -1.5117    
  19  Prefactor     .10000E-03    11.425        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    7.1115        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    5.4267        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    10.026        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.3189        .24526        .35572E-03   -.83004    
  24  Prefactor     .95399        .13066        .22660E-03   -.94279    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.89431e-09
Minuit parameter uncertainties:
  1  0.000130469
  2  3.54818
  3  0.000117466
  4  4.2866e-05
  5  0.315859
  6  8.865
  7  2.98274e-07
  8  0.000267249
  9  1.24741e-06
  10  13.7865
  11  0.2032
  12  12.5937
  13  4.46339e-05
  14  6.16482e-06
  15  3.62006
  16  20.4174
  17  5.87634
  18  10.4928
  19  0.000161556
  20  8.43719e-05
  21  1.39681e-05
  22  0.00013518
  23  0.245475
  24  0.130702
Done.

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

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  1.402e+00  2.032e-01  1.000e-04  1.000e+04 ( 1.000e-09)
317       Index1:  2.020e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
318        Scale:  2.324e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed
319    Expfactor:  2.085e+01  0.000e+00 -1.000e+00  1.000e+02 ( 1.000e-03) fixed
320       Index2:  5.143e-01  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
507    Prefactor:  9.540e-01  1.307e-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.319e+00  2.455e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 143.71
Ra Dec: 343.496 16.151
Photon Index (Fixed Index): 2.02 +/- 0.00
Photon Flux (Fixed Index): 5.11e-07 +/- 7.41e-08
Energy Flux (Fixed Index): 1.64e-04 +/- 2.38e-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) = 11273.6404355
delta logL = 0.0906127341441

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11273.6106417
delta logL = 0.120406468908

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.4624       1.0000         .10000E-03   10000.    
     2 'Index1    '    2.0999       1.0000          .0000       10.000    
     3 'Normalizat'    1.2920       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96373       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=   11273.61     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      203 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.4623        .21827        .39155E-02   -.56889E-02
   2  Index1        2.0999        .14957        .82249E-01   -.40877E-03
   3  Normalizat    1.2920        .20138        .80982E-01   -.12330E-03
   4  Prefactor     .96373        .10993        .45812E-01    .44080E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.46234
  Index1     = 2.09987
  Normalizat = 1.29198
  Prefactor  = 0.963734
 **********
 **   18 **HESSE 
 **********

 FCN=   11273.61     FROM HESSE     STATUS=OK            29 CALLS      232 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.4623        .23711        .17315E-04   -1.5466    
   2  Index1        2.0999        .16435        .35986E-03   -.61876    
   3  Normalizat    1.2920        .24024        .35848E-03   -.83806    
   4  Prefactor     .96373        .13041        .22554E-03   -.93948    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.36186e-10
Minuit parameter uncertainties:
  1  0.237111
  2  0.164391
  3  0.240449
  4  0.130456
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/578284': 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) = 11273.6106417
delta logL = 0.120406532003

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  1.462e+00  2.371e-01  1.000e-04  1.000e+04 ( 1.000e-09)
317       Index1:  2.100e+00  1.644e-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:  9.637e-01  1.305e-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.292e+00  2.404e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 143.11
Ra Dec: 343.496 16.151
Photon Index (Free Index): 2.10 +/- 0.16
Photon Flux (Free Index): 5.37e-07 +/- 9.20e-08
Energy Flux (Free Index): 1.60e-04 +/- 2.41e-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/578284/cmap_HighResolution_484012801_484272001_4FGL_J2253.9+1609_daily_bin944.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.11e-07', energy_flux2='1.60e-04', photon_flux_error='7.41e-08', dlogl='1.20e-01', energy_flux='1.64e-04', photon_flux2='5.37e-07', job_status='DONE', time_completed='2021-09-29 02:13:24.894047', photon_index_error2='0.16', photon_index2='2.10', ts='143.71', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', energy_flux_error2='2.41e-05', EG='1.32', time_epoch_completed='1632906804.89', return_code='0', job_id='578284', GAL2='0.96', EG2='1.29', return_code2='0', energy_flux_error='2.38e-05', photon_flux_error2='9.20e-08', ts2='143.11', photon_index='2.02' WHERE bin_id='944' AND source_name='4FGL J2253.9+1609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:13:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0079>
Subject: Job 578284: <4FGL_J2253.9+1609_daily_bin944> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2253.9+1609_daily_bin944 343.496 16.1506 484012801 484272001 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 :                                   772.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             353.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   784 sec.
    Turnaround time :                            785 sec.

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

