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


Performing analysis on: 4FGL_J2253.9+1609_daily_bin1090
RA = 343.496, Dec = 16.1506
tmin = 521856001, tmax = 522115201
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='578507', job_status='RUN', time_executed='2021-09-29 02:01:01.232292', time_epoch_executed='1632906061.23' WHERE source_name='4FGL J2253.9+1609' and cadence='daily' and bin_id='1090'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/578507

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/578507/ft1_4FGL_J2253.9+1609_daily_bin1090.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/578507/ft2_4FGL_J2253.9+1609_daily_bin1090.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/578507/ft1_4FGL_J2253.9+1609_daily_bin1090.fits outfile=/scratch/kocevski/578507/ft1_filteredMKT_4FGL_J2253.9+1609_daily_bin1090.fits ra=343.496 dec=16.1506 rad=12.0 tmin=521856001.0 tmax=522115201.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.72
user 3.49
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/578507/ft1_filtered_4FGL_J2253.9+1609_daily_bin1090.fits" evtable="EVENTS" scfile=/scratch/kocevski/578507/ft2_4FGL_J2253.9+1609_daily_bin1090.fits sctable="SC_DATA" outfile=/scratch/kocevski/578507/ltcube_521856001_522115201_4FGL_J2253.9+1609_daily_bin1090.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/578507/ft2_4FGL_J2253.9+1609_daily_bin1090.fits
.....................!
real 11.98
user 11.60
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/578507/ft1_filtered_4FGL_J2253.9+1609_daily_bin1090.fits evtable="EVENTS" scfile=/scratch/kocevski/578507/ft2_4FGL_J2253.9+1609_daily_bin1090.fits sctable="SC_DATA" expcube=/scratch/kocevski/578507/ltcube_521856001_522115201_4FGL_J2253.9+1609_daily_bin1090.fits outfile=/scratch/kocevski/578507/expmap_521856001_522115201_4FGL_J2253.9+1609_daily_bin1090.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/578507/ltcube_521856001_522115201_4FGL_J2253.9+1609_daily_bin1090.fits
.....................!
real 192.05
user 186.43
sys 5.31

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/578507/ft1_filtered_4FGL_J2253.9+1609_daily_bin1090.fits scfile=/scratch/kocevski/578507/ft2_4FGL_J2253.9+1609_daily_bin1090.fits outfile=/scratch/kocevski/578507/cmap_521856001_522115201_4FGL_J2253.9+1609_daily_bin1090.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/578507/ft1_filtered_4FGL_J2253.9+1609_daily_bin1090.fits scfile=/scratch/kocevski/578507/ft2_4FGL_J2253.9+1609_daily_bin1090.fits outfile=/scratch/kocevski/578507/cmap_HighResolution_521856001_522115201_4FGL_J2253.9+1609_daily_bin1090.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=343.496 yref=16.1506 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.41
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    47.913       1.0000         .10000E-03   10000.    
     2 'norm      '    1.7707       1.0000         .10000E-03   10000.    
     3 'Prefactor '    35.417       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10475E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.5050       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.3165       1.0000         .10000E-03   10000.    
     7 'norm      '    1.2149       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10190E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .68253       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    31.141       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .12135       1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.2160       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.5425       1.0000         .10000E-03   10000.    
    20 'norm      '    .10099E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10243E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1445       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .91458       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=   9769.086     FROM MIGRAD    STATUS=CONVERGED    542 CALLS     2719 TOTAL
                     EDM=   .34E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     47.902        27.278        .79755E-06   -.49595E-04
   2  norm          1.7694        5.4254        .11433E-05   -.18529E-04
   3  Prefactor     35.411        26.236        .90839E-06   -.27322E-04
   4  Prefactor     .10000E-03    13.537        .42009E-06** at limit **
   5  Prefactor     6.5050        .52653       -.41244E-07   -.20533E-04
   6  Prefactor     2.3163        7.1439        .66198E-05    .34208E-05
   7  norm          1.2143        1.0061        .86039E-08   -.28384E-04
   8  Prefactor     .10000E-03    11.092       -.37750E-06** at limit **
   9  Prefactor     .10000E-03    20.933        .55930E-06** at limit **
  10  Prefactor     .10000E-03    9.2263        .55210E-06** at limit **
  11  Prefactor     .68251        .18244        .48986E-08   -.11509E-02
  12  Prefactor     .10000E-03    7.4925       -.35442E-07** at limit **
  13  Prefactor     31.105        40.945        .51221E-05   -.24049E-04
  14  Prefactor     .56179E-01    3.5009        .22428E-07    .19132E-04
  15  Prefactor     8.2171        8.1107       -.51154E-07   -.36733E-04
  16  Prefactor     .10000E-03    11.099       -.21530E-06** at limit **
  17  Prefactor     .10000E-03    2.4508        .16487E-06** at limit **
  18  Prefactor     .10000E-03    8.0596        .10755E-06** at limit **
  19  Prefactor     2.5367        17.535        .54368E-06    .18432E-05
  20  norm          .10000E-03    6.4520        .27135E-06** at limit **
  21  Prefactor     .10000E-03    6.8061        .84340E-08** at limit **
  22  norm          .10000E-03    10.535       -.47727E-07** at limit **
  23  Normalizat    1.1445        .22009        .45046E-06   -.95969E-04
  24  Prefactor     .91465        .11918       -.13147E-05   -.16618E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 47.9019
  norm       = 1.76945
  Prefactor  = 35.4105
  Prefactor  = 0.0001
  Prefactor  = 6.50498
  Prefactor  = 2.31625
  norm       = 1.2143
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.68251
  Prefactor  = 0.0001
  Prefactor  = 31.1055
  Prefactor  = 0.0561794
  Prefactor  = 8.21713
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.53665
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.14446
  Prefactor  = 0.914649
 **********
 **   18 **HESSE 
 **********

 FCN=   9769.086     FROM HESSE     STATUS=OK           405 CALLS     3124 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     47.902        27.259        .57930E-04   -1.4323    
   2  norm          1.7694        5.4133        .31470E-03   -1.5442    
   3  Prefactor     35.411        26.388        .67339E-04   -1.4517    
   4  Prefactor     .10000E-03    13.682        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     6.5050        .53055        .18263E-04   -1.5198    
   6  Prefactor     2.3163        7.1465        .13477E-02   -1.5404    
   7  norm          1.2143        1.0208        .87987E-04   -1.5488    
   8  Prefactor     .10000E-03    11.097        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    21.753        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    9.2435        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .68251        .18186        .20606E-04   -1.5543    
  12  Prefactor     .10000E-03    7.5367        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     31.105        41.021        .71801E-04   -1.4592    
  14  Prefactor     .56179E-01    3.9829        .59337E-01   -1.5661    
  15  Prefactor     8.2171        8.1124        .13987E-03   -1.5135    
  16  Prefactor     .10000E-03    11.118        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2.4677        .15106E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    8.1189        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.5367        17.537        .25611E-03   -1.5389    
  20  norm          .10000E-03    6.5381        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    6.9551        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    10.590        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.1445        .25693        .37780E-03   -.88337    
  24  Prefactor     .91465        .13965        .23109E-03   -.95631    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.8352e-10
Minuit parameter uncertainties:
  1  27.2661
  2  5.41484
  3  26.3966
  4  5.29825e-05
  5  0.530553
  6  7.14913
  7  1.02078
  8  5.64367e-06
  9  0.000143698
  10  5.1447e-06
  11  0.181858
  12  3.46106e-05
  13  41.0584
  14  0.945284
  15  8.11347
  16  3.17121e-05
  17  1.05297e-05
  18  1.62222e-05
  19  13.3449
  20  6.37456e-06
  21  3.04157e-05
  22  2.9694e-05
  23  0.257215
  24  0.139702
Done.

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

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  6.825e-01  1.819e-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.146e-01  1.397e-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.144e+00  2.572e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 30.64
Ra Dec: 343.496 16.151
Photon Index (Fixed Index): 2.02 +/- 0.00
Photon Flux (Fixed Index): 2.49e-07 +/- 6.63e-08
Energy Flux (Fixed Index): 7.99e-05 +/- 2.13e-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) = 9768.82706349
delta logL = 0.259161506057

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9768.80941067
delta logL = 0.276814324867

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .78149       1.0000         .10000E-03   10000.    
     2 'Index1    '    2.2745       1.0000          .0000       10.000    
     3 'Normalizat'    1.0878       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93672       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=   9768.809     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      207 TOTAL
                     EDM=   .35E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .78149        .19836        .47264E-02   -.74750E-03
   2  Index1        2.2745        .28933        .15982       -.71337E-04
   3  Normalizat    1.0878        .21609        .87036E-01    .52590E-04
   4  Prefactor     .93672        .11893        .45471E-01    .81181E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.78149
  Index1     = 2.27447
  Normalizat = 1.08783
  Prefactor  = 0.936719
 **********
 **   18 **HESSE 
 **********

 FCN=   9768.809     FROM HESSE     STATUS=OK            33 CALLS      240 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .78149        .21925        .20982E-04   -1.5531    
   2  Index1        2.2745        .34704        .65833E-02   -.57651    
   3  Normalizat    1.0878        .26052        .38543E-03   -.90143    
   4  Prefactor     .93672        .14171        .22865E-03   -.94870    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.53941e-11
Minuit parameter uncertainties:
  1  0.21925
  2  0.347437
  3  0.260829
  4  0.14177
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/578507': 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) = 9768.80941067
delta logL = 0.276814325054

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  7.815e-01  2.192e-01  1.000e-04  1.000e+04 ( 1.000e-09)
317       Index1:  2.274e+00  3.474e-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:  9.367e-01  1.418e-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.088e+00  2.608e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 30.81
Ra Dec: 343.496 16.151
Photon Index (Free Index): 2.27 +/- 0.35
Photon Flux (Free Index): 2.95e-07 +/- 9.22e-08
Energy Flux (Free Index): 7.64e-05 +/- 2.00e-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/578507/cmap_HighResolution_521856001_522115201_4FGL_J2253.9+1609_daily_bin1090.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.49e-07', energy_flux2='7.64e-05', photon_flux_error='6.63e-08', dlogl='2.77e-01', energy_flux='7.99e-05', photon_flux2='2.95e-07', job_status='DONE', time_completed='2021-09-29 02:13:52.653466', photon_index_error2='0.35', photon_index2='2.27', ts='30.64', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', energy_flux_error2='2.00e-05', EG='1.14', time_epoch_completed='1632906832.65', return_code='0', job_id='578507', GAL2='0.94', EG2='1.09', return_code2='0', energy_flux_error='2.13e-05', photon_flux_error2='9.22e-08', ts2='30.81', photon_index='2.02' WHERE bin_id='1090' AND source_name='4FGL J2253.9+1609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:13:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0134>
Subject: Job 578507: <4FGL_J2253.9+1609_daily_bin1090> in cluster <slac> Done

Job <4FGL_J2253.9+1609_daily_bin1090> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 02:00:36 2021
Job was executed on host(s) <bullet0134>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 02:00:37 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:00:37 2021
Terminated at Wed Sep 29 02:13:53 2021
Results reported at Wed Sep 29 02:13:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2253.9+1609_daily_bin1090 343.496 16.1506 521856001 522115201 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 :                                   766.44 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             324.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   795 sec.
    Turnaround time :                            797 sec.

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

