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


Performing analysis on: 4FGL_J0811.4+0146_daily_bin555
RA = 122.861, Dec = 1.7756
tmin = 383184001, tmax = 383443201
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='307719', job_status='RUN', time_executed='2021-08-29 12:20:04.345228', time_epoch_executed='1630264804.35' WHERE source_name='4FGL J0811.4+0146' and cadence='daily' and bin_id='555'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/307719

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/307719/ft1_4FGL_J0811.4+0146_daily_bin555.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/307719/ft2_4FGL_J0811.4+0146_daily_bin555.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/307719/ft1_4FGL_J0811.4+0146_daily_bin555.fits outfile=/scratch/kocevski/307719/ft1_filteredMKT_4FGL_J0811.4+0146_daily_bin555.fits ra=122.861 dec=1.7756 rad=12.0 tmin=383184001.0 tmax=383443201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.53
user 3.17
sys 1.24

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/307719/ft1_filtered_4FGL_J0811.4+0146_daily_bin555.fits" evtable="EVENTS" scfile=/scratch/kocevski/307719/ft2_4FGL_J0811.4+0146_daily_bin555.fits sctable="SC_DATA" outfile=/scratch/kocevski/307719/ltcube_383184001_383443201_4FGL_J0811.4+0146_daily_bin555.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/307719/ft2_4FGL_J0811.4+0146_daily_bin555.fits
.....................!
real 14.51
user 11.69
sys 1.48

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/307719/ft1_filtered_4FGL_J0811.4+0146_daily_bin555.fits evtable="EVENTS" scfile=/scratch/kocevski/307719/ft2_4FGL_J0811.4+0146_daily_bin555.fits sctable="SC_DATA" expcube=/scratch/kocevski/307719/ltcube_383184001_383443201_4FGL_J0811.4+0146_daily_bin555.fits outfile=/scratch/kocevski/307719/expmap_383184001_383443201_4FGL_J0811.4+0146_daily_bin555.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/307719/ltcube_383184001_383443201_4FGL_J0811.4+0146_daily_bin555.fits
.....................!
real 192.81
user 185.92
sys 6.45

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/307719/ft1_filtered_4FGL_J0811.4+0146_daily_bin555.fits scfile=/scratch/kocevski/307719/ft2_4FGL_J0811.4+0146_daily_bin555.fits outfile=/scratch/kocevski/307719/cmap_383184001_383443201_4FGL_J0811.4+0146_daily_bin555.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.60
user 0.38
sys 1.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/307719/ft1_filtered_4FGL_J0811.4+0146_daily_bin555.fits scfile=/scratch/kocevski/307719/ft2_4FGL_J0811.4+0146_daily_bin555.fits outfile=/scratch/kocevski/307719/cmap_HighResolution_383184001_383443201_4FGL_J0811.4+0146_daily_bin555.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=122.861 yref=1.7756 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 1.80
user 0.39
sys 1.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.1923       1.0000         .10000E-03   10000.    
     3 'Prefactor '    24.599       1.0000         .10000E-03   10000.    
     4 'norm      '    .83204       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.5495       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.568       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    3.7321       1.0000         .10000E-03   10000.    
    15 'norm      '    .62101       1.0000         .10000E-03   10000.    
    16 'norm      '    26.099       1.0000         .10000E-03   10000.    
    17 'norm      '    9.2044       1.0000         .10000E-03   10000.    
    18 'Prefactor '    23.915       1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.7633       1.0000         .10000E-03   10000.    
    21 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.4301       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .71630       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=   5629.075     FROM MIGRAD    STATUS=CONVERGED    544 CALLS     2670 TOTAL
                     EDM=   .45E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    36.739       -.69256E-05** at limit **
   2  Prefactor     8.1897        10.770        .21056E-05   -.26718E-04
   3  Prefactor     24.570        28.910        .29422E-06    .17806E-04
   4  norm          .83418        1.8486       -.66747E-06   -.12449E-02
   5  Prefactor     .10000E-03    8.4438        .90743E-05** at limit **
   6  norm          .10000E-03    5.2381       -.58663E-06** at limit **
   7  Prefactor     4.5509        4.5481       -.27552E-05   -.13365E-03
   8  norm          .10000E-03    6.6358       -.14357E-05** at limit **
   9  Prefactor     .10000E-03    9.1136       -.11832E-04** at limit **
  10  Prefactor     .10000E-03    174.69       -.10654E-04** at limit **
  11  Prefactor     13.568        8.8859       -.84692E-07    .11019E-05
  12  Prefactor     .10000E-03    42.806        .74415E-05** at limit **
  13  norm          .10000E-03    3.9151        .38981E-07** at limit **
  14  norm          3.7322        2.7535        .23436E-07   -.44910E-04
  15  norm          .62096        .79653       -.78922E-08   -.36453E-03
  16  norm          26.083        21.975        .43477E-05   -.32555E-04
  17  norm          9.2036        5.0829        .74214E-07   -.68844E-04
  18  Prefactor     23.921        29.842        .98317E-06    .19069E-04
  19  norm          .10000E-03    10.154        .43563E-05** at limit **
  20  Prefactor     2.7657        23.141       -.17759E-05   -.84784E-04
  21  norm          .10000E-03    .33522       -.31915E-07** at limit **
  22  norm          .10000E-03    5.5208        .99407E-06** at limit **
  23  Normalizat    1.4300        .20899        .36342E-06    .90648E-04
  24  Prefactor     .71636        .12761       -.17779E-06    .10492E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 8.18967
  Prefactor  = 24.5696
  norm       = 0.834177
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.55086
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.5675
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 3.73219
  norm       = 0.620961
  norm       = 26.0825
  norm       = 9.20355
  Prefactor  = 23.9208
  norm       = 0.0001
  Prefactor  = 2.76567
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 1.42996
  Prefactor  = 0.716356
 **********
 **   18 **HESSE 
 **********

 FCN=   5629.075     FROM HESSE     STATUS=OK           399 CALLS     3069 TOTAL
                     EDM=   .86E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    36.792        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     8.1897        10.764        .14007E-03   -1.5136    
   3  Prefactor     24.570        28.879        .80766E-04   -1.4716    
   4  norm          .83418        1.8440        .14311E-03   -1.5525    
   5  Prefactor     .10000E-03    8.4276        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    5.2407        .16771E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.5509        4.5698        .15464E-03   -1.5281    
   8  norm          .10000E-03    6.6368        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    9.0503        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    174.73        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     13.568        8.8829        .10874E-03   -1.4971    
  12  Prefactor     .10000E-03    42.900        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    3.9251        .14497E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.7322        2.7484        .10195E-03   -1.5322    
  15  norm          .62096        .75574        .72922E-03   -1.5550    
  16  norm          26.083        21.930        .78414E-04   -1.4686    
  17  norm          9.2036        5.0881        .12080E-03   -1.5101    
  18  Prefactor     23.921        29.883        .81910E-04   -1.4729    
  19  norm          .10000E-03    10.156        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2.7657        23.315        .24485E-03   -1.5375    
  21  norm          .10000E-03    .33982        .42381E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    5.5488        .17211E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.4300        .23732        .26354E-03   -.79766    
  24  Prefactor     .71636        .14428        .22195E-03   -1.0289    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.62755e-10
Minuit parameter uncertainties:
  1  3.67296e-06
  2  10.767
  3  28.895
  4  1.84414
  5  3.64001e-07
  6  7.55372e-08
  7  4.57013
  8  1.42919e-05
  9  6.64654e-05
  10  0.000329145
  11  8.88376
  12  0.000369498
  13  1.59316e-06
  14  2.74852
  15  0.755755
  16  21.9366
  17  5.08839
  18  29.902
  19  1.14395e-06
  20  16.0682
  21  6.21945e-07
  22  3.89239e-06
  23  0.237506
  24  0.144351
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
497    Prefactor:  7.164e-01  1.444e-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.430e+00  2.375e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 12.25
Ra Dec: 122.861 1.776
Photon Index (Fixed Index): 2.01 +/- 0.00
Photon Flux (Fixed Index): 6.60e-08 +/- 3.65e-08
Energy Flux (Fixed Index): 3.91e-05 +/- 2.16e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5629.07023502
delta logL = 0.00507240508887

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5629.06975033
delta logL = 0.00555709652963

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.2037       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0771       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4238       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71807       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=   5629.070     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      205 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.2084        121.76        .33027E-02   -.22935E-03
   2  alpha         2.0770        2.6539        .27077        .27636E-04
   3  Normalizat    1.4238        .31122        .59689E-01    .77248E-05
   4  Prefactor     .71806        .89862E-01    .42641E-01    .95941E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 9.20841
  alpha      = 2.07705
  Normalizat = 1.42383
  Prefactor  = 0.718065
 **********
 **   18 **HESSE 
 **********

 FCN=   5629.070     FROM HESSE     STATUS=OK            33 CALLS      238 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.2084        4.9851        .11781E-03   -1.5101    
   2  alpha         2.0770        .66170        .15142E-01   -.17000    
   3  Normalizat    1.4238        .23324        .26397E-03   -.79942    
   4  Prefactor     .71806        .14058        .22168E-03   -1.0282    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.3888e-09
Minuit parameter uncertainties:
  1  4.9853
  2  0.669927
  3  0.233416
  4  0.140653
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/307719': 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) = 5629.06974986
delta logL = 0.00555755997175

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
497    Prefactor:  7.181e-01  1.407e-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.424e+00  2.334e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.26
Ra Dec: 122.861 1.776
Photon Index (Free Index): 2.08 +/- 0.67
Photon Flux (Free Index): 7.20e-08 +/- 6.74e-08
Energy Flux (Free Index): 3.76e-05 +/- 2.47e-05

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/307719/cmap_HighResolution_383184001_383443201_4FGL_J0811.4+0146_daily_bin555.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.60e-08', energy_flux2='3.76e-05', photon_flux_error='3.65e-08', dlogl='5.56e-03', energy_flux='3.91e-05', photon_flux2='7.20e-08', job_status='DONE', time_completed='2021-08-29 12:29:41.684801', photon_index_error2='0.67', photon_index2='2.08', ts='12.25', fit_tolerance='1e-08', GAL='0.72', photon_index_error='0.00', energy_flux_error2='2.47e-05', EG='1.43', time_epoch_completed='1630265381.68', return_code='0', job_id='307719', GAL2='0.72', EG2='1.42', return_code2='0', energy_flux_error='2.16e-05', photon_flux_error2='6.74e-08', ts2='12.26', photon_index='2.01' WHERE bin_id='555' AND source_name='4FGL J0811.4+0146' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 12:29:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0072>
Subject: Job 307719: <4FGL_J0811.4+0146_daily_bin555> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0811.4+0146_daily_bin555 122.861 1.7756 383184001 383443201 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 :                                   590.15 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             254.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   857 sec.
    Turnaround time :                            861 sec.

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

