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


Performing analysis on: 4FGL_J2259.8-1552_daily_bin929
RA = 344.953, Dec = -15.8809
tmin = 480124801, tmax = 480384001
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='627092', job_status='RUN', time_executed='2021-09-29 04:52:40.061652', time_epoch_executed='1632916360.06' WHERE source_name='4FGL J2259.8-1552' and cadence='daily' and bin_id='929'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/627092

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/627092/ft1_4FGL_J2259.8-1552_daily_bin929.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/627092/ft2_4FGL_J2259.8-1552_daily_bin929.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/627092/ft1_4FGL_J2259.8-1552_daily_bin929.fits outfile=/scratch/kocevski/627092/ft1_filteredMKT_4FGL_J2259.8-1552_daily_bin929.fits ra=344.953 dec=-15.8809 rad=12.0 tmin=480124801.0 tmax=480384001.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 5.20
user 3.36
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/627092/ft1_filtered_4FGL_J2259.8-1552_daily_bin929.fits" evtable="EVENTS" scfile=/scratch/kocevski/627092/ft2_4FGL_J2259.8-1552_daily_bin929.fits sctable="SC_DATA" outfile=/scratch/kocevski/627092/ltcube_480124801_480384001_4FGL_J2259.8-1552_daily_bin929.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/627092/ft2_4FGL_J2259.8-1552_daily_bin929.fits
.....................!
real 12.81
user 12.04
sys 0.40

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/627092/ft1_filtered_4FGL_J2259.8-1552_daily_bin929.fits evtable="EVENTS" scfile=/scratch/kocevski/627092/ft2_4FGL_J2259.8-1552_daily_bin929.fits sctable="SC_DATA" expcube=/scratch/kocevski/627092/ltcube_480124801_480384001_4FGL_J2259.8-1552_daily_bin929.fits outfile=/scratch/kocevski/627092/expmap_480124801_480384001_4FGL_J2259.8-1552_daily_bin929.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/627092/ltcube_480124801_480384001_4FGL_J2259.8-1552_daily_bin929.fits
.....................!
real 191.70
user 184.75
sys 6.44

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/627092/ft1_filtered_4FGL_J2259.8-1552_daily_bin929.fits scfile=/scratch/kocevski/627092/ft2_4FGL_J2259.8-1552_daily_bin929.fits outfile=/scratch/kocevski/627092/cmap_480124801_480384001_4FGL_J2259.8-1552_daily_bin929.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.58
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/627092/ft1_filtered_4FGL_J2259.8-1552_daily_bin929.fits scfile=/scratch/kocevski/627092/ft2_4FGL_J2259.8-1552_daily_bin929.fits outfile=/scratch/kocevski/627092/cmap_HighResolution_480124801_480384001_4FGL_J2259.8-1552_daily_bin929.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.60
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/627092/ft1_filtered_4FGL_J2259.8-1552_daily_bin929.fits evtable="EVENTS" scfile=/scratch/kocevski/627092/ft2_4FGL_J2259.8-1552_daily_bin929.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/627092/Model_4FGL_J2259.8-1552_daily_bin929.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/627092/ft1_filtered_4FGL_J2259.8-1552_daily_bin929.fits.....................!
real 50.28
user 48.93
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    29.341       1.0000         .10000E-03   10000.    
     2 'Prefactor '    58.152       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.4933       1.0000         .10000E-03   10000.    
     4 'norm      '    .10183E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    58.059       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .20217       1.0000         .10000E-03   10000.    
     8 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    33.993       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10112E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    12.639       1.0000         .10000E-03   10000.    
    15 'Prefactor '    29.674       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10106E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    17.423       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2.0058       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.1026       1.0000         .10000E-03   10000.    
    24 'Prefactor '    3.8814       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .62935       1.0000         .10000E-03   10000.    
    27 'norm      '    .88287       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0803       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .80184       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=   6108.003     FROM MIGRAD    STATUS=CONVERGED    756 CALLS     3747 TOTAL
                     EDM=   .72E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 10.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     29.337        17.297       -.40230E-07   -.59700E-04
   2  Prefactor     58.167        53.490       -.25205E-06   -.59285E-04
   3  Prefactor     6.4925        81.496       -.50579E-06   -.12819E-04
   4  norm          .10000E-03    2.9750       -.44532E-07** at limit **
   5  Prefactor     58.074        65.043       -.23542E-08   -.15478E-04
   6  Prefactor     .10000E-03    12.640       -.53581E-06** at limit **
   7  norm          .20219        .50049        .20276E-06   -.38116E-03
   8  norm          .10000E-03    1.1238       -.53396E-06** at limit **
   9  Prefactor     34.003        36.504       -.72351E-07   -.94273E-04
  10  Prefactor     .10000E-03    2.1407        .13723E-07** at limit **
  11  norm          .10000E-03    .17059        .87989E-08** at limit **
  12  Prefactor     .10000E-03    6.1832        .20299E-07** at limit **
  13  Prefactor     .10000E-03    11.474        .64444E-06** at limit **
  14  Prefactor     12.636        11.055        .83445E-07    .15050E-03
  15  Prefactor     29.675        14.376        .15736E-07   -.37867E-04
  16  Prefactor     .10000E-03    3.7194        .55310E-07** at limit **
  17  Prefactor     .10000E-03    10.870        .11555E-05** at limit **
  18  Prefactor     .10000E-03    39.765        .23030E-06** at limit **
  19  Prefactor     17.406        23.490       -.20126E-06    .11198E-04
  20  Prefactor     .10000E-03    8.6396        .18721E-06** at limit **
  21  norm          2.0061        2.8921        .56192E-07   -.45251E-04
  22  norm          .10000E-03    1.6684       -.74965E-08** at limit **
  23  Prefactor     1.7658        876.09        .29493E-04    .16925E-04
  24  Prefactor     3.9627        42.695       -.93451E-05   -.79451E-04
  25  Prefactor     .10000E-03    29.945        .11990E-06** at limit **
  26  norm          .62936        .55821       -.22047E-06    .22399E-03
  27  norm          .88175        8.3804        .23089E-05   -.26864E-03
  28  Normalizat    1.0806        .18199        .23197E-06   -.95290E-04
  29  Prefactor     .80162        .14742       -.65521E-06    .88683E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 29.3373
  Prefactor  = 58.1669
  Prefactor  = 6.4925
  norm       = 0.0001
  Prefactor  = 58.0743
  Prefactor  = 0.0001
  norm       = 0.202187
  norm       = 0.0001
  Prefactor  = 34.0027
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.6361
  Prefactor  = 29.6745
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.4056
  Prefactor  = 0.0001
  norm       = 2.0061
  norm       = 0.0001
  Prefactor  = 1.76579
  Prefactor  = 3.96267
  Prefactor  = 0.0001
  norm       = 0.629362
  norm       = 0.881752
  Normalizat = 1.08064
  Prefactor  = 0.801619
 **********
 **   18 **HESSE 
 **********

 FCN=   6108.003     FROM HESSE     STATUS=OK           551 CALLS     4298 TOTAL
                     EDM=   .90E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     29.337        17.297        .73965E-04   -1.4624    
   2  Prefactor     58.167        53.504        .52609E-04   -1.4181    
   3  Prefactor     6.4925        79.792        .15750E-03   -1.5198    
   4  norm          .10000E-03    3.0925        .26264E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     58.074        65.029        .52651E-04   -1.4182    
   6  Prefactor     .10000E-03    12.932        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .20219        .47400        .81760E-03   -1.5618    
   8  norm          .10000E-03    1.1090        .79594E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     34.003        36.515        .68731E-04   -1.4541    
  10  Prefactor     .10000E-03    2.1428        .11167E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .17180        .31502E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    6.1891        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    11.467        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     12.636        11.071        .11267E-03   -1.4997    
  15  Prefactor     29.675        14.378        .73549E-04   -1.4618    
  16  Prefactor     .10000E-03    3.7265        .14719E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    10.889        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    39.912        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     17.406        23.446        .95953E-04   -1.4873    
  20  Prefactor     .10000E-03    8.9481        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.0061        2.8728        .15540E-03   -1.5425    
  22  norm          .10000E-03    1.7139        .19698E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     1.7658        752.49        .28458E-03   -1.5442    
  24  Prefactor     3.9627        39.257        .20481E-03   -1.5310    
  25  Prefactor     .10000E-03    30.091        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .62936        .53543        .44030E-04   -1.5549    
  27  norm          .88175        7.6203        .34796E-03   -1.5520    
  28  Normalizat    1.0806        .21009        .23515E-03   -.90376    
  29  Prefactor     .80162        .17008        .22822E-03   -.99669    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.96768e-09
Minuit parameter uncertainties:
  1  17.2995
  2  53.5484
  3  45.5966
  4  9.35422e-06
  5  65.1087
  6  9.88624e-05
  7  0.474009
  8  2.30672e-05
  9  36.5388
  10  7.21069e-07
  11  1.00704e-07
  12  1.17477e-06
  13  9.10372e-05
  14  11.0723
  15  14.3795
  16  3.23565e-06
  17  0.000146752
  18  1.23961e-05
  19  23.4579
  20  1.47978e-05
  21  2.873
  22  2.1008e-06
  23  73.8552
  24  24.966
  25  3.10158e-05
  26  0.535433
  27  5.1849
  28  0.210257
  29  0.170192
Done.

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

Extracting fit parameters...

4FGL J2259.8-1552
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  3.236e-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:  8.016e-01  1.702e-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.081e+00  2.103e-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: 4.93e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.74e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/627092/likelihoodResults_480124801_480384001_4FGL_J2259.8-1552_daily_bin929.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) = 6108.00444843
delta logL = -0.00127565065577

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6108.00317265
delta logL = 1.27663952298e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1165       1.0000          .0000       10.000    
     3 'Normalizat'    1.0806       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80162       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=   6107.766     FROM MIGRAD    STATUS=FAILED       154 CALLS      308 TOTAL
                     EDM=   .28E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .40048        62.072        .24104E-01    .10916E-02
   2  Index         .28696        8.5823        .50000        .87147E-04
   3  Normalizat    1.0714        .49872E-01    .23514E-03    .49798E-05
   4  Prefactor     .80733        .42538E-01    .22822E-03    .31881E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6107.766     FROM SIMPLEX   STATUS=UNCHANGED     81 CALLS      389 TOTAL
                     EDM=   .69E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .40048        62.072        .12008E-03    .10916E-02
   2  Index         .28696        8.5823        .24995E-02    .87147E-04
   3  Normalizat    1.0714        .49872E-01    .49165E-04    .49798E-05
   4  Prefactor     .80733        .42538E-01    .10194E-03    .31881E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6107.766     FROM MIGRAD    STATUS=CONVERGED     72 CALLS      461 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .40048        3.8716        .23661E-03   -.26619E-04
   2  Index         .28696        7.0874        .12039E-01    .13689E-04
   3  Normalizat    1.0714        .19188        .18812E-05    .48348E-05
   4  Prefactor     .80733        .16362        .18258E-05    .24907E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.400479
  Index      = 0.286956
  Normalizat = 1.07139
  Prefactor  = 0.807329
 **********
 **   18 **HESSE 
 **********

 FCN=   6107.766     FROM HESSE     STATUS=OK            27 CALLS      488 TOTAL
                     EDM=   .52E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .40048        1.7644        .94642E-05   -1.5581    
   2  Index         .28696        1.2885        .24077E-02   -1.9112    
   3  Normalizat    1.0714        .19429        .37623E-06   -.90676    
   4  Prefactor     .80733        .16581        .36516E-06   -.99459    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.16235e-13
Minuit parameter uncertainties:
  1  1.68109
  2  1.26453
  3  0.194424
  4  0.165915
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/627092': 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) = 6107.76574984
delta logL = 0.237422932576

Extracting fit parameters...

4FGL J2259.8-1552
   Spectrum: PowerLaw
314    Prefactor:  4.005e-01  1.681e+00  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  2.870e-01  1.265e+00  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:  8.073e-01  1.659e-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.071e+00  1.944e-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/627092/cmap_HighResolution_480124801_480384001_4FGL_J2259.8-1552_daily_bin929.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.74e-03', job_status='DONE', photon_flux_upper_limit='4.93e-08', time_completed='2021-09-29 05:05:14.820755', job_id='627092', GAL2='0.81', fit_tolerance='1e-08', EG2='1.07', EG='1.08', time_epoch_completed='1632917114.82', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.80', dlogl='2.37e-01', ts2='0.48', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='929' AND source_name='4FGL J2259.8-1552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 05:05:14 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2259.8-1552_daily_bin929 344.953 -15.8809 480124801 480384001 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 :                                   751.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             331.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   893 sec.
    Turnaround time :                            895 sec.

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

