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


Performing analysis on: 4FGL_J2259.8-1552_daily_bin1004
RA = 344.953, Dec = -15.8809
tmin = 499564801, tmax = 499824001
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='627208', job_status='RUN', time_executed='2021-09-29 04:51:54.419901', time_epoch_executed='1632916314.42' WHERE source_name='4FGL J2259.8-1552' and cadence='daily' and bin_id='1004'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/627208

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/627208/ft1_4FGL_J2259.8-1552_daily_bin1004.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/627208/ft2_4FGL_J2259.8-1552_daily_bin1004.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/627208/ft1_4FGL_J2259.8-1552_daily_bin1004.fits outfile=/scratch/kocevski/627208/ft1_filteredMKT_4FGL_J2259.8-1552_daily_bin1004.fits ra=344.953 dec=-15.8809 rad=12.0 tmin=499564801.0 tmax=499824001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 5.04
user 4.79
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/627208/ft1_filtered_4FGL_J2259.8-1552_daily_bin1004.fits" evtable="EVENTS" scfile=/scratch/kocevski/627208/ft2_4FGL_J2259.8-1552_daily_bin1004.fits sctable="SC_DATA" outfile=/scratch/kocevski/627208/ltcube_499564801_499824001_4FGL_J2259.8-1552_daily_bin1004.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/627208/ft2_4FGL_J2259.8-1552_daily_bin1004.fits
.....................!
real 12.58
user 12.22
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/627208/ft1_filtered_4FGL_J2259.8-1552_daily_bin1004.fits evtable="EVENTS" scfile=/scratch/kocevski/627208/ft2_4FGL_J2259.8-1552_daily_bin1004.fits sctable="SC_DATA" expcube=/scratch/kocevski/627208/ltcube_499564801_499824001_4FGL_J2259.8-1552_daily_bin1004.fits outfile=/scratch/kocevski/627208/expmap_499564801_499824001_4FGL_J2259.8-1552_daily_bin1004.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/627208/ltcube_499564801_499824001_4FGL_J2259.8-1552_daily_bin1004.fits
.....................!
real 190.51
user 185.45
sys 4.68

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/627208/ft1_filtered_4FGL_J2259.8-1552_daily_bin1004.fits scfile=/scratch/kocevski/627208/ft2_4FGL_J2259.8-1552_daily_bin1004.fits outfile=/scratch/kocevski/627208/cmap_499564801_499824001_4FGL_J2259.8-1552_daily_bin1004.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/627208/ft1_filtered_4FGL_J2259.8-1552_daily_bin1004.fits scfile=/scratch/kocevski/627208/ft2_4FGL_J2259.8-1552_daily_bin1004.fits outfile=/scratch/kocevski/627208/cmap_HighResolution_499564801_499824001_4FGL_J2259.8-1552_daily_bin1004.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    76.865       1.0000         .10000E-03   10000.    
     2 'Prefactor '    142.56       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .80702       1.0000         .10000E-03   10000.    
     5 'Prefactor '    41.692       1.0000         .10000E-03   10000.    
     6 'Prefactor '    18.537       1.0000         .10000E-03   10000.    
     7 'norm      '    2.5025       1.0000         .10000E-03   10000.    
     8 'norm      '    .48371       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .44384E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .12056E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    4.3672       1.0000         .10000E-03   10000.    
    12 'Prefactor '    74.103       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11108E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    15.409       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    12.814       1.0000         .10000E-03   10000.    
    21 'norm      '    .49642E-01   1.0000         .10000E-03   10000.    
    22 'norm      '    .10314E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    5.6453       1.0000         .10000E-03   10000.    
    24 'Prefactor '    30.416       1.0000         .10000E-03   10000.    
    25 'Prefactor '    65.663       1.0000         .10000E-03   10000.    
    26 'norm      '    2.0377       1.0000         .10000E-03   10000.    
    27 'norm      '    .10040E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.2557       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .55158       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=   3414.794     FROM MIGRAD    STATUS=CONVERGED   1361 CALLS     5030 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     76.889        31.737        .45801E-04   -.10939E-03
   2  Prefactor     142.54        126.63        .33743E-04   -.50909E-04
   3  Prefactor     .10000E-03    27.015        .18142E-02** at limit **
   4  norm          .80643        3.4415        .20207E-03    .38566E-04
   5  Prefactor     41.677        96.428        .62083E-04   -.22103E-04
   6  Prefactor     18.550        25.246        .93027E-04    .94651E-04
   7  norm          2.5025        1.3460        .46838E-04   -.27561E-03
   8  norm          .48386        6.5277        .24041E-03    .49984E-03
   9  Prefactor     .10859E-03    127.49        .15363    ** at limit **
  10  Prefactor     .10000E-03    28.837        .18142E-02** at limit **
  11  norm          4.3651        2.7055        .51331E-04   -.25880E-03
  12  Prefactor     74.170        79.233        .46641E-04   -.64764E-04
  13  Prefactor     .10000E-03    8.0856        .16229E-02** at limit **
  14  Prefactor     .10000E-03    5.9172        .13879E-02** at limit **
  15  Prefactor     .10000E-03    44.721        .36285E-03** at limit **
  16  Prefactor     .10000E-03    10.666        .18142E-02** at limit **
  17  Prefactor     .10000E-03    6.9887        .15084E-02** at limit **
  18  Prefactor     15.344        423.24        .10203E-03   -.40313E-04
  19  Prefactor     .10000E-03    27.748        .18142E-02** at limit **
  20  Prefactor     12.834        41.060        .11190E-03   -.19415E-03
  21  norm          .19232E-03    48.917        .57508E-01** at limit **
  22  norm          .10000E-03    7.8394        .15860E-02** at limit **
  23  Prefactor     6.3788        1489.5        .16907E-02   -.21464E-04
  24  Prefactor     30.269        85.368        .72649E-04   -.87195E-04
  25  Prefactor     65.674        99.916        .49527E-04   -.65833E-04
  26  norm          2.0380        1.5277        .59713E-04   -.20933E-03
  27  norm          .10000E-03    14.164        .18142E-02** at limit **
  28  Normalizat    1.2554        .39085        .27227E-03   -.11120E-03
  29  Prefactor     .55182        .26004        .28808E-03   -.18191E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 76.8889
  Prefactor  = 142.536
  Prefactor  = 0.0001
  norm       = 0.806428
  Prefactor  = 41.6773
  Prefactor  = 18.5495
  norm       = 2.50248
  norm       = 0.483856
  Prefactor  = 0.000108588
  Prefactor  = 0.0001
  norm       = 4.36505
  Prefactor  = 74.1702
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.3443
  Prefactor  = 0.0001
  Prefactor  = 12.8336
  norm       = 0.000192323
  norm       = 0.0001
  Prefactor  = 6.3788
  Prefactor  = 30.2693
  Prefactor  = 65.674
  norm       = 2.038
  norm       = 0.0001
  Normalizat = 1.25538
  Prefactor  = 0.551816
 **********
 **   18 **HESSE 
 **********

 FCN=   3414.794     FROM HESSE     STATUS=OK           543 CALLS     5573 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     76.889        31.738        .91603E-05   -1.3952    
   2  Prefactor     142.54        126.60        .67486E-05   -1.3314    
   3  Prefactor     .10000E-03    27.015        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .80643        3.4382        .80829E-05   -1.5528    
   5  Prefactor     41.677        96.422        .12417E-04   -1.4416    
   6  Prefactor     18.550        25.249        .37211E-05   -1.4846    
   7  norm          2.5025        1.3460        .18735E-05   -1.5392    
   8  norm          .48386        6.5079        .96164E-05   -1.5569    
   9  Prefactor     .10859E-03    128.90        .15219       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    28.838        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          4.3651        2.7064        .20532E-05   -1.5290    
  12  Prefactor     74.170        79.263        .93282E-05   -1.3983    
  13  Prefactor     .10000E-03    8.0856        .32458E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.9173        .27758E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    44.723        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    10.667        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    6.9888        .30168E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     15.344        410.17        .20406E-04   -1.4924    
  19  Prefactor     .10000E-03    27.748        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     12.834        38.871        .44760E-05   -1.4991    
  21  norm          .19232E-03    33.860        .67057E-01   -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    7.8419        .31720E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     6.3788        1408.7        .67628E-04   -1.5203    
  24  Prefactor     30.269        82.988        .14530E-04   -1.4607    
  25  Prefactor     65.674        99.902        .99054E-05   -1.4085    
  26  norm          2.0380        1.5275        .23885E-05   -1.5422    
  27  norm          .10000E-03    14.166        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.2554        .39110        .54455E-04   -.84908    
  29  Prefactor     .55182        .26022        .11523E-04   -1.0965    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.62326e-09
Minuit parameter uncertainties:
  1  31.7447
  2  126.839
  3  3.27075e-05
  4  3.33036
  5  96.7857
  6  25.263
  7  1.34601
  8  3.54912
  9  0.0666873
  10  7.33723e-05
  11  2.70652
  12  79.3764
  13  6.26869e-07
  14  2.81613e-06
  15  3.90678e-05
  16  2.79487e-06
  17  2.66332e-06
  18  159.897
  19  9.33966e-06
  20  38.9479
  21  0.111886
  22  9.37545e-05
  23  194.414
  24  83.3073
  25  100.159
  26  1.52751
  27  0.000127544
  28  0.392026
  29  0.260783
Done.

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

Extracting fit parameters...

4FGL J2259.8-1552
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  2.795e-06  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:  5.518e-01  2.608e-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.255e+00  3.920e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/627208/likelihoodResults_499564801_499824001_4FGL_J2259.8-1552_daily_bin1004.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3414.79443143
delta logL = -0.000444841625267

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3414.79398657
delta logL = 1.77114998223e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1210       1.0000          .0000       10.000    
     3 'Normalizat'    1.2554       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .55182       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=   3414.794     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      247 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10030E-03    94.559        .18142E-02** at limit **
   2  Index         2.0940        8.2347        .50000        .68408E-05
   3  Normalizat    1.2554        .20983E-01    .27228E-03   -.79332E-06
   4  Prefactor     .55182        .15344E-01    .28807E-03   -.57224E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100299
  Index      = 2.09397
  Normalizat = 1.25538
  Prefactor  = 0.551818
 **********
 **   18 **HESSE 
 **********

 FCN=   3414.794     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      276 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10030E-03    421.47        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0940        5.0402        .50000       -.62021    
   3  Normalizat    1.2554        .46128E-01    .10891E-04   -.84908    
   4  Prefactor     .55182        .33730E-01    .11523E-04   -1.0965    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.3684e-09
Minuit parameter uncertainties:
  1  0.0226181
  2  639.043
  3  0.0461298
  4  0.0337314
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/627208': 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) = 3414.79398653
delta logL = 5.67952156416e-08

Extracting fit parameters...

4FGL J2259.8-1552
   Spectrum: PowerLaw
314    Prefactor:  1.003e-04  2.262e-02  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  2.094e+00  6.390e+02  0.000e+00  1.000e+01 (-1.000e+00)
316        Scale:  1.486e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
513    Prefactor:  5.518e-01  3.373e-02  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.255e+00  4.613e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 344.953 -15.881

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/627208/cmap_HighResolution_499564801_499824001_4FGL_J2259.8-1552_daily_bin1004.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.76e-03', job_status='DONE', photon_flux_upper_limit='1.16e-07', time_completed='2021-09-29 05:01:56.612828', job_id='627208', GAL2='0.55', fit_tolerance='1e-08', EG2='1.26', EG='1.26', time_epoch_completed='1632916916.61', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.55', dlogl='5.68e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='1004' AND source_name='4FGL J2259.8-1552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 05:01:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0220>
Subject: Job 627208: <4FGL_J2259.8-1552_daily_bin1004> in cluster <slac> Done

Job <4FGL_J2259.8-1552_daily_bin1004> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Wed Sep 29 04:50:31 2021
Job was executed on host(s) <bullet0220>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 04:50:33 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:50:33 2021
Terminated at Wed Sep 29 05:01:57 2021
Results reported at Wed Sep 29 05:01:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2259.8-1552_daily_bin1004 344.953 -15.8809 499564801 499824001 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 :                                   597.12 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             321.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   683 sec.
    Turnaround time :                            686 sec.

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

