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


Performing analysis on: 4FGL_J0811.4+0146_daily_bin433
RA = 122.861, Dec = 1.7756
tmin = 351561601, tmax = 351820801
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='306262', job_status='RUN', time_executed='2021-08-29 12:13:12.809880', time_epoch_executed='1630264392.81' WHERE source_name='4FGL J0811.4+0146' and cadence='daily' and bin_id='433'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/306262

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

Retrieving the FT1 file...

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

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

Retrieving 52 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/306262/ft1_4FGL_J0811.4+0146_daily_bin433.fits


Retrieving the FT1 file...

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

Retrieving 52 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/306262/ft2_4FGL_J0811.4+0146_daily_bin433.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/306262/ft1_4FGL_J0811.4+0146_daily_bin433.fits outfile=/scratch/kocevski/306262/ft1_filteredMKT_4FGL_J0811.4+0146_daily_bin433.fits ra=122.861 dec=1.7756 rad=12.0 tmin=351561601.0 tmax=351820801.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.90
user 6.57
sys 0.29

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/306262/ft2_4FGL_J0811.4+0146_daily_bin433.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/306262/ft1_filteredMKT_4FGL_J0811.4+0146_daily_bin433.fits evtable="EVENTS" outfile="/scratch/kocevski/306262/ft1_filtered_4FGL_J0811.4+0146_daily_bin433.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.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/306262/ft1_filtered_4FGL_J0811.4+0146_daily_bin433.fits" evtable="EVENTS" scfile=/scratch/kocevski/306262/ft2_4FGL_J0811.4+0146_daily_bin433.fits sctable="SC_DATA" outfile=/scratch/kocevski/306262/ltcube_351561601_351820801_4FGL_J0811.4+0146_daily_bin433.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/306262/ft2_4FGL_J0811.4+0146_daily_bin433.fits
.....................!
real 11.17
user 10.85
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/306262/ft1_filtered_4FGL_J0811.4+0146_daily_bin433.fits evtable="EVENTS" scfile=/scratch/kocevski/306262/ft2_4FGL_J0811.4+0146_daily_bin433.fits sctable="SC_DATA" expcube=/scratch/kocevski/306262/ltcube_351561601_351820801_4FGL_J0811.4+0146_daily_bin433.fits outfile=/scratch/kocevski/306262/expmap_351561601_351820801_4FGL_J0811.4+0146_daily_bin433.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/306262/ltcube_351561601_351820801_4FGL_J0811.4+0146_daily_bin433.fits
.....................!
real 190.53
user 185.40
sys 4.79

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/306262/ft1_filtered_4FGL_J0811.4+0146_daily_bin433.fits scfile=/scratch/kocevski/306262/ft2_4FGL_J0811.4+0146_daily_bin433.fits outfile=/scratch/kocevski/306262/cmap_351561601_351820801_4FGL_J0811.4+0146_daily_bin433.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.73
user 0.38
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    9.8386       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.5106       1.0000         .10000E-03   10000.    
     4 'norm      '    1.5477       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    31.827       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    16.999       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10201E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .22761E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    20.333       1.0000         .10000E-03   10000.    
    13 'norm      '    2.1859       1.0000         .10000E-03   10000.    
    14 'norm      '    2.2598       1.0000         .10000E-03   10000.    
    15 'norm      '    2.2862       1.0000         .10000E-03   10000.    
    16 'norm      '    .53391E-01   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    20.267       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.0428       1.0000         .10000E-03   10000.    
    21 'norm      '    .79795       1.0000         .10000E-03   10000.    
    22 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .80949       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0047       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=   4626.570     FROM MIGRAD    STATUS=CONVERGED    953 CALLS     3167 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.949        .18142E-02** at limit **
   2  Prefactor     9.8387        9.3216        .12775E-03   -.19578E-05
   3  Prefactor     3.5095        26.820        .21577E-03   -.26344E-05
   4  norm          1.5477        1.7079        .90093E-04   -.40380E-05
   5  Prefactor     .10000E-03    8.2107        .18142E-02** at limit **
   6  norm          31.829        23.928        .71024E-04    .11205E-05
   7  Prefactor     .10000E-03    1.5448        .82381E-03** at limit **
   8  norm          16.997        21.947        .97142E-04   -.16619E-04
   9  Prefactor     .10000E-03    6.1261        .16426E-02** at limit **
  10  Prefactor     .10000E-03    77.755        .18142E-02** at limit **
  11  Prefactor     .10001E-03    97.500        .39032E-02** at limit **
  12  Prefactor     20.331        22.715        .88825E-04   -.10434E-03
  13  norm          2.1932        14.235        .27840E-03    .57578E-05
  14  norm          2.2607        2.2806        .98764E-04    .20950E-04
  15  norm          2.2864        1.6467        .69917E-04    .24390E-05
  16  norm          .54325E-01    18.286        .83811E-01   -.11994E-03
  17  norm          .10000E-03    2.6155        .21204E-03** at limit **
  18  Prefactor     20.259        38.905        .88969E-04   -.10974E-03
  19  norm          .10000E-03    10.351        .18142E-02** at limit **
  20  Prefactor     7.0410        11.646        .15116E-03   -.17298E-04
  21  norm          .79769        1.1385        .24864E-03   -.27790E-03
  22  norm          .10000E-03    6.5504        .16930E-02** at limit **
  23  Normalizat    .80968        .24177        .30253E-03   -.92106E-04
  24  Prefactor     1.0046        .16005        .18535E-03   -.11509E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 9.83865
  Prefactor  = 3.50954
  norm       = 1.5477
  Prefactor  = 0.0001
  norm       = 31.8287
  Prefactor  = 0.0001
  norm       = 16.9966
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 20.3305
  norm       = 2.19316
  norm       = 2.2607
  norm       = 2.28638
  norm       = 0.0543249
  norm       = 0.0001
  Prefactor  = 20.2586
  norm       = 0.0001
  Prefactor  = 7.04098
  norm       = 0.797691
  norm       = 0.0001
  Normalizat = 0.80968
  Prefactor  = 1.0046
 **********
 **   18 **HESSE 
 **********

 FCN=   4626.570     FROM HESSE     STATUS=OK           383 CALLS     3550 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    16.949        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     9.8387        9.3215        .51101E-05   -1.5081    
   3  Prefactor     3.5095        26.819        .86309E-05   -1.5333    
   4  norm          1.5477        1.7078        .36037E-05   -1.5459    
   5  Prefactor     .10000E-03    8.2108        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          31.829        23.926        .28410E-05   -1.4579    
   7  Prefactor     .10000E-03    1.5448        .16476E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          16.997        21.945        .38857E-05   -1.4883    
   9  Prefactor     .10000E-03    6.1262        .32853E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    77.755        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10001E-03    99.690        .15613E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     20.331        22.714        .17765E-04   -1.4806    
  13  norm          2.1932        14.199        .11136E-04   -1.5412    
  14  norm          2.2607        2.2800        .39506E-05   -1.5407    
  15  norm          2.2864        1.6466        .27967E-05   -1.5406    
  16  norm          .54325E-01    17.845        .85448E-01   -1.5661    
  17  norm          .10000E-03    2.6156        .42407E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     20.259        38.902        .17794E-04   -1.4807    
  19  norm          .10000E-03    10.351        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     7.0410        11.645        .60465E-05   -1.5177    
  21  norm          .79769        1.1382        .99458E-05   -1.5529    
  22  norm          .10000E-03    6.5522        .33859E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .80968        .24186        .12101E-04   -.99711    
  24  Prefactor     1.0046        .16014        .37071E-04   -.92576    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.1706e-10
Minuit parameter uncertainties:
  1  2.14046e-06
  2  9.32285
  3  19.415
  4  1.70787
  5  1.86301e-06
  6  23.933
  7  1.34217e-06
  8  21.9553
  9  5.69605e-06
  10  0.000192284
  11  0.00157365
  12  22.7235
  13  11.1642
  14  2.28004
  15  1.64668
  16  1.96797
  17  9.82131e-07
  18  38.9511
  19  2.07332e-06
  20  11.6487
  21  1.1382
  22  1.08296e-05
  23  0.242186
  24  0.16022
Done.

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

Extracting fit parameters...

4FGL J0811.4+0146
   Spectrum: LogParabola
272         norm:  1.000e-04  9.821e-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:  1.005e+00  1.602e-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:  8.097e-01  2.422e-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: 5.93e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.52e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/306262/likelihoodResults_351561601_351820801_4FGL_J0811.4+0146_daily_bin433.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): 102
logL (Free Index) = 4626.57152483
delta logL = -0.00182091620263

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4626.56970588
delta logL = -1.96718610823e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11402E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9757       1.0000          .0000       5.0000    
     3 'Normalizat'    .80974       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0046       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=   4626.570     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      245 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    258.37        .21972E-02** at limit **
   2  alpha         1.5296        3.6703        .50000       -.79217E-07
   3  Normalizat    .80968        .49020E-01    .30253E-03   -.35663E-04
   4  Prefactor     1.0046        .33359E-01    .18535E-03   -.88544E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.52963
  Normalizat = 0.809681
  Prefactor  = 1.0046
 **********
 **   18 **HESSE 
 **********

 FCN=   4626.570     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      274 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    825.48        .43943E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.5296        3.1200        .50000       -.39862    
   3  Normalizat    .80968        .14269        .12101E-04   -.99711    
   4  Prefactor     1.0046        .97120E-01    .37071E-04   -.92576    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.53995e-09
Minuit parameter uncertainties:
  1  0.000142956
  2  1422.51
  3  0.142753
  4  0.0971365
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/306262': 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): 102
logL (Free Index) = 4626.56969769
delta logL = 6.22544848738e-06

Extracting fit parameters...

4FGL J0811.4+0146
   Spectrum: LogParabola
272         norm:  1.000e-04  1.430e-04  1.000e-04  1.000e+04 ( 1.000e-12)
273        alpha:  1.530e+00  1.423e+03  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.005e+00  9.714e-02  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:  8.097e-01  1.428e-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/306262/cmap_HighResolution_351561601_351820801_4FGL_J0811.4+0146_daily_bin433.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.52e-05', job_status='DONE', photon_flux_upper_limit='5.93e-08', time_completed='2021-08-29 12:23:09.610877', job_id='306262', GAL2='1.00', fit_tolerance='1e-08', EG2='0.81', EG='0.81', time_epoch_completed='1630264989.61', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='6.23e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.01' WHERE bin_id='433' AND source_name='4FGL J0811.4+0146' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 12:23:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0064>
Subject: Job 306262: <4FGL_J0811.4+0146_daily_bin433> in cluster <slac> Done

Job <4FGL_J0811.4+0146_daily_bin433> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Aug 29 12:10:32 2021
Job was executed on host(s) <bullet0064>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 12:10:33 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:10:33 2021
Terminated at Sun Aug 29 12:23:10 2021
Results reported at Sun Aug 29 12:23:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0811.4+0146_daily_bin433 122.861 1.7756 351561601 351820801 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 :                                   593.11 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             312.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   756 sec.
    Turnaround time :                            758 sec.

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

