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


Performing analysis on: 4FGL_J2253.9+1609_daily_bin1543
RA = 343.496, Dec = 16.1506
tmin = 639273601, tmax = 639532801
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='581441', job_status='RUN', time_executed='2021-09-29 02:14:20.951938', time_epoch_executed='1632906860.95' WHERE source_name='4FGL J2253.9+1609' and cadence='daily' and bin_id='1543'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/581441

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/581441/ft1_4FGL_J2253.9+1609_daily_bin1543.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/581441/ft2_4FGL_J2253.9+1609_daily_bin1543.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/581441/ft1_4FGL_J2253.9+1609_daily_bin1543.fits outfile=/scratch/kocevski/581441/ft1_filteredMKT_4FGL_J2253.9+1609_daily_bin1543.fits ra=343.496 dec=16.1506 rad=12.0 tmin=639273601.0 tmax=639532801.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 5.29
user 5.03
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/581441/ft1_filtered_4FGL_J2253.9+1609_daily_bin1543.fits evtable="EVENTS" scfile=/scratch/kocevski/581441/ft2_4FGL_J2253.9+1609_daily_bin1543.fits sctable="SC_DATA" expcube=/scratch/kocevski/581441/ltcube_639273601_639532801_4FGL_J2253.9+1609_daily_bin1543.fits outfile=/scratch/kocevski/581441/expmap_639273601_639532801_4FGL_J2253.9+1609_daily_bin1543.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/581441/ltcube_639273601_639532801_4FGL_J2253.9+1609_daily_bin1543.fits
.....................!
real 192.70
user 187.59
sys 4.53

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/581441/ft1_filtered_4FGL_J2253.9+1609_daily_bin1543.fits scfile=/scratch/kocevski/581441/ft2_4FGL_J2253.9+1609_daily_bin1543.fits outfile=/scratch/kocevski/581441/cmap_639273601_639532801_4FGL_J2253.9+1609_daily_bin1543.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/581441/ft1_filtered_4FGL_J2253.9+1609_daily_bin1543.fits scfile=/scratch/kocevski/581441/ft2_4FGL_J2253.9+1609_daily_bin1543.fits outfile=/scratch/kocevski/581441/cmap_HighResolution_639273601_639532801_4FGL_J2253.9+1609_daily_bin1543.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/581441/ft1_filtered_4FGL_J2253.9+1609_daily_bin1543.fits evtable="EVENTS" scfile=/scratch/kocevski/581441/ft2_4FGL_J2253.9+1609_daily_bin1543.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/581441/Model_4FGL_J2253.9+1609_daily_bin1543.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/581441/ft1_filtered_4FGL_J2253.9+1609_daily_bin1543.fits.....................!
real 83.74
user 82.37
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.2577       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .17209       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    27.137       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .79685       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    22.657       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.6951       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.2162       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.9827       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2876       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .86014       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=   7797.627     FROM MIGRAD    STATUS=CONVERGED    535 CALLS     2701 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.546       -.30564E-06** at limit **
   2  norm          .10000E-03    1.0960        .80386E-08** at limit **
   3  Prefactor     .10000E-03    9.2907       -.20600E-05** at limit **
   4  Prefactor     5.2578        6.5089       -.75027E-07   -.14460E-04
   5  Prefactor     .10000E-03    .37875E-01    .22716E-08** at limit **
   6  Prefactor     .10000E-03    2.7714        .12932E-07** at limit **
   7  norm          .16713        1.1706       -.49954E-06    .28954E-03
   8  Prefactor     .10000E-03    9.6339       -.99418E-06** at limit **
   9  Prefactor     27.142        17.513        .14934E-05    .25076E-03
  10  Prefactor     .10000E-03    7.4373        .12548E-05** at limit **
  11  Prefactor     .79689        .19028       -.16959E-07    .46241E-03
  12  Prefactor     .10000E-03    13.099       -.31828E-05** at limit **
  13  Prefactor     22.649        41.428       -.11513E-04   -.12022E-04
  14  Prefactor     4.6958        8.1286        .17916E-07   -.35917E-03
  15  Prefactor     .10000E-03    10.264        .22887E-05** at limit **
  16  Prefactor     .10000E-03    32.405       -.77305E-06** at limit **
  17  Prefactor     2.2164        3.0934        .22176E-06   -.88079E-03
  18  Prefactor     .10000E-03    19.975        .20241E-05** at limit **
  19  Prefactor     .10000E-03    10.744        .30130E-05** at limit **
  20  norm          .10000E-03    7.4688       -.10910E-05** at limit **
  21  Prefactor     7.9831        8.7074        .83637E-07   -.18961E-03
  22  norm          .10000E-03    4.3839        .46889E-08** at limit **
  23  Normalizat    1.2873        .21727        .77301E-06    .37127E-04
  24  Prefactor     .86026        .11461        .21757E-07    .13738E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.25782
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.167128
  Prefactor  = 0.0001
  Prefactor  = 27.1416
  Prefactor  = 0.0001
  Prefactor  = 0.796894
  Prefactor  = 0.0001
  Prefactor  = 22.649
  Prefactor  = 4.69579
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.21645
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 7.98312
  norm       = 0.0001
  Normalizat = 1.28727
  Prefactor  = 0.860265
 **********
 **   18 **HESSE 
 **********

 FCN=   7797.627     FROM HESSE     STATUS=OK           397 CALLS     3098 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.567        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    1.0979        .90276E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    9.4617        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.2578        6.5153        .87648E-03   -1.5249    
   5  Prefactor     .10000E-03    .43507E-01    .33425E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.7863        .14356E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .16713        5.0039        .16626E-02   -1.5626    
   8  Prefactor     .10000E-03    9.6377        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     27.142        17.891        .76903E-04   -1.4666    
  10  Prefactor     .10000E-03    7.4412        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .79689        .19008        .17671E-04   -1.5529    
  12  Prefactor     .10000E-03    13.363        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     22.649        41.577        .84151E-04   -1.4756    
  14  Prefactor     4.6958        8.4247        .92858E-03   -1.5275    
  15  Prefactor     .10000E-03    10.336        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    32.625        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.2164        7.0488        .13813E-02   -1.5410    
  18  Prefactor     .10000E-03    20.546        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    10.756        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    7.5266        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     7.9831        8.8248        .70956E-03   -1.5143    
  22  norm          .10000E-03    4.3856        .18057E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.2873        .26357        .31293E-03   -.83947    
  24  Prefactor     .86026        .13819        .20279E-03   -.97544    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.20275e-09
Minuit parameter uncertainties:
  1  6.63278e-06
  2  4.95721e-07
  3  7.42177e-07
  4  6.51622
  5  6.47244e-08
  6  5.73491e-07
  7  1.8286
  8  3.09624e-06
  9  17.894
  10  1.91817e-06
  11  0.190084
  12  1.65882e-05
  13  41.6301
  14  8.42683
  15  1.21359e-05
  16  3.29988e-05
  17  7.05142
  18  2.13049e-05
  19  4.6652e-06
  20  1.22031e-08
  21  8.8262
  22  9.6494e-07
  23  0.263846
  24  0.138251
Done.

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

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  7.969e-01  1.901e-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.603e-01  1.383e-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.287e+00  2.638e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 40.08
Ra Dec: 343.496 16.151
Photon Index (Fixed Index): 2.02 +/- 0.00
Photon Flux (Fixed Index): 2.91e-07 +/- 6.93e-08
Energy Flux (Fixed Index): 9.33e-05 +/- 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) = 7797.58368479
delta logL = 0.0435405782928

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7797.57958668
delta logL = 0.0476386843711

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .83037       1.0000         .10000E-03   10000.    
     2 'Index1    '    2.0964       1.0000          .0000       10.000    
     3 'Normalizat'    1.2703       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86691       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=   7797.580     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      202 TOTAL
                     EDM=   .19E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .83104        .20123        .40347E-02    .35075E-03
   2  Index1        2.0967        .22409        .10544       -.80840E-04
   3  Normalizat    1.2706        .21308        .71087E-01    .12435E-04
   4  Prefactor     .86670        .11485        .44582E-01    .88355E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.831044
  Index1     = 2.09673
  Normalizat = 1.27065
  Prefactor  = 0.8667
 **********
 **   18 **HESSE 
 **********

 FCN=   7797.580     FROM HESSE     STATUS=OK            31 CALLS      233 TOTAL
                     EDM=   .52E-14    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .83104        .22002        .17872E-04   -1.5526    
   2  Index1        2.0967        .25158        .45642E-03   -.61953    
   3  Normalizat    1.2706        .25881        .31455E-03   -.84447    
   4  Prefactor     .86670        .13881        .20212E-03   -.97315    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.16678e-15
Minuit parameter uncertainties:
  1  0.220018
  2  0.251735
  3  0.259072
  4  0.138868
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/581441': 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) = 7797.57958003
delta logL = 0.0476453418059

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  8.310e-01  2.200e-01  1.000e-04  1.000e+04 ( 1.000e-09)
317       Index1:  2.097e+00  2.517e-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.667e-01  1.389e-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.271e+00  2.591e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 40.18
Ra Dec: 343.496 16.151
Photon Index (Free Index): 2.10 +/- 0.25
Photon Flux (Free Index): 3.05e-07 +/- 8.49e-08
Energy Flux (Free Index): 9.12e-05 +/- 2.23e-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/581441/cmap_HighResolution_639273601_639532801_4FGL_J2253.9+1609_daily_bin1543.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.91e-07', energy_flux2='9.12e-05', photon_flux_error='6.93e-08', dlogl='4.76e-02', energy_flux='9.33e-05', photon_flux2='3.05e-07', job_status='DONE', time_completed='2021-09-29 02:25:30.132315', photon_index_error2='0.25', photon_index2='2.10', ts='40.08', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', energy_flux_error2='2.23e-05', EG='1.29', time_epoch_completed='1632907530.13', return_code='0', job_id='581441', GAL2='0.87', EG2='1.27', return_code2='0', energy_flux_error='2.23e-05', photon_flux_error2='8.49e-08', ts2='40.18', photon_index='2.02' WHERE bin_id='1543' AND source_name='4FGL J2253.9+1609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:25:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0304>
Subject: Job 581441: <4FGL_J2253.9+1609_daily_bin1543> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2253.9+1609_daily_bin1543 343.496 16.1506 639273601 639532801 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 :                                   662.38 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             259.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   902 sec.
    Turnaround time :                            904 sec.

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

