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


Performing analysis on: 4FGL_J2259.8-1552_daily_bin763
RA = 344.953, Dec = -15.8809
tmin = 437097601, tmax = 437356801
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='625734', job_status='RUN', time_executed='2021-09-29 04:48:48.341859', time_epoch_executed='1632916128.34' WHERE source_name='4FGL J2259.8-1552' and cadence='daily' and bin_id='763'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/625734

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/625734/ft1_4FGL_J2259.8-1552_daily_bin763.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/625734/ft2_4FGL_J2259.8-1552_daily_bin763.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/625734/ft1_4FGL_J2259.8-1552_daily_bin763.fits outfile=/scratch/kocevski/625734/ft1_filteredMKT_4FGL_J2259.8-1552_daily_bin763.fits ra=344.953 dec=-15.8809 rad=12.0 tmin=437097601.0 tmax=437356801.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 5.05
user 4.78
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/625734/ft2_4FGL_J2259.8-1552_daily_bin763.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/625734/ft1_filteredMKT_4FGL_J2259.8-1552_daily_bin763.fits evtable="EVENTS" outfile="/scratch/kocevski/625734/ft1_filtered_4FGL_J2259.8-1552_daily_bin763.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.51
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/625734/ft1_filtered_4FGL_J2259.8-1552_daily_bin763.fits" evtable="EVENTS" scfile=/scratch/kocevski/625734/ft2_4FGL_J2259.8-1552_daily_bin763.fits sctable="SC_DATA" outfile=/scratch/kocevski/625734/ltcube_437097601_437356801_4FGL_J2259.8-1552_daily_bin763.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/625734/ft2_4FGL_J2259.8-1552_daily_bin763.fits
.....................!
real 12.40
user 12.04
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/625734/ft1_filtered_4FGL_J2259.8-1552_daily_bin763.fits evtable="EVENTS" scfile=/scratch/kocevski/625734/ft2_4FGL_J2259.8-1552_daily_bin763.fits sctable="SC_DATA" expcube=/scratch/kocevski/625734/ltcube_437097601_437356801_4FGL_J2259.8-1552_daily_bin763.fits outfile=/scratch/kocevski/625734/expmap_437097601_437356801_4FGL_J2259.8-1552_daily_bin763.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/625734/ltcube_437097601_437356801_4FGL_J2259.8-1552_daily_bin763.fits
.....................!
real 192.38
user 186.52
sys 5.44

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/625734/ft1_filtered_4FGL_J2259.8-1552_daily_bin763.fits scfile=/scratch/kocevski/625734/ft2_4FGL_J2259.8-1552_daily_bin763.fits outfile=/scratch/kocevski/625734/cmap_437097601_437356801_4FGL_J2259.8-1552_daily_bin763.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.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/625734/ft1_filtered_4FGL_J2259.8-1552_daily_bin763.fits scfile=/scratch/kocevski/625734/ft2_4FGL_J2259.8-1552_daily_bin763.fits outfile=/scratch/kocevski/625734/cmap_HighResolution_437097601_437356801_4FGL_J2259.8-1552_daily_bin763.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/625734/ft1_filtered_4FGL_J2259.8-1552_daily_bin763.fits evtable="EVENTS" scfile=/scratch/kocevski/625734/ft2_4FGL_J2259.8-1552_daily_bin763.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/625734/Model_4FGL_J2259.8-1552_daily_bin763.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/625734/ft1_filtered_4FGL_J2259.8-1552_daily_bin763.fits.....................!
real 31.18
user 29.83
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/625734/ft1_filtered_4FGL_J2259.8-1552_daily_bin763.fits', '/scratch/kocevski/625734/ft2_4FGL_J2259.8-1552_daily_bin763.fits', expMap='/scratch/kocevski/625734/expmap_437097601_437356801_4FGL_J2259.8-1552_daily_bin763.fits', expCube='/scratch/kocevski/625734/ltcube_437097601_437356801_4FGL_J2259.8-1552_daily_bin763.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/625734/Model_4FGL_J2259.8-1552_daily_bin763.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/625734/ft1_filtered_4FGL_J2259.8-1552_daily_bin763.fits
Spacecraft file(s): /scratch/kocevski/625734/ft2_4FGL_J2259.8-1552_daily_bin763.fits
Exposure map: /scratch/kocevski/625734/expmap_437097601_437356801_4FGL_J2259.8-1552_daily_bin763.fits
Exposure cube: /scratch/kocevski/625734/ltcube_437097601_437356801_4FGL_J2259.8-1552_daily_bin763.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/625734/Model_4FGL_J2259.8-1552_daily_bin763.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) = 2687.75406022

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10230E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    440.36       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10511E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .87487E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .66928E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .46689E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.7155       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.0132       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .18515E-02   1.0000         .10000E-03   10000.    
    11 'norm      '    .11050E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.4301       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10165E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    14.585       1.0000         .10000E-03   10000.    
    15 'Prefactor '    19.110       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10450E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    24.515       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10325E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10038E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    52.466       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10277E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .12024E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .41520       1.0000         .10000E-03   10000.    
    27 'norm      '    11.119       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .81383       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .99479       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=   2687.745     FROM MIGRAD    STATUS=CONVERGED    741 CALLS     3755 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.285        .92460E-06** at limit **
   2  Prefactor     440.53        189.05       -.66739E-05   -.21625E-04
   3  Prefactor     .10000E-03    65.340       -.91687E-06** at limit **
   4  norm          .10002E-03    4.5504        .75435E-06** at limit **
   5  Prefactor     .10000E-03    41.961        .24200E-06** at limit **
   6  Prefactor     .10008E-03    19.749       -.19440E-05** at limit **
   7  norm          .10010E-03    .98945        .20924E-06** at limit **
   8  norm          1.7155        2.3056        .47086E-06    .13919E-03
   9  Prefactor     5.0480        207.79       -.71857E-05    .20860E-04
  10  Prefactor     .10001E-03    283.38       -.48677E-05** at limit **
  11  norm          .10000E-03    2.3964       -.20174E-05** at limit **
  12  Prefactor     8.4661        55.052       -.46393E-05    .98983E-05
  13  Prefactor     .10000E-03    9.8185       -.12153E-06** at limit **
  14  Prefactor     14.590        15.621       -.43514E-06    .72174E-04
  15  Prefactor     19.105        20.087        .19196E-06    .46818E-05
  16  Prefactor     .10000E-03    4.3007       -.93362E-07** at limit **
  17  Prefactor     .10000E-03    17.709       -.96506E-06** at limit **
  18  Prefactor     .10000E-03    61.794       -.15866E-05** at limit **
  19  Prefactor     24.495        37.052        .23652E-06   -.93276E-05
  20  Prefactor     .10000E-03    7.2357       -.60797E-06** at limit **
  21  norm          .10000E-03    3.3515       -.23784E-06** at limit **
  22  norm          .10000E-03    3.1264       -.52889E-06** at limit **
  23  Prefactor     52.515        89.970       -.39766E-05   -.12247E-04
  24  Prefactor     .10000E-03    33.858        .37672E-05** at limit **
  25  Prefactor     .10000E-03    23.057       -.56121E-06** at limit **
  26  norm          .41548        .81484       -.33356E-07   -.49986E-04
  27  norm          11.110        9.7084        .29916E-06   -.47324E-04
  28  Normalizat    .81420        .31594        .59813E-05    .88919E-04
  29  Prefactor     .99440        .24802       -.32253E-05    .44261E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 440.527
  Prefactor  = 0.0001
  norm       = 0.000100022
  Prefactor  = 0.0001
  Prefactor  = 0.000100081
  norm       = 0.000100097
  norm       = 1.71555
  Prefactor  = 5.04804
  Prefactor  = 0.000100011
  norm       = 0.0001
  Prefactor  = 8.46615
  Prefactor  = 0.0001
  Prefactor  = 14.5898
  Prefactor  = 19.1051
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.4955
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 52.5147
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.415484
  norm       = 11.1104
  Normalizat = 0.814201
  Prefactor  = 0.994396
 **********
 **   18 **HESSE 
 **********

 FCN=   2687.745     FROM HESSE     STATUS=OK           571 CALLS     4326 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.307        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     440.53        192.62        .97478E-04   -1.1479    
   3  Prefactor     .10000E-03    65.350        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10002E-03    8.9162        .37743E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    41.929        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10008E-03    74.427        .41020E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10010E-03    2.3178        .16110E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.7155        2.2757        .83340E-04   -1.5446    
   9  Prefactor     5.0480        191.19        .17960E-03   -1.5259    
  10  Prefactor     .10001E-03    278.71        .40341E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    2.7104        .11863E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     8.4661        52.396        .13807E-03   -1.5126    
  13  Prefactor     .10000E-03    9.8198        .15864E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     14.590        15.619        .10488E-03   -1.4944    
  15  Prefactor     19.105        20.063        .91622E-04   -1.4834    
  16  Prefactor     .10000E-03    4.3012        .10501E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    17.744        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    61.891        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     24.495        37.038        .80904E-04   -1.4718    
  20  Prefactor     .10000E-03    7.2542        .13620E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    3.3535        .92696E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    3.1731        .89477E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     52.515        90.301        .55371E-04   -1.4257    
  24  Prefactor     .10000E-03    33.908        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    23.037        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .41548        .75036        .57930E-03   -1.5579    
  27  norm          11.110        9.7207        .60073E-03   -1.5041    
  28  Normalizat    .81420        .35525        .28556E-03   -.99544    
  29  Prefactor     .99440        .28070        .21421E-03   -.92917    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.65674e-09
Minuit parameter uncertainties:
  1  2.53769e-05
  2  192.908
  3  5.33498e-05
  4  0.000877655
  5  2.04516e-05
  6  0.004916
  7  0.000948467
  8  2.27581
  9  62.3486
  10  0.00343755
  11  6.39646e-06
  12  42.1779
  13  4.11255e-06
  14  15.6231
  15  20.0704
  16  6.32602e-08
  17  9.48277e-06
  18  2.83236e-05
  19  37.0731
  20  1.46332e-07
  21  1.51493e-07
  22  9.89908e-07
  23  90.5378
  24  1.04063e-05
  25  1.8813e-05
  26  0.750372
  27  9.72211
  28  0.356268
  29  0.281108
Done.

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

Extracting fit parameters...

4FGL J2259.8-1552
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  6.326e-08  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:  9.944e-01  2.811e-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:  8.142e-01  3.563e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 344.953 -15.881
Photon Flux Upper Limit: 7.03e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.33e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/625734/likelihoodResults_437097601_437356801_4FGL_J2259.8-1552_daily_bin763.txt

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): 102
logL (Free Index) = 2687.74563284
delta logL = -0.00101435241277

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2687.74461827
delta logL = 2.11099631997e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1063       1.0000          .0000       10.000    
     3 'Normalizat'    .81423       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99435       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2687.745     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      240 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10270E-03    7.2392        .10826E-01** at limit **
   2  Index         2.0250        6.3366        .50000        .43855E-04
   3  Normalizat    .81419        .83790E-02    .28557E-03   -.49304E-04
   4  Prefactor     .99440        .69280E-02    .21421E-03    .65019E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102696
  Index      = 2.02496
  Normalizat = 0.814195
  Prefactor  = 0.9944
 **********
 **   18 **HESSE 
 **********

 FCN=   2687.745     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      269 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10270E-03    66.598        .11136E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0250        5.1059        .50000       -.63728    
   3  Normalizat    .81419        .25764E-01    .11423E-04   -.99544    
   4  Prefactor     .99440        .21303E-01    .42842E-04   -.92916    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.00393e-08
Minuit parameter uncertainties:
  1  0.0268267
  2  259.783
  3  0.0257648
  4  0.0213032
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/625734': 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): 102
logL (Free Index) = 2687.74461747
delta logL = 1.00887245935e-06

Extracting fit parameters...

4FGL J2259.8-1552
   Spectrum: PowerLaw
314    Prefactor:  1.027e-04  2.683e-02  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  2.025e+00  2.598e+02  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:  9.944e-01  2.130e-02  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:  8.142e-01  2.576e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 344.953 -15.881

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/625734/cmap_HighResolution_437097601_437356801_4FGL_J2259.8-1552_daily_bin763.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.33e-03', job_status='DONE', photon_flux_upper_limit='7.03e-08', time_completed='2021-09-29 04:57:14.641122', job_id='625734', GAL2='0.99', fit_tolerance='1e-08', EG2='0.81', EG='0.81', time_epoch_completed='1632916634.64', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='1.01e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='763' AND source_name='4FGL J2259.8-1552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 04:57:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0084>
Subject: Job 625734: <4FGL_J2259.8-1552_daily_bin763> in cluster <slac> Done

Job <4FGL_J2259.8-1552_daily_bin763> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 04:45:17 2021
Job was executed on host(s) <bullet0084>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 04:45:19 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:45:19 2021
Terminated at Wed Sep 29 04:57:15 2021
Results reported at Wed Sep 29 04:57:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2259.8-1552_daily_bin763 344.953 -15.8809 437097601 437356801 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 :                                   505.26 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             281.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   715 sec.
    Turnaround time :                            718 sec.

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

