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


Performing analysis on: 4FGL_J2253.9+1609_daily_bin1241
RA = 343.496, Dec = 16.1506
tmin = 560995201, tmax = 561254401
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='579819', job_status='RUN', time_executed='2021-09-29 02:07:24.124352', time_epoch_executed='1632906444.12' WHERE source_name='4FGL J2253.9+1609' and cadence='daily' and bin_id='1241'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/579819

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/579819/ft1_4FGL_J2253.9+1609_daily_bin1241.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/579819/ft2_4FGL_J2253.9+1609_daily_bin1241.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/579819/ft1_4FGL_J2253.9+1609_daily_bin1241.fits outfile=/scratch/kocevski/579819/ft1_filteredMKT_4FGL_J2253.9+1609_daily_bin1241.fits ra=343.496 dec=16.1506 rad=12.0 tmin=560995201.0 tmax=561254401.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.77
user 3.52
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/579819/ft1_filtered_4FGL_J2253.9+1609_daily_bin1241.fits evtable="EVENTS" scfile=/scratch/kocevski/579819/ft2_4FGL_J2253.9+1609_daily_bin1241.fits sctable="SC_DATA" expcube=/scratch/kocevski/579819/ltcube_560995201_561254401_4FGL_J2253.9+1609_daily_bin1241.fits outfile=/scratch/kocevski/579819/expmap_560995201_561254401_4FGL_J2253.9+1609_daily_bin1241.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/579819/ltcube_560995201_561254401_4FGL_J2253.9+1609_daily_bin1241.fits
.....................!
real 189.81
user 184.87
sys 4.59

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/579819/ft1_filtered_4FGL_J2253.9+1609_daily_bin1241.fits scfile=/scratch/kocevski/579819/ft2_4FGL_J2253.9+1609_daily_bin1241.fits outfile=/scratch/kocevski/579819/cmap_560995201_561254401_4FGL_J2253.9+1609_daily_bin1241.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.38
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .59437E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10150E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.2165       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .14098E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .97182       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.8831       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.5886       1.0000         .10000E-03   10000.    
    12 'Prefactor '    38.974       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.8237       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.538       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    30.450       1.0000         .10000E-03   10000.    
    20 'norm      '    5.4962       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.2967       1.0000         .10000E-03   10000.    
    22 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .51708       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0828       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=   9662.403     FROM MIGRAD    STATUS=CONVERGED    536 CALLS     3401 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.271        .17211E-05** at limit **
   2  norm          .61018E-01    7.7045        .36106E-05   -.89391E-03
   3  Prefactor     .10000E-03    34.331        .79235E-06** at limit **
   4  Prefactor     .10000E-03    6.9412       -.29351E-06** at limit **
   5  Prefactor     1.2165        .28183       -.19180E-07   -.16647E-02
   6  Prefactor     .10000E-03    4.3342       -.26103E-05** at limit **
   7  norm          .97333        1.6660        .82192E-07    .40283E-03
   8  Prefactor     .10000E-03    15.727        .15489E-05** at limit **
   9  Prefactor     7.8827        9.8254        .40383E-06    .10775E-03
  10  Prefactor     .10000E-03    9.0049       -.48333E-06** at limit **
  11  Prefactor     8.5886        .50134        .18670E-08   -.52286E-03
  12  Prefactor     38.973        20.810        .27204E-06    .34061E-04
  13  Prefactor     2.8246        30.538        .96469E-05    .26159E-03
  14  Prefactor     .10000E-03    6.9097       -.89433E-07** at limit **
  15  Prefactor     .10000E-03    10.761       -.13211E-05** at limit **
  16  Prefactor     .10000E-03    20.744       -.37014E-05** at limit **
  17  Prefactor     10.536        10.326        .25024E-07    .72943E-05
  18  Prefactor     .10000E-03    5.1629       -.13725E-06** at limit **
  19  Prefactor     30.448        26.096        .34944E-06    .20363E-04
  20  norm          5.4890        9.3525        .90039E-07    .20120E-03
  21  Prefactor     1.3014        12.228        .12632E-05    .10984E-03
  22  norm          .10000E-03    3.8688       -.39377E-07** at limit **
  23  Normalizat    .51733        .30087        .13376E-06    .21066E-04
  24  Prefactor     1.0827        .15564       -.54748E-06    .35343E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.061018
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.21649
  Prefactor  = 0.0001
  norm       = 0.973335
  Prefactor  = 0.0001
  Prefactor  = 7.88266
  Prefactor  = 0.0001
  Prefactor  = 8.5886
  Prefactor  = 38.9727
  Prefactor  = 2.82459
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.5362
  Prefactor  = 0.0001
  Prefactor  = 30.4484
  norm       = 5.48903
  Prefactor  = 1.30145
  norm       = 0.0001
  Normalizat = 0.517328
  Prefactor  = 1.08268
 **********
 **   18 **HESSE 
 **********

 FCN=   9662.403     FROM HESSE     STATUS=OK           411 CALLS     3812 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.253        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .61018E-01    5.6797        .63805E-01   -1.5659    
   3  Prefactor     .10000E-03    35.134        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.9496        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.2165        .27944        .23490E-04   -1.5487    
   6  Prefactor     .10000E-03    8.1529        .32813E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .97333        1.2283        .16090E-02   -1.5511    
   8  Prefactor     .10000E-03    15.721        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     7.8827        9.7838        .71406E-03   -1.5146    
  10  Prefactor     .10000E-03    9.0127        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     8.5886        .49940        .15798E-04   -1.5122    
  12  Prefactor     38.973        20.804        .64203E-04   -1.4459    
  13  Prefactor     2.8246        34.094        .12102E-02   -1.5372    
  14  Prefactor     .10000E-03    6.9791        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    10.851        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    20.699        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     10.536        10.301        .12343E-03   -1.5059    
  18  Prefactor     .10000E-03    5.1938        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     30.448        26.008        .72609E-04   -1.4604    
  20  norm          5.4890        8.7836        .17139E-03   -1.5239    
  21  Prefactor     1.3014        11.003        .38836E-03   -1.5480    
  22  norm          .10000E-03    3.8715        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .51733        .30436        .58963E-03   -1.1162    
  24  Prefactor     1.0827        .16149        .23230E-03   -.90022    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.74098e-09
Minuit parameter uncertainties:
  1  7.47896e-05
  2  1.17654
  3  1.4708e-05
  4  1.37438e-05
  5  0.279437
  6  4.55377e-05
  7  1.22837
  8  6.79476e-05
  9  9.78574
  10  1.64797e-05
  11  0.499403
  12  20.8077
  13  19.6404
  14  4.2303e-06
  15  4.39776e-05
  16  0.000187113
  17  10.3031
  18  2.04239e-05
  19  26.0174
  20  8.78564
  21  7.56994
  22  1.48352e-06
  23  0.305346
  24  0.161558
Done.

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

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  8.589e+00  4.994e-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.083e+00  1.616e-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:  5.173e-01  3.053e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1279.82
Ra Dec: 343.496 16.151
Photon Index (Fixed Index): 2.02 +/- 0.00
Photon Flux (Fixed Index): 3.13e-06 +/- 1.82e-07
Energy Flux (Fixed Index): 1.01e-03 +/- 5.85e-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) = 9644.42684942
delta logL = 17.976622719

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9644.4016122
delta logL = 18.0018599401

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.9671       1.0000         .10000E-03   10000.    
     2 'Index1    '    1.6506       1.0000          .0000       10.000    
     3 'Normalizat'    .88490       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94352       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=   9644.402     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      204 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.9671        .50534        .33202E-02   -.42655E-02
   2  Index1        1.6506        .57043E-01    .28290E-01   -.89755E-04
   3  Normalizat    .88488        .25489        .10566        .39791E-04
   4  Prefactor     .94351        .13676        .45557E-01    .74530E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.96709
  Index1     = 1.65065
  Normalizat = 0.884876
  Prefactor  = 0.943506
 **********
 **   18 **HESSE 
 **********

 FCN=   9644.402     FROM HESSE     STATUS=OK            29 CALLS      233 TOTAL
                     EDM=   .70E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.9671        .52851        .14671E-04   -1.5180    
   2  Index1        1.6506        .59753E-01    .12067E-03   -.73403    
   3  Normalizat    .88488        .29879        .46846E-03   -.96994    
   4  Prefactor     .94351        .16060        .24784E-03   -.94637    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.03145e-11
Minuit parameter uncertainties:
  1  0.52851
  2  0.059756
  3  0.299349
  4  0.16068
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/579819': 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) = 9644.40161214
delta logL = 18.0018600023

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  6.967e+00  5.285e-01  1.000e-04  1.000e+04 ( 1.000e-09)
317       Index1:  1.651e+00  5.976e-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:  9.435e-01  1.607e-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.849e-01  2.993e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1300.07
Ra Dec: 343.496 16.151
Photon Index (Free Index): 1.65 +/- 0.06
Photon Flux (Free Index): 2.58e-06 +/- 1.81e-07
Energy Flux (Free Index): 1.28e-03 +/- 9.69e-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/579819/cmap_HighResolution_560995201_561254401_4FGL_J2253.9+1609_daily_bin1241.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.13e-06', energy_flux2='1.28e-03', photon_flux_error='1.82e-07', dlogl='1.80e+01', energy_flux='1.01e-03', photon_flux2='2.58e-06', job_status='DONE', time_completed='2021-09-29 02:21:32.790185', photon_index_error2='0.06', photon_index2='1.65', ts='1279.82', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', energy_flux_error2='9.69e-05', EG='0.52', time_epoch_completed='1632907292.79', return_code='0', job_id='579819', GAL2='0.94', EG2='0.88', return_code2='0', energy_flux_error='5.85e-05', photon_flux_error2='1.81e-07', ts2='1300.07', photon_index='2.02' WHERE bin_id='1241' AND source_name='4FGL J2253.9+1609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:21:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0117>
Subject: Job 579819: <4FGL_J2253.9+1609_daily_bin1241> in cluster <slac> Done

Job <4FGL_J2253.9+1609_daily_bin1241> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 02:05:21 2021
Job was executed on host(s) <bullet0117>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 02:05:23 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 02:05:23 2021
Terminated at Wed Sep 29 02:21:33 2021
Results reported at Wed Sep 29 02:21:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2253.9+1609_daily_bin1241 343.496 16.1506 560995201 561254401 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 :                                   842.21 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             358.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   970 sec.
    Turnaround time :                            972 sec.

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

