/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 81 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 = 7424
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0814.2-1013_daily_bin172
RA = 123.551, Dec = -10.2172
tmin = 283910401, tmax = 284169601
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='327710', job_status='RUN', time_executed='2021-08-29 13:12:57.596793', time_epoch_executed='1630267977.6' WHERE source_name='4FGL J0814.2-1013' and cadence='daily' and bin_id='172'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/327710

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/327710/ft1_4FGL_J0814.2-1013_daily_bin172.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/327710/ft2_4FGL_J0814.2-1013_daily_bin172.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/327710/ft1_4FGL_J0814.2-1013_daily_bin172.fits outfile=/scratch/kocevski/327710/ft1_filteredMKT_4FGL_J0814.2-1013_daily_bin172.fits ra=123.551 dec=-10.2172 rad=12.0 tmin=283910401.0 tmax=284169601.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.90
user 3.35
sys 0.50

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/327710/ft2_4FGL_J0814.2-1013_daily_bin172.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/327710/ft2_4FGL_J0814.2-1013_daily_bin172.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/327710/ft1_filteredMKT_4FGL_J0814.2-1013_daily_bin172.fits evtable="EVENTS" outfile="/scratch/kocevski/327710/ft1_filtered_4FGL_J0814.2-1013_daily_bin172.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.86
user 0.33
sys 0.41

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/327710/ft1_filtered_4FGL_J0814.2-1013_daily_bin172.fits" evtable="EVENTS" scfile=/scratch/kocevski/327710/ft2_4FGL_J0814.2-1013_daily_bin172.fits sctable="SC_DATA" outfile=/scratch/kocevski/327710/ltcube_283910401_284169601_4FGL_J0814.2-1013_daily_bin172.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/327710/ft2_4FGL_J0814.2-1013_daily_bin172.fits
.....................!
real 12.09
user 11.38
sys 0.66

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/327710/ft1_filtered_4FGL_J0814.2-1013_daily_bin172.fits evtable="EVENTS" scfile=/scratch/kocevski/327710/ft2_4FGL_J0814.2-1013_daily_bin172.fits sctable="SC_DATA" expcube=/scratch/kocevski/327710/ltcube_283910401_284169601_4FGL_J0814.2-1013_daily_bin172.fits outfile=/scratch/kocevski/327710/expmap_283910401_284169601_4FGL_J0814.2-1013_daily_bin172.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/327710/ltcube_283910401_284169601_4FGL_J0814.2-1013_daily_bin172.fits
.....................!
real 193.10
user 185.17
sys 5.26

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 163 point sources and 0 extended sources

Setting source of interest to:
4FGL J0814.2-1013 @ 123.551 -10.2172

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/327710/ft1_filtered_4FGL_J0814.2-1013_daily_bin172.fits scfile=/scratch/kocevski/327710/ft2_4FGL_J0814.2-1013_daily_bin172.fits outfile=/scratch/kocevski/327710/cmap_283910401_284169601_4FGL_J0814.2-1013_daily_bin172.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=123.551 yref=-10.2172 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.84
user 0.39
sys 0.44

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/327710/ft1_filtered_4FGL_J0814.2-1013_daily_bin172.fits scfile=/scratch/kocevski/327710/ft2_4FGL_J0814.2-1013_daily_bin172.fits outfile=/scratch/kocevski/327710/cmap_HighResolution_283910401_284169601_4FGL_J0814.2-1013_daily_bin172.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=123.551 yref=-10.2172 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.82
user 0.38
sys 0.42

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/327710/ft1_filtered_4FGL_J0814.2-1013_daily_bin172.fits evtable="EVENTS" scfile=/scratch/kocevski/327710/ft2_4FGL_J0814.2-1013_daily_bin172.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/327710/Model_4FGL_J0814.2-1013_daily_bin172.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/327710/ft1_filtered_4FGL_J0814.2-1013_daily_bin172.fits.....................!
real 130.08
user 127.77
sys 1.73

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/327710/ft1_filtered_4FGL_J0814.2-1013_daily_bin172.fits', '/scratch/kocevski/327710/ft2_4FGL_J0814.2-1013_daily_bin172.fits', expMap='/scratch/kocevski/327710/expmap_283910401_284169601_4FGL_J0814.2-1013_daily_bin172.fits', expCube='/scratch/kocevski/327710/ltcube_283910401_284169601_4FGL_J0814.2-1013_daily_bin172.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/327710/Model_4FGL_J0814.2-1013_daily_bin172.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0814.2-1013'

4FGL J0814.2-1013
   Spectrum: PowerLaw
279    Prefactor:  3.187e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
280        Index:  2.113e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
281        Scale:  1.815e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/327710/ft1_filtered_4FGL_J0814.2-1013_daily_bin172.fits
Spacecraft file(s): /scratch/kocevski/327710/ft2_4FGL_J0814.2-1013_daily_bin172.fits
Exposure map: /scratch/kocevski/327710/expmap_283910401_284169601_4FGL_J0814.2-1013_daily_bin172.fits
Exposure cube: /scratch/kocevski/327710/ltcube_283910401_284169601_4FGL_J0814.2-1013_daily_bin172.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/327710/Model_4FGL_J0814.2-1013_daily_bin172.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) = 10441.7330496

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.1466       1.0000         .10000E-03   10000.    
     2 'Prefactor '    12.300       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .78986       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.7819       1.0000         .10000E-03   10000.    
     8 'norm      '    1.8568       1.0000         .10000E-03   10000.    
     9 'norm      '    1.2220       1.0000         .10000E-03   10000.    
    10 'Prefactor '    15.705       1.0000         .10000E-03   10000.    
    11 'norm      '    7.5576       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.9394       1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.2976       1.0000         .10000E-03   10000.    
    14 'norm      '    30.719       1.0000         .10000E-03   10000.    
    15 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.656       1.0000         .10000E-03   10000.    
    17 'norm      '    .61162       1.0000         .10000E-03   10000.    
    18 'norm      '    .59020       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .67501       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0928       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5460E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10441.71     FROM MIGRAD    STATUS=CONVERGED    427 CALLS     2192 TOTAL
                     EDM=   .70E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.1460        2.0459         .0000        .17004E-02
   2  Prefactor     12.299        13.925         .0000        .11556E-02
   3  Prefactor     .10000E-03    10.238         .0000    ** at limit **
   4  norm          .10000E-03    3.7111         .0000    ** at limit **
   5  norm          .10000E-03    2.7587         .0000    ** at limit **
   6  norm          .78864        3.0848         .0000        .56542E-01
   7  Prefactor     2.7832        4.5211         .0000        .75885E-02
   8  norm          1.8522        13.923         .0000        .21592E-02
   9  norm          1.2220        1.2587         .0000       -.39766E-03
  10  Prefactor     15.704        10.005         .0000        .22254E-02
  11  norm          7.5576        1.6494         .0000        .67817E-03
  12  Prefactor     1.9405        14.429         .0000        .76870E-02
  13  Prefactor     7.2976        4.6689         .0000        .94975E-03
  14  norm          30.720        21.260         .0000       -.99606E-03
  15  norm          .10000E-03    2.2968         .0000    ** at limit **
  16  Prefactor     10.656        17.027         .0000        .12128E-02
  17  norm          .61199        5.8831         .0000        .63158E-01
  18  norm          .59000        1.3393         .0000        .13076E-02
  19  Prefactor     .10000E-03    3.0013         .0000    ** at limit **
  20  Normalizat    .67497        .17893         .0000        .21564E-03
  21  Prefactor     1.0929        .78209E-01     .0000        .46005E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 8.14604
  Prefactor  = 12.2992
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.788636
  Prefactor  = 2.78319
  norm       = 1.85218
  norm       = 1.22201
  Prefactor  = 15.7035
  norm       = 7.5576
  Prefactor  = 1.9405
  Prefactor  = 7.29757
  norm       = 30.7197
  norm       = 0.0001
  Prefactor  = 10.6555
  norm       = 0.611986
  norm       = 0.589995
  Prefactor  = 0.0001
  Normalizat = 0.674973
  Prefactor  = 1.09288
 **********
 **   18 **HESSE 
 **********

 FCN=   10441.71     FROM HESSE     STATUS=OK           319 CALLS     2511 TOTAL
                     EDM=   .34E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.1460        2.0594        .69020E-04   -1.5137    
   2  Prefactor     12.299        13.934        .11422E-03   -1.5006    
   3  Prefactor     .10000E-03    10.243        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    3.7144        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    2.7672        .16573E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .78864        3.1124        .16841E-02   -1.5530    
   7  Prefactor     2.7832        4.4931        .12199E-02   -1.5374    
   8  norm          1.8522        13.846        .30586E-03   -1.5436    
   9  norm          1.2220        1.2712        .11265E-03   -1.5487    
  10  Prefactor     15.704        9.8934        .10107E-03   -1.4915    
  11  norm          7.5576        1.6420        .57103E-04   -1.5158    
  12  Prefactor     1.9405        13.921        .14907E-02   -1.5429    
  13  Prefactor     7.2976        4.6640        .74238E-03   -1.5168    
  14  norm          30.720        21.078        .72290E-04   -1.4599    
  15  norm          .10000E-03    2.3092        .15121E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     10.656        17.034        .12274E-03   -1.5055    
  17  norm          .61199        5.9736        .23437E-02   -1.5552    
  18  norm          .59000        .97687        .17261E-02   -1.5554    
  19  Prefactor     .10000E-03    3.0049        .17288E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .67497        .18640        .45767E-03   -1.0489    
  21  Prefactor     1.0929        .83020E-01    .16301E-03   -.89694    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.41151e-08
Minuit parameter uncertainties:
  1  2.05939
  2  13.9374
  3  1.89379e-06
  4  3.90495e-05
  5  5.74564e-05
  6  3.11303
  7  4.49369
  8  10.1313
  9  1.27119
  10  9.89441
  11  1.64201
  12  10.3981
  13  4.66427
  14  21.0827
  15  1.28594e-05
  16  17.0414
  17  3.82419
  18  0.976899
  19  7.63295e-05
  20  0.186576
  21  0.0830294
Done.

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

Extracting fit parameters...

4FGL J0814.2-1013
   Spectrum: PowerLaw
279    Prefactor:  1.941e+00  1.040e+01  1.000e-04  1.000e+04 ( 1.000e-13)
280        Index:  2.113e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
281        Scale:  1.815e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
543    Prefactor:  1.093e+00  8.303e-02  0.000e+00  1.000e+01 ( 1.000e+00)
544        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
545        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
542   Normalization:  6.750e-01  1.866e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.05
Ra Dec: 123.551 -10.217
Photon Flux Upper Limit: 1.00e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.60e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/327710/likelihoodResults_283910401_284169601_4FGL_J0814.2-1013_daily_bin172.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) = 10441.2014034
delta logL = 0.511681326157

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10441.0798784
delta logL = 0.633206302329

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .44983       1.0000         .10000E-03   10000.    
     2 'Index     '    3.6857       1.0000          .0000       10.000    
     3 'Normalizat'    .62982       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1000       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5460E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10441.08     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      246 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .44942        4.3907        .11064E-01    .27451E-02
   2  Index         3.6868        1.5463        .13385        .22323E-03
   3  Normalizat    .62985        .36164E-01    .10621        .36118E-04
   4  Prefactor     1.1000        .16167E-01    .37585E-01   -.64709E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.449416
  Index      = 3.68684
  Normalizat = 0.629848
  Prefactor  = 1.10001
 **********
 **   18 **HESSE 
 **********

 FCN=   10441.08     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      279 TOTAL
                     EDM=   .95E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .44942        19.597        .61997E-04   -1.5574    
   2  Index         3.6868        6.7848        .48258E-02   -.26575    
   3  Normalizat    .62985        .16293        .47109E-03   -1.0673    
   4  Prefactor     1.1000        .71765E-01    .16234E-03   -.89466    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.46537e-07
Minuit parameter uncertainties:
  1  5.93677
  2  5.24897
  3  0.163057
  4  0.0717712
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/327710': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10441.0798758
delta logL = 0.63320887561

Extracting fit parameters...

4FGL J0814.2-1013
   Spectrum: PowerLaw
279    Prefactor:  4.494e-01  5.937e+00  1.000e-04  1.000e+04 ( 1.000e-13)
280        Index:  3.687e+00  5.249e+00  0.000e+00  1.000e+01 (-1.000e+00)
281        Scale:  1.815e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
543    Prefactor:  1.100e+00  7.177e-02  0.000e+00  1.000e+01 ( 1.000e+00)
544        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
545        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
542   Normalization:  6.298e-01  1.631e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.38
Ra Dec: 123.551 -10.217
Photon Index (Free Index): 3.69 +/- 5.25
Photon Flux (Free Index): 7.35e-08 +/- 6.69e-08
Energy Flux (Free Index): 1.17e-05 +/- 1.64e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/327710/cmap_HighResolution_283910401_284169601_4FGL_J0814.2-1013_daily_bin172.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.60e-03', comment='SUCCESS', energy_flux2='1.17e-05', dlogl='6.33e-01', photon_flux2='7.35e-08', job_status='DONE', time_completed='2021-08-29 13:27:04.371239', photon_index_error2='5.25', photon_index2='3.69', ts='0.05', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', photon_flux_upper_limit='1.00e-07', energy_flux_error2='1.64e-05', EG='0.67', time_epoch_completed='1630268824.37', return_code='0', job_id='327710', GAL2='1.10', EG2='0.63', return_code2='102', photon_flux_error2='6.69e-08', ts2='1.38', photon_index='2.11' WHERE bin_id='172' AND source_name='4FGL J0814.2-1013' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 13:27:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0211>
Subject: Job 327710: <4FGL_J0814.2-1013_daily_bin172> in cluster <slac> Done

Job <4FGL_J0814.2-1013_daily_bin172> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Aug 29 13:11:14 2021
Job was executed on host(s) <bullet0211>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 13:11:16 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 29 13:11:16 2021
Terminated at Sun Aug 29 13:27:04 2021
Results reported at Sun Aug 29 13:27:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0814.2-1013_daily_bin172 123.551 -10.2172 283910401 284169601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0814.2-1013 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   848.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             295.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   948 sec.
    Turnaround time :                            950 sec.

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

