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


Performing analysis on: 4FGL_J2259.8-1552_daily_bin738
RA = 344.953, Dec = -15.8809
tmin = 430617601, tmax = 430876801
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='624604', job_status='RUN', time_executed='2021-09-29 04:43:50.736820', time_epoch_executed='1632915830.74' WHERE source_name='4FGL J2259.8-1552' and cadence='daily' and bin_id='738'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/624604

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/624604/ft1_4FGL_J2259.8-1552_daily_bin738.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/624604/ft2_4FGL_J2259.8-1552_daily_bin738.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/624604/ft1_4FGL_J2259.8-1552_daily_bin738.fits outfile=/scratch/kocevski/624604/ft1_filteredMKT_4FGL_J2259.8-1552_daily_bin738.fits ra=344.953 dec=-15.8809 rad=12.0 tmin=430617601.0 tmax=430876801.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 5.31
user 5.06
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/624604/ft2_4FGL_J2259.8-1552_daily_bin738.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/624604/ft1_filteredMKT_4FGL_J2259.8-1552_daily_bin738.fits evtable="EVENTS" outfile="/scratch/kocevski/624604/ft1_filtered_4FGL_J2259.8-1552_daily_bin738.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.48
user 0.34
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/624604/ft1_filtered_4FGL_J2259.8-1552_daily_bin738.fits" evtable="EVENTS" scfile=/scratch/kocevski/624604/ft2_4FGL_J2259.8-1552_daily_bin738.fits sctable="SC_DATA" outfile=/scratch/kocevski/624604/ltcube_430617601_430876801_4FGL_J2259.8-1552_daily_bin738.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/624604/ft2_4FGL_J2259.8-1552_daily_bin738.fits
.....................!
real 12.11
user 11.78
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/624604/ft1_filtered_4FGL_J2259.8-1552_daily_bin738.fits evtable="EVENTS" scfile=/scratch/kocevski/624604/ft2_4FGL_J2259.8-1552_daily_bin738.fits sctable="SC_DATA" expcube=/scratch/kocevski/624604/ltcube_430617601_430876801_4FGL_J2259.8-1552_daily_bin738.fits outfile=/scratch/kocevski/624604/expmap_430617601_430876801_4FGL_J2259.8-1552_daily_bin738.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/624604/ltcube_430617601_430876801_4FGL_J2259.8-1552_daily_bin738.fits
.....................!
real 189.23
user 184.96
sys 3.92

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/624604/ft1_filtered_4FGL_J2259.8-1552_daily_bin738.fits scfile=/scratch/kocevski/624604/ft2_4FGL_J2259.8-1552_daily_bin738.fits outfile=/scratch/kocevski/624604/cmap_430617601_430876801_4FGL_J2259.8-1552_daily_bin738.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.53
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/624604/ft1_filtered_4FGL_J2259.8-1552_daily_bin738.fits scfile=/scratch/kocevski/624604/ft2_4FGL_J2259.8-1552_daily_bin738.fits outfile=/scratch/kocevski/624604/cmap_HighResolution_430617601_430876801_4FGL_J2259.8-1552_daily_bin738.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/624604/ft1_filtered_4FGL_J2259.8-1552_daily_bin738.fits evtable="EVENTS" scfile=/scratch/kocevski/624604/ft2_4FGL_J2259.8-1552_daily_bin738.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/624604/Model_4FGL_J2259.8-1552_daily_bin738.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/624604/ft1_filtered_4FGL_J2259.8-1552_daily_bin738.fits.....................!
real 29.55
user 28.24
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    36.683       1.0000         .10000E-03   10000.    
     2 'Prefactor '    118.00       1.0000         .10000E-03   10000.    
     3 'Prefactor '    98.042       1.0000         .10000E-03   10000.    
     4 'norm      '    4.8573       1.0000         .10000E-03   10000.    
     5 'Prefactor '    23.245       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .45046E-02   1.0000         .10000E-03   10000.    
     7 'norm      '    2.0868       1.0000         .10000E-03   10000.    
     8 'norm      '    3.5713       1.0000         .10000E-03   10000.    
     9 'Prefactor '    30.122       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .12704E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .91142       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .15923E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11158E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11013E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.2091       1.0000         .10000E-03   10000.    
    18 'Prefactor '    149.76       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    9.5967       1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.3614       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10360E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    2.2419       1.0000         .10000E-03   10000.    
    27 'norm      '    .10050E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .62171       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .76011       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=   2217.706     FROM MIGRAD    STATUS=CONVERGED    720 CALLS     3737 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     36.677        22.081        .24320E-06   -.76982E-05
   2  Prefactor     117.88        117.25       -.26485E-06   -.38669E-04
   3  Prefactor     98.027        77.550       -.99305E-08   -.18052E-04
   4  norm          4.8557        4.0974        .45174E-08    .12123E-05
   5  Prefactor     23.220        50.922       -.30761E-06   -.83118E-05
   6  Prefactor     .10000E-03    123.26        .21022E-04** at limit **
   7  norm          2.0864        1.7018       -.55411E-07   -.58181E-04
   8  norm          3.5730        3.7143       -.89082E-07   -.13702E-03
   9  Prefactor     30.231        82.729        .61966E-06   -.25570E-04
  10  Prefactor     .10000E-03    101.05       -.58808E-06** at limit **
  11  norm          .90785        1.5651        .17292E-06    .22014E-03
  12  Prefactor     .10000E-03    136.35       -.28690E-06** at limit **
  13  Prefactor     .10000E-03    15.088        .24721E-06** at limit **
  14  Prefactor     .10000E-03    22.858        .14664E-05** at limit **
  15  Prefactor     .10000E-03    6.6664       -.13074E-07** at limit **
  16  Prefactor     .10000E-03    86.624        .11638E-05** at limit **
  17  Prefactor     5.1830        23.820        .14645E-05   -.19143E-04
  18  Prefactor     149.67        128.96        .67936E-06   -.25325E-04
  19  Prefactor     .10000E-03    23.279       -.45831E-06** at limit **
  20  Prefactor     .10000E-03    11.002       -.12963E-05** at limit **
  21  norm          .10000E-03    5.3284       -.53111E-06** at limit **
  22  norm          9.5974        10.332        .44146E-06   -.26182E-04
  23  Prefactor     4.3194        685.83        .30954E-05   -.11713E-05
  24  Prefactor     .10000E-03    28.814       -.15216E-05** at limit **
  25  Prefactor     .10000E-03    141.52        .27370E-06** at limit **
  26  norm          2.2423        1.5607        .52706E-07    .37961E-04
  27  norm          .10000E-03    38.588       -.72241E-06** at limit **
  28  Normalizat    .62130        .32203       -.74498E-05   -.51697E-04
  29  Prefactor     .76095        .23124        .38529E-05   -.22211E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 36.6767
  Prefactor  = 117.88
  Prefactor  = 98.0268
  norm       = 4.85567
  Prefactor  = 23.2199
  Prefactor  = 0.000100003
  norm       = 2.0864
  norm       = 3.57305
  Prefactor  = 30.231
  Prefactor  = 0.0001
  norm       = 0.90785
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.18303
  Prefactor  = 149.668
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 9.59737
  Prefactor  = 4.31943
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.24235
  norm       = 0.0001
  Normalizat = 0.621295
  Prefactor  = 0.760945
 **********
 **   18 **HESSE 
 **********

 FCN=   2217.706     FROM HESSE     STATUS=OK           551 CALLS     4288 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     36.677        22.094        .66171E-04   -1.4496    
   2  Prefactor     117.88        117.28        .18521E-03   -1.3532    
   3  Prefactor     98.027        77.550        .20299E-03   -1.3725    
   4  norm          4.8557        4.0916        .82261E-04   -1.5267    
   5  Prefactor     23.220        50.954        .83081E-04   -1.4744    
   6  Prefactor     .10000E-03    129.33        .38686E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.0864        1.6814        .50538E-04   -1.5419    
   8  norm          3.5730        3.7205        .85974E-04   -1.5330    
   9  Prefactor     30.231        82.724        .73002E-04   -1.4608    
  10  Prefactor     .10000E-03    102.01        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .90785        1.4841        .70208E-03   -1.5517    
  12  Prefactor     .10000E-03    137.44        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    15.089        .17869E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    22.902        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    6.6688        .11876E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    88.386        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.1830        23.757        .17613E-03   -1.5253    
  18  Prefactor     149.67        129.39        .16467E-03   -1.3255    
  19  Prefactor     .10000E-03    23.284        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    11.015        .15251E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    5.3314        .10616E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          9.5974        10.390        .12936E-03   -1.5088    
  23  Prefactor     4.3194        688.84        .19287E-03   -1.5292    
  24  Prefactor     .10000E-03    28.832        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    141.63        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          2.2423        1.5536        .46430E-04   -1.5408    
  27  norm          .10000E-03    39.113        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .62130        .35962        .30270E-03   -1.0709    
  29  Prefactor     .76095        .25825        .20679E-03   -1.0118    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.44165e-10
Minuit parameter uncertainties:
  1  22.0989
  2  117.511
  3  77.6307
  4  4.0918
  5  51.0499
  6  0.00122815
  7  1.68143
  8  3.72076
  9  83.0404
  10  0.000111945
  11  1.48411
  12  5.21949e-05
  13  3.56603e-06
  14  4.53917e-05
  15  7.57275e-07
  16  0.00011355
  17  22.2075
  18  129.632
  19  2.21027e-05
  20  1.7244e-05
  21  4.75027e-06
  22  10.3919
  23  110.411
  24  4.54818e-05
  25  0.000184086
  26  1.55358
  27  5.79561e-05
  28  0.360986
  29  0.258664
Done.

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

Extracting fit parameters...

4FGL J2259.8-1552
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  1.135e-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:  7.609e-01  2.587e-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:  6.213e-01  3.610e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/624604/likelihoodResults_430617601_430876801_4FGL_J2259.8-1552_daily_bin738.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) = 2217.70638045
delta logL = -5.38002541361e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2217.70632689
delta logL = -2.41260750045e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10409E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2413       1.0000          .0000       10.000    
     3 'Normalizat'    .62130       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76095       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=   2217.706     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      247 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    44.982        .90712E-02** at limit **
   2  Index         2.1641        6.5857        .50000        .70746E-05
   3  Normalizat    .62129        .53046E-02    .68395E-01   -.40916E-03
   4  Prefactor     .76094        .40128E-02    .43207E-01   -.73073E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Index      = 2.16409
  Normalizat = 0.621292
  Prefactor  = 0.760945
 **********
 **   18 **HESSE 
 **********

 FCN=   2217.706     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      276 TOTAL
                     EDM=   .84E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    245.86        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1641        8.7835        .50000       -.60308    
   3  Normalizat    .62129        .12298E-01    .30271E-03   -1.0709    
   4  Prefactor     .76094        .93179E-02    .20679E-03   -1.0118    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.42315e-08
Minuit parameter uncertainties:
  1  0.00128844
  2  173.522
  3  0.012298
  4  0.00931797
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/624604': 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) = 2217.7063267
delta logL = -5.0476501201e-08

Extracting fit parameters...

4FGL J2259.8-1552
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  1.288e-03  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  2.164e+00  1.735e+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:  7.609e-01  9.318e-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:  6.213e-01  1.230e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/624604/cmap_HighResolution_430617601_430876801_4FGL_J2259.8-1552_daily_bin738.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.44e-02', job_status='DONE', photon_flux_upper_limit='1.90e-07', time_completed='2021-09-29 04:51:37.323613', job_id='624604', GAL2='0.76', fit_tolerance='1e-08', EG2='0.62', EG='0.62', time_epoch_completed='1632916297.32', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.76', dlogl='-5.05e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='738' AND source_name='4FGL J2259.8-1552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 04:51:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0263>
Subject: Job 624604: <4FGL_J2259.8-1552_daily_bin738> in cluster <slac> Done

Job <4FGL_J2259.8-1552_daily_bin738> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 04:40:35 2021
Job was executed on host(s) <bullet0263>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 04:40:37 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:40:37 2021
Terminated at Wed Sep 29 04:51:38 2021
Results reported at Wed Sep 29 04:51:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2259.8-1552_daily_bin738 344.953 -15.8809 430617601 430876801 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 :                                   465.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             281.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   660 sec.
    Turnaround time :                            663 sec.

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

