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


Performing analysis on: 4FGL_J2259.8-1552_daily_bin364
RA = 344.953, Dec = -15.8809
tmin = 333676801, tmax = 333936001
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='622962', job_status='RUN', time_executed='2021-09-29 04:38:28.700247', time_epoch_executed='1632915508.7' WHERE source_name='4FGL J2259.8-1552' and cadence='daily' and bin_id='364'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/622962

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/622962/ft1_4FGL_J2259.8-1552_daily_bin364.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/622962/ft2_4FGL_J2259.8-1552_daily_bin364.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/622962/ft1_4FGL_J2259.8-1552_daily_bin364.fits outfile=/scratch/kocevski/622962/ft1_filteredMKT_4FGL_J2259.8-1552_daily_bin364.fits ra=344.953 dec=-15.8809 rad=12.0 tmin=333676801.0 tmax=333936001.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.82
user 3.58
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/622962/ft1_filtered_4FGL_J2259.8-1552_daily_bin364.fits" evtable="EVENTS" scfile=/scratch/kocevski/622962/ft2_4FGL_J2259.8-1552_daily_bin364.fits sctable="SC_DATA" outfile=/scratch/kocevski/622962/ltcube_333676801_333936001_4FGL_J2259.8-1552_daily_bin364.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/622962/ft2_4FGL_J2259.8-1552_daily_bin364.fits
.....................!
real 11.99
user 11.63
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/622962/ft1_filtered_4FGL_J2259.8-1552_daily_bin364.fits evtable="EVENTS" scfile=/scratch/kocevski/622962/ft2_4FGL_J2259.8-1552_daily_bin364.fits sctable="SC_DATA" expcube=/scratch/kocevski/622962/ltcube_333676801_333936001_4FGL_J2259.8-1552_daily_bin364.fits outfile=/scratch/kocevski/622962/expmap_333676801_333936001_4FGL_J2259.8-1552_daily_bin364.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/622962/ltcube_333676801_333936001_4FGL_J2259.8-1552_daily_bin364.fits
.....................!
real 190.12
user 184.94
sys 4.77

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/622962/ft1_filtered_4FGL_J2259.8-1552_daily_bin364.fits scfile=/scratch/kocevski/622962/ft2_4FGL_J2259.8-1552_daily_bin364.fits outfile=/scratch/kocevski/622962/cmap_333676801_333936001_4FGL_J2259.8-1552_daily_bin364.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/622962/ft1_filtered_4FGL_J2259.8-1552_daily_bin364.fits scfile=/scratch/kocevski/622962/ft2_4FGL_J2259.8-1552_daily_bin364.fits outfile=/scratch/kocevski/622962/cmap_HighResolution_333676801_333936001_4FGL_J2259.8-1552_daily_bin364.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/622962/ft1_filtered_4FGL_J2259.8-1552_daily_bin364.fits evtable="EVENTS" scfile=/scratch/kocevski/622962/ft2_4FGL_J2259.8-1552_daily_bin364.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/622962/Model_4FGL_J2259.8-1552_daily_bin364.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/622962/ft1_filtered_4FGL_J2259.8-1552_daily_bin364.fits.....................!
real 51.62
user 50.22
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.8498       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.529       1.0000         .10000E-03   10000.    
     4 'norm      '    11.320       1.0000         .10000E-03   10000.    
     5 'Prefactor '    35.261       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10286E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.2352       1.0000         .10000E-03   10000.    
     8 'norm      '    .10193E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    59.659       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10044E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.186       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.7082       1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.127       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    19.596       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10404E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.0330       1.0000         .10000E-03   10000.    
    20 'Prefactor '    16.018       1.0000         .10000E-03   10000.    
    21 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10136E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    5.6811       1.0000         .10000E-03   10000.    
    27 'norm      '    5.6533       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.2272       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .71838       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=   5977.695     FROM MIGRAD    STATUS=CONVERGED    699 CALLS     3638 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.8492        14.497       -.23200E-05   -.95184E-03
   2  Prefactor     .10000E-03    38.264       -.13367E-04** at limit **
   3  Prefactor     12.519        41.591       -.19620E-04    .13694E-05
   4  norm          11.319        4.6499        .27284E-07    .25878E-04
   5  Prefactor     35.251        65.071       -.15238E-04    .18631E-05
   6  Prefactor     .10000E-03    8.0350       -.64658E-06** at limit **
   7  norm          1.2349        .79582       -.18823E-06    .33505E-04
   8  norm          .10000E-03    1.0720       -.47386E-07** at limit **
   9  Prefactor     59.668        50.716        .73070E-05    .27326E-04
  10  Prefactor     .10000E-03    3.8823       -.57448E-06** at limit **
  11  norm          .10000E-03    .35320       -.16673E-06** at limit **
  12  Prefactor     12.196        23.435        .53163E-05    .45208E-04
  13  Prefactor     3.6967        21.606       -.70051E-05   -.10345E-03
  14  Prefactor     11.131        17.453        .15718E-05    .13772E-04
  15  Prefactor     .10000E-03    6.1420       -.40021E-06** at limit **
  16  Prefactor     19.600        14.626       -.45019E-06    .35297E-04
  17  Prefactor     .10000E-03    7.5198       -.18828E-05** at limit **
  18  Prefactor     .10000E-03    50.172        .31715E-04** at limit **
  19  Prefactor     3.0075        58.420       -.40945E-04   -.14914E-04
  20  Prefactor     16.020        11.242       -.19849E-07   -.29717E-03
  21  norm          .10000E-03    4.7510        .37672E-08** at limit **
  22  norm          .10000E-03    1.3287        .14156E-06** at limit **
  23  Prefactor     .10000E-03    65.444       -.19437E-04** at limit **
  24  Prefactor     .10000E-03    7.2741        .50334E-06** at limit **
  25  Prefactor     .10000E-03    13.021       -.64657E-06** at limit **
  26  norm          5.6812        1.2123        .86218E-07    .47047E-03
  27  norm          5.6535        6.4769       -.25094E-07   -.26565E-04
  28  Normalizat    1.2268        .20509        .45737E-06    .19155E-03
  29  Prefactor     .71870        .16053        .20908E-05    .99892E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.84917
  Prefactor  = 0.0001
  Prefactor  = 12.5185
  norm       = 11.3194
  Prefactor  = 35.2508
  Prefactor  = 0.0001
  norm       = 1.23491
  norm       = 0.0001
  Prefactor  = 59.6678
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 12.1965
  Prefactor  = 3.69671
  Prefactor  = 11.1308
  Prefactor  = 0.0001
  Prefactor  = 19.5997
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.00751
  Prefactor  = 16.0203
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.68121
  norm       = 5.65351
  Normalizat = 1.2268
  Prefactor  = 0.718696
 **********
 **   18 **HESSE 
 **********

 FCN=   5977.695     FROM HESSE     STATUS=OK           549 CALLS     4187 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.8492        14.706        .67368E-03   -1.5113    
   2  Prefactor     .10000E-03    38.230        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     12.519        41.510        .11317E-03   -1.5000    
   4  norm          11.319        4.6501        .10170E-03   -1.5035    
   5  Prefactor     35.251        65.040        .67487E-04   -1.4520    
   6  Prefactor     .10000E-03    8.0730        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.2349        .78767        .53033E-04   -1.5486    
   8  norm          .10000E-03    1.0815        .78011E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     59.668        50.679        .51944E-04   -1.4162    
  10  Prefactor     .10000E-03    3.8869        .14867E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .35941        .88687E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     12.196        23.156        .11475E-03   -1.5009    
  13  Prefactor     3.6967        21.356        .20971E-03   -1.5323    
  14  Prefactor     11.131        17.372        .12010E-03   -1.5041    
  15  Prefactor     .10000E-03    6.1915        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     19.600        14.654        .90477E-04   -1.4822    
  17  Prefactor     .10000E-03    7.5753        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    49.821        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.0075        58.790        .23300E-03   -1.5361    
  20  Prefactor     16.020        11.232        .10007E-03   -1.4907    
  21  norm          .10000E-03    4.7890        .16426E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    1.3404        .87000E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    65.256        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    7.2812        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    13.029        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          5.6812        1.2211        .35576E-04   -1.5231    
  27  norm          5.6535        6.5135        .16895E-03   -1.5232    
  28  Normalizat    1.2268        .24408        .25555E-03   -.85779    
  29  Prefactor     .71870        .18889        .26212E-03   -1.0280    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.90612e-09
Minuit parameter uncertainties:
  1  14.7121
  2  5.66274e-06
  3  41.6056
  4  4.65023
  5  65.1715
  6  7.90801e-05
  7  0.787674
  8  1.89628e-05
  9  50.7158
  10  2.74521e-05
  11  9.80503e-06
  12  23.1728
  13  17.7797
  14  17.3801
  15  3.4309e-05
  16  14.657
  17  2.94661e-05
  18  9.81414e-05
  19  26.6238
  20  11.2337
  21  1.46247e-05
  22  1.5446e-06
  23  0.000444126
  24  3.88309e-05
  25  6.39335e-06
  26  1.22108
  27  6.51434
  28  0.244311
  29  0.18906
Done.

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

Extracting fit parameters...

4FGL J2259.8-1552
   Spectrum: PowerLaw
314    Prefactor:  1.960e+01  1.466e+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:  7.187e-01  1.891e-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.227e+00  2.443e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.75
Ra Dec: 344.953 -15.881
Photon Index (Fixed Index): 2.13 +/- 0.00
Photon Flux (Fixed Index): 5.46e-08 +/- 4.08e-08
Energy Flux (Fixed Index): 2.80e-05 +/- 2.09e-05

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

Saving results to:
/scratch/kocevski/622962/likelihoodResults_333676801_333936001_4FGL_J2259.8-1552_daily_bin364.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) = 5976.6644477
delta logL = 1.0307020016

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5976.65408343
delta logL = 1.04106627281

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.3488       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0552       1.0000          .0000       10.000    
     3 'Normalizat'    1.1460       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76129       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=   5976.654     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      258 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.3356        60.959        .39825E-02    .24070E-03
   2  Index         3.0562        2.4738        .94911E-01    .16658E-03
   3  Normalizat    1.1459        .80590E-01    .59458E-01    .79325E-05
   4  Prefactor     .76136        .59720E-01    .43211E-01    .14940E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.33564
  Index      = 3.05624
  Normalizat = 1.14593
  Prefactor  = 0.761358
 **********
 **   18 **HESSE 
 **********

 FCN=   5976.654     FROM HESSE     STATUS=OK            33 CALLS      291 TOTAL
                     EDM=   .55E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.3356        16.488        .10155E-03   -1.5205    
   2  Index         3.0562        1.2549        .36697E-02   -.39928    
   3  Normalizat    1.1459        .24312        .26296E-03   -.88290    
   4  Prefactor     .76136        .19286        .25525E-03   -1.0117    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.47092e-11
Minuit parameter uncertainties:
  1  16.4995
  2  1.27091
  3  0.243362
  4  0.193035
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/622962': 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) = 5976.65408237
delta logL = 1.04106733841

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
513    Prefactor:  7.614e-01  1.930e-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.146e+00  2.434e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.91
Ra Dec: 344.953 -15.881
Photon Index (Free Index): 3.06 +/- 1.27
Photon Flux (Free Index): 1.18e-07 +/- 7.33e-08
Energy Flux (Free Index): 2.29e-05 +/- 1.47e-05

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/622962/cmap_HighResolution_333676801_333936001_4FGL_J2259.8-1552_daily_bin364.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.06e-02', comment='SUCCESS', photon_flux='5.46e-08', energy_flux2='2.29e-05', photon_flux_error='4.08e-08', dlogl='1.04e+00', energy_flux='2.80e-05', photon_flux2='1.18e-07', job_status='DONE', time_completed='2021-09-29 04:50:38.018562', photon_index_error2='1.27', photon_index2='3.06', ts='2.75', fit_tolerance='1e-08', GAL='0.72', photon_index_error='0.00', photon_flux_upper_limit='1.40e-07', energy_flux_error2='1.47e-05', EG='1.23', time_epoch_completed='1632916238.02', return_code='0', job_id='622962', GAL2='0.76', EG2='1.15', return_code2='0', energy_flux_error='2.09e-05', photon_flux_error2='7.33e-08', ts2='4.91', photon_index='2.13' WHERE bin_id='364' AND source_name='4FGL J2259.8-1552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 04:50:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0243>
Subject: Job 622962: <4FGL_J2259.8-1552_daily_bin364> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2259.8-1552_daily_bin364 344.953 -15.8809 333676801 333936001 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 :                                   726.43 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             275.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   908 sec.
    Turnaround time :                            909 sec.

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

