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


Performing analysis on: 4FGL_J2259.8-1552_daily_bin609
RA = 344.953, Dec = -15.8809
tmin = 397180801, tmax = 397440001
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='624405', job_status='RUN', time_executed='2021-09-29 04:42:52.371672', time_epoch_executed='1632915772.37' WHERE source_name='4FGL J2259.8-1552' and cadence='daily' and bin_id='609'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/624405

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

Retrieving the FT1 file...

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

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

Retrieving 41 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/624405/ft1_4FGL_J2259.8-1552_daily_bin609.fits


Retrieving the FT1 file...

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

Retrieving 41 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/624405/ft2_4FGL_J2259.8-1552_daily_bin609.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/624405/ft1_4FGL_J2259.8-1552_daily_bin609.fits outfile=/scratch/kocevski/624405/ft1_filteredMKT_4FGL_J2259.8-1552_daily_bin609.fits ra=344.953 dec=-15.8809 rad=12.0 tmin=397180801.0 tmax=397440001.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.99
user 3.75
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/624405/ft1_filtered_4FGL_J2259.8-1552_daily_bin609.fits" evtable="EVENTS" scfile=/scratch/kocevski/624405/ft2_4FGL_J2259.8-1552_daily_bin609.fits sctable="SC_DATA" outfile=/scratch/kocevski/624405/ltcube_397180801_397440001_4FGL_J2259.8-1552_daily_bin609.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/624405/ft2_4FGL_J2259.8-1552_daily_bin609.fits
.....................!
real 11.12
user 10.75
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/624405/ft1_filtered_4FGL_J2259.8-1552_daily_bin609.fits evtable="EVENTS" scfile=/scratch/kocevski/624405/ft2_4FGL_J2259.8-1552_daily_bin609.fits sctable="SC_DATA" expcube=/scratch/kocevski/624405/ltcube_397180801_397440001_4FGL_J2259.8-1552_daily_bin609.fits outfile=/scratch/kocevski/624405/expmap_397180801_397440001_4FGL_J2259.8-1552_daily_bin609.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/624405/ltcube_397180801_397440001_4FGL_J2259.8-1552_daily_bin609.fits
.....................!
real 192.94
user 187.48
sys 5.13

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/624405/ft1_filtered_4FGL_J2259.8-1552_daily_bin609.fits scfile=/scratch/kocevski/624405/ft2_4FGL_J2259.8-1552_daily_bin609.fits outfile=/scratch/kocevski/624405/cmap_397180801_397440001_4FGL_J2259.8-1552_daily_bin609.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/624405/ft1_filtered_4FGL_J2259.8-1552_daily_bin609.fits scfile=/scratch/kocevski/624405/ft2_4FGL_J2259.8-1552_daily_bin609.fits outfile=/scratch/kocevski/624405/cmap_HighResolution_397180801_397440001_4FGL_J2259.8-1552_daily_bin609.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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/624405/ft1_filtered_4FGL_J2259.8-1552_daily_bin609.fits evtable="EVENTS" scfile=/scratch/kocevski/624405/ft2_4FGL_J2259.8-1552_daily_bin609.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/624405/Model_4FGL_J2259.8-1552_daily_bin609.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/624405/ft1_filtered_4FGL_J2259.8-1552_daily_bin609.fits.....................!
real 52.89
user 51.58
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.0615       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    37.940       1.0000         .10000E-03   10000.    
     4 'norm      '    4.2906       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.5532       1.0000         .10000E-03   10000.    
     7 'norm      '    1.1435       1.0000         .10000E-03   10000.    
     8 'norm      '    4.9905       1.0000         .10000E-03   10000.    
     9 'Prefactor '    42.399       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.7874       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    53.440       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    12.068       1.0000         .10000E-03   10000.    
    21 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    5.3496       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .14498       1.0000         .10000E-03   10000.    
    25 'Prefactor '    3.0686       1.0000         .10000E-03   10000.    
    26 'norm      '    5.0164       1.0000         .10000E-03   10000.    
    27 'norm      '    1.8653       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0021       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .60028       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=   6114.867     FROM MIGRAD    STATUS=CONVERGED    743 CALLS     3725 TOTAL
                     EDM=   .26E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.0597        11.168        .97782E-06    .21854E-04
   2  Prefactor     .10000E-03    18.038        .23338E-06** at limit **
   3  Prefactor     37.934        38.281       -.10394E-05   -.11226E-03
   4  norm          4.2901        2.7829        .24219E-07   -.21473E-05
   5  Prefactor     .10000E-03    26.647       -.15168E-05** at limit **
   6  Prefactor     6.5535        7.0696        .14487E-06   -.29457E-04
   7  norm          1.1433        .86695        .38661E-07   -.58472E-04
   8  norm          4.9882        2.8754        .37243E-06   -.16524E-03
   9  Prefactor     42.373        44.506       -.22635E-05   -.13600E-03
  10  Prefactor     .10000E-03    5.0337        .50960E-08** at limit **
  11  norm          .10000E-03    .33365        .71844E-08** at limit **
  12  Prefactor     .10000E-03    10.059       -.60227E-06** at limit **
  13  Prefactor     .10000E-03    9.2686        .10506E-05** at limit **
  14  Prefactor     .10000E-03    2.6000       -.12774E-07** at limit **
  15  Prefactor     .10000E-03    3.2574        .26906E-07** at limit **
  16  Prefactor     6.7865        8.3674        .27333E-05   -.28817E-03
  17  Prefactor     .10000E-03    2.8861        .19102E-07** at limit **
  18  Prefactor     53.443        50.761       -.36786E-06   -.21903E-04
  19  Prefactor     .10000E-03    9.0374       -.32927E-06** at limit **
  20  Prefactor     12.069        10.855        .15424E-06    .20417E-04
  21  norm          .10000E-03    3.5283        .38060E-07** at limit **
  22  norm          5.3495        3.4416        .31786E-07    .52716E-04
  23  Prefactor     .10000E-03    28.294        .14288E-05** at limit **
  24  Prefactor     .10002E-03    12.754       -.90533E-07** at limit **
  25  Prefactor     3.0648        78.133       -.33369E-05   -.63646E-04
  26  norm          5.0178        1.0441       -.60886E-07    .13889E-03
  27  norm          1.8654        5.7064        .92365E-06   -.13641E-03
  28  Normalizat    1.0020        .17388        .78788E-06   -.69128E-04
  29  Prefactor     .60049        .13807       -.14745E-05    .66002E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.05973
  Prefactor  = 0.0001
  Prefactor  = 37.9345
  norm       = 4.29012
  Prefactor  = 0.000100001
  Prefactor  = 6.5535
  norm       = 1.14327
  norm       = 4.98818
  Prefactor  = 42.3733
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.78653
  Prefactor  = 0.0001
  Prefactor  = 53.4427
  Prefactor  = 0.0001
  Prefactor  = 12.0687
  norm       = 0.0001
  norm       = 5.34952
  Prefactor  = 0.000100001
  Prefactor  = 0.000100022
  Prefactor  = 3.06482
  norm       = 5.01777
  norm       = 1.86538
  Normalizat = 1.00202
  Prefactor  = 0.600487
 **********
 **   18 **HESSE 
 **********

 FCN=   6114.867     FROM HESSE     STATUS=OK           561 CALLS     4286 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.0597        11.167        .23185E-03   -1.5358    
   2  Prefactor     .10000E-03    18.046        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     37.934        38.533        .65069E-04   -1.4475    
   4  norm          4.2901        2.7837        .10127E-03   -1.5294    
   5  Prefactor     .10000E-03    26.953        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.5535        7.0664        .15677E-03   -1.5196    
   7  norm          1.1433        .84854        .59203E-04   -1.5494    
   8  norm          4.9882        2.9087        .40162E-03   -1.5261    
   9  Prefactor     42.373        45.468        .61565E-04   -1.4405    
  10  Prefactor     .10000E-03    5.0700        .17114E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .62280        .87347E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    10.149        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    9.5652        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.6122        .12312E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.2614        .13783E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     6.7865        8.5301        .77005E-03   -1.5187    
  17  Prefactor     .10000E-03    2.9001        .12973E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     53.443        50.756        .54867E-04   -1.4245    
  19  Prefactor     .10000E-03    9.0637        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     12.069        10.831        .11531E-03   -1.5013    
  21  norm          .10000E-03    3.5557        .14321E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          5.3495        3.4150        .10314E-03   -1.5245    
  23  Prefactor     .10000E-03    28.558        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10002E-03    18.620        .76381E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     3.0648        80.253        .23157E-03   -1.5358    
  26  norm          5.0178        1.0456        .30662E-04   -1.5260    
  27  norm          1.8654        5.7102        .27938E-03   -1.5435    
  28  Normalizat    1.0020        .20520        .22767E-03   -.92963    
  29  Prefactor     .60049        .16054        .24003E-03   -1.0757    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.64832e-10
Minuit parameter uncertainties:
  1  11.1746
  2  3.79869e-05
  3  38.5579
  4  2.78379
  5  0.000346051
  6  7.06734
  7  0.848551
  8  2.90882
  9  45.5054
  10  5.18785e-06
  11  2.61575e-06
  12  9.31967e-05
  13  0.000112331
  14  1.35935e-06
  15  1.2433e-07
  16  8.53167
  17  1.53299e-06
  18  50.7968
  19  4.70705e-05
  20  10.8331
  21  5.40417e-07
  22  3.41514
  23  0.000315513
  24  0.00127754
  25  31.4127
  26  1.04557
  27  5.71184
  28  0.205364
  29  0.160665
Done.

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

Extracting fit parameters...

4FGL J2259.8-1552
   Spectrum: PowerLaw
314    Prefactor:  6.787e+00  8.532e+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

GAL_V02
   Spectrum: PowerLaw
513    Prefactor:  6.005e-01  1.607e-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.002e+00  2.054e-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: 7.50e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.68e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/624405/likelihoodResults_397180801_397440001_4FGL_J2259.8-1552_daily_bin609.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) = 6114.77052811
delta logL = 0.0961653939885

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6114.7652998
delta logL = 0.101393704701

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.3256       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5741       1.0000          .0000       10.000    
     3 'Normalizat'    .98702       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .60855       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=   6114.765     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      284 TOTAL
                     EDM=   .58E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.3237        11.596        .17401E-03   -.33124E-03
   2  Index         2.5744        1.4733        .78065E-02   -.69544E-04
   3  Normalizat    .98702        .19557        .22925E-03    .42794E-03
   4  Prefactor     .60853        .16098        .23858E-03    .17455E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.32367
  Index      = 2.5744
  Normalizat = 0.987018
  Prefactor  = 0.608528
 **********
 **   18 **HESSE 
 **********

 FCN=   6114.765     FROM HESSE     STATUS=OK            25 CALLS      309 TOTAL
                     EDM=   .65E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.3237        8.6334        .69605E-05   -1.5292    
   2  Index         2.5744        1.1044        .31226E-03   -.50650    
   3  Normalizat    .98702        .19311        .45849E-04   -.93467    
   4  Prefactor     .60853        .15938        .95431E-05   -1.0723    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.46326e-10
Minuit parameter uncertainties:
  1  8.63585
  2  1.1165
  3  0.193248
  4  0.159499
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/624405': 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) = 6114.76529973
delta logL = 0.101393773572

Extracting fit parameters...

4FGL J2259.8-1552
   Spectrum: PowerLaw
314    Prefactor:  4.324e+00  8.636e+00  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  2.574e+00  1.116e+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:  6.085e-01  1.595e-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:  9.870e-01  1.932e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.05
Ra Dec: 344.953 -15.881
Photon Index (Free Index): 2.57 +/- 1.12
Photon Flux (Free Index): 2.86e-08 +/- 3.72e-08
Energy Flux (Free Index): 7.69e-06 +/- 9.27e-06

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/624405/cmap_HighResolution_397180801_397440001_4FGL_J2259.8-1552_daily_bin609.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.68e-03', comment='SUCCESS', energy_flux2='7.69e-06', dlogl='1.01e-01', photon_flux2='2.86e-08', job_status='DONE', time_completed='2021-09-29 04:55:30.701471', photon_index_error2='1.12', photon_index2='2.57', ts='0.85', fit_tolerance='1e-08', GAL='0.60', photon_index_error='0.00', photon_flux_upper_limit='7.50e-08', energy_flux_error2='9.27e-06', EG='1.00', time_epoch_completed='1632916530.7', return_code='0', job_id='624405', GAL2='0.61', EG2='0.99', return_code2='0', photon_flux_error2='3.72e-08', ts2='1.05', photon_index='2.13' WHERE bin_id='609' AND source_name='4FGL J2259.8-1552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 04:55:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0034>
Subject: Job 624405: <4FGL_J2259.8-1552_daily_bin609> in cluster <slac> Done

Job <4FGL_J2259.8-1552_daily_bin609> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 04:40:18 2021
Job was executed on host(s) <bullet0034>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 04:40:19 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:19 2021
Terminated at Wed Sep 29 04:55:31 2021
Results reported at Wed Sep 29 04:55:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2259.8-1552_daily_bin609 344.953 -15.8809 397180801 397440001 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 :                                   754.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             303.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   911 sec.
    Turnaround time :                            913 sec.

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

