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


Performing analysis on: 4FGL_J2253.9+1609_daily_bin1426
RA = 343.496, Dec = 16.1506
tmin = 608947201, tmax = 609206401
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='580090', job_status='RUN', time_executed='2021-09-29 02:08:08.769401', time_epoch_executed='1632906488.77' WHERE source_name='4FGL J2253.9+1609' and cadence='daily' and bin_id='1426'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/580090

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/580090/ft1_4FGL_J2253.9+1609_daily_bin1426.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/580090/ft2_4FGL_J2253.9+1609_daily_bin1426.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/580090/ft1_4FGL_J2253.9+1609_daily_bin1426.fits outfile=/scratch/kocevski/580090/ft1_filteredMKT_4FGL_J2253.9+1609_daily_bin1426.fits ra=343.496 dec=16.1506 rad=12.0 tmin=608947201.0 tmax=609206401.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.14
user 2.91
sys 0.20

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/580090/ft1_filtered_4FGL_J2253.9+1609_daily_bin1426.fits" evtable="EVENTS" scfile=/scratch/kocevski/580090/ft2_4FGL_J2253.9+1609_daily_bin1426.fits sctable="SC_DATA" outfile=/scratch/kocevski/580090/ltcube_608947201_609206401_4FGL_J2253.9+1609_daily_bin1426.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/580090/ft2_4FGL_J2253.9+1609_daily_bin1426.fits
.....................!
real 12.12
user 11.77
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/580090/ft1_filtered_4FGL_J2253.9+1609_daily_bin1426.fits evtable="EVENTS" scfile=/scratch/kocevski/580090/ft2_4FGL_J2253.9+1609_daily_bin1426.fits sctable="SC_DATA" expcube=/scratch/kocevski/580090/ltcube_608947201_609206401_4FGL_J2253.9+1609_daily_bin1426.fits outfile=/scratch/kocevski/580090/expmap_608947201_609206401_4FGL_J2253.9+1609_daily_bin1426.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/580090/ltcube_608947201_609206401_4FGL_J2253.9+1609_daily_bin1426.fits
.....................!
real 191.84
user 185.74
sys 5.72

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/580090/ft1_filtered_4FGL_J2253.9+1609_daily_bin1426.fits scfile=/scratch/kocevski/580090/ft2_4FGL_J2253.9+1609_daily_bin1426.fits outfile=/scratch/kocevski/580090/cmap_608947201_609206401_4FGL_J2253.9+1609_daily_bin1426.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/580090/ft1_filtered_4FGL_J2253.9+1609_daily_bin1426.fits scfile=/scratch/kocevski/580090/ft2_4FGL_J2253.9+1609_daily_bin1426.fits outfile=/scratch/kocevski/580090/cmap_HighResolution_608947201_609206401_4FGL_J2253.9+1609_daily_bin1426.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.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .42674       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .27370       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.0150       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    37.982       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.8239       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .27736       1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.8681       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.1128       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .62553E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10079E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0058       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .99533       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7340.168     FROM MIGRAD    STATUS=CONVERGED    943 CALLS     3483 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.3632        .18142E-02** at limit **
   2  norm          .10000E-03    1.4496        .10051E-02** at limit **
   3  Prefactor     .40551        42.433        .42123E-02    .27715E-03
   4  Prefactor     .10000E-03    3.6233        .15908E-02** at limit **
   5  Prefactor     .27373        .13947        .22231E-04    .71543E-03
   6  Prefactor     .10000E-03    4.1298        .16883E-02** at limit **
   7  norm          1.0148        1.0686        .87660E-04   -.44095E-05
   8  Prefactor     .10000E-03    8.4252        .18142E-02** at limit **
   9  Prefactor     37.983        16.297        .65033E-04   -.31466E-05
  10  Prefactor     5.8230        10.300        .83209E-03    .46617E-04
  11  Prefactor     .27733        .13454        .21006E-04    .66028E-04
  12  Prefactor     9.8657        13.760        .12756E-03   -.71299E-05
  13  Prefactor     .10000E-03    22.755        .18142E-02** at limit **
  14  Prefactor     .10000E-03    5.0420        .18142E-02** at limit **
  15  Prefactor     .10000E-03    5.9478        .18142E-02** at limit **
  16  Prefactor     .10000E-03    11.211        .18142E-02** at limit **
  17  Prefactor     7.1257        9.4064        .15041E-03   -.17641E-03
  18  Prefactor     .10000E-03    17.402        .18142E-02** at limit **
  19  Prefactor     .10001E-03    185.33        .72225E-02** at limit **
  20  norm          .10000E-03    8.5975        .18142E-02** at limit **
  21  Prefactor     .10000E-03    2.9258        .14290E-02** at limit **
  22  norm          .10000E-03    5.8448        .18142E-02** at limit **
  23  Normalizat    1.0054        .25114        .33054E-03    .27859E-05
  24  Prefactor     .99561        .13752        .18685E-03    .69970E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.405509
  Prefactor  = 0.0001
  Prefactor  = 0.273725
  Prefactor  = 0.0001
  norm       = 1.01481
  Prefactor  = 0.0001
  Prefactor  = 37.9828
  Prefactor  = 5.82298
  Prefactor  = 0.277333
  Prefactor  = 9.86565
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.12568
  Prefactor  = 0.000100001
  Prefactor  = 0.000100014
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.00538
  Prefactor  = 0.995612
 **********
 **   18 **HESSE 
 **********

 FCN=   7340.168     FROM HESSE     STATUS=OK           377 CALLS     3860 TOTAL
                     EDM=   .95E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.3638        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    1.4497        .20102E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .40551        42.770        .16849E-03   -1.5581    
   4  Prefactor     .10000E-03    3.6235        .31815E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .27373        .13925        .88924E-06   -1.5603    
   6  Prefactor     .10000E-03    4.1318        .33766E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.0148        1.0686        .35064E-05   -1.5506    
   8  Prefactor     .10000E-03    8.4254        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     37.983        16.295        .26013E-05   -1.4475    
  10  Prefactor     5.8230        10.299        .16642E-03   -1.5225    
  11  Prefactor     .27733        .13452        .84024E-06   -1.5603    
  12  Prefactor     9.8657        13.758        .51025E-05   -1.5080    
  13  Prefactor     .10000E-03    22.756        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.0441        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.9483        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    11.212        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     7.1257        9.3405        .60164E-05   -1.5174    
  18  Prefactor     .10000E-03    17.416        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10001E-03    189.65        .28890E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    8.6016        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    2.9260        .28579E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    5.8450        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.0054        .25127        .13222E-04   -.92850    
  24  Prefactor     .99561        .13761        .74740E-05   -.92876    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.45678e-10
Minuit parameter uncertainties:
  1  2.1732e-05
  2  8.52441e-07
  3  8.33428
  4  1.45839e-06
  5  0.139246
  6  3.39061e-06
  7  1.06861
  8  2.03916e-05
  9  16.2965
  10  10.3016
  11  0.13452
  12  13.762
  13  0.000241467
  14  9.11387e-06
  15  5.02924e-06
  16  9.96601e-05
  17  9.3424
  18  0.000215294
  19  0.00325446
  20  9.9975e-06
  21  1.53305e-06
  22  1.43594e-05
  23  0.251564
  24  0.137656
Done.

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

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  2.773e-01  1.345e-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:  9.956e-01  1.377e-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.005e+00  2.516e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.66
Ra Dec: 343.496 16.151
Photon Index (Fixed Index): 2.02 +/- 0.00
Photon Flux (Fixed Index): 1.01e-07 +/- 4.90e-08
Energy Flux (Fixed Index): 3.25e-05 +/- 1.58e-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) = 7340.13287507
delta logL = 0.0354536314026

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7340.13253407
delta logL = 0.0357946346285

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .29640       1.0000         .10000E-03   10000.    
     2 'Index1    '    2.1545       1.0000          .0000       10.000    
     3 'Normalizat'    .99297       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0008       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=   7340.133     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      204 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .29644        .14408        .47788E-02    .89018E-02
   2  Index1        2.1544        .41535        .21561       -.19575E-03
   3  Normalizat    .99301        .20528        .75092E-01   -.79563E-04
   4  Prefactor     1.0007        .11549        .45501E-01   -.55566E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.296443
  Index1     = 2.15441
  Normalizat = 0.993006
  Prefactor  = 1.00074
 **********
 **   18 **HESSE 
 **********

 FCN=   7340.133     FROM HESSE     STATUS=OK            31 CALLS      235 TOTAL
                     EDM=   .90E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .29644        .15127        .21393E-04   -1.5599    
   2  Index1        2.1544        .50773        .83606E-02   -.60543    
   3  Normalizat    .99301        .24581        .33229E-03   -.93265    
   4  Prefactor     1.0007        .13780        .18643E-03   -.92705    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.04738e-10
Minuit parameter uncertainties:
  1  0.151273
  2  0.509032
  3  0.246094
  4  0.13785
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/580090': 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) = 7340.13253399
delta logL = 0.0357947146113

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  2.964e-01  1.513e-01  1.000e-04  1.000e+04 ( 1.000e-09)
317       Index1:  2.154e+00  5.090e-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:  1.001e+00  1.378e-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:  9.930e-01  2.461e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.74
Ra Dec: 343.496 16.151
Photon Index (Free Index): 2.15 +/- 0.51
Photon Flux (Free Index): 1.10e-07 +/- 5.90e-08
Energy Flux (Free Index): 3.12e-05 +/- 1.57e-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/580090/cmap_HighResolution_608947201_609206401_4FGL_J2253.9+1609_daily_bin1426.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.01e-07', energy_flux2='3.12e-05', photon_flux_error='4.90e-08', dlogl='3.58e-02', energy_flux='3.25e-05', photon_flux2='1.10e-07', job_status='DONE', time_completed='2021-09-29 02:21:09.511424', photon_index_error2='0.51', photon_index2='2.15', ts='7.66', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', energy_flux_error2='1.57e-05', EG='1.01', time_epoch_completed='1632907269.51', return_code='0', job_id='580090', GAL2='1.00', EG2='0.99', return_code2='0', energy_flux_error='1.58e-05', photon_flux_error2='5.90e-08', ts2='7.74', photon_index='2.02' WHERE bin_id='1426' AND source_name='4FGL J2253.9+1609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:21:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0253>
Subject: Job 580090: <4FGL_J2253.9+1609_daily_bin1426> in cluster <slac> Done

Job <4FGL_J2253.9+1609_daily_bin1426> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 02:05:39 2021
Job was executed on host(s) <bullet0253>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 02:05:41 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:41 2021
Terminated at Wed Sep 29 02:21:09 2021
Results reported at Wed Sep 29 02:21:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2253.9+1609_daily_bin1426 343.496 16.1506 608947201 609206401 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 :                                   690.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             281.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   928 sec.
    Turnaround time :                            930 sec.

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

