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


Performing analysis on: 4FGL_J2259.8-1552_daily_bin894
RA = 344.953, Dec = -15.8809
tmin = 471052801, tmax = 471312001
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='625937', job_status='RUN', time_executed='2021-09-29 04:47:05.717951', time_epoch_executed='1632916025.72' WHERE source_name='4FGL J2259.8-1552' and cadence='daily' and bin_id='894'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/625937

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/625937/ft1_4FGL_J2259.8-1552_daily_bin894.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/625937/ft2_4FGL_J2259.8-1552_daily_bin894.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/625937/ft1_4FGL_J2259.8-1552_daily_bin894.fits outfile=/scratch/kocevski/625937/ft1_filteredMKT_4FGL_J2259.8-1552_daily_bin894.fits ra=344.953 dec=-15.8809 rad=12.0 tmin=471052801.0 tmax=471312001.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.98
user 3.75
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/625937/ft2_4FGL_J2259.8-1552_daily_bin894.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/625937/ft1_filteredMKT_4FGL_J2259.8-1552_daily_bin894.fits evtable="EVENTS" outfile="/scratch/kocevski/625937/ft1_filtered_4FGL_J2259.8-1552_daily_bin894.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/625937/ft1_filtered_4FGL_J2259.8-1552_daily_bin894.fits" evtable="EVENTS" scfile=/scratch/kocevski/625937/ft2_4FGL_J2259.8-1552_daily_bin894.fits sctable="SC_DATA" outfile=/scratch/kocevski/625937/ltcube_471052801_471312001_4FGL_J2259.8-1552_daily_bin894.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/625937/ft2_4FGL_J2259.8-1552_daily_bin894.fits
.....................!
real 11.82
user 11.46
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/625937/ft1_filtered_4FGL_J2259.8-1552_daily_bin894.fits evtable="EVENTS" scfile=/scratch/kocevski/625937/ft2_4FGL_J2259.8-1552_daily_bin894.fits sctable="SC_DATA" expcube=/scratch/kocevski/625937/ltcube_471052801_471312001_4FGL_J2259.8-1552_daily_bin894.fits outfile=/scratch/kocevski/625937/expmap_471052801_471312001_4FGL_J2259.8-1552_daily_bin894.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/625937/ltcube_471052801_471312001_4FGL_J2259.8-1552_daily_bin894.fits
.....................!
real 190.60
user 185.52
sys 4.66

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/625937/ft1_filtered_4FGL_J2259.8-1552_daily_bin894.fits scfile=/scratch/kocevski/625937/ft2_4FGL_J2259.8-1552_daily_bin894.fits outfile=/scratch/kocevski/625937/cmap_471052801_471312001_4FGL_J2259.8-1552_daily_bin894.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/625937/ft1_filtered_4FGL_J2259.8-1552_daily_bin894.fits scfile=/scratch/kocevski/625937/ft2_4FGL_J2259.8-1552_daily_bin894.fits outfile=/scratch/kocevski/625937/cmap_HighResolution_471052801_471312001_4FGL_J2259.8-1552_daily_bin894.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.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/625937/ft1_filtered_4FGL_J2259.8-1552_daily_bin894.fits evtable="EVENTS" scfile=/scratch/kocevski/625937/ft2_4FGL_J2259.8-1552_daily_bin894.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/625937/Model_4FGL_J2259.8-1552_daily_bin894.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/625937/ft1_filtered_4FGL_J2259.8-1552_daily_bin894.fits.....................!
real 48.77
user 47.35
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10346E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    6.6584       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10113E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.4249       1.0000         .10000E-03   10000.    
     7 'norm      '    3.5341       1.0000         .10000E-03   10000.    
     8 'norm      '    .81544       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10241E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .15357E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    18.165       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.9032       1.0000         .10000E-03   10000.    
    21 'norm      '    4.6431       1.0000         .10000E-03   10000.    
    22 'norm      '    .24864       1.0000         .10000E-03   10000.    
    23 'Prefactor '    49.750       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .12554E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .48682       1.0000         .10000E-03   10000.    
    26 'norm      '    2.2497       1.0000         .10000E-03   10000.    
    27 'norm      '    .10039E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .48821       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.1277       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=   5953.704     FROM MIGRAD    STATUS=CONVERGED    731 CALLS     3716 TOTAL
                     EDM=   .86E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.5155        .83985E-06** at limit **
   2  Prefactor     .10000E-03    23.598        .66199E-05** at limit **
   3  Prefactor     .10000E-03    93.905        .48974E-04** at limit **
   4  norm          6.6592        3.8499        .47875E-07   -.22583E-05
   5  Prefactor     .10000E-03    115.48       -.63146E-04** at limit **
   6  Prefactor     7.4221        8.9794        .56566E-06   -.24459E-03
   7  norm          3.5345        1.0252        .27728E-08   -.72752E-03
   8  norm          .81550        1.5892       -.29558E-06   -.15546E-02
   9  Prefactor     .10000E-03    37.373        .99617E-05** at limit **
  10  Prefactor     .10000E-03    7.8215       -.48354E-05** at limit **
  11  norm          .10000E-03    .29144        .75510E-07** at limit **
  12  Prefactor     .10000E-03    8.3347        .72454E-05** at limit **
  13  Prefactor     .10000E-03    4.7798        .24707E-05** at limit **
  14  Prefactor     .10002E-03    4.5817        .17204E-05** at limit **
  15  Prefactor     .10000E-03    3.2061       -.68541E-07** at limit **
  16  Prefactor     18.164        11.929        .13116E-06   -.25501E-04
  17  Prefactor     .10000E-03    2.7177       -.72024E-07** at limit **
  18  Prefactor     .10000E-03    29.893       -.17951E-04** at limit **
  19  Prefactor     .10000E-03    10.217       -.27537E-05** at limit **
  20  Prefactor     6.9020        6.8105        .14619E-06    .12858E-03
  21  norm          4.6433        4.5278       -.29627E-06    .98820E-04
  22  norm          .24951        1.5966       -.60108E-06   -.23053E-03
  23  Prefactor     49.771        48.112        .18855E-04    .13854E-03
  24  Prefactor     .10000E-03    12.906       -.43941E-05** at limit **
  25  Prefactor     .48619        16.628       -.46763E-06    .15681E-04
  26  norm          2.2497        .69791       -.12879E-06    .15515E-02
  27  norm          .10000E-03    4.6097       -.35108E-05** at limit **
  28  Normalizat    .48834        .17460       -.46000E-05    .11096E-04
  29  Prefactor     1.1277        .14935        .12103E-05   -.78393E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.65925
  Prefactor  = 0.000100001
  Prefactor  = 7.42212
  norm       = 3.53446
  norm       = 0.815502
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100019
  Prefactor  = 0.0001
  Prefactor  = 18.1637
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.902
  norm       = 4.64335
  norm       = 0.249514
  Prefactor  = 49.7715
  Prefactor  = 0.000100004
  Prefactor  = 0.48619
  norm       = 2.24966
  norm       = 0.0001
  Normalizat = 0.488342
  Prefactor  = 1.12766
 **********
 **   18 **HESSE 
 **********

 FCN=   5953.704     FROM HESSE     STATUS=OK           551 CALLS     4267 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.5323        .16013E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    23.606        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    94.014        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          6.6592        3.8501        .10951E-03   -1.5192    
   5  Prefactor     .10000E-03    115.30        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.4221        8.9433        .14719E-03   -1.5163    
   7  norm          3.5345        1.0246        .21502E-04   -1.5332    
   8  norm          .81550        1.3386        .13051E-02   -1.5527    
   9  Prefactor     .10000E-03    37.588        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.9377        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .49451        .80549E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    8.3580        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    4.7956        .16461E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10002E-03    13.529        .31774E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.2234        .13493E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     18.164        11.914        .93972E-04   -1.4855    
  17  Prefactor     .10000E-03    2.7260        .12416E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    29.893        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    10.232        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     6.9020        6.8012        .15270E-03   -1.5182    
  21  norm          4.6433        4.5244        .15516E-03   -1.5277    
  22  norm          .24951        6.4718        .17796E-02   -1.5608    
  23  Prefactor     49.771        48.273        .56855E-04   -1.4296    
  24  Prefactor     .10000E-03    13.032        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .48619        300.63        .58280E-02   -1.5569    
  26  norm          2.2497        .69616        .34325E-04   -1.5408    
  27  norm          .10000E-03    4.6967        .16145E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .48834        .19395        .31362E-03   -1.1296    
  29  Prefactor     1.1277        .16960        .19066E-03   -.88587    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.59698e-09
Minuit parameter uncertainties:
  1  4.84444e-06
  2  1.09996e-05
  3  1.26364e-06
  4  3.85022
  5  0.000496149
  6  8.94494
  7  1.02465
  8  1.3386
  9  4.61324e-05
  10  2.67262e-05
  11  5.04915e-06
  12  1.25487e-05
  13  1.29578e-05
  14  0.00102216
  15  1.92028e-06
  16  11.9154
  17  2.08762e-06
  18  4.77608e-05
  19  5.42084e-05
  20  6.80198
  21  4.52469
  22  2.54129
  23  48.3112
  24  0.000444783
  25  24.3007
  26  0.696164
  27  2.02911e-05
  28  0.19422
  29  0.169678
Done.

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

Extracting fit parameters...

4FGL J2259.8-1552
   Spectrum: PowerLaw
314    Prefactor:  1.816e+01  1.192e+01  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.128e+00  1.697e-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:  4.883e-01  1.942e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.75
Ra Dec: 344.953 -15.881
Photon Index (Fixed Index): 2.13 +/- 0.00
Photon Flux (Fixed Index): 5.06e-08 +/- 3.32e-08
Energy Flux (Fixed Index): 2.60e-05 +/- 1.70e-05

TS (Fixed Index): 3.75
Ra Dec: 344.953 -15.881
Photon Flux Upper Limit: 1.19e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.01e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/625937/likelihoodResults_471052801_471312001_4FGL_J2259.8-1552_daily_bin894.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): 0
logL (Free Index) = 5952.62854237
delta logL = 1.07521481892

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5952.62195893
delta logL = 1.08179825708

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.7543       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8295       1.0000          .0000       10.000    
     3 'Normalizat'    .44900       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1451       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=   5952.622     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      283 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.7540        9.9056        .10414E-03    .21244E-03
   2  Index         2.8295        .61135        .35490E-02    .85108E-04
   3  Normalizat    .44901        .18842        .16306E-02   -.16406E-03
   4  Prefactor     1.1451        .16801        .18917E-03   -.17760E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.75395
  Index      = 2.82952
  Normalizat = 0.449008
  Prefactor  = 1.14509
 **********
 **   18 **HESSE 
 **********

 FCN=   5952.622     FROM HESSE     STATUS=OK            25 CALLS      308 TOTAL
                     EDM=   .96E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.7540        8.3002        .41655E-05   -1.5151    
   2  Index         2.8295        .51237        .14196E-03   -.44903    
   3  Normalizat    .44901        .18827        .65224E-04   -1.1484    
   4  Prefactor     1.1451        .16787        .37834E-04   -.88038    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.59875e-11
Minuit parameter uncertainties:
  1  8.30144
  2  0.513478
  3  0.188536
  4  0.167949
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/625937': 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) = 5952.62195893
delta logL = 1.08179825997

Extracting fit parameters...

4FGL J2259.8-1552
   Spectrum: PowerLaw
314    Prefactor:  7.754e+00  8.301e+00  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  2.830e+00  5.135e-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.145e+00  1.679e-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:  4.490e-01  1.885e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.97
Ra Dec: 344.953 -15.881
Photon Index (Free Index): 2.83 +/- 0.51
Photon Flux (Free Index): 8.79e-08 +/- 4.74e-08
Energy Flux (Free Index): 1.93e-05 +/- 1.04e-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/625937/cmap_HighResolution_471052801_471312001_4FGL_J2259.8-1552_daily_bin894.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.01e-03', comment='SUCCESS', photon_flux='5.06e-08', energy_flux2='1.93e-05', photon_flux_error='3.32e-08', dlogl='1.08e+00', energy_flux='2.60e-05', photon_flux2='8.79e-08', job_status='DONE', time_completed='2021-09-29 04:59:13.251899', photon_index_error2='0.51', photon_index2='2.83', ts='3.75', fit_tolerance='1e-08', GAL='1.13', photon_index_error='0.00', photon_flux_upper_limit='1.19e-07', energy_flux_error2='1.04e-05', EG='0.49', time_epoch_completed='1632916753.25', return_code='0', job_id='625937', GAL2='1.15', EG2='0.45', return_code2='0', energy_flux_error='1.70e-05', photon_flux_error2='4.74e-08', ts2='5.97', photon_index='2.13' WHERE bin_id='894' AND source_name='4FGL J2259.8-1552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 04:59:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0286>
Subject: Job 625937: <4FGL_J2259.8-1552_daily_bin894> in cluster <slac> Done

Job <4FGL_J2259.8-1552_daily_bin894> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 04:45:37 2021
Job was executed on host(s) <bullet0286>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 04:45:38 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:45:38 2021
Terminated at Wed Sep 29 04:59:13 2021
Results reported at Wed Sep 29 04:59:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2259.8-1552_daily_bin894 344.953 -15.8809 471052801 471312001 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 :                                   725.16 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             294.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   815 sec.
    Turnaround time :                            816 sec.

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

