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


Performing analysis on: 4FGL_J0814.2-1013_daily_bin949
RA = 123.551, Dec = -10.2172
tmin = 485308801, tmax = 485568001
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='333707', job_status='RUN', time_executed='2021-08-29 13:34:41.278525', time_epoch_executed='1630269281.28' WHERE source_name='4FGL J0814.2-1013' and cadence='daily' and bin_id='949'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/333707

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/333707/ft1_4FGL_J0814.2-1013_daily_bin949.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/333707/ft2_4FGL_J0814.2-1013_daily_bin949.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/333707/ft1_4FGL_J0814.2-1013_daily_bin949.fits outfile=/scratch/kocevski/333707/ft1_filteredMKT_4FGL_J0814.2-1013_daily_bin949.fits ra=123.551 dec=-10.2172 rad=12.0 tmin=485308801.0 tmax=485568001.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 6.50
user 5.33
sys 1.14

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/333707/ft1_filtered_4FGL_J0814.2-1013_daily_bin949.fits" evtable="EVENTS" scfile=/scratch/kocevski/333707/ft2_4FGL_J0814.2-1013_daily_bin949.fits sctable="SC_DATA" outfile=/scratch/kocevski/333707/ltcube_485308801_485568001_4FGL_J0814.2-1013_daily_bin949.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/333707/ft2_4FGL_J0814.2-1013_daily_bin949.fits
.....................!
real 12.85
user 11.46
sys 1.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/333707/ft1_filtered_4FGL_J0814.2-1013_daily_bin949.fits evtable="EVENTS" scfile=/scratch/kocevski/333707/ft2_4FGL_J0814.2-1013_daily_bin949.fits sctable="SC_DATA" expcube=/scratch/kocevski/333707/ltcube_485308801_485568001_4FGL_J0814.2-1013_daily_bin949.fits outfile=/scratch/kocevski/333707/expmap_485308801_485568001_4FGL_J0814.2-1013_daily_bin949.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/333707/ltcube_485308801_485568001_4FGL_J0814.2-1013_daily_bin949.fits
.....................!
real 193.03
user 186.36
sys 6.06

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/333707/ft1_filtered_4FGL_J0814.2-1013_daily_bin949.fits scfile=/scratch/kocevski/333707/ft2_4FGL_J0814.2-1013_daily_bin949.fits outfile=/scratch/kocevski/333707/cmap_485308801_485568001_4FGL_J0814.2-1013_daily_bin949.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.45
user 0.37
sys 1.02

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/333707/ft1_filtered_4FGL_J0814.2-1013_daily_bin949.fits scfile=/scratch/kocevski/333707/ft2_4FGL_J0814.2-1013_daily_bin949.fits outfile=/scratch/kocevski/333707/cmap_HighResolution_485308801_485568001_4FGL_J0814.2-1013_daily_bin949.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.52
user 0.38
sys 1.03

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/333707/ft1_filtered_4FGL_J0814.2-1013_daily_bin949.fits evtable="EVENTS" scfile=/scratch/kocevski/333707/ft2_4FGL_J0814.2-1013_daily_bin949.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/333707/Model_4FGL_J0814.2-1013_daily_bin949.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/333707/ft1_filtered_4FGL_J0814.2-1013_daily_bin949.fits.....................!
real 81.56
user 78.35
sys 2.39

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.4017       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11303E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    4.0326       1.0000         .10000E-03   10000.    
     6 'norm      '    2.5359       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10829E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    18.430       1.0000         .10000E-03   10000.    
    11 'norm      '    .13459E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    16.278       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.0895       1.0000         .10000E-03   10000.    
    14 'norm      '    20.801       1.0000         .10000E-03   10000.    
    15 'norm      '    7.1344       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10240E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    18.392       1.0000         .10000E-03   10000.    
    18 'norm      '    3.6404       1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.9851       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .91107       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .94863       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=   5812.145     FROM MIGRAD    STATUS=CONVERGED    805 CALLS     2315 TOTAL
                     EDM=   .72E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.4022        2.1975        .85175E-04   -.65002E-04
   2  Prefactor     .10000E-03    32.451        .18142E-02** at limit **
   3  Prefactor     .10000E-03    72.114        .18142E-02** at limit **
   4  norm          .10000E-03    15.984        .18142E-02** at limit **
   5  norm          4.0339        8.5853        .20081E-03   -.89452E-05
   6  norm          2.5356        4.5487        .20888E-03   -.55571E-04
   7  Prefactor     .10000E-03    7.9473        .18142E-02** at limit **
   8  norm          .10000E-03    5.7507        .17831E-02** at limit **
   9  norm          .10003E-03    3.2308        .34263E-01** at limit **
  10  Prefactor     18.429        13.490        .93294E-04   -.14233E-03
  11  norm          .10008E-03    10.700        .11479E-02** at limit **
  12  Prefactor     16.275        15.236        .99270E-04   -.15930E-03
  13  Prefactor     1.0904        4.8993        .32640E-03    .22501E-04
  14  norm          20.799        27.778        .87821E-04   -.54370E-04
  15  norm          7.1340        8.1226        .75090E-03   -.81393E-04
  16  Prefactor     .10000E-03    29.408        .18142E-02** at limit **
  17  norm          18.388        15.893        .93391E-04    .76082E-04
  18  norm          3.6396        3.5171        .13298E-03    .66427E-04
  19  Prefactor     5.9726        21.529        .16413E-03   -.76885E-05
  20  Normalizat    .91128        .25277        .40564E-03   -.61041E-04
  21  Prefactor     .94855        .10450        .16276E-03   -.24215E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.40216
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 4.03386
  norm       = 2.53556
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100032
  Prefactor  = 18.4285
  norm       = 0.000100083
  Prefactor  = 16.2752
  Prefactor  = 1.09037
  norm       = 20.7993
  norm       = 7.13401
  Prefactor  = 0.0001
  norm       = 18.3884
  norm       = 3.63962
  Prefactor  = 5.9726
  Normalizat = 0.911284
  Prefactor  = 0.948552
 **********
 **   18 **HESSE 
 **********

 FCN=   5812.145     FROM HESSE     STATUS=OK           305 CALLS     2620 TOTAL
                     EDM=   .75E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.4022        2.1975        .34070E-05   -1.5339    
   2  Prefactor     .10000E-03    32.460        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    72.146        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    15.986        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          4.0339        8.5850        .80323E-05   -1.5306    
   6  norm          2.5356        4.5483        .83550E-05   -1.5389    
   7  Prefactor     .10000E-03    7.9501        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    5.7512        .35662E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10003E-03    2.7619        .38435E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     18.429        13.487        .37318E-05   -1.4849    
  11  norm          .10008E-03    11.140        .45918E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     16.275        15.231        .39708E-05   -1.4901    
  13  Prefactor     1.0904        4.8972        .13056E-04   -1.5499    
  14  norm          20.799        27.769        .35128E-05   -1.4796    
  15  norm          7.1340        8.1222        .30036E-04   -1.5174    
  16  Prefactor     .10000E-03    29.409        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          18.388        15.888        .37357E-05   -1.4850    
  18  norm          3.6396        3.5169        .53192E-05   -1.5326    
  19  Prefactor     5.9726        21.524        .65652E-05   -1.5219    
  20  Normalizat    .91128        .25287        .16226E-04   -.96065    
  21  Prefactor     .94855        .10452        .32552E-04   -.94465    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.51461e-09
Minuit parameter uncertainties:
  1  2.19753
  2  7.95024e-05
  3  0.000247688
  4  2.2128e-05
  5  8.58759
  6  4.54888
  7  1.42657e-05
  8  8.95931e-06
  9  0.000598138
  10  13.4894
  11  0.00191819
  12  15.2346
  13  4.622
  14  27.7863
  15  8.12348
  16  5.60008e-05
  17  15.8921
  18  3.51705
  19  21.5517
  20  0.253201
  21  0.104539
Done.

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

Extracting fit parameters...

4FGL J0814.2-1013
   Spectrum: PowerLaw
279    Prefactor:  1.628e+01  1.523e+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.486e-01  1.045e-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:  9.113e-01  2.532e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.20
Ra Dec: 123.551 -10.217
Photon Index (Fixed Index): 2.11 +/- 0.00
Photon Flux (Fixed Index): 6.68e-08 +/- 6.25e-08
Energy Flux (Fixed Index): 3.57e-05 +/- 3.34e-05

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

Saving results to:
/scratch/kocevski/333707/likelihoodResults_485308801_485568001_4FGL_J0814.2-1013_daily_bin949.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) = 5812.02677151
delta logL = 0.117968034946

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5812.02043384
delta logL = 0.124305711317

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.265       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4257       1.0000          .0000       10.000    
     3 'Normalizat'    .89030       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95127       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=   5812.020     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      300 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.264        15.817        .11438E-03    .28943E-03
   2  Index         2.4256        .71135        .58328E-02    .84476E-04
   3  Normalizat    .89034        .24663        .40959E-03   -.13034E-03
   4  Prefactor     .95128        .99407E-01    .16249E-03   -.38851E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.2636
  Index      = 2.42555
  Normalizat = 0.890339
  Prefactor  = 0.951285
 **********
 **   18 **HESSE 
 **********

 FCN=   5812.020     FROM HESSE     STATUS=OK            25 CALLS      325 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.264        14.152        .45753E-05   -1.5007    
   2  Index         2.4256        .63616        .23331E-03   -.54088    
   3  Normalizat    .89034        .24616        .16384E-04   -.96800    
   4  Prefactor     .95128        .99353E-01    .32499E-04   -.94371    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.65138e-10
Minuit parameter uncertainties:
  1  14.1556
  2  0.638521
  3  0.246472
  4  0.0993718
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/333707': 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) = 5812.02043369
delta logL = 0.12430585761

Extracting fit parameters...

4FGL J0814.2-1013
   Spectrum: PowerLaw
279    Prefactor:  1.226e+01  1.416e+01  1.000e-04  1.000e+04 ( 1.000e-13)
280        Index:  2.426e+00  6.385e-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:  9.513e-01  9.937e-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.903e-01  2.465e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.49
Ra Dec: 123.551 -10.217
Photon Index (Free Index): 2.43 +/- 0.64
Photon Flux (Free Index): 9.74e-08 +/- 9.19e-08
Energy Flux (Free Index): 3.09e-05 +/- 2.52e-05

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/333707/cmap_HighResolution_485308801_485568001_4FGL_J0814.2-1013_daily_bin949.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.47e-02', comment='SUCCESS', photon_flux='6.68e-08', energy_flux2='3.09e-05', photon_flux_error='6.25e-08', dlogl='1.24e-01', energy_flux='3.57e-05', photon_flux2='9.74e-08', job_status='DONE', time_completed='2021-08-29 13:45:06.409180', photon_index_error2='0.64', photon_index2='2.43', ts='2.20', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='1.94e-07', energy_flux_error2='2.52e-05', EG='0.91', time_epoch_completed='1630269906.41', return_code='0', job_id='333707', GAL2='0.95', EG2='0.89', return_code2='0', energy_flux_error='3.34e-05', photon_flux_error2='9.19e-08', ts2='2.49', photon_index='2.11' WHERE bin_id='949' AND source_name='4FGL J0814.2-1013' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 13:45:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0032>
Subject: Job 333707: <4FGL_J0814.2-1013_daily_bin949> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0814.2-1013_daily_bin949 123.551 -10.2172 485308801 485568001 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 :                                   633.27 sec.
    Max Memory :                                 1240 MB
    Average Memory :                             302.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   866 sec.
    Turnaround time :                            869 sec.

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

