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


Performing analysis on: 4FGL_J2259.8-1552_daily_bin391
RA = 344.953, Dec = -15.8809
tmin = 340675201, tmax = 340934401
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='623015', job_status='RUN', time_executed='2021-09-29 04:36:32.178015', time_epoch_executed='1632915392.18' WHERE source_name='4FGL J2259.8-1552' and cadence='daily' and bin_id='391'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/623015

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

Retrieving the FT1 file...

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

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

Retrieving 49 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/623015/ft1_4FGL_J2259.8-1552_daily_bin391.fits


Retrieving the FT1 file...

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

Retrieving 51 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/623015/ft2_4FGL_J2259.8-1552_daily_bin391.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/623015/ft1_4FGL_J2259.8-1552_daily_bin391.fits outfile=/scratch/kocevski/623015/ft1_filteredMKT_4FGL_J2259.8-1552_daily_bin391.fits ra=344.953 dec=-15.8809 rad=12.0 tmin=340675201.0 tmax=340934401.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 6.11
user 5.83
sys 0.24

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/623015/ft1_filtered_4FGL_J2259.8-1552_daily_bin391.fits" evtable="EVENTS" scfile=/scratch/kocevski/623015/ft2_4FGL_J2259.8-1552_daily_bin391.fits sctable="SC_DATA" outfile=/scratch/kocevski/623015/ltcube_340675201_340934401_4FGL_J2259.8-1552_daily_bin391.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/623015/ft2_4FGL_J2259.8-1552_daily_bin391.fits
.....................!
real 10.65
user 10.21
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/623015/ft1_filtered_4FGL_J2259.8-1552_daily_bin391.fits evtable="EVENTS" scfile=/scratch/kocevski/623015/ft2_4FGL_J2259.8-1552_daily_bin391.fits sctable="SC_DATA" expcube=/scratch/kocevski/623015/ltcube_340675201_340934401_4FGL_J2259.8-1552_daily_bin391.fits outfile=/scratch/kocevski/623015/expmap_340675201_340934401_4FGL_J2259.8-1552_daily_bin391.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/623015/ltcube_340675201_340934401_4FGL_J2259.8-1552_daily_bin391.fits
.....................!
real 190.35
user 185.13
sys 4.59

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/623015/ft1_filtered_4FGL_J2259.8-1552_daily_bin391.fits scfile=/scratch/kocevski/623015/ft2_4FGL_J2259.8-1552_daily_bin391.fits outfile=/scratch/kocevski/623015/cmap_340675201_340934401_4FGL_J2259.8-1552_daily_bin391.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.37
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/623015/ft1_filtered_4FGL_J2259.8-1552_daily_bin391.fits evtable="EVENTS" scfile=/scratch/kocevski/623015/ft2_4FGL_J2259.8-1552_daily_bin391.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/623015/Model_4FGL_J2259.8-1552_daily_bin391.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/623015/ft1_filtered_4FGL_J2259.8-1552_daily_bin391.fits.....................!
real 43.45
user 42.15
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.256       1.0000         .10000E-03   10000.    
     2 'Prefactor '    28.470       1.0000         .10000E-03   10000.    
     3 'Prefactor '    206.60       1.0000         .10000E-03   10000.    
     4 'norm      '    8.8706       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11928E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    47.542       1.0000         .10000E-03   10000.    
     7 'norm      '    .55327       1.0000         .10000E-03   10000.    
     8 'norm      '    .88945       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .12036E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.1146       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.3306       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .12059E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.8175       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .64395E-02   1.0000         .10000E-03   10000.    
    25 'Prefactor '    10.313       1.0000         .10000E-03   10000.    
    26 'norm      '    4.6617       1.0000         .10000E-03   10000.    
    27 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .96629       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .74629       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=   4708.545     FROM MIGRAD    STATUS=CONVERGED    744 CALLS     3728 TOTAL
                     EDM=   .64E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.264        26.774        .28561E-06   -.26268E-05
   2  Prefactor     28.487        59.409       -.55542E-06   -.70128E-05
   3  Prefactor     206.56        98.439        .12449E-05    .15502E-04
   4  norm          8.8722        5.3305        .93242E-07   -.79320E-04
   5  Prefactor     .10000E-03    61.594        .22800E-05** at limit **
   6  Prefactor     47.561        19.018        .13382E-07    .53908E-04
   7  norm          .55377        1.0192       -.17605E-07   -.22508E-03
   8  norm          .88966        2.0549        .56854E-06    .49983E-03
   9  Prefactor     .10000E-03    96.827       -.19766E-05** at limit **
  10  Prefactor     .10000E-03    2.8874        .57060E-07** at limit **
  11  norm          .10000E-03    .33896        .45940E-07** at limit **
  12  Prefactor     1.1184        32.950        .15625E-05    .20754E-04
  13  Prefactor     .10000E-03    6.0367        .21466E-06** at limit **
  14  Prefactor     .10000E-03    19.250        .20765E-05** at limit **
  15  Prefactor     .10000E-03    15.077        .34768E-06** at limit **
  16  Prefactor     .10000E-03    6.9226        .26036E-06** at limit **
  17  Prefactor     3.3327        8.3241        .14183E-05    .17999E-03
  18  Prefactor     .10000E-03    39.003       -.11139E-07** at limit **
  19  Prefactor     .10000E-03    8.7570        .52047E-07** at limit **
  20  Prefactor     .10000E-03    3.3462        .15114E-06** at limit **
  21  norm          .10000E-03    1.6842        .62182E-07** at limit **
  22  norm          .10000E-03    2.2438        .28150E-06** at limit **
  23  Prefactor     2.7102        164.01        .56376E-05    .11791E-03
  24  Prefactor     .10033E-03    36.865       -.62024E-05** at limit **
  25  Prefactor     10.309        29.366       -.29108E-06   -.86303E-05
  26  norm          4.6610        .96934       -.37556E-07    .74210E-03
  27  norm          .10000E-03    2.5841        .19382E-06** at limit **
  28  Normalizat    .96636        .21553        .22009E-05    .17610E-03
  29  Prefactor     .74606        .17535       -.30635E-05   -.39871E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.2638
  Prefactor  = 28.4869
  Prefactor  = 206.563
  norm       = 8.87215
  Prefactor  = 0.0001
  Prefactor  = 47.5606
  norm       = 0.553774
  norm       = 0.889657
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.11837
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.33269
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 2.71021
  Prefactor  = 0.00010033
  Prefactor  = 10.3088
  norm       = 4.66097
  norm       = 0.0001
  Normalizat = 0.966358
  Prefactor  = 0.746061
 **********
 **   18 **HESSE 
 **********

 FCN=   4708.545     FROM HESSE     STATUS=OK           551 CALLS     4279 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.264        26.755        .11442E-03   -1.5007    
   2  Prefactor     28.487        59.324        .75085E-04   -1.4640    
   3  Prefactor     206.56        97.670        .14060E-03   -1.2824    
   4  norm          8.8722        5.3273        .11608E-03   -1.5112    
   5  Prefactor     .10000E-03    61.434        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     47.561        19.032        .58154E-04   -1.4328    
   7  norm          .55377        .98786        .86223E-04   -1.5559    
   8  norm          .88966        2.0214        .14539E-03   -1.5519    
   9  Prefactor     .10000E-03    96.958        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.8883        .11383E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .33887        .76202E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.1184        32.081        .44633E-03   -1.5496    
  13  Prefactor     .10000E-03    6.0424        .16463E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    19.758        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    15.547        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    6.9632        .17639E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.3327        8.2559        .11090E-02   -1.5343    
  18  Prefactor     .10000E-03    39.030        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    8.7597        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    3.3541        .12262E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    1.6858        .86979E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    2.3432        .20046E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     2.7102        168.11        .24231E-03   -1.5379    
  24  Prefactor     .10033E-03    88.105        .51829E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     10.309        29.349        .12477E-03   -1.5066    
  26  norm          4.6610        .96883        .29596E-04   -1.5276    
  27  norm          .10000E-03    2.6052        .10776E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .96636        .24111        .25038E-03   -.94166    
  29  Prefactor     .74606        .19534        .23459E-03   -1.0175    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.52584e-09
Minuit parameter uncertainties:
  1  26.7811
  2  59.4469
  3  97.7467
  4  5.32759
  5  0.00014133
  6  19.0348
  7  0.987891
  8  2.02152
  9  9.86079e-05
  10  3.64347e-06
  11  5.95367e-07
  12  11.9862
  13  1.53338e-05
  14  0.000258358
  15  8.08306e-05
  16  3.14038e-05
  17  8.25874
  18  0.000121133
  19  9.32179e-06
  20  1.22931e-05
  21  3.61225e-06
  22  1.8248e-05
  23  42.8164
  24  0.0107982
  25  29.3899
  26  0.968832
  27  1.59676e-05
  28  0.241386
  29  0.195519
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
513    Prefactor:  7.461e-01  1.955e-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.664e-01  2.414e-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: 6.78e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.14e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/623015/likelihoodResults_340675201_340934401_4FGL_J2259.8-1552_daily_bin391.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) = 4708.54546573
delta logL = -0.000684158262629

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4708.54478163
delta logL = -5.65951268072e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1377       1.0000          .0000       10.000    
     3 'Normalizat'    .96633       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74610       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=   4708.545     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      235 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10020E-03    75.357        .17660E-02** at limit **
   2  Index         2.1609        8.8825        .50000       -.64858E-05
   3  Normalizat    .96635        .16276E-01    .25038E-03    .14394E-04
   4  Prefactor     .74606        .13632E-01    .23459E-03    .10661E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100201
  Index      = 2.16094
  Normalizat = 0.966354
  Prefactor  = 0.746064
 **********
 **   18 **HESSE 
 **********

 FCN=   4708.545     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      264 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10020E-03    378.07        .35320E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1609        8.3810        .50000       -.60385    
   3  Normalizat    .96635        .38625E-01    .10015E-04   -.94166    
   4  Prefactor     .74606        .32342E-01    .93837E-05   -1.0175    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.08016e-08
Minuit parameter uncertainties:
  1  0.017534
  2  738.245
  3  0.0386266
  4  0.0323426
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/623015': 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) = 4708.54478154
delta logL = 3.32638592226e-08

Extracting fit parameters...

4FGL J2259.8-1552
   Spectrum: PowerLaw
314    Prefactor:  1.002e-04  1.753e-02  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  2.161e+00  7.382e+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:  7.461e-01  3.234e-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:  9.664e-01  3.863e-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/623015/cmap_HighResolution_340675201_340934401_4FGL_J2259.8-1552_daily_bin391.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.14e-03', job_status='DONE', photon_flux_upper_limit='6.78e-08', time_completed='2021-09-29 04:47:26.239044', job_id='623015', GAL2='0.75', fit_tolerance='1e-08', EG2='0.97', EG='0.97', time_epoch_completed='1632916046.24', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.75', dlogl='3.33e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='391' AND source_name='4FGL J2259.8-1552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 04:47:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0210>
Subject: Job 623015: <4FGL_J2259.8-1552_daily_bin391> in cluster <slac> Done

Job <4FGL_J2259.8-1552_daily_bin391> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 04:35:34 2021
Job was executed on host(s) <bullet0210>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 04:35:36 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 04:35:36 2021
Terminated at Wed Sep 29 04:47:27 2021
Results reported at Wed Sep 29 04:47:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2259.8-1552_daily_bin391 344.953 -15.8809 340675201 340934401 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 :                                   648.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             317.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   710 sec.
    Turnaround time :                            713 sec.

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

