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


Performing analysis on: 4FGL_J2253.9+1609_daily_bin1550
RA = 343.496, Dec = 16.1506
tmin = 641088001, tmax = 641347201
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='581453', job_status='RUN', time_executed='2021-09-29 02:14:35.293820', time_epoch_executed='1632906875.29' WHERE source_name='4FGL J2253.9+1609' and cadence='daily' and bin_id='1550'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/581453

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/581453/ft1_4FGL_J2253.9+1609_daily_bin1550.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/581453/ft2_4FGL_J2253.9+1609_daily_bin1550.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/581453/ft1_4FGL_J2253.9+1609_daily_bin1550.fits outfile=/scratch/kocevski/581453/ft1_filteredMKT_4FGL_J2253.9+1609_daily_bin1550.fits ra=343.496 dec=16.1506 rad=12.0 tmin=641088001.0 tmax=641347201.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.06
user 2.81
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/581453/ft1_filtered_4FGL_J2253.9+1609_daily_bin1550.fits evtable="EVENTS" scfile=/scratch/kocevski/581453/ft2_4FGL_J2253.9+1609_daily_bin1550.fits sctable="SC_DATA" expcube=/scratch/kocevski/581453/ltcube_641088001_641347201_4FGL_J2253.9+1609_daily_bin1550.fits outfile=/scratch/kocevski/581453/expmap_641088001_641347201_4FGL_J2253.9+1609_daily_bin1550.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/581453/ltcube_641088001_641347201_4FGL_J2253.9+1609_daily_bin1550.fits
.....................!
real 191.45
user 187.37
sys 3.77

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

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    35.269       1.0000         .10000E-03   10000.    
     2 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10137E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .23730       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    4.2152       1.0000         .10000E-03   10000.    
     8 'Prefactor '    12.807       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10129E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .55322       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .75828       1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.1928       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10166E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.0963       1.0000         .10000E-03   10000.    
    16 'Prefactor '    30.872       1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.274       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .27079E-01   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    14.194       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2478       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .83216       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=   7814.403     FROM MIGRAD    STATUS=CONVERGED    560 CALLS     2771 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     35.285        23.986        .43924E-06    .12837E-03
   2  norm          .10000E-03    1.0964        .16919E-06** at limit **
   3  Prefactor     .10000E-03    8.6946       -.21771E-06** at limit **
   4  Prefactor     .10000E-03    6.3737        .10616E-05** at limit **
   5  Prefactor     .23736        .15574        .35393E-07    .50476E-03
   6  Prefactor     .10000E-03    5.6142        .42935E-07** at limit **
   7  norm          4.2168        1.9366        .10463E-06    .37550E-03
   8  Prefactor     12.813        22.731        .61097E-06    .69921E-04
   9  Prefactor     .10000E-03    15.638        .18350E-05** at limit **
  10  Prefactor     .10000E-03    6.5143       -.10051E-06** at limit **
  11  Prefactor     .55338        .16069        .10024E-07   -.17772E-03
  12  Prefactor     .86477        31.076        .13597E-04   -.35085E-03
  13  Prefactor     6.1494        59.940       -.38678E-05   -.19194E-03
  14  Prefactor     .10000E-03    8.0310        .66380E-06** at limit **
  15  Prefactor     3.0993        21.502        .22905E-05    .64724E-04
  16  Prefactor     30.836        29.271       -.91990E-06   -.32841E-03
  17  Prefactor     12.280        7.5292        .23533E-06    .10684E-03
  18  Prefactor     .10000E-03    11.638       -.80252E-06** at limit **
  19  Prefactor     .10000E-03    6.1502        .19930E-06** at limit **
  20  norm          .16338        3.9332       -.10856E-06   -.13620E-05
  21  Prefactor     .10000E-03    2.3767       -.14284E-06** at limit **
  22  norm          14.196        19.831        .29013E-06   -.45631E-04
  23  Normalizat    1.2471        .21182        .15202E-05   -.59907E-03
  24  Prefactor     .83222        .10892       -.23850E-05   -.14197E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 35.2852
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.237357
  Prefactor  = 0.0001
  norm       = 4.21682
  Prefactor  = 12.8131
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.553381
  Prefactor  = 0.864772
  Prefactor  = 6.14938
  Prefactor  = 0.000100001
  Prefactor  = 3.09932
  Prefactor  = 30.8362
  Prefactor  = 12.2796
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.163379
  Prefactor  = 0.0001
  norm       = 14.1962
  Normalizat = 1.24715
  Prefactor  = 0.832225
 **********
 **   18 **HESSE 
 **********

 FCN=   7814.403     FROM HESSE     STATUS=OK           399 CALLS     3170 TOTAL
                     EDM=   .42E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     35.285        24.060        .67480E-04   -1.4519    
   2  norm          .10000E-03    1.1020        .90483E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    8.7813        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.5100        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .23736        .15093        .26650E-03   -1.5611    
   6  Prefactor     .10000E-03    5.7352        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          4.2168        1.9362        .80759E-04   -1.5297    
   8  Prefactor     12.813        22.783        .11193E-03   -1.4992    
   9  Prefactor     .10000E-03    16.347        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.5213        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .55338        .16065        .17770E-04   -1.5559    
  12  Prefactor     .86477        34.360        .46997E-02   -1.5522    
  13  Prefactor     6.1494        62.522        .16132E-03   -1.5212    
  14  Prefactor     .10000E-03    8.3144        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.0993        21.822        .23047E-03   -1.5356    
  16  Prefactor     30.836        29.283        .72112E-04   -1.4597    
  17  Prefactor     12.280        7.5552        .11434E-03   -1.5007    
  18  Prefactor     .10000E-03    11.833        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    6.1575        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .16338        50.105        .33752E-02   -1.5627    
  21  Prefactor     .10000E-03    2.3850        .13308E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          14.196        19.842        .10631E-03   -1.4954    
  23  Normalizat    1.2471        .24770        .30186E-03   -.85158    
  24  Prefactor     .83222        .12879        .20014E-03   -.98551    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.16275e-08
Minuit parameter uncertainties:
  1  24.0665
  2  1.26097e-05
  3  8.31428e-05
  4  0.000178727
  5  0.150931
  6  9.07518e-06
  7  1.93627
  8  22.7986
  9  0.000495262
  10  2.44209e-05
  11  0.16065
  12  10.9081
  13  39.2686
  14  0.000174067
  15  16.4563
  16  29.2963
  17  7.55579
  18  0.000182967
  19  4.46256e-05
  20  5.72534
  21  1.50485e-05
  22  19.8511
  23  0.247931
  24  0.128834
Done.

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

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  5.534e-01  1.607e-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.322e-01  1.288e-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.247e+00  2.479e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 25.97
Ra Dec: 343.496 16.151
Photon Index (Fixed Index): 2.02 +/- 0.00
Photon Flux (Fixed Index): 2.02e-07 +/- 5.86e-08
Energy Flux (Fixed Index): 6.48e-05 +/- 1.88e-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) = 7813.46171316
delta logL = 0.941584970456

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7813.4611007
delta logL = 0.942197430525

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .67033       1.0000         .10000E-03   10000.    
     2 'Index1    '    2.4487       1.0000          .0000       10.000    
     3 'Normalizat'    1.1740       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85876       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=   7813.461     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      213 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .67033        .17986        .40773E-02    .20423E-02
   2  Index1        2.4487        .30659        .14131        .13609E-04
   3  Normalizat    1.1740        .20006        .69895E-01   -.12852E-05
   4  Prefactor     .85877        .10989        .44477E-01    .11464E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.670331
  Index1     = 2.44872
  Normalizat = 1.17399
  Prefactor  = 0.858766
 **********
 **   18 **HESSE 
 **********

 FCN=   7813.461     FROM HESSE     STATUS=OK            33 CALLS      246 TOTAL
                     EDM=   .44E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .67033        .18202        .18089E-04   -1.5544    
   2  Index1        2.4487        .32342        .60233E-02   -.53548    
   3  Normalizat    1.1740        .23902        .30926E-03   -.87410    
   4  Prefactor     .85877        .13030        .19731E-03   -.97597    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.38507e-11
Minuit parameter uncertainties:
  1  0.182019
  2  0.323725
  3  0.239245
  4  0.13035
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/581453': 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) = 7813.4611007
delta logL = 0.942197431016

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  6.703e-01  1.820e-01  1.000e-04  1.000e+04 ( 1.000e-09)
317       Index1:  2.449e+00  3.237e-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.588e-01  1.303e-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.174e+00  2.392e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 27.98
Ra Dec: 343.496 16.151
Photon Index (Free Index): 2.45 +/- 0.32
Photon Flux (Free Index): 2.62e-07 +/- 7.85e-08
Energy Flux (Free Index): 6.07e-05 +/- 1.64e-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/581453/cmap_HighResolution_641088001_641347201_4FGL_J2253.9+1609_daily_bin1550.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.02e-07', energy_flux2='6.07e-05', photon_flux_error='5.86e-08', dlogl='9.42e-01', energy_flux='6.48e-05', photon_flux2='2.62e-07', job_status='DONE', time_completed='2021-09-29 02:25:45.469591', photon_index_error2='0.32', photon_index2='2.45', ts='25.97', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', energy_flux_error2='1.64e-05', EG='1.25', time_epoch_completed='1632907545.47', return_code='0', job_id='581453', GAL2='0.86', EG2='1.17', return_code2='0', energy_flux_error='1.88e-05', photon_flux_error2='7.85e-08', ts2='27.98', photon_index='2.02' WHERE bin_id='1550' AND source_name='4FGL J2253.9+1609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:25:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0228>
Subject: Job 581453: <4FGL_J2253.9+1609_daily_bin1550> in cluster <slac> Done

Job <4FGL_J2253.9+1609_daily_bin1550> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Wed Sep 29 02:10:27 2021
Job was executed on host(s) <bullet0228>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 02:10:29 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:10:29 2021
Terminated at Wed Sep 29 02:25:46 2021
Results reported at Wed Sep 29 02:25:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2253.9+1609_daily_bin1550 343.496 16.1506 641088001 641347201 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 :                                   668.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             254.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   916 sec.
    Turnaround time :                            919 sec.

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

