/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 167 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_bin514
RA = 344.953, Dec = -15.8809
tmin = 372556801, tmax = 372816001
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='623216', job_status='RUN', time_executed='2021-09-29 04:38:49.021769', time_epoch_executed='1632915529.02' WHERE source_name='4FGL J2259.8-1552' and cadence='daily' and bin_id='514'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/623216

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/623216/ft1_4FGL_J2259.8-1552_daily_bin514.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/623216/ft2_4FGL_J2259.8-1552_daily_bin514.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/623216/ft1_4FGL_J2259.8-1552_daily_bin514.fits outfile=/scratch/kocevski/623216/ft1_filteredMKT_4FGL_J2259.8-1552_daily_bin514.fits ra=344.953 dec=-15.8809 rad=12.0 tmin=372556801.0 tmax=372816001.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.58
user 3.13
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/623216/ft2_4FGL_J2259.8-1552_daily_bin514.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/623216/ft1_filteredMKT_4FGL_J2259.8-1552_daily_bin514.fits evtable="EVENTS" outfile="/scratch/kocevski/623216/ft1_filtered_4FGL_J2259.8-1552_daily_bin514.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/623216/ft1_filtered_4FGL_J2259.8-1552_daily_bin514.fits" evtable="EVENTS" scfile=/scratch/kocevski/623216/ft2_4FGL_J2259.8-1552_daily_bin514.fits sctable="SC_DATA" outfile=/scratch/kocevski/623216/ltcube_372556801_372816001_4FGL_J2259.8-1552_daily_bin514.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/623216/ft2_4FGL_J2259.8-1552_daily_bin514.fits
.....................!
real 11.89
user 11.52
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/623216/ft1_filtered_4FGL_J2259.8-1552_daily_bin514.fits evtable="EVENTS" scfile=/scratch/kocevski/623216/ft2_4FGL_J2259.8-1552_daily_bin514.fits sctable="SC_DATA" expcube=/scratch/kocevski/623216/ltcube_372556801_372816001_4FGL_J2259.8-1552_daily_bin514.fits outfile=/scratch/kocevski/623216/expmap_372556801_372816001_4FGL_J2259.8-1552_daily_bin514.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/623216/ltcube_372556801_372816001_4FGL_J2259.8-1552_daily_bin514.fits
.....................!
real 190.94
user 185.67
sys 4.95

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/623216/ft1_filtered_4FGL_J2259.8-1552_daily_bin514.fits scfile=/scratch/kocevski/623216/ft2_4FGL_J2259.8-1552_daily_bin514.fits outfile=/scratch/kocevski/623216/cmap_372556801_372816001_4FGL_J2259.8-1552_daily_bin514.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/623216/ft1_filtered_4FGL_J2259.8-1552_daily_bin514.fits scfile=/scratch/kocevski/623216/ft2_4FGL_J2259.8-1552_daily_bin514.fits outfile=/scratch/kocevski/623216/cmap_HighResolution_372556801_372816001_4FGL_J2259.8-1552_daily_bin514.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.55
user 0.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/623216/ft1_filtered_4FGL_J2259.8-1552_daily_bin514.fits evtable="EVENTS" scfile=/scratch/kocevski/623216/ft2_4FGL_J2259.8-1552_daily_bin514.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/623216/Model_4FGL_J2259.8-1552_daily_bin514.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/623216/ft1_filtered_4FGL_J2259.8-1552_daily_bin514.fits.....................!
real 42.03
user 40.72
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.836       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10571E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    27.575       1.0000         .10000E-03   10000.    
     4 'norm      '    .77210       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    17.819       1.0000         .10000E-03   10000.    
     7 'norm      '    .10227E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10422E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .29362E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10062E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    25.689       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.7671       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2.0998       1.0000         .10000E-03   10000.    
    22 'norm      '    6.9364       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    2.2728       1.0000         .10000E-03   10000.    
    27 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .77978       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0415       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=   4595.945     FROM MIGRAD    STATUS=CONVERGED    754 CALLS     3741 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.837        26.199        .14064E-06    .77496E-04
   2  Prefactor     .10000E-03    287.59       -.90214E-06** at limit **
   3  Prefactor     27.533        71.923        .24296E-05    .66200E-04
   4  norm          .77165        2.6666        .16086E-05    .77387E-03
   5  Prefactor     .10000E-03    26.147        .69462E-08** at limit **
   6  Prefactor     17.816        14.194        .32705E-07    .19442E-05
   7  norm          .10000E-03    .59494       -.77715E-06** at limit **
   8  norm          .10000E-03    .96924        .32989E-07** at limit **
   9  Prefactor     .10000E-03    106.92        .68088E-06** at limit **
  10  Prefactor     .10050E-03    20.668       -.41430E-05** at limit **
  11  norm          .10000E-03    1.0787        .38605E-06** at limit **
  12  Prefactor     25.698        39.766       -.11586E-05    .18162E-03
  13  Prefactor     .10000E-03    6.3005        .19791E-08** at limit **
  14  Prefactor     .10000E-03    19.671       -.10358E-05** at limit **
  15  Prefactor     .10000E-03    33.481       -.10280E-05** at limit **
  16  Prefactor     .10000E-03    4.3218        .46988E-07** at limit **
  17  Prefactor     9.7698        10.252       -.88511E-06   -.32138E-03
  18  Prefactor     .10000E-03    30.387        .75917E-06** at limit **
  19  Prefactor     .10000E-03    7.8874        .41756E-07** at limit **
  20  Prefactor     .10000E-03    4.2172       -.47522E-07** at limit **
  21  norm          2.0999        5.6457        .15555E-05    .39816E-03
  22  norm          6.9364        3.9011        .52620E-07    .42902E-04
  23  Prefactor     .10000E-03    19.060        .56901E-06** at limit **
  24  Prefactor     .10000E-03    6.8549        .75707E-07** at limit **
  25  Prefactor     .10000E-03    11.110        .24918E-07** at limit **
  26  norm          2.2728        .79128        .55687E-08   -.47340E-04
  27  norm          .10000E-03    5.9135        .60241E-07** at limit **
  28  Normalizat    .77978        .20742       -.63659E-06    .24986E-03
  29  Prefactor     1.0415        .17070        .90740E-07    .39653E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.837
  Prefactor  = 0.000100002
  Prefactor  = 27.5328
  norm       = 0.771655
  Prefactor  = 0.0001
  Prefactor  = 17.816
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100504
  norm       = 0.000100002
  Prefactor  = 25.6981
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 9.76978
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.09988
  norm       = 6.93643
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.27282
  norm       = 0.0001
  Normalizat = 0.779775
  Prefactor  = 1.0415
 **********
 **   18 **HESSE 
 **********

 FCN=   4595.945     FROM HESSE     STATUS=OK           545 CALLS     4286 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.837        26.201        .10398E-03   -1.4937    
   2  Prefactor     .10000E-03    289.35        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     27.533        72.172        .76290E-04   -1.4658    
   4  norm          .77165        2.7062        .20372E-03   -1.5532    
   5  Prefactor     .10000E-03    26.148        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     17.816        14.224        .94881E-04   -1.4864    
   7  norm          .10000E-03    .78273        .91081E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    .97549        .65166E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    107.69        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10050E-03    57.574        .38539E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.6805        .12092E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     25.698        34.058        .79036E-04   -1.4694    
  13  Prefactor     .10000E-03    6.3050        .16617E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    20.148        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    34.643        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    4.3262        .13764E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     9.7698        10.244        .12822E-03   -1.5083    
  18  Prefactor     .10000E-03    30.438        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    7.8882        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.2245        .13588E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.0999        5.6774        .25683E-03   -1.5418    
  22  norm          6.9364        3.9036        .96211E-04   -1.5181    
  23  Prefactor     .10000E-03    19.091        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    6.8642        .17335E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    11.114        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          2.2728        .78811        .34191E-04   -1.5406    
  27  norm          .10000E-03    5.9846        .16030E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .77978        .24259        .28067E-03   -1.0082    
  29  Prefactor     1.0415        .19984        .20648E-03   -.91359    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.07155e-08
Minuit parameter uncertainties:
  1  26.2215
  2  0.00141817
  3  72.4025
  4  2.70662
  5  1.03585e-06
  6  14.2265
  7  5.42891e-06
  8  1.87352e-06
  9  0.00061098
  10  0.010789
  11  0.000107496
  12  34.0834
  13  6.82972e-06
  14  0.000274394
  15  0.000294707
  16  9.42288e-06
  17  10.2458
  18  0.000383386
  19  7.03814e-06
  20  1.02803e-05
  21  5.67886
  22  3.90372
  23  0.000230248
  24  7.96834e-06
  25  2.57396e-06
  26  0.788112
  27  6.6841e-06
  28  0.242924
  29  0.199986
Done.

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

Extracting fit parameters...

4FGL J2259.8-1552
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  9.423e-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.041e+00  2.000e-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:  7.798e-01  2.429e-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: 6.15e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.66e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/623216/likelihoodResults_372556801_372816001_4FGL_J2259.8-1552_daily_bin514.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) = 4595.94599651
delta logL = -0.00109696425716

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4595.94489953
delta logL = 1.22145138448e-08

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.1253       1.0000          .0000       10.000    
     3 'Normalizat'    .77976       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0415       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=   4595.945     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      242 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10071E-03    201.89        .13788E-02** at limit **
   2  Index         2.0468        8.8066        .50000        .90551E-05
   3  Normalizat    .77978        .36037E-01    .28067E-03   -.38075E-05
   4  Prefactor     1.0415        .30427E-01    .20648E-03   -.39093E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100713
  Index      = 2.04681
  Normalizat = 0.779776
  Prefactor  = 1.0415
 **********
 **   18 **HESSE 
 **********

 FCN=   4595.945     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      271 TOTAL
                     EDM=   .88E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10071E-03    713.73        .27575E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0468        6.4391        .50000       -.63185    
   3  Normalizat    .77978        .88589E-01    .11227E-04   -1.0082    
   4  Prefactor     1.0415        .74304E-01    .82590E-05   -.91359    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.822e-08
Minuit parameter uncertainties:
  1  0.0456623
  2  2342.32
  3  0.0886049
  4  0.0743115
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/623216': 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) = 4595.9448994
delta logL = 1.45597368828e-07

Extracting fit parameters...

4FGL J2259.8-1552
   Spectrum: PowerLaw
314    Prefactor:  1.007e-04  4.566e-02  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  2.047e+00  2.342e+03  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.041e+00  7.431e-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:  7.798e-01  8.860e-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/623216/cmap_HighResolution_372556801_372816001_4FGL_J2259.8-1552_daily_bin514.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.66e-03', job_status='DONE', photon_flux_upper_limit='6.15e-08', time_completed='2021-09-29 04:49:17.371061', job_id='623216', GAL2='1.04', fit_tolerance='1e-08', EG2='0.78', EG='0.78', time_epoch_completed='1632916157.37', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='1.46e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='514' AND source_name='4FGL J2259.8-1552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 04:49:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0223>
Subject: Job 623216: <4FGL_J2259.8-1552_daily_bin514> in cluster <slac> Done

Job <4FGL_J2259.8-1552_daily_bin514> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 04:35:53 2021
Job was executed on host(s) <bullet0223>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 04:35:55 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:55 2021
Terminated at Wed Sep 29 04:49:18 2021
Results reported at Wed Sep 29 04:49:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2259.8-1552_daily_bin514 344.953 -15.8809 372556801 372816001 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 :                                   620.42 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             281.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   802 sec.
    Turnaround time :                            805 sec.

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

