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


Performing analysis on: 4FGL_J2259.8-1552_daily_bin1634
RA = 344.953, Dec = -15.8809
tmin = 662860801, tmax = 663120001
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='772996', job_status='RUN', time_executed='2022-01-06 02:16:41.155568', time_epoch_executed='1641464201.16' WHERE source_name='4FGL J2259.8-1552' and cadence='daily' and bin_id='1634'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/772996

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/772996/ft1_4FGL_J2259.8-1552_daily_bin1634.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/772996/ft2_4FGL_J2259.8-1552_daily_bin1634.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/772996/ft1_4FGL_J2259.8-1552_daily_bin1634.fits outfile=/scratch/kocevski/772996/ft1_filteredMKT_4FGL_J2259.8-1552_daily_bin1634.fits ra=344.953 dec=-15.8809 rad=12.0 tmin=662860801.0 tmax=663120001.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 2.97
user 2.74
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/772996/ft2_4FGL_J2259.8-1552_daily_bin1634.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/772996/ft1_filteredMKT_4FGL_J2259.8-1552_daily_bin1634.fits evtable="EVENTS" outfile="/scratch/kocevski/772996/ft1_filtered_4FGL_J2259.8-1552_daily_bin1634.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.53
user 0.35
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/772996/ft1_filtered_4FGL_J2259.8-1552_daily_bin1634.fits" evtable="EVENTS" scfile=/scratch/kocevski/772996/ft2_4FGL_J2259.8-1552_daily_bin1634.fits sctable="SC_DATA" outfile=/scratch/kocevski/772996/ltcube_662860801_663120001_4FGL_J2259.8-1552_daily_bin1634.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/772996/ft2_4FGL_J2259.8-1552_daily_bin1634.fits
.....................!
real 16.22
user 15.83
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/772996/ft1_filtered_4FGL_J2259.8-1552_daily_bin1634.fits evtable="EVENTS" scfile=/scratch/kocevski/772996/ft2_4FGL_J2259.8-1552_daily_bin1634.fits sctable="SC_DATA" expcube=/scratch/kocevski/772996/ltcube_662860801_663120001_4FGL_J2259.8-1552_daily_bin1634.fits outfile=/scratch/kocevski/772996/expmap_662860801_663120001_4FGL_J2259.8-1552_daily_bin1634.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/772996/ltcube_662860801_663120001_4FGL_J2259.8-1552_daily_bin1634.fits
.....................!
real 193.03
user 187.04
sys 5.48

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/772996/ft1_filtered_4FGL_J2259.8-1552_daily_bin1634.fits scfile=/scratch/kocevski/772996/ft2_4FGL_J2259.8-1552_daily_bin1634.fits outfile=/scratch/kocevski/772996/cmap_662860801_663120001_4FGL_J2259.8-1552_daily_bin1634.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.58
user 0.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/772996/ft1_filtered_4FGL_J2259.8-1552_daily_bin1634.fits scfile=/scratch/kocevski/772996/ft2_4FGL_J2259.8-1552_daily_bin1634.fits outfile=/scratch/kocevski/772996/cmap_HighResolution_662860801_663120001_4FGL_J2259.8-1552_daily_bin1634.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.57
user 0.41
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/772996/ft1_filtered_4FGL_J2259.8-1552_daily_bin1634.fits evtable="EVENTS" scfile=/scratch/kocevski/772996/ft2_4FGL_J2259.8-1552_daily_bin1634.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/772996/Model_4FGL_J2259.8-1552_daily_bin1634.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/772996/ft1_filtered_4FGL_J2259.8-1552_daily_bin1634.fits.....................!
real 63.59
user 62.08
sys 1.29

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.8458       1.0000         .10000E-03   10000.    
     2 'Prefactor '    20.062       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .34937E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.6842       1.0000         .10000E-03   10000.    
     9 'Prefactor '    23.372       1.0000         .10000E-03   10000.    
    10 'Prefactor '    12.429       1.0000         .10000E-03   10000.    
    11 'norm      '    .17543E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    43.687       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.2572       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2.4492       1.0000         .10000E-03   10000.    
    22 'norm      '    5.3795       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10025E-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      '    .14568       1.0000         .10000E-03   10000.    
    27 'norm      '    18.426       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.3827       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .62241       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=   7690.536     FROM MIGRAD    STATUS=CONVERGED    720 CALLS     3710 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.8426        49.594       -.97269E-06   -.12827E-04
   2  Prefactor     19.983        66.920        .46997E-05   -.85358E-04
   3  Prefactor     .10000E-03    19.941       -.20447E-07** at limit **
   4  norm          .10001E-03    1.3457       -.32634E-06** at limit **
   5  Prefactor     .10000E-03    26.107        .75234E-07** at limit **
   6  Prefactor     .10000E-03    15.173       -.13250E-06** at limit **
   7  norm          .10000E-03    .24193       -.10526E-06** at limit **
   8  norm          1.6842        2.0104        .74002E-07   -.32815E-04
   9  Prefactor     23.367        50.515       -.11213E-05    .18511E-04
  10  Prefactor     12.451        10.992       -.13398E-05   -.53261E-03
  11  norm          .10000E-03    .54337        .54490E-06** at limit **
  12  Prefactor     43.708        25.726       -.96182E-06   -.32432E-03
  13  Prefactor     .10000E-03    4.1449        .12724E-07** at limit **
  14  Prefactor     .10000E-03    4.6661        .88278E-08** at limit **
  15  Prefactor     9.2575        8.9300       -.27567E-07   -.97645E-04
  16  Prefactor     .10000E-03    3.4272        .10239E-06** at limit **
  17  Prefactor     .10000E-03    3.8896        .19864E-07** at limit **
  18  Prefactor     .10000E-03    11.995        .88066E-07** at limit **
  19  Prefactor     .10000E-03    7.4350        .29742E-07** at limit **
  20  Prefactor     .10000E-03    2.1947        .43518E-07** at limit **
  21  norm          2.4490        2.8203        .11518E-07   -.50902E-04
  22  norm          5.3793        2.6719       -.31855E-07   -.96443E-05
  23  Prefactor     .10000E-03    34.444        .58858E-07** at limit **
  24  Prefactor     .10000E-03    3.9394        .24185E-07** at limit **
  25  Prefactor     .10000E-03    17.269        .42053E-08** at limit **
  26  norm          .14567        .24076        .22866E-07    .12172E-03
  27  norm          18.425        4.9816       -.41124E-07    .10127E-04
  28  Normalizat    1.3827        .16148       -.52384E-07   -.25552E-03
  29  Prefactor     .62248        .13377        .84505E-06   -.34759E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.84257
  Prefactor  = 19.983
  Prefactor  = 0.0001
  norm       = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.6842
  Prefactor  = 23.3673
  Prefactor  = 12.4509
  norm       = 0.000100001
  Prefactor  = 43.7083
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.25753
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.44905
  norm       = 5.37933
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.14567
  norm       = 18.4254
  Normalizat = 1.38269
  Prefactor  = 0.622481
 **********
 **   18 **HESSE 
 **********

 FCN=   7690.536     FROM HESSE     STATUS=OK           549 CALLS     4259 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.8426        49.399        .30695E-03   -1.5436    
   2  Prefactor     19.983        64.460        .89422E-04   -1.4814    
   3  Prefactor     .10000E-03    19.951        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10001E-03    13.306        .18991E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    26.090        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    15.396        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    .24868        .83751E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.6842        1.9944        .11523E-03   -1.5448    
   9  Prefactor     23.367        50.457        .82856E-04   -1.4741    
  10  Prefactor     12.451        10.968        .11362E-03   -1.5002    
  11  norm          .10000E-03    3.1247        .10540E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     43.708        25.712        .60655E-04   -1.4385    
  13  Prefactor     .10000E-03    4.1493        .17436E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.7037        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     9.2575        8.9290        .13172E-03   -1.5099    
  16  Prefactor     .10000E-03    3.4422        .15851E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    3.9093        .16888E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    12.006        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    7.4444        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.2057        .12682E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.4490        2.8139        .15372E-03   -1.5395    
  22  norm          5.3793        2.6738        .97243E-04   -1.5244    
  23  Prefactor     .10000E-03    34.671        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    3.9467        .16997E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    17.321        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .14567        .19010        .52253E-03   -1.5632    
  27  norm          18.425        4.9000        .93306E-04   -1.4849    
  28  Normalizat    1.3827        .19323        .22275E-03   -.81130    
  29  Prefactor     .62248        .15642        .26266E-03   -1.0665    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03875e-09
Minuit parameter uncertainties:
  1  19.0979
  2  64.686
  3  2.15211e-06
  4  0.000549424
  5  1.98495e-05
  6  1.11519e-05
  7  1.61055e-06
  8  1.99447
  9  50.5492
  10  10.97
  11  8.4496e-05
  12  25.7182
  13  4.89407e-08
  14  6.06874e-07
  15  8.93032
  16  5.73798e-06
  17  3.27618e-06
  18  5.8995e-06
  19  6.01545e-06
  20  3.77782e-06
  21  2.81405
  22  2.67381
  23  5.66777e-05
  24  3.61309e-06
  25  1.58787e-05
  26  0.190099
  27  4.9001
  28  0.193334
  29  0.156526
Done.

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

Extracting fit parameters...

4FGL J2259.8-1552
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  5.738e-06  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  2.132e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
316        Scale:  1.486e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
513    Prefactor:  6.225e-01  1.565e-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:  1.383e+00  1.933e-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: 4.12e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.12e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/772996/likelihoodResults_662860801_663120001_4FGL_J2259.8-1552_daily_bin1634.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) = 7690.53734667
delta logL = -0.00137928619279

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7690.53596738
delta logL = 6.11544237472e-09

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 'Index     '    2.1261       1.0000          .0000       10.000    
     3 'Normalizat'    1.3827       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .62249       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5160E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7690.536     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      245 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10013E-03    41.016        .15872E-02** at limit **
   2  Index         2.1073        5.4103        .50000        .11744E-04
   3  Normalizat    1.3827        .13932E-01    .22275E-03   -.13066E-04
   4  Prefactor     .62248        .11527E-01    .26266E-03   -.50641E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100131
  Index      = 2.10729
  Normalizat = 1.38269
  Prefactor  = 0.622482
 **********
 **   18 **HESSE 
 **********

 FCN=   7690.536     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      274 TOTAL
                     EDM=   .64E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10013E-03    184.57        .31744E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1073        7.2967        .50000       -.61694    
   3  Normalizat    1.3827        .31149E-01    .89098E-05   -.81131    
   4  Prefactor     .62248        .25769E-01    .10506E-04   -1.0665    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.41367e-09
Minuit parameter uncertainties:
  1  0.00984753
  2  508.559
  3  0.0311492
  4  0.0257691
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/772996': 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) = 7690.53596732
delta logL = 5.72053977521e-08

Extracting fit parameters...

4FGL J2259.8-1552
   Spectrum: PowerLaw
314    Prefactor:  1.001e-04  9.848e-03  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  2.107e+00  5.086e+02  0.000e+00  1.000e+01 (-1.000e+00)
316        Scale:  1.486e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
513    Prefactor:  6.225e-01  2.577e-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:  1.383e+00  3.115e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/772996/cmap_HighResolution_662860801_663120001_4FGL_J2259.8-1552_daily_bin1634.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.12e-03', job_status='DONE', photon_flux_upper_limit='4.12e-08', time_completed='2022-01-06 02:31:20.677957', job_id='772996', GAL2='0.62', fit_tolerance='1e-08', EG2='1.38', EG='1.38', time_epoch_completed='1641465080.68', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.62', dlogl='5.72e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='1634' AND source_name='4FGL J2259.8-1552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Jan  6 02:31:20 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0240>
Subject: Job 772996: <4FGL_J2259.8-1552_daily_bin1634> in cluster <slac> Done

Job <4FGL_J2259.8-1552_daily_bin1634> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Jan  6 02:15:18 2022
Job was executed on host(s) <bullet0240>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Jan  6 02:15:34 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Jan  6 02:15:34 2022
Terminated at Thu Jan  6 02:31:21 2022
Results reported at Thu Jan  6 02:31:21 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2259.8-1552_daily_bin1634 344.953 -15.8809 662860801 663120001 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 :                                   880.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             318.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   948 sec.
    Turnaround time :                            963 sec.

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

