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


Performing analysis on: 4FGL_J2253.9+1609_daily_bin1629
RA = 343.496, Dec = 16.1506
tmin = 661564801, tmax = 661824001
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='447541', job_status='RUN', time_executed='2021-12-22 02:48:15.644410', time_epoch_executed='1640170095.64' WHERE source_name='4FGL J2253.9+1609' and cadence='daily' and bin_id='1629'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/447541

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/447541/ft1_4FGL_J2253.9+1609_daily_bin1629.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/447541/ft2_4FGL_J2253.9+1609_daily_bin1629.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/447541/ft1_4FGL_J2253.9+1609_daily_bin1629.fits outfile=/scratch/kocevski/447541/ft1_filteredMKT_4FGL_J2253.9+1609_daily_bin1629.fits ra=343.496 dec=16.1506 rad=12.0 tmin=661564801.0 tmax=661824001.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.56
user 3.35
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/447541/ft1_filtered_4FGL_J2253.9+1609_daily_bin1629.fits evtable="EVENTS" scfile=/scratch/kocevski/447541/ft2_4FGL_J2253.9+1609_daily_bin1629.fits sctable="SC_DATA" expcube=/scratch/kocevski/447541/ltcube_661564801_661824001_4FGL_J2253.9+1609_daily_bin1629.fits outfile=/scratch/kocevski/447541/expmap_661564801_661824001_4FGL_J2253.9+1609_daily_bin1629.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/447541/ltcube_661564801_661824001_4FGL_J2253.9+1609_daily_bin1629.fits
.....................!
real 190.84
user 185.53
sys 4.94

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/447541/ft1_filtered_4FGL_J2253.9+1609_daily_bin1629.fits scfile=/scratch/kocevski/447541/ft2_4FGL_J2253.9+1609_daily_bin1629.fits outfile=/scratch/kocevski/447541/cmap_661564801_661824001_4FGL_J2253.9+1609_daily_bin1629.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.55
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/447541/ft1_filtered_4FGL_J2253.9+1609_daily_bin1629.fits scfile=/scratch/kocevski/447541/ft2_4FGL_J2253.9+1609_daily_bin1629.fits outfile=/scratch/kocevski/447541/cmap_HighResolution_661564801_661824001_4FGL_J2253.9+1609_daily_bin1629.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.40
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/447541/ft1_filtered_4FGL_J2253.9+1609_daily_bin1629.fits', '/scratch/kocevski/447541/ft2_4FGL_J2253.9+1609_daily_bin1629.fits', expMap='/scratch/kocevski/447541/expmap_661564801_661824001_4FGL_J2253.9+1609_daily_bin1629.fits', expCube='/scratch/kocevski/447541/ltcube_661564801_661824001_4FGL_J2253.9+1609_daily_bin1629.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/447541/Model_4FGL_J2253.9+1609_daily_bin1629.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/447541/ft1_filtered_4FGL_J2253.9+1609_daily_bin1629.fits
Spacecraft file(s): /scratch/kocevski/447541/ft2_4FGL_J2253.9+1609_daily_bin1629.fits
Exposure map: /scratch/kocevski/447541/expmap_661564801_661824001_4FGL_J2253.9+1609_daily_bin1629.fits
Exposure cube: /scratch/kocevski/447541/ltcube_661564801_661824001_4FGL_J2253.9+1609_daily_bin1629.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/447541/Model_4FGL_J2253.9+1609_daily_bin1629.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 8026.69462156

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .18011E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    3.5890       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    16.854       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .19548       1.0000         .10000E-03   10000.    
     6 'Prefactor '    14.147       1.0000         .10000E-03   10000.    
     7 'norm      '    1.3002       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .85562       1.0000         .10000E-03   10000.    
    12 'Prefactor '    20.759       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10764E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.4624       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10235E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .61380       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    2.0392       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.3351       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .83833       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=   8026.606     FROM MIGRAD    STATUS=CONVERGED    578 CALLS     2391 TOTAL
                     EDM=   .61E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 12.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10008E-03    203.55       -.54402E-04** at limit **
   2  norm          3.5886        5.1011       -.70710E-06    .19700E-03
   3  Prefactor     .10000E-03    7.3154        .25124E-06** at limit **
   4  Prefactor     16.854        14.000       -.23948E-06    .45317E-04
   5  Prefactor     .19540        .18410       -.18066E-06   -.22079E-02
   6  Prefactor     14.148        8.3136        .98750E-07    .49814E-04
   7  norm          1.3001        1.1801        .34119E-07   -.81163E-04
   8  Prefactor     .10000E-03    76.623        .76436E-05** at limit **
   9  Prefactor     .10000E-03    5.2798       -.59837E-07** at limit **
  10  Prefactor     .10000E-03    19.606       -.24999E-06** at limit **
  11  Prefactor     .85558        .19029        .30393E-07   -.15585E-02
  12  Prefactor     20.759        13.601        .46073E-08    .38638E-04
  13  Prefactor     .10000E-03    127.17       -.18661E-04** at limit **
  14  Prefactor     .10000E-03    2.8927        .26025E-07** at limit **
  15  Prefactor     4.4653        14.515       -.10240E-05    .10120E-03
  16  Prefactor     .10000E-03    48.444       -.15846E-05** at limit **
  17  Prefactor     .10000E-03    3.2872       -.25975E-07** at limit **
  18  Prefactor     .65338        10.002        .78520E-05    .42010E-03
  19  Prefactor     .10000E-03    5.9255        .21762E-08** at limit **
  20  norm          2.0385        5.8987       -.28959E-05    .76557E-04
  21  Prefactor     .10000E-03    4.6489        .87554E-06** at limit **
  22  norm          .10000E-03    4.9724        .20776E-07** at limit **
  23  Normalizat    1.3352        .21485        .65309E-06    .35043E-03
  24  Prefactor     .83832        .11316       -.46260E-06    .21205E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100078
  norm       = 3.58858
  Prefactor  = 0.0001
  Prefactor  = 16.8542
  Prefactor  = 0.195395
  Prefactor  = 14.1479
  norm       = 1.30012
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.85558
  Prefactor  = 20.7591
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.46527
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.653376
  Prefactor  = 0.0001
  norm       = 2.03851
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.33523
  Prefactor  = 0.838323
 **********
 **   18 **HESSE 
 **********

 FCN=   8026.606     FROM HESSE     STATUS=OK           409 CALLS     2800 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10008E-03    20.359        .11796       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.5886        5.0970        .21331E-03   -1.5329    
   3  Prefactor     .10000E-03    7.3403        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     16.854        14.021        .97559E-04   -1.4887    
   5  Prefactor     .19540        .17582        .35142E-03   -1.5620    
   6  Prefactor     14.148        8.2993        .10649E-03   -1.4956    
   7  norm          1.3001        1.1888        .90277E-04   -1.5480    
   8  Prefactor     .10000E-03    78.595        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.2995        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    19.865        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .85558        .19026        .17422E-04   -1.5523    
  12  Prefactor     20.759        13.605        .87909E-04   -1.4796    
  13  Prefactor     .10000E-03    130.02        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.9031        .14877E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.4653        14.534        .19061E-03   -1.5285    
  16  Prefactor     .10000E-03    49.184        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    3.3146        .15856E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .65338        34.944        .45191E-02   -1.5546    
  19  Prefactor     .10000E-03    5.9335        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          2.0385        5.9629        .28960E-03   -1.5422    
  21  Prefactor     .10000E-03    4.7304        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    4.9765        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.3352        .25263        .31122E-03   -.82521    
  24  Prefactor     .83832        .13333        .20883E-03   -.98331    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.74895e-09
Minuit parameter uncertainties:
  1  0.00251717
  2  5.09763
  3  4.86545e-05
  4  14.0241
  5  0.175823
  6  8.29994
  7  1.18883
  8  0.000559638
  9  4.64369e-06
  10  2.80932e-05
  11  0.190263
  12  13.6072
  13  0.000142663
  14  2.19908e-06
  15  14.5456
  16  7.15887e-05
  17  4.04988e-07
  18  9.56159
  19  1.06739e-06
  20  5.9646
  21  7.09434e-05
  22  2.56648e-06
  23  0.252864
  24  0.133377
Done.

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

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  8.556e-01  1.903e-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.383e-01  1.334e-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.335e+00  2.529e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 54.93
Ra Dec: 343.496 16.151
Photon Index (Fixed Index): 2.02 +/- 0.00
Photon Flux (Fixed Index): 3.12e-07 +/- 6.94e-08
Energy Flux (Fixed Index): 1.00e-04 +/- 2.23e-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) = 8026.5157774
delta logL = 0.0903630127304

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8026.5066144
delta logL = 0.0995260077161

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .92085       1.0000         .10000E-03   10000.    
     2 'Index1    '    2.1387       1.0000          .0000       10.000    
     3 'Normalizat'    1.3028       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85001       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=   8026.507     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      208 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .92086        .21092        .39893E-02    .10151E-01
   2  Index1        2.1387        .22874        .10622       -.21726E-03
   3  Normalizat    1.3028        .20996        .71011E-01   -.23086E-03
   4  Prefactor     .85001        .11295        .44365E-01   -.41375E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.920865
  Index1     = 2.13875
  Normalizat = 1.30279
  Prefactor  = 0.850006
 **********
 **   18 **HESSE 
 **********

 FCN=   8026.507     FROM HESSE     STATUS=OK            25 CALLS      233 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .92086        .24090        .17660E-04   -1.5516    
   2  Index1        2.1387        .26818        .45920E-03   -.60925    
   3  Normalizat    1.3028        .25372        .31420E-03   -.83483    
   4  Prefactor     .85001        .13483        .20752E-03   -.97911    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.61473e-10
Minuit parameter uncertainties:
  1  0.2409
  2  0.26837
  3  0.253964
  4  0.134886
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/447541': 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) = 8026.5066144
delta logL = 0.0995260087029

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  9.209e-01  2.409e-01  1.000e-04  1.000e+04 ( 1.000e-09)
317       Index1:  2.139e+00  2.684e-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.500e-01  1.349e-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.303e+00  2.540e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 54.92
Ra Dec: 343.496 16.151
Photon Index (Free Index): 2.14 +/- 0.27
Photon Flux (Free Index): 3.40e-07 +/- 9.57e-08
Energy Flux (Free Index): 9.80e-05 +/- 2.18e-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/447541/cmap_HighResolution_661564801_661824001_4FGL_J2253.9+1609_daily_bin1629.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.12e-07', energy_flux2='9.80e-05', photon_flux_error='6.94e-08', dlogl='9.95e-02', energy_flux='1.00e-04', photon_flux2='3.40e-07', job_status='DONE', time_completed='2021-12-22 02:59:02.284589', photon_index_error2='0.27', photon_index2='2.14', ts='54.93', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', energy_flux_error2='2.18e-05', EG='1.34', time_epoch_completed='1640170742.28', return_code='0', job_id='447541', GAL2='0.85', EG2='1.30', return_code2='0', energy_flux_error='2.23e-05', photon_flux_error2='9.57e-08', ts2='54.92', photon_index='2.02' WHERE bin_id='1629' AND source_name='4FGL J2253.9+1609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec 22 02:59:02 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0261>
Subject: Job 447541: <4FGL_J2253.9+1609_daily_bin1629> in cluster <slac> Done

Job <4FGL_J2253.9+1609_daily_bin1629> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Wed Dec 22 02:45:24 2021
Job was executed on host(s) <bullet0261>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec 22 02:46:14 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec 22 02:46:14 2021
Terminated at Wed Dec 22 02:59:03 2021
Results reported at Wed Dec 22 02:59:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2253.9+1609_daily_bin1629 343.496 16.1506 661564801 661824001 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 :                                   649.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             329.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   768 sec.
    Turnaround time :                            819 sec.

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

