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


Performing analysis on: 4FGL_J0811.4+0146_daily_bin537
RA = 122.861, Dec = 1.7756
tmin = 378518401, tmax = 378777601
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='307692', job_status='RUN', time_executed='2021-08-29 12:18:18.876574', time_epoch_executed='1630264698.88' WHERE source_name='4FGL J0811.4+0146' and cadence='daily' and bin_id='537'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/307692

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/307692/ft1_4FGL_J0811.4+0146_daily_bin537.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/307692/ft2_4FGL_J0811.4+0146_daily_bin537.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/307692/ft1_4FGL_J0811.4+0146_daily_bin537.fits outfile=/scratch/kocevski/307692/ft1_filteredMKT_4FGL_J0811.4+0146_daily_bin537.fits ra=122.861 dec=1.7756 rad=12.0 tmin=378518401.0 tmax=378777601.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 3.45
user 3.19
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/307692/ft1_filtered_4FGL_J0811.4+0146_daily_bin537.fits" evtable="EVENTS" scfile=/scratch/kocevski/307692/ft2_4FGL_J0811.4+0146_daily_bin537.fits sctable="SC_DATA" outfile=/scratch/kocevski/307692/ltcube_378518401_378777601_4FGL_J0811.4+0146_daily_bin537.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/307692/ft2_4FGL_J0811.4+0146_daily_bin537.fits
.....................!
real 11.79
user 11.44
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/307692/ft1_filtered_4FGL_J0811.4+0146_daily_bin537.fits evtable="EVENTS" scfile=/scratch/kocevski/307692/ft2_4FGL_J0811.4+0146_daily_bin537.fits sctable="SC_DATA" expcube=/scratch/kocevski/307692/ltcube_378518401_378777601_4FGL_J0811.4+0146_daily_bin537.fits outfile=/scratch/kocevski/307692/expmap_378518401_378777601_4FGL_J0811.4+0146_daily_bin537.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/307692/ltcube_378518401_378777601_4FGL_J0811.4+0146_daily_bin537.fits
.....................!
real 189.64
user 185.11
sys 4.07

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/307692/ft1_filtered_4FGL_J0811.4+0146_daily_bin537.fits scfile=/scratch/kocevski/307692/ft2_4FGL_J0811.4+0146_daily_bin537.fits outfile=/scratch/kocevski/307692/cmap_378518401_378777601_4FGL_J0811.4+0146_daily_bin537.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 0.54
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/307692/ft1_filtered_4FGL_J0811.4+0146_daily_bin537.fits scfile=/scratch/kocevski/307692/ft2_4FGL_J0811.4+0146_daily_bin537.fits outfile=/scratch/kocevski/307692/cmap_HighResolution_378518401_378777601_4FGL_J0811.4+0146_daily_bin537.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 0.56
user 0.37
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/307692/ft1_filtered_4FGL_J0811.4+0146_daily_bin537.fits', '/scratch/kocevski/307692/ft2_4FGL_J0811.4+0146_daily_bin537.fits', expMap='/scratch/kocevski/307692/expmap_378518401_378777601_4FGL_J0811.4+0146_daily_bin537.fits', expCube='/scratch/kocevski/307692/ltcube_378518401_378777601_4FGL_J0811.4+0146_daily_bin537.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/307692/Model_4FGL_J0811.4+0146_daily_bin537.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/307692/ft1_filtered_4FGL_J0811.4+0146_daily_bin537.fits
Spacecraft file(s): /scratch/kocevski/307692/ft2_4FGL_J0811.4+0146_daily_bin537.fits
Exposure map: /scratch/kocevski/307692/expmap_378518401_378777601_4FGL_J0811.4+0146_daily_bin537.fits
Exposure cube: /scratch/kocevski/307692/ltcube_378518401_378777601_4FGL_J0811.4+0146_daily_bin537.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/307692/Model_4FGL_J0811.4+0146_daily_bin537.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) = 5805.14005338

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .20746E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .34215E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    99.657       1.0000         .10000E-03   10000.    
     4 'norm      '    1.3191       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.4292       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10037E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10050E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10293E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.4452       1.0000         .10000E-03   10000.    
    22 'norm      '    6.2239       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.5242       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .74933       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.

 FCN=   5805.130     FROM MIGRAD    STATUS=CONVERGED    695 CALLS     2940 TOTAL
                     EDM=   .78E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.5879        364.08         .0000        .19048E-04
   2  Prefactor     .10000E-03    6.2687         .0000    ** at limit **
   3  Prefactor     99.484        52.150         .0000        .84015E-05
   4  norm          1.3173        1.6538         .0000        .57501E-03
   5  Prefactor     .10000E-03    24.538         .0000    ** at limit **
   6  norm          .10000E-03    19.258         .0000    ** at limit **
   7  Prefactor     .10000E-03    3.3160         .0000    ** at limit **
   8  norm          .10000E-03    6.6040         .0000    ** at limit **
   9  Prefactor     .10000E-03    5.4930         .0000    ** at limit **
  10  Prefactor     .10000E-03    60.006         .0000    ** at limit **
  11  Prefactor     2.4508        9.9941         .0000        .62707E-02
  12  Prefactor     .10000E-03    44.457         .0000    ** at limit **
  13  norm          .10000E-03    8.0122         .0000    ** at limit **
  14  norm          .10000E-03    1.3512         .0000    ** at limit **
  15  norm          .10000E-03    .36263         .0000    ** at limit **
  16  norm          .10000E-03    10.134         .0000    ** at limit **
  17  norm          .10000E-03    1.2950         .0000    ** at limit **
  18  Prefactor     .10000E-03    59.821         .0000    ** at limit **
  19  norm          .10000E-03    23.025         .0000    ** at limit **
  20  Prefactor     .10000E-03    5.7522         .0000    ** at limit **
  21  norm          1.4455        1.1699         .0000        .47692E-03
  22  norm          6.2333        8.3095         .0000        .13399E-03
  23  Normalizat    1.5256        .20519         .0000        .13805E-03
  24  Prefactor     .74777        .13123         .0000        .27417E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.58791
  Prefactor  = 0.0001
  Prefactor  = 99.4837
  norm       = 1.31726
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 2.45084
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.44553
  norm       = 6.23332
  Normalizat = 1.52556
  Prefactor  = 0.747767
 **********
 **   18 **HESSE 
 **********

 FCN=   5805.130     FROM HESSE     STATUS=OK           397 CALLS     3337 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.5879        369.27        .40391E-03   -1.5386    
   2  Prefactor     .10000E-03    9.1091        .66315E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     99.484        52.011        .40270E-04   -1.3710    
   4  norm          1.3173        1.6248        .10414E-03   -1.5478    
   5  Prefactor     .10000E-03    24.608        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    19.676        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.3711        .13543E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    6.6082        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.5051        .17439E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    60.009        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.4508        9.7509        .13128E-02   -1.5395    
  12  Prefactor     .10000E-03    44.722        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    8.0667        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    2.2995        .16940E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .49434        .89090E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    10.169        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.3005        .84667E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    60.133        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    23.370        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    5.7599        .17846E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.4455        1.1595        .70479E-04   -1.5468    
  22  norm          6.2333        8.3005        .16091E-03   -1.5209    
  23  Normalizat    1.5256        .23297        .26049E-03   -.77063    
  24  Prefactor     .74777        .14845        .22049E-03   -1.0168    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.23135e-10
Minuit parameter uncertainties:
  1  62.2207
  2  8.81284e-05
  3  52.0348
  4  1.62487
  5  0.000129421
  6  5.74721e-05
  7  2.21932e-06
  8  9.1114e-07
  9  3.28947e-06
  10  0.00046354
  11  9.75722
  12  0.000255693
  13  6.8367e-05
  14  3.39124e-07
  15  2.4314e-07
  16  3.77929e-05
  17  4.28139e-07
  18  0.000510064
  19  5.81812e-05
  20  2.53296e-05
  21  1.15952
  22  8.30206
  23  0.233138
  24  0.14853
Done.

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

Extracting fit parameters...

4FGL J0811.4+0146
   Spectrum: LogParabola
272         norm:  1.000e-04  4.281e-07  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.478e-01  1.485e-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.526e+00  2.331e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 122.861 1.776
Photon Flux Upper Limit: 4.74e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.81e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/307692/likelihoodResults_378518401_378777601_4FGL_J0811.4+0146_daily_bin537.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) = 5805.13315983
delta logL = -0.00353681458728

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5805.129623
delta logL = 1.88765625353e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9997       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5256       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74777       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5805.130     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      230 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.1972        .84783E-03** at limit **
   2  alpha         1.8018        4.0540        .16898       -.25660E-06
   3  Normalizat    1.5256        .22566        .26049E-03    .46865E-04
   4  Prefactor     .74777        .14022        .22049E-03    .65945E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.80182
  Normalizat = 1.52556
  Prefactor  = 0.747766
 **********
 **   18 **HESSE 
 **********

 FCN=   5805.130     FROM HESSE     STATUS=OK            27 CALLS      257 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.3373        .16957E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.8018        3.2079        .67591E-01   -.28304    
   3  Normalizat    1.5256        .22581        .52098E-04   -.77063    
   4  Prefactor     .74777        .14031        .88198E-05   -1.0168    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.30512e-10
Minuit parameter uncertainties:
  1  6.33802e-06
  2  140.19
  3  0.225958
  4  0.14038
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/307692': 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) = 5805.12962206
delta logL = 9.5405994216e-07

Extracting fit parameters...

4FGL J0811.4+0146
   Spectrum: LogParabola
272         norm:  1.000e-04  6.338e-06  1.000e-04  1.000e+04 ( 1.000e-12)
273        alpha:  1.802e+00  1.402e+02  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.478e-01  1.404e-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.526e+00  2.260e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 122.861 1.776

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/307692/cmap_HighResolution_378518401_378777601_4FGL_J0811.4+0146_daily_bin537.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.81e-05', job_status='DONE', photon_flux_upper_limit='4.74e-08', time_completed='2021-08-29 12:28:54.536572', job_id='307692', GAL2='0.75', fit_tolerance='1e-08', EG2='1.53', EG='1.53', time_epoch_completed='1630265334.54', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.75', dlogl='9.54e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.01' WHERE bin_id='537' AND source_name='4FGL J0811.4+0146' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 12:28:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0201>
Subject: Job 307692: <4FGL_J0811.4+0146_daily_bin537> in cluster <slac> Done

Job <4FGL_J0811.4+0146_daily_bin537> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Sun Aug 29 12:15:22 2021
Job was executed on host(s) <bullet0201>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 12:15:24 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:15:24 2021
Terminated at Sun Aug 29 12:28:56 2021
Results reported at Sun Aug 29 12:28:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0811.4+0146_daily_bin537 122.861 1.7756 378518401 378777601 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 :                                   634.26 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             241.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   810 sec.
    Turnaround time :                            814 sec.

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

