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


Performing analysis on: 4FGL_J2259.8-1552_daily_bin400
RA = 344.953, Dec = -15.8809
tmin = 343008001, tmax = 343267201
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='623029', job_status='RUN', time_executed='2021-09-29 04:37:19.599255', time_epoch_executed='1632915439.6' WHERE source_name='4FGL J2259.8-1552' and cadence='daily' and bin_id='400'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/623029

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/623029/ft1_4FGL_J2259.8-1552_daily_bin400.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/623029/ft2_4FGL_J2259.8-1552_daily_bin400.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/623029/ft1_4FGL_J2259.8-1552_daily_bin400.fits outfile=/scratch/kocevski/623029/ft1_filteredMKT_4FGL_J2259.8-1552_daily_bin400.fits ra=344.953 dec=-15.8809 rad=12.0 tmin=343008001.0 tmax=343267201.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.83
user 3.60
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/623029/ft2_4FGL_J2259.8-1552_daily_bin400.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/623029/ft1_filteredMKT_4FGL_J2259.8-1552_daily_bin400.fits evtable="EVENTS" outfile="/scratch/kocevski/623029/ft1_filtered_4FGL_J2259.8-1552_daily_bin400.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/623029/ft1_filtered_4FGL_J2259.8-1552_daily_bin400.fits" evtable="EVENTS" scfile=/scratch/kocevski/623029/ft2_4FGL_J2259.8-1552_daily_bin400.fits sctable="SC_DATA" outfile=/scratch/kocevski/623029/ltcube_343008001_343267201_4FGL_J2259.8-1552_daily_bin400.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/623029/ft2_4FGL_J2259.8-1552_daily_bin400.fits
.....................!
real 11.72
user 11.35
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/623029/ft1_filtered_4FGL_J2259.8-1552_daily_bin400.fits evtable="EVENTS" scfile=/scratch/kocevski/623029/ft2_4FGL_J2259.8-1552_daily_bin400.fits sctable="SC_DATA" expcube=/scratch/kocevski/623029/ltcube_343008001_343267201_4FGL_J2259.8-1552_daily_bin400.fits outfile=/scratch/kocevski/623029/expmap_343008001_343267201_4FGL_J2259.8-1552_daily_bin400.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/623029/ltcube_343008001_343267201_4FGL_J2259.8-1552_daily_bin400.fits
.....................!
real 190.59
user 184.96
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/623029/ft1_filtered_4FGL_J2259.8-1552_daily_bin400.fits scfile=/scratch/kocevski/623029/ft2_4FGL_J2259.8-1552_daily_bin400.fits outfile=/scratch/kocevski/623029/cmap_343008001_343267201_4FGL_J2259.8-1552_daily_bin400.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.55
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/623029/ft1_filtered_4FGL_J2259.8-1552_daily_bin400.fits scfile=/scratch/kocevski/623029/ft2_4FGL_J2259.8-1552_daily_bin400.fits outfile=/scratch/kocevski/623029/cmap_HighResolution_343008001_343267201_4FGL_J2259.8-1552_daily_bin400.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/623029/ft1_filtered_4FGL_J2259.8-1552_daily_bin400.fits evtable="EVENTS" scfile=/scratch/kocevski/623029/ft2_4FGL_J2259.8-1552_daily_bin400.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/623029/Model_4FGL_J2259.8-1552_daily_bin400.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/623029/ft1_filtered_4FGL_J2259.8-1552_daily_bin400.fits.....................!
real 48.55
user 47.16
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.5499       1.0000         .10000E-03   10000.    
     2 'Prefactor '    32.594       1.0000         .10000E-03   10000.    
     3 'Prefactor '    14.777       1.0000         .10000E-03   10000.    
     4 'norm      '    6.7238       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    18.436       1.0000         .10000E-03   10000.    
     7 'norm      '    1.8634       1.0000         .10000E-03   10000.    
     8 'norm      '    4.8002       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .39360E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    26.643       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.0497       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .12067E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.8126       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .11315E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10217E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .31632       1.0000         .10000E-03   10000.    
    27 'norm      '    26.255       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.3558       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .78406       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=   5402.519     FROM MIGRAD    STATUS=CONVERGED    749 CALLS     3802 TOTAL
                     EDM=   .81E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.5480        35.223       -.44422E-05   -.62273E-04
   2  Prefactor     32.590        58.025       -.31707E-05    .41906E-05
   3  Prefactor     14.758        56.593       -.19350E-04   -.29084E-06
   4  norm          6.7241        4.4137       -.47082E-07   -.15090E-03
   5  Prefactor     .10000E-03    53.909       -.97148E-06** at limit **
   6  Prefactor     18.412        15.754        .16741E-05    .65497E-04
   7  norm          1.8634        .96889        .86629E-07    .36370E-04
   8  norm          4.7892        3.1936       -.10510E-06    .27450E-03
   9  Prefactor     .10000E-03    151.37       -.22738E-04** at limit **
  10  Prefactor     .10000E-03    6.5608        .11344E-05** at limit **
  11  norm          .10000E-03    .45380       -.56591E-08** at limit **
  12  Prefactor     26.644        26.880       -.41579E-06   -.99060E-05
  13  Prefactor     .10000E-03    7.3350        .65066E-08** at limit **
  14  Prefactor     1.0759        10.546        .64977E-06   -.52723E-03
  15  Prefactor     .10000E-03    6.1690       -.10166E-05** at limit **
  16  Prefactor     .10000E-03    5.3138       -.30597E-07** at limit **
  17  Prefactor     .10000E-03    6.0650        .47422E-06** at limit **
  18  Prefactor     .10000E-03    242.56       -.70238E-05** at limit **
  19  Prefactor     6.8099        21.717       -.18851E-05   -.26858E-04
  20  Prefactor     .10000E-03    12.707        .62493E-06** at limit **
  21  norm          .10000E-03    3.1000       -.13002E-07** at limit **
  22  norm          .10000E-03    2.7269       -.41367E-06** at limit **
  23  Prefactor     .10000E-03    141.37        .76033E-05** at limit **
  24  Prefactor     .10000E-03    10.361        .41628E-06** at limit **
  25  Prefactor     .10000E-03    11.453       -.88647E-06** at limit **
  26  norm          .31455        .74920        .28558E-06   -.10141E-02
  27  norm          26.270        10.672       -.15348E-05   -.40511E-04
  28  Normalizat    1.3555        .22894        .34681E-06    .63202E-04
  29  Prefactor     .78429        .18024        .12435E-05    .32869E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.54802
  Prefactor  = 32.5901
  Prefactor  = 14.758
  norm       = 6.72405
  Prefactor  = 0.0001
  Prefactor  = 18.4117
  norm       = 1.8634
  norm       = 4.78917
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 26.6444
  Prefactor  = 0.0001
  Prefactor  = 1.07593
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.80992
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.314552
  norm       = 26.2697
  Normalizat = 1.35545
  Prefactor  = 0.784291
 **********
 **   18 **HESSE 
 **********

 FCN=   5402.519     FROM HESSE     STATUS=OK           555 CALLS     4357 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.5480        35.798        .25571E-03   -1.5389    
   2  Prefactor     32.590        57.921        .70186E-04   -1.4566    
   3  Prefactor     14.758        56.315        .10419E-03   -1.4939    
   4  norm          6.7241        4.4123        .11940E-03   -1.5189    
   5  Prefactor     .10000E-03    53.940        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     18.412        15.879        .93279E-04   -1.4850    
   7  norm          1.8634        .96507        .49879E-04   -1.5435    
   8  norm          4.7892        3.1729        .10215E-03   -1.5270    
   9  Prefactor     .10000E-03    151.50        .21271E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.5735        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .46237        .95927E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     26.644        26.713        .77612E-04   -1.4675    
  13  Prefactor     .10000E-03    7.3375        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.0759        33.537        .44563E-02   -1.5501    
  15  Prefactor     .10000E-03    6.1866        .17827E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    5.3277        .16547E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    6.0723        .17663E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    246.10        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     6.8099        21.744        .15372E-03   -1.5186    
  20  Prefactor     .10000E-03    12.926        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    3.1192        .12637E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    6.7374        .23436E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    142.76        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    10.377        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    11.454        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .31455        .64605        .80580E-03   -1.5596    
  27  norm          26.270        10.160        .78182E-04   -1.4682    
  28  Normalizat    1.3555        .27856        .25450E-03   -.81926    
  29  Prefactor     .78429        .21749        .26193E-03   -1.0031    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.36244e-09
Minuit parameter uncertainties:
  1  19.1146
  2  58.0212
  3  56.5186
  4  4.41252
  5  1.15762e-05
  6  15.8824
  7  0.965076
  8  3.17306
  9  0.000431002
  10  9.48581e-07
  11  3.52406e-07
  12  26.7249
  13  7.11338e-06
  14  12.0207
  15  3.92406e-06
  16  3.57909e-06
  17  1.17573e-05
  18  0.000397272
  19  21.7694
  20  2.08669e-05
  21  2.89722e-06
  22  0.000100159
  23  4.97989e-05
  24  4.27926e-06
  25  4.33616e-08
  26  0.646067
  27  10.1604
  28  0.278869
  29  0.217733
Done.

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

Extracting fit parameters...

4FGL J2259.8-1552
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  3.579e-06  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  2.132e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
316        Scale:  1.486e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
513    Prefactor:  7.843e-01  2.177e-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.355e+00  2.789e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/623029/likelihoodResults_343008001_343267201_4FGL_J2259.8-1552_daily_bin400.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5402.51991076
delta logL = -0.000891317367859

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5402.51901941
delta logL = 3.68681867258e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1185       1.0000          .0000       10.000    
     3 'Normalizat'    1.3555       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78430       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=   5402.519     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      242 TOTAL
                     EDM=   .76E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10105E-03    92.735        .16660E-02** at limit **
   2  Index         2.0554        5.2891        .50000        .15214E-04
   3  Normalizat    1.3555        .22541E-01    .25450E-03   -.83089E-05
   4  Prefactor     .78429        .18289E-01    .26193E-03   -.77693E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101046
  Index      = 2.05539
  Normalizat = 1.35545
  Prefactor  = 0.784292
 **********
 **   18 **HESSE 
 **********

 FCN=   5402.519     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      271 TOTAL
                     EDM=   .35E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10105E-03    384.20        .33321E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0554        7.6874        .50000       -.62972    
   3  Normalizat    1.3555        .49406E-01    .10180E-04   -.81926    
   4  Prefactor     .78429        .40074E-01    .10477E-04   -1.0031    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.51664e-08
Minuit parameter uncertainties:
  1  0.0403515
  2  985.616
  3  0.0494079
  4  0.0400758
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/623029': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5402.5190192
delta logL = 2.4165638024e-07

Extracting fit parameters...

4FGL J2259.8-1552
   Spectrum: PowerLaw
314    Prefactor:  1.010e-04  4.035e-02  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  2.055e+00  9.856e+02  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:  7.843e-01  4.008e-02  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.355e+00  4.941e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 344.953 -15.881

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/623029/cmap_HighResolution_343008001_343267201_4FGL_J2259.8-1552_daily_bin400.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.95e-03', job_status='DONE', photon_flux_upper_limit='6.53e-08', time_completed='2021-09-29 04:48:56.372567', job_id='623029', GAL2='0.78', fit_tolerance='1e-08', EG2='1.36', EG='1.36', time_epoch_completed='1632916136.37', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='2.42e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='400' AND source_name='4FGL J2259.8-1552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 04:48:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0269>
Subject: Job 623029: <4FGL_J2259.8-1552_daily_bin400> in cluster <slac> Done

Job <4FGL_J2259.8-1552_daily_bin400> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 04:35:35 2021
Job was executed on host(s) <bullet0269>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 04:35:37 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 04:35:37 2021
Terminated at Wed Sep 29 04:48:57 2021
Results reported at Wed Sep 29 04:48:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2259.8-1552_daily_bin400 344.953 -15.8809 343008001 343267201 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 :                                   691.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             299.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   799 sec.
    Turnaround time :                            802 sec.

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

