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


Performing analysis on: 4FGL_J0811.4+0146_daily_bin280
RA = 122.861, Dec = 1.7756
tmin = 311904001, tmax = 312163201
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='304583', job_status='RUN', time_executed='2021-08-29 12:07:49.486616', time_epoch_executed='1630264069.49' WHERE source_name='4FGL J0811.4+0146' and cadence='daily' and bin_id='280'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/304583

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/304583/ft1_4FGL_J0811.4+0146_daily_bin280.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/304583/ft2_4FGL_J0811.4+0146_daily_bin280.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/304583/ft1_4FGL_J0811.4+0146_daily_bin280.fits outfile=/scratch/kocevski/304583/ft1_filteredMKT_4FGL_J0811.4+0146_daily_bin280.fits ra=122.861 dec=1.7756 rad=12.0 tmin=311904001.0 tmax=312163201.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.52
user 3.21
sys 0.22

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/304583/ft1_filtered_4FGL_J0811.4+0146_daily_bin280.fits" evtable="EVENTS" scfile=/scratch/kocevski/304583/ft2_4FGL_J0811.4+0146_daily_bin280.fits sctable="SC_DATA" outfile=/scratch/kocevski/304583/ltcube_311904001_312163201_4FGL_J0811.4+0146_daily_bin280.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/304583/ft2_4FGL_J0811.4+0146_daily_bin280.fits
.....................!
real 11.65
user 11.30
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/304583/ft1_filtered_4FGL_J0811.4+0146_daily_bin280.fits evtable="EVENTS" scfile=/scratch/kocevski/304583/ft2_4FGL_J0811.4+0146_daily_bin280.fits sctable="SC_DATA" expcube=/scratch/kocevski/304583/ltcube_311904001_312163201_4FGL_J0811.4+0146_daily_bin280.fits outfile=/scratch/kocevski/304583/expmap_311904001_312163201_4FGL_J0811.4+0146_daily_bin280.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/304583/ltcube_311904001_312163201_4FGL_J0811.4+0146_daily_bin280.fits
.....................!
real 190.05
user 185.16
sys 4.52

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/304583/ft1_filtered_4FGL_J0811.4+0146_daily_bin280.fits scfile=/scratch/kocevski/304583/ft2_4FGL_J0811.4+0146_daily_bin280.fits outfile=/scratch/kocevski/304583/cmap_311904001_312163201_4FGL_J0811.4+0146_daily_bin280.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.58
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/304583/ft1_filtered_4FGL_J0811.4+0146_daily_bin280.fits scfile=/scratch/kocevski/304583/ft2_4FGL_J0811.4+0146_daily_bin280.fits outfile=/scratch/kocevski/304583/cmap_HighResolution_311904001_312163201_4FGL_J0811.4+0146_daily_bin280.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.59
user 0.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    5.4612       1.0000         .10000E-03   10000.    
     5 'Prefactor '    15.359       1.0000         .10000E-03   10000.    
     6 'norm      '    11.697       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.9408       1.0000         .10000E-03   10000.    
     8 'norm      '    .10236E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    33.933       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .31075       1.0000         .10000E-03   10000.    
    13 'norm      '    6.0098       1.0000         .10000E-03   10000.    
    14 'norm      '    1.5981       1.0000         .10000E-03   10000.    
    15 'norm      '    2.5517       1.0000         .10000E-03   10000.    
    16 'norm      '    14.448       1.0000         .10000E-03   10000.    
    17 'norm      '    2.8237       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .17593E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .32063       1.0000         .10000E-03   10000.    
    22 'norm      '    .98673E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1033       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .91484       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=   7681.069     FROM MIGRAD    STATUS=CONVERGED    558 CALLS     2719 TOTAL
                     EDM=   .71E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    48.360       -.96911E-05** at limit **
   2  Prefactor     .10000E-03    2.6941        .22468E-07** at limit **
   3  Prefactor     .10000E-03    17.415       -.29258E-05** at limit **
   4  norm          5.4609        2.0165       -.17078E-06    .11277E-02
   5  Prefactor     15.357        14.918        .29079E-07    .37915E-05
   6  norm          11.699        16.329       -.95185E-06    .15779E-03
   7  Prefactor     3.9387        5.2586        .34785E-07    .16016E-03
   8  norm          .10000E-03    10.655       -.57260E-06** at limit **
   9  Prefactor     33.938        15.917        .22006E-06    .50349E-04
  10  Prefactor     .10000E-03    85.678        .56411E-05** at limit **
  11  Prefactor     .10000E-03    3.3951        .48925E-07** at limit **
  12  Prefactor     .31732        42.427       -.10230E-04    .30729E-03
  13  norm          6.0099        6.2659       -.81592E-08    .14274E-04
  14  norm          1.5981        1.5134       -.19534E-07    .25167E-04
  15  norm          2.5515        1.0365       -.22183E-07   -.27257E-04
  16  norm          14.524        22.342       -.97994E-06   -.59472E-04
  17  norm          2.8239        3.2294       -.66858E-08    .16149E-03
  18  Prefactor     .10000E-03    32.367        .54189E-05** at limit **
  19  norm          .10000E-03    5.9236       -.40909E-07** at limit **
  20  Prefactor     .10000E-03    7.9964        .40130E-07** at limit **
  21  norm          .32032        .41802       -.15134E-07   -.85506E-04
  22  norm          .10001E-03    17.532       -.87366E-05** at limit **
  23  Normalizat    1.1036        .18296       -.50748E-07    .30028E-04
  24  Prefactor     .91475        .11617        .11156E-06   -.58971E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.46093
  Prefactor  = 15.3572
  norm       = 11.6994
  Prefactor  = 3.93869
  norm       = 0.0001
  Prefactor  = 33.9383
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.317322
  norm       = 6.00995
  norm       = 1.59814
  norm       = 2.5515
  norm       = 14.5243
  norm       = 2.82391
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.320318
  norm       = 0.00010001
  Normalizat = 1.10362
  Prefactor  = 0.914748
 **********
 **   18 **HESSE 
 **********

 FCN=   7681.069     FROM HESSE     STATUS=OK           413 CALLS     3132 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    49.520        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    2.6975        .14048E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    17.527        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          5.4609        2.0792        .37093E-03   -1.5241    
   5  Prefactor     15.357        14.922        .10220E-03   -1.4924    
   6  norm          11.699        16.896        .58567E-03   -1.5024    
   7  Prefactor     3.9387        5.2923        .20321E-03   -1.5311    
   8  norm          .10000E-03    10.677        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     33.938        15.893        .68792E-04   -1.4542    
  10  Prefactor     .10000E-03    86.083        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.4148        .15768E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .31732        23.497        .11238       -1.5595    
  13  norm          6.0099        6.2641        .16379E-03   -1.5218    
  14  norm          1.5981        1.5091        .10129E-03   -1.5455    
  15  norm          2.5515        1.0357        .25561E-04   -1.5388    
  16  norm          14.524        22.831        .10537E-03   -1.4946    
  17  norm          2.8239        3.2252        .16256E-03   -1.5372    
  18  Prefactor     .10000E-03    33.062        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    5.9267        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    8.0391        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .32032        .38347        .62913E-03   -1.5595    
  22  norm          .10001E-03    18.612        .34037E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.1036        .21083        .29512E-03   -.89636    
  24  Prefactor     .91475        .13462        .20459E-03   -.95628    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.31827e-09
Minuit parameter uncertainties:
  1  0.000844799
  2  2.05116e-06
  3  0.000142755
  4  2.07925
  5  14.9253
  6  16.9031
  7  5.29289
  8  3.3379e-05
  9  15.8949
  10  0.000673905
  11  1.53743e-06
  12  5.46252
  13  6.26482
  14  1.50915
  15  1.03576
  16  22.8442
  17  3.22543
  18  0.000433853
  19  1.94284e-06
  20  2.08467e-06
  21  0.383474
  22  0.000843447
  23  0.210994
  24  0.13467
Done.

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

Extracting fit parameters...

4FGL J0811.4+0146
   Spectrum: LogParabola
272         norm:  2.824e+00  3.225e+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:  9.147e-01  1.347e-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.104e+00  2.110e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.11
Ra Dec: 122.861 1.776
Photon Index (Fixed Index): 2.01 +/- 0.00
Photon Flux (Fixed Index): 2.03e-08 +/- 2.31e-08
Energy Flux (Fixed Index): 1.20e-05 +/- 1.37e-05

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

Saving results to:
/scratch/kocevski/304583/likelihoodResults_311904001_312163201_4FGL_J0811.4+0146_daily_bin280.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) = 7680.92552296
delta logL = 0.14366397993

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7680.92457819
delta logL = 0.144608755978

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.8964       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6013       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1121       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91135       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=   7680.925     FROM MIGRAD    STATUS=CONVERGED     43 CALLS      207 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.8964        4.6655        .59693E-02    .53075E-03
   2  alpha         1.6013        .76966        .45152       -.69528E-04
   3  Normalizat    1.1121        .17656        .66486E-01   -.45975E-04
   4  Prefactor     .91135        .11310        .45150E-01    .85229E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.89637
  alpha      = 1.60133
  Normalizat = 1.11207
  Prefactor  = 0.911348
 **********
 **   18 **HESSE 
 **********

 FCN=   7680.925     FROM HESSE     STATUS=OK            33 CALLS      240 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.8964        3.2461        .15626E-03   -1.5368    
   2  alpha         1.6013        .68464        .19146E-01   -.36770    
   3  Normalizat    1.1121        .20129        .29413E-03   -.89365    
   4  Prefactor     .91135        .12901        .20489E-03   -.95746    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.60852e-10
Minuit parameter uncertainties:
  1  3.24627
  2  0.694864
  3  0.201434
  4  0.129051
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/304583': 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) = 7680.92457819
delta logL = 0.144608755985

Extracting fit parameters...

4FGL J0811.4+0146
   Spectrum: LogParabola
272         norm:  2.896e+00  3.246e+00  1.000e-04  1.000e+04 ( 1.000e-12)
273        alpha:  1.601e+00  6.949e-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:  9.113e-01  1.291e-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.112e+00  2.014e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.40
Ra Dec: 122.861 1.776
Photon Index (Free Index): 1.60 +/- 0.69
Photon Flux (Free Index): 1.41e-08 +/- 1.89e-08
Energy Flux (Free Index): 2.10e-05 +/- 3.13e-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/304583/cmap_HighResolution_311904001_312163201_4FGL_J0811.4+0146_daily_bin280.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.54e-05', comment='SUCCESS', photon_flux='2.03e-08', energy_flux2='2.10e-05', photon_flux_error='2.31e-08', dlogl='1.45e-01', energy_flux='1.20e-05', photon_flux2='1.41e-08', job_status='DONE', time_completed='2021-08-29 12:19:56.057259', photon_index_error2='0.69', photon_index2='1.60', ts='1.11', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', photon_flux_upper_limit='7.66e-08', energy_flux_error2='3.13e-05', EG='1.10', time_epoch_completed='1630264796.06', return_code='0', job_id='304583', GAL2='0.91', EG2='1.11', return_code2='0', energy_flux_error='1.37e-05', photon_flux_error2='1.89e-08', ts2='1.40', photon_index='2.01' WHERE bin_id='280' AND source_name='4FGL J0811.4+0146' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 12:19:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0231>
Subject: Job 304583: <4FGL_J0811.4+0146_daily_bin280> in cluster <slac> Done

Job <4FGL_J0811.4+0146_daily_bin280> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Aug 29 12:05:21 2021
Job was executed on host(s) <bullet0231>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 12:05:23 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:23 2021
Terminated at Sun Aug 29 12:19:56 2021
Results reported at Sun Aug 29 12:19:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0811.4+0146_daily_bin280 122.861 1.7756 311904001 312163201 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 :                                   724.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             319.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   873 sec.
    Turnaround time :                            875 sec.

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

