/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 60 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 = 7440
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0814.2-1013_daily_bin34
RA = 123.551, Dec = -10.2172
tmin = 248140801, tmax = 248400001
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='327480', job_status='RUN', time_executed='2021-08-29 13:12:11.240148', time_epoch_executed='1630267931.24' WHERE source_name='4FGL J0814.2-1013' and cadence='daily' and bin_id='34'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/327480

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/327480/ft1_4FGL_J0814.2-1013_daily_bin34.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/327480/ft2_4FGL_J0814.2-1013_daily_bin34.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/327480/ft1_4FGL_J0814.2-1013_daily_bin34.fits outfile=/scratch/kocevski/327480/ft1_filteredMKT_4FGL_J0814.2-1013_daily_bin34.fits ra=123.551 dec=-10.2172 rad=12.0 tmin=248140801.0 tmax=248400001.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 1.41
user 1.21
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/327480/ft1_filtered_4FGL_J0814.2-1013_daily_bin34.fits" evtable="EVENTS" scfile=/scratch/kocevski/327480/ft2_4FGL_J0814.2-1013_daily_bin34.fits sctable="SC_DATA" outfile=/scratch/kocevski/327480/ltcube_248140801_248400001_4FGL_J0814.2-1013_daily_bin34.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/327480/ft2_4FGL_J0814.2-1013_daily_bin34.fits
.....................!
real 16.21
user 15.80
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/327480/ft1_filtered_4FGL_J0814.2-1013_daily_bin34.fits evtable="EVENTS" scfile=/scratch/kocevski/327480/ft2_4FGL_J0814.2-1013_daily_bin34.fits sctable="SC_DATA" expcube=/scratch/kocevski/327480/ltcube_248140801_248400001_4FGL_J0814.2-1013_daily_bin34.fits outfile=/scratch/kocevski/327480/expmap_248140801_248400001_4FGL_J0814.2-1013_daily_bin34.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/327480/ltcube_248140801_248400001_4FGL_J0814.2-1013_daily_bin34.fits
.....................!
real 191.65
user 186.06
sys 4.80

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/327480/ft1_filtered_4FGL_J0814.2-1013_daily_bin34.fits scfile=/scratch/kocevski/327480/ft2_4FGL_J0814.2-1013_daily_bin34.fits outfile=/scratch/kocevski/327480/cmap_248140801_248400001_4FGL_J0814.2-1013_daily_bin34.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/327480/ft1_filtered_4FGL_J0814.2-1013_daily_bin34.fits scfile=/scratch/kocevski/327480/ft2_4FGL_J0814.2-1013_daily_bin34.fits outfile=/scratch/kocevski/327480/cmap_HighResolution_248140801_248400001_4FGL_J0814.2-1013_daily_bin34.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.61
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/327480/ft1_filtered_4FGL_J0814.2-1013_daily_bin34.fits evtable="EVENTS" scfile=/scratch/kocevski/327480/ft2_4FGL_J0814.2-1013_daily_bin34.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/327480/Model_4FGL_J0814.2-1013_daily_bin34.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/327480/ft1_filtered_4FGL_J0814.2-1013_daily_bin34.fits.....................!
real 156.08
user 154.32
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.7506       1.0000         .10000E-03   10000.    
     2 'Prefactor '    15.482       1.0000         .10000E-03   10000.    
     3 'Prefactor '    40.764       1.0000         .10000E-03   10000.    
     4 'norm      '    15.877       1.0000         .10000E-03   10000.    
     5 'norm      '    4.9063       1.0000         .10000E-03   10000.    
     6 'norm      '    1.4999       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.4757       1.0000         .10000E-03   10000.    
     8 'norm      '    16.632       1.0000         .10000E-03   10000.    
     9 'norm      '    .88391       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.0393       1.0000         .10000E-03   10000.    
    11 'norm      '    .94818       1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.4375       1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.3662       1.0000         .10000E-03   10000.    
    14 'norm      '    .10130E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    6.8023       1.0000         .10000E-03   10000.    
    16 'Prefactor '    28.404       1.0000         .10000E-03   10000.    
    17 'norm      '    9.4103       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .80115       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0603       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=   12524.96     FROM MIGRAD    STATUS=CONVERGED    419 CALLS     1884 TOTAL
                     EDM=   .19E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.7506        1.5171       -.10072E-07   -.26528E-04
   2  Prefactor     15.482        11.315       -.24034E-06   -.24616E-05
   3  Prefactor     40.764        25.694       -.73588E-06   -.14731E-05
   4  norm          15.877        11.577       -.98674E-07   -.62090E-06
   5  norm          4.9060        4.4384        .90479E-07   -.52147E-03
   6  norm          1.4999        2.0743        .57803E-08   -.65028E-04
   7  Prefactor     2.4751        5.0677       -.43382E-06   -.61514E-04
   8  norm          16.631        10.068       -.22600E-06    .47754E-05
   9  norm          .88481        1.1399       -.10109E-08    .99822E-04
  10  Prefactor     6.0390        7.0589       -.42001E-06   -.27980E-04
  11  norm          .94797        .72138       -.20665E-07   -.13034E-03
  12  Prefactor     9.4384        7.5144        .64717E-06    .15179E-04
  13  Prefactor     6.3662        3.9577       -.40308E-06   -.24040E-04
  14  norm          .10000E-03    14.562        .76555E-08** at limit **
  15  norm          6.8020        6.1724        .65613E-07   -.41504E-03
  16  Prefactor     28.404        20.861        .27777E-06    .45029E-05
  17  norm          9.4107        5.9517       -.10008E-05   -.25941E-04
  18  norm          .10000E-03    1.0041        .10464E-06** at limit **
  19  Prefactor     .10000E-03    6.1748        .52551E-07** at limit **
  20  Normalizat    .80116        .16743        .58635E-06    .16094E-05
  21  Prefactor     1.0603        .70190E-01    .42309E-07    .23547E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.75059
  Prefactor  = 15.4815
  Prefactor  = 40.7637
  norm       = 15.8772
  norm       = 4.90603
  norm       = 1.49989
  Prefactor  = 2.47506
  norm       = 16.6313
  norm       = 0.884808
  Prefactor  = 6.03897
  norm       = 0.947966
  Prefactor  = 9.43841
  Prefactor  = 6.36621
  norm       = 0.0001
  norm       = 6.80204
  Prefactor  = 28.4043
  norm       = 9.41068
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.80116
  Prefactor  = 1.06031
 **********
 **   18 **HESSE 
 **********

 FCN=   12524.96     FROM HESSE     STATUS=OK           331 CALLS     2215 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.7506        1.5279        .67085E-04   -1.5228    
   2  Prefactor     15.482        11.325        .10179E-03   -1.4921    
   3  Prefactor     40.764        25.699        .62783E-04   -1.4430    
   4  norm          15.877        11.588        .10052E-03   -1.4911    
   5  norm          4.9060        6.8811        .90794E-03   -1.5265    
   6  norm          1.4999        2.0550        .18349E-03   -1.5463    
   7  Prefactor     2.4751        5.0634        .25985E-03   -1.5393    
   8  norm          16.631        10.069        .98209E-04   -1.4892    
   9  norm          .88481        .92132        .13041E-02   -1.5520    
  10  Prefactor     6.0390        7.0325        .16338E-03   -1.5216    
  11  norm          .94797        .69997        .79037E-04   -1.5513    
  12  Prefactor     9.4384        7.4978        .13045E-03   -1.5093    
  13  Prefactor     6.3662        3.9519        .15908E-03   -1.5203    
  14  norm          .10000E-03    14.650        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          6.8020        7.6141        .76919E-03   -1.5186    
  16  Prefactor     28.404        20.931        .75172E-04   -1.4642    
  17  norm          9.4107        5.9585        .13064E-03   -1.5094    
  18  norm          .10000E-03    1.0239        .10956E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    6.1985        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .80116        .17854        .42451E-03   -1.0003    
  21  Prefactor     1.0603        .76517E-01    .16357E-03   -.90745    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.58976e-09
Minuit parameter uncertainties:
  1  1.52789
  2  11.3262
  3  25.7057
  4  11.5899
  5  6.88223
  6  2.05505
  7  5.06424
  8  10.0701
  9  0.921338
  10  7.03346
  11  0.699972
  12  7.49856
  13  3.9521
  14  2.821e-05
  15  7.61518
  16  20.9359
  17  5.95885
  18  1.78425e-06
  19  6.03155e-06
  20  0.178667
  21  0.0765246
Done.

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

Extracting fit parameters...

4FGL J0814.2-1013
   Spectrum: PowerLaw
279    Prefactor:  9.438e+00  7.499e+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

GAL_V02
   Spectrum: PowerLaw
543    Prefactor:  1.060e+00  7.652e-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:  8.012e-01  1.787e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.53
Ra Dec: 123.551 -10.217
Photon Index (Fixed Index): 2.11 +/- 0.00
Photon Flux (Fixed Index): 3.88e-08 +/- 3.08e-08
Energy Flux (Fixed Index): 2.07e-05 +/- 1.64e-05

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

Saving results to:
/scratch/kocevski/327480/likelihoodResults_248140801_248400001_4FGL_J0814.2-1013_daily_bin34.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 12524.8515907
delta logL = 0.10421514723

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 12524.845008
delta logL = 0.110797844571

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   12524.85     FROM MIGRAD    STATUS=CONVERGED    108 CALLS      310 TOTAL
                     EDM=   .25E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.9049        12.348        .76328E-03    .27410E-03
   2  Index         2.4492        1.0835        .73658E-02    .45362E-04
   3  Normalizat    .78315        .17292        .42876E-03    .20311E-04
   4  Prefactor     1.0634        .72837E-01    .16333E-03    .73503E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.90487
  Index      = 2.44924
  Normalizat = 0.783149
  Prefactor  = 1.06338
 **********
 **   18 **HESSE 
 **********

 FCN=   12524.85     FROM HESSE     STATUS=OK            27 CALLS      337 TOTAL
                     EDM=   .17E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.9049        8.3854        .15266E-03   -1.5182    
   2  Index         2.4492        .73869        .29463E-03   -.53536    
   3  Normalizat    .78315        .16890        .17150E-04   -1.0070    
   4  Prefactor     1.0634        .72290E-01    .65333E-05   -.90646    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.67848e-12
Minuit parameter uncertainties:
  1  8.38686
  2  0.742367
  3  0.169016
  4  0.0722963
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/327480': 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) = 12524.845007
delta logL = 0.110798830528

Extracting fit parameters...

4FGL J0814.2-1013
   Spectrum: PowerLaw
279    Prefactor:  6.905e+00  8.387e+00  1.000e-04  1.000e+04 ( 1.000e-13)
280        Index:  2.449e+00  7.424e-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.063e+00  7.230e-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.831e-01  1.690e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.77
Ra Dec: 123.551 -10.217
Photon Index (Free Index): 2.45 +/- 0.74
Photon Flux (Free Index): 5.78e-08 +/- 5.44e-08
Energy Flux (Free Index): 1.78e-05 +/- 1.31e-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/327480/cmap_HighResolution_248140801_248400001_4FGL_J0814.2-1013_daily_bin34.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.99e-03', comment='SUCCESS', photon_flux='3.88e-08', energy_flux2='1.78e-05', photon_flux_error='3.08e-08', dlogl='1.11e-01', energy_flux='2.07e-05', photon_flux2='5.78e-08', job_status='DONE', time_completed='2021-08-29 13:27:27.824493', photon_index_error2='0.74', photon_index2='2.45', ts='3.53', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', photon_flux_upper_limit='1.06e-07', energy_flux_error2='1.31e-05', EG='0.80', time_epoch_completed='1630268847.82', return_code='0', job_id='327480', GAL2='1.06', EG2='0.78', return_code2='0', energy_flux_error='1.64e-05', photon_flux_error2='5.44e-08', ts2='3.77', photon_index='2.11' WHERE bin_id='34' AND source_name='4FGL J0814.2-1013' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 13:27:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0223>
Subject: Job 327480: <4FGL_J0814.2-1013_daily_bin34> in cluster <slac> Done

Job <4FGL_J0814.2-1013_daily_bin34> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Aug 29 13:10:50 2021
Job was executed on host(s) <bullet0223>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 13:10:52 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:10:52 2021
Terminated at Sun Aug 29 13:27:29 2021
Results reported at Sun Aug 29 13:27:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0814.2-1013_daily_bin34 123.551 -10.2172 248140801 248400001 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 :                                   912.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             352.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   996 sec.
    Turnaround time :                            999 sec.

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

