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


Performing analysis on: 4FGL_J0814.2-1013_daily_bin1004
RA = 123.551, Dec = -10.2172
tmin = 499564801, tmax = 499824001
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='333797', job_status='RUN', time_executed='2021-08-29 13:32:01.405944', time_epoch_executed='1630269121.41' WHERE source_name='4FGL J0814.2-1013' and cadence='daily' and bin_id='1004'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/333797

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/333797/ft1_4FGL_J0814.2-1013_daily_bin1004.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/333797/ft2_4FGL_J0814.2-1013_daily_bin1004.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/333797/ft1_4FGL_J0814.2-1013_daily_bin1004.fits outfile=/scratch/kocevski/333797/ft1_filteredMKT_4FGL_J0814.2-1013_daily_bin1004.fits ra=123.551 dec=-10.2172 rad=12.0 tmin=499564801.0 tmax=499824001.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.97
user 4.79
sys 1.09

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/333797/ft1_filtered_4FGL_J0814.2-1013_daily_bin1004.fits" evtable="EVENTS" scfile=/scratch/kocevski/333797/ft2_4FGL_J0814.2-1013_daily_bin1004.fits sctable="SC_DATA" outfile=/scratch/kocevski/333797/ltcube_499564801_499824001_4FGL_J0814.2-1013_daily_bin1004.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/333797/ft2_4FGL_J0814.2-1013_daily_bin1004.fits
.....................!
real 13.42
user 12.11
sys 1.26

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/333797/ft1_filtered_4FGL_J0814.2-1013_daily_bin1004.fits evtable="EVENTS" scfile=/scratch/kocevski/333797/ft2_4FGL_J0814.2-1013_daily_bin1004.fits sctable="SC_DATA" expcube=/scratch/kocevski/333797/ltcube_499564801_499824001_4FGL_J0814.2-1013_daily_bin1004.fits outfile=/scratch/kocevski/333797/expmap_499564801_499824001_4FGL_J0814.2-1013_daily_bin1004.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/333797/ltcube_499564801_499824001_4FGL_J0814.2-1013_daily_bin1004.fits
.....................!
real 191.83
user 185.68
sys 5.78

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/333797/ft1_filtered_4FGL_J0814.2-1013_daily_bin1004.fits scfile=/scratch/kocevski/333797/ft2_4FGL_J0814.2-1013_daily_bin1004.fits outfile=/scratch/kocevski/333797/cmap_499564801_499824001_4FGL_J0814.2-1013_daily_bin1004.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 1.31
user 0.36
sys 0.90

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/333797/ft1_filtered_4FGL_J0814.2-1013_daily_bin1004.fits scfile=/scratch/kocevski/333797/ft2_4FGL_J0814.2-1013_daily_bin1004.fits outfile=/scratch/kocevski/333797/cmap_HighResolution_499564801_499824001_4FGL_J0814.2-1013_daily_bin1004.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 1.43
user 0.39
sys 0.98

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/333797/ft1_filtered_4FGL_J0814.2-1013_daily_bin1004.fits evtable="EVENTS" scfile=/scratch/kocevski/333797/ft2_4FGL_J0814.2-1013_daily_bin1004.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/333797/Model_4FGL_J0814.2-1013_daily_bin1004.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/333797/ft1_filtered_4FGL_J0814.2-1013_daily_bin1004.fits.....................!
real 113.40
user 110.36
sys 2.34

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/333797/ft1_filtered_4FGL_J0814.2-1013_daily_bin1004.fits', '/scratch/kocevski/333797/ft2_4FGL_J0814.2-1013_daily_bin1004.fits', expMap='/scratch/kocevski/333797/expmap_499564801_499824001_4FGL_J0814.2-1013_daily_bin1004.fits', expCube='/scratch/kocevski/333797/ltcube_499564801_499824001_4FGL_J0814.2-1013_daily_bin1004.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/333797/Model_4FGL_J0814.2-1013_daily_bin1004.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/333797/ft1_filtered_4FGL_J0814.2-1013_daily_bin1004.fits
Spacecraft file(s): /scratch/kocevski/333797/ft2_4FGL_J0814.2-1013_daily_bin1004.fits
Exposure map: /scratch/kocevski/333797/expmap_499564801_499824001_4FGL_J0814.2-1013_daily_bin1004.fits
Exposure cube: /scratch/kocevski/333797/ltcube_499564801_499824001_4FGL_J0814.2-1013_daily_bin1004.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/333797/Model_4FGL_J0814.2-1013_daily_bin1004.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) = 8806.09432751

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.6105       1.0000         .10000E-03   10000.    
     2 'Prefactor '    15.592       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    8.1597       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.3764       1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    4.9887       1.0000         .10000E-03   10000.    
    10 'Prefactor '    12.331       1.0000         .10000E-03   10000.    
    11 'norm      '    .88987       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    15.880       1.0000         .10000E-03   10000.    
    15 'norm      '    .10095E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    36.703       1.0000         .10000E-03   10000.    
    17 'norm      '    10.507       1.0000         .10000E-03   10000.    
    18 'norm      '    .23855       1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.0125       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .78683       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0116       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8806.094     FROM MIGRAD    STATUS=CONVERGED    431 CALLS     2200 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.6104        1.4856       -.91688E-07   -.50888E-03
   2  Prefactor     15.591        17.416       -.17926E-05    .29704E-04
   3  Prefactor     .10000E-03    13.845        .34326E-06** at limit **
   4  norm          .10000E-03    6.6934       -.26928E-06** at limit **
   5  norm          8.1588        11.980       -.15110E-05   -.48554E-04
   6  norm          .10000E-03    1.6545       -.12171E-06** at limit **
   7  Prefactor     5.3763        5.8460       -.11531E-06    .70449E-04
   8  norm          .10000E-03    6.0966        .13516E-06** at limit **
   9  norm          4.9888        3.2215       -.10144E-05   -.56125E-04
  10  Prefactor     12.333        9.0438       -.14961E-07   -.83554E-04
  11  norm          .88969        1.1174       -.32203E-07   -.92721E-03
  12  Prefactor     .10000E-03    4.8408        .89685E-07** at limit **
  13  Prefactor     .10000E-03    1.9592       -.72472E-08** at limit **
  14  norm          15.881        15.802        .13701E-05   -.43223E-04
  15  norm          .10000E-03    2.6519       -.38948E-08** at limit **
  16  Prefactor     36.703        27.063       -.10213E-05   -.14029E-04
  17  norm          10.506        9.2177        .15309E-05   -.19784E-03
  18  norm          .23805        1.7985        .92881E-06   -.68477E-03
  19  Prefactor     5.0053        17.747       -.16780E-04   -.32597E-04
  20  Normalizat    .78682        .19609        .19861E-05   -.61399E-04
  21  Prefactor     1.0116        .80415E-01    .36501E-06   -.71357E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.61042
  Prefactor  = 15.591
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 8.15881
  norm       = 0.0001
  Prefactor  = 5.37631
  norm       = 0.0001
  norm       = 4.98883
  Prefactor  = 12.3332
  norm       = 0.889694
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 15.8813
  norm       = 0.0001
  Prefactor  = 36.7026
  norm       = 10.5063
  norm       = 0.238049
  Prefactor  = 5.00528
  Normalizat = 0.786816
  Prefactor  = 1.01163
 **********
 **   18 **HESSE 
 **********

 FCN=   8806.094     FROM HESSE     STATUS=OK           329 CALLS     2529 TOTAL
                     EDM=   .82E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.6104        1.4937        .81954E-04   -1.5385    
   2  Prefactor     15.591        17.441        .10143E-03   -1.4918    
   3  Prefactor     .10000E-03    13.855        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    6.7067        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          8.1588        12.078        .14035E-03   -1.5137    
   6  norm          .10000E-03    1.6876        .11783E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.3763        5.8438        .17332E-03   -1.5244    
   8  norm          .10000E-03    6.1252        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          4.9888        3.1757        .12496E-03   -1.5261    
  10  Prefactor     12.333        9.0217        .11407E-03   -1.5005    
  11  norm          .88969        .98475        .10167E-02   -1.5519    
  12  Prefactor     .10000E-03    4.8571        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.9713        .12820E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          15.881        15.781        .10051E-03   -1.4911    
  15  norm          .10000E-03    6.8357        .29713E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     36.703        27.099        .66153E-04   -1.4496    
  17  norm          10.506        9.1522        .12361E-03   -1.5060    
  18  norm          .23805        6.6347        .22252E-02   -1.5610    
  19  Prefactor     5.0053        17.654        .17961E-03   -1.5260    
  20  Normalizat    .78682        .21033        .42008E-03   -1.0056    
  21  Prefactor     1.0116        .88115E-01    .15786E-03   -.92343    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.19545e-10
Minuit parameter uncertainties:
  1  1.49375
  2  17.4471
  3  1.27071e-05
  4  1.67574e-06
  5  12.0811
  6  1.81526e-06
  7  5.84442
  8  6.29782e-06
  9  3.17583
  10  9.02272
  11  0.984772
  12  1.27903e-05
  13  4.1843e-06
  14  15.7854
  15  8.33414e-05
  16  27.1086
  17  9.15339
  18  2.51326
  19  17.6724
  20  0.210549
  21  0.0881277
Done.

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

Extracting fit parameters...

4FGL J0814.2-1013
   Spectrum: PowerLaw
279    Prefactor:  1.000e-04  1.279e-05  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.012e+00  8.813e-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:  7.868e-01  2.105e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 123.551 -10.217
Photon Flux Upper Limit: 7.61e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.76e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/333797/likelihoodResults_499564801_499824001_4FGL_J0814.2-1013_daily_bin1004.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) = 8806.09477851
delta logL = -0.000981204220807

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8806.09379726
delta logL = 4.91800165037e-08

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.1288       1.0000          .0000       10.000    
     3 'Normalizat'    .78681       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0116       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=   8806.094     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      208 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    102.15        .90712E-02** at limit **
   2  Index         2.1455        8.6718        .50000       -.29521E-04
   3  Normalizat    .78682        .25519E-01    .94802E-01    .15121E-04
   4  Prefactor     1.0116        .10818E-01    .43102E-01   -.24555E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.14546
  Normalizat = 0.786816
  Prefactor  = 1.01163
 **********
 **   18 **HESSE 
 **********

 FCN=   8806.094     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      241 TOTAL
                     EDM=   .84E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    347.82        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1455        5.4763        .50000       -.60761    
   3  Normalizat    .78682        .50043E-01    .42008E-03   -1.0056    
   4  Prefactor     1.0116        .21280E-01    .15786E-03   -.92343    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.36551e-08
Minuit parameter uncertainties:
  1  0.000402445
  2  34.5931
  3  0.050046
  4  0.02128
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/333797': 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) = 8806.09379709
delta logL = 2.24345058086e-07

Extracting fit parameters...

4FGL J0814.2-1013
   Spectrum: PowerLaw
279    Prefactor:  1.000e-04  4.024e-04  1.000e-04  1.000e+04 ( 1.000e-13)
280        Index:  2.145e+00  3.459e+01  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.012e+00  2.128e-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:  7.868e-01  5.005e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 123.551 -10.217

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/333797/cmap_HighResolution_499564801_499824001_4FGL_J0814.2-1013_daily_bin1004.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.76e-03', job_status='DONE', photon_flux_upper_limit='7.61e-08', time_completed='2021-08-29 13:44:56.450758', job_id='333797', GAL2='1.01', fit_tolerance='1e-08', EG2='0.79', EG='0.79', time_epoch_completed='1630269896.45', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='2.24e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.11' WHERE bin_id='1004' AND source_name='4FGL J0814.2-1013' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 13:44:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0044>
Subject: Job 333797: <4FGL_J0814.2-1013_daily_bin1004> in cluster <slac> Done

Job <4FGL_J0814.2-1013_daily_bin1004> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sun Aug 29 13:30:45 2021
Job was executed on host(s) <bullet0044>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 13:30:47 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:30:47 2021
Terminated at Sun Aug 29 13:44:59 2021
Results reported at Sun Aug 29 13:44:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0814.2-1013_daily_bin1004 123.551 -10.2172 499564801 499824001 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 :                                   780.07 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             313.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   849 sec.
    Turnaround time :                            854 sec.

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

