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


Performing analysis on: 4FGL_J2259.8-1552_daily_bin544
RA = 344.953, Dec = -15.8809
tmin = 380332801, tmax = 380592001
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='623264', job_status='RUN', time_executed='2021-09-29 04:36:15.454639', time_epoch_executed='1632915375.45' WHERE source_name='4FGL J2259.8-1552' and cadence='daily' and bin_id='544'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/623264

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/623264/ft1_4FGL_J2259.8-1552_daily_bin544.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/623264/ft2_4FGL_J2259.8-1552_daily_bin544.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/623264/ft1_4FGL_J2259.8-1552_daily_bin544.fits outfile=/scratch/kocevski/623264/ft1_filteredMKT_4FGL_J2259.8-1552_daily_bin544.fits ra=344.953 dec=-15.8809 rad=12.0 tmin=380332801.0 tmax=380592001.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.45
user 3.24
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/623264/ft1_filtered_4FGL_J2259.8-1552_daily_bin544.fits" evtable="EVENTS" scfile=/scratch/kocevski/623264/ft2_4FGL_J2259.8-1552_daily_bin544.fits sctable="SC_DATA" outfile=/scratch/kocevski/623264/ltcube_380332801_380592001_4FGL_J2259.8-1552_daily_bin544.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/623264/ft2_4FGL_J2259.8-1552_daily_bin544.fits
.....................!
real 11.62
user 11.26
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/623264/ft1_filtered_4FGL_J2259.8-1552_daily_bin544.fits evtable="EVENTS" scfile=/scratch/kocevski/623264/ft2_4FGL_J2259.8-1552_daily_bin544.fits sctable="SC_DATA" expcube=/scratch/kocevski/623264/ltcube_380332801_380592001_4FGL_J2259.8-1552_daily_bin544.fits outfile=/scratch/kocevski/623264/expmap_380332801_380592001_4FGL_J2259.8-1552_daily_bin544.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/623264/ltcube_380332801_380592001_4FGL_J2259.8-1552_daily_bin544.fits
.....................!
real 189.38
user 184.40
sys 4.62

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/623264/ft1_filtered_4FGL_J2259.8-1552_daily_bin544.fits scfile=/scratch/kocevski/623264/ft2_4FGL_J2259.8-1552_daily_bin544.fits outfile=/scratch/kocevski/623264/cmap_380332801_380592001_4FGL_J2259.8-1552_daily_bin544.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/623264/ft1_filtered_4FGL_J2259.8-1552_daily_bin544.fits scfile=/scratch/kocevski/623264/ft2_4FGL_J2259.8-1552_daily_bin544.fits outfile=/scratch/kocevski/623264/cmap_HighResolution_380332801_380592001_4FGL_J2259.8-1552_daily_bin544.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.36
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/623264/ft1_filtered_4FGL_J2259.8-1552_daily_bin544.fits evtable="EVENTS" scfile=/scratch/kocevski/623264/ft2_4FGL_J2259.8-1552_daily_bin544.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/623264/Model_4FGL_J2259.8-1552_daily_bin544.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/623264/ft1_filtered_4FGL_J2259.8-1552_daily_bin544.fits.....................!
real 46.33
user 45.06
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    .10240E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    50.965       1.0000         .10000E-03   10000.    
     4 'norm      '    3.8001       1.0000         .10000E-03   10000.    
     5 'Prefactor '    70.207       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10241E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.6950       1.0000         .10000E-03   10000.    
     8 'norm      '    .11484E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    130.18       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.4950       1.0000         .10000E-03   10000.    
    11 'norm      '    .10233E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .15688E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10498E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11256E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10229E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .51225E-02   1.0000         .10000E-03   10000.    
    21 'norm      '    2.6897       1.0000         .10000E-03   10000.    
    22 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    35.799       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10411E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    12.070       1.0000         .10000E-03   10000.    
    27 'norm      '    19.881       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.2965       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .69827       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=   5223.318     FROM MIGRAD    STATUS=CONVERGED    786 CALLS     3763 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.1618        .91391E-09** at limit **
   2  Prefactor     .10000E-03    47.604        .23814E-05** at limit **
   3  Prefactor     50.880        62.578        .67199E-06   -.18236E-04
   4  norm          3.7987        4.3323       -.32522E-06    .65603E-04
   5  Prefactor     70.171        72.602       -.88283E-07    .47425E-05
   6  Prefactor     .10000E-03    10.449        .41841E-07** at limit **
   7  norm          2.6950        1.2409        .46153E-08   -.15481E-03
   8  norm          .10000E-03    2.6247        .14177E-06** at limit **
   9  Prefactor     130.45        77.023       -.23374E-06    .68548E-04
  10  Prefactor     3.4842        10.260       -.23392E-05   -.69674E-04
  11  norm          .10000E-03    .62929        .47703E-06** at limit **
  12  Prefactor     .10000E-03    105.05        .19723E-05** at limit **
  13  Prefactor     .10000E-03    7.8937        .18702E-07** at limit **
  14  Prefactor     .10000E-03    20.451        .33677E-06** at limit **
  15  Prefactor     .10000E-03    39.339        .16354E-06** at limit **
  16  Prefactor     .10000E-03    17.435       -.26677E-06** at limit **
  17  Prefactor     .10000E-03    5.7758        .28783E-07** at limit **
  18  Prefactor     .10000E-03    39.562       -.97936E-06** at limit **
  19  Prefactor     .10000E-03    12.774        .25499E-07** at limit **
  20  Prefactor     .10000E-03    65.780       -.32064E-05** at limit **
  21  norm          2.6868        7.3535       -.41679E-06    .20976E-03
  22  norm          .10000E-03    2.8048        .20754E-07** at limit **
  23  Prefactor     35.779        58.743        .79460E-06   -.17864E-04
  24  Prefactor     .10000E-03    16.639        .24367E-06** at limit **
  25  Prefactor     .10000E-03    19.091        .12669E-06** at limit **
  26  norm          12.070        2.0268       -.45381E-08    .17203E-04
  27  norm          19.884        13.350       -.85807E-09   -.24130E-05
  28  Normalizat    1.2960        .22392        .85601E-08    .21225E-04
  29  Prefactor     .69872        .17519       -.32857E-06    .30981E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 50.8798
  norm       = 3.79866
  Prefactor  = 70.1711
  Prefactor  = 0.0001
  norm       = 2.69502
  norm       = 0.000100002
  Prefactor  = 130.452
  Prefactor  = 3.48424
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.68678
  norm       = 0.0001
  Prefactor  = 35.7789
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 12.0698
  norm       = 19.8836
  Normalizat = 1.29603
  Prefactor  = 0.698715
 **********
 **   18 **HESSE 
 **********

 FCN=   5223.318     FROM HESSE     STATUS=OK           549 CALLS     4312 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.1695        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    46.964        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     50.880        62.506        .56177E-04   -1.4280    
   4  norm          3.7987        4.2799        .75518E-03   -1.5318    
   5  Prefactor     70.171        72.613        .47908E-04   -1.4031    
   6  Prefactor     .10000E-03    10.495        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.6950        1.2373        .51637E-04   -1.5380    
   8  norm          .10000E-03    8.8675        .19245E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     130.45        68.486        .35289E-04   -1.3419    
  10  Prefactor     3.4842        10.675        .21627E-03   -1.5335    
  11  norm          .10000E-03    1.0965        .10696E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    107.99        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    7.9002        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    20.866        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    40.858        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    17.966        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    5.7885        .16963E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    39.553        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    12.779        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    65.119        .37401E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.6868        7.0842        .24842E-03   -1.5380    
  22  norm          .10000E-03    2.9054        .23631E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     35.779        58.686        .66980E-04   -1.4511    
  24  Prefactor     .10000E-03    16.632        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    19.110        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          12.070        2.0451        .35586E-04   -1.5013    
  27  norm          19.884        13.470        .89828E-04   -1.4816    
  28  Normalizat    1.2960        .26598        .26707E-03   -.83685    
  29  Prefactor     .69872        .20896        .27890E-03   -1.0358    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.55973e-10
Minuit parameter uncertainties:
  1  1.70844e-06
  2  0.000296501
  3  62.5872
  4  4.28022
  5  72.7047
  6  7.17713e-06
  7  1.23731
  8  0.000251947
  9  68.5281
  10  10.6805
  11  8.36253e-06
  12  2.9454e-05
  13  1.41709e-06
  14  1.75053e-05
  15  9.93498e-05
  16  8.18822e-05
  17  1.28002e-06
  18  9.27034e-05
  19  5.73656e-06
  20  0.000288171
  21  7.08645
  22  3.0398e-06
  23  58.7813
  24  6.92535e-05
  25  5.36614e-06
  26  2.04514
  27  13.472
  28  0.266265
  29  0.209192
Done.

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

Extracting fit parameters...

4FGL J2259.8-1552
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  8.188e-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:  6.987e-01  2.092e-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.296e+00  2.663e-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: 7.43e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.63e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/623264/likelihoodResults_380332801_380592001_4FGL_J2259.8-1552_daily_bin544.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) = 5223.31808712
delta logL = -0.000265643157036

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5223.31782073
delta logL = 7.50169419916e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2296       1.0000          .0000       10.000    
     3 'Normalizat'    1.2960       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .69871       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=   5223.318     FROM MIGRAD    STATUS=CONVERGED     68 CALLS      258 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10014E-03    2.4802        .90712E-01** at limit **
   2  Index         2.3275        2.7563        .50000       -.38260E-04
   3  Normalizat    1.2960        .40189E-02    .60389E-01   -.58352E-04
   4  Prefactor     .69871        .31977E-02    .63046E-01   -.45729E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100142
  Index      = 2.32748
  Normalizat = 1.29603
  Prefactor  = 0.698715
 **********
 **   18 **HESSE 
 **********

 FCN=   5223.318     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      293 TOTAL
                     EDM=   .72E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10014E-03    6429.4        .31320E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3275        6.3797        .50000       -.56392    
   3  Normalizat    1.2960        .55553E-01    .26707E-03   -.83685    
   4  Prefactor     .69871        .44107E-01    .27890E-03   -1.0358    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.22226e-07
Minuit parameter uncertainties:
  1  0.0425786
  2  37.5179
  3  0.0555553
  4  0.0441088
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/623264': 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) = 5223.3178199
delta logL = 1.58216607815e-06

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
513    Prefactor:  6.987e-01  4.411e-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.296e+00  5.556e-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/623264/cmap_HighResolution_380332801_380592001_4FGL_J2259.8-1552_daily_bin544.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.63e-03', job_status='DONE', photon_flux_upper_limit='7.43e-08', time_completed='2021-09-29 04:47:40.535131', job_id='623264', GAL2='0.70', fit_tolerance='1e-08', EG2='1.30', EG='1.30', time_epoch_completed='1632916060.54', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.70', dlogl='1.58e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='544' AND source_name='4FGL J2259.8-1552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 04:47:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0251>
Subject: Job 623264: <4FGL_J2259.8-1552_daily_bin544> in cluster <slac> Done

Job <4FGL_J2259.8-1552_daily_bin544> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 04:35:58 2021
Job was executed on host(s) <bullet0251>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 04:36:00 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:36:00 2021
Terminated at Wed Sep 29 04:47:41 2021
Results reported at Wed Sep 29 04:47:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2259.8-1552_daily_bin544 344.953 -15.8809 380332801 380592001 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 :                                   673.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             350.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   700 sec.
    Turnaround time :                            703 sec.

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

