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


Performing analysis on: 4FGL_J0811.4+0146_daily_bin231
RA = 122.861, Dec = 1.7756
tmin = 299203201, tmax = 299462401
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='303203', job_status='RUN', time_executed='2021-08-29 12:04:51.387695', time_epoch_executed='1630263891.39' WHERE source_name='4FGL J0811.4+0146' and cadence='daily' and bin_id='231'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/303203

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/303203/ft1_4FGL_J0811.4+0146_daily_bin231.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/303203/ft2_4FGL_J0811.4+0146_daily_bin231.fits


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

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

Done.
real 3.56
user 3.16
sys 0.38

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/303203/ft1_filtered_4FGL_J0811.4+0146_daily_bin231.fits" evtable="EVENTS" scfile=/scratch/kocevski/303203/ft2_4FGL_J0811.4+0146_daily_bin231.fits sctable="SC_DATA" outfile=/scratch/kocevski/303203/ltcube_299203201_299462401_4FGL_J0811.4+0146_daily_bin231.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/303203/ft2_4FGL_J0811.4+0146_daily_bin231.fits
.....................!
real 11.83
user 11.25
sys 0.52

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/303203/ft1_filtered_4FGL_J0811.4+0146_daily_bin231.fits evtable="EVENTS" scfile=/scratch/kocevski/303203/ft2_4FGL_J0811.4+0146_daily_bin231.fits sctable="SC_DATA" expcube=/scratch/kocevski/303203/ltcube_299203201_299462401_4FGL_J0811.4+0146_daily_bin231.fits outfile=/scratch/kocevski/303203/expmap_299203201_299462401_4FGL_J0811.4+0146_daily_bin231.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/303203/ltcube_299203201_299462401_4FGL_J0811.4+0146_daily_bin231.fits
.....................!
real 190.87
user 185.83
sys 4.66

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/303203/ft1_filtered_4FGL_J0811.4+0146_daily_bin231.fits scfile=/scratch/kocevski/303203/ft2_4FGL_J0811.4+0146_daily_bin231.fits outfile=/scratch/kocevski/303203/cmap_299203201_299462401_4FGL_J0811.4+0146_daily_bin231.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.86
user 0.37
sys 0.33

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/303203/ft1_filtered_4FGL_J0811.4+0146_daily_bin231.fits scfile=/scratch/kocevski/303203/ft2_4FGL_J0811.4+0146_daily_bin231.fits outfile=/scratch/kocevski/303203/cmap_HighResolution_299203201_299462401_4FGL_J0811.4+0146_daily_bin231.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.71
user 0.36
sys 0.32

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    58.719       1.0000         .10000E-03   10000.    
     2 'Prefactor '    13.807       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .12318E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .11842E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    44.898       1.0000         .10000E-03   10000.    
     6 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    10.439       1.0000         .10000E-03   10000.    
     9 'Prefactor '    15.980       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .26591E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    3.3561       1.0000         .10000E-03   10000.    
    15 'norm      '    .10165E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10492E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    4.4451       1.0000         .10000E-03   10000.    
    18 'Prefactor '    31.835       1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    11.186       1.0000         .10000E-03   10000.    
    21 'norm      '    3.0599       1.0000         .10000E-03   10000.    
    22 'norm      '    3.3106       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0516       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0280       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=   7375.439     FROM MIGRAD    STATUS=CONVERGED    544 CALLS     2733 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     58.705        60.156       -.14165E-04    .57712E-04
   2  Prefactor     13.808        10.330        .14322E-06    .49483E-04
   3  Prefactor     .10000E-03    93.714       -.39139E-04** at limit **
   4  norm          .10000E-03    .88329        .96809E-09** at limit **
   5  Prefactor     44.898        28.402       -.48641E-06    .70602E-04
   6  norm          .10000E-03    5.4167       -.38260E-06** at limit **
   7  Prefactor     .10000E-03    2.3388       -.53002E-06** at limit **
   8  norm          10.418        25.096       -.13619E-04   -.37269E-04
   9  Prefactor     15.983        18.470        .14032E-04    .89732E-04
  10  Prefactor     .10000E-03    87.987        .37508E-04** at limit **
  11  Prefactor     .10000E-03    3.3505       -.17795E-06** at limit **
  12  Prefactor     .10000E-03    16.656       -.10315E-05** at limit **
  13  norm          .11882E-03    5.8127       -.24312E-05** at limit **
  14  norm          3.3567        2.3370       -.21768E-06    .14808E-03
  15  norm          .10000E-03    .47164       -.23974E-06** at limit **
  16  norm          .10000E-03    11.569        .86766E-06** at limit **
  17  norm          4.4454        3.9468       -.95973E-06    .23818E-03
  18  Prefactor     31.809        41.044       -.29545E-04    .30012E-04
  19  norm          .10000E-03    6.5698       -.17880E-06** at limit **
  20  Prefactor     11.186        10.785        .15738E-05    .58893E-04
  21  norm          3.0600        1.2807       -.59701E-07    .19035E-03
  22  norm          3.3092        8.0031       -.13323E-05   -.26227E-03
  23  Normalizat    1.0518        .20701        .37857E-05    .46838E-03
  24  Prefactor     1.0279        .12679        .87250E-06    .87235E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 58.7055
  Prefactor  = 13.808
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 44.8985
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 10.4177
  Prefactor  = 15.9828
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000118815
  norm       = 3.35666
  norm       = 0.0001
  norm       = 0.000100001
  norm       = 4.44542
  Prefactor  = 31.8087
  norm       = 0.0001
  Prefactor  = 11.1863
  norm       = 3.06001
  norm       = 3.30919
  Normalizat = 1.05184
  Prefactor  = 1.02792
 **********
 **   18 **HESSE 
 **********

 FCN=   7375.439     FROM HESSE     STATUS=OK           405 CALLS     3138 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     58.705        60.121        .52356E-04   -1.4174    
   2  Prefactor     13.808        10.335        .10779E-03   -1.4965    
   3  Prefactor     .10000E-03    94.605        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    3.2099        .15313E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     44.898        28.409        .59834E-04   -1.4367    
   6  norm          .10000E-03    5.4303        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.3661        .12824E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          10.418        25.017        .12401E-03   -1.5062    
   9  Prefactor     15.983        18.441        .10019E-03   -1.4908    
  10  Prefactor     .10000E-03    87.868        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.3660        .15349E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    16.682        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .11882E-03    11.316        .65636E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.3567        2.3108        .10459E-03   -1.5342    
  15  norm          .10000E-03    1.8740        .11235E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    11.609        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          4.4454        3.9426        .15410E-03   -1.5286    
  18  Prefactor     31.809        41.333        .71016E-04   -1.4579    
  19  norm          .10000E-03    6.5727        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     11.186        10.788        .11978E-03   -1.5039    
  21  norm          3.0600        1.2778        .59764E-04   -1.5358    
  22  norm          3.3092        7.9913        .22249E-03   -1.5344    
  23  Normalizat    1.0518        .23924        .31807E-03   -.91313    
  24  Prefactor     1.0279        .14659        .20294E-03   -.91805    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.09675e-09
Minuit parameter uncertainties:
  1  60.1829
  2  10.3366
  3  0.000580519
  4  7.4204e-05
  5  28.4179
  6  6.13086e-06
  7  3.44916e-05
  8  25.0424
  9  18.4478
  10  0.000119209
  11  2.37685e-06
  12  0.000107583
  13  0.0291884
  14  2.31082
  15  9.29911e-06
  16  0.000216029
  17  3.94286
  18  41.3699
  19  4.62939e-06
  20  10.79
  21  1.27785
  22  7.99385
  23  0.239488
  24  0.146642
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
497    Prefactor:  1.028e+00  1.466e-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.052e+00  2.395e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.76
Ra Dec: 122.861 1.776
Photon Index (Fixed Index): 2.01 +/- 0.00
Photon Flux (Fixed Index): 3.19e-08 +/- 2.83e-08
Energy Flux (Fixed Index): 1.89e-05 +/- 1.68e-05

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

Saving results to:
/scratch/kocevski/303203/likelihoodResults_299203201_299462401_4FGL_J0811.4+0146_daily_bin231.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) = 7375.43923903
delta logL = 0.000133761562211

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7375.43922168
delta logL = 0.000151106536578

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.4421       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9946       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0524       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0277       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=   7375.439     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      219 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.4314        150.53        .47765E-02    .19026E-03
   2  alpha         1.9922        2.7500        .42268        .25560E-04
   3  Normalizat    1.0525        .15544        .71862E-01    .15619E-03
   4  Prefactor     1.0277        .69354E-01    .41443E-01   -.16443E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.43138
  alpha      = 1.99224
  Normalizat = 1.05249
  Prefactor  = 1.02774
 **********
 **   18 **HESSE 
 **********

 FCN=   7375.439     FROM HESSE     STATUS=OK            31 CALLS      250 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.4314        3.9783        .15440E-03   -1.5287    
   2  alpha         1.9922        .72528        .18269E-01   -.20453    
   3  Normalizat    1.0525        .22508        .31799E-03   -.91292    
   4  Prefactor     1.0277        .14121        .20296E-03   -.91810    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.33554e-10
Minuit parameter uncertainties:
  1  3.97856
  2  0.736339
  3  0.225281
  4  0.141257
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/303203': 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) = 7375.43921435
delta logL = 0.000158438517246

Extracting fit parameters...

4FGL J0811.4+0146
   Spectrum: LogParabola
272         norm:  4.431e+00  3.979e+00  1.000e-04  1.000e+04 ( 1.000e-12)
273        alpha:  1.992e+00  7.363e-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:  1.028e+00  1.413e-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.052e+00  2.253e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.75
Ra Dec: 122.861 1.776
Photon Index (Free Index): 1.99 +/- 0.74
Photon Flux (Free Index): 3.13e-08 +/- 4.19e-08
Energy Flux (Free Index): 1.90e-05 +/- 1.84e-05

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/303203/cmap_HighResolution_299203201_299462401_4FGL_J0811.4+0146_daily_bin231.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.89e-05', comment='SUCCESS', photon_flux='3.19e-08', energy_flux2='1.90e-05', photon_flux_error='2.83e-08', dlogl='1.58e-04', energy_flux='1.89e-05', photon_flux2='3.13e-08', job_status='DONE', time_completed='2021-08-29 12:16:33.681722', photon_index_error2='0.74', photon_index2='1.99', ts='2.76', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='9.95e-08', energy_flux_error2='1.84e-05', EG='1.05', time_epoch_completed='1630264593.68', return_code='0', job_id='303203', GAL2='1.03', EG2='1.05', return_code2='0', energy_flux_error='1.68e-05', photon_flux_error2='4.19e-08', ts2='2.75', photon_index='2.01' WHERE bin_id='231' AND source_name='4FGL J0811.4+0146' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 12:16:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0269>
Subject: Job 303203: <4FGL_J0811.4+0146_daily_bin231> in cluster <slac> Done

Job <4FGL_J0811.4+0146_daily_bin231> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun Aug 29 12:00:42 2021
Job was executed on host(s) <bullet0269>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 12:00:44 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 29 12:00:44 2021
Terminated at Sun Aug 29 12:16:34 2021
Results reported at Sun Aug 29 12:16:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0811.4+0146_daily_bin231 122.861 1.7756 299203201 299462401 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 :                                   698.32 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             294.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   950 sec.
    Turnaround time :                            952 sec.

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

