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


Performing analysis on: 4FGL_J2259.8-1552_daily_bin389
RA = 344.953, Dec = -15.8809
tmin = 340156801, tmax = 340416001
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='623012', job_status='RUN', time_executed='2021-09-29 04:38:37.911802', time_epoch_executed='1632915517.91' WHERE source_name='4FGL J2259.8-1552' and cadence='daily' and bin_id='389'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/623012

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/623012/ft1_4FGL_J2259.8-1552_daily_bin389.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/623012/ft2_4FGL_J2259.8-1552_daily_bin389.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/623012/ft1_4FGL_J2259.8-1552_daily_bin389.fits outfile=/scratch/kocevski/623012/ft1_filteredMKT_4FGL_J2259.8-1552_daily_bin389.fits ra=344.953 dec=-15.8809 rad=12.0 tmin=340156801.0 tmax=340416001.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.30
user 3.08
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/623012/ft2_4FGL_J2259.8-1552_daily_bin389.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/623012/ft1_filteredMKT_4FGL_J2259.8-1552_daily_bin389.fits evtable="EVENTS" outfile="/scratch/kocevski/623012/ft1_filtered_4FGL_J2259.8-1552_daily_bin389.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.47
user 0.31
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/623012/ft1_filtered_4FGL_J2259.8-1552_daily_bin389.fits" evtable="EVENTS" scfile=/scratch/kocevski/623012/ft2_4FGL_J2259.8-1552_daily_bin389.fits sctable="SC_DATA" outfile=/scratch/kocevski/623012/ltcube_340156801_340416001_4FGL_J2259.8-1552_daily_bin389.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/623012/ft2_4FGL_J2259.8-1552_daily_bin389.fits
.....................!
real 11.91
user 11.55
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/623012/ft1_filtered_4FGL_J2259.8-1552_daily_bin389.fits evtable="EVENTS" scfile=/scratch/kocevski/623012/ft2_4FGL_J2259.8-1552_daily_bin389.fits sctable="SC_DATA" expcube=/scratch/kocevski/623012/ltcube_340156801_340416001_4FGL_J2259.8-1552_daily_bin389.fits outfile=/scratch/kocevski/623012/expmap_340156801_340416001_4FGL_J2259.8-1552_daily_bin389.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/623012/ltcube_340156801_340416001_4FGL_J2259.8-1552_daily_bin389.fits
.....................!
real 190.43
user 185.53
sys 4.58

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/623012/ft1_filtered_4FGL_J2259.8-1552_daily_bin389.fits scfile=/scratch/kocevski/623012/ft2_4FGL_J2259.8-1552_daily_bin389.fits outfile=/scratch/kocevski/623012/cmap_340156801_340416001_4FGL_J2259.8-1552_daily_bin389.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/623012/ft1_filtered_4FGL_J2259.8-1552_daily_bin389.fits scfile=/scratch/kocevski/623012/ft2_4FGL_J2259.8-1552_daily_bin389.fits outfile=/scratch/kocevski/623012/cmap_HighResolution_340156801_340416001_4FGL_J2259.8-1552_daily_bin389.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=344.953 yref=-15.8809 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11559       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.5492       1.0000         .10000E-03   10000.    
     4 'norm      '    25.572       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    24.216       1.0000         .10000E-03   10000.    
     7 'norm      '    4.0897       1.0000         .10000E-03   10000.    
     8 'norm      '    1.0416       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10466E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    15.809       1.0000         .10000E-03   10000.    
    11 'norm      '    .10058E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10134E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.2037       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .46447E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .22093E-01   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.1477       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10072E-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      '    2.8336       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .35615E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    6.9437       1.0000         .10000E-03   10000.    
    25 'Prefactor '    6.4132       1.0000         .10000E-03   10000.    
    26 'norm      '    2.0574       1.0000         .10000E-03   10000.    
    27 'norm      '    23.731       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .96569       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .79313       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=   4693.545     FROM MIGRAD    STATUS=CONVERGED    754 CALLS     3786 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .83401E-01    16.050       -.24071E-05    .35266E-03
   2  Prefactor     .10000E-03    74.448       -.45512E-04** at limit **
   3  Prefactor     1.5723        318.06       -.99079E-05    .48276E-05
   4  norm          25.571        7.5884        .19175E-06    .31912E-03
   5  Prefactor     .10000E-03    95.648        .30857E-04** at limit **
   6  Prefactor     24.222        16.074       -.79232E-06   -.14725E-04
   7  norm          4.0898        1.5025       -.38476E-07    .93949E-03
   8  norm          1.0434        2.7845       -.28599E-06   -.28770E-03
   9  Prefactor     .10000E-03    57.245        .19154E-04** at limit **
  10  Prefactor     15.788        19.895        .16030E-05    .50250E-03
  11  norm          .10000E-03    1.5397       -.48049E-06** at limit **
  12  Prefactor     .10000E-03    33.617       -.29152E-05** at limit **
  13  Prefactor     6.2057        12.035        .80866E-07   -.81019E-05
  14  Prefactor     .10000E-03    6.0802       -.18420E-06** at limit **
  15  Prefactor     .10000E-03    9.2962       -.39787E-06** at limit **
  16  Prefactor     .10011E-03    12.473       -.31106E-06** at limit **
  17  Prefactor     1.1463        2.4239        .78290E-06   -.13077E-02
  18  Prefactor     .10000E-03    27.335        .89016E-06** at limit **
  19  Prefactor     .10000E-03    11.901        .13122E-07** at limit **
  20  Prefactor     .10000E-03    3.1373       -.24571E-07** at limit **
  21  norm          .10000E-03    1.8697       -.17087E-06** at limit **
  22  norm          2.8350        3.3794        .19578E-06   -.81017E-05
  23  Prefactor     .10000E-03    153.77        .24199E-04** at limit **
  24  Prefactor     6.9765        22.804       -.69360E-05   -.95767E-04
  25  Prefactor     6.4117        63.220       -.47251E-05   -.49745E-05
  26  norm          2.0573        1.0356        .11095E-06   -.15443E-03
  27  norm          23.730        10.816       -.18177E-06   -.59439E-04
  28  Normalizat    .96576        .23968        .12610E-05    .17765E-03
  29  Prefactor     .79304        .18964       -.64497E-07    .28666E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0834005
  Prefactor  = 0.0001
  Prefactor  = 1.57228
  norm       = 25.5707
  Prefactor  = 0.0001
  Prefactor  = 24.222
  norm       = 4.08976
  norm       = 1.04339
  Prefactor  = 0.0001
  Prefactor  = 15.7876
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 6.20569
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100109
  Prefactor  = 1.14632
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.83498
  Prefactor  = 0.000100004
  Prefactor  = 6.97654
  Prefactor  = 6.4117
  norm       = 2.05735
  norm       = 23.7302
  Normalizat = 0.965764
  Prefactor  = 0.793042
 **********
 **   18 **HESSE 
 **********

 FCN=   4693.545     FROM HESSE     STATUS=OK           575 CALLS     4361 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .83401E-01    18.009        .86892E-01   -1.5650    
   2  Prefactor     .10000E-03    73.486        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.5723        321.81        .34225E-03   -1.5457    
   4  norm          25.571        7.5882        .79217E-04   -1.4696    
   5  Prefactor     .10000E-03    95.098        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     24.222        16.012        .81400E-04   -1.4723    
   7  norm          4.0898        1.4972        .47417E-04   -1.5303    
   8  norm          1.0434        2.5264        .17648E-02   -1.5504    
   9  Prefactor     .10000E-03    57.159        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     15.788        16.211        .10073E-03   -1.4913    
  11  norm          .10000E-03    2.2534        .13188E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    33.721        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6.2057        12.167        .16118E-03   -1.5210    
  14  Prefactor     .10000E-03    6.0974        .16487E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    27.362        .40095E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10011E-03    18.092        .70549E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.1463        16.798        .21627E-02   -1.5494    
  18  Prefactor     .10000E-03    27.357        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    11.903        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    3.1416        .11850E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    1.8719        .91485E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          2.8350        3.3452        .12517E-03   -1.5371    
  23  Prefactor     .10000E-03    155.39        .21316E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     6.9765        22.849        .15225E-03   -1.5180    
  25  Prefactor     6.4117        63.001        .15849E-03   -1.5201    
  26  norm          2.0573        1.0482        .41535E-04   -1.5421    
  27  norm          23.730        10.972        .82228E-04   -1.4733    
  28  Normalizat    .96576        .28549        .27363E-03   -.94186    
  29  Prefactor     .79304        .22493        .24526E-03   -.99985    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.35651e-08
Minuit parameter uncertainties:
  1  2.45039
  2  0.000262853
  3  45.2349
  4  7.58848
  5  0.000142195
  6  16.0146
  7  1.49721
  8  2.52668
  9  9.19106e-05
  10  16.216
  11  8.7215e-05
  12  0.000121811
  13  12.1714
  14  4.85323e-06
  15  9.37035e-05
  16  0.0028095
  17  8.77877
  18  8.37948e-06
  19  1.37285e-05
  20  1.68254e-06
  21  9.1835e-07
  22  3.3454
  23  0.00163031
  24  22.8776
  25  40.2517
  26  1.04824
  27  10.9727
  28  0.285944
  29  0.225186
Done.

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

Extracting fit parameters...

4FGL J2259.8-1552
   Spectrum: PowerLaw
314    Prefactor:  1.001e-04  2.809e-03  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.930e-01  2.252e-01  0.000e+00  1.000e+01 ( 1.000e+00)
514        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
515        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
512   Normalization:  9.658e-01  2.859e-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: 1.00e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.61e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/623012/likelihoodResults_340156801_340416001_4FGL_J2259.8-1552_daily_bin389.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) = 4693.54477204
delta logL = -1.11490116979e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4692.86446511
delta logL = 0.680295781039

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .82305       1.0000         .10000E-03   10000.    
     2 'Index     '    3.7686       1.0000          .0000       10.000    
     3 'Normalizat'    .86714       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83973       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=   4692.864     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      257 TOTAL
                     EDM=   .65E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .82362        14.279        .12526E-01    .11512E-02
   2  Index         3.7685        2.7425        .92957E-01    .18642E-03
   3  Normalizat    .86713        .52634E-01    .64946E-01    .10612E-04
   4  Prefactor     .83978        .43350E-01    .44232E-01   -.57583E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.823623
  Index      = 3.76851
  Normalizat = 0.867131
  Prefactor  = 0.839779
 **********
 **   18 **HESSE 
 **********

 FCN=   4692.864     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      292 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .82362        34.607        .57299E-03   -1.5526    
   2  Index         3.7685        6.8475        .45595E-02   -.24886    
   3  Normalizat    .86713        .21379        .28729E-03   -.97625    
   4  Prefactor     .83978        .17517        .23881E-03   -.98278    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.06825e-10
Minuit parameter uncertainties:
  1  10.6836
  2  5.57437
  3  0.213999
  4  0.175287
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/623012': 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) = 4692.86446487
delta logL = 0.680296018493

Extracting fit parameters...

4FGL J2259.8-1552
   Spectrum: PowerLaw
314    Prefactor:  8.236e-01  1.068e+01  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  3.769e+00  5.574e+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.398e-01  1.753e-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.671e-01  2.140e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.46
Ra Dec: 344.953 -15.881
Photon Index (Free Index): 3.77 +/- 5.57
Photon Flux (Free Index): 7.79e-08 +/- 7.19e-08
Energy Flux (Free Index): 1.22e-05 +/- 1.70e-05

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/623012/cmap_HighResolution_340156801_340416001_4FGL_J2259.8-1552_daily_bin389.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.61e-03', comment='SUCCESS', energy_flux2='1.22e-05', dlogl='6.80e-01', photon_flux2='7.79e-08', job_status='DONE', time_completed='2021-09-29 04:49:21.807037', photon_index_error2='5.57', photon_index2='3.77', ts='-0.00', fit_tolerance='1e-08', GAL='0.79', photon_index_error='0.00', photon_flux_upper_limit='1.00e-07', energy_flux_error2='1.70e-05', EG='0.97', time_epoch_completed='1632916161.81', return_code='0', job_id='623012', GAL2='0.84', EG2='0.87', return_code2='102', photon_flux_error2='7.19e-08', ts2='1.46', photon_index='2.13' WHERE bin_id='389' AND source_name='4FGL J2259.8-1552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 04:49:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0101>
Subject: Job 623012: <4FGL_J2259.8-1552_daily_bin389> in cluster <slac> Done

Job <4FGL_J2259.8-1552_daily_bin389> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 04:35:33 2021
Job was executed on host(s) <bullet0101>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 04:35:34 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:34 2021
Terminated at Wed Sep 29 04:49:22 2021
Results reported at Wed Sep 29 04:49:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2259.8-1552_daily_bin389 344.953 -15.8809 340156801 340416001 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 :                                   636.18 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             277.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   828 sec.
    Turnaround time :                            829 sec.

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

