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


Performing analysis on: 4FGL_J2259.8-1552_daily_bin551
RA = 344.953, Dec = -15.8809
tmin = 382147201, tmax = 382406401
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='623275', job_status='RUN', time_executed='2021-09-29 04:40:01.693446', time_epoch_executed='1632915601.69' WHERE source_name='4FGL J2259.8-1552' and cadence='daily' and bin_id='551'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/623275

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/623275/ft1_4FGL_J2259.8-1552_daily_bin551.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/623275/ft2_4FGL_J2259.8-1552_daily_bin551.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/623275/ft1_4FGL_J2259.8-1552_daily_bin551.fits outfile=/scratch/kocevski/623275/ft1_filteredMKT_4FGL_J2259.8-1552_daily_bin551.fits ra=344.953 dec=-15.8809 rad=12.0 tmin=382147201.0 tmax=382406401.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.39
user 3.20
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/623275/ft1_filtered_4FGL_J2259.8-1552_daily_bin551.fits" evtable="EVENTS" scfile=/scratch/kocevski/623275/ft2_4FGL_J2259.8-1552_daily_bin551.fits sctable="SC_DATA" outfile=/scratch/kocevski/623275/ltcube_382147201_382406401_4FGL_J2259.8-1552_daily_bin551.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/623275/ft2_4FGL_J2259.8-1552_daily_bin551.fits
.....................!
real 11.87
user 11.53
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/623275/ft1_filtered_4FGL_J2259.8-1552_daily_bin551.fits evtable="EVENTS" scfile=/scratch/kocevski/623275/ft2_4FGL_J2259.8-1552_daily_bin551.fits sctable="SC_DATA" expcube=/scratch/kocevski/623275/ltcube_382147201_382406401_4FGL_J2259.8-1552_daily_bin551.fits outfile=/scratch/kocevski/623275/expmap_382147201_382406401_4FGL_J2259.8-1552_daily_bin551.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/623275/ltcube_382147201_382406401_4FGL_J2259.8-1552_daily_bin551.fits
.....................!
real 191.30
user 186.14
sys 4.85

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/623275/ft1_filtered_4FGL_J2259.8-1552_daily_bin551.fits scfile=/scratch/kocevski/623275/ft2_4FGL_J2259.8-1552_daily_bin551.fits outfile=/scratch/kocevski/623275/cmap_382147201_382406401_4FGL_J2259.8-1552_daily_bin551.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/623275/ft1_filtered_4FGL_J2259.8-1552_daily_bin551.fits scfile=/scratch/kocevski/623275/ft2_4FGL_J2259.8-1552_daily_bin551.fits outfile=/scratch/kocevski/623275/cmap_HighResolution_382147201_382406401_4FGL_J2259.8-1552_daily_bin551.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/623275/ft1_filtered_4FGL_J2259.8-1552_daily_bin551.fits evtable="EVENTS" scfile=/scratch/kocevski/623275/ft2_4FGL_J2259.8-1552_daily_bin551.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/623275/Model_4FGL_J2259.8-1552_daily_bin551.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/623275/ft1_filtered_4FGL_J2259.8-1552_daily_bin551.fits.....................!
real 51.41
user 50.08
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    23.281       1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.0594       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    2.0980       1.0000         .10000E-03   10000.    
     5 'Prefactor '    83.897       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.3238       1.0000         .10000E-03   10000.    
     7 'norm      '    1.9934       1.0000         .10000E-03   10000.    
     8 'norm      '    5.1501       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.0195       1.0000         .10000E-03   10000.    
    11 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10385E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.7998       1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.9675       1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.0588       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10110E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.1265       1.0000         .10000E-03   10000.    
    22 'norm      '    .10366E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    41.683       1.0000         .10000E-03   10000.    
    24 'Prefactor '    18.400       1.0000         .10000E-03   10000.    
    25 'Prefactor '    35.853       1.0000         .10000E-03   10000.    
    26 'norm      '    1.0134       1.0000         .10000E-03   10000.    
    27 'norm      '    .10067E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.4964       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .52750       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=   5651.277     FROM MIGRAD    STATUS=CONVERGED    736 CALLS     3748 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     23.285        22.081        .83654E-05    .28149E-03
   2  Prefactor     4.9358        279.93       -.46351E-03    .51067E-04
   3  Prefactor     .10000E-03    48.725       -.33289E-05** at limit **
   4  norm          2.0977        2.9127        .25199E-05    .90900E-03
   5  Prefactor     83.899        89.846        .13656E-05    .19424E-04
   6  Prefactor     6.3245        12.084       -.23041E-05   -.57316E-04
   7  norm          1.9935        1.0418        .36303E-06    .11554E-02
   8  norm          5.1498        2.6621       -.17901E-06    .20269E-03
   9  Prefactor     .10000E-03    18.193       -.73710E-05** at limit **
  10  Prefactor     7.0128        13.858        .92952E-06    .28224E-03
  11  norm          .10000E-03    .99340       -.52062E-06** at limit **
  12  Prefactor     .10000E-03    76.595        .10704E-04** at limit **
  13  Prefactor     .10000E-03    10.647       -.62940E-05** at limit **
  14  Prefactor     5.8020        10.618       -.11221E-06    .10548E-04
  15  Prefactor     7.9650        10.471       -.15864E-05   -.50303E-05
  16  Prefactor     6.0590        7.4547       -.77649E-06   -.20757E-04
  17  Prefactor     .10000E-03    7.9120       -.65679E-06** at limit **
  18  Prefactor     .10000E-03    16.734        .81102E-05** at limit **
  19  Prefactor     .10000E-03    9.9577        .51528E-05** at limit **
  20  Prefactor     .10000E-03    4.0574       -.23318E-07** at limit **
  21  norm          1.1248        4.2865       -.31916E-05   -.10645E-02
  22  norm          .10000E-03    2.1476       -.32179E-06** at limit **
  23  Prefactor     41.682        40.938       -.11730E-05   -.57653E-05
  24  Prefactor     18.397        18.628       -.14353E-05   -.27528E-04
  25  Prefactor     35.847        32.103       -.40761E-05    .35890E-04
  26  norm          1.0132        .53874       -.96712E-07    .17023E-03
  27  norm          .10000E-03    3.5066       -.71985E-07** at limit **
  28  Normalizat    1.4961        .20473        .67171E-08    .68294E-03
  29  Prefactor     .52780        .16499        .11076E-04    .33080E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 23.2849
  Prefactor  = 4.93576
  Prefactor  = 0.0001
  norm       = 2.09767
  Prefactor  = 83.8987
  Prefactor  = 6.32453
  norm       = 1.99348
  norm       = 5.14977
  Prefactor  = 0.0001
  Prefactor  = 7.0128
  norm       = 0.000100001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 5.80203
  Prefactor  = 7.96499
  Prefactor  = 6.05899
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.12478
  norm       = 0.0001
  Prefactor  = 41.6819
  Prefactor  = 18.3965
  Prefactor  = 35.8473
  norm       = 1.01318
  norm       = 0.0001
  Normalizat = 1.49605
  Prefactor  = 0.527799
 **********
 **   18 **HESSE 
 **********

 FCN=   5651.277     FROM HESSE     STATUS=OK           553 CALLS     4301 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     23.285        22.093        .83017E-04   -1.4743    
   2  Prefactor     4.9358        283.87        .17876E-03   -1.5264    
   3  Prefactor     .10000E-03    48.890        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.0977        2.8919        .14413E-03   -1.5418    
   5  Prefactor     83.899        89.716        .43855E-04   -1.3873    
   6  Prefactor     6.3245        12.087        .15962E-03   -1.5205    
   7  norm          1.9935        1.0411        .29342E-04   -1.5426    
   8  norm          5.1498        2.6616        .85305E-04   -1.5254    
   9  Prefactor     .10000E-03    18.202        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     7.0128        11.350        .15142E-03   -1.5178    
  11  norm          .10000E-03    1.4449        .11820E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    77.797        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    10.665        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.8020        10.612        .16677E-03   -1.5226    
  15  Prefactor     7.9650        10.472        .14205E-03   -1.5143    
  16  Prefactor     6.0590        7.4520        .16312E-03   -1.5216    
  17  Prefactor     .10000E-03    7.9943        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    16.744        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    9.9659        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.0675        .14775E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.1248        4.2735        .29277E-03   -1.5496    
  22  norm          .10000E-03    4.5336        .20951E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     41.682        40.981        .62089E-04   -1.4416    
  24  Prefactor     18.397        18.629        .93371E-04   -1.4850    
  25  Prefactor     35.847        31.718        .66930E-04   -1.4510    
  26  norm          1.0132        .53461        .38666E-04   -1.5507    
  27  norm          .10000E-03    3.6435        .27401E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.4961        .24209        .22702E-03   -.77889    
  29  Prefactor     .52780        .19239        .29314E-03   -1.1072    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.68976e-09
Minuit parameter uncertainties:
  1  22.1009
  2  75.2404
  3  7.94202e-05
  4  2.89208
  5  89.8616
  6  12.0917
  7  1.04114
  8  2.66162
  9  2.21586e-05
  10  11.3533
  11  6.15345e-05
  12  0.000726564
  13  2.2732e-05
  14  10.6157
  15  10.474
  16  7.45311
  17  5.0834e-05
  18  2.36659e-05
  19  1.5205e-05
  20  1.06299e-06
  21  4.27467
  22  7.86726e-05
  23  41.0092
  24  18.6352
  25  31.7326
  26  0.534613
  27  1.38021e-05
  28  0.242279
  29  0.192632
Done.

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

Extracting fit parameters...

4FGL J2259.8-1552
   Spectrum: PowerLaw
314    Prefactor:  6.059e+00  7.453e+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

GAL_V02
   Spectrum: PowerLaw
513    Prefactor:  5.278e-01  1.926e-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:  1.496e+00  2.423e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.35
Ra Dec: 344.953 -15.881
Photon Index (Fixed Index): 2.13 +/- 0.00
Photon Flux (Fixed Index): 1.69e-08 +/- 2.07e-08
Energy Flux (Fixed Index): 8.66e-06 +/- 1.07e-05

TS (Fixed Index): 1.35
Ra Dec: 344.953 -15.881
Photon Flux Upper Limit: 7.83e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.94e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/623275/likelihoodResults_382147201_382406401_4FGL_J2259.8-1552_daily_bin551.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) = 5651.21061194
delta logL = 0.0668513381497

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5651.20911795
delta logL = 0.0683453321444

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.4948       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4877       1.0000          .0000       10.000    
     3 'Normalizat'    1.4873       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .53145       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=   5651.209     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      274 TOTAL
                     EDM=   .85E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.4919        189.75        .47477E-02    .15890E-03
   2  Index         2.4866        6.0660        .14834        .95634E-04
   3  Normalizat    1.4873        .85975E-01    .51473E-01   -.24610E-04
   4  Prefactor     .53160        .58062E-01    .66006E-01    .27482E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.4919
  Index      = 2.48661
  Normalizat = 1.48729
  Prefactor  = 0.531601
 **********
 **   18 **HESSE 
 **********

 FCN=   5651.209     FROM HESSE     STATUS=OK            31 CALLS      305 TOTAL
                     EDM=   .19E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.4919        8.1255        .17637E-03   -1.5284    
   2  Index         2.4866        1.0764        .90451E-02   -.52669    
   3  Normalizat    1.4873        .23217        .22756E-03   -.78136    
   4  Prefactor     .53160        .18673        .29212E-03   -1.1055    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.86319e-11
Minuit parameter uncertainties:
  1  8.12748
  2  1.08785
  3  0.232331
  4  0.186942
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/623275': 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) = 5651.20911445
delta logL = 0.0683488327086

Extracting fit parameters...

4FGL J2259.8-1552
   Spectrum: PowerLaw
314    Prefactor:  4.492e+00  8.127e+00  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  2.487e+00  1.088e+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:  5.316e-01  1.869e-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:  1.487e+00  2.323e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.48
Ra Dec: 344.953 -15.881
Photon Index (Free Index): 2.49 +/- 1.09
Photon Flux (Free Index): 2.48e-08 +/- 3.47e-08
Energy Flux (Free Index): 7.32e-06 +/- 8.95e-06

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/623275/cmap_HighResolution_382147201_382406401_4FGL_J2259.8-1552_daily_bin551.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.94e-03', comment='SUCCESS', photon_flux='1.69e-08', energy_flux2='7.32e-06', photon_flux_error='2.07e-08', dlogl='6.83e-02', energy_flux='8.66e-06', photon_flux2='2.48e-08', job_status='DONE', time_completed='2021-09-29 04:52:01.310756', photon_index_error2='1.09', photon_index2='2.49', ts='1.35', fit_tolerance='1e-08', GAL='0.53', photon_index_error='0.00', photon_flux_upper_limit='7.83e-08', energy_flux_error2='8.95e-06', EG='1.50', time_epoch_completed='1632916321.31', return_code='0', job_id='623275', GAL2='0.53', EG2='1.49', return_code2='0', energy_flux_error='1.07e-05', photon_flux_error2='3.47e-08', ts2='1.48', photon_index='2.13' WHERE bin_id='551' AND source_name='4FGL J2259.8-1552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 04:52:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0051>
Subject: Job 623275: <4FGL_J2259.8-1552_daily_bin551> in cluster <slac> Done

Job <4FGL_J2259.8-1552_daily_bin551> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 04:35:59 2021
Job was executed on host(s) <bullet0051>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 04:36:01 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:36:01 2021
Terminated at Wed Sep 29 04:52:02 2021
Results reported at Wed Sep 29 04:52:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2259.8-1552_daily_bin551 344.953 -15.8809 382147201 382406401 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 :                                   718.49 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             228.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   960 sec.
    Turnaround time :                            963 sec.

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

