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


Performing analysis on: 4FGL_J0811.4+0146_daily_bin689
RA = 122.861, Dec = 1.7756
tmin = 417916801, tmax = 418176001
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='307913', job_status='RUN', time_executed='2021-08-29 12:19:46.534845', time_epoch_executed='1630264786.53' WHERE source_name='4FGL J0811.4+0146' and cadence='daily' and bin_id='689'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/307913

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/307913/ft1_4FGL_J0811.4+0146_daily_bin689.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/307913/ft2_4FGL_J0811.4+0146_daily_bin689.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/307913/ft1_4FGL_J0811.4+0146_daily_bin689.fits outfile=/scratch/kocevski/307913/ft1_filteredMKT_4FGL_J0811.4+0146_daily_bin689.fits ra=122.861 dec=1.7756 rad=12.0 tmin=417916801.0 tmax=418176001.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 8.82
user 7.02
sys 1.61

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/307913/ft2_4FGL_J0811.4+0146_daily_bin689.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/307913/ft1_filteredMKT_4FGL_J0811.4+0146_daily_bin689.fits evtable="EVENTS" outfile="/scratch/kocevski/307913/ft1_filtered_4FGL_J0811.4+0146_daily_bin689.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 2.24
user 0.31
sys 1.57

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/307913/ft1_filtered_4FGL_J0811.4+0146_daily_bin689.fits" evtable="EVENTS" scfile=/scratch/kocevski/307913/ft2_4FGL_J0811.4+0146_daily_bin689.fits sctable="SC_DATA" outfile=/scratch/kocevski/307913/ltcube_417916801_418176001_4FGL_J0811.4+0146_daily_bin689.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/307913/ft2_4FGL_J0811.4+0146_daily_bin689.fits
.....................!
real 13.61
user 11.62
sys 1.82

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/307913/ft1_filtered_4FGL_J0811.4+0146_daily_bin689.fits evtable="EVENTS" scfile=/scratch/kocevski/307913/ft2_4FGL_J0811.4+0146_daily_bin689.fits sctable="SC_DATA" expcube=/scratch/kocevski/307913/ltcube_417916801_418176001_4FGL_J0811.4+0146_daily_bin689.fits outfile=/scratch/kocevski/307913/expmap_417916801_418176001_4FGL_J0811.4+0146_daily_bin689.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/307913/ltcube_417916801_418176001_4FGL_J0811.4+0146_daily_bin689.fits
.....................!
real 192.82
user 185.21
sys 7.14

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/307913/ft1_filtered_4FGL_J0811.4+0146_daily_bin689.fits scfile=/scratch/kocevski/307913/ft2_4FGL_J0811.4+0146_daily_bin689.fits outfile=/scratch/kocevski/307913/cmap_417916801_418176001_4FGL_J0811.4+0146_daily_bin689.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.90
user 0.38
sys 1.50

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/307913/ft1_filtered_4FGL_J0811.4+0146_daily_bin689.fits scfile=/scratch/kocevski/307913/ft2_4FGL_J0811.4+0146_daily_bin689.fits outfile=/scratch/kocevski/307913/cmap_HighResolution_417916801_418176001_4FGL_J0811.4+0146_daily_bin689.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.90
user 0.40
sys 1.48

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    18.572       1.0000         .10000E-03   10000.    
     4 'norm      '    16.853       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    9.1994       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .21012       1.0000         .10000E-03   10000.    
     8 'norm      '    .10403E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    26.255       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.7557       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.5634       1.0000         .10000E-03   10000.    
    13 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .36565E-01   1.0000         .10000E-03   10000.    
    15 'norm      '    .84963       1.0000         .10000E-03   10000.    
    16 'norm      '    .10333E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    12.906       1.0000         .10000E-03   10000.    
    18 'Prefactor '    46.895       1.0000         .10000E-03   10000.    
    19 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .21207E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2449       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .86186       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=   7542.095     FROM MIGRAD    STATUS=CONVERGED    564 CALLS     2758 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    41.061       -.53339E-05** at limit **
   2  Prefactor     .10000E-03    2.8725        .47999E-08** at limit **
   3  Prefactor     18.572        26.650       -.16023E-06   -.49555E-05
   4  norm          16.853        3.3131       -.97308E-08   -.12131E-03
   5  Prefactor     .10000E-03    9.7988        .88117E-08** at limit **
   6  norm          9.1989        9.2935        .13296E-06    .20265E-05
   7  Prefactor     .21058        3.9937       -.23190E-07    .42142E-04
   8  norm          .10000E-03    41.686       -.36385E-05** at limit **
   9  Prefactor     26.262        16.429       -.51686E-06    .42533E-04
  10  Prefactor     .10000E-03    83.010        .16071E-05** at limit **
  11  Prefactor     1.7533        2.0430        .17806E-06   -.10450E-02
  12  Prefactor     2.5847        95.923        .35104E-04   -.42962E-06
  13  norm          .10000E-03    5.9851       -.55379E-07** at limit **
  14  norm          .42488E-01    1.0141        .91412E-07   -.14246E-03
  15  norm          .84933        .83725        .35251E-07   -.11482E-03
  16  norm          .10000E-03    31.833        .60199E-06** at limit **
  17  norm          12.906        5.2518       -.33878E-06   -.23018E-03
  18  Prefactor     46.899        36.335        .13708E-05   -.55561E-04
  19  norm          .10000E-03    44.496        .74204E-05** at limit **
  20  Prefactor     .10000E-03    6.7018        .96831E-09** at limit **
  21  norm          .10000E-03    .40006        .34770E-07** at limit **
  22  norm          .10000E-03    4.2136        .43431E-07** at limit **
  23  Normalizat    1.2447        .19527       -.17615E-05   -.87996E-04
  24  Prefactor     .86197        .12094        .19151E-06   -.25383E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.5716
  norm       = 16.8526
  Prefactor  = 0.0001
  norm       = 9.19895
  Prefactor  = 0.21058
  norm       = 0.0001
  Prefactor  = 26.2616
  Prefactor  = 0.0001
  Prefactor  = 1.75328
  Prefactor  = 2.58467
  norm       = 0.0001
  norm       = 0.0424878
  norm       = 0.849328
  norm       = 0.000100004
  norm       = 12.9059
  Prefactor  = 46.899
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 1.2447
  Prefactor  = 0.861971
 **********
 **   18 **HESSE 
 **********

 FCN=   7542.095     FROM HESSE     STATUS=OK           403 CALLS     3161 TOTAL
                     EDM=   .35E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    41.101        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    2.8753        .14375E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     18.572        26.646        .92938E-04   -1.4846    
   4  norm          16.853        3.3117        .66618E-04   -1.4887    
   5  Prefactor     .10000E-03    9.8026        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          9.1989        9.3015        .13214E-03   -1.5101    
   7  Prefactor     .21058        21.483        .32765E-02   -1.5616    
   8  norm          .10000E-03    41.756        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     26.262        16.318        .78182E-04   -1.4683    
  10  Prefactor     .10000E-03    83.020        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.7533        7.8766        .15816E-02   -1.5443    
  12  Prefactor     2.5847        96.111        .25497E-03   -1.5386    
  13  norm          .10000E-03    6.0252        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .42488E-01    13.102        .16596E-02   -1.5667    
  15  norm          .84933        .79709        .74903E-03   -1.5524    
  16  norm          .10000E-03    31.932        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          12.906        5.2550        .11150E-03   -1.4989    
  18  Prefactor     46.899        36.343        .58552E-04   -1.4337    
  19  norm          .10000E-03    45.988        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    6.7177        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    3.6442        .10453E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    4.2572        .17403E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.2447        .22240        .29181E-03   -.85232    
  24  Prefactor     .86197        .13985        .21996E-03   -.97483    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.53904e-08
Minuit parameter uncertainties:
  1  9.47048e-06
  2  8.53604e-07
  3  26.6634
  4  3.31176
  5  1.71261e-06
  6  9.30298
  7  4.25443
  8  0.000117669
  9  16.3209
  10  1.98253e-05
  11  7.43373
  12  31.5766
  13  9.14353e-08
  14  1.49078
  15  0.797104
  16  0.000742614
  17  5.25516
  18  36.3604
  19  0.000116447
  20  1.7315e-07
  21  5.6443e-06
  22  7.95599e-06
  23  0.222571
  24  0.139905
Done.

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

Extracting fit parameters...

4FGL J0811.4+0146
   Spectrum: LogParabola
272         norm:  1.291e+01  5.255e+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:  8.620e-01  1.399e-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.245e+00  2.226e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 25.62
Ra Dec: 122.861 1.776
Photon Index (Fixed Index): 2.01 +/- 0.00
Photon Flux (Fixed Index): 9.26e-08 +/- 3.77e-08
Energy Flux (Fixed Index): 5.49e-05 +/- 2.23e-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) = 7542.08596576
delta logL = 0.00905352489099

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7542.08552664
delta logL = 0.0094926399961

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.906       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9537       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2502       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86029       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=   7542.086     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      194 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.906        10.340        .27875E-02    .49281E-02
   2  alpha         1.9537        .64710        .28809        .12133E-04
   3  Normalizat    1.2499        .19410        .65855E-01    .34671E-04
   4  Prefactor     .86046        .12084        .44497E-01   -.38077E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 12.9059
  alpha      = 1.95374
  Normalizat = 1.24989
  Prefactor  = 0.860463
 **********
 **   18 **HESSE 
 **********

 FCN=   7542.086     FROM HESSE     STATUS=OK            31 CALLS      225 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.906        5.2817        .11150E-03   -1.4989    
   2  alpha         1.9537        .37445        .11168E-01   -.22028    
   3  Normalizat    1.2499        .21749        .29132E-03   -.85075    
   4  Prefactor     .86046        .13778        .22015E-03   -.97537    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.19469e-09
Minuit parameter uncertainties:
  1  5.28192
  2  0.375933
  3  0.217645
  4  0.137832
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/307913': 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) = 7542.08552566
delta logL = 0.00949362310803

Extracting fit parameters...

4FGL J0811.4+0146
   Spectrum: LogParabola
272         norm:  1.291e+01  5.282e+00  1.000e-04  1.000e+04 ( 1.000e-12)
273        alpha:  1.954e+00  3.759e-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:  8.605e-01  1.378e-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.250e+00  2.176e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 25.58
Ra Dec: 122.861 1.776
Photon Index (Free Index): 1.95 +/- 0.38
Photon Flux (Free Index): 8.72e-08 +/- 5.19e-08
Energy Flux (Free Index): 5.71e-05 +/- 2.93e-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/307913/cmap_HighResolution_417916801_418176001_4FGL_J0811.4+0146_daily_bin689.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.26e-08', energy_flux2='5.71e-05', photon_flux_error='3.77e-08', dlogl='9.49e-03', energy_flux='5.49e-05', photon_flux2='8.72e-08', job_status='DONE', time_completed='2021-08-29 12:31:03.942989', photon_index_error2='0.38', photon_index2='1.95', ts='25.62', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', energy_flux_error2='2.93e-05', EG='1.24', time_epoch_completed='1630265463.94', return_code='0', job_id='307913', GAL2='0.86', EG2='1.25', return_code2='0', energy_flux_error='2.23e-05', photon_flux_error2='5.19e-08', ts2='25.58', photon_index='2.01' WHERE bin_id='689' AND source_name='4FGL J0811.4+0146' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 12:31:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0139>
Subject: Job 307913: <4FGL_J0811.4+0146_daily_bin689> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0811.4+0146_daily_bin689 122.861 1.7756 417916801 418176001 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 :                                   694.12 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             272.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   924 sec.
    Turnaround time :                            926 sec.

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

