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


Performing analysis on: 4FGL_J2259.8-1552_daily_bin748
RA = 344.953, Dec = -15.8809
tmin = 433209601, tmax = 433468801
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='625709', job_status='RUN', time_executed='2021-09-29 04:47:58.606679', time_epoch_executed='1632916078.61' WHERE source_name='4FGL J2259.8-1552' and cadence='daily' and bin_id='748'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/625709

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/625709/ft1_4FGL_J2259.8-1552_daily_bin748.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/625709/ft2_4FGL_J2259.8-1552_daily_bin748.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/625709/ft1_4FGL_J2259.8-1552_daily_bin748.fits outfile=/scratch/kocevski/625709/ft1_filteredMKT_4FGL_J2259.8-1552_daily_bin748.fits ra=344.953 dec=-15.8809 rad=12.0 tmin=433209601.0 tmax=433468801.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 6.01
user 5.72
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/625709/ft1_filtered_4FGL_J2259.8-1552_daily_bin748.fits" evtable="EVENTS" scfile=/scratch/kocevski/625709/ft2_4FGL_J2259.8-1552_daily_bin748.fits sctable="SC_DATA" outfile=/scratch/kocevski/625709/ltcube_433209601_433468801_4FGL_J2259.8-1552_daily_bin748.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/625709/ft2_4FGL_J2259.8-1552_daily_bin748.fits
.....................!
real 12.40
user 12.00
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/625709/ft1_filtered_4FGL_J2259.8-1552_daily_bin748.fits evtable="EVENTS" scfile=/scratch/kocevski/625709/ft2_4FGL_J2259.8-1552_daily_bin748.fits sctable="SC_DATA" expcube=/scratch/kocevski/625709/ltcube_433209601_433468801_4FGL_J2259.8-1552_daily_bin748.fits outfile=/scratch/kocevski/625709/expmap_433209601_433468801_4FGL_J2259.8-1552_daily_bin748.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/625709/ltcube_433209601_433468801_4FGL_J2259.8-1552_daily_bin748.fits
.....................!
real 191.34
user 185.87
sys 5.06

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/625709/ft1_filtered_4FGL_J2259.8-1552_daily_bin748.fits scfile=/scratch/kocevski/625709/ft2_4FGL_J2259.8-1552_daily_bin748.fits outfile=/scratch/kocevski/625709/cmap_433209601_433468801_4FGL_J2259.8-1552_daily_bin748.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.55
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/625709/ft1_filtered_4FGL_J2259.8-1552_daily_bin748.fits scfile=/scratch/kocevski/625709/ft2_4FGL_J2259.8-1552_daily_bin748.fits outfile=/scratch/kocevski/625709/cmap_HighResolution_433209601_433468801_4FGL_J2259.8-1552_daily_bin748.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.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/625709/ft1_filtered_4FGL_J2259.8-1552_daily_bin748.fits evtable="EVENTS" scfile=/scratch/kocevski/625709/ft2_4FGL_J2259.8-1552_daily_bin748.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/625709/Model_4FGL_J2259.8-1552_daily_bin748.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/625709/ft1_filtered_4FGL_J2259.8-1552_daily_bin748.fits.....................!
real 31.45
user 30.17
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10638E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    75.868       1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.7244       1.0000         .10000E-03   10000.    
     7 'norm      '    .55818       1.0000         .10000E-03   10000.    
     8 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10143E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10215E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.2501       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.2203       1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.4126       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    10.039       1.0000         .10000E-03   10000.    
    21 'norm      '    .12465E-02   1.0000         .10000E-03   10000.    
    22 'norm      '    10.141       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    2.4958       1.0000         .10000E-03   10000.    
    27 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .26848       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.3753       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=   3055.823     FROM MIGRAD    STATUS=CONVERGED    701 CALLS     3631 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.110        .20127E-05** at limit **
   2  Prefactor     .10000E-03    36.535        .15399E-04** at limit **
   3  Prefactor     .10000E-03    23.462       -.49988E-05** at limit **
   4  norm          .10000E-03    4.4795       -.45438E-06** at limit **
   5  Prefactor     75.841        99.014       -.28359E-04    .92071E-06
   6  Prefactor     8.7072        19.315       -.31812E-05   -.65242E-05
   7  norm          .55816        .54048       -.12615E-07    .19820E-03
   8  norm          .10000E-03    2.0110       -.21286E-07** at limit **
   9  Prefactor     .10000E-03    25.754       -.10611E-04** at limit **
  10  Prefactor     .10000E-03    4.5423        .21991E-06** at limit **
  11  norm          .10000E-03    .37930       -.34480E-07** at limit **
  12  Prefactor     .10000E-03    18.067        .13940E-04** at limit **
  13  Prefactor     .10000E-03    13.116       -.10773E-04** at limit **
  14  Prefactor     6.2408        12.379       -.65952E-06    .63672E-04
  15  Prefactor     5.1961        28.237       -.19537E-04   -.76376E-04
  16  Prefactor     8.4107        13.909       -.57022E-06   -.60310E-04
  17  Prefactor     .10000E-03    4.9993        .69762E-06** at limit **
  18  Prefactor     .10000E-03    24.520       -.82016E-05** at limit **
  19  Prefactor     .10000E-03    33.472        .30164E-05** at limit **
  20  Prefactor     10.046        9.5791       -.38818E-06    .57040E-05
  21  norm          .10000E-03    4.4360        .12486E-06** at limit **
  22  norm          10.140        5.4304        .39196E-06    .93783E-07
  23  Prefactor     .10000E-03    32.984        .10061E-05** at limit **
  24  Prefactor     .10000E-03    11.901        .49592E-05** at limit **
  25  Prefactor     .10000E-03    72.718       -.83073E-05** at limit **
  26  norm          2.4954        .88789       -.69393E-07    .82800E-04
  27  norm          .10000E-03    5.1350       -.55538E-06** at limit **
  28  Normalizat    .26914        .30955        .26004E-05    .26367E-04
  29  Prefactor     1.3748        .26571        .22569E-05   -.78610E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 75.8412
  Prefactor  = 8.7072
  norm       = 0.558163
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.24081
  Prefactor  = 5.19611
  Prefactor  = 8.41075
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.0461
  norm       = 0.000100004
  norm       = 10.14
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.49544
  norm       = 0.0001
  Normalizat = 0.269138
  Prefactor  = 1.37477
 **********
 **   18 **HESSE 
 **********

 FCN=   3055.823     FROM HESSE     STATUS=OK           547 CALLS     4178 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.213        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    36.505        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    23.464        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    4.6210        .22827E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     75.841        98.855        .23050E-03   -1.3964    
   6  Prefactor     8.7072        19.060        .13571E-03   -1.5118    
   7  norm          .55816        .56132        .38968E-03   -1.5559    
   8  norm          .10000E-03    2.0572        .76512E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    25.743        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.5458        .11506E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .38160        .33216E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    18.198        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    13.100        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.2408        12.236        .16057E-03   -1.5208    
  15  Prefactor     5.1961        28.256        .17593E-03   -1.5252    
  16  Prefactor     8.4107        13.881        .13821E-03   -1.5128    
  17  Prefactor     .10000E-03    5.0023        .12065E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    24.520        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    33.534        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     10.046        9.4766        .12647E-03   -1.5074    
  21  norm          .10000E-03    27.091        .22430E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          10.140        5.3702        .87678E-04   -1.5071    
  23  Prefactor     .10000E-03    33.002        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    11.919        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    73.683        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          2.4954        .88407        .29819E-04   -1.5392    
  27  norm          .10000E-03    5.2221        .12209E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .26914        .28663        .42506E-03   -1.2473    
  29  Prefactor     1.3748        .25487        .18085E-03   -.81110    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.83214e-10
Minuit parameter uncertainties:
  1  3.44891e-05
  2  7.20326e-06
  3  9.17838e-06
  4  4.50148e-05
  5  99.0698
  6  19.0738
  7  0.561326
  8  1.25639e-06
  9  1.19815e-05
  10  1.37011e-05
  11  3.47276e-06
  12  0.000156809
  13  8.53166e-06
  14  12.241
  15  24.2515
  16  13.8861
  17  2.31084e-07
  18  2.41968e-06
  19  7.96036e-05
  20  9.47802
  21  0.000621242
  22  5.37042
  23  6.217e-05
  24  3.59577e-05
  25  0.000222031
  26  0.884071
  27  1.30452e-05
  28  0.288214
  29  0.255103
Done.

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

Extracting fit parameters...

4FGL J2259.8-1552
   Spectrum: PowerLaw
314    Prefactor:  8.411e+00  1.389e+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:  1.375e+00  2.551e-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:  2.691e-01  2.882e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.48
Ra Dec: 344.953 -15.881
Photon Flux Upper Limit: 1.24e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.36e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/625709/likelihoodResults_433209601_433468801_4FGL_J2259.8-1552_daily_bin748.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) = 3055.81766119
delta logL = 0.00537257782526

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3055.81537804
delta logL = 0.00765572082855

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.3974       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2487       1.0000          .0000       10.000    
     3 'Normalizat'    .26625       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3764       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=   3055.815     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      244 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.3956        16.408        .14746E-03    .63280E-03
   2  Index         2.2491        1.0357        .79885E-02    .17424E-03
   3  Normalizat    .26633        .27063        .42729E-03   -.14857E-03
   4  Prefactor     1.3763        .25078        .18076E-03   -.43850E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.39557
  Index      = 2.24909
  Normalizat = 0.266326
  Prefactor  = 1.37629
 **********
 **   18 **HESSE 
 **********

 FCN=   3055.815     FROM HESSE     STATUS=OK            23 CALLS      267 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.3956        15.250        .58985E-05   -1.5164    
   2  Index         2.2491        .96367        .31954E-03   -.58258    
   3  Normalizat    .26633        .27035        .17091E-04   -1.2490    
   4  Prefactor     1.3763        .25051        .36153E-04   -.81066    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.46161e-09
Minuit parameter uncertainties:
  1  15.258
  2  0.972442
  3  0.271689
  4  0.250736
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/625709': 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) = 3055.8153778
delta logL = 0.00765596238352

Extracting fit parameters...

4FGL J2259.8-1552
   Spectrum: PowerLaw
314    Prefactor:  7.396e+00  1.526e+01  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  2.249e+00  9.724e-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.376e+00  2.507e-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:  2.663e-01  2.717e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.48
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/625709/cmap_HighResolution_433209601_433468801_4FGL_J2259.8-1552_daily_bin748.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.36e-03', job_status='DONE', photon_flux_upper_limit='1.24e-07', time_completed='2021-09-29 04:56:54.616925', job_id='625709', GAL2='1.38', fit_tolerance='1e-08', EG2='0.27', EG='0.27', time_epoch_completed='1632916614.62', return_code2='0', ts='0.48', comment='SUCCESS', return_code='0', GAL='1.37', dlogl='7.66e-03', ts2='0.50', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='748' AND source_name='4FGL J2259.8-1552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 04:56:54 PDT 2021


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

Job <4FGL_J2259.8-1552_daily_bin748> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 04:45:15 2021
Job was executed on host(s) <bullet0203>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 04:45:16 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:45:16 2021
Terminated at Wed Sep 29 04:56:55 2021
Results reported at Wed Sep 29 04:56:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2259.8-1552_daily_bin748 344.953 -15.8809 433209601 433468801 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 :                                   534.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             275.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   698 sec.
    Turnaround time :                            700 sec.

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

