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


Performing analysis on: 4FGL_J2259.8-1552_daily_bin508
RA = 344.953, Dec = -15.8809
tmin = 371001601, tmax = 371260801
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='623207', job_status='RUN', time_executed='2021-09-29 04:36:54.334257', time_epoch_executed='1632915414.33' WHERE source_name='4FGL J2259.8-1552' and cadence='daily' and bin_id='508'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/623207

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

Retrieving the FT1 file...

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

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

Retrieving 50 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/623207/ft1_4FGL_J2259.8-1552_daily_bin508.fits


Retrieving the FT1 file...

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

Retrieving 50 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/623207/ft2_4FGL_J2259.8-1552_daily_bin508.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/623207/ft1_4FGL_J2259.8-1552_daily_bin508.fits outfile=/scratch/kocevski/623207/ft1_filteredMKT_4FGL_J2259.8-1552_daily_bin508.fits ra=344.953 dec=-15.8809 rad=12.0 tmin=371001601.0 tmax=371260801.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 6.45
user 6.15
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/623207/ft1_filtered_4FGL_J2259.8-1552_daily_bin508.fits" evtable="EVENTS" scfile=/scratch/kocevski/623207/ft2_4FGL_J2259.8-1552_daily_bin508.fits sctable="SC_DATA" outfile=/scratch/kocevski/623207/ltcube_371001601_371260801_4FGL_J2259.8-1552_daily_bin508.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/623207/ft2_4FGL_J2259.8-1552_daily_bin508.fits
.....................!
real 11.91
user 11.24
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/623207/ft1_filtered_4FGL_J2259.8-1552_daily_bin508.fits evtable="EVENTS" scfile=/scratch/kocevski/623207/ft2_4FGL_J2259.8-1552_daily_bin508.fits sctable="SC_DATA" expcube=/scratch/kocevski/623207/ltcube_371001601_371260801_4FGL_J2259.8-1552_daily_bin508.fits outfile=/scratch/kocevski/623207/expmap_371001601_371260801_4FGL_J2259.8-1552_daily_bin508.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/623207/ltcube_371001601_371260801_4FGL_J2259.8-1552_daily_bin508.fits
.....................!
real 190.23
user 185.76
sys 4.16

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/623207/ft1_filtered_4FGL_J2259.8-1552_daily_bin508.fits scfile=/scratch/kocevski/623207/ft2_4FGL_J2259.8-1552_daily_bin508.fits outfile=/scratch/kocevski/623207/cmap_371001601_371260801_4FGL_J2259.8-1552_daily_bin508.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/623207/ft1_filtered_4FGL_J2259.8-1552_daily_bin508.fits scfile=/scratch/kocevski/623207/ft2_4FGL_J2259.8-1552_daily_bin508.fits outfile=/scratch/kocevski/623207/cmap_HighResolution_371001601_371260801_4FGL_J2259.8-1552_daily_bin508.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/623207/ft1_filtered_4FGL_J2259.8-1552_daily_bin508.fits evtable="EVENTS" scfile=/scratch/kocevski/623207/ft2_4FGL_J2259.8-1552_daily_bin508.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/623207/Model_4FGL_J2259.8-1552_daily_bin508.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/623207/ft1_filtered_4FGL_J2259.8-1552_daily_bin508.fits.....................!
real 42.83
user 41.51
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.657       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    7.1192       1.0000         .10000E-03   10000.    
     5 'Prefactor '    41.895       1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.4170       1.0000         .10000E-03   10000.    
     7 'norm      '    5.6134       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    54.895       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    20.179       1.0000         .10000E-03   10000.    
    15 'Prefactor '    12.068       1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.5343       1.0000         .10000E-03   10000.    
    17 'Prefactor '    14.788       1.0000         .10000E-03   10000.    
    18 'Prefactor '    64.057       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .62950E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10035E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    6.6247       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10946E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    32.270       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    2.0084       1.0000         .10000E-03   10000.    
    27 'norm      '    .10621E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .88205       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .92029       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=   4536.720     FROM MIGRAD    STATUS=CONVERGED    709 CALLS     3732 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.659        19.362       -.26257E-06    .17175E-04
   2  Prefactor     .10000E-03    34.257        .50739E-06** at limit **
   3  Prefactor     .10000E-03    35.798        .23229E-06** at limit **
   4  norm          7.1182        5.0065       -.30073E-07    .23138E-04
   5  Prefactor     41.962        66.586       -.35989E-05   -.10804E-03
   6  Prefactor     9.4125        14.572       -.46111E-06    .40204E-04
   7  norm          5.6133        1.6290        .66778E-07   -.31481E-03
   8  norm          .10000E-03    .97015        .19457E-07** at limit **
   9  Prefactor     .10000E-03    23.748       -.43021E-06** at limit **
  10  Prefactor     .10050E-03    31.598        .14514E-05** at limit **
  11  norm          .10000E-03    .70071       -.14055E-06** at limit **
  12  Prefactor     54.888        36.608        .55975E-05   -.19360E-03
  13  Prefactor     .10000E-03    20.781        .22373E-06** at limit **
  14  Prefactor     20.176        15.799       -.11930E-06    .14086E-04
  15  Prefactor     12.068        10.653       -.17422E-06   -.27994E-04
  16  Prefactor     7.5340        11.919       -.53117E-06    .12433E-03
  17  Prefactor     14.787        15.035       -.13691E-06    .15648E-04
  18  Prefactor     64.175        58.154        .31887E-05    .11114E-03
  19  Prefactor     .10000E-03    24.846       -.12194E-06** at limit **
  20  Prefactor     .10003E-03    24.050        .50871E-05** at limit **
  21  norm          .10000E-03    4.2667        .19517E-06** at limit **
  22  norm          6.6240        5.2423       -.48120E-06    .61008E-03
  23  Prefactor     .10000E-03    101.35        .25878E-05** at limit **
  24  Prefactor     32.278        27.470       -.44007E-06    .29094E-04
  25  Prefactor     .10000E-03    26.603        .30012E-06** at limit **
  26  norm          2.0085        .98636       -.12654E-06    .14289E-02
  27  norm          .10008E-03    10.094        .11033E-05** at limit **
  28  Normalizat    .88213        .25892        .18022E-05    .44694E-04
  29  Prefactor     .92026        .19139        .23612E-06    .50224E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.6588
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.1182
  Prefactor  = 41.9621
  Prefactor  = 9.41252
  norm       = 5.61331
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001005
  norm       = 0.0001
  Prefactor  = 54.8881
  Prefactor  = 0.0001
  Prefactor  = 20.1758
  Prefactor  = 12.0676
  Prefactor  = 7.53398
  Prefactor  = 14.7873
  Prefactor  = 64.1747
  Prefactor  = 0.0001
  Prefactor  = 0.000100027
  norm       = 0.0001
  norm       = 6.62404
  Prefactor  = 0.000100001
  Prefactor  = 32.278
  Prefactor  = 0.0001
  norm       = 2.00845
  norm       = 0.000100085
  Normalizat = 0.882133
  Prefactor  = 0.920263
 **********
 **   18 **HESSE 
 **********

 FCN=   4536.720     FROM HESSE     STATUS=OK           557 CALLS     4289 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.659        19.375        .95316E-04   -1.4867    
   2  Prefactor     .10000E-03    34.261        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    35.825        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          7.1182        5.0069        .12001E-03   -1.5174    
   5  Prefactor     41.962        67.057        .30967E-03   -1.4411    
   6  Prefactor     9.4125        14.568        .13059E-03   -1.5094    
   7  norm          5.6133        1.6295        .43878E-04   -1.5234    
   8  norm          .10000E-03    .97338        .64773E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    23.783        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10050E-03    78.346        .48978E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .71762        .10905E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     54.888        37.643        .54139E-04   -1.4225    
  13  Prefactor     .10000E-03    20.827        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     20.176        15.797        .89163E-04   -1.4809    
  15  Prefactor     12.068        10.657        .11531E-03   -1.5013    
  16  Prefactor     7.5340        11.915        .73053E-03   -1.5159    
  17  Prefactor     14.787        15.028        .10416E-03   -1.4939    
  18  Prefactor     64.175        58.381        .25070E-03   -1.4104    
  19  Prefactor     .10000E-03    24.888        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10003E-03    28.574        .39181E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    4.3141        .13555E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          6.6240        5.2438        .64343E-03   -1.5193    
  23  Prefactor     .10000E-03    101.50        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     32.278        27.532        .70537E-04   -1.4571    
  25  Prefactor     .10000E-03    26.618        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          2.0085        .89761        .40509E-04   -1.5425    
  27  norm          .10008E-03    87.531        .36360E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .88213        .30389        .30195E-03   -.97091    
  29  Prefactor     .92026        .22906        .23967E-03   -.95437    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.00146e-08
Minuit parameter uncertainties:
  1  19.3819
  2  4.57002e-05
  3  6.32594e-05
  4  5.0072
  5  67.1781
  6  14.5738
  7  1.62948
  8  3.85805e-06
  9  0.000132688
  10  0.0125312
  11  8.70547e-06
  12  37.6588
  13  3.67159e-05
  14  15.8006
  15  10.6583
  16  11.9187
  17  15.0317
  18  58.4335
  19  0.000137091
  20  0.00175749
  21  1.63742e-06
  22  5.24416
  23  0.000608501
  24  27.5431
  25  5.95086e-05
  26  0.897614
  27  0.00545289
  28  0.304485
  29  0.229304
Done.

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

Extracting fit parameters...

4FGL J2259.8-1552
   Spectrum: PowerLaw
314    Prefactor:  7.534e+00  1.192e+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:  9.203e-01  2.293e-01  0.000e+00  1.000e+01 ( 1.000e+00)
514        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
515        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
512   Normalization:  8.821e-01  3.045e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.58
Ra Dec: 344.953 -15.881
Photon Flux Upper Limit: 1.10e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.34e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/623207/likelihoodResults_371001601_371260801_4FGL_J2259.8-1552_daily_bin508.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) = 4536.70054239
delta logL = 0.0193884040555

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4536.6909179
delta logL = 0.0290128964634

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.5599       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9080       1.0000          .0000       10.000    
     3 'Normalizat'    .88826       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91562       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=   4536.691     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      234 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.5617        15.691        .12961E-03   -.66196E-03
   2  Index         1.9078        .86268        .92792E-02   -.21438E-03
   3  Normalizat    .88821        .27318        .30101E-03    .27010E-03
   4  Prefactor     .91577        .22323        .24018E-03    .46985E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.56171
  Index      = 1.90779
  Normalizat = 0.88821
  Prefactor  = 0.915767
 **********
 **   18 **HESSE 
 **********

 FCN=   4536.691     FROM HESSE     STATUS=OK            23 CALLS      257 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.5617        15.357        .25922E-04   -1.5089    
   2  Index         1.9078        .84458        .37117E-03   -.66676    
   3  Normalizat    .88821        .27328        .60202E-04   -.96876    
   4  Prefactor     .91577        .22332        .48036E-04   -.95592    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.69749e-09
Minuit parameter uncertainties:
  1  15.3636
  2  0.851226
  3  0.273707
  4  0.223548
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/623207': 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) = 4536.69091727
delta logL = 0.0290135285559

Extracting fit parameters...

4FGL J2259.8-1552
   Spectrum: PowerLaw
314    Prefactor:  9.562e+00  1.536e+01  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  1.908e+00  8.512e-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:  9.158e-01  2.235e-01  0.000e+00  1.000e+01 ( 1.000e+00)
514        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
515        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
512   Normalization:  8.882e-01  2.737e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.58
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/623207/cmap_HighResolution_371001601_371260801_4FGL_J2259.8-1552_daily_bin508.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.34e-03', job_status='DONE', photon_flux_upper_limit='1.10e-07', time_completed='2021-09-29 04:47:42.256707', job_id='623207', GAL2='0.92', fit_tolerance='1e-08', EG2='0.89', EG='0.88', time_epoch_completed='1632916062.26', return_code2='0', ts='0.58', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='2.90e-02', ts2='0.63', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='508' AND source_name='4FGL J2259.8-1552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 04:47:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0046>
Subject: Job 623207: <4FGL_J2259.8-1552_daily_bin508> in cluster <slac> Done

Job <4FGL_J2259.8-1552_daily_bin508> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 04:35:52 2021
Job was executed on host(s) <bullet0046>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 04:35:55 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:55 2021
Terminated at Wed Sep 29 04:47:43 2021
Results reported at Wed Sep 29 04:47:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2259.8-1552_daily_bin508 344.953 -15.8809 371001601 371260801 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 :                                   632.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             299.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   707 sec.
    Turnaround time :                            711 sec.

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

