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


Performing analysis on: 4FGL_J2259.8-1552_daily_bin1276
RA = 344.953, Dec = -15.8809
tmin = 570067201, tmax = 570326401
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='628611', job_status='RUN', time_executed='2021-09-29 04:58:09.675936', time_epoch_executed='1632916689.68' WHERE source_name='4FGL J2259.8-1552' and cadence='daily' and bin_id='1276'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/628611

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/628611/ft1_4FGL_J2259.8-1552_daily_bin1276.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/628611/ft2_4FGL_J2259.8-1552_daily_bin1276.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/628611/ft1_4FGL_J2259.8-1552_daily_bin1276.fits outfile=/scratch/kocevski/628611/ft1_filteredMKT_4FGL_J2259.8-1552_daily_bin1276.fits ra=344.953 dec=-15.8809 rad=12.0 tmin=570067201.0 tmax=570326401.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.36
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/628611/ft2_4FGL_J2259.8-1552_daily_bin1276.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/628611/ft1_filteredMKT_4FGL_J2259.8-1552_daily_bin1276.fits evtable="EVENTS" outfile="/scratch/kocevski/628611/ft1_filtered_4FGL_J2259.8-1552_daily_bin1276.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/628611/ft1_filtered_4FGL_J2259.8-1552_daily_bin1276.fits" evtable="EVENTS" scfile=/scratch/kocevski/628611/ft2_4FGL_J2259.8-1552_daily_bin1276.fits sctable="SC_DATA" outfile=/scratch/kocevski/628611/ltcube_570067201_570326401_4FGL_J2259.8-1552_daily_bin1276.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/628611/ft2_4FGL_J2259.8-1552_daily_bin1276.fits
.....................!
real 13.39
user 13.00
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/628611/ft1_filtered_4FGL_J2259.8-1552_daily_bin1276.fits evtable="EVENTS" scfile=/scratch/kocevski/628611/ft2_4FGL_J2259.8-1552_daily_bin1276.fits sctable="SC_DATA" expcube=/scratch/kocevski/628611/ltcube_570067201_570326401_4FGL_J2259.8-1552_daily_bin1276.fits outfile=/scratch/kocevski/628611/expmap_570067201_570326401_4FGL_J2259.8-1552_daily_bin1276.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/628611/ltcube_570067201_570326401_4FGL_J2259.8-1552_daily_bin1276.fits
.....................!
real 190.51
user 185.82
sys 4.31

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/628611/ft1_filtered_4FGL_J2259.8-1552_daily_bin1276.fits scfile=/scratch/kocevski/628611/ft2_4FGL_J2259.8-1552_daily_bin1276.fits outfile=/scratch/kocevski/628611/cmap_570067201_570326401_4FGL_J2259.8-1552_daily_bin1276.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=344.953 yref=-15.8809 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.39
sys 0.13

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/628611/ft1_filtered_4FGL_J2259.8-1552_daily_bin1276.fits evtable="EVENTS" scfile=/scratch/kocevski/628611/ft2_4FGL_J2259.8-1552_daily_bin1276.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/628611/Model_4FGL_J2259.8-1552_daily_bin1276.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/628611/ft1_filtered_4FGL_J2259.8-1552_daily_bin1276.fits.....................!
real 40.37
user 39.01
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.0716       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .19236E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .28872E-02   1.0000         .10000E-03   10000.    
     4 'norm      '    7.5438       1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.533       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.2589       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    97.258       1.0000         .10000E-03   10000.    
    11 'norm      '    4.4976       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .15989E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .39458E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    15.758       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .65807E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .12873E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    31.181       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10521E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .64663       1.0000         .10000E-03   10000.    
    27 'norm      '    14.170       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .91357       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .90602       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5160E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4039.616     FROM MIGRAD    STATUS=CONVERGED    129 CALLS     3211 TOTAL
                     EDM=   .59E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.0809        1.3476       -.37812E-07   -.92113E-04
   2  Prefactor     .12102E-03    46.090       -.83062E-05** at limit **
   3  Prefactor     .16928E-02    3.2222       -.16315E-05** at limit **
   4  norm          7.5437        5.5803       -.23239E-06   -.27798E-03
   5  Prefactor     12.540        1.3467        .11822E-06   -.79093E-03
   6  Prefactor     .10000E-03    8.5759       -.88843E-06** at limit **
   7  norm          1.2585        1.0683        .10924E-06    .13227E-03
   8  norm          .10000E-03    .94140       -.49154E-06** at limit **
   9  Prefactor     .10000E-03    21.716        .94743E-07** at limit **
  10  Prefactor     97.248        1.4499       -.55588E-07    .22056E-02
  11  norm          4.4977        2.2777        .27353E-07   -.61508E-04
  12  Prefactor     .10312E-03    42.957       -.81530E-05** at limit **
  13  Prefactor     .10410E-03    164.80       -.16212E-04** at limit **
  14  Prefactor     15.837        11.729        .26661E-06   -.39293E-02
  15  Prefactor     .10000E-03    3.6830        .12584E-06** at limit **
  16  Prefactor     .11028E-03    52.744        .20656E-05** at limit **
  17  Prefactor     .10000E-03    3.4055        .12053E-06** at limit **
  18  Prefactor     .10031E-03    45.456        .16931E-05** at limit **
  19  Prefactor     .10000E-03    12.398        .10697E-07** at limit **
  20  Prefactor     .10000E-03    4.1481        .20892E-06** at limit **
  21  norm          .10000E-03    2.7616        .31990E-06** at limit **
  22  norm          .10000E-03    1.8117       -.16817E-06** at limit **
  23  Prefactor     31.180        1.0082       -.10862E-08    .49545E-04
  24  Prefactor     .10000E-03    9.0289        .51177E-06** at limit **
  25  Prefactor     .11345E-03    56.517       -.16171E-05** at limit **
  26  norm          .64666        .58665       -.19557E-07   -.57687E-04
  27  norm          14.170        1.0309        .65297E-08   -.92556E-04
  28  Normalizat    .91318        .25326        .10240E-05   -.35155E-04
  29  Prefactor     .90627        .21468       -.14973E-05   -.80098E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.08089
  Prefactor  = 0.000121025
  Prefactor  = 0.00169277
  norm       = 7.5437
  Prefactor  = 12.5401
  Prefactor  = 0.0001
  norm       = 1.25852
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 97.2479
  norm       = 4.49768
  Prefactor  = 0.000103116
  Prefactor  = 0.0001041
  Prefactor  = 15.8369
  Prefactor  = 0.0001
  Prefactor  = 0.000110279
  Prefactor  = 0.0001
  Prefactor  = 0.000100312
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 31.1795
  Prefactor  = 0.0001
  Prefactor  = 0.000113449
  norm       = 0.646662
  norm       = 14.1704
  Normalizat = 0.913176
  Prefactor  = 0.906271
 **********
 **   18 **HESSE 
 **********

 FCN=   4039.616     FROM HESSE     STATUS=OK           617 CALLS     3828 TOTAL
                     EDM=   .32E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.0809        21.855        .44636E-02   -1.5257    
   2  Prefactor     .12102E-03    282.68        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .16928E-02    94.637        .15554       -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          7.5437        5.7176        .36503E-02   -1.5159    
   5  Prefactor     12.540        182.01        .28287E-02   -1.5000    
   6  Prefactor     .10000E-03    8.5460        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.2585        1.0993        .99429E-02   -1.5484    
   8  norm          .10000E-03    .93886        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    21.723        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     97.248        62.514        .10190E-02   -1.3732    
  11  norm          4.4977        5.0836        .47462E-02   -1.5284    
  12  Prefactor     .10312E-03    259.34        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10410E-03    27.219        .92185E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     15.837        14.731        .25224E-02   -1.4912    
  15  Prefactor     .10000E-03    3.6827        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .11028E-03    11.574        .93990E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    3.4042        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10031E-03    46.290        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    12.397        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.1433        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    2.7573        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    1.7878        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     31.180        59.828        .17939E-02   -1.4591    
  24  Prefactor     .10000E-03    9.0245        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .11345E-03    116.98        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .64666        .65664        .10205E-01   -1.5547    
  27  norm          14.170        7.7037        .26601E-02   -1.4955    
  28  Normalizat    .91318        .23207        .45075E-01   -.95999    
  29  Prefactor     .90627        .19029        .45082E-01   -.95922    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.19478e-07
Minuit parameter uncertainties:
  1  21.0884
  2  0.154921
  3  0.777724
  4  5.71799
  5  95.9023
  6  2.76048e-05
  7  1.09928
  8  7.4967e-06
  9  0.000382045
  10  62.5565
  11  5.08404
  12  0.0570983
  13  0.0211363
  14  14.7345
  15  4.26043e-06
  16  0.0218187
  17  3.44814e-06
  18  0.00760305
  19  1.8276e-05
  20  6.54131e-06
  21  8.53515e-06
  22  3.20022e-06
  23  59.9437
  24  5.74489e-06
  25  0.0794858
  26  0.656652
  27  7.70427
  28  0.232325
  29  0.190426
Done.

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

Extracting fit parameters...

4FGL J2259.8-1552
   Spectrum: PowerLaw
314    Prefactor:  1.103e-04  2.182e-02  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.063e-01  1.904e-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.132e-01  2.323e-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: 1.04e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.88e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/628611/likelihoodResults_570067201_570326401_4FGL_J2259.8-1552_daily_bin1276.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) = 4039.61633868
delta logL = -5.41329068255e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4039.61633866
delta logL = -5.41107115168e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96360E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1319       1.0000          .0000       10.000    
     3 'Normalizat'    .91317       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90628       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=   4038.106     FROM MIGRAD    STATUS=CONVERGED    137 CALLS      290 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .14916        3.4620        .36349E-02   -.58987E-03
   2  Index         4.6753        3.2754        .77635E-01    .12583E-03
   3  Normalizat    .78778        .20470        .65430E-01   -.69038E-04
   4  Prefactor     .96736        .13779        .45085E-01   -.13706E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.149156
  Index      = 4.6753
  Normalizat = 0.787785
  Prefactor  = 0.967362
 **********
 **   18 **HESSE 
 **********

 FCN=   4038.106     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      321 TOTAL
                     EDM=   .20E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .14916        3.5297        .16344E-04   -1.5785    
   2  Index         4.6753        3.6310        .31022E-02   -.64985E-01
   3  Normalizat    .78778        .24332        .28945E-03   -1.0052    
   4  Prefactor     .96736        .20293        .22334E-03   -.93825    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.01731e-07
Minuit parameter uncertainties:
  1  1.45079
  2  4.06643
  3  0.243657
  4  0.203085
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/628611': 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) = 4038.10555712
delta logL = 1.51072743444

Extracting fit parameters...

4FGL J2259.8-1552
   Spectrum: PowerLaw
314    Prefactor:  1.492e-01  1.451e+00  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  4.675e+00  4.066e+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:  9.674e-01  2.031e-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.878e-01  2.437e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.22
Ra Dec: 344.953 -15.881
Photon Index (Free Index): 4.68 +/- 4.07
Photon Flux (Free Index): 1.23e-07 +/- 2.40e-06
Energy Flux (Free Index): 1.69e-05 +/- 3.22e-04

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/628611/cmap_HighResolution_570067201_570326401_4FGL_J2259.8-1552_daily_bin1276.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.88e-03', comment='SUCCESS', energy_flux2='1.69e-05', dlogl='1.51e+00', photon_flux2='1.23e-07', job_status='DONE', time_completed='2021-09-29 05:10:20.230287', photon_index_error2='4.07', photon_index2='4.68', ts='-0.00', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', photon_flux_upper_limit='1.04e-07', energy_flux_error2='3.22e-04', EG='0.91', time_epoch_completed='1632917420.23', return_code='0', job_id='628611', GAL2='0.97', EG2='0.79', return_code2='102', photon_flux_error2='2.40e-06', ts2='3.22', photon_index='2.13' WHERE bin_id='1276' AND source_name='4FGL J2259.8-1552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 05:10:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0085>
Subject: Job 628611: <4FGL_J2259.8-1552_daily_bin1276> in cluster <slac> Done

Job <4FGL_J2259.8-1552_daily_bin1276> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 04:55:19 2021
Job was executed on host(s) <bullet0085>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 04:55:21 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:55:21 2021
Terminated at Wed Sep 29 05:10:20 2021
Results reported at Wed Sep 29 05:10:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2259.8-1552_daily_bin1276 344.953 -15.8809 570067201 570326401 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 :                                   584.08 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             223.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   899 sec.
    Turnaround time :                            901 sec.

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

