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


Performing analysis on: 4FGL_J0811.4+0146_daily_bin132
RA = 122.861, Dec = 1.7756
tmin = 273542401, tmax = 273801601
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='303061', job_status='RUN', time_executed='2021-08-29 12:03:21.084456', time_epoch_executed='1630263801.08' WHERE source_name='4FGL J0811.4+0146' and cadence='daily' and bin_id='132'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/303061

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/303061/ft1_4FGL_J0811.4+0146_daily_bin132.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/303061/ft2_4FGL_J0811.4+0146_daily_bin132.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/303061/ft1_4FGL_J0811.4+0146_daily_bin132.fits outfile=/scratch/kocevski/303061/ft1_filteredMKT_4FGL_J0811.4+0146_daily_bin132.fits ra=122.861 dec=1.7756 rad=12.0 tmin=273542401.0 tmax=273801601.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.69
user 3.32
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/303061/ft2_4FGL_J0811.4+0146_daily_bin132.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/303061/ft1_filteredMKT_4FGL_J0811.4+0146_daily_bin132.fits evtable="EVENTS" outfile="/scratch/kocevski/303061/ft1_filtered_4FGL_J0811.4+0146_daily_bin132.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.56
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/303061/ft1_filtered_4FGL_J0811.4+0146_daily_bin132.fits" evtable="EVENTS" scfile=/scratch/kocevski/303061/ft2_4FGL_J0811.4+0146_daily_bin132.fits sctable="SC_DATA" outfile=/scratch/kocevski/303061/ltcube_273542401_273801601_4FGL_J0811.4+0146_daily_bin132.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/303061/ft2_4FGL_J0811.4+0146_daily_bin132.fits
.....................!
real 12.26
user 11.85
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/303061/ft1_filtered_4FGL_J0811.4+0146_daily_bin132.fits evtable="EVENTS" scfile=/scratch/kocevski/303061/ft2_4FGL_J0811.4+0146_daily_bin132.fits sctable="SC_DATA" expcube=/scratch/kocevski/303061/ltcube_273542401_273801601_4FGL_J0811.4+0146_daily_bin132.fits outfile=/scratch/kocevski/303061/expmap_273542401_273801601_4FGL_J0811.4+0146_daily_bin132.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/303061/ltcube_273542401_273801601_4FGL_J0811.4+0146_daily_bin132.fits
.....................!
real 190.37
user 185.26
sys 4.57

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/303061/ft1_filtered_4FGL_J0811.4+0146_daily_bin132.fits scfile=/scratch/kocevski/303061/ft2_4FGL_J0811.4+0146_daily_bin132.fits outfile=/scratch/kocevski/303061/cmap_273542401_273801601_4FGL_J0811.4+0146_daily_bin132.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.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/303061/ft1_filtered_4FGL_J0811.4+0146_daily_bin132.fits scfile=/scratch/kocevski/303061/ft2_4FGL_J0811.4+0146_daily_bin132.fits outfile=/scratch/kocevski/303061/cmap_HighResolution_273542401_273801601_4FGL_J0811.4+0146_daily_bin132.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.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.5495       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.2219       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .19331E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.1134       1.0000         .10000E-03   10000.    
     8 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.3691       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.0857       1.0000         .10000E-03   10000.    
    12 'Prefactor '    28.012       1.0000         .10000E-03   10000.    
    13 'norm      '    .10203E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    4.3687       1.0000         .10000E-03   10000.    
    16 'norm      '    .10071E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.8384       1.0000         .10000E-03   10000.    
    18 'Prefactor '    14.498       1.0000         .10000E-03   10000.    
    19 'norm      '    14.220       1.0000         .10000E-03   10000.    
    20 'Prefactor '    12.786       1.0000         .10000E-03   10000.    
    21 'norm      '    2.3591       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .91582       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0843       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=   5826.924     FROM MIGRAD    STATUS=CONVERGED    545 CALLS     2715 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    52.632        .48289E-06** at limit **
   2  Prefactor     6.5489        11.882        .23476E-06    .27816E-05
   3  Prefactor     .10000E-03    17.569        .72772E-07** at limit **
   4  norm          1.2218        1.8497        .16266E-06    .50828E-04
   5  Prefactor     .10000E-03    83.222       -.20308E-05** at limit **
   6  norm          .10000E-03    6.8965       -.26674E-08** at limit **
   7  Prefactor     4.1138        5.7797       -.79653E-06   -.14459E-03
   8  norm          .10000E-03    9.5699        .24949E-06** at limit **
   9  Prefactor     2.3718        11.993        .66123E-05   -.15953E-03
  10  Prefactor     .10000E-03    93.369        .15713E-05** at limit **
  11  Prefactor     9.0854        6.8250       -.32386E-06   -.16718E-03
  12  Prefactor     28.015        25.569       -.55111E-06   -.36096E-04
  13  norm          .10000E-03    6.1130        .34662E-06** at limit **
  14  norm          .10000E-03    1.4376        .31575E-07** at limit **
  15  norm          4.3687        1.6441        .38970E-07    .53509E-05
  16  norm          .10000E-03    5.8905       -.25817E-06** at limit **
  17  norm          1.8388        3.6650        .10980E-06   -.68410E-04
  18  Prefactor     14.463        35.866        .56042E-05    .13218E-03
  19  norm          14.220        25.809        .20185E-06    .16213E-05
  20  Prefactor     12.790        19.323       -.74393E-06   -.39165E-04
  21  norm          2.3594        1.2522       -.18457E-07   -.15878E-03
  22  norm          .10000E-03    1.8762        .68795E-10** at limit **
  23  Normalizat    .91573        .22980        .13939E-06    .29639E-04
  24  Prefactor     1.0844        .14323       -.61791E-06   -.74724E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 6.54891
  Prefactor  = 0.0001
  norm       = 1.22176
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.11377
  norm       = 0.0001
  Prefactor  = 2.37179
  Prefactor  = 0.0001
  Prefactor  = 9.08543
  Prefactor  = 28.0152
  norm       = 0.0001
  norm       = 0.0001
  norm       = 4.36868
  norm       = 0.0001
  norm       = 1.8388
  Prefactor  = 14.4629
  norm       = 14.2202
  Prefactor  = 12.79
  norm       = 2.35943
  norm       = 0.0001
  Normalizat = 0.915734
  Prefactor  = 1.08435
 **********
 **   18 **HESSE 
 **********

 FCN=   5826.924     FROM HESSE     STATUS=OK           399 CALLS     3114 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    52.723        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.5489        11.894        .15681E-03   -1.5196    
   3  Prefactor     .10000E-03    17.592        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.2218        1.8153        .12039E-03   -1.5487    
   5  Prefactor     .10000E-03    85.453        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    6.9013        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.1138        5.7978        .19876E-03   -1.5302    
   8  norm          .10000E-03    9.5961        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.3718        12.278        .13310E-02   -1.5400    
  10  Prefactor     .10000E-03    93.426        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     9.0854        6.8142        .13297E-03   -1.5105    
  12  Prefactor     28.015        25.635        .75695E-04   -1.4649    
  13  norm          .10000E-03    27.019        .36135E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    1.4627        .89267E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.3687        1.6431        .57113E-04   -1.5290    
  16  norm          .10000E-03    5.8989        .18103E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.8388        3.6386        .19855E-03   -1.5437    
  18  Prefactor     14.463        36.287        .10519E-03   -1.4947    
  19  norm          14.220        25.834        .10622E-03   -1.4954    
  20  Prefactor     12.790        19.437        .11202E-03   -1.4993    
  21  norm          2.3594        1.2525        .59176E-04   -1.5401    
  22  norm          .10000E-03    1.8774        .10211E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .91573        .26346        .32453E-03   -.95909    
  24  Prefactor     1.0844        .16453        .19753E-03   -.89968    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.73107e-10
Minuit parameter uncertainties:
  1  6.89221e-05
  2  11.898
  3  7.73974e-06
  4  1.81541
  5  0.000152472
  6  5.84754e-07
  7  5.79856
  8  2.02922e-05
  9  10.7959
  10  0.000334666
  11  6.81475
  12  25.6454
  13  9.3701e-05
  14  2.30368e-06
  15  1.64316
  16  3.0988e-05
  17  3.63901
  18  36.3427
  19  25.8548
  20  19.4467
  21  1.25253
  22  2.84903e-07
  23  0.263828
  24  0.16461
Done.

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

Extracting fit parameters...

4FGL J0811.4+0146
   Spectrum: LogParabola
272         norm:  1.839e+00  3.639e+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:  1.084e+00  1.646e-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:  9.157e-01  2.638e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/303061/likelihoodResults_273542401_273801601_4FGL_J0811.4+0146_daily_bin132.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) = 5826.92198471
delta logL = 0.00237525479588

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5826.92196331
delta logL = 0.00239665368463

Fit tolerance = 1e-08

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

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

 FCN=   5826.922     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      188 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.7989        4.2350        .76915E-02    .67691E-03
   2  alpha         2.0804        1.1969        .41917E-01    .15382E-03
   3  Normalizat    .91470        .20952        .73375E-01    .17851E-04
   4  Prefactor     1.0847        .13811        .38199E-01    .71146E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 1.79889
  alpha      = 2.08041
  Normalizat = 0.914696
  Prefactor  = 1.08472
 **********
 **   18 **HESSE 
 **********

 FCN=   5826.922     FROM HESSE     STATUS=OK            31 CALLS      219 TOTAL
                     EDM=   .96E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.7989        3.6492        .19471E-03   -1.5440    
   2  alpha         2.0804        1.0512        .83833E-02   -.16863    
   3  Normalizat    .91470        .23650        .32469E-03   -.95946    
   4  Prefactor     1.0847        .15610        .19751E-03   -.89956    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.55666e-14
Minuit parameter uncertainties:
  1  3.64967
  2  1.08599
  3  0.236773
  4  0.156166
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/303061': 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) = 5826.92190321
delta logL = 0.00245674522193

Extracting fit parameters...

4FGL J0811.4+0146
   Spectrum: LogParabola
272         norm:  1.799e+00  3.650e+00  1.000e-04  1.000e+04 ( 1.000e-12)
273        alpha:  2.080e+00  1.086e+00  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:  1.085e+00  1.562e-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:  9.147e-01  2.368e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.31
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/303061/cmap_HighResolution_273542401_273801601_4FGL_J0811.4+0146_daily_bin132.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.86e-05', job_status='DONE', photon_flux_upper_limit='8.20e-08', time_completed='2021-08-29 12:13:35.141118', job_id='303061', GAL2='1.08', fit_tolerance='1e-08', EG2='0.91', EG='0.92', time_epoch_completed='1630264415.14', return_code2='0', ts='0.31', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='2.46e-03', ts2='0.32', photon_index_error='0.00', photon_index='2.01' WHERE bin_id='132' AND source_name='4FGL J0811.4+0146' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 12:13:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0049>
Subject: Job 303061: <4FGL_J0811.4+0146_daily_bin132> in cluster <slac> Done

Job <4FGL_J0811.4+0146_daily_bin132> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun Aug 29 12:00:32 2021
Job was executed on host(s) <bullet0049>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 12:00:34 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:00:34 2021
Terminated at Sun Aug 29 12:13:36 2021
Results reported at Sun Aug 29 12:13:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0811.4+0146_daily_bin132 122.861 1.7756 273542401 273801601 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 :                                   613.30 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             301.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   781 sec.
    Turnaround time :                            784 sec.

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

