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


Performing analysis on: 4FGL_J0811.4+0146_daily_bin362
RA = 122.861, Dec = 1.7756
tmin = 333158401, tmax = 333417601
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='304703', job_status='RUN', time_executed='2021-08-29 12:07:51.357906', time_epoch_executed='1630264071.36' WHERE source_name='4FGL J0811.4+0146' and cadence='daily' and bin_id='362'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/304703

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

Retrieving the FT1 file...

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

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

Retrieving 51 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/304703/ft1_4FGL_J0811.4+0146_daily_bin362.fits


Retrieving the FT1 file...

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

Retrieving 51 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/304703/ft2_4FGL_J0811.4+0146_daily_bin362.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/304703/ft1_4FGL_J0811.4+0146_daily_bin362.fits outfile=/scratch/kocevski/304703/ft1_filteredMKT_4FGL_J0811.4+0146_daily_bin362.fits ra=122.861 dec=1.7756 rad=12.0 tmin=333158401.0 tmax=333417601.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.39
user 5.79
sys 0.58

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/304703/ft2_4FGL_J0811.4+0146_daily_bin362.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/304703/ft1_filteredMKT_4FGL_J0811.4+0146_daily_bin362.fits evtable="EVENTS" outfile="/scratch/kocevski/304703/ft1_filtered_4FGL_J0811.4+0146_daily_bin362.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.83
user 0.33
sys 0.47

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/304703/ft1_filtered_4FGL_J0811.4+0146_daily_bin362.fits" evtable="EVENTS" scfile=/scratch/kocevski/304703/ft2_4FGL_J0811.4+0146_daily_bin362.fits sctable="SC_DATA" outfile=/scratch/kocevski/304703/ltcube_333158401_333417601_4FGL_J0811.4+0146_daily_bin362.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/304703/ft2_4FGL_J0811.4+0146_daily_bin362.fits
.....................!
real 11.51
user 10.79
sys 0.67

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/304703/ft1_filtered_4FGL_J0811.4+0146_daily_bin362.fits evtable="EVENTS" scfile=/scratch/kocevski/304703/ft2_4FGL_J0811.4+0146_daily_bin362.fits sctable="SC_DATA" expcube=/scratch/kocevski/304703/ltcube_333158401_333417601_4FGL_J0811.4+0146_daily_bin362.fits outfile=/scratch/kocevski/304703/expmap_333158401_333417601_4FGL_J0811.4+0146_daily_bin362.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/304703/ltcube_333158401_333417601_4FGL_J0811.4+0146_daily_bin362.fits
.....................!
real 192.95
user 187.25
sys 5.13

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/304703/ft1_filtered_4FGL_J0811.4+0146_daily_bin362.fits scfile=/scratch/kocevski/304703/ft2_4FGL_J0811.4+0146_daily_bin362.fits outfile=/scratch/kocevski/304703/cmap_333158401_333417601_4FGL_J0811.4+0146_daily_bin362.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.02
user 0.37
sys 0.50

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/304703/ft1_filtered_4FGL_J0811.4+0146_daily_bin362.fits scfile=/scratch/kocevski/304703/ft2_4FGL_J0811.4+0146_daily_bin362.fits outfile=/scratch/kocevski/304703/cmap_HighResolution_333158401_333417601_4FGL_J0811.4+0146_daily_bin362.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.86
user 0.37
sys 0.48

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.6458       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .28694E-02   1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    4.2650       1.0000         .10000E-03   10000.    
     9 'Prefactor '    16.249       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10403E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.9391       1.0000         .10000E-03   10000.    
    12 'Prefactor '    30.721       1.0000         .10000E-03   10000.    
    13 'norm      '    12.536       1.0000         .10000E-03   10000.    
    14 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.7712       1.0000         .10000E-03   10000.    
    16 'norm      '    .10786E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .11018E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    34.298       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2.9696       1.0000         .10000E-03   10000.    
    22 'norm      '    .10464E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .99546       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.2385       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=   5957.323     FROM MIGRAD    STATUS=CONVERGED    575 CALLS     2699 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.483        .47623E-06** at limit **
   2  Prefactor     .10000E-03    5.1557        .26255E-06** at limit **
   3  Prefactor     .10000E-03    6.7228        .95426E-07** at limit **
   4  norm          1.6453        1.8695        .76719E-07   -.70560E-04
   5  Prefactor     .10045E-03    31.399        .39839E-05** at limit **
   6  norm          .10000E-03    6.8748       -.11109E-06** at limit **
   7  Prefactor     .10000E-03    2.0532        .21704E-07** at limit **
   8  norm          4.2616        17.179        .35804E-05    .18577E-04
   9  Prefactor     16.251        14.422       -.86705E-06   -.55817E-04
  10  Prefactor     .10000E-03    384.68        .67068E-05** at limit **
  11  Prefactor     2.9377        7.5485        .42000E-05    .11855E-03
  12  Prefactor     30.694        35.145       -.84565E-06   -.71488E-05
  13  norm          12.533        12.795        .14255E-05    .93128E-06
  14  norm          .10000E-03    1.9175       -.29128E-07** at limit **
  15  norm          1.7716        1.4097       -.83257E-08   -.58764E-04
  16  norm          .10000E-03    10.540        .73395E-07** at limit **
  17  norm          .10000E-03    4.5634       -.14078E-06** at limit **
  18  Prefactor     .10000E-03    18.545       -.41893E-06** at limit **
  19  norm          34.300        27.470       -.21254E-07   -.17033E-05
  20  Prefactor     .10000E-03    5.1809       -.23956E-06** at limit **
  21  norm          2.9697        1.2512        .16057E-07   -.10695E-04
  22  norm          .10000E-03    8.8156        .85176E-07** at limit **
  23  Normalizat    .99568        .22755       -.38745E-06   -.57448E-04
  24  Prefactor     1.2383        .15051       -.25562E-06   -.11802E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.64531
  Prefactor  = 0.000100454
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 4.26158
  Prefactor  = 16.2505
  Prefactor  = 0.0001
  Prefactor  = 2.93767
  Prefactor  = 30.6938
  norm       = 12.5329
  norm       = 0.0001
  norm       = 1.77163
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 34.3001
  Prefactor  = 0.0001
  norm       = 2.96974
  norm       = 0.0001
  Normalizat = 0.995676
  Prefactor  = 1.23826
 **********
 **   18 **HESSE 
 **********

 FCN=   5957.323     FROM HESSE     STATUS=OK           395 CALLS     3094 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.487        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.1829        .17115E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    6.7236        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.6453        1.8537        .10723E-03   -1.5451    
   5  Prefactor     .10045E-03    189.90        .77344E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    6.8849        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.0676        .10796E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          4.2616        17.104        .19510E-03   -1.5295    
   9  Prefactor     16.251        14.403        .99358E-04   -1.4902    
  10  Prefactor     .10000E-03    385.16        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.9377        7.6015        .11846E-02   -1.5365    
  12  Prefactor     30.694        35.168        .72288E-04   -1.4599    
  13  norm          12.533        12.791        .11313E-03   -1.5000    
  14  norm          .10000E-03    1.9580        .10426E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.7716        1.3993        .78149E-04   -1.5442    
  16  norm          .10000E-03    10.551        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    4.6839        .32175E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    18.574        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          34.300        27.470        .68425E-04   -1.4536    
  20  Prefactor     .10000E-03    5.1878        .17155E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.9697        1.2540        .53740E-04   -1.5363    
  22  norm          .10000E-03    9.0804        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .99568        .25503        .33508E-03   -.93175    
  24  Prefactor     1.2383        .16850        .20317E-03   -.85162    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.2851e-09
Minuit parameter uncertainties:
  1  3.16222e-06
  2  4.39866e-07
  3  7.04042e-07
  4  1.85374
  5  0.0186371
  6  1.59438e-07
  7  1.59891e-06
  8  17.0835
  9  14.4065
  10  0.000236653
  11  7.60404
  12  35.1922
  13  12.7942
  14  6.10627e-06
  15  1.39928
  16  2.24886e-05
  17  1.30161e-05
  18  1.63141e-05
  19  27.4806
  20  3.03048e-06
  21  1.25403
  22  4.77163e-06
  23  0.255338
  24  0.168569
Done.

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

Extracting fit parameters...

4FGL J0811.4+0146
   Spectrum: LogParabola
272         norm:  1.000e-04  1.302e-05  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.238e+00  1.686e-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.957e-01  2.553e-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: 7.83e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.64e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/304703/likelihoodResults_333158401_333417601_4FGL_J0811.4+0146_daily_bin362.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) = 5957.32399721
delta logL = -0.00101843448465

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5957.32297877
delta logL = 6.86031853547e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10110E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0271       1.0000          .0000       5.0000    
     3 'Normalizat'    .99565       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2383       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=   5957.323     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      250 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    110.23        .32688E-02** at limit **
   2  alpha         2.3806        3.5840        .50000        .41791E-07
   3  Normalizat    .99568        .26934E-01    .33508E-03   -.19750E-03
   4  Prefactor     1.2383        .18088E-01    .20317E-03   -.38646E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  alpha      = 2.38059
  Normalizat = 0.995676
  Prefactor  = 1.23825
 **********
 **   18 **HESSE 
 **********

 FCN=   5957.323     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      279 TOTAL
                     EDM=   .86E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    488.32        .65375E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.3806        3.3807        .50000       -.47783E-01
   3  Normalizat    .99568        .62338E-01    .13403E-04   -.93175    
   4  Prefactor     1.2383        .41869E-01    .40634E-04   -.85162    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.55246e-09
Minuit parameter uncertainties:
  1  0.0012862
  2  1351.35
  3  0.0623426
  4  0.0418702
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/304703': 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) = 5957.32297703
delta logL = 1.74452907231e-06

Extracting fit parameters...

4FGL J0811.4+0146
   Spectrum: LogParabola
272         norm:  1.000e-04  1.286e-03  1.000e-04  1.000e+04 ( 1.000e-12)
273        alpha:  2.381e+00  1.351e+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.238e+00  4.187e-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:  9.957e-01  6.234e-02  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/304703/cmap_HighResolution_333158401_333417601_4FGL_J0811.4+0146_daily_bin362.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.64e-05', job_status='DONE', photon_flux_upper_limit='7.83e-08', time_completed='2021-08-29 12:18:29.877753', job_id='304703', GAL2='1.24', fit_tolerance='1e-08', EG2='1.00', EG='1.00', time_epoch_completed='1630264709.88', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.24', dlogl='1.74e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.01' WHERE bin_id='362' AND source_name='4FGL J0811.4+0146' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 12:18:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0211>
Subject: Job 304703: <4FGL_J0811.4+0146_daily_bin362> in cluster <slac> Done

Job <4FGL_J0811.4+0146_daily_bin362> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Aug 29 12:05:31 2021
Job was executed on host(s) <bullet0211>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 12:05: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:05:34 2021
Terminated at Sun Aug 29 12:18:30 2021
Results reported at Sun Aug 29 12:18:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0811.4+0146_daily_bin362 122.861 1.7756 333158401 333417601 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 :                                   641.14 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             328.20 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   776 sec.
    Turnaround time :                            779 sec.

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

