/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 19 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 = 7427
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2259.8-1552_daily_bin125
RA = 344.953, Dec = -15.8809
tmin = 271728001, tmax = 271987201
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='621480', job_status='RUN', time_executed='2021-09-29 04:30:55.293850', time_epoch_executed='1632915055.29' WHERE source_name='4FGL J2259.8-1552' and cadence='daily' and bin_id='125'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/621480

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/621480/ft1_4FGL_J2259.8-1552_daily_bin125.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/621480/ft2_4FGL_J2259.8-1552_daily_bin125.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/621480/ft1_4FGL_J2259.8-1552_daily_bin125.fits outfile=/scratch/kocevski/621480/ft1_filteredMKT_4FGL_J2259.8-1552_daily_bin125.fits ra=344.953 dec=-15.8809 rad=12.0 tmin=271728001.0 tmax=271987201.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.13
user 2.92
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/621480/ft2_4FGL_J2259.8-1552_daily_bin125.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/621480/ft1_filteredMKT_4FGL_J2259.8-1552_daily_bin125.fits evtable="EVENTS" outfile="/scratch/kocevski/621480/ft1_filtered_4FGL_J2259.8-1552_daily_bin125.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/621480/ft1_filtered_4FGL_J2259.8-1552_daily_bin125.fits" evtable="EVENTS" scfile=/scratch/kocevski/621480/ft2_4FGL_J2259.8-1552_daily_bin125.fits sctable="SC_DATA" outfile=/scratch/kocevski/621480/ltcube_271728001_271987201_4FGL_J2259.8-1552_daily_bin125.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/621480/ft2_4FGL_J2259.8-1552_daily_bin125.fits
.....................!
real 12.67
user 12.33
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/621480/ft1_filtered_4FGL_J2259.8-1552_daily_bin125.fits evtable="EVENTS" scfile=/scratch/kocevski/621480/ft2_4FGL_J2259.8-1552_daily_bin125.fits sctable="SC_DATA" expcube=/scratch/kocevski/621480/ltcube_271728001_271987201_4FGL_J2259.8-1552_daily_bin125.fits outfile=/scratch/kocevski/621480/expmap_271728001_271987201_4FGL_J2259.8-1552_daily_bin125.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/621480/ltcube_271728001_271987201_4FGL_J2259.8-1552_daily_bin125.fits
.....................!
real 190.33
user 186.01
sys 3.97

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/621480/ft1_filtered_4FGL_J2259.8-1552_daily_bin125.fits scfile=/scratch/kocevski/621480/ft2_4FGL_J2259.8-1552_daily_bin125.fits outfile=/scratch/kocevski/621480/cmap_271728001_271987201_4FGL_J2259.8-1552_daily_bin125.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.52
user 0.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/621480/ft1_filtered_4FGL_J2259.8-1552_daily_bin125.fits scfile=/scratch/kocevski/621480/ft2_4FGL_J2259.8-1552_daily_bin125.fits outfile=/scratch/kocevski/621480/cmap_HighResolution_271728001_271987201_4FGL_J2259.8-1552_daily_bin125.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.53
user 0.38
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/621480/ft1_filtered_4FGL_J2259.8-1552_daily_bin125.fits evtable="EVENTS" scfile=/scratch/kocevski/621480/ft2_4FGL_J2259.8-1552_daily_bin125.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/621480/Model_4FGL_J2259.8-1552_daily_bin125.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/621480/ft1_filtered_4FGL_J2259.8-1552_daily_bin125.fits.....................!
real 52.78
user 51.49
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.721       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10422E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    8.0835       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .27795E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    14.131       1.0000         .10000E-03   10000.    
     7 'norm      '    .52613       1.0000         .10000E-03   10000.    
     8 'norm      '    1.6930       1.0000         .10000E-03   10000.    
     9 'Prefactor '    314.92       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .97717E-01   1.0000         .10000E-03   10000.    
    11 'norm      '    .10977E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    20.305       1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.6001       1.0000         .10000E-03   10000.    
    14 'Prefactor '    15.635       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.2985       1.0000         .10000E-03   10000.    
    16 'Prefactor '    13.468       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10259E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10288E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10130E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10149E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10034E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10163E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    37.628       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10311E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    2.0060       1.0000         .10000E-03   10000.    
    27 'norm      '    4.4664       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .72607       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .91147       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=   6337.607     FROM MIGRAD    STATUS=CONVERGED   1327 CALLS     5300 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.720        12.796        .12237E-03    .19511E-04
   2  Prefactor     .10000E-03    17.020        .18142E-02** at limit **
   3  Prefactor     .10000E-03    64.540        .18142E-02** at limit **
   4  norm          8.0824        3.5150        .47246E-03    .32904E-03
   5  Prefactor     .10000E-03    73.209        .21422E-02** at limit **
   6  Prefactor     14.131        13.053        .10655E-03    .74690E-05
   7  norm          .52625        .48751        .50207E-03    .39853E-03
   8  norm          1.6931        2.3103        .13007E-03   -.20392E-03
   9  Prefactor     314.87        78.496        .11452E-03    .75904E-04
  10  Prefactor     .10000E-03    14.388        .58865E-01** at limit **
  11  norm          .10000E-03    1.2415        .11184E-02** at limit **
  12  Prefactor     20.444        23.658        .88886E-04    .62544E-04
  13  Prefactor     8.6020        10.976        .13669E-03    .76518E-05
  14  Prefactor     15.631        14.063        .10129E-03    .68351E-04
  15  Prefactor     2.2958        6.3762        .27070E-03    .21293E-04
  16  Prefactor     13.469        10.787        .10915E-03    .49997E-05
  17  Prefactor     .10000E-03    16.054        .36285E-03** at limit **
  18  Prefactor     .10000E-03    27.619        .18142E-02** at limit **
  19  Prefactor     .10000E-03    19.947        .18142E-02** at limit **
  20  Prefactor     .10000E-03    2.4491        .12149E-02** at limit **
  21  norm          .10000E-03    1.3721        .90988E-03** at limit **
  22  norm          .10000E-03    1.8561        .20735E-03** at limit **
  23  Prefactor     37.619        38.721        .65337E-04    .31842E-04
  24  Prefactor     .10000E-03    6.7958        .18142E-02** at limit **
  25  Prefactor     .10000E-03    22.050        .18142E-02** at limit **
  26  norm          2.0060        .64450        .33650E-04    .30677E-04
  27  norm          4.4664        3.6620        .12867E-03    .41263E-04
  28  Normalizat    .72605        .20320        .27851E-03    .40370E-04
  29  Prefactor     .91158        .16619        .21293E-03    .23093E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.7198
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.08239
  Prefactor  = 0.0001
  Prefactor  = 14.1313
  norm       = 0.52625
  norm       = 1.69315
  Prefactor  = 314.868
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 20.4437
  Prefactor  = 8.60199
  Prefactor  = 15.6313
  Prefactor  = 2.29584
  Prefactor  = 13.4689
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 37.6195
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.00596
  norm       = 4.46636
  Normalizat = 0.726049
  Prefactor  = 0.911583
 **********
 **   18 **HESSE 
 **********

 FCN=   6337.607     FROM HESSE     STATUS=OK           533 CALLS     5833 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.720        12.796        .48946E-05   -1.5053    
   2  Prefactor     .10000E-03    17.020        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    64.548        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          8.0824        3.5151        .18898E-04   -1.5139    
   5  Prefactor     .10000E-03    73.228        .42843E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     14.131        13.053        .42619E-05   -1.4956    
   7  norm          .52625        .48748        .20083E-04   -1.5563    
   8  norm          1.6931        2.3101        .52026E-05   -1.5448    
   9  Prefactor     314.87        78.488        .22904E-04   -1.2140    
  10  Prefactor     .10000E-03    11.674        .67493E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.2437        .22368E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     20.444        23.531        .35554E-05   -1.4803    
  13  Prefactor     8.6020        10.977        .54676E-05   -1.5121    
  14  Prefactor     15.631        14.064        .40517E-05   -1.4917    
  15  Prefactor     2.2958        6.3752        .10828E-04   -1.5405    
  16  Prefactor     13.469        10.788        .43658E-05   -1.4974    
  17  Prefactor     .10000E-03    16.055        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    27.624        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    19.952        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.4492        .24297E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    1.3721        .18198E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    1.8562        .41470E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     37.619        38.707        .26135E-05   -1.4481    
  24  Prefactor     .10000E-03    6.7959        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    22.055        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          2.0060        .64452        .67300E-05   -1.5425    
  27  norm          4.4664        3.6621        .51466E-05   -1.5285    
  28  Normalizat    .72605        .20340        .11141E-04   -1.0287    
  29  Prefactor     .91158        .16633        .42586E-04   -.95738    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.43221e-10
Minuit parameter uncertainties:
  1  12.799
  2  1.05282e-05
  3  6.89515e-05
  4  3.51519
  5  0.000182036
  6  13.0557
  7  0.487486
  8  2.3102
  9  78.5147
  10  3.86216e-05
  11  8.10647e-06
  12  23.5413
  13  10.9795
  14  14.0671
  15  6.37712
  16  10.7894
  17  0.000197298
  18  8.90526e-06
  19  5.93149e-06
  20  3.11609e-06
  21  1.02487e-06
  22  3.10577e-06
  23  38.7329
  24  2.22324e-05
  25  5.52468e-06
  26  0.644524
  27  3.66231
  28  0.203611
  29  0.166424
Done.

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

Extracting fit parameters...

4FGL J2259.8-1552
   Spectrum: PowerLaw
314    Prefactor:  1.347e+01  1.079e+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:  9.116e-01  1.664e-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:  7.260e-01  2.036e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.49
Ra Dec: 344.953 -15.881
Photon Index (Fixed Index): 2.13 +/- 0.00
Photon Flux (Fixed Index): 3.75e-08 +/- 3.00e-08
Energy Flux (Fixed Index): 1.92e-05 +/- 1.54e-05

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

Saving results to:
/scratch/kocevski/621480/likelihoodResults_271728001_271987201_4FGL_J2259.8-1552_daily_bin125.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) = 6336.98833761
delta logL = 0.61901119835

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6336.95568128
delta logL = 0.651667530881

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.0741       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2219       1.0000          .0000       10.000    
     3 'Normalizat'    .65459       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95359       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=   6336.956     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      265 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.0618        30.753        .57836E-02   -.15644E-03
   2  Index         3.2248        2.3941        .10528        .79690E-04
   3  Normalizat    .65439        .58240E-01    .66013E-01   -.56504E-04
   4  Prefactor     .95371        .45575E-01    .45684E-01   -.95578E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.06178
  Index      = 3.22484
  Normalizat = 0.654387
  Prefactor  = 0.953705
 **********
 **   18 **HESSE 
 **********

 FCN=   6336.956     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      296 TOTAL
                     EDM=   .60E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.0618        52.590        .80420E-04   -1.5358    
   2  Index         3.2248        3.5425        .38860E-02   -.36295    
   3  Normalizat    .65439        .22636        .29211E-03   -1.0572    
   4  Prefactor     .95371        .18376        .20871E-03   -.94289    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.04592e-10
Minuit parameter uncertainties:
  1  25.4045
  2  4.02012
  3  0.226685
  4  0.183882
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/621480': 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) = 6336.95567504
delta logL = 0.65167377628

Extracting fit parameters...

4FGL J2259.8-1552
   Spectrum: PowerLaw
314    Prefactor:  3.062e+00  2.540e+01  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  3.225e+00  4.020e+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:  9.537e-01  1.839e-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.544e-01  2.267e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.93
Ra Dec: 344.953 -15.881
Photon Index (Free Index): 3.22 +/- 4.02
Photon Flux (Free Index): 8.30e-08 +/- 8.11e-08
Energy Flux (Free Index): 1.51e-05 +/- 1.40e-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/621480/cmap_HighResolution_271728001_271987201_4FGL_J2259.8-1552_daily_bin125.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.83e-03', comment='SUCCESS', photon_flux='3.75e-08', energy_flux2='1.51e-05', photon_flux_error='3.00e-08', dlogl='6.52e-01', energy_flux='1.92e-05', photon_flux2='8.30e-08', job_status='DONE', time_completed='2021-09-29 04:45:30.039414', photon_index_error2='4.02', photon_index2='3.22', ts='2.49', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', photon_flux_upper_limit='1.03e-07', energy_flux_error2='1.40e-05', EG='0.73', time_epoch_completed='1632915930.04', return_code='0', job_id='621480', GAL2='0.95', EG2='0.65', return_code2='102', energy_flux_error='1.54e-05', photon_flux_error2='8.11e-08', ts2='3.93', photon_index='2.13' WHERE bin_id='125' AND source_name='4FGL J2259.8-1552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 04:45:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0107>
Subject: Job 621480: <4FGL_J2259.8-1552_daily_bin125> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2259.8-1552_daily_bin125 344.953 -15.8809 271728001 271987201 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 :                                   868.17 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             328.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   905 sec.
    Turnaround time :                            906 sec.

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

