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


Performing analysis on: 4FGL_J2259.8-1552_daily_bin808
RA = 344.953, Dec = -15.8809
tmin = 448761601, tmax = 449020801
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='625806', job_status='RUN', time_executed='2021-09-29 04:48:10.152001', time_epoch_executed='1632916090.15' WHERE source_name='4FGL J2259.8-1552' and cadence='daily' and bin_id='808'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/625806

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/625806/ft1_4FGL_J2259.8-1552_daily_bin808.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/625806/ft2_4FGL_J2259.8-1552_daily_bin808.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/625806/ft1_4FGL_J2259.8-1552_daily_bin808.fits outfile=/scratch/kocevski/625806/ft1_filteredMKT_4FGL_J2259.8-1552_daily_bin808.fits ra=344.953 dec=-15.8809 rad=12.0 tmin=448761601.0 tmax=449020801.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.71
user 5.43
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/625806/ft2_4FGL_J2259.8-1552_daily_bin808.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/625806/ft1_filteredMKT_4FGL_J2259.8-1552_daily_bin808.fits evtable="EVENTS" outfile="/scratch/kocevski/625806/ft1_filtered_4FGL_J2259.8-1552_daily_bin808.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/625806/ft1_filtered_4FGL_J2259.8-1552_daily_bin808.fits" evtable="EVENTS" scfile=/scratch/kocevski/625806/ft2_4FGL_J2259.8-1552_daily_bin808.fits sctable="SC_DATA" outfile=/scratch/kocevski/625806/ltcube_448761601_449020801_4FGL_J2259.8-1552_daily_bin808.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/625806/ft2_4FGL_J2259.8-1552_daily_bin808.fits
.....................!
real 11.76
user 11.39
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/625806/ft1_filtered_4FGL_J2259.8-1552_daily_bin808.fits evtable="EVENTS" scfile=/scratch/kocevski/625806/ft2_4FGL_J2259.8-1552_daily_bin808.fits sctable="SC_DATA" expcube=/scratch/kocevski/625806/ltcube_448761601_449020801_4FGL_J2259.8-1552_daily_bin808.fits outfile=/scratch/kocevski/625806/expmap_448761601_449020801_4FGL_J2259.8-1552_daily_bin808.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/625806/ltcube_448761601_449020801_4FGL_J2259.8-1552_daily_bin808.fits
.....................!
real 190.65
user 185.08
sys 5.21

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/625806/ft1_filtered_4FGL_J2259.8-1552_daily_bin808.fits scfile=/scratch/kocevski/625806/ft2_4FGL_J2259.8-1552_daily_bin808.fits outfile=/scratch/kocevski/625806/cmap_448761601_449020801_4FGL_J2259.8-1552_daily_bin808.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/625806/ft1_filtered_4FGL_J2259.8-1552_daily_bin808.fits scfile=/scratch/kocevski/625806/ft2_4FGL_J2259.8-1552_daily_bin808.fits outfile=/scratch/kocevski/625806/cmap_HighResolution_448761601_449020801_4FGL_J2259.8-1552_daily_bin808.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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/625806/ft1_filtered_4FGL_J2259.8-1552_daily_bin808.fits evtable="EVENTS" scfile=/scratch/kocevski/625806/ft2_4FGL_J2259.8-1552_daily_bin808.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/625806/Model_4FGL_J2259.8-1552_daily_bin808.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/625806/ft1_filtered_4FGL_J2259.8-1552_daily_bin808.fits......................!
real 39.93
user 38.55
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.3464       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10149E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    64.759       1.0000         .10000E-03   10000.    
     4 'norm      '    3.8406       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .62611E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.4903       1.0000         .10000E-03   10000.    
     7 'norm      '    2.4635       1.0000         .10000E-03   10000.    
     8 'norm      '    .12705E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10147E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.839       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .46409E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10118E-03   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 '    48.331       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10142E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10525E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10104E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .38765       1.0000         .10000E-03   10000.    
    27 'norm      '    18.826       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .82762       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .98285       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=   3774.630     FROM MIGRAD    STATUS=CONVERGED    736 CALLS     3214 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.3408        15.138        .25457E-06   -.45896E-04
   2  Prefactor     .10000E-03    50.599       -.25239E-04** at limit **
   3  Prefactor     64.761        53.420        .14572E-05   -.47070E-06
   4  norm          3.8394        3.5504        .40150E-06    .52083E-03
   5  Prefactor     .10002E-03    450.94       -.13471E-03** at limit **
   6  Prefactor     2.5064        25.558        .72506E-06   -.12227E-03
   7  norm          2.4632        1.3352        .11752E-06   -.70758E-04
   8  norm          .10076E-03    1.4401        .40168E-06** at limit **
   9  Prefactor     .10000E-03    26.198       -.63697E-05** at limit **
  10  Prefactor     .10000E-03    7.3841        .47301E-07** at limit **
  11  norm          .10000E-03    .49622       -.18278E-07** at limit **
  12  Prefactor     .10000E-03    14.082        .16264E-05** at limit **
  13  Prefactor     11.846        12.554       -.38957E-07   -.20543E-04
  14  Prefactor     .10000E-03    5.3726        .38465E-07** at limit **
  15  Prefactor     .10005E-03    10.998       -.14481E-05** at limit **
  16  Prefactor     .10000E-03    11.199        .12642E-05** at limit **
  17  Prefactor     .10000E-03    4.0153       -.48514E-07** at limit **
  18  Prefactor     .10000E-03    64.424       -.83643E-05** at limit **
  19  Prefactor     48.393        46.269        .35897E-04   -.73352E-05
  20  Prefactor     .10000E-03    7.1023       -.52173E-07** at limit **
  21  norm          .10000E-03    4.2239        .47057E-08** at limit **
  22  norm          .10000E-03    13.064        .19586E-05** at limit **
  23  Prefactor     .10000E-03    34.257        .17861E-04** at limit **
  24  Prefactor     .10000E-03    12.516       -.39155E-05** at limit **
  25  Prefactor     .10000E-03    78.291        .28130E-04** at limit **
  26  norm          .38285        1.4959       -.94300E-06   -.13857E-02
  27  norm          18.876        18.422        .15019E-05    .47407E-04
  28  Normalizat    .82762        .24277       -.20632E-05    .96174E-04
  29  Prefactor     .98300        .18832       -.16849E-05    .24051E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.34077
  Prefactor  = 0.0001
  Prefactor  = 64.761
  norm       = 3.83941
  Prefactor  = 0.000100025
  Prefactor  = 2.50639
  norm       = 2.46317
  norm       = 0.000100763
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.846
  Prefactor  = 0.0001
  Prefactor  = 0.00010005
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 48.3931
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.382846
  norm       = 18.8765
  Normalizat = 0.827622
  Prefactor  = 0.982997
 **********
 **   18 **HESSE 
 **********

 FCN=   3774.630     FROM HESSE     STATUS=OK           551 CALLS     3765 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.3408        15.112        .17381E-03   -1.5246    
   2  Prefactor     .10000E-03    50.634        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     64.761        53.416        .49869E-04   -1.4097    
   4  norm          3.8394        3.5485        .10663E-03   -1.5316    
   5  Prefactor     .10002E-03    455.31        .21041E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.5064        25.305        .25902E-03   -1.5391    
   7  norm          2.4632        1.3304        .48192E-04   -1.5394    
   8  norm          .10076E-03    2.8880        .26453E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    26.210        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.4136        .16301E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .51688        .84335E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    14.091        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     11.846        12.554        .11642E-03   -1.5019    
  14  Prefactor     .10000E-03    5.3859        .13905E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10005E-03    32.265        .39295E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    11.244        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.0177        .12023E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    64.448        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     48.393        46.205        .28840E-03   -1.4316    
  20  Prefactor     .10000E-03    7.1049        .15992E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    4.2247        .12332E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    13.653        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    34.244        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    12.524        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    78.483        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .38285        1.3832        .10790E-03   -1.5584    
  27  norm          18.876        17.360        .92308E-04   -1.4839    
  28  Normalizat    .82762        .29204        .28608E-03   -.99052    
  29  Prefactor     .98300        .22754        .20948E-03   -.93298    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.15652e-09
Minuit parameter uncertainties:
  1  15.1231
  2  8.78637e-05
  3  53.4556
  4  3.54871
  5  0.00679771
  6  15.9363
  7  1.33037
  8  0.00296824
  9  2.2654e-05
  10  1.59322e-05
  11  3.25765e-06
  12  1.50733e-05
  13  12.5571
  14  7.21267e-06
  15  0.00254162
  16  1.11452e-05
  17  3.0904e-06
  18  5.68222e-06
  19  46.2389
  20  1.26952e-06
  21  1.02809e-06
  22  0.000108314
  23  5.60032e-05
  24  4.07295e-05
  25  6.17662e-05
  26  1.38329
  27  17.3645
  28  0.292594
  29  0.227757
Done.

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

Extracting fit parameters...

4FGL J2259.8-1552
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  1.115e-05  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.830e-01  2.278e-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.276e-01  2.926e-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: 9.90e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.51e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/625806/likelihoodResults_448761601_449020801_4FGL_J2259.8-1552_daily_bin808.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) = 3774.63079836
delta logL = -0.000423800690896

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3774.63037456
delta logL = 5.38102540304e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1405       1.0000          .0000       10.000    
     3 'Normalizat'    .82762       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98301       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=   3774.630     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      242 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10019E-03    86.296        .18142E-02** at limit **
   2  Index         2.1607        8.8906        .50000       -.56337E-05
   3  Normalizat    .82762        .16205E-01    .28608E-03    .44110E-05
   4  Prefactor     .98299        .12914E-01    .20948E-03    .60782E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100185
  Index      = 2.16073
  Normalizat = 0.827624
  Prefactor  = 0.982995
 **********
 **   18 **HESSE 
 **********

 FCN=   3774.630     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      271 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10019E-03    422.05        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1607        6.5998        .50000       -.60390    
   3  Normalizat    .82762        .37283E-01    .11443E-04   -.99052    
   4  Prefactor     .98299        .29712E-01    .83794E-05   -.93299    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.96155e-09
Minuit parameter uncertainties:
  1  0.017812
  2  553.788
  3  0.037284
  4  0.0297129
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/625806': 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) = 3774.63037453
delta logL = 3.43979991158e-08

Extracting fit parameters...

4FGL J2259.8-1552
   Spectrum: PowerLaw
314    Prefactor:  1.002e-04  1.781e-02  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  2.161e+00  5.538e+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.830e-01  2.971e-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.276e-01  3.728e-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/625806/cmap_HighResolution_448761601_449020801_4FGL_J2259.8-1552_daily_bin808.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.51e-03', job_status='DONE', photon_flux_upper_limit='9.90e-08', time_completed='2021-09-29 04:57:23.293471', job_id='625806', GAL2='0.98', fit_tolerance='1e-08', EG2='0.83', EG='0.83', time_epoch_completed='1632916643.29', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='3.44e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='808' AND source_name='4FGL J2259.8-1552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 04:57:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0254>
Subject: Job 625806: <4FGL_J2259.8-1552_daily_bin808> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2259.8-1552_daily_bin808 344.953 -15.8809 448761601 449020801 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 :                                   550.39 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             287.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   717 sec.
    Turnaround time :                            720 sec.

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

