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


Performing analysis on: 4FGL_J2259.8-1552_daily_bin453
RA = 344.953, Dec = -15.8809
tmin = 356745601, tmax = 357004801
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='623115', job_status='RUN', time_executed='2021-09-29 04:38:03.941080', time_epoch_executed='1632915483.94' WHERE source_name='4FGL J2259.8-1552' and cadence='daily' and bin_id='453'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/623115

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/623115/ft1_4FGL_J2259.8-1552_daily_bin453.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/623115/ft2_4FGL_J2259.8-1552_daily_bin453.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/623115/ft1_4FGL_J2259.8-1552_daily_bin453.fits outfile=/scratch/kocevski/623115/ft1_filteredMKT_4FGL_J2259.8-1552_daily_bin453.fits ra=344.953 dec=-15.8809 rad=12.0 tmin=356745601.0 tmax=357004801.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.49
user 3.28
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/623115/ft2_4FGL_J2259.8-1552_daily_bin453.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/623115/ft2_4FGL_J2259.8-1552_daily_bin453.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/623115/ft1_filteredMKT_4FGL_J2259.8-1552_daily_bin453.fits evtable="EVENTS" outfile="/scratch/kocevski/623115/ft1_filtered_4FGL_J2259.8-1552_daily_bin453.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.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/623115/ft1_filtered_4FGL_J2259.8-1552_daily_bin453.fits" evtable="EVENTS" scfile=/scratch/kocevski/623115/ft2_4FGL_J2259.8-1552_daily_bin453.fits sctable="SC_DATA" outfile=/scratch/kocevski/623115/ltcube_356745601_357004801_4FGL_J2259.8-1552_daily_bin453.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/623115/ft2_4FGL_J2259.8-1552_daily_bin453.fits
.....................!
real 12.12
user 11.75
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/623115/ft1_filtered_4FGL_J2259.8-1552_daily_bin453.fits evtable="EVENTS" scfile=/scratch/kocevski/623115/ft2_4FGL_J2259.8-1552_daily_bin453.fits sctable="SC_DATA" expcube=/scratch/kocevski/623115/ltcube_356745601_357004801_4FGL_J2259.8-1552_daily_bin453.fits outfile=/scratch/kocevski/623115/expmap_356745601_357004801_4FGL_J2259.8-1552_daily_bin453.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/623115/ltcube_356745601_357004801_4FGL_J2259.8-1552_daily_bin453.fits
.....................!
real 190.65
user 185.03
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 161 point sources and 0 extended sources

Setting source of interest to:
4FGL J2259.8-1552 @ 344.953 -15.8809

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/623115/ft1_filtered_4FGL_J2259.8-1552_daily_bin453.fits scfile=/scratch/kocevski/623115/ft2_4FGL_J2259.8-1552_daily_bin453.fits outfile=/scratch/kocevski/623115/cmap_356745601_357004801_4FGL_J2259.8-1552_daily_bin453.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=344.953 yref=-15.8809 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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/623115/ft1_filtered_4FGL_J2259.8-1552_daily_bin453.fits scfile=/scratch/kocevski/623115/ft2_4FGL_J2259.8-1552_daily_bin453.fits outfile=/scratch/kocevski/623115/cmap_HighResolution_356745601_357004801_4FGL_J2259.8-1552_daily_bin453.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=344.953 yref=-15.8809 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/623115/ft1_filtered_4FGL_J2259.8-1552_daily_bin453.fits evtable="EVENTS" scfile=/scratch/kocevski/623115/ft2_4FGL_J2259.8-1552_daily_bin453.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/623115/Model_4FGL_J2259.8-1552_daily_bin453.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/623115/ft1_filtered_4FGL_J2259.8-1552_daily_bin453.fits.....................!
real 53.34
user 51.71
sys 1.54

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/623115/ft1_filtered_4FGL_J2259.8-1552_daily_bin453.fits', '/scratch/kocevski/623115/ft2_4FGL_J2259.8-1552_daily_bin453.fits', expMap='/scratch/kocevski/623115/expmap_356745601_357004801_4FGL_J2259.8-1552_daily_bin453.fits', expCube='/scratch/kocevski/623115/ltcube_356745601_357004801_4FGL_J2259.8-1552_daily_bin453.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/623115/Model_4FGL_J2259.8-1552_daily_bin453.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2259.8-1552'

4FGL J2259.8-1552
   Spectrum: PowerLaw
314    Prefactor:  2.289e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  2.132e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
316        Scale:  1.486e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/623115/ft1_filtered_4FGL_J2259.8-1552_daily_bin453.fits
Spacecraft file(s): /scratch/kocevski/623115/ft2_4FGL_J2259.8-1552_daily_bin453.fits
Exposure map: /scratch/kocevski/623115/expmap_356745601_357004801_4FGL_J2259.8-1552_daily_bin453.fits
Exposure cube: /scratch/kocevski/623115/ltcube_356745601_357004801_4FGL_J2259.8-1552_daily_bin453.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/623115/Model_4FGL_J2259.8-1552_daily_bin453.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) = 6103.55392179

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.935       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10106E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    2.0885       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    33.769       1.0000         .10000E-03   10000.    
     7 'norm      '    5.1130       1.0000         .10000E-03   10000.    
     8 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .16702E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    20.117       1.0000         .10000E-03   10000.    
    14 'Prefactor '    35.008       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.7285       1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.404       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.4351       1.0000         .10000E-03   10000.    
    21 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    27.429       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .80697       1.0000         .10000E-03   10000.    
    27 'norm      '    .70827       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.1090       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .83014       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5160E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6103.535     FROM MIGRAD    STATUS=CONVERGED    726 CALLS     3764 TOTAL
                     EDM=   .21E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.938        17.309        .26865E-06    .24607E-04
   2  Prefactor     .10000E-03    105.83       -.57556E-05** at limit **
   3  Prefactor     .10000E-03    14.201       -.38102E-06** at limit **
   4  norm          2.0885        3.8241        .29689E-06    .61450E-04
   5  Prefactor     .10000E-03    24.853        .19997E-06** at limit **
   6  Prefactor     33.766        16.428       -.23994E-06   -.14689E-03
   7  norm          5.1131        1.2516        .12105E-07    .87708E-04
   8  norm          .10000E-03    1.7767       -.72951E-07** at limit **
   9  Prefactor     .10000E-03    119.82        .63667E-05** at limit **
  10  Prefactor     .10000E-03    7.4240        .37958E-07** at limit **
  11  norm          .10000E-03    .33508       -.33824E-07** at limit **
  12  Prefactor     .10000E-03    17.420        .77054E-07** at limit **
  13  Prefactor     20.116        18.753        .18971E-07   -.36796E-04
  14  Prefactor     35.011        16.614       -.65570E-07   -.12975E-03
  15  Prefactor     3.7272        8.7372        .31753E-05   -.16477E-04
  16  Prefactor     10.405        7.8949       -.62421E-07   -.42271E-05
  17  Prefactor     .10000E-03    5.6234       -.38568E-07** at limit **
  18  Prefactor     .10000E-03    16.932       -.14967E-06** at limit **
  19  Prefactor     .10000E-03    8.8153       -.11131E-06** at limit **
  20  Prefactor     5.4330        7.7651        .11744E-06    .38447E-05
  21  norm          .10000E-03    3.4134       -.97581E-08** at limit **
  22  norm          .10000E-03    .90205       -.48104E-09** at limit **
  23  Prefactor     27.437        30.200       -.33026E-06    .25151E-05
  24  Prefactor     .10000E-03    4.8600        .18784E-07** at limit **
  25  Prefactor     .10000E-03    12.619        .39265E-06** at limit **
  26  norm          .80703        .61938       -.13654E-07    .10525E-03
  27  norm          .70832        6.3615        .91595E-06   -.67737E-05
  28  Normalizat    1.1087        .19692       -.23260E-06   -.46023E-04
  29  Prefactor     .83040        .15557       -.28342E-06    .70243E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.9375
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.08851
  Prefactor  = 0.0001
  Prefactor  = 33.7663
  norm       = 5.1131
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.1164
  Prefactor  = 35.0108
  Prefactor  = 3.72717
  Prefactor  = 10.4045
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.43303
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 27.4366
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.807027
  norm       = 0.708321
  Normalizat = 1.10868
  Prefactor  = 0.830404
 **********
 **   18 **HESSE 
 **********

 FCN=   6103.535     FROM HESSE     STATUS=OK           549 CALLS     4313 TOTAL
                     EDM=   .40E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.938        17.324        .10364E-03   -1.4935    
   2  Prefactor     .10000E-03    105.84        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    14.203        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.0885        3.8076        .19481E-03   -1.5419    
   5  Prefactor     .10000E-03    24.856        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     33.766        16.560        .68958E-04   -1.4545    
   7  norm          5.1131        1.2505        .41328E-04   -1.5256    
   8  norm          .10000E-03    1.8229        .20314E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    120.33        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.4897        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .50934        .87446E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    17.501        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     20.116        18.753        .89300E-04   -1.4811    
  14  Prefactor     35.011        16.656        .67730E-04   -1.4524    
  15  Prefactor     3.7272        8.7408        .10456E-02   -1.5322    
  16  Prefactor     10.405        7.8950        .62109E-03   -1.5063    
  17  Prefactor     .10000E-03    5.6412        .18083E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    16.937        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    8.8197        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     5.4330        7.7495        .17236E-03   -1.5242    
  21  norm          .10000E-03    3.4362        .14078E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    .90508        .72453E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     27.437        30.238        .76493E-04   -1.4660    
  24  Prefactor     .10000E-03    4.8625        .16820E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    12.625        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .80703        .60978        .47978E-04   -1.5528    
  27  norm          .70832        6.1758        .35116E-03   -1.5540    
  28  Normalizat    1.1087        .23437        .26281E-03   -.89474    
  29  Prefactor     .83040        .18444        .24231E-03   -.98617    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.95999e-11
Minuit parameter uncertainties:
  1  17.33
  2  5.7829e-05
  3  5.28747e-07
  4  3.80803
  5  1.7638e-06
  6  16.562
  7  1.2505
  8  3.07339e-06
  9  0.000109643
  10  4.37195e-06
  11  1.98906e-06
  12  7.80766e-06
  13  18.7582
  14  16.658
  15  8.74384
  16  7.89581
  17  1.28078e-06
  18  9.40072e-07
  19  1.32667e-06
  20  7.75088
  21  8.00115e-07
  22  9.22086e-08
  23  30.2545
  24  1.61852e-06
  25  1.14828e-06
  26  0.609782
  27  4.18332
  28  0.234587
  29  0.184575
Done.

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

Extracting fit parameters...

4FGL J2259.8-1552
   Spectrum: PowerLaw
314    Prefactor:  1.040e+01  7.896e+00  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  2.132e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
316        Scale:  1.486e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
513    Prefactor:  8.304e-01  1.846e-01  0.000e+00  1.000e+01 ( 1.000e+00)
514        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
515        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
512   Normalization:  1.109e+00  2.346e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.40
Ra Dec: 344.953 -15.881
Photon Index (Fixed Index): 2.13 +/- 0.00
Photon Flux (Fixed Index): 2.90e-08 +/- 2.20e-08
Energy Flux (Fixed Index): 1.49e-05 +/- 1.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) = 6101.2374064
delta logL = 2.29739916238

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6101.2367042
delta logL = 2.29810136184

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.751       1.0000         .10000E-03   10000.    
     2 'Index     '    1.1349       1.0000          .0000       10.000    
     3 'Normalizat'    1.1265       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82365       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5160E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6101.237     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      208 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.751        8.0340        .30548E-02   -.95534E-03
   2  Index         1.1348        .33018        .18490       -.12389E-04
   3  Normalizat    1.1265        .18763        .58981E-01   -.13314E-04
   4  Prefactor     .82366        .15277        .44024E-01    .26437E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.751
  Index      = 1.13485
  Normalizat = 1.12648
  Prefactor  = 0.823659
 **********
 **   18 **HESSE 
 **********

 FCN=   6101.237     FROM HESSE     STATUS=OK            33 CALLS      241 TOTAL
                     EDM=   .64E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.751        9.8354        .12219E-03   -1.5052    
   2  Index         1.1348        .42169        .78346E-02   -.88360    
   3  Normalizat    1.1265        .22133        .26084E-03   -.88906    
   4  Prefactor     .82366        .18032        .24310E-03   -.98862    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.39337e-10
Minuit parameter uncertainties:
  1  9.83686
  2  0.422943
  3  0.221508
  4  0.180446
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/623115': 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) = 6101.2367042
delta logL = 2.29810136304

Extracting fit parameters...

4FGL J2259.8-1552
   Spectrum: PowerLaw
314    Prefactor:  1.075e+01  9.837e+00  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  1.135e+00  4.229e-01  0.000e+00  1.000e+01 (-1.000e+00)
316        Scale:  1.486e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
513    Prefactor:  8.237e-01  1.804e-01  0.000e+00  1.000e+01 ( 1.000e+00)
514        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
515        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
512   Normalization:  1.126e+00  2.215e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.99
Ra Dec: 344.953 -15.881
Photon Index (Free Index): 1.13 +/- 0.42
Photon Flux (Free Index): 1.03e-08 +/- 8.90e-09
Energy Flux (Free Index): 1.04e-04 +/- 1.10e-04

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/623115/cmap_HighResolution_356745601_357004801_4FGL_J2259.8-1552_daily_bin453.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.90e-08', energy_flux2='1.04e-04', photon_flux_error='2.20e-08', dlogl='2.30e+00', energy_flux='1.49e-05', photon_flux2='1.03e-08', job_status='DONE', time_completed='2021-09-29 04:49:03.233335', photon_index_error2='0.42', photon_index2='1.13', ts='5.40', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', energy_flux_error2='1.10e-04', EG='1.11', time_epoch_completed='1632916143.23', return_code='0', job_id='623115', GAL2='0.82', EG2='1.13', return_code2='0', energy_flux_error='1.13e-05', photon_flux_error2='8.90e-09', ts2='9.99', photon_index='2.13' WHERE bin_id='453' AND source_name='4FGL J2259.8-1552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 04:49:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0051>
Subject: Job 623115: <4FGL_J2259.8-1552_daily_bin453> in cluster <slac> Done

Job <4FGL_J2259.8-1552_daily_bin453> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 04:35:43 2021
Job was executed on host(s) <bullet0051>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 04:35:44 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 04:35:44 2021
Terminated at Wed Sep 29 04:49:04 2021
Results reported at Wed Sep 29 04:49:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2259.8-1552_daily_bin453 344.953 -15.8809 356745601 357004801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2259.8-1552 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   658.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             290.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   799 sec.
    Turnaround time :                            801 sec.

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

