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


Performing analysis on: 4FGL_J2259.8-1552_daily_bin120
RA = 344.953, Dec = -15.8809
tmin = 270432001, tmax = 270691201
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='621473', job_status='RUN', time_executed='2021-09-29 04:33:09.073501', time_epoch_executed='1632915189.07' WHERE source_name='4FGL J2259.8-1552' and cadence='daily' and bin_id='120'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/621473

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/621473/ft1_4FGL_J2259.8-1552_daily_bin120.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/621473/ft2_4FGL_J2259.8-1552_daily_bin120.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/621473/ft1_4FGL_J2259.8-1552_daily_bin120.fits outfile=/scratch/kocevski/621473/ft1_filteredMKT_4FGL_J2259.8-1552_daily_bin120.fits ra=344.953 dec=-15.8809 rad=12.0 tmin=270432001.0 tmax=270691201.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.64
user 1.46
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/621473/ft1_filtered_4FGL_J2259.8-1552_daily_bin120.fits" evtable="EVENTS" scfile=/scratch/kocevski/621473/ft2_4FGL_J2259.8-1552_daily_bin120.fits sctable="SC_DATA" outfile=/scratch/kocevski/621473/ltcube_270432001_270691201_4FGL_J2259.8-1552_daily_bin120.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/621473/ft2_4FGL_J2259.8-1552_daily_bin120.fits
.....................!
real 12.38
user 12.02
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/621473/ft1_filtered_4FGL_J2259.8-1552_daily_bin120.fits evtable="EVENTS" scfile=/scratch/kocevski/621473/ft2_4FGL_J2259.8-1552_daily_bin120.fits sctable="SC_DATA" expcube=/scratch/kocevski/621473/ltcube_270432001_270691201_4FGL_J2259.8-1552_daily_bin120.fits outfile=/scratch/kocevski/621473/expmap_270432001_270691201_4FGL_J2259.8-1552_daily_bin120.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/621473/ltcube_270432001_270691201_4FGL_J2259.8-1552_daily_bin120.fits
.....................!
real 191.70
user 186.35
sys 4.93

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/621473/ft1_filtered_4FGL_J2259.8-1552_daily_bin120.fits scfile=/scratch/kocevski/621473/ft2_4FGL_J2259.8-1552_daily_bin120.fits outfile=/scratch/kocevski/621473/cmap_270432001_270691201_4FGL_J2259.8-1552_daily_bin120.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.52
user 0.37
sys 0.13

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/621473/ft1_filtered_4FGL_J2259.8-1552_daily_bin120.fits evtable="EVENTS" scfile=/scratch/kocevski/621473/ft2_4FGL_J2259.8-1552_daily_bin120.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/621473/Model_4FGL_J2259.8-1552_daily_bin120.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/621473/ft1_filtered_4FGL_J2259.8-1552_daily_bin120.fits.....................!
real 47.53
user 46.17
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    34.120       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    3.9253       1.0000         .10000E-03   10000.    
     8 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    344.21       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    20.914       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10607E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    15.864       1.0000         .10000E-03   10000.    
    16 'Prefactor '    16.399       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.0670       1.0000         .10000E-03   10000.    
    18 'Prefactor '    22.510       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10109E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    8.5088       1.0000         .10000E-03   10000.    
    22 'norm      '    4.7394       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .40429       1.0000         .10000E-03   10000.    
    27 'norm      '    4.4155       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .75393       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .89201       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=   5218.464     FROM MIGRAD    STATUS=CONVERGED    716 CALLS     3764 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.3070        .26730E-05** at limit **
   2  Prefactor     .10000E-03    90.451       -.51583E-05** at limit **
   3  Prefactor     34.104        73.705       -.22404E-04   -.17433E-05
   4  norm          .10000E-03    1.8862       -.12716E-06** at limit **
   5  Prefactor     .10000E-03    21.950       -.25521E-05** at limit **
   6  Prefactor     .10000E-03    14.679       -.47615E-05** at limit **
   7  norm          3.9253        1.2195        .21482E-06   -.22772E-03
   8  norm          .10000E-03    1.5892       -.64208E-06** at limit **
   9  Prefactor     344.23        78.585        .12340E-04    .26146E-03
  10  Prefactor     .10000E-03    7.2238        .56942E-05** at limit **
  11  norm          .10000E-03    .36412        .60474E-07** at limit **
  12  Prefactor     20.910        26.480       -.13685E-05   -.15070E-03
  13  Prefactor     .10000E-03    6.8615       -.25805E-05** at limit **
  14  Prefactor     .10012E-03    6.1615       -.11386E-05** at limit **
  15  Prefactor     15.864        12.548        .15818E-06   -.52938E-04
  16  Prefactor     16.399        13.998        .13968E-06   -.47462E-04
  17  Prefactor     2.0672        4.7212       -.44587E-05   -.39855E-03
  18  Prefactor     22.503        52.622       -.97252E-05    .52648E-04
  19  Prefactor     .10000E-03    9.2355       -.13114E-05** at limit **
  20  Prefactor     .10000E-03    6.6937       -.41351E-05** at limit **
  21  norm          8.5079        6.6338        .60517E-06    .11219E-03
  22  norm          4.7394        3.5054       -.13390E-06   -.28830E-03
  23  Prefactor     .10000E-03    22.752       -.64302E-05** at limit **
  24  Prefactor     .10000E-03    5.2702        .44307E-07** at limit **
  25  Prefactor     .10000E-03    16.364        .82275E-05** at limit **
  26  norm          .40427        .50996        .11514E-06   -.82977E-03
  27  norm          4.4156        4.3220       -.11243E-05    .45717E-04
  28  Normalizat    .75388        .19641       -.41216E-06    .10418E-03
  29  Prefactor     .89207        .15457        .90449E-06    .28880E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 34.1045
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 3.92534
  norm       = 0.000100001
  Prefactor  = 344.235
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 20.9099
  Prefactor  = 0.0001
  Prefactor  = 0.000100124
  Prefactor  = 15.8637
  Prefactor  = 16.3987
  Prefactor  = 2.0672
  Prefactor  = 22.5032
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.50786
  norm       = 4.73938
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.404273
  norm       = 4.4156
  Normalizat = 0.753876
  Prefactor  = 0.892073
 **********
 **   18 **HESSE 
 **********

 FCN=   5218.464     FROM HESSE     STATUS=OK           553 CALLS     4317 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.3139        .17717E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    90.755        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     34.104        73.605        .68603E-04   -1.4539    
   4  norm          .10000E-03    1.9306        .96825E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    21.950        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    14.943        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.9253        1.2186        .41764E-04   -1.5312    
   8  norm          .10000E-03    1.6151        .89039E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     344.23        78.574        .10970E-03   -1.1976    
  10  Prefactor     .10000E-03    7.2274        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .36634        .84234E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     20.910        26.272        .87583E-04   -1.4793    
  13  Prefactor     .10000E-03    6.8737        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10012E-03    34.114        .34155E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     15.864        12.551        .10056E-03   -1.4911    
  16  Prefactor     16.399        14.005        .98903E-04   -1.4898    
  17  Prefactor     2.0672        4.6944        .23135E-03   -1.5420    
  18  Prefactor     22.503        52.539        .84424E-04   -1.4759    
  19  Prefactor     .10000E-03    9.2419        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    6.6681        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          8.5079        6.6240        .13743E-03   -1.5125    
  22  norm          4.7394        3.5085        .11093E-03   -1.5273    
  23  Prefactor     .10000E-03    22.755        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    5.2761        .16195E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    16.355        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .40427        .47693        .52279E-03   -1.5581    
  27  norm          4.4156        4.3517        .13449E-03   -1.5288    
  28  Normalizat    .75388        .23017        .28094E-03   -1.0180    
  29  Prefactor     .89207        .18166        .21704E-03   -.96419    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.7873e-09
Minuit parameter uncertainties:
  1  1.07128e-05
  2  3.08094e-05
  3  73.8023
  4  5.11388e-07
  5  7.21204e-07
  6  0.000363764
  7  1.21859
  8  7.237e-05
  9  78.5987
  10  1.37743e-05
  11  1.30811e-06
  12  26.2869
  13  7.7911e-06
  14  0.00411443
  15  12.553
  16  14.0081
  17  4.69521
  18  52.6468
  19  1.14502e-06
  20  8.26314e-05
  21  6.62453
  22  3.50867
  23  1.66847e-05
  24  4.89016e-06
  25  4.99871e-06
  26  0.476931
  27  4.35202
  28  0.230467
  29  0.181783
Done.

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

Extracting fit parameters...

4FGL J2259.8-1552
   Spectrum: PowerLaw
314    Prefactor:  1.640e+01  1.401e+01  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:  8.921e-01  1.818e-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.539e-01  2.305e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.09
Ra Dec: 344.953 -15.881
Photon Index (Fixed Index): 2.13 +/- 0.00
Photon Flux (Fixed Index): 4.57e-08 +/- 3.90e-08
Energy Flux (Fixed Index): 2.34e-05 +/- 2.00e-05

TS (Fixed Index): 3.09
Ra Dec: 344.953 -15.881
Photon Flux Upper Limit: 1.32e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.00e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/621473/likelihoodResults_270432001_270691201_4FGL_J2259.8-1552_daily_bin120.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) = 5218.38154657
delta logL = 0.0826786014686

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5218.35326529
delta logL = 0.110959884865

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.580       1.0000         .10000E-03   10000.    
     2 'Index     '    1.3582       1.0000          .0000       10.000    
     3 'Normalizat'    .78103       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88918       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=   5218.353     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      218 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.550        12.015        .29431E-02   -.82086E-05
   2  Index         1.3579        .59176        .23353       -.67515E-04
   3  Normalizat    .78075        .18313        .62526E-01    .13270E-04
   4  Prefactor     .88928        .15317        .44867E-01    .35004E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.5501
  Index      = 1.35792
  Normalizat = 0.780754
  Prefactor  = 0.889278
 **********
 **   18 **HESSE 
 **********

 FCN=   5218.353     FROM HESSE     STATUS=OK            33 CALLS      251 TOTAL
                     EDM=   .82E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.550        18.173        .11772E-03   -1.5028    
   2  Index         1.3579        1.1274        .11851E-01   -.81601    
   3  Normalizat    .78075        .21415        .27658E-03   -1.0079    
   4  Prefactor     .88928        .18084        .21747E-03   -.96517    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.24907e-09
Minuit parameter uncertainties:
  1  18.1817
  2  1.14885
  3  0.214383
  4  0.180958
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/621473': 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): 0
logL (Free Index) = 5218.35326088
delta logL = 0.110964291972

Extracting fit parameters...

4FGL J2259.8-1552
   Spectrum: PowerLaw
314    Prefactor:  1.155e+01  1.818e+01  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  1.358e+00  1.149e+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:  8.893e-01  1.810e-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.808e-01  2.144e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.29
Ra Dec: 344.953 -15.881
Photon Index (Free Index): 1.36 +/- 1.15
Photon Flux (Free Index): 1.15e-08 +/- 2.41e-08
Energy Flux (Free Index): 5.86e-05 +/- 1.28e-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/621473/cmap_HighResolution_270432001_270691201_4FGL_J2259.8-1552_daily_bin120.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.00e-02', comment='SUCCESS', photon_flux='4.57e-08', energy_flux2='5.86e-05', photon_flux_error='3.90e-08', dlogl='1.11e-01', energy_flux='2.34e-05', photon_flux2='1.15e-08', job_status='DONE', time_completed='2021-09-29 04:44:23.412432', photon_index_error2='1.15', photon_index2='1.36', ts='3.09', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', photon_flux_upper_limit='1.32e-07', energy_flux_error2='1.28e-04', EG='0.75', time_epoch_completed='1632915863.41', return_code='0', job_id='621473', GAL2='0.89', EG2='0.78', return_code2='0', energy_flux_error='2.00e-05', photon_flux_error2='2.41e-08', ts2='3.29', photon_index='2.13' WHERE bin_id='120' AND source_name='4FGL J2259.8-1552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 04:44:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0058>
Subject: Job 621473: <4FGL_J2259.8-1552_daily_bin120> in cluster <slac> Done

Job <4FGL_J2259.8-1552_daily_bin120> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 29 04:30:23 2021
Job was executed on host(s) <bullet0058>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 04:30:25 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:25 2021
Terminated at Wed Sep 29 04:44:24 2021
Results reported at Wed Sep 29 04:44:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2259.8-1552_daily_bin120 344.953 -15.8809 270432001 270691201 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 :                                   672.47 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             274.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   838 sec.
    Turnaround time :                            841 sec.

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

