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


Performing analysis on: 4FGL_J0811.4+0146_daily_bin781
RA = 122.861, Dec = 1.7756
tmin = 441763201, tmax = 442022401
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='309361', job_status='RUN', time_executed='2021-08-29 12:24:57.490647', time_epoch_executed='1630265097.49' WHERE source_name='4FGL J0811.4+0146' and cadence='daily' and bin_id='781'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/309361

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/309361/ft1_4FGL_J0811.4+0146_daily_bin781.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/309361/ft2_4FGL_J0811.4+0146_daily_bin781.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/309361/ft1_4FGL_J0811.4+0146_daily_bin781.fits outfile=/scratch/kocevski/309361/ft1_filteredMKT_4FGL_J0811.4+0146_daily_bin781.fits ra=122.861 dec=1.7756 rad=12.0 tmin=441763201.0 tmax=442022401.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.78
user 3.20
sys 1.53

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/309361/ft2_4FGL_J0811.4+0146_daily_bin781.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/309361/ft1_filteredMKT_4FGL_J0811.4+0146_daily_bin781.fits evtable="EVENTS" outfile="/scratch/kocevski/309361/ft1_filtered_4FGL_J0811.4+0146_daily_bin781.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.79
user 0.32
sys 1.44

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/309361/ft1_filtered_4FGL_J0811.4+0146_daily_bin781.fits" evtable="EVENTS" scfile=/scratch/kocevski/309361/ft2_4FGL_J0811.4+0146_daily_bin781.fits sctable="SC_DATA" outfile=/scratch/kocevski/309361/ltcube_441763201_442022401_4FGL_J0811.4+0146_daily_bin781.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/309361/ft2_4FGL_J0811.4+0146_daily_bin781.fits
.....................!
real 14.37
user 12.53
sys 1.76

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/309361/ft1_filtered_4FGL_J0811.4+0146_daily_bin781.fits evtable="EVENTS" scfile=/scratch/kocevski/309361/ft2_4FGL_J0811.4+0146_daily_bin781.fits sctable="SC_DATA" expcube=/scratch/kocevski/309361/ltcube_441763201_442022401_4FGL_J0811.4+0146_daily_bin781.fits outfile=/scratch/kocevski/309361/expmap_441763201_442022401_4FGL_J0811.4+0146_daily_bin781.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/309361/ltcube_441763201_442022401_4FGL_J0811.4+0146_daily_bin781.fits
.....................!
real 192.34
user 184.98
sys 6.94

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/309361/ft1_filtered_4FGL_J0811.4+0146_daily_bin781.fits scfile=/scratch/kocevski/309361/ft2_4FGL_J0811.4+0146_daily_bin781.fits outfile=/scratch/kocevski/309361/cmap_441763201_442022401_4FGL_J0811.4+0146_daily_bin781.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.78
user 0.38
sys 1.36

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/309361/ft1_filtered_4FGL_J0811.4+0146_daily_bin781.fits scfile=/scratch/kocevski/309361/ft2_4FGL_J0811.4+0146_daily_bin781.fits outfile=/scratch/kocevski/309361/cmap_HighResolution_441763201_442022401_4FGL_J0811.4+0146_daily_bin781.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.95
user 0.39
sys 1.39

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    2.3898       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    8.0272       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    20.504       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.4487       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .16405E-01   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10582E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    5.0314       1.0000         .10000E-03   10000.    
    14 'norm      '    .51237       1.0000         .10000E-03   10000.    
    15 'norm      '    1.9707       1.0000         .10000E-03   10000.    
    16 'norm      '    18.345       1.0000         .10000E-03   10000.    
    17 'norm      '    .92156       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10172E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.5118       1.0000         .10000E-03   10000.    
    21 'norm      '    .83647       1.0000         .10000E-03   10000.    
    22 'norm      '    .23341E-01   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2360       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .76708       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=   6993.427     FROM MIGRAD    STATUS=CONVERGED    582 CALLS     2772 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    31.892        .29551E-06** at limit **
   2  Prefactor     2.3909        5.7139        .61893E-06   -.16509E-04
   3  Prefactor     .10000E-03    61.016       -.32799E-06** at limit **
   4  norm          8.0278        2.2137        .73577E-08   -.69164E-04
   5  Prefactor     .10000E-03    5.7774       -.24605E-08** at limit **
   6  norm          20.505        14.894        .59503E-07   -.21249E-04
   7  Prefactor     .10000E-03    2.1992        .93084E-07** at limit **
   8  norm          .10000E-03    13.410        .70807E-06** at limit **
   9  Prefactor     8.4465        8.9309        .28225E-06    .26998E-04
  10  Prefactor     .10000E-03    162.82        .50451E-05** at limit **
  11  Prefactor     .12851        4.9706        .29151E-06   -.22528E-03
  12  Prefactor     .10000E-03    13.413       -.62043E-06** at limit **
  13  norm          5.0078        9.1978       -.73649E-06   -.29329E-03
  14  norm          .51034        1.7087        .11542E-05   -.25559E-04
  15  norm          1.9704        1.0904       -.31812E-07   -.33880E-03
  16  norm          18.328        20.980       -.90685E-06   -.92995E-04
  17  norm          .92756        4.4289        .19880E-05   -.44757E-04
  18  Prefactor     .10000E-03    17.515       -.16276E-06** at limit **
  19  norm          .10000E-03    11.132        .45117E-07** at limit **
  20  Prefactor     7.5184        18.000       -.46925E-06   -.43214E-04
  21  norm          .83784        1.0580        .12943E-06    .78596E-04
  22  norm          .10001E-03    3.8841       -.17983E-06** at limit **
  23  Normalizat    1.2359        .19687        .52509E-06   -.18426E-03
  24  Prefactor     .76698        .11904       -.77035E-06   -.13140E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 2.39089
  Prefactor  = 0.0001
  norm       = 8.02777
  Prefactor  = 0.0001
  norm       = 20.5047
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 8.44647
  Prefactor  = 0.000100005
  Prefactor  = 0.128514
  Prefactor  = 0.0001
  norm       = 5.00777
  norm       = 0.510335
  norm       = 1.97045
  norm       = 18.3285
  norm       = 0.927558
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 7.51839
  norm       = 0.837839
  norm       = 0.000100012
  Normalizat = 1.23594
  Prefactor  = 0.76698
 **********
 **   18 **HESSE 
 **********

 FCN=   6993.427     FROM HESSE     STATUS=OK           413 CALLS     3185 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    31.935        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.3909        5.7004        .26493E-03   -1.5399    
   3  Prefactor     .10000E-03    61.598        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          8.0278        2.2146        .62323E-04   -1.5141    
   5  Prefactor     .10000E-03    5.7785        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          20.505        14.931        .88454E-04   -1.4802    
   7  Prefactor     .10000E-03    2.2273        .12106E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    13.463        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     8.4465        8.9279        .13792E-03   -1.5127    
  10  Prefactor     .10000E-03    165.93        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .12851        107.50        .34309E-02   -1.5636    
  12  Prefactor     .10000E-03    13.447        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          5.0078        9.4462        .17927E-03   -1.5260    
  14  norm          .51034        1.7050        .19197E-03   -1.5565    
  15  norm          1.9704        1.0878        .29537E-04   -1.5427    
  16  norm          18.328        21.018        .93511E-04   -1.4851    
  17  norm          .92756        4.4793        .32866E-03   -1.5515    
  18  Prefactor     .10000E-03    17.539        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    11.147        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     7.5184        18.203        .14633E-03   -1.5160    
  21  norm          .83784        .98035        .90602E-03   -1.5525    
  22  norm          .10001E-03    4.0729        .56657E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.2359        .22677        .27393E-03   -.85499    
  24  Prefactor     .76698        .13722        .21129E-03   -1.0096    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.60054e-09
Minuit parameter uncertainties:
  1  4.36854e-05
  2  5.70174
  3  0.000110857
  4  2.21465
  5  1.46361e-07
  6  14.9341
  7  6.27671e-07
  8  3.98239e-05
  9  8.92934
  10  0.00182226
  11  7.44434
  12  5.12113e-05
  13  9.44901
  14  1.70512
  15  1.08783
  16  21.0268
  17  4.07696
  18  3.13914e-07
  19  1.56488e-06
  20  18.2161
  21  0.980368
  22  0.000442797
  23  0.226949
  24  0.137277
Done.

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

Extracting fit parameters...

4FGL J0811.4+0146
   Spectrum: LogParabola
272         norm:  9.276e-01  4.077e+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.670e-01  1.373e-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.236e+00  2.269e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/309361/likelihoodResults_441763201_442022401_4FGL_J0811.4+0146_daily_bin781.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) = 6993.40490244
delta logL = 0.0224880344695

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6993.40364885
delta logL = 0.0237416290283

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.0900       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2678       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2326       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76736       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5000E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6993.404     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      249 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0930        3.8097        .26633E-03   -.10544E-04
   2  alpha         2.2677        1.1725        .30070E-01    .10428E-03
   3  Normalizat    1.2325        .20945        .27424E-03   -.95346E-06
   4  Prefactor     .76736        .13064        .21123E-03   -.36060E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.09296
  alpha      = 2.26772
  Normalizat = 1.23255
  Prefactor  = 0.767356
 **********
 **   18 **HESSE 
 **********

 FCN=   6993.404     FROM HESSE     STATUS=OK            25 CALLS      274 TOTAL
                     EDM=   .13E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0930        3.6554        .10653E-04   -1.5499    
   2  alpha         2.2677        1.1295        .60140E-02   -.93048E-01
   3  Normalizat    1.2325        .20966        .10970E-04   -.85603    
   4  Prefactor     .76736        .13071        .84493E-05   -1.0094    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.29264e-12
Minuit parameter uncertainties:
  1  3.6561
  2  1.1724
  3  0.209805
  4  0.130762
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/309361': 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) = 6993.40364849
delta logL = 0.0237419841033

Extracting fit parameters...

4FGL J0811.4+0146
   Spectrum: LogParabola
272         norm:  1.093e+00  3.656e+00  1.000e-04  1.000e+04 ( 1.000e-12)
273        alpha:  2.268e+00  1.172e+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:  7.674e-01  1.308e-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.233e+00  2.098e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.06
Ra Dec: 122.861 1.776

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/309361/cmap_HighResolution_441763201_442022401_4FGL_J0811.4+0146_daily_bin781.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.65e-05', job_status='DONE', photon_flux_upper_limit='7.85e-08', time_completed='2021-08-29 12:36:45.880922', job_id='309361', GAL2='0.77', fit_tolerance='1e-08', EG2='1.23', EG='1.24', time_epoch_completed='1630265805.88', return_code2='0', ts='0.06', comment='SUCCESS', return_code='0', GAL='0.77', dlogl='2.37e-02', ts2='0.11', photon_index_error='0.00', photon_index='2.01' WHERE bin_id='781' AND source_name='4FGL J0811.4+0146' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 12:36:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0233>
Subject: Job 309361: <4FGL_J0811.4+0146_daily_bin781> in cluster <slac> Done

Job <4FGL_J0811.4+0146_daily_bin781> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Aug 29 12:20:19 2021
Job was executed on host(s) <bullet0233>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 12:20:21 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:20:21 2021
Terminated at Sun Aug 29 12:36:46 2021
Results reported at Sun Aug 29 12:36:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0811.4+0146_daily_bin781 122.861 1.7756 441763201 442022401 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 :                                   726.31 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             262.09 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   985 sec.
    Turnaround time :                            987 sec.

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

