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


Performing analysis on: 4FGL_J0814.2-1013_daily_bin365
RA = 123.551, Dec = -10.2172
tmin = 333936001, tmax = 334195201
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='329176', job_status='RUN', time_executed='2021-08-29 13:16:13.174565', time_epoch_executed='1630268173.17' WHERE source_name='4FGL J0814.2-1013' and cadence='daily' and bin_id='365'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/329176

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/329176/ft1_4FGL_J0814.2-1013_daily_bin365.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/329176/ft2_4FGL_J0814.2-1013_daily_bin365.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/329176/ft1_4FGL_J0814.2-1013_daily_bin365.fits outfile=/scratch/kocevski/329176/ft1_filteredMKT_4FGL_J0814.2-1013_daily_bin365.fits ra=123.551 dec=-10.2172 rad=12.0 tmin=333936001.0 tmax=334195201.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 4.30
user 3.31
sys 0.69

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/329176/ft1_filtered_4FGL_J0814.2-1013_daily_bin365.fits" evtable="EVENTS" scfile=/scratch/kocevski/329176/ft2_4FGL_J0814.2-1013_daily_bin365.fits sctable="SC_DATA" outfile=/scratch/kocevski/329176/ltcube_333936001_334195201_4FGL_J0814.2-1013_daily_bin365.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/329176/ft2_4FGL_J0814.2-1013_daily_bin365.fits
.....................!
real 12.46
user 11.52
sys 0.79

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/329176/ft1_filtered_4FGL_J0814.2-1013_daily_bin365.fits evtable="EVENTS" scfile=/scratch/kocevski/329176/ft2_4FGL_J0814.2-1013_daily_bin365.fits sctable="SC_DATA" expcube=/scratch/kocevski/329176/ltcube_333936001_334195201_4FGL_J0814.2-1013_daily_bin365.fits outfile=/scratch/kocevski/329176/expmap_333936001_334195201_4FGL_J0814.2-1013_daily_bin365.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/329176/ltcube_333936001_334195201_4FGL_J0814.2-1013_daily_bin365.fits
.....................!
real 190.38
user 185.01
sys 4.81

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/329176/ft1_filtered_4FGL_J0814.2-1013_daily_bin365.fits scfile=/scratch/kocevski/329176/ft2_4FGL_J0814.2-1013_daily_bin365.fits outfile=/scratch/kocevski/329176/cmap_333936001_334195201_4FGL_J0814.2-1013_daily_bin365.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.02
user 0.37
sys 0.61

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/329176/ft1_filtered_4FGL_J0814.2-1013_daily_bin365.fits scfile=/scratch/kocevski/329176/ft2_4FGL_J0814.2-1013_daily_bin365.fits outfile=/scratch/kocevski/329176/cmap_HighResolution_333936001_334195201_4FGL_J0814.2-1013_daily_bin365.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.01
user 0.37
sys 0.62

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/329176/ft1_filtered_4FGL_J0814.2-1013_daily_bin365.fits evtable="EVENTS" scfile=/scratch/kocevski/329176/ft2_4FGL_J0814.2-1013_daily_bin365.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/329176/Model_4FGL_J0814.2-1013_daily_bin365.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/329176/ft1_filtered_4FGL_J0814.2-1013_daily_bin365.fits.....................!
real 103.51
user 101.41
sys 1.80

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    24.536       1.0000         .10000E-03   10000.    
     4 'norm      '    17.199       1.0000         .10000E-03   10000.    
     5 'norm      '    .55164E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .16624E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    9.3501       1.0000         .10000E-03   10000.    
     9 'norm      '    1.2205       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .84990       1.0000         .10000E-03   10000.    
    12 'Prefactor '    13.238       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .12377E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    24.961       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    7.3942       1.0000         .10000E-03   10000.    
    18 'norm      '    3.0229       1.0000         .10000E-03   10000.    
    19 'Prefactor '    25.991       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0684       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .91219       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=   7832.974     FROM MIGRAD    STATUS=CONVERGED    452 CALLS     2230 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .47093        .90712E-02** at limit **
   2  Prefactor     .10000E-03    3.8015        .90712E-02** at limit **
   3  Prefactor     24.533        28.952        .20217E-02    .10256E-02
   4  norm          17.200        14.476        .24144E-02    .46957E-03
   5  norm          .10000E-03    6.1575        .10554    ** at limit **
   6  norm          .10004E-03    1.7978        .64764E-01** at limit **
   7  Prefactor     .10000E-03    3.1222        .90712E-02** at limit **
   8  norm          9.3492        12.129        .32766E-02   -.54793E-03
   9  norm          1.2205        1.8110        .10207E-01    .17258E-03
  10  Prefactor     .10001E-03    6.8180        .90712E-02** at limit **
  11  norm          .85009        .79814        .12625E-01    .78301E-04
  12  Prefactor     13.235        10.335        .27522E-02   -.85972E-03
  13  Prefactor     .10000E-03    2.6079        .49033E-01** at limit **
  14  norm          .10001E-03    8.3168        .90712E-02** at limit **
  15  norm          24.960        12.050        .20045E-02   -.11984E-02
  16  Prefactor     .10001E-03    11.258        .90712E-02** at limit **
  17  norm          7.3940        8.3150        .36874E-02   -.16518E-03
  18  norm          3.0228        2.7742        .58352E-02   -.65225E-04
  19  Prefactor     25.991        18.383        .19644E-02    .40152E-04
  20  Normalizat    1.0685        .20609        .85546E-01   -.44047E-04
  21  Prefactor     .91213        .78969E-01    .45160E-01   -.18009E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.5332
  norm       = 17.2005
  norm       = 0.0001
  norm       = 0.000100036
  Prefactor  = 0.0001
  norm       = 9.34921
  norm       = 1.22048
  Prefactor  = 0.00010001
  norm       = 0.850085
  Prefactor  = 13.2348
  Prefactor  = 0.000100004
  norm       = 0.000100013
  norm       = 24.9601
  Prefactor  = 0.000100013
  norm       = 7.39403
  norm       = 3.02277
  Prefactor  = 25.9909
  Normalizat = 1.06845
  Prefactor  = 0.912132
 **********
 **   18 **HESSE 
 **********

 FCN=   7832.974     FROM HESSE     STATUS=OK           317 CALLS     2547 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .48219        .11850E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.8023        .16853E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     24.533        28.951        .80869E-04   -1.4717    
   4  norm          17.200        14.479        .96574E-04   -1.4878    
   5  norm          .10000E-03    112.30        .41566E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10004E-03    10.224        .22855E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.1282        .15270E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          9.3492        12.146        .13106E-03   -1.5096    
   9  norm          1.2205        1.7689        .13975E-03   -1.5487    
  10  Prefactor     .10001E-03    6.8967        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .85009        .78089        .73037E-04   -1.5524    
  12  Prefactor     13.235        10.294        .11009E-03   -1.4980    
  13  Prefactor     .10000E-03    6.4871        .27731E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10001E-03    8.3216        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          24.960        12.066        .80179E-04   -1.4708    
  16  Prefactor     .10001E-03    11.269        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          7.3940        8.3036        .14749E-03   -1.5164    
  18  norm          3.0228        2.7742        .13523E-03   -1.5360    
  19  Prefactor     25.991        18.379        .78577E-04   -1.4688    
  20  Normalizat    1.0685        .22428        .37879E-03   -.90771    
  21  Prefactor     .91213        .84467E-01    .16112E-03   -.95718    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.44311e-08
Minuit parameter uncertainties:
  1  2.53349e-06
  2  1.72818e-06
  3  28.9676
  4  14.4823
  5  0.00043682
  6  0.00121915
  7  3.51827e-05
  8  12.1494
  9  1.76901
  10  0.000535317
  11  0.780902
  12  10.2953
  13  0.000335575
  14  0.000649769
  15  12.0674
  16  0.000772218
  17  8.30491
  18  2.7743
  19  18.383
  20  0.224475
  21  0.0844794
Done.

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

Extracting fit parameters...

4FGL J0814.2-1013
   Spectrum: PowerLaw
279    Prefactor:  1.323e+01  1.030e+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:  9.121e-01  8.448e-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.068e+00  2.245e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.63
Ra Dec: 123.551 -10.217
Photon Index (Fixed Index): 2.11 +/- 0.00
Photon Flux (Fixed Index): 5.43e-08 +/- 4.23e-08
Energy Flux (Fixed Index): 2.90e-05 +/- 2.26e-05

TS (Fixed Index): 3.63
Ra Dec: 123.551 -10.217
Photon Flux Upper Limit: 1.48e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.12e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/329176/likelihoodResults_333936001_334195201_4FGL_J0814.2-1013_daily_bin365.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) = 7832.74853433
delta logL = 0.224984168247

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7832.74432996
delta logL = 0.229188541189

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.6115       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6460       1.0000          .0000       10.000    
     3 'Normalizat'    1.0247       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91988       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=   7832.744     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      277 TOTAL
                     EDM=   .84E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.6241        94.239        .36339E-02    .93623E-03
   2  Index         2.6444        2.9400        .98994E-01    .37113E-03
   3  Normalizat    1.0249        .11747        .87072E-01   -.82504E-04
   4  Prefactor     .91977        .34560E-01    .45258E-01   -.52698E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.62407
  Index      = 2.64438
  Normalizat = 1.02494
  Prefactor  = 0.919771
 **********
 **   18 **HESSE 
 **********

 FCN=   7832.744     FROM HESSE     STATUS=OK            33 CALLS      310 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.6241        16.882        .14536E-03   -1.5156    
   2  Index         2.6444        1.2679        .54572E-02   -.49056    
   3  Normalizat    1.0249        .23307        .38556E-03   -.92199    
   4  Prefactor     .91977        .86400E-01    .16048E-03   -.95454    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.39339e-10
Minuit parameter uncertainties:
  1  16.8928
  2  1.28607
  3  0.233303
  4  0.0864133
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/329176': 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) = 7832.74432656
delta logL = 0.229191941247

Extracting fit parameters...

4FGL J0814.2-1013
   Spectrum: PowerLaw
279    Prefactor:  7.624e+00  1.689e+01  1.000e-04  1.000e+04 ( 1.000e-13)
280        Index:  2.644e+00  1.286e+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:  9.198e-01  8.641e-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.025e+00  2.333e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.15
Ra Dec: 123.551 -10.217
Photon Index (Free Index): 2.64 +/- 1.29
Photon Flux (Free Index): 9.90e-08 +/- 1.03e-07
Energy Flux (Free Index): 2.49e-05 +/- 1.74e-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/329176/cmap_HighResolution_333936001_334195201_4FGL_J0814.2-1013_daily_bin365.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.12e-02', comment='SUCCESS', photon_flux='5.43e-08', energy_flux2='2.49e-05', photon_flux_error='4.23e-08', dlogl='2.29e-01', energy_flux='2.90e-05', photon_flux2='9.90e-08', job_status='DONE', time_completed='2021-08-29 13:27:59.559774', photon_index_error2='1.29', photon_index2='2.64', ts='3.63', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', photon_flux_upper_limit='1.48e-07', energy_flux_error2='1.74e-05', EG='1.07', time_epoch_completed='1630268879.56', return_code='0', job_id='329176', GAL2='0.92', EG2='1.02', return_code2='0', energy_flux_error='2.26e-05', photon_flux_error2='1.03e-07', ts2='4.15', photon_index='2.11' WHERE bin_id='365' AND source_name='4FGL J0814.2-1013' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 13:27:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0236>
Subject: Job 329176: <4FGL_J0814.2-1013_daily_bin365> in cluster <slac> Done

Job <4FGL_J0814.2-1013_daily_bin365> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Aug 29 13:15:43 2021
Job was executed on host(s) <bullet0236>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 13:15: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:15:47 2021
Terminated at Sun Aug 29 13:28:00 2021
Results reported at Sun Aug 29 13:28:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0814.2-1013_daily_bin365 123.551 -10.2172 333936001 334195201 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 :                                   710.25 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             356.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   732 sec.
    Turnaround time :                            737 sec.

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

