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


Performing analysis on: 4FGL_J2259.8-1552_daily_bin914
RA = 344.953, Dec = -15.8809
tmin = 476236801, tmax = 476496001
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='625967', job_status='RUN', time_executed='2021-09-29 04:45:52.478105', time_epoch_executed='1632915952.48' WHERE source_name='4FGL J2259.8-1552' and cadence='daily' and bin_id='914'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/625967

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/625967/ft1_4FGL_J2259.8-1552_daily_bin914.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/625967/ft2_4FGL_J2259.8-1552_daily_bin914.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/625967/ft1_4FGL_J2259.8-1552_daily_bin914.fits outfile=/scratch/kocevski/625967/ft1_filteredMKT_4FGL_J2259.8-1552_daily_bin914.fits ra=344.953 dec=-15.8809 rad=12.0 tmin=476236801.0 tmax=476496001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.49
user 3.26
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/625967/ft1_filtered_4FGL_J2259.8-1552_daily_bin914.fits" evtable="EVENTS" scfile=/scratch/kocevski/625967/ft2_4FGL_J2259.8-1552_daily_bin914.fits sctable="SC_DATA" outfile=/scratch/kocevski/625967/ltcube_476236801_476496001_4FGL_J2259.8-1552_daily_bin914.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/625967/ft2_4FGL_J2259.8-1552_daily_bin914.fits
.....................!
real 11.83
user 11.49
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/625967/ft1_filtered_4FGL_J2259.8-1552_daily_bin914.fits evtable="EVENTS" scfile=/scratch/kocevski/625967/ft2_4FGL_J2259.8-1552_daily_bin914.fits sctable="SC_DATA" expcube=/scratch/kocevski/625967/ltcube_476236801_476496001_4FGL_J2259.8-1552_daily_bin914.fits outfile=/scratch/kocevski/625967/expmap_476236801_476496001_4FGL_J2259.8-1552_daily_bin914.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/625967/ltcube_476236801_476496001_4FGL_J2259.8-1552_daily_bin914.fits
.....................!
real 190.51
user 185.41
sys 4.75

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/625967/ft1_filtered_4FGL_J2259.8-1552_daily_bin914.fits scfile=/scratch/kocevski/625967/ft2_4FGL_J2259.8-1552_daily_bin914.fits outfile=/scratch/kocevski/625967/cmap_476236801_476496001_4FGL_J2259.8-1552_daily_bin914.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/625967/ft1_filtered_4FGL_J2259.8-1552_daily_bin914.fits scfile=/scratch/kocevski/625967/ft2_4FGL_J2259.8-1552_daily_bin914.fits outfile=/scratch/kocevski/625967/cmap_HighResolution_476236801_476496001_4FGL_J2259.8-1552_daily_bin914.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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/625967/ft1_filtered_4FGL_J2259.8-1552_daily_bin914.fits evtable="EVENTS" scfile=/scratch/kocevski/625967/ft2_4FGL_J2259.8-1552_daily_bin914.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/625967/Model_4FGL_J2259.8-1552_daily_bin914.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/625967/ft1_filtered_4FGL_J2259.8-1552_daily_bin914.fits.....................!
real 50.27
user 48.92
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.468       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.9601       1.0000         .10000E-03   10000.    
     4 'norm      '    8.9430       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    15.112       1.0000         .10000E-03   10000.    
     7 'norm      '    5.3726       1.0000         .10000E-03   10000.    
     8 'norm      '    1.7275       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .80315       1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.3290       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .72553       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.2989       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10505E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.1858       1.0000         .10000E-03   10000.    
    22 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    44.669       1.0000         .10000E-03   10000.    
    26 'norm      '    1.5466       1.0000         .10000E-03   10000.    
    27 'norm      '    .52326E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .98200       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0567       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=   5569.330     FROM MIGRAD    STATUS=CONVERGED    746 CALLS     3709 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.466        22.121        .77649E-06    .90114E-04
   2  Prefactor     .10000E-03    50.578        .13001E-05** at limit **
   3  Prefactor     8.9554        87.069       -.26833E-06   -.18351E-04
   4  norm          8.9417        5.1081        .16066E-06    .16287E-03
   5  Prefactor     .10000E-03    27.692        .99396E-06** at limit **
   6  Prefactor     15.107        16.238        .24740E-06   -.11988E-04
   7  norm          5.3724        1.4494       -.46468E-09   -.26260E-03
   8  norm          1.7280        1.7051       -.93866E-07   -.34502E-03
   9  Prefactor     .10000E-03    22.644       -.13173E-06** at limit **
  10  Prefactor     .10000E-03    16.830        .19583E-06** at limit **
  11  norm          .80284        .91869       -.38612E-07   -.65178E-03
  12  Prefactor     8.3334        39.299       -.17739E-05   -.92788E-04
  13  Prefactor     .35254        22.875        .94426E-06   -.18463E-04
  14  Prefactor     4.4537        11.993       -.13663E-05   -.35554E-03
  15  Prefactor     .10000E-03    12.292       -.31114E-06** at limit **
  16  Prefactor     .10000E-03    6.2480        .55912E-07** at limit **
  17  Prefactor     .10000E-03    10.052        .19049E-08** at limit **
  18  Prefactor     .10000E-03    32.017        .91762E-07** at limit **
  19  Prefactor     .10000E-03    10.174       -.14400E-06** at limit **
  20  Prefactor     .10002E-03    12.014        .51131E-05** at limit **
  21  norm          1.1871        3.6461        .22153E-05    .63167E-03
  22  norm          .10000E-03    1.8740       -.51118E-07** at limit **
  23  Prefactor     .10001E-03    37.605       -.18247E-05** at limit **
  24  Prefactor     .10000E-03    10.291        .32642E-06** at limit **
  25  Prefactor     44.675        43.828        .20118E-06   -.66267E-06
  26  norm          1.5469        .79062        .36374E-07    .88123E-03
  27  norm          .10001E-03    4.4656       -.76664E-06** at limit **
  28  Normalizat    .98164        .22610       -.11856E-05   -.31009E-03
  29  Prefactor     1.0570        .17858        .45916E-06   -.30059E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.4664
  Prefactor  = 0.000100004
  Prefactor  = 8.95538
  norm       = 8.9417
  Prefactor  = 0.000100002
  Prefactor  = 15.1071
  norm       = 5.37243
  norm       = 1.72801
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.802841
  Prefactor  = 8.33336
  Prefactor  = 0.352539
  Prefactor  = 4.45372
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100025
  norm       = 1.18709
  norm       = 0.0001
  Prefactor  = 0.000100008
  Prefactor  = 0.0001
  Prefactor  = 44.6748
  norm       = 1.54688
  norm       = 0.000100008
  Normalizat = 0.981639
  Prefactor  = 1.05704
 **********
 **   18 **HESSE 
 **********

 FCN=   5569.330     FROM HESSE     STATUS=NOT POSDEF   553 CALLS     4262 TOTAL
                     EDM=   .53E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.466        22.079        .12384E-03   -1.5061    
   2  Prefactor     .10000E-03    50.282        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     8.9554        86.825        .13390E-03   -1.5109    
   4  norm          8.9417        5.1057        .12155E-03   -1.5110    
   5  Prefactor     .10000E-03    27.570        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     15.107        16.438        .10303E-03   -1.4930    
   7  norm          5.3724        1.4458        .44120E-04   -1.5244    
   8  norm          1.7280        1.8268        .93959E-04   -1.5445    
   9  Prefactor     .10000E-03    22.375        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    16.778        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .80284        .87720        .66087E-04   -1.5529    
  12  Prefactor     8.3334        37.289        .13891E-03   -1.5131    
  13  Prefactor     .35254        9155.9        .53988E-02   -1.5589    
  14  Prefactor     4.4537        907.09        .19430E-03   -1.5286    
  15  Prefactor     .10000E-03    12.361        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    6.1926        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    10.022        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    31.642        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    10.053        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10002E-03    14.390        .32524E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.1871        3.6869        .25096E-03   -1.5490    
  22  norm          .10000E-03    1.8667        .99645E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10001E-03    37.826        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    10.214        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     44.675        43.583        .59987E-04   -1.4370    
  26  norm          1.5469        .74073        .42885E-04   -1.5459    
  27  norm          .10001E-03    22.944        .27815E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .98164        .37084        .28987E-03   -.93648    
  29  Prefactor     1.0570        .32656        .23438E-03   -.90851    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.30361e-06
Minuit parameter uncertainties:
  1  22.0965
  2  0.000878283
  3  55.8752
  4  5.10595
  5  0.000524107
  6  16.4431
  7  1.44577
  8  1.82687
  9  7.41166e-05
  10  4.78613e-05
  11  0.877211
  12  35.2921
  13  237.473
  14  129.155
  15  0.000113138
  16  9.54629e-06
  17  1.52989e-05
  18  4.45107e-05
  19  4.08761e-05
  20  0.00119308
  21  3.6876
  22  1.77802e-06
  23  0.001071
  24  0.000121108
  25  43.6136
  26  0.740731
  27  0.000869438
  28  0.371815
  29  0.327176
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 5569.33004382

Extracting fit parameters...

4FGL J2259.8-1552
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  9.546e-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.057e+00  3.272e-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:  9.816e-01  3.718e-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.73e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.10e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/625967/likelihoodResults_476236801_476496001_4FGL_J2259.8-1552_daily_bin914.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) = 5569.33080255
delta logL = -0.000758730995585

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5569.33004409
delta logL = -2.71627868642e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1246       1.0000          .0000       10.000    
     3 'Normalizat'    .98148       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0572       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=   5569.330     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      231 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10024E-03    79.644        .18142E-02** at limit **
   2  Index         2.0971        6.9807        .50000        .75723E-05
   3  Normalizat    .98164        .18913E-01    .28987E-03    .59222E-05
   4  Prefactor     1.0570        .15889E-01    .23438E-03    .71302E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100239
  Index      = 2.09712
  Normalizat = 0.981641
  Prefactor  = 1.05704
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10024E-03    355.84        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0971        8.6369        .50000       -.61944    
   3  Normalizat    .98164        .42378E-01    .11595E-04   -.93648    
   4  Prefactor     1.0570        .35595E-01    .93754E-05   -.90851    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.30999e-09
Minuit parameter uncertainties:
  1  0.0185606
  2  807.548
  3  0.0423798
  4  0.0355958
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/625967': 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) = 5569.33004377
delta logL = 5.37793312105e-08

Extracting fit parameters...

4FGL J2259.8-1552
   Spectrum: PowerLaw
314    Prefactor:  1.002e-04  1.856e-02  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  2.097e+00  8.075e+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.057e+00  3.560e-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:  9.816e-01  4.238e-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/625967/cmap_HighResolution_476236801_476496001_4FGL_J2259.8-1552_daily_bin914.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.10e-03', job_status='DONE', photon_flux_upper_limit='6.73e-08', time_completed='2021-09-29 04:57:39.639720', job_id='625967', GAL2='1.06', fit_tolerance='1e-08', EG2='0.98', EG='0.98', time_epoch_completed='1632916659.64', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='102', GAL='1.06', dlogl='5.38e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='914' AND source_name='4FGL J2259.8-1552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 04:57:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0242>
Subject: Job 625967: <4FGL_J2259.8-1552_daily_bin914> in cluster <slac> Done

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

Your job looked like:

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

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

