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


Performing analysis on: 4FGL_J2259.8-1552_daily_bin1129
RA = 344.953, Dec = -15.8809
tmin = 531964801, tmax = 532224001
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='627405', job_status='RUN', time_executed='2021-09-29 04:53:37.644887', time_epoch_executed='1632916417.64' WHERE source_name='4FGL J2259.8-1552' and cadence='daily' and bin_id='1129'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/627405

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/627405/ft1_4FGL_J2259.8-1552_daily_bin1129.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/627405/ft2_4FGL_J2259.8-1552_daily_bin1129.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/627405/ft1_4FGL_J2259.8-1552_daily_bin1129.fits outfile=/scratch/kocevski/627405/ft1_filteredMKT_4FGL_J2259.8-1552_daily_bin1129.fits ra=344.953 dec=-15.8809 rad=12.0 tmin=531964801.0 tmax=532224001.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.52
user 3.27
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/627405/ft1_filtered_4FGL_J2259.8-1552_daily_bin1129.fits" evtable="EVENTS" scfile=/scratch/kocevski/627405/ft2_4FGL_J2259.8-1552_daily_bin1129.fits sctable="SC_DATA" outfile=/scratch/kocevski/627405/ltcube_531964801_532224001_4FGL_J2259.8-1552_daily_bin1129.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/627405/ft2_4FGL_J2259.8-1552_daily_bin1129.fits
.....................!
real 11.62
user 11.24
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/627405/ft1_filtered_4FGL_J2259.8-1552_daily_bin1129.fits evtable="EVENTS" scfile=/scratch/kocevski/627405/ft2_4FGL_J2259.8-1552_daily_bin1129.fits sctable="SC_DATA" expcube=/scratch/kocevski/627405/ltcube_531964801_532224001_4FGL_J2259.8-1552_daily_bin1129.fits outfile=/scratch/kocevski/627405/expmap_531964801_532224001_4FGL_J2259.8-1552_daily_bin1129.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/627405/ltcube_531964801_532224001_4FGL_J2259.8-1552_daily_bin1129.fits
.....................!
real 193.00
user 187.50
sys 5.19

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/627405/ft1_filtered_4FGL_J2259.8-1552_daily_bin1129.fits scfile=/scratch/kocevski/627405/ft2_4FGL_J2259.8-1552_daily_bin1129.fits outfile=/scratch/kocevski/627405/cmap_531964801_532224001_4FGL_J2259.8-1552_daily_bin1129.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.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/627405/ft1_filtered_4FGL_J2259.8-1552_daily_bin1129.fits scfile=/scratch/kocevski/627405/ft2_4FGL_J2259.8-1552_daily_bin1129.fits outfile=/scratch/kocevski/627405/cmap_HighResolution_531964801_532224001_4FGL_J2259.8-1552_daily_bin1129.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/627405/ft1_filtered_4FGL_J2259.8-1552_daily_bin1129.fits evtable="EVENTS" scfile=/scratch/kocevski/627405/ft2_4FGL_J2259.8-1552_daily_bin1129.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/627405/Model_4FGL_J2259.8-1552_daily_bin1129.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/627405/ft1_filtered_4FGL_J2259.8-1552_daily_bin1129.fits.....................!
real 50.88
user 49.54
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    125.58       1.0000         .10000E-03   10000.    
     4 'norm      '    6.1451       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.3562       1.0000         .10000E-03   10000.    
     7 'norm      '    .45676       1.0000         .10000E-03   10000.    
     8 'norm      '    4.8402       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.5547       1.0000         .10000E-03   10000.    
    11 'norm      '    27.320       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10141E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    71.894       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.4046       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    18.497       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    2.9711       1.0000         .10000E-03   10000.    
    23 'Prefactor '    13.954       1.0000         .10000E-03   10000.    
    24 'Prefactor '    31.323       1.0000         .10000E-03   10000.    
    25 'Prefactor '    34.854       1.0000         .10000E-03   10000.    
    26 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    13.368       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .57874       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.3428       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=   5568.950     FROM MIGRAD    STATUS=CONVERGED    774 CALLS     4410 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    22.364       -.49434E-07** at limit **
   2  Prefactor     .10000E-03    174.50       -.39693E-07** at limit **
   3  Prefactor     125.57        94.577        .43508E-05   -.81129E-06
   4  norm          6.1451        5.0766        .58934E-07   -.47066E-04
   5  Prefactor     .10000E-03    42.882        .22185E-05** at limit **
   6  Prefactor     3.3545        8.5493        .68079E-06   -.54886E-03
   7  norm          .45690        .92981       -.96678E-07   -.71928E-03
   8  norm          4.8397        3.2516       -.63748E-07   -.32784E-05
   9  Prefactor     .10000E-03    72.846        .28923E-06** at limit **
  10  Prefactor     3.1463        1994.2        .15422E-04    .21137E-04
  11  norm          27.351        14.660       -.45315E-06   -.31702E-03
  12  Prefactor     .10000E-03    44.019       -.24511E-05** at limit **
  13  Prefactor     .10000E-03    38.351       -.33441E-06** at limit **
  14  Prefactor     71.884        30.849        .23032E-05    .50973E-05
  15  Prefactor     5.4033        9.5361        .32596E-06   -.40306E-03
  16  Prefactor     .10000E-03    10.995       -.68250E-07** at limit **
  17  Prefactor     18.497        26.298       -.29515E-05    .37812E-05
  18  Prefactor     .10000E-03    49.428        .43820E-06** at limit **
  19  Prefactor     .10000E-03    20.340        .18930E-07** at limit **
  20  Prefactor     .10000E-03    4.5681        .25737E-07** at limit **
  21  norm          .10000E-03    3.8847        .28965E-07** at limit **
  22  norm          2.9705        5.3574        .16223E-06   -.11190E-03
  23  Prefactor     13.945        73.674        .59370E-05   -.19141E-05
  24  Prefactor     31.325        27.505       -.28410E-06   -.51403E-05
  25  Prefactor     34.852        39.666       -.12999E-06   -.21627E-06
  26  norm          .10000E-03    .30977       -.63850E-08** at limit **
  27  norm          13.368        7.2735        .15141E-07    .98354E-05
  28  Normalizat    .57900        .28597       -.30258E-05   -.13187E-04
  29  Prefactor     1.3426        .22363        .65587E-06   -.73447E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 125.574
  norm       = 6.14511
  Prefactor  = 0.0001
  Prefactor  = 3.35453
  norm       = 0.456897
  norm       = 4.83968
  Prefactor  = 0.0001
  Prefactor  = 3.14633
  norm       = 27.351
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 71.8841
  Prefactor  = 5.40332
  Prefactor  = 0.0001
  Prefactor  = 18.4969
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.97047
  Prefactor  = 13.9453
  Prefactor  = 31.3251
  Prefactor  = 34.8516
  norm       = 0.0001
  norm       = 13.3678
  Normalizat = 0.579002
  Prefactor  = 1.34265
 **********
 **   18 **HESSE 
 **********

 FCN=   5568.950     FROM HESSE     STATUS=OK           555 CALLS     4965 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    22.439        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    174.77        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     125.57        91.964        .35921E-04   -1.3462    
   4  norm          6.1451        5.0639        .14513E-03   -1.5212    
   5  Prefactor     .10000E-03    42.674        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.3545        14.969        .11045E-02   -1.5342    
   7  norm          .45690        .78498        .97043E-03   -1.5573    
   8  norm          4.8397        3.2465        .10659E-03   -1.5268    
   9  Prefactor     .10000E-03    73.019        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.1463        767.48        .21437E-03   -1.5353    
  11  norm          27.351        8.9367        .43813E-04   -1.4662    
  12  Prefactor     .10000E-03    43.926        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    38.550        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     71.884        30.062        .47347E-04   -1.4010    
  15  Prefactor     5.4033        10.114        .86427E-03   -1.5243    
  16  Prefactor     .10000E-03    11.053        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     18.497        25.663        .93127E-04   -1.4848    
  18  Prefactor     .10000E-03    49.589        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    20.405        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.5804        .15575E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    3.9382        .14363E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          2.9705        5.3472        .21100E-03   -1.5363    
  23  Prefactor     13.945        71.952        .10722E-03   -1.4961    
  24  Prefactor     31.325        27.416        .71592E-04   -1.4588    
  25  Prefactor     34.852        39.560        .67880E-04   -1.4527    
  26  norm          .10000E-03    .34823        .77470E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          13.368        6.9715        .10955E-03   -1.4977    
  28  Normalizat    .57900        .31664        .42910E-03   -1.0888    
  29  Prefactor     1.3426        .25718        .24656E-03   -.82048    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.41691e-09
Minuit parameter uncertainties:
  1  8.92337e-06
  2  3.89928e-06
  3  92.0684
  4  5.06423
  5  7.26116e-06
  6  14.1781
  7  0.784994
  8  3.24663
  9  3.71732e-05
  10  99.5975
  11  8.93712
  12  2.04583e-06
  13  0.000205676
  14  30.068
  15  10.1168
  16  4.63951e-07
  17  25.6779
  18  4.10255e-05
  19  5.03806e-06
  20  4.62374e-06
  21  4.21584e-06
  22  5.34808
  23  63.4735
  24  27.4275
  25  39.5899
  26  3.46955e-07
  27  6.97191
  28  0.317636
  29  0.25742
Done.

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

Extracting fit parameters...

4FGL J2259.8-1552
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  4.640e-07  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.343e+00  2.574e-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:  5.790e-01  3.176e-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.58e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.26e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/627405/likelihoodResults_531964801_532224001_4FGL_J2259.8-1552_daily_bin1129.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) = 5568.95055852
delta logL = -0.000430467023762

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5568.95012806
delta logL = -6.12999428995e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10408E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0985       1.0000          .0000       10.000    
     3 'Normalizat'    .57907       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3426       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5568.950     FROM MIGRAD    STATUS=FAILED        96 CALLS      250 TOTAL
                     EDM=   .39E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11084E-03    11.418        .18142E-01** at limit **
   2  Index         1.8403        9.0007        .50000        .12340E-04
   3  Normalizat    .57900        .52640E-02    .42910E-03    .32429E-04
   4  Prefactor     1.3426        .44676E-02    .24656E-03    .45861E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5568.950     FROM SIMPLEX   STATUS=PROGRESS      99 CALLS      349 TOTAL
                     EDM=   .71E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10612E-03    11.418        .51978E-03** at limit **
   2  Index         1.8309        9.0007        .34101E-02    .12340E-04
   3  Normalizat    .57899        .52640E-02    .92761E-05    .32429E-04
   4  Prefactor     1.3426        .44676E-02    .48608E-05    .45861E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5568.950     FROM MIGRAD    STATUS=CONVERGED     35 CALLS      384 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10030E-03    172.92        .56845E-02** at limit **
   2  Index         1.6899        7.3647        .50000        .31070E-05
   3  Normalizat    .57899        .19507E-01    .17164E-04   -.34758E-02
   4  Prefactor     1.3426        .16556E-01    .49312E-04   -.60051E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100295
  Index      = 1.68986
  Normalizat = 0.578986
  Prefactor  = 1.34264
 **********
 **   18 **HESSE 
 **********

 FCN=   5568.950     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      413 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10030E-03    910.99        .11369E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.6899        5.6115        .50000       -.72352    
   3  Normalizat    .57899        .47736E-01    .34328E-05   -1.0888    
   4  Prefactor     1.3426        .40511E-01    .98623E-05   -.82048    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.46784e-08
Minuit parameter uncertainties:
  1  0.033329
  2  1302.46
  3  0.0477399
  4  0.0405118
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/627405': 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) = 5568.95012646
delta logL = 1.59357477969e-06

Extracting fit parameters...

4FGL J2259.8-1552
   Spectrum: PowerLaw
314    Prefactor:  1.003e-04  3.333e-02  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  1.690e+00  1.302e+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.343e+00  4.051e-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:  5.790e-01  4.774e-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/627405/cmap_HighResolution_531964801_532224001_4FGL_J2259.8-1552_daily_bin1129.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.26e-03', job_status='DONE', photon_flux_upper_limit='9.58e-08', time_completed='2021-09-29 05:06:29.219217', job_id='627405', GAL2='1.34', fit_tolerance='1e-08', EG2='0.58', EG='0.58', time_epoch_completed='1632917189.22', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.34', dlogl='1.59e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='1129' AND source_name='4FGL J2259.8-1552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 05:06:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0112>
Subject: Job 627405: <4FGL_J2259.8-1552_daily_bin1129> in cluster <slac> Done

Job <4FGL_J2259.8-1552_daily_bin1129> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Wed Sep 29 04:50:50 2021
Job was executed on host(s) <bullet0112>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 04:50:52 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:50:52 2021
Terminated at Wed Sep 29 05:06:29 2021
Results reported at Wed Sep 29 05:06:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2259.8-1552_daily_bin1129 344.953 -15.8809 531964801 532224001 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 :                                   751.44 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             295.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   937 sec.
    Turnaround time :                            939 sec.

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

