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


Performing analysis on: 4FGL_J2259.8-1552_daily_bin1114
RA = 344.953, Dec = -15.8809
tmin = 528076801, tmax = 528336001
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='627382', job_status='RUN', time_executed='2021-09-29 04:51:46.352485', time_epoch_executed='1632916306.35' WHERE source_name='4FGL J2259.8-1552' and cadence='daily' and bin_id='1114'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/627382

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/627382/ft1_4FGL_J2259.8-1552_daily_bin1114.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/627382/ft2_4FGL_J2259.8-1552_daily_bin1114.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/627382/ft1_4FGL_J2259.8-1552_daily_bin1114.fits outfile=/scratch/kocevski/627382/ft1_filteredMKT_4FGL_J2259.8-1552_daily_bin1114.fits ra=344.953 dec=-15.8809 rad=12.0 tmin=528076801.0 tmax=528336001.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.22
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/627382/ft1_filtered_4FGL_J2259.8-1552_daily_bin1114.fits" evtable="EVENTS" scfile=/scratch/kocevski/627382/ft2_4FGL_J2259.8-1552_daily_bin1114.fits sctable="SC_DATA" outfile=/scratch/kocevski/627382/ltcube_528076801_528336001_4FGL_J2259.8-1552_daily_bin1114.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/627382/ft2_4FGL_J2259.8-1552_daily_bin1114.fits
.....................!
real 11.98
user 11.62
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/627382/ft1_filtered_4FGL_J2259.8-1552_daily_bin1114.fits evtable="EVENTS" scfile=/scratch/kocevski/627382/ft2_4FGL_J2259.8-1552_daily_bin1114.fits sctable="SC_DATA" expcube=/scratch/kocevski/627382/ltcube_528076801_528336001_4FGL_J2259.8-1552_daily_bin1114.fits outfile=/scratch/kocevski/627382/expmap_528076801_528336001_4FGL_J2259.8-1552_daily_bin1114.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/627382/ltcube_528076801_528336001_4FGL_J2259.8-1552_daily_bin1114.fits
.....................!
real 190.62
user 185.45
sys 4.79

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/627382/ft1_filtered_4FGL_J2259.8-1552_daily_bin1114.fits scfile=/scratch/kocevski/627382/ft2_4FGL_J2259.8-1552_daily_bin1114.fits outfile=/scratch/kocevski/627382/cmap_528076801_528336001_4FGL_J2259.8-1552_daily_bin1114.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.14

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

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/627382/ft1_filtered_4FGL_J2259.8-1552_daily_bin1114.fits', '/scratch/kocevski/627382/ft2_4FGL_J2259.8-1552_daily_bin1114.fits', expMap='/scratch/kocevski/627382/expmap_528076801_528336001_4FGL_J2259.8-1552_daily_bin1114.fits', expCube='/scratch/kocevski/627382/ltcube_528076801_528336001_4FGL_J2259.8-1552_daily_bin1114.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/627382/Model_4FGL_J2259.8-1552_daily_bin1114.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/627382/ft1_filtered_4FGL_J2259.8-1552_daily_bin1114.fits
Spacecraft file(s): /scratch/kocevski/627382/ft2_4FGL_J2259.8-1552_daily_bin1114.fits
Exposure map: /scratch/kocevski/627382/expmap_528076801_528336001_4FGL_J2259.8-1552_daily_bin1114.fits
Exposure cube: /scratch/kocevski/627382/ltcube_528076801_528336001_4FGL_J2259.8-1552_daily_bin1114.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/627382/Model_4FGL_J2259.8-1552_daily_bin1114.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 4408.54726362

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.3210       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    9.4601       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11212E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.3465       1.0000         .10000E-03   10000.    
     8 'norm      '    2.5535       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .14619E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.1319       1.0000         .10000E-03   10000.    
    12 'Prefactor '    98.182       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    29.408       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.0769       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.8842       1.0000         .10000E-03   10000.    
    21 'norm      '    3.1201       1.0000         .10000E-03   10000.    
    22 'norm      '    10.517       1.0000         .10000E-03   10000.    
    23 'Prefactor '    45.591       1.0000         .10000E-03   10000.    
    24 'Prefactor '    23.988       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .88904       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .86007       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=   4408.359     FROM MIGRAD    STATUS=CONVERGED    731 CALLS     3748 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.3027        27.804       -.19103E-05   -.13261E-04
   2  Prefactor     .10000E-03    32.525       -.33623E-05** at limit **
   3  Prefactor     .10000E-03    50.263        .26857E-05** at limit **
   4  norm          9.4586        5.0043       -.36864E-06    .14825E-03
   5  Prefactor     .10009E-03    106.08       -.14514E-04** at limit **
   6  Prefactor     .10000E-03    15.097       -.24995E-05** at limit **
   7  norm          1.3465        1.1130       -.48134E-07   -.15776E-03
   8  norm          2.5535        2.4790       -.47358E-07    .14493E-04
   9  Prefactor     .10000E-03    50.200        .27002E-05** at limit **
  10  Prefactor     .10002E-03    220.49       -.62544E-04** at limit **
  11  norm          1.1312        1.5442       -.10683E-05   -.11354E-02
  12  Prefactor     98.182        51.362       -.28521E-06   -.21294E-03
  13  Prefactor     .10000E-03    59.829        .15494E-05** at limit **
  14  Prefactor     29.414        19.921        .31532E-05    .72318E-04
  15  Prefactor     .10000E-03    4.0576       -.92682E-07** at limit **
  16  Prefactor     .10000E-03    9.1950       -.16190E-06** at limit **
  17  Prefactor     6.0767        12.009       -.10180E-04    .26009E-03
  18  Prefactor     .10000E-03    14.711        .18123E-05** at limit **
  19  Prefactor     .10000E-03    19.649        .63579E-06** at limit **
  20  Prefactor     8.8847        8.5347        .49176E-06    .47296E-04
  21  norm          3.1191        6.4213       -.11045E-05    .93904E-04
  22  norm          10.517        4.4999        .46360E-07   -.51319E-05
  23  Prefactor     45.587        72.696        .40714E-06    .28211E-05
  24  Prefactor     23.984        30.986       -.19453E-06   -.20343E-04
  25  Prefactor     .10000E-03    24.005        .90766E-06** at limit **
  26  norm          .10000E-03    .19862        .49452E-09** at limit **
  27  norm          .10000E-03    1.8643       -.85802E-08** at limit **
  28  Normalizat    .88955        .24658       -.12603E-06    .38577E-04
  29  Prefactor     .85967        .19008        .14714E-06   -.78478E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.30266
  Prefactor  = 0.000100005
  Prefactor  = 0.000100004
  norm       = 9.45856
  Prefactor  = 0.000100087
  Prefactor  = 0.000100002
  norm       = 1.34645
  norm       = 2.55352
  Prefactor  = 0.000100003
  Prefactor  = 0.000100023
  norm       = 1.13116
  Prefactor  = 98.1822
  Prefactor  = 0.0001
  Prefactor  = 29.4135
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.07667
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 8.88466
  norm       = 3.11906
  norm       = 10.5168
  Prefactor  = 45.5871
  Prefactor  = 23.9837
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 0.889553
  Prefactor  = 0.859667
 **********
 **   18 **HESSE 
 **********

 FCN=   4408.359     FROM HESSE     STATUS=OK           555 CALLS     4303 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.3027        27.873        .19379E-03   -1.5293    
   2  Prefactor     .10000E-03    32.645        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    50.380        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          9.4586        5.0031        .10356E-03   -1.5093    
   5  Prefactor     .10009E-03    108.29        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    15.248        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.3465        1.1105        .37732E-04   -1.5476    
   8  norm          2.5535        2.4691        .99713E-04   -1.5388    
   9  Prefactor     .10000E-03    50.318        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10002E-03    220.06        .54971E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.1312        1.5074        .77894E-04   -1.5495    
  12  Prefactor     98.182        49.643        .40569E-04   -1.3723    
  13  Prefactor     .10000E-03    60.742        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     29.414        19.948        .73880E-04   -1.4623    
  15  Prefactor     .10000E-03    4.0620        .13062E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    9.2280        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     6.0767        12.044        .81435E-03   -1.5215    
  18  Prefactor     .10000E-03    14.745        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    19.692        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     8.8847        8.5042        .13447E-03   -1.5112    
  21  norm          3.1191        6.3837        .22298E-03   -1.5355    
  22  norm          10.517        4.5036        .88652E-04   -1.5059    
  23  Prefactor     45.587        72.708        .59380E-04   -1.4357    
  24  Prefactor     23.984        30.989        .81786E-04   -1.4728    
  25  Prefactor     .10000E-03    24.072        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    .19868        .18142E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    1.8705        .88524E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .88955        .29514        .28120E-03   -.96828    
  29  Prefactor     .85967        .22728        .23215E-03   -.97565    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.87297e-09
Minuit parameter uncertainties:
  1  21.9169
  2  0.000782901
  3  0.000852833
  4  5.00332
  5  0.00613928
  6  0.000362681
  7  1.11048
  8  2.46924
  9  0.00078483
  10  0.00452205
  11  1.50749
  12  49.6643
  13  3.47161e-05
  14  19.9528
  15  4.16608e-06
  16  1.09412e-05
  17  12.0484
  18  0.000281905
  19  0.000118094
  20  8.50533
  21  6.38514
  22  4.50376
  23  72.85
  24  31.0097
  25  0.000169113
  26  3.52669e-08
  27  2.85416e-07
  28  0.295673
  29  0.227533
Done.

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

Extracting fit parameters...

4FGL J2259.8-1552
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  1.094e-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:  8.597e-01  2.275e-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:  8.896e-01  2.957e-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: 8.89e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.74e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/627382/likelihoodResults_528076801_528336001_4FGL_J2259.8-1552_daily_bin1114.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) = 4408.35917514
delta logL = -0.000516239825629

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4408.3586615
delta logL = -2.6025400075e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12987E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1526       1.0000          .0000       10.000    
     3 'Normalizat'    .88916       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85999       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=   4408.355     FROM MIGRAD    STATUS=CONVERGED    181 CALLS      330 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .14681        10.887        .25876E-01   -.84723E-03
   2  Index         3.4704        .66292        .50000       -.38271E-05
   3  Normalizat    .88239        .15623E-01    .28120E-03   -.23691E-04
   4  Prefactor     .86265        .12762E-01    .23215E-03   -.12326E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.146806
  Index      = 3.4704
  Normalizat = 0.882388
  Prefactor  = 0.862649
 **********
 **   18 **HESSE 
 **********

 FCN=   4408.355     FROM HESSE     STATUS=OK            31 CALLS      361 TOTAL
                     EDM=   .26E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .14681        5.1422        .15156E-02   -1.5785    
   2  Index         3.4704        3.2743        .32082E-02   -.31090    
   3  Normalizat    .88239        .28250        .11248E-04   -.97082    
   4  Prefactor     .86265        .22487        .92859E-05   -.97459    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.64647e-08
Minuit parameter uncertainties:
  1  1.73728
  2  3.61072
  3  0.282977
  4  0.225114
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/627382': 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): 0
logL (Free Index) = 4408.35451795
delta logL = 0.00414094606458

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
513    Prefactor:  8.626e-01  2.251e-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:  8.824e-01  2.830e-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/627382/cmap_HighResolution_528076801_528336001_4FGL_J2259.8-1552_daily_bin1114.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.74e-03', job_status='DONE', photon_flux_upper_limit='8.89e-08', time_completed='2021-09-29 05:02:27.529636', job_id='627382', GAL2='0.86', fit_tolerance='1e-08', EG2='0.88', EG='0.89', time_epoch_completed='1632916947.53', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='4.14e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='1114' AND source_name='4FGL J2259.8-1552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 05:02:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0227>
Subject: Job 627382: <4FGL_J2259.8-1552_daily_bin1114> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2259.8-1552_daily_bin1114 344.953 -15.8809 528076801 528336001 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 :                                   617.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             361.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   698 sec.
    Turnaround time :                            701 sec.

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

