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


Performing analysis on: 4FGL_J2259.8-1552_daily_bin405
RA = 344.953, Dec = -15.8809
tmin = 344304001, tmax = 344563201
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='623036', job_status='RUN', time_executed='2021-09-29 04:37:35.113580', time_epoch_executed='1632915455.11' WHERE source_name='4FGL J2259.8-1552' and cadence='daily' and bin_id='405'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/623036

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/623036/ft1_4FGL_J2259.8-1552_daily_bin405.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/623036/ft2_4FGL_J2259.8-1552_daily_bin405.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/623036/ft1_4FGL_J2259.8-1552_daily_bin405.fits outfile=/scratch/kocevski/623036/ft1_filteredMKT_4FGL_J2259.8-1552_daily_bin405.fits ra=344.953 dec=-15.8809 rad=12.0 tmin=344304001.0 tmax=344563201.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.40
user 3.17
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/623036/ft1_filtered_4FGL_J2259.8-1552_daily_bin405.fits" evtable="EVENTS" scfile=/scratch/kocevski/623036/ft2_4FGL_J2259.8-1552_daily_bin405.fits sctable="SC_DATA" outfile=/scratch/kocevski/623036/ltcube_344304001_344563201_4FGL_J2259.8-1552_daily_bin405.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/623036/ft2_4FGL_J2259.8-1552_daily_bin405.fits
.....................!
real 12.17
user 11.77
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/623036/ft1_filtered_4FGL_J2259.8-1552_daily_bin405.fits evtable="EVENTS" scfile=/scratch/kocevski/623036/ft2_4FGL_J2259.8-1552_daily_bin405.fits sctable="SC_DATA" expcube=/scratch/kocevski/623036/ltcube_344304001_344563201_4FGL_J2259.8-1552_daily_bin405.fits outfile=/scratch/kocevski/623036/expmap_344304001_344563201_4FGL_J2259.8-1552_daily_bin405.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/623036/ltcube_344304001_344563201_4FGL_J2259.8-1552_daily_bin405.fits
.....................!
real 190.69
user 185.11
sys 5.22

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/623036/ft1_filtered_4FGL_J2259.8-1552_daily_bin405.fits scfile=/scratch/kocevski/623036/ft2_4FGL_J2259.8-1552_daily_bin405.fits outfile=/scratch/kocevski/623036/cmap_344304001_344563201_4FGL_J2259.8-1552_daily_bin405.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/623036/ft1_filtered_4FGL_J2259.8-1552_daily_bin405.fits scfile=/scratch/kocevski/623036/ft2_4FGL_J2259.8-1552_daily_bin405.fits outfile=/scratch/kocevski/623036/cmap_HighResolution_344304001_344563201_4FGL_J2259.8-1552_daily_bin405.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.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    29.989       1.0000         .10000E-03   10000.    
     2 'Prefactor '    30.619       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    12.484       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11781E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    22.500       1.0000         .10000E-03   10000.    
     7 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .13306E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10116E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    16.177       1.0000         .10000E-03   10000.    
    13 'Prefactor '    14.433       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10111E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    30.672       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.5712       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    7.1580       1.0000         .10000E-03   10000.    
    22 'norm      '    1.9126       1.0000         .10000E-03   10000.    
    23 'Prefactor '    64.068       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    4.7911       1.0000         .10000E-03   10000.    
    27 'norm      '    23.389       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.1158       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .71141       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=   4382.991     FROM MIGRAD    STATUS=CONVERGED    720 CALLS     3648 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     29.991        24.048        .26868E-06   -.86778E-05
   2  Prefactor     30.618        44.567       -.53132E-06   -.12024E-05
   3  Prefactor     .10000E-03    27.079       -.34564E-05** at limit **
   4  norm          12.482        6.0055       -.16139E-07   -.11201E-03
   5  Prefactor     .10000E-03    135.72       -.14556E-06** at limit **
   6  Prefactor     22.500        16.945        .92196E-07   -.29399E-04
   7  norm          .10000E-03    .41127        .21517E-07** at limit **
   8  norm          .10000E-03    2.0219        .77514E-07** at limit **
   9  Prefactor     .10000E-03    31.556       -.58061E-05** at limit **
  10  Prefactor     .10000E-03    4.9451       -.11998E-09** at limit **
  11  norm          .10000E-03    .39815       -.26744E-07** at limit **
  12  Prefactor     16.174        22.030        .10166E-05   -.84446E-05
  13  Prefactor     14.426        20.416        .72216E-06   -.65912E-04
  14  Prefactor     .10000E-03    34.214        .56802E-05** at limit **
  15  Prefactor     .10000E-03    4.5158       -.24317E-07** at limit **
  16  Prefactor     .10000E-03    9.7644        .32221E-08** at limit **
  17  Prefactor     30.677        19.494       -.11585E-05   -.13039E-03
  18  Prefactor     .10000E-03    24.396        .52375E-05** at limit **
  19  Prefactor     3.5731        49.723       -.52491E-05   -.40971E-04
  20  Prefactor     .10000E-03    4.4777        .48366E-07** at limit **
  21  norm          7.1600        6.7376       -.21064E-06   -.10718E-03
  22  norm          1.9136        3.4343       -.41687E-06   -.51293E-03
  23  Prefactor     64.089        62.640        .18031E-04    .14115E-05
  24  Prefactor     .10000E-03    7.6583       -.21501E-06** at limit **
  25  Prefactor     .10000E-03    20.188       -.11349E-05** at limit **
  26  norm          4.7913        1.3056       -.71545E-07   -.26637E-04
  27  norm          23.390        10.685       -.28085E-06   -.28919E-04
  28  Normalizat    1.1153        .23441       -.16627E-05    .51227E-05
  29  Prefactor     .71171        .17827        .34985E-06   -.83950E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 29.9912
  Prefactor  = 30.6185
  Prefactor  = 0.0001
  norm       = 12.4819
  Prefactor  = 0.0001
  Prefactor  = 22.5005
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 16.1743
  Prefactor  = 14.4261
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 30.6771
  Prefactor  = 0.0001
  Prefactor  = 3.57312
  Prefactor  = 0.0001
  norm       = 7.16004
  norm       = 1.9136
  Prefactor  = 64.0888
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.7913
  norm       = 23.3898
  Normalizat = 1.11533
  Prefactor  = 0.711706
 **********
 **   18 **HESSE 
 **********

 FCN=   4382.991     FROM HESSE     STATUS=OK           551 CALLS     4199 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     29.991        24.079        .73163E-04   -1.4612    
   2  Prefactor     30.618        44.565        .72408E-04   -1.4601    
   3  Prefactor     .10000E-03    27.077        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          12.482        6.0100        .10650E-03   -1.5001    
   5  Prefactor     .10000E-03    135.88        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     22.500        16.988        .84443E-04   -1.4759    
   7  norm          .10000E-03    .42818        .82800E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    3.8623        .18230E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    31.544        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.9493        .14372E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .40030        .80713E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     16.174        21.832        .99579E-04   -1.4903    
  13  Prefactor     14.426        20.341        .10543E-03   -1.4948    
  14  Prefactor     .10000E-03    34.573        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.5197        .13740E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    9.8625        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     30.677        19.556        .72346E-04   -1.4600    
  18  Prefactor     .10000E-03    24.393        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.5731        49.953        .21386E-03   -1.5330    
  20  Prefactor     .10000E-03    4.4849        .13677E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          7.1600        6.7381        .14993E-03   -1.5173    
  22  norm          1.9136        3.4300        .15872E-03   -1.5431    
  23  Prefactor     64.089        62.529        .50136E-04   -1.4105    
  24  Prefactor     .10000E-03    7.6663        .17897E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    20.200        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          4.7913        1.3164        .35401E-04   -1.5270    
  27  norm          23.390        10.776        .82826E-04   -1.4740    
  28  Normalizat    1.1153        .27800        .26379E-03   -.89261    
  29  Prefactor     .71171        .21003        .25584E-03   -1.0307    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.26564e-10
Minuit parameter uncertainties:
  1  24.0863
  2  44.6138
  3  6.64527e-06
  4  6.01028
  5  6.74126e-05
  6  16.9921
  7  9.12881e-07
  8  1.78529e-05
  9  1.56145e-05
  10  2.20106e-06
  11  1.4851e-06
  12  21.843
  13  20.3504
  14  0.000147592
  15  4.0553e-07
  16  1.30095e-06
  17  19.5597
  18  5.13186e-06
  19  26.7467
  20  3.46078e-06
  21  6.73884
  22  3.4303
  23  62.5934
  24  5.55015e-05
  25  6.79366e-06
  26  1.31639
  27  10.7771
  28  0.278368
  29  0.210265
Done.

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

Extracting fit parameters...

4FGL J2259.8-1552
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  1.301e-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.117e-01  2.103e-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.115e+00  2.784e-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: 7.49e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.68e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/623036/likelihoodResults_344304001_344563201_4FGL_J2259.8-1552_daily_bin405.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) = 4382.99176227
delta logL = -0.000482976458443

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4382.9912793
delta logL = -7.98991095508e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1287       1.0000          .0000       10.000    
     3 'Normalizat'    1.1153       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71171       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=   4382.991     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      205 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.9156        .90712E-02** at limit **
   2  Index         2.1258        6.0374        .50000        .23770E-05
   3  Normalizat    1.1153        .57624E-02    .59646E-01   -.11971E-04
   4  Prefactor     .71171        .45852E-02    .42557E-01   -.48952E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.12577
  Normalizat = 1.11532
  Prefactor  = 0.711707
 **********
 **   18 **HESSE 
 **********

 FCN=   4382.991     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      238 TOTAL
                     EDM=   .36E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    93.326        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1258        8.3779        .50000       -.61242    
   3  Normalizat    1.1153        .17744E-01    .26379E-03   -.89261    
   4  Prefactor     .71171        .14125E-01    .25584E-03   -1.0307    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.60768e-08
Minuit parameter uncertainties:
  1  1.28627e-05
  2  328.042
  3  0.0177444
  4  0.0141248
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/623036': 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) = 4382.99127928
delta logL = 3.66344465874e-09

Extracting fit parameters...

4FGL J2259.8-1552
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  1.286e-05  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  2.126e+00  3.280e+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.117e-01  1.412e-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.115e+00  1.774e-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/623036/cmap_HighResolution_344304001_344563201_4FGL_J2259.8-1552_daily_bin405.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.68e-03', job_status='DONE', photon_flux_upper_limit='7.49e-08', time_completed='2021-09-29 04:47:47.986297', job_id='623036', GAL2='0.71', fit_tolerance='1e-08', EG2='1.12', EG='1.12', time_epoch_completed='1632916067.99', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.71', dlogl='3.66e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='405' AND source_name='4FGL J2259.8-1552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 04:47:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0215>
Subject: Job 623036: <4FGL_J2259.8-1552_daily_bin405> in cluster <slac> Done

Job <4FGL_J2259.8-1552_daily_bin405> 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) <bullet0215>, 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:47:48 2021
Results reported at Wed Sep 29 04:47:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2259.8-1552_daily_bin405 344.953 -15.8809 344304001 344563201 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 :                                   609.47 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             280.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   731 sec.
    Turnaround time :                            733 sec.

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

