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


Performing analysis on: 4FGL_J0814.2-1013_daily_bin1233
RA = 123.551, Dec = -10.2172
tmin = 558921601, tmax = 559180801
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='335320', job_status='RUN', time_executed='2021-08-29 13:36:59.969762', time_epoch_executed='1630269419.97' WHERE source_name='4FGL J0814.2-1013' and cadence='daily' and bin_id='1233'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/335320

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/335320/ft1_4FGL_J0814.2-1013_daily_bin1233.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/335320/ft2_4FGL_J0814.2-1013_daily_bin1233.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/335320/ft1_4FGL_J0814.2-1013_daily_bin1233.fits outfile=/scratch/kocevski/335320/ft1_filteredMKT_4FGL_J0814.2-1013_daily_bin1233.fits ra=123.551 dec=-10.2172 rad=12.0 tmin=558921601.0 tmax=559180801.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.08
user 3.29
sys 1.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/335320/ft2_4FGL_J0814.2-1013_daily_bin1233.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/335320/ft1_filteredMKT_4FGL_J0814.2-1013_daily_bin1233.fits evtable="EVENTS" outfile="/scratch/kocevski/335320/ft1_filtered_4FGL_J0814.2-1013_daily_bin1233.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 2.11
user 0.32
sys 1.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/335320/ft1_filtered_4FGL_J0814.2-1013_daily_bin1233.fits" evtable="EVENTS" scfile=/scratch/kocevski/335320/ft2_4FGL_J0814.2-1013_daily_bin1233.fits sctable="SC_DATA" outfile=/scratch/kocevski/335320/ltcube_558921601_559180801_4FGL_J0814.2-1013_daily_bin1233.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/335320/ft2_4FGL_J0814.2-1013_daily_bin1233.fits
.....................!
real 13.29
user 11.41
sys 1.45

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/335320/ft1_filtered_4FGL_J0814.2-1013_daily_bin1233.fits evtable="EVENTS" scfile=/scratch/kocevski/335320/ft2_4FGL_J0814.2-1013_daily_bin1233.fits sctable="SC_DATA" expcube=/scratch/kocevski/335320/ltcube_558921601_559180801_4FGL_J0814.2-1013_daily_bin1233.fits outfile=/scratch/kocevski/335320/expmap_558921601_559180801_4FGL_J0814.2-1013_daily_bin1233.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/335320/ltcube_558921601_559180801_4FGL_J0814.2-1013_daily_bin1233.fits
.....................!
real 194.15
user 186.75
sys 5.90

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/335320/ft1_filtered_4FGL_J0814.2-1013_daily_bin1233.fits scfile=/scratch/kocevski/335320/ft2_4FGL_J0814.2-1013_daily_bin1233.fits outfile=/scratch/kocevski/335320/cmap_558921601_559180801_4FGL_J0814.2-1013_daily_bin1233.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.52
user 0.36
sys 1.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/335320/ft1_filtered_4FGL_J0814.2-1013_daily_bin1233.fits scfile=/scratch/kocevski/335320/ft2_4FGL_J0814.2-1013_daily_bin1233.fits outfile=/scratch/kocevski/335320/cmap_HighResolution_558921601_559180801_4FGL_J0814.2-1013_daily_bin1233.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.51
user 0.38
sys 1.11

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/335320/ft1_filtered_4FGL_J0814.2-1013_daily_bin1233.fits evtable="EVENTS" scfile=/scratch/kocevski/335320/ft2_4FGL_J0814.2-1013_daily_bin1233.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/335320/Model_4FGL_J0814.2-1013_daily_bin1233.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/335320/ft1_filtered_4FGL_J0814.2-1013_daily_bin1233.fits......................!
real 58.28
user 55.25
sys 2.63

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.6927       1.0000         .10000E-03   10000.    
     2 'Prefactor '    26.590       1.0000         .10000E-03   10000.    
     3 'Prefactor '    38.532       1.0000         .10000E-03   10000.    
     4 'norm      '    .35038E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    35.429       1.0000         .10000E-03   10000.    
     6 'norm      '    2.3940       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10303E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .16786E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.6859       1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.0439       1.0000         .10000E-03   10000.    
    11 'norm      '    3.8710       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10402E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .41564       1.0000         .10000E-03   10000.    
    14 'norm      '    19.699       1.0000         .10000E-03   10000.    
    15 'norm      '    .21906E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.9825       1.0000         .10000E-03   10000.    
    17 'norm      '    .12095E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10865E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    35.753       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.2390       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .71354       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=   3704.430     FROM MIGRAD    STATUS=CONVERGED    489 CALLS     2237 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.6898        2.4032        .47272E-07   -.30399E-05
   2  Prefactor     26.635        20.984       -.78989E-06    .82091E-05
   3  Prefactor     38.468        31.186       -.17303E-05    .10515E-04
   4  norm          .10000E-03    26.568       -.10312E-06** at limit **
   5  norm          35.287        24.306        .12255E-06    .18910E-05
   6  norm          2.3855        5.7493        .21816E-05    .36301E-04
   7  Prefactor     .10000E-03    8.6854       -.86840E-07** at limit **
   8  norm          .10000E-03    7.1045       -.63405E-07** at limit **
   9  norm          1.6830        4.3411       -.31450E-07   -.78285E-05
  10  Prefactor     8.2787        26.085        .14934E-05    .37079E-04
  11  norm          3.8747        2.4189       -.23221E-07    .54307E-04
  12  Prefactor     .10000E-03    8.1550       -.50652E-07** at limit **
  13  Prefactor     .50790E-01    21.248        .45484E-06   -.19485E-03
  14  norm          19.705        21.901       -.11108E-05    .11390E-04
  15  norm          .10000E-03    71.758       -.57234E-06** at limit **
  16  Prefactor     6.1447        105.91       -.11483E-04    .15723E-06
  17  norm          .10000E-03    13.302        .45184E-07** at limit **
  18  norm          .10000E-03    3.0944       -.59675E-08** at limit **
  19  Prefactor     35.644        50.635        .34875E-05    .13165E-05
  20  Normalizat    1.2387        .29747        .17090E-05    .13871E-04
  21  Prefactor     .71396        .12431       -.46947E-06    .80063E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.68982
  Prefactor  = 26.635
  Prefactor  = 38.4678
  norm       = 0.0001
  norm       = 35.2868
  norm       = 2.3855
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.68298
  Prefactor  = 8.27872
  norm       = 3.87472
  Prefactor  = 0.0001
  Prefactor  = 0.0507903
  norm       = 19.7048
  norm       = 0.0001
  Prefactor  = 6.14467
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 35.6437
  Normalizat = 1.23869
  Prefactor  = 0.713957
 **********
 **   18 **HESSE 
 **********

 FCN=   3704.430     FROM HESSE     STATUS=OK           329 CALLS     2566 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.6898        2.4361        .80978E-04   -1.5380    
   2  Prefactor     26.635        21.062        .77689E-04   -1.4675    
   3  Prefactor     38.468        31.119        .32285E-03   -1.4467    
   4  norm          .10000E-03    27.196        .21323E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          35.287        24.410        .67328E-04   -1.4519    
   6  norm          2.3855        5.7609        .10698E-02   -1.5399    
   7  Prefactor     .10000E-03    8.7442        .17506E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    7.1271        .15839E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.6830        4.2489        .17578E-03   -1.5449    
  10  Prefactor     8.2787        27.600        .14137E-03   -1.5132    
  11  norm          3.8747        2.3852        .63912E-04   -1.5314    
  12  Prefactor     .10000E-03    8.1624        .16972E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .50790E-01    32.555        .63183E-01   -1.5663    
  14  norm          19.705        21.839        .90242E-04   -1.4820    
  15  norm          .10000E-03    72.053        .20145E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     6.1447        104.35        .16417E-03   -1.5212    
  17  norm          .10000E-03    13.316        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    3.0963        .10455E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     35.644        50.515        .67023E-04   -1.4513    
  20  Normalizat    1.2387        .32429        .35471E-03   -.85415    
  21  Prefactor     .71396        .13762        .17893E-03   -1.0298    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.0374e-10
Minuit parameter uncertainties:
  1  2.43619
  2  21.0681
  3  31.1323
  4  2.28955e-05
  5  24.4168
  6  5.76228
  7  9.68739e-06
  8  8.50766e-06
  9  4.24968
  10  27.6423
  11  2.3853
  12  1.01473e-05
  13  2.57061
  14  21.8483
  15  3.88488e-05
  16  50.7471
  17  5.44826e-06
  18  6.71242e-07
  19  50.5755
  20  0.324823
  21  0.137686
Done.

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

Extracting fit parameters...

4FGL J0814.2-1013
   Spectrum: PowerLaw
279    Prefactor:  1.000e-04  1.015e-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:  7.140e-01  1.377e-01  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:  1.239e+00  3.248e-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: 1.49e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.13e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/335320/likelihoodResults_558921601_559180801_4FGL_J0814.2-1013_daily_bin1233.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) = 3704.43058134
delta logL = -0.00058263882147

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3704.42999868
delta logL = 1.52663233166e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1012       1.0000          .0000       10.000    
     3 'Normalizat'    1.2387       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71396       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3704.430     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      243 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10049E-03    87.593        .17061E-02** at limit **
   2  Index         2.0657        5.9888        .50000        .98547E-05
   3  Normalizat    1.2387        .28657E-01    .35472E-03   -.10416E-05
   4  Prefactor     .71396        .11359E-01    .17893E-03    .30180E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100486
  Index      = 2.06568
  Normalizat = 1.23869
  Prefactor  = 0.713957
 **********
 **   18 **HESSE 
 **********

 FCN=   3704.430     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      272 TOTAL
                     EDM=   .98E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10049E-03    384.41        .34122E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0657        8.9330        .50000       -.62718    
   3  Normalizat    1.2387        .62885E-01    .14189E-04   -.85415    
   4  Prefactor     .71396        .24924E-01    .71573E-05   -1.0298    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.77235e-09
Minuit parameter uncertainties:
  1  0.0275207
  2  702.669
  3  0.062889
  4  0.0249243
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/335320': 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) = 3704.4299986
delta logL = 9.60344550549e-08

Extracting fit parameters...

4FGL J0814.2-1013
   Spectrum: PowerLaw
279    Prefactor:  1.005e-04  2.752e-02  1.000e-04  1.000e+04 ( 1.000e-13)
280        Index:  2.066e+00  7.027e+02  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:  7.140e-01  2.492e-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:  1.239e+00  6.289e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/335320/cmap_HighResolution_558921601_559180801_4FGL_J0814.2-1013_daily_bin1233.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.13e-02', job_status='DONE', photon_flux_upper_limit='1.49e-07', time_completed='2021-08-29 13:45:30.366767', job_id='335320', GAL2='0.71', fit_tolerance='1e-08', EG2='1.24', EG='1.24', time_epoch_completed='1630269930.37', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.71', dlogl='9.60e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.11' WHERE bin_id='1233' AND source_name='4FGL J0814.2-1013' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 13:45:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0239>
Subject: Job 335320: <4FGL_J0814.2-1013_daily_bin1233> in cluster <slac> Done

Job <4FGL_J0814.2-1013_daily_bin1233> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Aug 29 13:35:49 2021
Job was executed on host(s) <bullet0239>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 13:35:51 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:35:51 2021
Terminated at Sun Aug 29 13:45:30 2021
Results reported at Sun Aug 29 13:45:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0814.2-1013_daily_bin1233 123.551 -10.2172 558921601 559180801 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 :                                   519.20 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             362.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   579 sec.
    Turnaround time :                            581 sec.

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

