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


Performing analysis on: 4FGL_J2259.8-1552_daily_bin56
RA = 344.953, Dec = -15.8809
tmin = 253843201, tmax = 254102401
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='621378', job_status='RUN', time_executed='2021-09-29 04:32:55.628382', time_epoch_executed='1632915175.63' WHERE source_name='4FGL J2259.8-1552' and cadence='daily' and bin_id='56'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/621378

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/621378/ft1_4FGL_J2259.8-1552_daily_bin56.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/621378/ft2_4FGL_J2259.8-1552_daily_bin56.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/621378/ft1_4FGL_J2259.8-1552_daily_bin56.fits outfile=/scratch/kocevski/621378/ft1_filteredMKT_4FGL_J2259.8-1552_daily_bin56.fits ra=344.953 dec=-15.8809 rad=12.0 tmin=253843201.0 tmax=254102401.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.48
user 1.29
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/621378/ft1_filtered_4FGL_J2259.8-1552_daily_bin56.fits" evtable="EVENTS" scfile=/scratch/kocevski/621378/ft2_4FGL_J2259.8-1552_daily_bin56.fits sctable="SC_DATA" outfile=/scratch/kocevski/621378/ltcube_253843201_254102401_4FGL_J2259.8-1552_daily_bin56.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/621378/ft2_4FGL_J2259.8-1552_daily_bin56.fits
.....................!
real 13.70
user 13.30
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/621378/ft1_filtered_4FGL_J2259.8-1552_daily_bin56.fits evtable="EVENTS" scfile=/scratch/kocevski/621378/ft2_4FGL_J2259.8-1552_daily_bin56.fits sctable="SC_DATA" expcube=/scratch/kocevski/621378/ltcube_253843201_254102401_4FGL_J2259.8-1552_daily_bin56.fits outfile=/scratch/kocevski/621378/expmap_253843201_254102401_4FGL_J2259.8-1552_daily_bin56.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/621378/ltcube_253843201_254102401_4FGL_J2259.8-1552_daily_bin56.fits
.....................!
real 193.15
user 188.01
sys 4.68

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/621378/ft1_filtered_4FGL_J2259.8-1552_daily_bin56.fits scfile=/scratch/kocevski/621378/ft2_4FGL_J2259.8-1552_daily_bin56.fits outfile=/scratch/kocevski/621378/cmap_253843201_254102401_4FGL_J2259.8-1552_daily_bin56.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.59
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/621378/ft1_filtered_4FGL_J2259.8-1552_daily_bin56.fits scfile=/scratch/kocevski/621378/ft2_4FGL_J2259.8-1552_daily_bin56.fits outfile=/scratch/kocevski/621378/cmap_HighResolution_253843201_254102401_4FGL_J2259.8-1552_daily_bin56.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=344.953 yref=-15.8809 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/621378/ft1_filtered_4FGL_J2259.8-1552_daily_bin56.fits evtable="EVENTS" scfile=/scratch/kocevski/621378/ft2_4FGL_J2259.8-1552_daily_bin56.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/621378/Model_4FGL_J2259.8-1552_daily_bin56.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/621378/ft1_filtered_4FGL_J2259.8-1552_daily_bin56.fits.....................!
real 58.97
user 57.43
sys 1.31

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    100.40       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.6470       1.0000         .10000E-03   10000.    
     4 'norm      '    6.8448       1.0000         .10000E-03   10000.    
     5 'Prefactor '    39.584       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.1217       1.0000         .10000E-03   10000.    
     8 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    34.998       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.0437       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.0741       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.1857       1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.652       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    24.995       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .27519       1.0000         .10000E-03   10000.    
    23 'Prefactor '    45.074       1.0000         .10000E-03   10000.    
    24 'Prefactor '    5.4658       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    5.7207       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .72119       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .97316       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=   7124.588     FROM MIGRAD    STATUS=CONVERGED    689 CALLS     3744 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.5414       -.23110E-06** at limit **
   2  Prefactor     100.40        67.775        .50901E-07    .14211E-04
   3  Prefactor     4.6465        43.462       -.99106E-07   -.42753E-05
   4  norm          6.8448        3.9785       -.11300E-07   -.66040E-04
   5  Prefactor     39.582        87.921       -.65659E-06   -.74633E-05
   6  Prefactor     .10000E-03    4.0558       -.58324E-06** at limit **
   7  norm          1.1216        .74907        .13524E-07   -.14506E-03
   8  norm          .10000E-03    1.2695       -.12035E-05** at limit **
   9  Prefactor     34.974        34.356       -.58519E-05   -.47948E-03
  10  Prefactor     .10000E-03    5.7509       -.57543E-07** at limit **
  11  norm          1.0436        .67670       -.58541E-08   -.26022E-03
  12  Prefactor     .10000E-03    10.076        .59321E-06** at limit **
  13  Prefactor     3.0742        5.9183        .56026E-05   -.53213E-03
  14  Prefactor     .10000E-03    3.4495       -.16480E-06** at limit **
  15  Prefactor     4.1855        5.0438        .14589E-05   -.33268E-03
  16  Prefactor     11.652        9.9367       -.11241E-06   -.18272E-04
  17  Prefactor     .10000E-03    4.3448        .21834E-06** at limit **
  18  Prefactor     25.003        26.949        .21771E-05    .27889E-03
  19  Prefactor     .10000E-03    14.505       -.24845E-07** at limit **
  20  Prefactor     .10000E-03    2.2010        .18579E-06** at limit **
  21  norm          .10000E-03    .99766        .58287E-07** at limit **
  22  norm          .27543        1.2449        .95674E-06   -.14601E-03
  23  Prefactor     45.039        53.394       -.91542E-05   -.49619E-03
  24  Prefactor     5.4684        15.642        .41850E-05   -.14546E-04
  25  Prefactor     .10000E-03    9.3373       -.59352E-06** at limit **
  26  norm          .10000E-03    .11627       -.23572E-07** at limit **
  27  norm          5.7207        3.6156       -.24410E-07   -.15765E-03
  28  Normalizat    .72112        .15443        .24578E-05   -.12271E-03
  29  Prefactor     .97321        .13228       -.13196E-05    .15391E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 100.401
  Prefactor  = 4.64651
  norm       = 6.84485
  Prefactor  = 39.5815
  Prefactor  = 0.0001
  norm       = 1.12163
  norm       = 0.000100001
  Prefactor  = 34.9743
  Prefactor  = 0.0001
  norm       = 1.04356
  Prefactor  = 0.0001
  Prefactor  = 3.07415
  Prefactor  = 0.0001
  Prefactor  = 4.18553
  Prefactor  = 11.6524
  Prefactor  = 0.0001
  Prefactor  = 25.0025
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.27543
  Prefactor  = 45.0391
  Prefactor  = 5.46843
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 5.72067
  Normalizat = 0.72112
  Prefactor  = 0.973211
 **********
 **   18 **HESSE 
 **********

 FCN=   7124.588     FROM HESSE     STATUS=OK           547 CALLS     4291 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.5468        .15516E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     100.40        67.766        .40122E-04   -1.3701    
   3  Prefactor     4.6465        43.343        .18670E-03   -1.5277    
   4  norm          6.8448        3.9704        .11468E-03   -1.5185    
   5  Prefactor     39.582        87.963        .63708E-04   -1.4449    
   6  Prefactor     .10000E-03    4.0686        .16591E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.1216        .72873        .56592E-04   -1.5496    
   8  norm          .10000E-03    1.2806        .18245E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     34.974        34.859        .67740E-04   -1.4524    
  10  Prefactor     .10000E-03    5.7842        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.0436        .65698        .53529E-04   -1.5504    
  12  Prefactor     .10000E-03    10.120        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.0742        6.1887        .11567E-02   -1.5357    
  14  Prefactor     .10000E-03    3.4690        .15313E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.1855        5.0777        .98493E-03   -1.5299    
  16  Prefactor     11.652        9.9375        .11736E-03   -1.5025    
  17  Prefactor     .10000E-03    4.3880        .17183E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     25.003        27.060        .80124E-04   -1.4707    
  19  Prefactor     .10000E-03    14.580        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.2131        .12219E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    .99982        .82324E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .27543        1.1992        .18333E-03   -1.5603    
  23  Prefactor     45.039        55.326        .59718E-04   -1.4365    
  24  Prefactor     5.4684        15.696        .17187E-03   -1.5240    
  25  Prefactor     .10000E-03    9.3555        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    .12072        .55680E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          5.7207        3.5850        .12202E-03   -1.5230    
  28  Normalizat    .72112        .17772        .26418E-03   -1.0307    
  29  Prefactor     .97321        .15413        .20239E-03   -.93628    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.60365e-09
Minuit parameter uncertainties:
  1  1.82822e-05
  2  67.8178
  3  28.4096
  4  3.97051
  5  88.2535
  6  1.08108e-05
  7  0.728736
  8  5.0838e-05
  9  34.879
  10  1.44031e-05
  11  0.656984
  12  4.00446e-05
  13  6.19001
  14  2.9025e-06
  15  5.07819
  16  9.93892
  17  1.72643e-05
  18  27.0733
  19  3.1787e-05
  20  1.02791e-05
  21  1.89615e-06
  22  1.14925
  23  55.3892
  24  15.708
  25  6.53601e-05
  26  3.94712e-07
  27  3.58509
  28  0.177859
  29  0.154198
Done.

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

Extracting fit parameters...

4FGL J2259.8-1552
   Spectrum: PowerLaw
314    Prefactor:  1.165e+01  9.939e+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

GAL_V02
   Spectrum: PowerLaw
513    Prefactor:  9.732e-01  1.542e-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.211e-01  1.779e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.95
Ra Dec: 344.953 -15.881
Photon Index (Fixed Index): 2.13 +/- 0.00
Photon Flux (Fixed Index): 3.25e-08 +/- 2.77e-08
Energy Flux (Fixed Index): 1.67e-05 +/- 1.42e-05

TS (Fixed Index): 1.95
Ra Dec: 344.953 -15.881
Photon Flux Upper Limit: 9.13e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.92e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/621378/likelihoodResults_253843201_254102401_4FGL_J2259.8-1552_daily_bin56.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): 0
logL (Free Index) = 7123.79475276
delta logL = 0.793388959158

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7123.7629565
delta logL = 0.825185223668

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.9680       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1249       1.0000          .0000       10.000    
     3 'Normalizat'    .67282       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0015       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.

 FCN=   7123.763     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      254 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.9681        31.020        .58922E-02    .29934E-03
   2  Index         3.1251        2.3384        .11214        .17816E-03
   3  Normalizat    .67291        .49196E-01    .61670E-01    .19107E-04
   4  Prefactor     1.0014        .41209E-01    .45173E-01   -.11700E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.96805
  Index      = 3.12512
  Normalizat = 0.672913
  Prefactor  = 1.00143
 **********
 **   18 **HESSE 
 **********

 FCN=   7123.763     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      287 TOTAL
                     EDM=   .43E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.9681        55.983        .86442E-04   -1.5363    
   2  Index         3.1251        3.5538        .40935E-02   -.38437    
   3  Normalizat    .67291        .19200        .27282E-03   -1.0497    
   4  Prefactor     1.0014        .16864        .19978E-03   -.92682    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.34247e-07
Minuit parameter uncertainties:
  1  25.8081
  2  4.04975
  3  0.192192
  4  0.16873
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/621378': 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) = 7123.76295586
delta logL = 0.825185858949

Extracting fit parameters...

4FGL J2259.8-1552
   Spectrum: PowerLaw
314    Prefactor:  2.968e+00  2.581e+01  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  3.125e+00  4.050e+00  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.001e+00  1.687e-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.729e-01  1.922e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.69
Ra Dec: 344.953 -15.881
Photon Index (Free Index): 3.13 +/- 4.05
Photon Flux (Free Index): 6.44e-08 +/- 4.61e-08
Energy Flux (Free Index): 1.21e-05 +/- 1.78e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/621378/cmap_HighResolution_253843201_254102401_4FGL_J2259.8-1552_daily_bin56.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.92e-03', comment='SUCCESS', photon_flux='3.25e-08', energy_flux2='1.21e-05', photon_flux_error='2.77e-08', dlogl='8.25e-01', energy_flux='1.67e-05', photon_flux2='6.44e-08', job_status='DONE', time_completed='2021-09-29 04:46:31.393687', photon_index_error2='4.05', photon_index2='3.13', ts='1.95', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', photon_flux_upper_limit='9.13e-08', energy_flux_error2='1.78e-05', EG='0.72', time_epoch_completed='1632915991.39', return_code='0', job_id='621378', GAL2='1.00', EG2='0.67', return_code2='102', energy_flux_error='1.42e-05', photon_flux_error2='4.61e-08', ts2='3.69', photon_index='2.13' WHERE bin_id='56' AND source_name='4FGL J2259.8-1552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 04:46:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0203>
Subject: Job 621378: <4FGL_J2259.8-1552_daily_bin56> in cluster <slac> Done

Job <4FGL_J2259.8-1552_daily_bin56> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 29 04:30:17 2021
Job was executed on host(s) <bullet0203>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 04:30:19 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:30:19 2021
Terminated at Wed Sep 29 04:46:32 2021
Results reported at Wed Sep 29 04:46:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2259.8-1552_daily_bin56 344.953 -15.8809 253843201 254102401 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 :                                   813.25 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             286.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   972 sec.
    Turnaround time :                            975 sec.

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

