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


Performing analysis on: 4FGL_J2253.9+1609_daily_bin930
RA = 343.496, Dec = 16.1506
tmin = 480384001, tmax = 480643201
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='578263', job_status='RUN', time_executed='2021-09-29 02:00:38.283332', time_epoch_executed='1632906038.28' WHERE source_name='4FGL J2253.9+1609' and cadence='daily' and bin_id='930'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/578263

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/578263/ft1_4FGL_J2253.9+1609_daily_bin930.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/578263/ft2_4FGL_J2253.9+1609_daily_bin930.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/578263/ft1_4FGL_J2253.9+1609_daily_bin930.fits outfile=/scratch/kocevski/578263/ft1_filteredMKT_4FGL_J2253.9+1609_daily_bin930.fits ra=343.496 dec=16.1506 rad=12.0 tmin=480384001.0 tmax=480643201.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.55
user 3.27
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/578263/ft1_filtered_4FGL_J2253.9+1609_daily_bin930.fits evtable="EVENTS" scfile=/scratch/kocevski/578263/ft2_4FGL_J2253.9+1609_daily_bin930.fits sctable="SC_DATA" expcube=/scratch/kocevski/578263/ltcube_480384001_480643201_4FGL_J2253.9+1609_daily_bin930.fits outfile=/scratch/kocevski/578263/expmap_480384001_480643201_4FGL_J2253.9+1609_daily_bin930.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/578263/ltcube_480384001_480643201_4FGL_J2253.9+1609_daily_bin930.fits
.....................!
real 192.69
user 187.00
sys 5.32

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/578263/ft1_filtered_4FGL_J2253.9+1609_daily_bin930.fits scfile=/scratch/kocevski/578263/ft2_4FGL_J2253.9+1609_daily_bin930.fits outfile=/scratch/kocevski/578263/cmap_480384001_480643201_4FGL_J2253.9+1609_daily_bin930.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/578263/ft1_filtered_4FGL_J2253.9+1609_daily_bin930.fits scfile=/scratch/kocevski/578263/ft2_4FGL_J2253.9+1609_daily_bin930.fits outfile=/scratch/kocevski/578263/cmap_HighResolution_480384001_480643201_4FGL_J2253.9+1609_daily_bin930.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/578263/ft1_filtered_4FGL_J2253.9+1609_daily_bin930.fits evtable="EVENTS" scfile=/scratch/kocevski/578263/ft2_4FGL_J2253.9+1609_daily_bin930.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/578263/Model_4FGL_J2253.9+1609_daily_bin930.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/578263/ft1_filtered_4FGL_J2253.9+1609_daily_bin930.fits.....................!
real 126.11
user 124.65
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    2.7776       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .54983E-01   1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.1464       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.7522       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.9456       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.7597       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.5687       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.0375       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .24664       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.5906       1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.7058       1.0000         .10000E-03   10000.    
    19 'Prefactor '    17.694       1.0000         .10000E-03   10000.    
    20 'norm      '    .10149E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10224E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.3396       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .90599       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=   12132.78     FROM MIGRAD    STATUS=CONVERGED    965 CALLS     2794 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.2576        .18142E-02** at limit **
   2  norm          2.7787        4.4757        .24418E-03   -.22814E-03
   3  Prefactor     .10000E-03    5.4201        .18142E-02** at limit **
   4  Prefactor     .10009E-03    7.4075        .84397E-01** at limit **
   5  Prefactor     7.1462        .49489        .19307E-04    .24604E-02
   6  Prefactor     .10000E-03    5.7903        .18142E-02** at limit **
   7  norm          2.7523        1.5061        .97075E-04   -.52701E-04
   8  Prefactor     .10000E-03    15.620        .18142E-02** at limit **
   9  Prefactor     .10000E-03    3.4679        .18142E-02** at limit **
  10  Prefactor     3.9164        43.294        .20308E-03    .25214E-03
  11  Prefactor     2.7598        .29991        .18052E-04    .39383E-02
  12  Prefactor     .10000E-03    5.9399        .18142E-02** at limit **
  13  Prefactor     .10000E-03    8.7999        .18142E-02** at limit **
  14  Prefactor     4.5675        8.2595        .18833E-03    .25909E-03
  15  Prefactor     5.0328        10.439        .17916E-03    .15674E-03
  16  Prefactor     .20010        12.287        .12152        .33260E-03
  17  Prefactor     2.5855        7.8616        .25352E-03    .21902E-03
  18  Prefactor     6.7035        8.4154        .15495E-03    .12619E-03
  19  Prefactor     17.693        21.586        .95214E-04    .43242E-03
  20  norm          .10000E-03    8.5298        .18142E-02** at limit **
  21  Prefactor     .10000E-03    3.2270        .18142E-02** at limit **
  22  norm          .10000E-03    29.996        .36285E-03** at limit **
  23  Normalizat    1.3398        .27617        .41510E-03    .58812E-03
  24  Prefactor     .90613        .14087        .26299E-03    .92651E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 2.77872
  Prefactor  = 0.0001
  Prefactor  = 0.000100095
  Prefactor  = 7.14617
  Prefactor  = 0.0001
  norm       = 2.75227
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.91639
  Prefactor  = 2.75976
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.56749
  Prefactor  = 5.03281
  Prefactor  = 0.200104
  Prefactor  = 2.58549
  Prefactor  = 6.70354
  Prefactor  = 17.6935
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.33982
  Prefactor  = 0.906131
 **********
 **   18 **HESSE 
 **********

 FCN=   12132.78     FROM HESSE     STATUS=OK           393 CALLS     3187 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.2578        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.7787        4.4754        .97670E-05   -1.5375    
   3  Prefactor     .10000E-03    5.4204        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10009E-03    7.1908        .86288E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.1462        .49488        .38613E-05   -1.5173    
   6  Prefactor     .10000E-03    5.7919        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.7523        1.5061        .38830E-05   -1.5376    
   8  Prefactor     .10000E-03    15.621        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.4681        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.9164        43.264        .81232E-05   -1.5312    
  11  Prefactor     2.7598        .29986        .36105E-05   -1.5376    
  12  Prefactor     .10000E-03    5.9410        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    8.8000        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.5675        8.2585        .75331E-05   -1.5281    
  15  Prefactor     5.0328        10.438        .71663E-05   -1.5259    
  16  Prefactor     .20010        12.063        .12352       -1.5619    
  17  Prefactor     2.5855        7.8568        .10141E-04   -1.5386    
  18  Prefactor     6.7035        8.4149        .61981E-05   -1.5190    
  19  Prefactor     17.693        21.578        .19043E-04   -1.4866    
  20  norm          .10000E-03    8.5345        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    3.2278        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    29.998        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.3398        .27640        .83020E-04   -.82385    
  24  Prefactor     .90613        .14100        .52599E-04   -.95927    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.31302e-09
Minuit parameter uncertainties:
  1  8.3513e-05
  2  4.47592
  3  3.71178e-05
  4  0.00164996
  5  0.494877
  6  1.67862e-05
  7  1.50608
  8  0.000118993
  9  1.95275e-05
  10  26.0574
  11  0.299865
  12  2.7126e-05
  13  3.19302e-05
  14  8.26056
  15  10.4415
  16  3.10725
  17  7.85994
  18  8.41639
  19  21.5875
  20  3.69535e-05
  21  2.71562e-05
  22  0.000100342
  23  0.276708
  24  0.141052
Done.

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

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  2.760e+00  2.999e-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.061e-01  1.411e-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.340e+00  2.767e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 289.21
Ra Dec: 343.496 16.151
Photon Index (Fixed Index): 2.02 +/- 0.00
Photon Flux (Fixed Index): 1.01e-06 +/- 1.09e-07
Energy Flux (Fixed Index): 3.23e-04 +/- 3.51e-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) = 12132.4138439
delta logL = 0.362712472552

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 12132.4128089
delta logL = 0.363747465324

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.8896       1.0000         .10000E-03   10000.    
     2 'Index1    '    2.1233       1.0000          .0000       10.000    
     3 'Normalizat'    1.2879       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92579       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=   12132.41     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      201 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.8896        .31016        .41271E-02    .16950E-05
   2  Index1        2.1232        .11493        .65631E-01   -.10516E-03
   3  Normalizat    1.2880        .22849        .95087E-01    .25200E-04
   4  Prefactor     .92575        .12055        .45333E-01    .14900E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.88962
  Index1     = 2.12325
  Normalizat = 1.28795
  Prefactor  = 0.925753
 **********
 **   18 **HESSE 
 **********

 FCN=   12132.41     FROM HESSE     STATUS=OK            29 CALLS      230 TOTAL
                     EDM=   .40E-15    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.8896        .32851        .18243E-04   -1.5368    
   2  Index1        2.1232        .12279        .28799E-03   -.61303    
   3  Normalizat    1.2880        .27037        .42122E-03   -.83927    
   4  Prefactor     .92575        .14215        .26046E-03   -.95247    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.97813e-16
Minuit parameter uncertainties:
  1  0.328513
  2  0.122806
  3  0.270663
  4  0.142208
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/578263': 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) = 12132.4128089
delta logL = 0.363747512374

Extracting fit parameters...

4FGL J2253.9+1609
   Spectrum: PLSuperExpCutoff2
316    Prefactor:  2.890e+00  3.285e-01  1.000e-04  1.000e+04 ( 1.000e-09)
317       Index1:  2.123e+00  1.228e-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.258e-01  1.422e-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.288e+00  2.707e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 283.83
Ra Dec: 343.496 16.151
Photon Index (Free Index): 2.12 +/- 0.12
Photon Flux (Free Index): 1.06e-06 +/- 1.28e-07
Energy Flux (Free Index): 3.11e-04 +/- 3.48e-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/578263/cmap_HighResolution_480384001_480643201_4FGL_J2253.9+1609_daily_bin930.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.01e-06', energy_flux2='3.11e-04', photon_flux_error='1.09e-07', dlogl='3.64e-01', energy_flux='3.23e-04', photon_flux2='1.06e-06', job_status='DONE', time_completed='2021-09-29 02:15:43.913081', photon_index_error2='0.12', photon_index2='2.12', ts='289.21', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', energy_flux_error2='3.48e-05', EG='1.34', time_epoch_completed='1632906943.91', return_code='0', job_id='578263', GAL2='0.93', EG2='1.29', return_code2='0', energy_flux_error='3.51e-05', photon_flux_error2='1.28e-07', ts2='283.83', photon_index='2.02' WHERE bin_id='930' AND source_name='4FGL J2253.9+1609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:15:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0070>
Subject: Job 578263: <4FGL_J2253.9+1609_daily_bin930> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2253.9+1609_daily_bin930 343.496 16.1506 480384001 480643201 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 :                                   901.37 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             359.18 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   924 sec.
    Turnaround time :                            925 sec.

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

