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


Performing analysis on: 4FGL_J2259.8-1552_daily_bin222
RA = 344.953, Dec = -15.8809
tmin = 296870401, tmax = 297129601
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='621622', job_status='RUN', time_executed='2021-09-29 04:30:50.445451', time_epoch_executed='1632915050.45' WHERE source_name='4FGL J2259.8-1552' and cadence='daily' and bin_id='222'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/621622

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/621622/ft1_4FGL_J2259.8-1552_daily_bin222.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/621622/ft2_4FGL_J2259.8-1552_daily_bin222.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/621622/ft1_4FGL_J2259.8-1552_daily_bin222.fits outfile=/scratch/kocevski/621622/ft1_filteredMKT_4FGL_J2259.8-1552_daily_bin222.fits ra=344.953 dec=-15.8809 rad=12.0 tmin=296870401.0 tmax=297129601.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.61
user 3.39
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/621622/ft1_filtered_4FGL_J2259.8-1552_daily_bin222.fits" evtable="EVENTS" scfile=/scratch/kocevski/621622/ft2_4FGL_J2259.8-1552_daily_bin222.fits sctable="SC_DATA" outfile=/scratch/kocevski/621622/ltcube_296870401_297129601_4FGL_J2259.8-1552_daily_bin222.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/621622/ft2_4FGL_J2259.8-1552_daily_bin222.fits
.....................!
real 11.85
user 11.51
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/621622/ft1_filtered_4FGL_J2259.8-1552_daily_bin222.fits evtable="EVENTS" scfile=/scratch/kocevski/621622/ft2_4FGL_J2259.8-1552_daily_bin222.fits sctable="SC_DATA" expcube=/scratch/kocevski/621622/ltcube_296870401_297129601_4FGL_J2259.8-1552_daily_bin222.fits outfile=/scratch/kocevski/621622/expmap_296870401_297129601_4FGL_J2259.8-1552_daily_bin222.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/621622/ltcube_296870401_297129601_4FGL_J2259.8-1552_daily_bin222.fits
.....................!
real 193.49
user 187.34
sys 5.76

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/621622/ft1_filtered_4FGL_J2259.8-1552_daily_bin222.fits scfile=/scratch/kocevski/621622/ft2_4FGL_J2259.8-1552_daily_bin222.fits outfile=/scratch/kocevski/621622/cmap_296870401_297129601_4FGL_J2259.8-1552_daily_bin222.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.17

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/621622/ft1_filtered_4FGL_J2259.8-1552_daily_bin222.fits evtable="EVENTS" scfile=/scratch/kocevski/621622/ft2_4FGL_J2259.8-1552_daily_bin222.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/621622/Model_4FGL_J2259.8-1552_daily_bin222.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/621622/ft1_filtered_4FGL_J2259.8-1552_daily_bin222.fits.....................!
real 44.78
user 43.50
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    44.001       1.0000         .10000E-03   10000.    
     4 'norm      '    6.6708       1.0000         .10000E-03   10000.    
     5 'Prefactor '    40.807       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.8249       1.0000         .10000E-03   10000.    
     7 'norm      '    .84653       1.0000         .10000E-03   10000.    
     8 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    17.400       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.2999       1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.254       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10765E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10553E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    23.852       1.0000         .10000E-03   10000.    
    24 'Prefactor '    7.5629       1.0000         .10000E-03   10000.    
    25 'Prefactor '    12.303       1.0000         .10000E-03   10000.    
    26 'norm      '    1.1949       1.0000         .10000E-03   10000.    
    27 'norm      '    8.8389       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0535       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .80405       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=   5020.897     FROM MIGRAD    STATUS=CONVERGED    751 CALLS     3866 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.202        .51304E-07** at limit **
   2  Prefactor     .10000E-03    32.546       -.15804E-06** at limit **
   3  Prefactor     43.998        67.624       -.18897E-06   -.10193E-04
   4  norm          6.6709        3.6139        .36390E-07   -.17877E-04
   5  Prefactor     40.795        46.127       -.60165E-06   -.32376E-04
   6  Prefactor     4.8236        9.5533        .57174E-05   -.10994E-03
   7  norm          .84654        .71041        .98352E-08   -.23116E-04
   8  norm          .10000E-03    1.3141       -.17936E-06** at limit **
   9  Prefactor     .10000E-03    128.37        .54693E-05** at limit **
  10  Prefactor     .10000E-03    6.2206        .12361E-07** at limit **
  11  norm          .10000E-03    .34874        .32295E-08** at limit **
  12  Prefactor     .10000E-03    46.382        .46205E-06** at limit **
  13  Prefactor     .10000E-03    7.9097       -.23838E-07** at limit **
  14  Prefactor     17.399        13.295       -.37415E-07    .56999E-03
  15  Prefactor     1.3000        19.809        .26909E-05   -.26603E-04
  16  Prefactor     11.254        13.960        .22711E-06   -.13584E-05
  17  Prefactor     .10251E-03    8.4119       -.22823E-05** at limit **
  18  Prefactor     .10000E-03    227.48        .46941E-07** at limit **
  19  Prefactor     .10000E-03    21.585        .38251E-07** at limit **
  20  Prefactor     .10000E-03    20.250        .19482E-06** at limit **
  21  norm          .10000E-03    9.6067        .17065E-06** at limit **
  22  norm          .10000E-03    1.5597       -.11960E-07** at limit **
  23  Prefactor     23.769        67.925       -.10573E-04   -.16599E-03
  24  Prefactor     7.5915        30.018        .54693E-05    .52534E-04
  25  Prefactor     12.300        28.637        .42375E-06    .89632E-05
  26  norm          1.1947        .79539        .50268E-07    .10645E-04
  27  norm          8.8389        7.4592       -.10623E-07   -.39681E-04
  28  Normalizat    1.0535        .20784       -.53588E-06    .11736E-03
  29  Prefactor     .80402        .16513       -.27761E-06    .80928E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 43.9985
  norm       = 6.67087
  Prefactor  = 40.795
  Prefactor  = 4.82362
  norm       = 0.846541
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.3992
  Prefactor  = 1.30003
  Prefactor  = 11.2539
  Prefactor  = 0.000102506
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 23.7692
  Prefactor  = 7.59153
  Prefactor  = 12.2997
  norm       = 1.19474
  norm       = 8.83888
  Normalizat = 1.0535
  Prefactor  = 0.804021
 **********
 **   18 **HESSE 
 **********

 FCN=   5020.897     FROM HESSE     STATUS=OK           559 CALLS     4425 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.242        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    32.567        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     43.998        67.526        .60438E-04   -1.4380    
   4  norm          6.6709        3.6131        .95640E-04   -1.5191    
   5  Prefactor     40.795        46.146        .62750E-04   -1.4430    
   6  Prefactor     4.8236        9.7582        .91573E-03   -1.5269    
   7  norm          .84654        .73969        .52069E-03   -1.5524    
   8  norm          .10000E-03    2.0034        .15752E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    129.67        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.2500        .17250E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .42892        .81020E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    46.981        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    7.9133        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     17.399        12.304        .96017E-04   -1.4873    
  15  Prefactor     1.3000        20.018        .38761E-03   -1.5480    
  16  Prefactor     11.254        13.960        .11942E-03   -1.5037    
  17  Prefactor     .10251E-03    98.646        .35406E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    231.11        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    21.631        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    20.781        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    9.9677        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    1.6056        .17268E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     23.769        71.722        .82018E-04   -1.4733    
  24  Prefactor     7.5915        31.031        .14583E-03   -1.5157    
  25  Prefactor     12.300        28.664        .11421E-03   -1.5006    
  26  norm          1.1947        .80971        .44637E-04   -1.5489    
  27  norm          8.8389        7.6285        .13482E-03   -1.5113    
  28  Normalizat    1.0535        .24411        .24716E-03   -.91259    
  29  Prefactor     .80402        .19361        .22890E-03   -.99580    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.44682e-08
Minuit parameter uncertainties:
  1  3.79406e-06
  2  2.34825e-05
  3  67.6437
  4  3.61318
  5  46.1859
  6  9.76144
  7  0.739696
  8  2.56542e-05
  9  0.00105915
  10  1.64906e-06
  11  8.55503e-07
  12  4.19051e-05
  13  8.09941e-06
  14  12.3063
  15  10.2065
  16  13.9643
  17  0.0314984
  18  7.4033e-05
  19  5.24983e-05
  20  1.3277e-05
  21  9.73907e-06
  22  3.0123e-06
  23  71.9834
  24  30.7244
  25  28.6959
  26  0.809714
  27  7.62929
  28  0.24437
  29  0.193773
Done.

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

Extracting fit parameters...

4FGL J2259.8-1552
   Spectrum: PowerLaw
314    Prefactor:  1.125e+01  1.396e+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:  8.040e-01  1.938e-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.054e+00  2.444e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/621622/likelihoodResults_296870401_297129601_4FGL_J2259.8-1552_daily_bin222.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) = 5020.47624717
delta logL = 0.420995948657

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5020.29313003
delta logL = 0.604113093341

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.9094       1.0000         .10000E-03   10000.    
     2 'Index     '    .79879       1.0000          .0000       10.000    
     3 'Normalizat'    1.0638       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81195       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=   5020.293     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      214 TOTAL
                     EDM=   .98E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.9139        3.6075        .59550E-02   -.90231E-04
   2  Index         .80076        .47033        .25433       -.52615E-04
   3  Normalizat    1.0636        .19593        .39713E-01    .43497E-05
   4  Prefactor     .81220        .16166        .43873E-01    .51866E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.91394
  Index      = 0.800762
  Normalizat = 1.06357
  Prefactor  = 0.812199
 **********
 **   18 **HESSE 
 **********

 FCN=   5020.293     FROM HESSE     STATUS=OK            31 CALLS      245 TOTAL
                     EDM=   .35E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.9139        7.2485        .13963E-03   -1.5367    
   2  Index         .80076        .91004        .11505E-02   -.99700    
   3  Normalizat    1.0636        .22868        .24590E-03   -.90930    
   4  Prefactor     .81220        .18866        .22787E-03   -.99280    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.54857e-14
Minuit parameter uncertainties:
  1  7.2507
  2  0.928022
  3  0.228892
  4  0.188812
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/621622': 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) = 5020.29312344
delta logL = 0.604119683071

Extracting fit parameters...

4FGL J2259.8-1552
   Spectrum: PowerLaw
314    Prefactor:  2.914e+00  7.251e+00  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  8.008e-01  9.280e-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:  8.122e-01  1.888e-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.064e+00  2.289e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.05
Ra Dec: 344.953 -15.881
Photon Index (Free Index): 0.80 +/- 0.93
Photon Flux (Free Index): 3.76e-09 +/- 5.31e-09
Energy Flux (Free Index): 8.36e-05 +/- 1.26e-04

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/621622/cmap_HighResolution_296870401_297129601_4FGL_J2259.8-1552_daily_bin222.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.89e-03', comment='SUCCESS', energy_flux2='8.36e-05', dlogl='6.04e-01', photon_flux2='3.76e-09', job_status='DONE', time_completed='2021-09-29 04:41:52.834449', photon_index_error2='0.93', photon_index2='0.80', ts='0.85', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', photon_flux_upper_limit='1.17e-07', energy_flux_error2='1.26e-04', EG='1.05', time_epoch_completed='1632915712.83', return_code='0', job_id='621622', GAL2='0.81', EG2='1.06', return_code2='0', photon_flux_error2='5.31e-09', ts2='2.05', photon_index='2.13' WHERE bin_id='222' AND source_name='4FGL J2259.8-1552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 04:41:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0246>
Subject: Job 621622: <4FGL_J2259.8-1552_daily_bin222> in cluster <slac> Done

Job <4FGL_J2259.8-1552_daily_bin222> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 29 04:30:36 2021
Job was executed on host(s) <bullet0246>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 04:30: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:30:37 2021
Terminated at Wed Sep 29 04:41:53 2021
Results reported at Wed Sep 29 04:41:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2259.8-1552_daily_bin222 344.953 -15.8809 296870401 297129601 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 :                                   658.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             382.05 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   676 sec.
    Turnaround time :                            677 sec.

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

