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


Performing analysis on: 4FGL_J2259.8-1552_daily_bin328
RA = 344.953, Dec = -15.8809
tmin = 324345601, tmax = 324604801
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='622903', job_status='RUN', time_executed='2021-09-29 04:38:43.730066', time_epoch_executed='1632915523.73' WHERE source_name='4FGL J2259.8-1552' and cadence='daily' and bin_id='328'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/622903

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/622903/ft1_4FGL_J2259.8-1552_daily_bin328.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/622903/ft2_4FGL_J2259.8-1552_daily_bin328.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/622903/ft1_4FGL_J2259.8-1552_daily_bin328.fits outfile=/scratch/kocevski/622903/ft1_filteredMKT_4FGL_J2259.8-1552_daily_bin328.fits ra=344.953 dec=-15.8809 rad=12.0 tmin=324345601.0 tmax=324604801.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 14.18
user 13.73
sys 0.42

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/622903/ft1_filtered_4FGL_J2259.8-1552_daily_bin328.fits" evtable="EVENTS" scfile=/scratch/kocevski/622903/ft2_4FGL_J2259.8-1552_daily_bin328.fits sctable="SC_DATA" outfile=/scratch/kocevski/622903/ltcube_324345601_324604801_4FGL_J2259.8-1552_daily_bin328.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/622903/ft2_4FGL_J2259.8-1552_daily_bin328.fits
.....................!
real 11.25
user 10.67
sys 0.48

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/622903/ft1_filtered_4FGL_J2259.8-1552_daily_bin328.fits evtable="EVENTS" scfile=/scratch/kocevski/622903/ft2_4FGL_J2259.8-1552_daily_bin328.fits sctable="SC_DATA" expcube=/scratch/kocevski/622903/ltcube_324345601_324604801_4FGL_J2259.8-1552_daily_bin328.fits outfile=/scratch/kocevski/622903/expmap_324345601_324604801_4FGL_J2259.8-1552_daily_bin328.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/622903/ltcube_324345601_324604801_4FGL_J2259.8-1552_daily_bin328.fits
.....................!
real 189.60
user 184.86
sys 4.41

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

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

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/622903/ft1_filtered_4FGL_J2259.8-1552_daily_bin328.fits scfile=/scratch/kocevski/622903/ft2_4FGL_J2259.8-1552_daily_bin328.fits outfile=/scratch/kocevski/622903/cmap_HighResolution_324345601_324604801_4FGL_J2259.8-1552_daily_bin328.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=344.953 yref=-15.8809 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.38
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/622903/ft1_filtered_4FGL_J2259.8-1552_daily_bin328.fits evtable="EVENTS" scfile=/scratch/kocevski/622903/ft2_4FGL_J2259.8-1552_daily_bin328.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/622903/Model_4FGL_J2259.8-1552_daily_bin328.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/622903/ft1_filtered_4FGL_J2259.8-1552_daily_bin328.fits....................................!
real 17.01
user 15.80
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    58.085       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11440E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11573E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    6.5313       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .23439E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    86.782       1.0000         .10000E-03   10000.    
     7 'norm      '    .10439E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .17056E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .60698E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .94214       1.0000         .10000E-03   10000.    
    12 'Prefactor '    98.292       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .12376E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    30.815       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10411E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .29151E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    27.686       1.0000         .10000E-03   10000.    
    21 'norm      '    .10072E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10826E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10156E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    4.1304       1.0000         .10000E-03   10000.    
    27 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .39659       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .53236       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=   430.2262     FROM MIGRAD    STATUS=CONVERGED   1276 CALLS     4895 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     58.090        69.624        .52639E-04    .55343E-06
   2  Prefactor     .10000E-03    145.38        .18142E-02** at limit **
   3  Prefactor     .10000E-03    151.53        .18142E-02** at limit **
   4  norm          6.5227        18.707        .13644E-03   -.52598E-06
   5  Prefactor     .10009E-03    7721.5        .18279E-02** at limit **
   6  Prefactor     86.789        72.462        .21563E-03   -.11533E-06
   7  norm          .10000E-03    14.284        .10752E-02** at limit **
   8  norm          .10000E-03    10.749        .66392E-03** at limit **
   9  Prefactor     .10000E-03    357.41        .18142E-02** at limit **
  10  Prefactor     .10001E-03    364.00        .42116E-03** at limit **
  11  norm          .93323        20.839        .10658E-03    .15733E-05
  12  Prefactor     98.318        206.47        .40546E-04   -.17265E-04
  13  Prefactor     .10000E-03    47.876        .14035E-02** at limit **
  14  Prefactor     .10000E-03    29.125        .10942E-02** at limit **
  15  Prefactor     .10000E-03    43.477        .13365E-02** at limit **
  16  Prefactor     30.818        40.757        .72178E-04   -.63653E-05
  17  Prefactor     .10000E-03    24.919        .10121E-02** at limit **
  18  Prefactor     .10000E-03    577.91        .18142E-02** at limit **
  19  Prefactor     .10000E-03    729.70        .21402E-02** at limit **
  20  Prefactor     27.686        30.628        .76139E-04   -.26224E-05
  21  norm          .10000E-03    23.896        .98632E-03** at limit **
  22  norm          .10000E-03    6.8304        .52957E-03** at limit **
  23  Prefactor     .10000E-03    147.79        .18142E-02** at limit **
  24  Prefactor     .10000E-03    45.099        .13618E-02** at limit **
  25  Prefactor     .10000E-03    85.664        .18142E-02** at limit **
  26  norm          4.1303        2.3781        .23474E-04   -.19675E-04
  27  norm          .10000E-03    14.361        .76743E-03** at limit **
  28  Normalizat    .39734        .59338        .29138E-03   -.15865E-04
  29  Prefactor     .53187        .45477        .19678E-03   -.31936E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 58.0905
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.52268
  Prefactor  = 0.000100093
  Prefactor  = 86.7895
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.000100005
  norm       = 0.933227
  Prefactor  = 98.3184
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 30.8183
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 27.6857
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.13031
  norm       = 0.0001
  Normalizat = 0.397339
  Prefactor  = 0.531866
 **********
 **   18 **HESSE 
 **********

 FCN=   430.2262     FROM HESSE     STATUS=OK           523 CALLS     5418 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     58.090        69.629        .21056E-05   -1.4182    
   2  Prefactor     .10000E-03    145.38        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    151.53        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          6.5227        18.705        .54576E-05   -1.5197    
   5  Prefactor     .10009E-03    7721.7        .36559E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     86.789        72.463        .86253E-05   -1.3842    
   7  norm          .10000E-03    14.300        .21504E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    10.749        .13278E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    357.42        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10001E-03    364.00        .84232E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .93323        20.675        .42633E-05   -1.5515    
  12  Prefactor     98.318        205.82        .81093E-05   -1.3722    
  13  Prefactor     .10000E-03    47.876        .28069E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    29.126        .21885E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    43.478        .26730E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     30.818        40.757        .14436E-04   -1.4597    
  17  Prefactor     .10000E-03    24.919        .20243E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    577.94        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    730.08        .42804E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     27.686        30.626        .30455E-05   -1.4655    
  21  norm          .10000E-03    23.896        .19726E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    6.8304        .10591E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    147.80        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    45.099        .27235E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    85.664        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          4.1303        2.3781        .93897E-06   -1.5301    
  27  norm          .10000E-03    14.361        .15349E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .39734        .59356        .11655E-04   -1.1744    
  29  Prefactor     .53187        .45483        .39355E-04   -1.1054    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03515e-10
Minuit parameter uncertainties:
  1  69.7272
  2  1.81707e-05
  3  8.28654e-05
  4  18.7216
  5  0.050723
  6  72.5368
  7  0.000168021
  8  4.4874e-07
  9  0.00160606
  10  0.0027631
  11  8.7881
  12  207.342
  13  0.000123664
  14  2.46708e-05
  15  1.23394e-05
  16  40.7942
  17  3.4926e-05
  18  0.00138774
  19  0.00211773
  20  30.6436
  21  7.96599e-05
  22  2.97789e-06
  23  2.17838e-05
  24  8.08964e-06
  25  3.2712e-05
  26  2.37817
  27  5.71327e-06
  28  0.603352
  29  0.458002
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
513    Prefactor:  5.319e-01  4.580e-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:  3.973e-01  6.034e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.30
Ra Dec: 344.953 -15.881
Photon Index (Fixed Index): 2.13 +/- 0.00
Photon Flux (Fixed Index): 8.58e-08 +/- 1.14e-07
Energy Flux (Fixed Index): 4.40e-05 +/- 5.83e-05

TS (Fixed Index): 1.30
Ra Dec: 344.953 -15.881
Photon Flux Upper Limit: 4.99e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.78e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/622903/likelihoodResults_324345601_324604801_4FGL_J2259.8-1552_daily_bin328.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 430.220545503
delta logL = 0.00566743748578

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 430.214966815
delta logL = 0.0112461254573

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    37.137       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9776       1.0000          .0000       10.000    
     3 'Normalizat'    .40114       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .52924       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=   430.2150     FROM MIGRAD    STATUS=CONVERGED     75 CALLS      242 TOTAL
                     EDM=   .97E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     37.132        64.113        .32883E-03    .34590E-03
   2  Index         1.9775        1.0020        .37568E-02    .14549E-03
   3  Normalizat    .40165        .52980        .28982E-03   -.15727E-04
   4  Prefactor     .52888        .42041        .19726E-03   -.28062E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 37.1325
  Index      = 1.97753
  Normalizat = 0.401649
  Prefactor  = 0.528883
 **********
 **   18 **HESSE 
 **********

 FCN=   430.2150     FROM HESSE     STATUS=OK            23 CALLS      265 TOTAL
                     EDM=   .97E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     37.132        62.916        .65766E-04   -1.4488    
   2  Index         1.9775        .98364        .15027E-03   -.64913    
   3  Normalizat    .40165        .53003        .11593E-04   -1.1722    
   4  Prefactor     .52888        .42059        .39451E-04   -1.1067    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.72387e-10
Minuit parameter uncertainties:
  1  63.029
  2  0.993927
  3  0.536862
  4  0.423108
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/622903': 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) = 430.214966344
delta logL = 0.0112465962831

Extracting fit parameters...

4FGL J2259.8-1552
   Spectrum: PowerLaw
314    Prefactor:  3.713e+01  6.303e+01  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  1.978e+00  9.939e-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:  5.289e-01  4.231e-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:  4.016e-01  5.369e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.32
Ra Dec: 344.953 -15.881
Photon Index (Free Index): 1.98 +/- 0.99
Photon Flux (Free Index): 7.89e-08 +/- 1.14e-07
Energy Flux (Free Index): 5.77e-05 +/- 1.34e-04

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/622903/cmap_HighResolution_324345601_324604801_4FGL_J2259.8-1552_daily_bin328.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.78e-02', comment='SUCCESS', photon_flux='8.58e-08', energy_flux2='5.77e-05', photon_flux_error='1.14e-07', dlogl='1.12e-02', energy_flux='4.40e-05', photon_flux2='7.89e-08', job_status='DONE', time_completed='2021-09-29 04:45:37.483797', photon_index_error2='0.99', photon_index2='1.98', ts='1.30', fit_tolerance='1e-08', GAL='0.53', photon_index_error='0.00', photon_flux_upper_limit='4.99e-07', energy_flux_error2='1.34e-04', EG='0.40', time_epoch_completed='1632915937.48', return_code='0', job_id='622903', GAL2='0.53', EG2='0.40', return_code2='0', energy_flux_error='5.83e-05', photon_flux_error2='1.14e-07', ts2='1.32', photon_index='2.13' WHERE bin_id='328' AND source_name='4FGL J2259.8-1552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 04:45:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0204>
Subject: Job 622903: <4FGL_J2259.8-1552_daily_bin328> in cluster <slac> Done

Job <4FGL_J2259.8-1552_daily_bin328> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 04:35:23 2021
Job was executed on host(s) <bullet0204>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 04:35:25 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:25 2021
Terminated at Wed Sep 29 04:45:38 2021
Results reported at Wed Sep 29 04:45:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2259.8-1552_daily_bin328 344.953 -15.8809 324345601 324604801 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 :                                   402.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             264.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   612 sec.
    Turnaround time :                            615 sec.

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

