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


Performing analysis on: 4FGL_J2253.9+1609_daily_bin1373
RA = 343.496, Dec = 16.1506
tmin = 595209601, tmax = 595468801
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='580010', job_status='RUN', time_executed='2021-09-29 02:08:26.154252', time_epoch_executed='1632906506.15' WHERE source_name='4FGL J2253.9+1609' and cadence='daily' and bin_id='1373'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/580010

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/580010/ft1_4FGL_J2253.9+1609_daily_bin1373.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/580010/ft2_4FGL_J2253.9+1609_daily_bin1373.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/580010/ft1_4FGL_J2253.9+1609_daily_bin1373.fits outfile=/scratch/kocevski/580010/ft1_filteredMKT_4FGL_J2253.9+1609_daily_bin1373.fits ra=343.496 dec=16.1506 rad=12.0 tmin=595209601.0 tmax=595468801.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 2.89
user 2.67
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/580010/ft1_filtered_4FGL_J2253.9+1609_daily_bin1373.fits" evtable="EVENTS" scfile=/scratch/kocevski/580010/ft2_4FGL_J2253.9+1609_daily_bin1373.fits sctable="SC_DATA" outfile=/scratch/kocevski/580010/ltcube_595209601_595468801_4FGL_J2253.9+1609_daily_bin1373.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/580010/ft2_4FGL_J2253.9+1609_daily_bin1373.fits
.....................!
real 12.35
user 11.97
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/580010/ft1_filtered_4FGL_J2253.9+1609_daily_bin1373.fits evtable="EVENTS" scfile=/scratch/kocevski/580010/ft2_4FGL_J2253.9+1609_daily_bin1373.fits sctable="SC_DATA" expcube=/scratch/kocevski/580010/ltcube_595209601_595468801_4FGL_J2253.9+1609_daily_bin1373.fits outfile=/scratch/kocevski/580010/expmap_595209601_595468801_4FGL_J2253.9+1609_daily_bin1373.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/580010/ltcube_595209601_595468801_4FGL_J2253.9+1609_daily_bin1373.fits
.....................!
real 190.58
user 185.15
sys 5.12

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/580010/ft1_filtered_4FGL_J2253.9+1609_daily_bin1373.fits scfile=/scratch/kocevski/580010/ft2_4FGL_J2253.9+1609_daily_bin1373.fits outfile=/scratch/kocevski/580010/cmap_595209601_595468801_4FGL_J2253.9+1609_daily_bin1373.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.52
user 0.36
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .67931E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.3230       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .39521       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.3947       1.0000         .10000E-03   10000.    
     7 'norm      '    2.7346       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.2928       1.0000         .10000E-03   10000.    
     9 'Prefactor '    45.772       1.0000         .10000E-03   10000.    
    10 'Prefactor '    18.953       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .76374       1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.5683       1.0000         .10000E-03   10000.    
    13 'Prefactor '    72.242       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    40.680       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.0233       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1000       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .90802       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=   7271.899     FROM MIGRAD    STATUS=CONVERGED    535 CALLS     2736 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.0041        .37312E-07** at limit **
   2  norm          .10001E-03    2.2096       -.29208E-06** at limit **
   3  Prefactor     8.3232        12.140       -.11325E-06   -.55049E-04
   4  Prefactor     .10000E-03    3.6703       -.59655E-08** at limit **
   5  Prefactor     .39518        .20999        .28927E-08   -.91850E-03
   6  Prefactor     3.3948        3.8891        .36863E-07    .10458E-03
   7  norm          2.7346        1.7873       -.48388E-08   -.34586E-04
   8  Prefactor     4.2900        48.174       -.76147E-05   -.12746E-04
   9  Prefactor     45.772        15.801       -.29454E-07    .10629E-04
  10  Prefactor     18.946        24.473       -.78490E-05    .77986E-05
  11  Prefactor     .76378        .19257        .98101E-07   -.51538E-03
  12  Prefactor     6.5685        8.2816       -.76571E-07   -.51676E-04
  13  Prefactor     72.247        54.779        .58585E-05   -.52744E-07
  14  Prefactor     .10000E-03    6.1643       -.12275E-07** at limit **
  15  Prefactor     40.680        21.344        .43414E-07   -.28799E-05
  16  Prefactor     .10000E-03    10.461        .22491E-06** at limit **
  17  Prefactor     2.0281        6.7399       -.13887E-05   -.57228E-03
  18  Prefactor     .10000E-03    2.9674       -.56807E-08** at limit **
  19  Prefactor     .10000E-03    27.030        .49830E-06** at limit **
  20  norm          .10000E-03    2.5102        .17941E-08** at limit **
  21  Prefactor     .10000E-03    2.6583       -.20394E-08** at limit **
  22  norm          .10000E-03    16.721        .11869E-06** at limit **
  23  Normalizat    1.1000        .23391       -.35359E-06    .75009E-04
  24  Prefactor     .90793        .12084        .43987E-06    .59668E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.000100013
  Prefactor  = 8.32324
  Prefactor  = 0.0001
  Prefactor  = 0.395177
  Prefactor  = 3.39483
  norm       = 2.73463
  Prefactor  = 4.29002
  Prefactor  = 45.7718
  Prefactor  = 18.9461
  Prefactor  = 0.763784
  Prefactor  = 6.56854
  Prefactor  = 72.2475
  Prefactor  = 0.0001
  Prefactor  = 40.6802
  Prefactor  = 0.0001
  Prefactor  = 2.0281
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.10004
  Prefactor  = 0.907929
 **********
 **   18 **HESSE 
 **********

 FCN=   7271.899     FROM HESSE     STATUS=OK           401 CALLS     3137 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.0061        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10001E-03    18.863        .24324E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     8.3232        12.121        .13896E-03   -1.5131    
   4  Prefactor     .10000E-03    3.6950        .15953E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .39518        .20543        .25738E-04   -1.5582    
   6  Prefactor     3.3948        3.8897        .17523E-03   -1.5339    
   7  norm          2.7346        1.7850        .88410E-04   -1.5377    
   8  Prefactor     4.2900        48.303        .19444E-03   -1.5294    
   9  Prefactor     45.772        15.800        .59263E-04   -1.4354    
  10  Prefactor     18.946        24.188        .91999E-04   -1.4837    
  11  Prefactor     .76378        .19233        .17106E-04   -1.5533    
  12  Prefactor     6.5685        8.2777        .15658E-03   -1.5195    
  13  Prefactor     72.247        54.260        .47234E-04   -1.4006    
  14  Prefactor     .10000E-03    6.2105        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     40.680        21.419        .62847E-04   -1.4431    
  16  Prefactor     .10000E-03    10.512        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.0281        6.9696        .29091E-03   -1.5423    
  18  Prefactor     .10000E-03    2.9685        .14347E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    27.141        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    2.5120        .13194E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    2.6628        .13577E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    16.816        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.1000        .27353        .33563E-03   -.89751    
  24  Prefactor     .90793        .14200        .20282E-03   -.95865    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.55499e-09
Minuit parameter uncertainties:
  1  9.01028e-08
  2  0.000974334
  3  12.1244
  4  4.32537e-07
  5  0.205433
  6  3.88998
  7  1.78501
  8  28.8195
  9  15.8011
  10  24.2003
  11  0.192334
  12  8.27913
  13  54.297
  14  1.01164e-05
  15  21.4226
  16  9.02268e-07
  17  6.97239
  18  1.65151e-06
  19  7.67736e-05
  20  1.11048e-06
  21  7.02704e-07
  22  1.44156e-07
  23  0.273884
  24  0.142056
Done.

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

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  7.638e-01  1.923e-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.079e-01  1.421e-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.100e+00  2.739e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 45.98
Ra Dec: 343.496 16.151
Photon Index (Fixed Index): 2.02 +/- 0.00
Photon Flux (Fixed Index): 2.79e-07 +/- 7.01e-08
Energy Flux (Fixed Index): 8.94e-05 +/- 2.25e-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) = 7271.79038847
delta logL = 0.108373949379

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7271.77386753
delta logL = 0.124894893173

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .70877       1.0000         .10000E-03   10000.    
     2 'Index1    '    1.8917       1.0000          .0000       10.000    
     3 'Normalizat'    1.1238       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89923       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=   7271.774     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      201 TOTAL
                     EDM=   .55E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .70876        .18779        .37934E-02   -.65158E-03
   2  Index1        1.8917        .22106        .99626E-01   -.10648E-03
   3  Normalizat    1.1238        .21813        .75185E-01    .34304E-04
   4  Prefactor     .89923        .12022        .44995E-01    .14108E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.708763
  Index1     = 1.8917
  Normalizat = 1.12383
  Prefactor  = 0.899233
 **********
 **   18 **HESSE 
 **********

 FCN=   7271.774     FROM HESSE     STATUS=OK            31 CALLS      232 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .70876        .21101        .16780E-04   -1.5540    
   2  Index1        1.8917        .25367        .43261E-03   -.67086    
   3  Normalizat    1.1238        .25701        .33275E-03   -.88990    
   4  Prefactor     .89923        .14114        .20371E-03   -.96168    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.96603e-11
Minuit parameter uncertainties:
  1  0.211012
  2  0.253846
  3  0.257293
  4  0.141197
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/580010': 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) = 7271.77386753
delta logL = 0.12489489342

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  7.088e-01  2.110e-01  1.000e-04  1.000e+04 ( 1.000e-09)
317       Index1:  1.892e+00  2.538e-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.992e-01  1.412e-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.124e+00  2.573e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 46.24
Ra Dec: 343.496 16.151
Photon Index (Free Index): 1.89 +/- 0.25
Photon Flux (Free Index): 2.57e-07 +/- 7.65e-08
Energy Flux (Free Index): 9.43e-05 +/- 2.53e-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/580010/cmap_HighResolution_595209601_595468801_4FGL_J2253.9+1609_daily_bin1373.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.79e-07', energy_flux2='9.43e-05', photon_flux_error='7.01e-08', dlogl='1.25e-01', energy_flux='8.94e-05', photon_flux2='2.57e-07', job_status='DONE', time_completed='2021-09-29 02:20:53.882409', photon_index_error2='0.25', photon_index2='1.89', ts='45.98', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', energy_flux_error2='2.53e-05', EG='1.10', time_epoch_completed='1632907253.88', return_code='0', job_id='580010', GAL2='0.90', EG2='1.12', return_code2='0', energy_flux_error='2.25e-05', photon_flux_error2='7.65e-08', ts2='46.24', photon_index='2.02' WHERE bin_id='1373' AND source_name='4FGL J2253.9+1609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:20:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0108>
Subject: Job 580010: <4FGL_J2253.9+1609_daily_bin1373> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2253.9+1609_daily_bin1373 343.496 16.1506 595209601 595468801 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 :                                   635.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             244.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   919 sec.
    Turnaround time :                            920 sec.

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

