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


Performing analysis on: 4FGL_J2259.8-1552_daily_bin1523
RA = 344.953, Dec = -15.8809
tmin = 634089601, tmax = 634348801
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='630006', job_status='RUN', time_executed='2021-09-29 05:02:52.949024', time_epoch_executed='1632916972.95' WHERE source_name='4FGL J2259.8-1552' and cadence='daily' and bin_id='1523'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/630006

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/630006/ft1_4FGL_J2259.8-1552_daily_bin1523.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/630006/ft2_4FGL_J2259.8-1552_daily_bin1523.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/630006/ft1_4FGL_J2259.8-1552_daily_bin1523.fits outfile=/scratch/kocevski/630006/ft1_filteredMKT_4FGL_J2259.8-1552_daily_bin1523.fits ra=344.953 dec=-15.8809 rad=12.0 tmin=634089601.0 tmax=634348801.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 4.97
user 4.70
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/630006/ft2_4FGL_J2259.8-1552_daily_bin1523.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/630006/ft1_filteredMKT_4FGL_J2259.8-1552_daily_bin1523.fits evtable="EVENTS" outfile="/scratch/kocevski/630006/ft1_filtered_4FGL_J2259.8-1552_daily_bin1523.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/630006/ft1_filtered_4FGL_J2259.8-1552_daily_bin1523.fits" evtable="EVENTS" scfile=/scratch/kocevski/630006/ft2_4FGL_J2259.8-1552_daily_bin1523.fits sctable="SC_DATA" outfile=/scratch/kocevski/630006/ltcube_634089601_634348801_4FGL_J2259.8-1552_daily_bin1523.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/630006/ft2_4FGL_J2259.8-1552_daily_bin1523.fits
.....................!
real 11.95
user 11.57
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/630006/ft1_filtered_4FGL_J2259.8-1552_daily_bin1523.fits evtable="EVENTS" scfile=/scratch/kocevski/630006/ft2_4FGL_J2259.8-1552_daily_bin1523.fits sctable="SC_DATA" expcube=/scratch/kocevski/630006/ltcube_634089601_634348801_4FGL_J2259.8-1552_daily_bin1523.fits outfile=/scratch/kocevski/630006/expmap_634089601_634348801_4FGL_J2259.8-1552_daily_bin1523.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/630006/ltcube_634089601_634348801_4FGL_J2259.8-1552_daily_bin1523.fits
.....................!
real 190.70
user 186.14
sys 4.23

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/630006/ft1_filtered_4FGL_J2259.8-1552_daily_bin1523.fits scfile=/scratch/kocevski/630006/ft2_4FGL_J2259.8-1552_daily_bin1523.fits outfile=/scratch/kocevski/630006/cmap_634089601_634348801_4FGL_J2259.8-1552_daily_bin1523.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=344.953 yref=-15.8809 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/630006/ft1_filtered_4FGL_J2259.8-1552_daily_bin1523.fits scfile=/scratch/kocevski/630006/ft2_4FGL_J2259.8-1552_daily_bin1523.fits outfile=/scratch/kocevski/630006/cmap_HighResolution_634089601_634348801_4FGL_J2259.8-1552_daily_bin1523.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.39
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/630006/ft1_filtered_4FGL_J2259.8-1552_daily_bin1523.fits evtable="EVENTS" scfile=/scratch/kocevski/630006/ft2_4FGL_J2259.8-1552_daily_bin1523.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/630006/Model_4FGL_J2259.8-1552_daily_bin1523.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/630006/ft1_filtered_4FGL_J2259.8-1552_daily_bin1523.fits.....................!
real 52.35
user 51.02
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    57.739       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10703E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    3.4303       1.0000         .10000E-03   10000.    
     5 'Prefactor '    37.292       1.0000         .10000E-03   10000.    
     6 'Prefactor '    14.638       1.0000         .10000E-03   10000.    
     7 'norm      '    .46254       1.0000         .10000E-03   10000.    
     8 'norm      '    3.6248       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .73716E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.784       1.0000         .10000E-03   10000.    
    11 'norm      '    1.5761       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.5951       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.6571       1.0000         .10000E-03   10000.    
    15 'Prefactor '    26.439       1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.5596       1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.7668       1.0000         .10000E-03   10000.    
    18 'Prefactor '    16.644       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.9155       1.0000         .10000E-03   10000.    
    21 'norm      '    6.7350       1.0000         .10000E-03   10000.    
    22 'norm      '    4.9111       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10434E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .27577       1.0000         .10000E-03   10000.    
    27 'norm      '    12.878       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .91612       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .90297       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=   6173.320     FROM MIGRAD    STATUS=CONVERGED    722 CALLS     3745 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     57.713        25.442        .77059E-07   -.58572E-05
   2  Prefactor     .10000E-03    22.251       -.22636E-05** at limit **
   3  Prefactor     .10000E-03    168.94       -.21362E-06** at limit **
   4  norm          3.4299        3.4151        .28439E-06    .28391E-05
   5  Prefactor     37.201        98.614       -.17650E-04   -.14273E-04
   6  Prefactor     14.629        11.820       -.52431E-06   -.40282E-04
   7  norm          .46225        .74787        .36523E-06    .47567E-03
   8  norm          3.6234        2.3308        .17043E-06   -.36361E-03
   9  Prefactor     .10000E-03    115.18        .56425E-05** at limit **
  10  Prefactor     13.793        33.615       -.36547E-07   -.57175E-04
  11  norm          1.5723        2.7118       -.32503E-07   -.20606E-03
  12  Prefactor     .10000E-03    19.829        .12171E-05** at limit **
  13  Prefactor     5.5964        13.665       -.49511E-06   -.47169E-05
  14  Prefactor     3.6558        12.305       -.48206E-06   -.35841E-04
  15  Prefactor     26.439        14.129        .40421E-07   -.12476E-04
  16  Prefactor     8.5620        11.594       -.12594E-06   -.16159E-04
  17  Prefactor     7.7695        12.948       -.62760E-06   -.91333E-05
  18  Prefactor     16.529        157.99        .22230E-04   -.40270E-05
  19  Prefactor     .10000E-03    6.7596        .56895E-07** at limit **
  20  Prefactor     3.9319        22.269       -.10319E-04   -.19099E-04
  21  norm          6.7403        4.9470        .21452E-06    .30903E-04
  22  norm          4.9107        3.3176       -.49611E-07   -.51488E-04
  23  Prefactor     .10000E-03    20.147        .14583E-05** at limit **
  24  Prefactor     .10000E-03    17.906       -.14305E-05** at limit **
  25  Prefactor     .10000E-03    20.557        .13051E-05** at limit **
  26  norm          .27587        .34945        .25870E-07   -.98871E-05
  27  norm          12.881        5.3028       -.14533E-06    .31540E-04
  28  Normalizat    .91595        .20156        .25715E-05   -.15337E-03
  29  Prefactor     .90318        .16297       -.15584E-05    .90002E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 57.713
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.42993
  Prefactor  = 37.2007
  Prefactor  = 14.6286
  norm       = 0.462255
  norm       = 3.62335
  Prefactor  = 0.0001
  Prefactor  = 13.793
  norm       = 1.57233
  Prefactor  = 0.0001
  Prefactor  = 5.59636
  Prefactor  = 3.6558
  Prefactor  = 26.439
  Prefactor  = 8.56203
  Prefactor  = 7.7695
  Prefactor  = 16.5286
  Prefactor  = 0.0001
  Prefactor  = 3.9319
  norm       = 6.74031
  norm       = 4.91069
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.275866
  norm       = 12.8805
  Normalizat = 0.915955
  Prefactor  = 0.903178
 **********
 **   18 **HESSE 
 **********

 FCN=   6173.320     FROM HESSE     STATUS=OK           567 CALLS     4312 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     57.713        25.439        .52796E-04   -1.4187    
   2  Prefactor     .10000E-03    22.263        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    170.62        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.4299        3.4073        .13805E-03   -1.5338    
   5  Prefactor     37.201        98.956        .65630E-04   -1.4487    
   6  Prefactor     14.629        11.843        .10469E-03   -1.4943    
   7  norm          .46225        .64975        .82393E-03   -1.5572    
   8  norm          3.6234        2.3124        .92366E-04   -1.5327    
   9  Prefactor     .10000E-03    116.26        .20950E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     13.793        35.000        .10789E-03   -1.4965    
  11  norm          1.5723        2.8286        .33844E-04   -1.5457    
  12  Prefactor     .10000E-03    19.870        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.5964        13.456        .16984E-03   -1.5235    
  14  Prefactor     3.6558        11.876        .21123E-03   -1.5326    
  15  Prefactor     26.439        14.128        .77910E-04   -1.4679    
  16  Prefactor     8.5620        11.600        .13701E-03   -1.5123    
  17  Prefactor     7.7695        12.617        .14389E-03   -1.5150    
  18  Prefactor     16.529        159.72        .98172E-04   -1.4895    
  19  Prefactor     .10000E-03    6.7612        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     3.9319        22.238        .20389E-03   -1.5311    
  21  norm          6.7403        4.9427        .14281E-03   -1.5189    
  22  norm          4.9107        3.3187        .11112E-03   -1.5265    
  23  Prefactor     .10000E-03    20.177        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    18.341        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    20.633        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .27587        .31659        .48393E-03   -1.5603    
  27  norm          12.881        5.2304        .10678E-03   -1.4990    
  28  Normalizat    .91595        .23270        .27026E-03   -.95902    
  29  Prefactor     .90318        .18952        .23404E-03   -.96030    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.9532e-10
Minuit parameter uncertainties:
  1  25.4433
  2  2.79462e-05
  3  0.000542213
  4  3.4075
  5  99.3968
  6  11.8452
  7  0.649756
  8  2.3125
  9  0.000312895
  10  35.0522
  11  2.82884
  12  1.00446e-05
  13  13.4629
  14  11.8837
  15  14.1302
  16  11.6034
  17  12.6216
  18  103.124
  19  2.96546e-06
  20  18.7119
  21  4.94303
  22  3.31883
  23  1.26528e-05
  24  7.50571e-05
  25  1.78667e-05
  26  0.316592
  27  5.23058
  28  0.232952
  29  0.189663
Done.

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

Extracting fit parameters...

4FGL J2259.8-1552
   Spectrum: PowerLaw
314    Prefactor:  8.562e+00  1.160e+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:  9.032e-01  1.897e-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.160e-01  2.330e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/630006/likelihoodResults_634089601_634348801_4FGL_J2259.8-1552_daily_bin1523.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) = 6172.22680869
delta logL = 1.09343731447

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6172.18593465
delta logL = 1.13431135631

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.5142       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2779       1.0000          .0000       10.000    
     3 'Normalizat'    .85399       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93144       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=   6172.186     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      245 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.5124        29.851        .64418E-02    .45194E-03
   2  Index         3.2782        2.4634        .11116        .15688E-03
   3  Normalizat    .85403        .58825E-01    .44311E-01    .17865E-04
   4  Prefactor     .93141        .48212E-01    .45404E-01    .82819E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.51238
  Index      = 3.27823
  Normalizat = 0.854027
  Prefactor  = 0.931412
 **********
 **   18 **HESSE 
 **********

 FCN=   6172.186     FROM HESSE     STATUS=OK            33 CALLS      278 TOTAL
                     EDM=   .53E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.5124        9.3669        .80437E-04   -1.5391    
   2  Index         3.2782        1.6864        .40566E-02   -.35155    
   3  Normalizat    .85403        .21974        .27863E-03   -.98095    
   4  Prefactor     .93141        .18623        .23062E-03   -.95052    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.34e-08
Minuit parameter uncertainties:
  1  9.37239
  2  1.72499
  3  0.219973
  4  0.186355
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/630006': 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) = 6172.18593455
delta logL = 1.13431145085

Extracting fit parameters...

4FGL J2259.8-1552
   Spectrum: PowerLaw
314    Prefactor:  2.512e+00  9.372e+00  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  3.278e+00  1.725e+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:  9.314e-01  1.864e-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.540e-01  2.200e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.03
Ra Dec: 344.953 -15.881
Photon Index (Free Index): 3.28 +/- 1.72
Photon Flux (Free Index): 7.68e-08 +/- 5.58e-08
Energy Flux (Free Index): 1.37e-05 +/- 1.06e-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/630006/cmap_HighResolution_634089601_634348801_4FGL_J2259.8-1552_daily_bin1523.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.22e-03', comment='SUCCESS', energy_flux2='1.37e-05', dlogl='1.13e+00', photon_flux2='7.68e-08', job_status='DONE', time_completed='2021-09-29 05:15:49.238722', photon_index_error2='1.72', photon_index2='3.28', ts='0.68', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', photon_flux_upper_limit='9.52e-08', energy_flux_error2='1.06e-05', EG='0.92', time_epoch_completed='1632917749.24', return_code='0', job_id='630006', GAL2='0.93', EG2='0.85', return_code2='0', photon_flux_error2='5.58e-08', ts2='3.03', photon_index='2.13' WHERE bin_id='1523' AND source_name='4FGL J2259.8-1552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 05:15:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0032>
Subject: Job 630006: <4FGL_J2259.8-1552_daily_bin1523> in cluster <slac> Done

Job <4FGL_J2259.8-1552_daily_bin1523> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Wed Sep 29 05:00:21 2021
Job was executed on host(s) <bullet0032>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 05:00:23 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 05:00:23 2021
Terminated at Wed Sep 29 05:15:49 2021
Results reported at Wed Sep 29 05:15:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2259.8-1552_daily_bin1523 344.953 -15.8809 634089601 634348801 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 :                                   753.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             251.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   926 sec.
    Turnaround time :                            928 sec.

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

