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


Performing analysis on: 4FGL_J2259.8-1552_daily_bin392
RA = 344.953, Dec = -15.8809
tmin = 340934401, tmax = 341193601
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='623017', job_status='RUN', time_executed='2021-09-29 04:38:45.490952', time_epoch_executed='1632915525.49' WHERE source_name='4FGL J2259.8-1552' and cadence='daily' and bin_id='392'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/623017

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/623017/ft1_4FGL_J2259.8-1552_daily_bin392.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/623017/ft2_4FGL_J2259.8-1552_daily_bin392.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/623017/ft1_4FGL_J2259.8-1552_daily_bin392.fits outfile=/scratch/kocevski/623017/ft1_filteredMKT_4FGL_J2259.8-1552_daily_bin392.fits ra=344.953 dec=-15.8809 rad=12.0 tmin=340934401.0 tmax=341193601.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.38
user 3.14
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/623017/ft2_4FGL_J2259.8-1552_daily_bin392.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/623017/ft1_filteredMKT_4FGL_J2259.8-1552_daily_bin392.fits evtable="EVENTS" outfile="/scratch/kocevski/623017/ft1_filtered_4FGL_J2259.8-1552_daily_bin392.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/623017/ft1_filtered_4FGL_J2259.8-1552_daily_bin392.fits" evtable="EVENTS" scfile=/scratch/kocevski/623017/ft2_4FGL_J2259.8-1552_daily_bin392.fits sctable="SC_DATA" outfile=/scratch/kocevski/623017/ltcube_340934401_341193601_4FGL_J2259.8-1552_daily_bin392.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/623017/ft2_4FGL_J2259.8-1552_daily_bin392.fits
.....................!
real 14.08
user 13.52
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/623017/ft1_filtered_4FGL_J2259.8-1552_daily_bin392.fits evtable="EVENTS" scfile=/scratch/kocevski/623017/ft2_4FGL_J2259.8-1552_daily_bin392.fits sctable="SC_DATA" expcube=/scratch/kocevski/623017/ltcube_340934401_341193601_4FGL_J2259.8-1552_daily_bin392.fits outfile=/scratch/kocevski/623017/expmap_340934401_341193601_4FGL_J2259.8-1552_daily_bin392.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/623017/ltcube_340934401_341193601_4FGL_J2259.8-1552_daily_bin392.fits
.....................!
real 191.54
user 185.76
sys 5.29

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/623017/ft1_filtered_4FGL_J2259.8-1552_daily_bin392.fits scfile=/scratch/kocevski/623017/ft2_4FGL_J2259.8-1552_daily_bin392.fits outfile=/scratch/kocevski/623017/cmap_340934401_341193601_4FGL_J2259.8-1552_daily_bin392.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/623017/ft1_filtered_4FGL_J2259.8-1552_daily_bin392.fits scfile=/scratch/kocevski/623017/ft2_4FGL_J2259.8-1552_daily_bin392.fits outfile=/scratch/kocevski/623017/cmap_HighResolution_340934401_341193601_4FGL_J2259.8-1552_daily_bin392.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/623017/ft1_filtered_4FGL_J2259.8-1552_daily_bin392.fits evtable="EVENTS" scfile=/scratch/kocevski/623017/ft2_4FGL_J2259.8-1552_daily_bin392.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/623017/Model_4FGL_J2259.8-1552_daily_bin392.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/623017/ft1_filtered_4FGL_J2259.8-1552_daily_bin392.fits.....................!
real 50.69
user 49.23
sys 1.28

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.5466       1.0000         .10000E-03   10000.    
     2 'Prefactor '    101.83       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    9.6843       1.0000         .10000E-03   10000.    
     5 'Prefactor '    61.161       1.0000         .10000E-03   10000.    
     6 'Prefactor '    25.789       1.0000         .10000E-03   10000.    
     7 'norm      '    1.6502       1.0000         .10000E-03   10000.    
     8 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.2329       1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.137       1.0000         .10000E-03   10000.    
    11 'norm      '    .10408E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10584E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10964E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.7595       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .25192E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    3.3211       1.0000         .10000E-03   10000.    
    27 'norm      '    7.4064       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .84153       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .77273       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=   5840.626     FROM MIGRAD    STATUS=CONVERGED    706 CALLS     3663 TOTAL
                     EDM=   .77E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.5474        9.4062        .95408E-07    .33986E-06
   2  Prefactor     101.83        78.142        .71222E-07    .13983E-04
   3  Prefactor     .10000E-03    33.003       -.38246E-06** at limit **
   4  norm          9.6847        4.4203        .13993E-06   -.38021E-03
   5  Prefactor     61.163        57.949        .44073E-08    .27421E-05
   6  Prefactor     25.792        13.341        .26603E-06    .55939E-04
   7  norm          1.6504        1.0675        .40903E-07    .50496E-03
   8  norm          .10000E-03    1.1048        .68124E-06** at limit **
   9  Prefactor     6.2387        69.676       -.18429E-05   -.12846E-04
  10  Prefactor     11.119        11.928        .66426E-06    .48126E-03
  11  norm          .10000E-03    .46816       -.42783E-06** at limit **
  12  Prefactor     .10000E-03    28.026       -.30975E-06** at limit **
  13  Prefactor     .10000E-03    5.6639        .68549E-07** at limit **
  14  Prefactor     .10000E-03    11.499        .71719E-06** at limit **
  15  Prefactor     .10000E-03    5.8054       -.43867E-07** at limit **
  16  Prefactor     .10000E-03    4.7239        .10806E-08** at limit **
  17  Prefactor     2.7607        7.0766        .40101E-05   -.34179E-03
  18  Prefactor     .10000E-03    32.558       -.24367E-06** at limit **
  19  Prefactor     .10000E-03    13.101        .12756E-06** at limit **
  20  Prefactor     .10000E-03    2.7833        .43113E-07** at limit **
  21  norm          .10000E-03    1.2017        .78897E-08** at limit **
  22  norm          .10000E-03    1.1288       -.30684E-07** at limit **
  23  Prefactor     .10000E-03    47.827        .29428E-06** at limit **
  24  Prefactor     .10000E-03    5.9813        .71569E-07** at limit **
  25  Prefactor     .10001E-03    89.750       -.89218E-06** at limit **
  26  norm          3.3211        .91586       -.66888E-07   -.65712E-03
  27  norm          7.4071        6.6863        .59094E-06   -.33800E-03
  28  Normalizat    .84138        .16884       -.16354E-05   -.60872E-04
  29  Prefactor     .77279        .13880        .69363E-06    .32104E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.54735
  Prefactor  = 101.83
  Prefactor  = 0.0001
  norm       = 9.68466
  Prefactor  = 61.1628
  Prefactor  = 25.7918
  norm       = 1.65044
  norm       = 0.0001
  Prefactor  = 6.23868
  Prefactor  = 11.1186
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.76073
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  norm       = 3.32109
  norm       = 7.40714
  Normalizat = 0.841383
  Prefactor  = 0.772785
 **********
 **   18 **HESSE 
 **********

 FCN=   5840.626     FROM HESSE     STATUS=OK           547 CALLS     4210 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.5474        9.3908        .18880E-03   -1.5281    
   2  Prefactor     101.83        78.093        .39844E-04   -1.3686    
   3  Prefactor     .10000E-03    33.047        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          9.6847        4.4241        .10174E-03   -1.5085    
   5  Prefactor     61.163        57.957        .51306E-04   -1.4142    
   6  Prefactor     25.792        13.321        .78883E-04   -1.4692    
   7  norm          1.6504        1.0578        .58942E-04   -1.5451    
   8  norm          .10000E-03    1.1686        .15865E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.2387        68.271        .16079E-03   -1.5208    
  10  Prefactor     11.119        10.757        .12005E-03   -1.5041    
  11  norm          .10000E-03    .65248        .90843E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    28.267        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    5.6779        .17764E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    11.855        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.8776        .17981E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    4.7565        .16220E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.7607        7.0897        .12251E-02   -1.5376    
  18  Prefactor     .10000E-03    32.734        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    13.139        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.7985        .12451E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    1.2033        .81818E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    1.1457        .79231E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    48.032        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    5.9980        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10001E-03    93.978        .42924E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          3.3211        .94149        .32048E-04   -1.5343    
  27  norm          7.4071        6.8677        .73686E-03   -1.5164    
  28  Normalizat    .84138        .19429        .24662E-03   -.98552    
  29  Prefactor     .77279        .16093        .21895E-03   -1.0074    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.36567e-09
Minuit parameter uncertainties:
  1  9.39385
  2  78.1724
  3  0.000235537
  4  4.42422
  5  58.0102
  6  13.323
  7  1.05777
  8  4.57401e-05
  9  41.3353
  10  10.7589
  11  1.68636e-05
  12  0.000434887
  13  4.03161e-05
  14  0.000206021
  15  1.30309e-06
  16  3.31463e-06
  17  7.09181
  18  0.000254879
  19  5.29454e-05
  20  5.09747e-06
  21  7.71303e-07
  22  1.30119e-06
  23  0.000283193
  24  2.54318e-05
  25  0.00153672
  26  0.941499
  27  6.86845
  28  0.194449
  29  0.161026
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
513    Prefactor:  7.728e-01  1.610e-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.414e-01  1.944e-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: 4.86e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.68e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/623017/likelihoodResults_340934401_341193601_4FGL_J2259.8-1552_daily_bin392.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) = 5840.62677606
delta logL = -0.00100145085617

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5840.62577479
delta logL = -1.75193235918e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1190       1.0000          .0000       10.000    
     3 'Normalizat'    .84151       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77269       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=   5840.626     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      234 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10046E-03    49.837        .16323E-02** at limit **
   2  Index         2.0847        5.7521        .50000        .17621E-04
   3  Normalizat    .84138        .13181E-01    .24662E-03    .21251E-04
   4  Prefactor     .77278        .11325E-01    .21894E-03    .24145E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010046
  Index      = 2.08465
  Normalizat = 0.841384
  Prefactor  = 0.772785
 **********
 **   18 **HESSE 
 **********

 FCN=   5840.626     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      263 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10046E-03    223.16        .32646E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0847        8.7333        .50000       -.62250    
   3  Normalizat    .84138        .29169E-01    .98647E-05   -.98551    
   4  Prefactor     .77278        .25059E-01    .87578E-05   -1.0074    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.60741e-08
Minuit parameter uncertainties:
  1  0.0203352
  2  499.817
  3  0.0291694
  4  0.0250595
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/623017': 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) = 5840.62577443
delta logL = 1.8244554667e-07

Extracting fit parameters...

4FGL J2259.8-1552
   Spectrum: PowerLaw
314    Prefactor:  1.005e-04  2.034e-02  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  2.085e+00  4.998e+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.728e-01  2.506e-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:  8.414e-01  2.917e-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/623017/cmap_HighResolution_340934401_341193601_4FGL_J2259.8-1552_daily_bin392.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.68e-03', job_status='DONE', photon_flux_upper_limit='4.86e-08', time_completed='2021-09-29 04:50:55.241219', job_id='623017', GAL2='0.77', fit_tolerance='1e-08', EG2='0.84', EG='0.84', time_epoch_completed='1632916255.24', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.77', dlogl='1.82e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='392' AND source_name='4FGL J2259.8-1552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 04:50:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0225>
Subject: Job 623017: <4FGL_J2259.8-1552_daily_bin392> in cluster <slac> Done

Job <4FGL_J2259.8-1552_daily_bin392> 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) <bullet0225>, 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:50:55 2021
Results reported at Wed Sep 29 04:50:55 2021

Your job looked like:

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

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

