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


Performing analysis on: 4FGL_J2259.8-1552_daily_bin982
RA = 344.953, Dec = -15.8809
tmin = 493862401, tmax = 494121601
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='627175', job_status='RUN', time_executed='2021-09-29 04:52:35.905031', time_epoch_executed='1632916355.91' WHERE source_name='4FGL J2259.8-1552' and cadence='daily' and bin_id='982'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/627175

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/627175/ft1_4FGL_J2259.8-1552_daily_bin982.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/627175/ft2_4FGL_J2259.8-1552_daily_bin982.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/627175/ft1_4FGL_J2259.8-1552_daily_bin982.fits outfile=/scratch/kocevski/627175/ft1_filteredMKT_4FGL_J2259.8-1552_daily_bin982.fits ra=344.953 dec=-15.8809 rad=12.0 tmin=493862401.0 tmax=494121601.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.60
user 3.34
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/627175/ft1_filtered_4FGL_J2259.8-1552_daily_bin982.fits" evtable="EVENTS" scfile=/scratch/kocevski/627175/ft2_4FGL_J2259.8-1552_daily_bin982.fits sctable="SC_DATA" outfile=/scratch/kocevski/627175/ltcube_493862401_494121601_4FGL_J2259.8-1552_daily_bin982.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/627175/ft2_4FGL_J2259.8-1552_daily_bin982.fits
.....................!
real 11.96
user 11.60
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/627175/ft1_filtered_4FGL_J2259.8-1552_daily_bin982.fits evtable="EVENTS" scfile=/scratch/kocevski/627175/ft2_4FGL_J2259.8-1552_daily_bin982.fits sctable="SC_DATA" expcube=/scratch/kocevski/627175/ltcube_493862401_494121601_4FGL_J2259.8-1552_daily_bin982.fits outfile=/scratch/kocevski/627175/expmap_493862401_494121601_4FGL_J2259.8-1552_daily_bin982.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/627175/ltcube_493862401_494121601_4FGL_J2259.8-1552_daily_bin982.fits
.....................!
real 189.74
user 184.76
sys 4.62

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/627175/ft1_filtered_4FGL_J2259.8-1552_daily_bin982.fits scfile=/scratch/kocevski/627175/ft2_4FGL_J2259.8-1552_daily_bin982.fits outfile=/scratch/kocevski/627175/cmap_493862401_494121601_4FGL_J2259.8-1552_daily_bin982.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.35
sys 0.16

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/627175/ft1_filtered_4FGL_J2259.8-1552_daily_bin982.fits evtable="EVENTS" scfile=/scratch/kocevski/627175/ft2_4FGL_J2259.8-1552_daily_bin982.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/627175/Model_4FGL_J2259.8-1552_daily_bin982.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/627175/ft1_filtered_4FGL_J2259.8-1552_daily_bin982.fits.....................!
real 50.43
user 49.12
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.7892       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .14198E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .13703E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    11.365       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.2211       1.0000         .10000E-03   10000.    
     7 'norm      '    .43886E-01   1.0000         .10000E-03   10000.    
     8 'norm      '    2.4956       1.0000         .10000E-03   10000.    
     9 'Prefactor '    16.478       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10071E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.5371       1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.6748       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .42814       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.9036       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    43.800       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    5.5373       1.0000         .10000E-03   10000.    
    22 'norm      '    .10041E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10173E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .91481       1.0000         .10000E-03   10000.    
    27 'norm      '    3.1002       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .65645       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0389       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=   5891.774     FROM MIGRAD    STATUS=CONVERGED    737 CALLS     3722 TOTAL
                     EDM=   .62E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.8024        16.794        .11160E-04    .22596E-05
   2  Prefactor     .10001E-03    355.51        .36584E-04** at limit **
   3  Prefactor     .10000E-03    88.996       -.19563E-05** at limit **
   4  norm          11.373        4.2088       -.34042E-06   -.10950E-02
   5  Prefactor     .10000E-03    35.047       -.34814E-06** at limit **
   6  Prefactor     2.2224        7.1737        .12699E-05    .18271E-05
   7  norm          .43512E-01    .52740        .16399E-07   -.29265E-03
   8  norm          2.4957        2.8922        .87510E-08   -.39207E-04
   9  Prefactor     16.477        42.169        .13542E-06   -.16816E-04
  10  Prefactor     .10000E-03    6.8902        .18575E-06** at limit **
  11  norm          .10000E-03    .38340        .45433E-06** at limit **
  12  Prefactor     3.4932        23.498       -.16467E-05   -.10467E-03
  13  Prefactor     6.6726        7.6712        .13033E-06   -.18094E-04
  14  Prefactor     .10000E-03    5.2287       -.28698E-06** at limit **
  15  Prefactor     .50763        8.3663       -.27038E-05    .35573E-03
  16  Prefactor     .10000E-03    2.6617        .77208E-08** at limit **
  17  Prefactor     1.9016        7.1894        .13005E-05    .22431E-05
  18  Prefactor     .10000E-03    32.049        .85346E-06** at limit **
  19  Prefactor     43.816        23.464       -.36083E-07   -.39540E-05
  20  Prefactor     .10000E-03    2.9754       -.32707E-07** at limit **
  21  norm          5.5367        4.2885        .12062E-06   -.11015E-04
  22  norm          .10000E-03    1.8077       -.44667E-07** at limit **
  23  Prefactor     .10000E-03    33.308        .44638E-06** at limit **
  24  Prefactor     .10000E-03    4.5449       -.85420E-08** at limit **
  25  Prefactor     .10000E-03    18.232        .16867E-06** at limit **
  26  norm          .91483        .55940        .16190E-07    .28086E-04
  27  norm          3.0996        4.3396        .15534E-06    .10863E-05
  28  Normalizat    .65663        .15980       -.14949E-05   -.30300E-03
  29  Prefactor     1.0388        .13874       -.14722E-06   -.47329E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.80235
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  norm       = 11.373
  Prefactor  = 0.0001
  Prefactor  = 2.22244
  norm       = 0.0435119
  norm       = 2.49569
  Prefactor  = 16.477
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.49322
  Prefactor  = 6.67257
  Prefactor  = 0.0001
  Prefactor  = 0.507625
  Prefactor  = 0.0001
  Prefactor  = 1.90165
  Prefactor  = 0.0001
  Prefactor  = 43.8158
  Prefactor  = 0.0001
  norm       = 5.53674
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.91483
  norm       = 3.09965
  Normalizat = 0.656629
  Prefactor  = 1.03879
 **********
 **   18 **HESSE 
 **********

 FCN=   5891.774     FROM HESSE     STATUS=OK           559 CALLS     4281 TOTAL
                     EDM=   .43E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.8024        17.015        .15636E-02   -1.5439    
   2  Prefactor     .10001E-03    353.45        .20514E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    89.659        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          11.373        4.2203        .91703E-04   -1.5033    
   5  Prefactor     .10000E-03    35.065        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.2224        7.1510        .27592E-03   -1.5410    
   7  norm          .43512E-01    1.5604        .10539E-02   -1.5666    
   8  norm          2.4957        2.9761        .10001E-03   -1.5392    
   9  Prefactor     16.477        43.548        .98666E-04   -1.4896    
  10  Prefactor     .10000E-03    6.9355        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .56371        .85770E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.4932        20.262        .21493E-03   -1.5334    
  13  Prefactor     6.6726        7.6453        .15532E-03   -1.5191    
  14  Prefactor     .10000E-03    5.2656        .17105E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .50763        30.640        .39438E-02   -1.5565    
  16  Prefactor     .10000E-03    2.6681        .12229E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.9016        7.1640        .30140E-03   -1.5432    
  18  Prefactor     .10000E-03    32.130        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     43.816        23.464        .60576E-04   -1.4383    
  20  Prefactor     .10000E-03    2.9836        .12928E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          5.5367        4.2885        .13618E-03   -1.5237    
  22  norm          .10000E-03    1.8699        .20133E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    33.416        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    4.5508        .15980E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    18.285        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .91483        .56368        .40243E-04   -1.5517    
  27  norm          3.0996        4.4070        .16966E-03   -1.5356    
  28  Normalizat    .65663        .18577        .26836E-03   -1.0563    
  29  Prefactor     1.0388        .16382        .19218E-03   -.91447    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.33336e-08
Minuit parameter uncertainties:
  1  11.0793
  2  0.00310182
  3  2.45977e-05
  4  4.22042
  5  8.57681e-06
  6  7.15375
  7  0.520555
  8  2.97623
  9  43.6316
  10  2.54431e-05
  11  1.05578e-05
  12  16.8345
  13  7.64644
  14  2.77393e-05
  15  7.8911
  16  1.93466e-06
  17  7.16726
  18  5.64925e-07
  19  23.469
  20  1.06862e-07
  21  4.28877
  22  1.66987e-06
  23  1.09436e-05
  24  1.34586e-06
  25  1.13313e-06
  26  0.563684
  27  4.40742
  28  0.185945
  29  0.163899
Done.

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

Extracting fit parameters...

4FGL J2259.8-1552
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  1.935e-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:  1.039e+00  1.639e-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:  6.566e-01  1.859e-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: 3.71e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.81e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/627175/likelihoodResults_493862401_494121601_4FGL_J2259.8-1552_daily_bin982.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) = 5891.7754699
delta logL = -0.00177072120277

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5891.77369905
delta logL = 1.23295649246e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1184       1.0000          .0000       10.000    
     3 'Normalizat'    .65666       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0388       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5891.774     FROM MIGRAD    STATUS=FAILED        89 CALLS      240 TOTAL
                     EDM=   .10E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10192E-03    82.051        .12319E-02** at limit **
   2  Index         2.0173        8.5890        .50000        .31689E-04
   3  Normalizat    .65663        .21865E-01    .26836E-03   -.64815E-05
   4  Prefactor     1.0388        .19461E-01    .19218E-03   -.96427E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5891.774     FROM SIMPLEX   STATUS=PROGRESS     133 CALLS      373 TOTAL
                     EDM=   .80E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10131E-03    82.051        .23637E-03** at limit **
   2  Index         2.0156        8.5890        .62091E-03    .31689E-04
   3  Normalizat    .65662        .21865E-01    .51536E-05   -.64815E-05
   4  Prefactor     1.0388        .19461E-01    .38784E-05   -.96427E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5891.774     FROM MIGRAD    STATUS=FAILED        83 CALLS      456 TOTAL
                     EDM=   .19E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    354.96        .49276E-03** at limit **
   2  Index         1.6889        6.1793        .50000       -.13859E-05
   3  Normalizat    .65663        .50594E-01    .21469E-05    .25312E-03
   4  Prefactor     1.0388        .45025E-01    .15374E-05    .34607E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.68893
  Normalizat = 0.656629
  Prefactor  = 1.03879
 **********
 **   18 **HESSE 
 **********

 FCN=   5891.774     FROM HESSE     STATUS=OK            27 CALLS      483 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.2245        .98552E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.6889        7.9690        .50000       -.72377    
   3  Normalizat    .65663        .18501        .42938E-06   -1.0563    
   4  Prefactor     1.0388        .16452        .30748E-06   -.91447    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.14703e-09
Minuit parameter uncertainties:
  1  3.91534e-05
  2  159.999
  3  0.185186
  4  0.164605
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/627175': 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): 1
logL (Free Index) = 5891.77369684
delta logL = 2.33437640418e-06

Extracting fit parameters...

4FGL J2259.8-1552
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  3.915e-05  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  1.689e+00  1.600e+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:  1.039e+00  1.646e-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:  6.566e-01  1.852e-01  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/627175/cmap_HighResolution_493862401_494121601_4FGL_J2259.8-1552_daily_bin982.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.81e-03', job_status='DONE', photon_flux_upper_limit='3.71e-08', time_completed='2021-09-29 05:04:52.593368', job_id='627175', GAL2='1.04', fit_tolerance='1e-08', EG2='0.66', EG='0.66', time_epoch_completed='1632917092.59', return_code2='1', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='2.33e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='982' AND source_name='4FGL J2259.8-1552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 05:04:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0080>
Subject: Job 627175: <4FGL_J2259.8-1552_daily_bin982> in cluster <slac> Done

Job <4FGL_J2259.8-1552_daily_bin982> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Wed Sep 29 04:50:27 2021
Job was executed on host(s) <bullet0080>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 04:50:29 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:50:29 2021
Terminated at Wed Sep 29 05:04:53 2021
Results reported at Wed Sep 29 05:04:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2259.8-1552_daily_bin982 344.953 -15.8809 493862401 494121601 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 :                                   732.21 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             284.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   863 sec.
    Turnaround time :                            866 sec.

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

