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


Performing analysis on: 4FGL_J0811.4+0146_daily_bin934
RA = 122.861, Dec = 1.7756
tmin = 481420801, tmax = 481680001
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='309639', job_status='RUN', time_executed='2021-08-29 12:21:20.723800', time_epoch_executed='1630264880.72' WHERE source_name='4FGL J0811.4+0146' and cadence='daily' and bin_id='934'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/309639

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/309639/ft1_4FGL_J0811.4+0146_daily_bin934.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/309639/ft2_4FGL_J0811.4+0146_daily_bin934.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/309639/ft1_4FGL_J0811.4+0146_daily_bin934.fits outfile=/scratch/kocevski/309639/ft1_filteredMKT_4FGL_J0811.4+0146_daily_bin934.fits ra=122.861 dec=1.7756 rad=12.0 tmin=481420801.0 tmax=481680001.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.88
user 3.52
sys 1.33

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/309639/ft2_4FGL_J0811.4+0146_daily_bin934.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/309639/ft2_4FGL_J0811.4+0146_daily_bin934.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/309639/ft1_filteredMKT_4FGL_J0811.4+0146_daily_bin934.fits evtable="EVENTS" outfile="/scratch/kocevski/309639/ft1_filtered_4FGL_J0811.4+0146_daily_bin934.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.79
user 0.34
sys 1.40

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/309639/ft1_filtered_4FGL_J0811.4+0146_daily_bin934.fits" evtable="EVENTS" scfile=/scratch/kocevski/309639/ft2_4FGL_J0811.4+0146_daily_bin934.fits sctable="SC_DATA" outfile=/scratch/kocevski/309639/ltcube_481420801_481680001_4FGL_J0811.4+0146_daily_bin934.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/309639/ft2_4FGL_J0811.4+0146_daily_bin934.fits
.....................!
real 13.25
user 11.43
sys 1.75

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/309639/ft1_filtered_4FGL_J0811.4+0146_daily_bin934.fits evtable="EVENTS" scfile=/scratch/kocevski/309639/ft2_4FGL_J0811.4+0146_daily_bin934.fits sctable="SC_DATA" expcube=/scratch/kocevski/309639/ltcube_481420801_481680001_4FGL_J0811.4+0146_daily_bin934.fits outfile=/scratch/kocevski/309639/expmap_481420801_481680001_4FGL_J0811.4+0146_daily_bin934.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/309639/ltcube_481420801_481680001_4FGL_J0811.4+0146_daily_bin934.fits
.....................!
real 191.48
user 185.24
sys 5.76

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 151 point sources and 0 extended sources

Setting source of interest to:
4FGL J0811.4+0146 @ 122.861 1.7756

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/309639/ft1_filtered_4FGL_J0811.4+0146_daily_bin934.fits scfile=/scratch/kocevski/309639/ft2_4FGL_J0811.4+0146_daily_bin934.fits outfile=/scratch/kocevski/309639/cmap_481420801_481680001_4FGL_J0811.4+0146_daily_bin934.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=122.861 yref=1.7756 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.93
user 0.36
sys 1.54

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/309639/ft1_filtered_4FGL_J0811.4+0146_daily_bin934.fits scfile=/scratch/kocevski/309639/ft2_4FGL_J0811.4+0146_daily_bin934.fits outfile=/scratch/kocevski/309639/cmap_HighResolution_481420801_481680001_4FGL_J0811.4+0146_daily_bin934.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=122.861 yref=1.7756 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.80
user 0.38
sys 1.38

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/309639/ft1_filtered_4FGL_J0811.4+0146_daily_bin934.fits evtable="EVENTS" scfile=/scratch/kocevski/309639/ft2_4FGL_J0811.4+0146_daily_bin934.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/309639/Model_4FGL_J0811.4+0146_daily_bin934.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/309639/ft1_filtered_4FGL_J0811.4+0146_daily_bin934.fits.....................!
real 92.37
user 89.39
sys 2.71

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/309639/ft1_filtered_4FGL_J0811.4+0146_daily_bin934.fits', '/scratch/kocevski/309639/ft2_4FGL_J0811.4+0146_daily_bin934.fits', expMap='/scratch/kocevski/309639/expmap_481420801_481680001_4FGL_J0811.4+0146_daily_bin934.fits', expCube='/scratch/kocevski/309639/ltcube_481420801_481680001_4FGL_J0811.4+0146_daily_bin934.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/309639/Model_4FGL_J0811.4+0146_daily_bin934.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0811.4+0146'

4FGL J0811.4+0146
   Spectrum: LogParabola
272         norm:  5.108e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
273        alpha:  2.005e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
274         beta:  6.882e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
275           Eb:  9.156e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/309639/ft1_filtered_4FGL_J0811.4+0146_daily_bin934.fits
Spacecraft file(s): /scratch/kocevski/309639/ft2_4FGL_J0811.4+0146_daily_bin934.fits
Exposure map: /scratch/kocevski/309639/expmap_481420801_481680001_4FGL_J0811.4+0146_daily_bin934.fits
Exposure cube: /scratch/kocevski/309639/ltcube_481420801_481680001_4FGL_J0811.4+0146_daily_bin934.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/309639/Model_4FGL_J0811.4+0146_daily_bin934.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) = 7275.94452457

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    97.821       1.0000         .10000E-03   10000.    
     4 'norm      '    3.2898       1.0000         .10000E-03   10000.    
     5 'Prefactor '    27.746       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.6955       1.0000         .10000E-03   10000.    
     8 'norm      '    5.1893       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10251E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.0089       1.0000         .10000E-03   10000.    
    12 'Prefactor '    47.401       1.0000         .10000E-03   10000.    
    13 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .77371       1.0000         .10000E-03   10000.    
    15 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .11784E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    10.543       1.0000         .10000E-03   10000.    
    18 'Prefactor '    14.029       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    13.845       1.0000         .10000E-03   10000.    
    21 'norm      '    .27389       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.4928       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .77222       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5000E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7275.938     FROM MIGRAD    STATUS=CONVERGED    560 CALLS     2742 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    26.658        .13164E-06** at limit **
   2  Prefactor     .10000E-03    4.1359        .63595E-07** at limit **
   3  Prefactor     97.824        44.805        .28770E-06    .19592E-04
   4  norm          3.2897        1.9507        .68154E-07   -.15673E-04
   5  Prefactor     27.746        25.192        .10130E-06   -.13656E-04
   6  norm          .10000E-03    8.9768        .47824E-07** at limit **
   7  Prefactor     9.6970        6.3546       -.10304E-06    .98372E-05
   8  norm          5.1934        11.257        .34604E-05   -.27122E-04
   9  Prefactor     .10000E-03    8.2480       -.45524E-06** at limit **
  10  Prefactor     .10000E-03    56.788       -.12852E-05** at limit **
  11  Prefactor     1.0091        4.2653        .18979E-05   -.20942E-04
  12  Prefactor     47.341        42.953       -.34651E-05   -.23546E-03
  13  norm          .10000E-03    3.0340       -.24744E-07** at limit **
  14  norm          .77339        2.1633        .83152E-06   -.97828E-04
  15  norm          .10000E-03    .54154        .42318E-07** at limit **
  16  norm          .10001E-03    80.839       -.57602E-05** at limit **
  17  norm          10.542        5.2926        .23797E-06    .57357E-04
  18  Prefactor     14.002        31.259       -.77672E-06   -.49360E-04
  19  norm          .10000E-03    6.6458        .24996E-07** at limit **
  20  Prefactor     13.847        14.722       -.68698E-07    .37943E-05
  21  norm          .27391        .91882        .77230E-06   -.75532E-04
  22  norm          .10000E-03    1.9132        .23283E-07** at limit **
  23  Normalizat    1.4927        .21867        .19684E-05   -.22856E-03
  24  Prefactor     .77225        .12776       -.21286E-05    .55739E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 97.8236
  norm       = 3.28972
  Prefactor  = 27.7456
  norm       = 0.0001
  Prefactor  = 9.69699
  norm       = 5.19342
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.00915
  Prefactor  = 47.3406
  norm       = 0.0001
  norm       = 0.773386
  norm       = 0.0001
  norm       = 0.000100006
  norm       = 10.5422
  Prefactor  = 14.0018
  norm       = 0.0001
  Prefactor  = 13.8473
  norm       = 0.27391
  norm       = 0.0001
  Normalizat = 1.49268
  Prefactor  = 0.772254
 **********
 **   18 **HESSE 
 **********

 FCN=   7275.938     FROM HESSE     STATUS=OK           397 CALLS     3139 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    26.687        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.1467        .16941E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     97.824        44.783        .40643E-04   -1.3727    
   4  norm          3.2897        1.9455        .87226E-04   -1.5345    
   5  Prefactor     27.746        25.208        .76056E-04   -1.4654    
   6  norm          .10000E-03    9.0038        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     9.6970        6.3653        .12870E-03   -1.5085    
   8  norm          5.1934        11.384        .88234E-03   -1.5252    
   9  Prefactor     .10000E-03    8.3034        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    56.876        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.0091        4.1339        .34348E-03   -1.5507    
  12  Prefactor     47.341        44.464        .58240E-04   -1.4331    
  13  norm          .10000E-03    3.0397        .14509E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .77339        2.1147        .19677E-03   -1.5532    
  15  norm          .10000E-03    .90011        .11928E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10001E-03    82.126        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          10.542        5.3071        .12339E-03   -1.5058    
  18  Prefactor     14.002        31.277        .10694E-03   -1.4959    
  19  norm          .10000E-03    6.6503        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     13.847        14.763        .10764E-03   -1.4964    
  21  norm          .27391        .92615        .14180E-03   -1.5603    
  22  norm          .10000E-03    1.9146        .11522E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.4927        .24677        .28394E-03   -.77984    
  24  Prefactor     .77225        .14281        .22963E-03   -1.0076    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.15298e-10
Minuit parameter uncertainties:
  1  1.88843e-05
  2  3.9843e-06
  3  44.7988
  4  1.94551
  5  25.2175
  6  6.68494e-06
  7  6.36575
  8  11.3888
  9  5.94527e-05
  10  0.000250435
  11  4.08525
  12  44.4948
  13  2.14226e-06
  14  2.11493
  15  7.86339e-06
  16  0.00143985
  17  5.30729
  18  31.3134
  19  2.80463e-07
  20  14.7668
  21  0.926202
  22  1.33957e-06
  23  0.246969
  24  0.142879
Done.

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

Extracting fit parameters...

4FGL J0811.4+0146
   Spectrum: LogParabola
272         norm:  1.054e+01  5.307e+00  1.000e-04  1.000e+04 ( 1.000e-12)
273        alpha:  2.005e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
274         beta:  6.882e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
275           Eb:  9.156e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
497    Prefactor:  7.723e-01  1.429e-01  0.000e+00  1.000e+01 ( 1.000e+00)
498        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
499        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
496   Normalization:  1.493e+00  2.470e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 12.12
Ra Dec: 122.861 1.776
Photon Index (Fixed Index): 2.01 +/- 0.00
Photon Flux (Fixed Index): 7.56e-08 +/- 3.81e-08
Energy Flux (Fixed Index): 4.48e-05 +/- 2.26e-05

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) = 7275.84507015
delta logL = 0.0927008262024

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7275.83824387
delta logL = 0.0995271068859

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.440       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1839       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4752       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77697       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5000E+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=   7275.838     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      249 TOTAL
                     EDM=   .39E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.440        5.0479        .61840E-03   -.95358E-04
   2  alpha         2.1839        .39618        .10915E-01    .60868E-05
   3  Normalizat    1.4752        .23329        .28520E-03   -.79723E-07
   4  Prefactor     .77698        .13935        .22894E-03    .49658E-07
                               ERR DEF=  .500    
Final values: 
  norm       = 10.4404
  alpha      = 2.18392
  Normalizat = 1.47517
  Prefactor  = 0.776981
 **********
 **   18 **HESSE 
 **********

 FCN=   7275.838     FROM HESSE     STATUS=OK            25 CALLS      274 TOTAL
                     EDM=   .24E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.440        5.0046        .24736E-04   -1.5062    
   2  alpha         2.1839        .39254        .43661E-03   -.12677    
   3  Normalizat    1.4752        .23344        .11408E-04   -.78478    
   4  Prefactor     .77698        .13943        .91577E-05   -1.0058    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.39692e-12
Minuit parameter uncertainties:
  1  5.00476
  2  0.394196
  3  0.233613
  4  0.139495
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/309639': 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) = 7275.83824386
delta logL = 0.0995271127867

Extracting fit parameters...

4FGL J0811.4+0146
   Spectrum: LogParabola
272         norm:  1.044e+01  5.005e+00  1.000e-04  1.000e+04 ( 1.000e-12)
273        alpha:  2.184e+00  3.942e-01  0.000e+00  5.000e+00 ( 1.000e+00)
274         beta:  6.882e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
275           Eb:  9.156e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
497    Prefactor:  7.770e-01  1.395e-01  0.000e+00  1.000e+01 ( 1.000e+00)
498        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
499        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
496   Normalization:  1.475e+00  2.336e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.31
Ra Dec: 122.861 1.776
Photon Index (Free Index): 2.18 +/- 0.39
Photon Flux (Free Index): 9.36e-08 +/- 5.87e-08
Energy Flux (Free Index): 4.11e-05 +/- 2.05e-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/309639/cmap_HighResolution_481420801_481680001_4FGL_J0811.4+0146_daily_bin934.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.56e-08', energy_flux2='4.11e-05', photon_flux_error='3.81e-08', dlogl='9.95e-02', energy_flux='4.48e-05', photon_flux2='9.36e-08', job_status='DONE', time_completed='2021-08-29 12:32:14.276601', photon_index_error2='0.39', photon_index2='2.18', ts='12.12', fit_tolerance='1e-08', GAL='0.77', photon_index_error='0.00', energy_flux_error2='2.05e-05', EG='1.49', time_epoch_completed='1630265534.28', return_code='0', job_id='309639', GAL2='0.78', EG2='1.48', return_code2='0', energy_flux_error='2.26e-05', photon_flux_error2='5.87e-08', ts2='12.31', photon_index='2.01' WHERE bin_id='934' AND source_name='4FGL J0811.4+0146' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 12:32:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0243>
Subject: Job 309639: <4FGL_J0811.4+0146_daily_bin934> in cluster <slac> Done

Job <4FGL_J0811.4+0146_daily_bin934> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Aug 29 12:20:41 2021
Job was executed on host(s) <bullet0243>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 12:20:42 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 29 12:20:42 2021
Terminated at Sun Aug 29 12:32:14 2021
Results reported at Sun Aug 29 12:32:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0811.4+0146_daily_bin934 122.861 1.7756 481420801 481680001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0811.4+0146 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   672.13 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             347.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   692 sec.
    Turnaround time :                            693 sec.

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

