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


Performing analysis on: 4FGL_J2259.8-1552_daily_bin192
RA = 344.953, Dec = -15.8809
tmin = 289094401, tmax = 289353601
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='621577', job_status='RUN', time_executed='2021-09-29 04:33:20.782080', time_epoch_executed='1632915200.78' WHERE source_name='4FGL J2259.8-1552' and cadence='daily' and bin_id='192'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/621577

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/621577/ft1_4FGL_J2259.8-1552_daily_bin192.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/621577/ft2_4FGL_J2259.8-1552_daily_bin192.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/621577/ft1_4FGL_J2259.8-1552_daily_bin192.fits outfile=/scratch/kocevski/621577/ft1_filteredMKT_4FGL_J2259.8-1552_daily_bin192.fits ra=344.953 dec=-15.8809 rad=12.0 tmin=289094401.0 tmax=289353601.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.54
user 3.31
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/621577/ft1_filtered_4FGL_J2259.8-1552_daily_bin192.fits" evtable="EVENTS" scfile=/scratch/kocevski/621577/ft2_4FGL_J2259.8-1552_daily_bin192.fits sctable="SC_DATA" outfile=/scratch/kocevski/621577/ltcube_289094401_289353601_4FGL_J2259.8-1552_daily_bin192.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/621577/ft2_4FGL_J2259.8-1552_daily_bin192.fits
.....................!
real 11.94
user 11.60
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/621577/ft1_filtered_4FGL_J2259.8-1552_daily_bin192.fits evtable="EVENTS" scfile=/scratch/kocevski/621577/ft2_4FGL_J2259.8-1552_daily_bin192.fits sctable="SC_DATA" expcube=/scratch/kocevski/621577/ltcube_289094401_289353601_4FGL_J2259.8-1552_daily_bin192.fits outfile=/scratch/kocevski/621577/expmap_289094401_289353601_4FGL_J2259.8-1552_daily_bin192.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/621577/ltcube_289094401_289353601_4FGL_J2259.8-1552_daily_bin192.fits
.....................!
real 191.63
user 185.92
sys 5.38

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/621577/ft1_filtered_4FGL_J2259.8-1552_daily_bin192.fits scfile=/scratch/kocevski/621577/ft2_4FGL_J2259.8-1552_daily_bin192.fits outfile=/scratch/kocevski/621577/cmap_289094401_289353601_4FGL_J2259.8-1552_daily_bin192.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.16

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/621577/ft1_filtered_4FGL_J2259.8-1552_daily_bin192.fits evtable="EVENTS" scfile=/scratch/kocevski/621577/ft2_4FGL_J2259.8-1552_daily_bin192.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/621577/Model_4FGL_J2259.8-1552_daily_bin192.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/621577/ft1_filtered_4FGL_J2259.8-1552_daily_bin192.fits.....................!
real 48.79
user 47.56
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10279E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    14.023       1.0000         .10000E-03   10000.    
     4 'norm      '    2.9396       1.0000         .10000E-03   10000.    
     5 'Prefactor '    51.774       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .20435E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .17890       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11647E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.5735       1.0000         .10000E-03   10000.    
    11 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10157E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    28.336       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10139E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .23447E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .26375E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    3.2258       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10207E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .32328E-01   1.0000         .10000E-03   10000.    
    27 'norm      '    9.7474       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .71646       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.9984       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=   5556.415     FROM MIGRAD    STATUS=CONVERGED    748 CALLS     4811 TOTAL
                     EDM=   .97E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.408        .30869E-06** at limit **
   2  Prefactor     .10000E-03    28.152        .46022E-06** at limit **
   3  Prefactor     13.934        123.65        .90853E-05    .52073E-04
   4  norm          2.9377        4.5102        .16867E-06    .95061E-04
   5  Prefactor     51.707        143.86        .37995E-05    .16000E-04
   6  Prefactor     .10000E-03    33.864        .81484E-06** at limit **
   7  norm          .10000E-03    .63188       -.36742E-06** at limit **
   8  norm          .16403        2.7519       -.21528E-05    .67006E-03
   9  Prefactor     .10000E-03    89.379        .17558E-06** at limit **
  10  Prefactor     4.5702        14.808       -.70256E-07   -.10546E-03
  11  norm          .10000E-03    .63391        .24906E-06** at limit **
  12  Prefactor     .10000E-03    24.047        .37812E-06** at limit **
  13  Prefactor     .10000E-03    6.1751        .33643E-07** at limit **
  14  Prefactor     .10000E-03    5.7738        .13336E-06** at limit **
  15  Prefactor     .10000E-03    10.134       -.76714E-08** at limit **
  16  Prefactor     .10000E-03    11.029        .55118E-06** at limit **
  17  Prefactor     .10000E-03    4.2013        .78475E-07** at limit **
  18  Prefactor     28.221        71.366       -.62563E-05   -.13491E-03
  19  Prefactor     .10000E-03    17.574       -.85868E-07** at limit **
  20  Prefactor     .10002E-03    33.194       -.26459E-05** at limit **
  21  norm          .10000E-03    11.713       -.57684E-05** at limit **
  22  norm          3.2235        4.2146        .27061E-06    .11889E-03
  23  Prefactor     .10000E-03    34.350        .17849E-06** at limit **
  24  Prefactor     .10000E-03    19.228        .10191E-06** at limit **
  25  Prefactor     .10000E-03    25.154        .33177E-06** at limit **
  26  norm          .34646E-01    .54481        .13080E-07    .74054E-04
  27  norm          9.7354        8.0317       -.21721E-06   -.22823E-03
  28  Normalizat    .71645        .26661       -.25297E-05   -.20247E-03
  29  Prefactor     1.9989        .22923        .19201E-06   -.23856E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.9343
  norm       = 2.93768
  Prefactor  = 51.7069
  Prefactor  = 0.000100002
  norm       = 0.0001
  norm       = 0.164028
  Prefactor  = 0.000100001
  Prefactor  = 4.57024
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.2206
  Prefactor  = 0.0001
  Prefactor  = 0.000100018
  norm       = 0.000100003
  norm       = 3.22351
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0346465
  norm       = 9.73541
  Normalizat = 0.716454
  Prefactor  = 1.99888
 **********
 **   18 **HESSE 
 **********

 FCN=   5556.415     FROM HESSE     STATUS=OK           549 CALLS     5360 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.489        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    28.163        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     13.934        126.72        .10696E-03   -1.4961    
   4  norm          2.9377        4.4923        .18495E-03   -1.5365    
   5  Prefactor     51.707        144.06        .55738E-04   -1.4269    
   6  Prefactor     .10000E-03    34.643        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    3.0487        .11043E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .16403        8.8793        .19183E-02   -1.5627    
   9  Prefactor     .10000E-03    89.699        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.5702        13.286        .18823E-03   -1.5280    
  11  norm          .10000E-03    .88305        .10382E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    24.094        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    6.1775        .18092E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.7858        .17496E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    10.174        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    11.125        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.2046        .14923E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     28.221        72.299        .75262E-04   -1.4645    
  19  Prefactor     .10000E-03    17.577        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10002E-03    35.443        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    14.258        .34099E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          3.2235        4.2110        .16801E-03   -1.5349    
  23  Prefactor     .10000E-03    34.377        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    19.299        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    25.182        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .34646E-01    4.0973        .88634E-03   -1.5671    
  27  norm          9.7354        9.2084        .64176E-03   -1.5084    
  28  Normalizat    .71645        .30690        .40251E-03   -1.0325    
  29  Prefactor     1.9989        .26726        .22624E-03   -.64378    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.99903e-09
Minuit parameter uncertainties:
  1  5.30695e-05
  2  7.69802e-05
  3  84.2794
  4  4.49285
  5  145.048
  6  0.000486981
  7  6.9025e-05
  8  2.41331
  9  0.000543827
  10  13.2941
  11  1.29729e-05
  12  0.000106906
  13  1.06705e-05
  14  3.07936e-05
  15  3.14939e-05
  16  0.000100164
  17  1.48459e-05
  18  72.5244
  19  2.3746e-05
  20  0.00160588
  21  0.000421685
  22  4.21137
  23  0.0001068
  24  0.000109405
  25  6.3026e-05
  26  0.752511
  27  9.20976
  28  0.307637
  29  0.267456
Done.

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

Extracting fit parameters...

4FGL J2259.8-1552
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  1.002e-04  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:  1.999e+00  2.675e-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.165e-01  3.076e-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: 9.07e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.88e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/621577/likelihoodResults_289094401_289353601_4FGL_J2259.8-1552_daily_bin192.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) = 5556.41523916
delta logL = -0.000427668330303

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5556.41481152
delta logL = -2.47564457823e-08

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.1329       1.0000          .0000       10.000    
     3 'Normalizat'    .71641       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.9989       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=   5556.415     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      211 TOTAL
                     EDM=   .39E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    994.12        .90712E-02** at limit **
   2  Index         2.1340        8.3157        .50000       -.80238E-06
   3  Normalizat    .71646        .69151E-01    .90853E-01    .34534E-04
   4  Prefactor     1.9989        .60742E-01    .51184E-01    .85345E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.13397
  Normalizat = 0.716457
  Prefactor  = 1.99888
 **********
 **   18 **HESSE 
 **********

 FCN=   5556.415     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      244 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2014.8        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1340        5.8100        .50000       -.61041    
   3  Normalizat    .71646        .13644        .40249E-03   -1.0325    
   4  Prefactor     1.9989        .12026        .22624E-03   -.64378    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.78847e-10
Minuit parameter uncertainties:
  1  4.7422e-05
  2  57.2937
  3  0.136504
  4  0.120274
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/621577': 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) = 5556.41481149
delta logL = 5.0295057008e-10

Extracting fit parameters...

4FGL J2259.8-1552
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  4.742e-05  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  2.134e+00  5.729e+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:  1.999e+00  1.203e-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.165e-01  1.365e-01  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/621577/cmap_HighResolution_289094401_289353601_4FGL_J2259.8-1552_daily_bin192.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.88e-03', job_status='DONE', photon_flux_upper_limit='9.07e-08', time_completed='2021-09-29 04:46:07.763371', job_id='621577', GAL2='2.00', fit_tolerance='1e-08', EG2='0.72', EG='0.72', time_epoch_completed='1632915967.76', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='2.00', dlogl='5.03e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='192' AND source_name='4FGL J2259.8-1552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 04:46:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0036>
Subject: Job 621577: <4FGL_J2259.8-1552_daily_bin192> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2259.8-1552_daily_bin192 344.953 -15.8809 289094401 289353601 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 :                                   763.36 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             269.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   934 sec.
    Turnaround time :                            936 sec.

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

