/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 225 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 = 7424
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2259.8-1552_daily_bin1
RA = 344.953, Dec = -15.8809
tmin = 239587201, tmax = 239846401
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='620435', job_status='RUN', time_executed='2021-09-29 04:29:19.923660', time_epoch_executed='1632914959.92' WHERE source_name='4FGL J2259.8-1552' and cadence='daily' and bin_id='1'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/620435

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

Retrieving the FT1 file...

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

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

Retrieving 41 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/620435/ft1_4FGL_J2259.8-1552_daily_bin1.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/620435/ft2_4FGL_J2259.8-1552_daily_bin1.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/620435/ft1_4FGL_J2259.8-1552_daily_bin1.fits outfile=/scratch/kocevski/620435/ft1_filteredMKT_4FGL_J2259.8-1552_daily_bin1.fits ra=344.953 dec=-15.8809 rad=12.0 tmin=239587201.0 tmax=239846401.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 1.33
user 1.11
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/620435/ft1_filtered_4FGL_J2259.8-1552_daily_bin1.fits" evtable="EVENTS" scfile=/scratch/kocevski/620435/ft2_4FGL_J2259.8-1552_daily_bin1.fits sctable="SC_DATA" outfile=/scratch/kocevski/620435/ltcube_239587201_239846401_4FGL_J2259.8-1552_daily_bin1.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/620435/ft2_4FGL_J2259.8-1552_daily_bin1.fits
.....................!
real 13.29
user 12.88
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/620435/ft1_filtered_4FGL_J2259.8-1552_daily_bin1.fits evtable="EVENTS" scfile=/scratch/kocevski/620435/ft2_4FGL_J2259.8-1552_daily_bin1.fits sctable="SC_DATA" expcube=/scratch/kocevski/620435/ltcube_239587201_239846401_4FGL_J2259.8-1552_daily_bin1.fits outfile=/scratch/kocevski/620435/expmap_239587201_239846401_4FGL_J2259.8-1552_daily_bin1.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/620435/ltcube_239587201_239846401_4FGL_J2259.8-1552_daily_bin1.fits
.....................!
real 190.97
user 185.46
sys 5.14

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/620435/ft1_filtered_4FGL_J2259.8-1552_daily_bin1.fits scfile=/scratch/kocevski/620435/ft2_4FGL_J2259.8-1552_daily_bin1.fits outfile=/scratch/kocevski/620435/cmap_239587201_239846401_4FGL_J2259.8-1552_daily_bin1.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/620435/ft1_filtered_4FGL_J2259.8-1552_daily_bin1.fits scfile=/scratch/kocevski/620435/ft2_4FGL_J2259.8-1552_daily_bin1.fits outfile=/scratch/kocevski/620435/cmap_HighResolution_239587201_239846401_4FGL_J2259.8-1552_daily_bin1.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.53
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/620435/ft1_filtered_4FGL_J2259.8-1552_daily_bin1.fits evtable="EVENTS" scfile=/scratch/kocevski/620435/ft2_4FGL_J2259.8-1552_daily_bin1.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/620435/Model_4FGL_J2259.8-1552_daily_bin1.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/620435/ft1_filtered_4FGL_J2259.8-1552_daily_bin1.fits.....................!
real 53.94
user 51.94
sys 1.71

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    37.040       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .14019E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    11.800       1.0000         .10000E-03   10000.    
     5 'Prefactor '    65.524       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10060E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .69627       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    13.726       1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.0288       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10097E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    3.3050       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10547E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    1.0320       1.0000         .10000E-03   10000.    
    27 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .63239       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0118       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=   6197.179     FROM MIGRAD    STATUS=CONVERGED    764 CALLS     3714 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     37.034        20.575       -.88847E-06    .84336E-04
   2  Prefactor     .10001E-03    827.64       -.39622E-04** at limit **
   3  Prefactor     .10000E-03    75.336        .85273E-05** at limit **
   4  norm          11.798        4.1770        .18699E-07    .15266E-03
   5  Prefactor     65.515        65.697       -.54891E-06    .38300E-05
   6  Prefactor     .10000E-03    4.4006        .39122E-07** at limit **
   7  norm          .10000E-03    .42952       -.36287E-07** at limit **
   8  norm          .69621        .99148       -.17450E-06   -.13761E-02
   9  Prefactor     .10000E-03    9.5705       -.77081E-07** at limit **
  10  Prefactor     .10000E-03    2.6079       -.71431E-07** at limit **
  11  norm          .10000E-03    .17704       -.67798E-07** at limit **
  12  Prefactor     13.732        16.535        .35411E-05   -.53351E-05
  13  Prefactor     6.0264        9.0641       -.22826E-05   -.76565E-04
  14  Prefactor     .10000E-03    4.5531        .91484E-07** at limit **
  15  Prefactor     .10000E-03    2.6226       -.83099E-07** at limit **
  16  Prefactor     .10000E-03    2.2187       -.22576E-07** at limit **
  17  Prefactor     .10000E-03    4.4929        .56117E-08** at limit **
  18  Prefactor     .10000E-03    141.36        .63214E-04** at limit **
  19  Prefactor     .10000E-03    61.757       -.21447E-05** at limit **
  20  Prefactor     .10000E-03    6.1390       -.26017E-06** at limit **
  21  norm          .10000E-03    1.4442       -.10298E-06** at limit **
  22  norm          3.3045        2.7334        .14393E-07   -.40077E-04
  23  Prefactor     .10000E-03    125.51       -.60145E-04** at limit **
  24  Prefactor     .10000E-03    19.130        .28515E-06** at limit **
  25  Prefactor     .10000E-03    12.372        .11038E-06** at limit **
  26  norm          1.0320        .46075        .18038E-08    .91181E-03
  27  norm          .10000E-03    2.3328        .15735E-07** at limit **
  28  Normalizat    .63253        .15723       -.54198E-06    .65500E-04
  29  Prefactor     1.0118        .13264        .30500E-06    .32921E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 37.0343
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  norm       = 11.7983
  Prefactor  = 65.5154
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.696212
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 13.732
  Prefactor  = 6.02637
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.30447
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.03204
  norm       = 0.0001
  Normalizat = 0.632526
  Prefactor  = 1.0118
 **********
 **   18 **HESSE 
 **********

 FCN=   6197.179     FROM HESSE     STATUS=OK           541 CALLS     4255 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     37.034        20.561        .65853E-04   -1.4490    
   2  Prefactor     .10001E-03    846.74        .36372E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    75.735        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          11.798        4.1734        .90039E-04   -1.5021    
   5  Prefactor     65.515        65.709        .49579E-04   -1.4087    
   6  Prefactor     .10000E-03    4.4629        .16126E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.8056        .99566E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .69621        .99243        .24095E-03   -1.5541    
   9  Prefactor     .10000E-03    9.5759        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.6097        .12406E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .17795        .32157E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     13.732        16.466        .10811E-03   -1.4967    
  13  Prefactor     6.0264        9.0547        .16353E-03   -1.5217    
  14  Prefactor     .10000E-03    4.5918        .16381E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.6275        .12450E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.2209        .11451E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.5305        .16293E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    142.24        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    63.180        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    6.2640        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    1.4491        .92383E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          3.3045        2.7300        .11334E-03   -1.5344    
  23  Prefactor     .10000E-03    126.21        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    19.422        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    12.398        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          1.0320        .45820        .34515E-04   -1.5505    
  27  norm          .10000E-03    2.3614        .11711E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .63253        .18569        .27200E-03   -1.0662    
  29  Prefactor     1.0118        .15714        .18987E-03   -.92337    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.97372e-10
Minuit parameter uncertainties:
  1  20.5654
  2  0.00502386
  3  2.6855e-06
  4  4.17348
  5  65.7823
  6  1.75823e-06
  7  2.49308e-06
  8  0.99245
  9  7.2571e-06
  10  1.62457e-05
  11  3.12628e-06
  12  16.4717
  13  9.0568
  14  3.2268e-05
  15  5.52596e-06
  16  2.25346e-06
  17  9.75458e-06
  18  0.00155046
  19  0.000166393
  20  6.06077e-05
  21  3.80617e-06
  22  2.73014
  23  0.000834606
  24  0.000115828
  25  2.72869e-06
  26  0.458202
  27  3.78206e-06
  28  0.185869
  29  0.157213
Done.

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

Extracting fit parameters...

4FGL J2259.8-1552
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  2.253e-06  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:  1.012e+00  1.572e-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:  6.325e-01  1.859e-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: 3.39e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.57e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/620435/likelihoodResults_239587201_239846401_4FGL_J2259.8-1552_daily_bin1.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) = 6197.18154625
delta logL = -0.00212324698168

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6197.17942408
delta logL = -1.07345476863e-06

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 'Index     '    2.1121       1.0000          .0000       10.000    
     3 'Normalizat'    .63250       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0117       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=   6197.179     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      252 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.3925        .11629E-01** at limit **
   2  Index         1.6404        9.1018        .50000        .35272E-06
   3  Normalizat    .63253        .70605E-02    .27200E-03    .13998E-03
   4  Prefactor     1.0118        .61637E-02    .18987E-03    .22757E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.64041
  Normalizat = 0.632526
  Prefactor  = 1.0118
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    99.778        .12763E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.6404        8.1851        .50000       -.73680    
   3  Normalizat    .63253        .23900E-01    .10880E-04   -1.0662    
   4  Prefactor     1.0118        .20865E-01    .37975E-04   -.92337    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.89403e-09
Minuit parameter uncertainties:
  1  6.34231e-06
  2  576.564
  3  0.0239008
  4  0.0208648
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/620435': 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) = 6197.17941863
delta logL = 4.37561720901e-06

Extracting fit parameters...

4FGL J2259.8-1552
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  6.342e-06  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  1.640e+00  5.766e+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:  1.012e+00  2.086e-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:  6.325e-01  2.390e-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/620435/cmap_HighResolution_239587201_239846401_4FGL_J2259.8-1552_daily_bin1.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.57e-03', job_status='DONE', photon_flux_upper_limit='3.39e-08', time_completed='2021-09-29 04:41:31.923180', job_id='620435', GAL2='1.01', fit_tolerance='1e-08', EG2='0.63', EG='0.63', time_epoch_completed='1632915691.92', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='4.38e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='1' AND source_name='4FGL J2259.8-1552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 04:41:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0119>
Subject: Job 620435: <4FGL_J2259.8-1552_daily_bin1> in cluster <slac> Done

Job <4FGL_J2259.8-1552_daily_bin1> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 04:25:21 2021
Job was executed on host(s) <bullet0119>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 04:25:22 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:25:22 2021
Terminated at Wed Sep 29 04:41:32 2021
Results reported at Wed Sep 29 04:41:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2259.8-1552_daily_bin1 344.953 -15.8809 239587201 239846401 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 :                                   732.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             232.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   970 sec.
    Turnaround time :                            971 sec.

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

