/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 180 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 = 7554
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2259.8-1552_daily_bin335
RA = 344.953, Dec = -15.8809
tmin = 326160001, tmax = 326419201
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='622914', job_status='RUN', time_executed='2021-09-29 04:38:36.435212', time_epoch_executed='1632915516.44' WHERE source_name='4FGL J2259.8-1552' and cadence='daily' and bin_id='335'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/622914

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/622914/ft1_4FGL_J2259.8-1552_daily_bin335.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/622914/ft2_4FGL_J2259.8-1552_daily_bin335.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/622914/ft1_4FGL_J2259.8-1552_daily_bin335.fits outfile=/scratch/kocevski/622914/ft1_filteredMKT_4FGL_J2259.8-1552_daily_bin335.fits ra=344.953 dec=-15.8809 rad=12.0 tmin=326160001.0 tmax=326419201.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.59
user 3.36
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/622914/ft2_4FGL_J2259.8-1552_daily_bin335.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/622914/ft1_filteredMKT_4FGL_J2259.8-1552_daily_bin335.fits evtable="EVENTS" outfile="/scratch/kocevski/622914/ft1_filtered_4FGL_J2259.8-1552_daily_bin335.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.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/622914/ft1_filtered_4FGL_J2259.8-1552_daily_bin335.fits" evtable="EVENTS" scfile=/scratch/kocevski/622914/ft2_4FGL_J2259.8-1552_daily_bin335.fits sctable="SC_DATA" outfile=/scratch/kocevski/622914/ltcube_326160001_326419201_4FGL_J2259.8-1552_daily_bin335.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/622914/ft2_4FGL_J2259.8-1552_daily_bin335.fits
.....................!
real 12.07
user 11.69
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/622914/ft1_filtered_4FGL_J2259.8-1552_daily_bin335.fits evtable="EVENTS" scfile=/scratch/kocevski/622914/ft2_4FGL_J2259.8-1552_daily_bin335.fits sctable="SC_DATA" expcube=/scratch/kocevski/622914/ltcube_326160001_326419201_4FGL_J2259.8-1552_daily_bin335.fits outfile=/scratch/kocevski/622914/expmap_326160001_326419201_4FGL_J2259.8-1552_daily_bin335.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/622914/ltcube_326160001_326419201_4FGL_J2259.8-1552_daily_bin335.fits
.....................!
real 190.94
user 185.84
sys 4.64

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/622914/ft1_filtered_4FGL_J2259.8-1552_daily_bin335.fits scfile=/scratch/kocevski/622914/ft2_4FGL_J2259.8-1552_daily_bin335.fits outfile=/scratch/kocevski/622914/cmap_326160001_326419201_4FGL_J2259.8-1552_daily_bin335.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.35
sys 0.16

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/622914/ft1_filtered_4FGL_J2259.8-1552_daily_bin335.fits evtable="EVENTS" scfile=/scratch/kocevski/622914/ft2_4FGL_J2259.8-1552_daily_bin335.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/622914/Model_4FGL_J2259.8-1552_daily_bin335.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/622914/ft1_filtered_4FGL_J2259.8-1552_daily_bin335.fits.....................!
real 45.38
user 43.71
sys 1.54

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    31.902       1.0000         .10000E-03   10000.    
     2 'Prefactor '    50.812       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10272E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    7.5140       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .19566E-02   1.0000         .10000E-03   10000.    
     7 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.4461       1.0000         .10000E-03   10000.    
     9 'Prefactor '    38.309       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10098E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.465       1.0000         .10000E-03   10000.    
    15 'Prefactor '    26.941       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .26783E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.8370       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    12.508       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10252E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .16162E-01   1.0000         .10000E-03   10000.    
    25 'Prefactor '    18.929       1.0000         .10000E-03   10000.    
    26 'norm      '    3.5562       1.0000         .10000E-03   10000.    
    27 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .57894       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.1736       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=   5115.093     FROM MIGRAD    STATUS=CONVERGED    746 CALLS     3736 TOTAL
                     EDM=   .91E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     31.905        22.390        .39417E-07    .73650E-05
   2  Prefactor     50.813        56.536        .40009E-07   -.17649E-05
   3  Prefactor     .10000E-03    69.237        .10187E-05** at limit **
   4  norm          7.5146        4.4182        .80181E-08   -.53577E-05
   5  Prefactor     .10000E-03    22.932        .56201E-06** at limit **
   6  Prefactor     .10001E-03    33.911        .34318E-05** at limit **
   7  norm          .10000E-03    .31615        .12036E-07** at limit **
   8  norm          3.4465        2.7488       -.88859E-07    .83361E-04
   9  Prefactor     38.341        59.326        .31068E-05   -.34181E-04
  10  Prefactor     .10000E-03    11.551        .44087E-07** at limit **
  11  norm          .10000E-03    .39428        .16801E-07** at limit **
  12  Prefactor     .10000E-03    12.572        .10382E-06** at limit **
  13  Prefactor     .10000E-03    24.485       -.93847E-07** at limit **
  14  Prefactor     11.467        11.537        .32851E-06    .12169E-04
  15  Prefactor     26.942        15.105       -.47914E-07   -.23072E-04
  16  Prefactor     .10000E-03    50.280       -.49593E-05** at limit **
  17  Prefactor     5.8374        9.1695       -.10977E-05    .40008E-04
  18  Prefactor     .10000E-03    18.983       -.95816E-07** at limit **
  19  Prefactor     12.470        33.946       -.27276E-05   -.89878E-05
  20  Prefactor     .10000E-03    2.6754        .52694E-07** at limit **
  21  norm          .10000E-03    1.4925        .23766E-07** at limit **
  22  norm          .10000E-03    1.2504        .41631E-06** at limit **
  23  Prefactor     .10000E-03    65.281        .68282E-06** at limit **
  24  Prefactor     .10000E-03    12.358        .13007E-05** at limit **
  25  Prefactor     18.889        33.986       -.91713E-06    .37053E-04
  26  norm          3.5545        .92029       -.44413E-07   -.73749E-03
  27  norm          .10000E-03    8.1024        .13879E-08** at limit **
  28  Normalizat    .57903        .21059       -.14850E-05   -.10650E-03
  29  Prefactor     1.1734        .17240        .18431E-06   -.18739E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 31.9046
  Prefactor  = 50.8129
  Prefactor  = 0.0001
  norm       = 7.51458
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  norm       = 0.0001
  norm       = 3.44649
  Prefactor  = 38.3408
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.4671
  Prefactor  = 26.9421
  Prefactor  = 0.000100003
  Prefactor  = 5.83745
  Prefactor  = 0.0001
  Prefactor  = 12.4697
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 18.889
  norm       = 3.55451
  norm       = 0.0001
  Normalizat = 0.579029
  Prefactor  = 1.17342
 **********
 **   18 **HESSE 
 **********

 FCN=   5115.093     FROM HESSE     STATUS=OK           551 CALLS     4287 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     31.905        22.366        .70941E-04   -1.4578    
   2  Prefactor     50.813        56.526        .56261E-04   -1.4281    
   3  Prefactor     .10000E-03    69.404        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          7.5146        4.4122        .10929E-03   -1.5160    
   5  Prefactor     .10000E-03    22.898        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10001E-03    89.742        .42889E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    .43286        .78120E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.4465        2.7481        .94935E-04   -1.5337    
   9  Prefactor     38.341        57.908        .64756E-04   -1.4469    
  10  Prefactor     .10000E-03    11.706        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .51040        .86804E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    12.603        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    24.810        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     11.467        11.515        .11831E-03   -1.5031    
  15  Prefactor     26.942        15.062        .77182E-04   -1.4669    
  16  Prefactor     .10000E-03    66.486        .34641E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.8374        9.1997        .83115E-03   -1.5225    
  18  Prefactor     .10000E-03    19.003        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     12.470        33.829        .11326E-03   -1.5002    
  20  Prefactor     .10000E-03    2.6856        .11426E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    1.4942        .85336E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    1.2626        .78209E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    65.460        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    118.83        .46276E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     18.889        33.900        .92058E-04   -1.4838    
  26  norm          3.5545        .91434        .33280E-04   -1.5331    
  27  norm          .10000E-03    8.2145        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .57903        .23317        .32554E-03   -1.0888    
  29  Prefactor     1.1734        .19448        .20351E-03   -.87153    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.35342e-10
Minuit parameter uncertainties:
  1  22.372
  2  56.5854
  3  0.000190504
  4  4.4124
  5  8.05512e-05
  6  0.00149371
  7  2.24699e-06
  8  2.74824
  9  57.9933
  10  2.46825e-05
  11  3.35707e-06
  12  7.48645e-06
  13  6.36354e-05
  14  11.517
  15  15.0644
  16  0.000856252
  17  9.20192
  18  3.87973e-05
  19  33.8806
  20  2.24448e-06
  21  7.33508e-07
  22  4.64297e-06
  23  0.000176446
  24  0.000912122
  25  33.9344
  26  0.914347
  27  3.12934e-05
  28  0.233564
  29  0.194595
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
513    Prefactor:  1.173e+00  1.946e-01  0.000e+00  1.000e+01 ( 1.000e+00)
514        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
515        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
512   Normalization:  5.790e-01  2.336e-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: 7.42e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.62e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/622914/likelihoodResults_326160001_326419201_4FGL_J2259.8-1552_daily_bin335.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) = 5115.09261417
delta logL = -7.06386608726e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5115.09261415
delta logL = -7.06184691808e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96314E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1318       1.0000          .0000       10.000    
     3 'Normalizat'    .57903       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1734       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=   5115.093     FROM MIGRAD    STATUS=CONVERGED     63 CALLS      221 TOTAL
                     EDM=   .56E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .24532        .90717E-01** at limit **
   2  Index         2.1461        7.9237        .50000       -.75308E-06
   3  Normalizat    .57903        .92329E-03    .73528E-01    .24508E-04
   4  Prefactor     1.1734        .80231E-03    .35292E-01   -.73873E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.14612
  Normalizat = 0.579029
  Prefactor  = 1.17343
 **********
 **   18 **HESSE 
 **********

 FCN=   5115.093     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      256 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    73.872        .36139E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1461        8.1835        .50000       -.60745    
   3  Normalizat    .57903        .50690E-02    .32553E-03   -1.0888    
   4  Prefactor     1.1734        .44151E-02    .20351E-03   -.87153    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.59546e-10
Minuit parameter uncertainties:
  1  7.10332e-05
  2  71.6949
  3  0.00506899
  4  0.00441506
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/622914': 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) = 5115.09254352
delta logL = 4.80031303596e-09

Extracting fit parameters...

4FGL J2259.8-1552
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  7.103e-05  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  2.146e+00  7.169e+01  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.173e+00  4.415e-03  0.000e+00  1.000e+01 ( 1.000e+00)
514        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
515        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
512   Normalization:  5.790e-01  5.069e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 344.953 -15.881

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/622914/cmap_HighResolution_326160001_326419201_4FGL_J2259.8-1552_daily_bin335.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.62e-03', job_status='DONE', photon_flux_upper_limit='7.42e-08', time_completed='2021-09-29 04:49:38.299321', job_id='622914', GAL2='1.17', fit_tolerance='1e-08', EG2='0.58', EG='0.58', time_epoch_completed='1632916178.3', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.17', dlogl='4.80e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='335' AND source_name='4FGL J2259.8-1552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 04:49:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0080>
Subject: Job 622914: <4FGL_J2259.8-1552_daily_bin335> in cluster <slac> Done

Job <4FGL_J2259.8-1552_daily_bin335> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 04:35:24 2021
Job was executed on host(s) <bullet0080>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 04:35:26 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:35:26 2021
Terminated at Wed Sep 29 04:49:38 2021
Results reported at Wed Sep 29 04:49:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2259.8-1552_daily_bin335 344.953 -15.8809 326160001 326419201 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 :                                   654.51 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             299.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   852 sec.
    Turnaround time :                            854 sec.

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

