/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 112 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 = 7469
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2259.8-1552_daily_bin115
RA = 344.953, Dec = -15.8809
tmin = 269136001, tmax = 269395201
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='621466', job_status='RUN', time_executed='2021-09-29 04:32:24.659982', time_epoch_executed='1632915144.66' WHERE source_name='4FGL J2259.8-1552' and cadence='daily' and bin_id='115'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/621466

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/621466/ft1_4FGL_J2259.8-1552_daily_bin115.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/621466/ft2_4FGL_J2259.8-1552_daily_bin115.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/621466/ft1_4FGL_J2259.8-1552_daily_bin115.fits outfile=/scratch/kocevski/621466/ft1_filteredMKT_4FGL_J2259.8-1552_daily_bin115.fits ra=344.953 dec=-15.8809 rad=12.0 tmin=269136001.0 tmax=269395201.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 1.66
user 1.47
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/621466/ft2_4FGL_J2259.8-1552_daily_bin115.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/621466/ft1_filteredMKT_4FGL_J2259.8-1552_daily_bin115.fits evtable="EVENTS" outfile="/scratch/kocevski/621466/ft1_filtered_4FGL_J2259.8-1552_daily_bin115.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.48
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/621466/ft1_filtered_4FGL_J2259.8-1552_daily_bin115.fits" evtable="EVENTS" scfile=/scratch/kocevski/621466/ft2_4FGL_J2259.8-1552_daily_bin115.fits sctable="SC_DATA" outfile=/scratch/kocevski/621466/ltcube_269136001_269395201_4FGL_J2259.8-1552_daily_bin115.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/621466/ft2_4FGL_J2259.8-1552_daily_bin115.fits
.....................!
real 12.41
user 12.04
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/621466/ft1_filtered_4FGL_J2259.8-1552_daily_bin115.fits evtable="EVENTS" scfile=/scratch/kocevski/621466/ft2_4FGL_J2259.8-1552_daily_bin115.fits sctable="SC_DATA" expcube=/scratch/kocevski/621466/ltcube_269136001_269395201_4FGL_J2259.8-1552_daily_bin115.fits outfile=/scratch/kocevski/621466/expmap_269136001_269395201_4FGL_J2259.8-1552_daily_bin115.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/621466/ltcube_269136001_269395201_4FGL_J2259.8-1552_daily_bin115.fits
.....................!
real 190.84
user 185.45
sys 5.03

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/621466/ft1_filtered_4FGL_J2259.8-1552_daily_bin115.fits scfile=/scratch/kocevski/621466/ft2_4FGL_J2259.8-1552_daily_bin115.fits outfile=/scratch/kocevski/621466/cmap_269136001_269395201_4FGL_J2259.8-1552_daily_bin115.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/621466/ft1_filtered_4FGL_J2259.8-1552_daily_bin115.fits scfile=/scratch/kocevski/621466/ft2_4FGL_J2259.8-1552_daily_bin115.fits outfile=/scratch/kocevski/621466/cmap_HighResolution_269136001_269395201_4FGL_J2259.8-1552_daily_bin115.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.36
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    27.055       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11466E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    20.129       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .30739E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.9402       1.0000         .10000E-03   10000.    
     7 'norm      '    1.3727       1.0000         .10000E-03   10000.    
     8 'norm      '    .95056       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.011       1.0000         .10000E-03   10000.    
    11 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    12.338       1.0000         .10000E-03   10000.    
    14 'Prefactor '    17.780       1.0000         .10000E-03   10000.    
    15 'Prefactor '    14.793       1.0000         .10000E-03   10000.    
    16 'Prefactor '    15.384       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10199E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    36.019       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10180E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .12431E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10703E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    11.293       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .33653E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    41.947       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .85143       1.0000         .10000E-03   10000.    
    27 'norm      '    .21369E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .87821       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .87189       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=   7049.823     FROM MIGRAD    STATUS=CONVERGED    711 CALLS     3683 TOTAL
                     EDM=   .85E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     27.059        16.406        .11423E-06   -.97305E-05
   2  Prefactor     .10000E-03    81.385       -.37748E-05** at limit **
   3  Prefactor     .10000E-03    16.265       -.14809E-05** at limit **
   4  norm          20.126        4.7648        .18700E-05    .45845E-03
   5  Prefactor     .10000E-03    190.93       -.71289E-04** at limit **
   6  Prefactor     2.9438        9.0105        .27087E-06   -.24425E-03
   7  norm          1.3726        .78475        .60604E-07   -.46618E-03
   8  norm          .95065        1.1504        .58076E-07    .12312E-03
   9  Prefactor     .10000E-03    14.573       -.81723E-06** at limit **
  10  Prefactor     10.009        11.000        .23080E-07   -.15946E-03
  11  norm          .10000E-03    .71407        .68499E-07** at limit **
  12  Prefactor     .10000E-03    16.118       -.16296E-05** at limit **
  13  Prefactor     12.335        15.945       -.39322E-06   -.26180E-04
  14  Prefactor     17.785        14.544       -.13582E-06   -.91649E-04
  15  Prefactor     14.792        9.0330        .16021E-06   -.10179E-04
  16  Prefactor     15.387        9.8434        .78906E-07   -.45119E-03
  17  Prefactor     .10000E-03    16.637        .80670E-06** at limit **
  18  Prefactor     36.040        40.932        .22672E-04    .32974E-04
  19  Prefactor     .10000E-03    14.159       -.50869E-07** at limit **
  20  Prefactor     .10000E-03    5.9567       -.10310E-05** at limit **
  21  norm          .10000E-03    5.1684       -.12219E-05** at limit **
  22  norm          11.295        4.0616        .32132E-06   -.37846E-03
  23  Prefactor     .10000E-03    70.208        .41140E-04** at limit **
  24  Prefactor     41.956        20.353        .53645E-06   -.45221E-03
  25  Prefactor     .10000E-03    12.667        .20376E-05** at limit **
  26  norm          .85225        .55747        .21184E-07   -.97477E-03
  27  norm          .10000E-03    3.7936       -.60837E-07** at limit **
  28  Normalizat    .87748        .18484       -.36404E-05   -.14782E-05
  29  Prefactor     .87241        .14391       -.43699E-06   -.11970E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 27.0585
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 20.1257
  Prefactor  = 0.000100001
  Prefactor  = 2.94385
  norm       = 1.37259
  norm       = 0.950651
  Prefactor  = 0.0001
  Prefactor  = 10.0086
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.3345
  Prefactor  = 17.7851
  Prefactor  = 14.7924
  Prefactor  = 15.3869
  Prefactor  = 0.0001
  Prefactor  = 36.0398
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  norm       = 0.000100001
  norm       = 11.295
  Prefactor  = 0.0001
  Prefactor  = 41.9562
  Prefactor  = 0.0001
  norm       = 0.852253
  norm       = 0.0001
  Normalizat = 0.877476
  Prefactor  = 0.872411
 **********
 **   18 **HESSE 
 **********

 FCN=   7049.823     FROM HESSE     STATUS=OK           557 CALLS     4240 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     27.059        16.413        .77020E-04   -1.4667    
   2  Prefactor     .10000E-03    82.088        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    16.270        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          20.126        4.7720        .85242E-04   -1.4810    
   5  Prefactor     .10000E-03    192.81        .21379E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.9438        9.0077        .23687E-03   -1.5365    
   7  norm          1.3726        .77519        .53638E-04   -1.5474    
   8  norm          .95065        1.1217        .96358E-04   -1.5513    
   9  Prefactor     .10000E-03    14.585        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     10.009        9.0053        .12665E-03   -1.5075    
  11  norm          .10000E-03    1.1579        .11196E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    16.168        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     12.335        15.951        .11404E-03   -1.5005    
  14  Prefactor     17.785        14.550        .94985E-04   -1.4864    
  15  Prefactor     14.792        9.0320        .10414E-03   -1.4939    
  16  Prefactor     15.387        9.8477        .51057E-03   -1.4923    
  17  Prefactor     .10000E-03    16.996        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     36.040        40.907        .66776E-04   -1.4507    
  19  Prefactor     .10000E-03    14.196        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    6.0183        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    5.3296        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          11.295        4.0706        .96671E-04   -1.5036    
  23  Prefactor     .10000E-03    70.194        .21341E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     41.956        20.376        .61894E-04   -1.4412    
  25  Prefactor     .10000E-03    12.676        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .85225        .50811        .45087E-04   -1.5523    
  27  norm          .10000E-03    7.5696        .29250E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .87748        .21383        .27709E-03   -.97256    
  29  Prefactor     .87241        .16682        .23145E-03   -.97112    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.68017e-09
Minuit parameter uncertainties:
  1  16.416
  2  0.000147888
  3  1.58713e-05
  4  4.77208
  5  0.000717887
  6  9.01182
  7  0.775197
  8  1.12174
  9  2.40225e-05
  10  9.00653
  11  1.02806e-05
  12  1.68516e-05
  13  15.9564
  14  14.5533
  15  9.03283
  16  9.8487
  17  0.000125607
  18  40.9393
  19  1.02755e-05
  20  0.00032024
  21  0.00016517
  22  4.07065
  23  8.2877e-05
  24  20.3791
  25  5.74444e-06
  26  0.508117
  27  9.83273e-05
  28  0.214032
  29  0.166916
Done.

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

Extracting fit parameters...

4FGL J2259.8-1552
   Spectrum: PowerLaw
314    Prefactor:  1.539e+01  9.849e+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:  8.724e-01  1.669e-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.775e-01  2.140e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.21
Ra Dec: 344.953 -15.881
Photon Index (Fixed Index): 2.13 +/- 0.00
Photon Flux (Fixed Index): 4.29e-08 +/- 2.74e-08
Energy Flux (Fixed Index): 2.20e-05 +/- 1.41e-05

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) = 7049.66508057
delta logL = 0.158327284762

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7049.66496943
delta logL = 0.158438426138

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.484       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8537       1.0000          .0000       10.000    
     3 'Normalizat'    .88950       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86721       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=   7049.665     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      266 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.463        368.63        .23290E-02    .12243E-04
   2  Index         1.8526        5.5929        .15775        .52307E-04
   3  Normalizat    .88957        .16943        .44767E-01    .32381E-04
   4  Prefactor     .86723        .88423E-01    .44586E-01    .34021E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.463
  Index      = 1.85261
  Normalizat = 0.889565
  Prefactor  = 0.867232
 **********
 **   18 **HESSE 
 **********

 FCN=   7049.665     FROM HESSE     STATUS=OK            33 CALLS      299 TOTAL
                     EDM=   .37E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.463        12.384        .93159E-04   -1.4848    
   2  Index         1.8526        .48177        .81943E-02   -.68088    
   3  Normalizat    .88957        .19478        .27536E-03   -.96828    
   4  Prefactor     .86723        .16254        .23204E-03   -.97296    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.67105e-12
Minuit parameter uncertainties:
  1  12.3854
  2  0.483014
  3  0.194934
  4  0.162627
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/621466': 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) = 7049.66496433
delta logL = 0.158443526619

Extracting fit parameters...

4FGL J2259.8-1552
   Spectrum: PowerLaw
314    Prefactor:  1.846e+01  1.239e+01  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  1.853e+00  4.830e-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:  8.672e-01  1.626e-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.896e-01  1.949e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.50
Ra Dec: 344.953 -15.881
Photon Index (Free Index): 1.85 +/- 0.48
Photon Flux (Free Index): 3.20e-08 +/- 2.79e-08
Energy Flux (Free Index): 3.29e-05 +/- 3.41e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/621466/cmap_HighResolution_269136001_269395201_4FGL_J2259.8-1552_daily_bin115.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.29e-08', energy_flux2='3.29e-05', photon_flux_error='2.74e-08', dlogl='1.58e-01', energy_flux='2.20e-05', photon_flux2='3.20e-08', job_status='DONE', time_completed='2021-09-29 04:44:08.287387', photon_index_error2='0.48', photon_index2='1.85', ts='5.21', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', energy_flux_error2='3.41e-05', EG='0.88', time_epoch_completed='1632915848.29', return_code='0', job_id='621466', GAL2='0.87', EG2='0.89', return_code2='0', energy_flux_error='1.41e-05', photon_flux_error2='2.79e-08', ts2='5.50', photon_index='2.13' WHERE bin_id='115' AND source_name='4FGL J2259.8-1552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 04:44:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0085>
Subject: Job 621466: <4FGL_J2259.8-1552_daily_bin115> in cluster <slac> Done

Job <4FGL_J2259.8-1552_daily_bin115> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 29 04:30:23 2021
Job was executed on host(s) <bullet0085>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 04:30:24 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:30:24 2021
Terminated at Wed Sep 29 04:44:09 2021
Results reported at Wed Sep 29 04:44:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2259.8-1552_daily_bin115 344.953 -15.8809 269136001 269395201 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 :                                   703.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             318.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   824 sec.
    Turnaround time :                            826 sec.

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

