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


Performing analysis on: 4FGL_J2253.9+1609_daily_bin191
RA = 343.496, Dec = 16.1506
tmin = 288835201, tmax = 289094401
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='573116', job_status='RUN', time_executed='2021-09-29 01:46:02.079899', time_epoch_executed='1632905162.08' WHERE source_name='4FGL J2253.9+1609' and cadence='daily' and bin_id='191'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/573116

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/573116/ft1_4FGL_J2253.9+1609_daily_bin191.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/573116/ft2_4FGL_J2253.9+1609_daily_bin191.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/573116/ft1_4FGL_J2253.9+1609_daily_bin191.fits outfile=/scratch/kocevski/573116/ft1_filteredMKT_4FGL_J2253.9+1609_daily_bin191.fits ra=343.496 dec=16.1506 rad=12.0 tmin=288835201.0 tmax=289094401.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.64
user 3.42
sys 0.21

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/573116/ft1_filtered_4FGL_J2253.9+1609_daily_bin191.fits" evtable="EVENTS" scfile=/scratch/kocevski/573116/ft2_4FGL_J2253.9+1609_daily_bin191.fits sctable="SC_DATA" outfile=/scratch/kocevski/573116/ltcube_288835201_289094401_4FGL_J2253.9+1609_daily_bin191.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/573116/ft2_4FGL_J2253.9+1609_daily_bin191.fits
.....................!
real 11.93
user 11.60
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/573116/ft1_filtered_4FGL_J2253.9+1609_daily_bin191.fits evtable="EVENTS" scfile=/scratch/kocevski/573116/ft2_4FGL_J2253.9+1609_daily_bin191.fits sctable="SC_DATA" expcube=/scratch/kocevski/573116/ltcube_288835201_289094401_4FGL_J2253.9+1609_daily_bin191.fits outfile=/scratch/kocevski/573116/expmap_288835201_289094401_4FGL_J2253.9+1609_daily_bin191.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/573116/ltcube_288835201_289094401_4FGL_J2253.9+1609_daily_bin191.fits
.....................!
real 190.68
user 185.92
sys 4.38

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/573116/ft1_filtered_4FGL_J2253.9+1609_daily_bin191.fits scfile=/scratch/kocevski/573116/ft2_4FGL_J2253.9+1609_daily_bin191.fits outfile=/scratch/kocevski/573116/cmap_288835201_289094401_4FGL_J2253.9+1609_daily_bin191.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.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/573116/ft1_filtered_4FGL_J2253.9+1609_daily_bin191.fits scfile=/scratch/kocevski/573116/ft2_4FGL_J2253.9+1609_daily_bin191.fits outfile=/scratch/kocevski/573116/cmap_HighResolution_288835201_289094401_4FGL_J2253.9+1609_daily_bin191.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=343.496 yref=16.1506 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.249       1.0000         .10000E-03   10000.    
     2 'norm      '    3.7965       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .93256E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .19546       1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.395       1.0000         .10000E-03   10000.    
     7 'norm      '    .53101       1.0000         .10000E-03   10000.    
     8 'Prefactor '    35.091       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.6633       1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.9089       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10122E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.0155       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    13.038       1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.563       1.0000         .10000E-03   10000.    
    20 'norm      '    2.7066       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10145E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .87992       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1324       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10534.40     FROM MIGRAD    STATUS=CONVERGED    559 CALLS     2376 TOTAL
                     EDM=   .95E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.258        19.946         .0000        .42591E-04
   2  norm          3.7978        3.8061         .0000        .27185E-03
   3  Prefactor     .10000E-03    3.5283         .0000    ** at limit **
   4  Prefactor     .10000E-03    7.0149         .0000    ** at limit **
   5  Prefactor     .19543        .14925         .0000        .43682E-02
   6  Prefactor     11.394        7.9197         .0000        .14446E-03
   7  norm          .53103        1.2646         .0000        .22343E-02
   8  Prefactor     35.089        31.900         .0000        .68859E-03
   9  Prefactor     .10000E-03    17.906         .0000    ** at limit **
  10  Prefactor     .10000E-03    9.7288         .0000    ** at limit **
  11  Prefactor     8.6634        .46842         .0000        .70552E-04
  12  Prefactor     8.9076        11.262         .0000        .13007E-03
  13  Prefactor     .10001E-03    81.900         .0000    ** at limit **
  14  Prefactor     5.0134        9.7019         .0000        .38615E-02
  15  Prefactor     .10000E-03    5.7709         .0000    ** at limit **
  16  Prefactor     .10000E-03    6.1214         .0000    ** at limit **
  17  Prefactor     .10000E-03    4.3286         .0000    ** at limit **
  18  Prefactor     13.038        11.020         .0000       -.34812E-03
  19  Prefactor     11.553        18.050         .0000       -.11386E-03
  20  norm          2.7056        8.1262         .0000        .79426E-02
  21  Prefactor     .10000E-03    2.8243         .0000    ** at limit **
  22  norm          .10000E-03    24.459         .0000    ** at limit **
  23  Normalizat    .88001        .24820         .0000        .54007E-04
  24  Prefactor     1.1324        .13489         .0000        .20348E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.2581
  norm       = 3.79779
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.19543
  Prefactor  = 11.3945
  norm       = 0.531035
  Prefactor  = 35.0888
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 8.66341
  Prefactor  = 8.90755
  Prefactor  = 0.000100005
  Prefactor  = 5.01337
  Prefactor  = 0.000100001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 13.0376
  Prefactor  = 11.553
  norm       = 2.70558
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.880005
  Prefactor  = 1.13239
 **********
 **   18 **HESSE 
 **********

 FCN=   10534.40     FROM HESSE     STATUS=OK           401 CALLS     2777 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.258        19.875        .96436E-04   -1.4877    
   2  norm          3.7978        3.7943        .19418E-03   -1.5318    
   3  Prefactor     .10000E-03    3.5325        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    51.782        .51492E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .19543        .14045        .33211E-03   -1.5620    
   6  Prefactor     11.394        7.9159        .11868E-03   -1.5033    
   7  norm          .53103        1.2613        .17251E-03   -1.5562    
   8  Prefactor     35.089        31.926        .67650E-04   -1.4523    
   9  Prefactor     .10000E-03    18.176        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    9.7340        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     8.6634        .47031        .15134E-04   -1.5119    
  12  Prefactor     8.9076        11.253        .13429E-03   -1.5111    
  13  Prefactor     .10001E-03    82.747        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.0134        9.6947        .89780E-03   -1.5260    
  15  Prefactor     .10000E-03    5.7813        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    6.1289        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.4055        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     13.038        10.961        .11093E-03   -1.4986    
  19  Prefactor     11.553        18.040        .11781E-03   -1.5028    
  20  norm          2.7056        8.0651        .12379E-02   -1.5379    
  21  Prefactor     .10000E-03    2.8489        .16832E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    25.006        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .88001        .28485        .47409E-03   -.97166    
  24  Prefactor     1.1324        .15871        .23967E-03   -.88438    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.32123e-09
Minuit parameter uncertainties:
  1  19.8828
  2  3.79454
  3  0.000139359
  4  0.000495851
  5  0.140449
  6  7.91664
  7  1.26139
  8  31.9419
  9  1.96351e-05
  10  0.000280678
  11  0.470309
  12  11.2559
  13  0.001305
  14  9.69769
  15  0.00018522
  16  0.000213323
  17  1.73204e-05
  18  10.963
  19  18.0482
  20  8.06832
  21  1.11935e-06
  22  0.000122455
  23  0.285342
  24  0.158772
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
507    Prefactor:  1.132e+00  1.588e-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:  8.800e-01  2.853e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1374.09
Ra Dec: 343.496 16.151
Photon Index (Fixed Index): 2.02 +/- 0.00
Photon Flux (Fixed Index): 3.16e-06 +/- 1.71e-07
Energy Flux (Fixed Index): 1.01e-03 +/- 5.51e-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) = 10531.913
delta logL = 2.48960418277

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10531.90858
delta logL = 2.49402419132

Fit tolerance = 1e-08

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

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

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.9772        .48032        .33443E-02   -.12430E-03
   2  Index1        2.1635        .64714E-01    .24926E-01   -.60169E-04
   3  Normalizat    .73534        .24965        .11529        .54610E-04
   4  Prefactor     1.1909        .13911        .52994E-01   -.23449E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.97725
  Index1     = 2.16348
  Normalizat = 0.735341
  Prefactor  = 1.19091
 **********
 **   18 **HESSE 
 **********

 FCN=   10531.91     FROM HESSE     STATUS=OK            31 CALLS      241 TOTAL
                     EDM=   .54E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.9772        .48603        .15226E-04   -1.5109    
   2  Index1        2.1635        .65665E-01    .15315E-03   -.60323    
   3  Normalizat    .73534        .28651        .51142E-03   -1.0251    
   4  Prefactor     1.1909        .16040        .23427E-03   -.86611    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.42797e-14
Minuit parameter uncertainties:
  1  0.486031
  2  0.065668
  3  0.287101
  4  0.160469
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/573116': 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) = 10531.9085799
delta logL = 2.49402421767

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
507    Prefactor:  1.191e+00  1.605e-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:  7.353e-01  2.871e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1390.17
Ra Dec: 343.496 16.151
Photon Index (Free Index): 2.16 +/- 0.07
Photon Flux (Free Index): 3.32e-06 +/- 1.89e-07
Energy Flux (Free Index): 9.39e-04 +/- 5.82e-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/573116/cmap_HighResolution_288835201_289094401_4FGL_J2253.9+1609_daily_bin191.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.16e-06', energy_flux2='9.39e-04', photon_flux_error='1.71e-07', dlogl='2.49e+00', energy_flux='1.01e-03', photon_flux2='3.32e-06', job_status='DONE', time_completed='2021-09-29 01:59:45.669837', photon_index_error2='0.07', photon_index2='2.16', ts='1374.09', fit_tolerance='1e-08', GAL='1.13', photon_index_error='0.00', energy_flux_error2='5.82e-05', EG='0.88', time_epoch_completed='1632905985.67', return_code='0', job_id='573116', GAL2='1.19', EG2='0.74', return_code2='0', energy_flux_error='5.51e-05', photon_flux_error2='1.89e-07', ts2='1390.17', photon_index='2.02' WHERE bin_id='191' AND source_name='4FGL J2253.9+1609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 01:59:45 PDT 2021


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

Job <4FGL_J2253.9+1609_daily_bin191> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 01:45:49 2021
Job was executed on host(s) <bullet0252>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 01:45:50 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 01:45:50 2021
Terminated at Wed Sep 29 01:59:46 2021
Results reported at Wed Sep 29 01:59:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2253.9+1609_daily_bin191 343.496 16.1506 288835201 289094401 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 :                                   820.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             327.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   835 sec.
    Turnaround time :                            837 sec.

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

