/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 122 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 = 7037
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0811.4+0146_daily_bin109
RA = 122.861, Dec = 1.7756
tmin = 267580801, tmax = 267840001
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='303028', job_status='RUN', time_executed='2021-08-29 12:02:46.824318', time_epoch_executed='1630263766.82' WHERE source_name='4FGL J0811.4+0146' and cadence='daily' and bin_id='109'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/303028

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

Retrieving the FT1 file...

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

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

Retrieving 44 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/303028/ft1_4FGL_J0811.4+0146_daily_bin109.fits


Retrieving the FT1 file...

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

Retrieving 44 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/303028/ft2_4FGL_J0811.4+0146_daily_bin109.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/303028/ft1_4FGL_J0811.4+0146_daily_bin109.fits outfile=/scratch/kocevski/303028/ft1_filteredMKT_4FGL_J0811.4+0146_daily_bin109.fits ra=122.861 dec=1.7756 rad=12.0 tmin=267580801.0 tmax=267840001.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 1.54
user 1.21
sys 0.29

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/303028/ft1_filtered_4FGL_J0811.4+0146_daily_bin109.fits" evtable="EVENTS" scfile=/scratch/kocevski/303028/ft2_4FGL_J0811.4+0146_daily_bin109.fits sctable="SC_DATA" outfile=/scratch/kocevski/303028/ltcube_267580801_267840001_4FGL_J0811.4+0146_daily_bin109.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/303028/ft2_4FGL_J0811.4+0146_daily_bin109.fits
.....................!
real 11.99
user 11.44
sys 0.46

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/303028/ft1_filtered_4FGL_J0811.4+0146_daily_bin109.fits evtable="EVENTS" scfile=/scratch/kocevski/303028/ft2_4FGL_J0811.4+0146_daily_bin109.fits sctable="SC_DATA" expcube=/scratch/kocevski/303028/ltcube_267580801_267840001_4FGL_J0811.4+0146_daily_bin109.fits outfile=/scratch/kocevski/303028/expmap_267580801_267840001_4FGL_J0811.4+0146_daily_bin109.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/303028/ltcube_267580801_267840001_4FGL_J0811.4+0146_daily_bin109.fits
.....................!
real 191.39
user 185.35
sys 5.45

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 151 point sources and 0 extended sources

Setting source of interest to:
4FGL J0811.4+0146 @ 122.861 1.7756

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/303028/ft1_filtered_4FGL_J0811.4+0146_daily_bin109.fits scfile=/scratch/kocevski/303028/ft2_4FGL_J0811.4+0146_daily_bin109.fits outfile=/scratch/kocevski/303028/cmap_267580801_267840001_4FGL_J0811.4+0146_daily_bin109.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.66
user 0.35
sys 0.29

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/303028/ft1_filtered_4FGL_J0811.4+0146_daily_bin109.fits scfile=/scratch/kocevski/303028/ft2_4FGL_J0811.4+0146_daily_bin109.fits outfile=/scratch/kocevski/303028/cmap_HighResolution_267580801_267840001_4FGL_J0811.4+0146_daily_bin109.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.67
user 0.35
sys 0.31

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .91521       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    5.2142       1.0000         .10000E-03   10000.    
     5 'Prefactor '    32.303       1.0000         .10000E-03   10000.    
     6 'norm      '    9.2793       1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.7226       1.0000         .10000E-03   10000.    
     8 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    15.977       1.0000         .10000E-03   10000.    
    12 'Prefactor '    16.436       1.0000         .10000E-03   10000.    
    13 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.1778       1.0000         .10000E-03   10000.    
    15 'norm      '    9.0752       1.0000         .10000E-03   10000.    
    16 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.4122       1.0000         .10000E-03   10000.    
    18 'Prefactor '    31.244       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10204E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2.6460       1.0000         .10000E-03   10000.    
    22 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0025       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0174       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=   9094.740     FROM MIGRAD    STATUS=CONVERGED    534 CALLS     2697 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.964       -.45562E-05** at limit **
   2  Prefactor     .90802        7.1715       -.24849E-05   -.48836E-04
   3  Prefactor     .10000E-03    37.261        .28251E-04** at limit **
   4  norm          5.2140        2.0187       -.14684E-06    .64282E-04
   5  Prefactor     32.301        31.865       -.27303E-05    .35582E-04
   6  norm          9.2804        9.4366       -.66380E-07    .18133E-04
   7  Prefactor     5.7215        3.6922       -.25379E-05   -.24917E-04
   8  norm          .10000E-03    8.5692        .73087E-06** at limit **
   9  Prefactor     .10000E-03    2.9499       -.64286E-07** at limit **
  10  Prefactor     .10000E-03    44.617       -.26692E-04** at limit **
  11  Prefactor     15.977        7.9512       -.27234E-07    .88337E-04
  12  Prefactor     16.432        17.507       -.27143E-06    .16378E-04
  13  norm          .10000E-03    2.7852        .62079E-07** at limit **
  14  norm          1.1789        2.5809       -.11618E-05   -.16334E-02
  15  norm          9.0750        1.7389       -.43708E-07    .33062E-03
  16  norm          .10000E-03    5.5896        .34194E-06** at limit **
  17  norm          2.4122        1.9475        .11696E-07    .19023E-03
  18  Prefactor     31.222        29.592       -.21014E-04    .31187E-04
  19  norm          .10000E-03    6.8876        .88917E-06** at limit **
  20  Prefactor     .10000E-03    7.1141       -.15444E-05** at limit **
  21  norm          2.6459        1.0985       -.56206E-07   -.33429E-04
  22  norm          .10000E-03    11.040        .58898E-06** at limit **
  23  Normalizat    1.0028        .18363        .52987E-05   -.71902E-04
  24  Prefactor     1.0171        .11863       -.27413E-06    .42913E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.908018
  Prefactor  = 0.0001
  norm       = 5.21405
  Prefactor  = 32.3005
  norm       = 9.28043
  Prefactor  = 5.72152
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.9771
  Prefactor  = 16.4322
  norm       = 0.0001
  norm       = 1.17889
  norm       = 9.07501
  norm       = 0.0001
  norm       = 2.4122
  Prefactor  = 31.2221
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.64588
  norm       = 0.0001
  Normalizat = 1.00284
  Prefactor  = 1.01715
 **********
 **   18 **HESSE 
 **********

 FCN=   9094.740     FROM HESSE     STATUS=OK           399 CALLS     3096 TOTAL
                     EDM=   .52E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    18.980        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .90802        27.749        .47680E-02   -1.5517    
   3  Prefactor     .10000E-03    37.301        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          5.2140        2.0100        .78941E-04   -1.5251    
   5  Prefactor     32.301        31.934        .70501E-04   -1.4571    
   6  norm          9.2804        9.4454        .13156E-03   -1.5099    
   7  Prefactor     5.7215        3.6962        .14212E-03   -1.5230    
   8  norm          .10000E-03    8.5995        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.9531        .15995E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    44.554        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     15.977        7.9263        .10020E-03   -1.4908    
  12  Prefactor     16.432        17.511        .98791E-04   -1.4897    
  13  norm          .10000E-03    2.7931        .15541E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.1789        2.5588        .20973E-03   -1.5491    
  15  norm          9.0750        1.7265        .50879E-04   -1.5105    
  16  norm          .10000E-03    5.5981        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.4122        1.9509        .11644E-03   -1.5397    
  18  Prefactor     31.222        29.564        .71682E-04   -1.4590    
  19  norm          .10000E-03    6.8910        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    7.1325        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.6459        1.0968        .61399E-04   -1.5383    
  22  norm          .10000E-03    11.280        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.0028        .20875        .33037E-03   -.92935    
  24  Prefactor     1.0171        .13638        .21189E-03   -.92160    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.21056e-08
Minuit parameter uncertainties:
  1  2.61799e-06
  2  10.0439
  3  0.000204242
  4  2.01
  5  31.951
  6  9.44693
  7  3.69639
  8  1.42111e-05
  9  1.19488e-05
  10  2.6212e-05
  11  7.92679
  12  17.5161
  13  4.77014e-06
  14  2.55903
  15  1.72653
  16  3.63661e-05
  17  1.95092
  18  29.5779
  19  3.91572e-06
  20  5.86886e-05
  21  1.0968
  22  0.000107392
  23  0.208923
  24  0.136427
Done.

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

Extracting fit parameters...

4FGL J0811.4+0146
   Spectrum: LogParabola
272         norm:  2.412e+00  1.951e+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.017e+00  1.364e-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.003e+00  2.089e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.87
Ra Dec: 122.861 1.776
Photon Index (Fixed Index): 2.01 +/- 0.00
Photon Flux (Fixed Index): 1.73e-08 +/- 1.40e-08
Energy Flux (Fixed Index): 1.03e-05 +/- 8.29e-06

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) = 9093.87513613
delta logL = 0.864917889679

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9093.79800006
delta logL = 0.942053959616

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.5462       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.1457       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0114       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0160       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=   9093.798     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      210 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.5464        1.3960        .85672E-02   -.30271E-03
   2  alpha         1.1457        .39886        .43858       -.47374E-04
   3  Normalizat    1.0115        .17582        .74383E-01    .24173E-04
   4  Prefactor     1.0160        .11408        .42559E-01    .72236E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.54638
  alpha      = 1.14569
  Normalizat = 1.01145
  Prefactor  = 1.01603
 **********
 **   18 **HESSE 
 **********

 FCN=   9093.798     FROM HESSE     STATUS=OK            33 CALLS      243 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.5464        1.9639        .10279E-03   -1.5459    
   2  alpha         1.1457        .61180        .17487E-01   -.57249    
   3  Normalizat    1.0115        .19962        .32914E-03   -.92648    
   4  Prefactor     1.0160        .12976        .21203E-03   -.92197    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.12812e-09
Minuit parameter uncertainties:
  1  1.96401
  2  0.620794
  3  0.199767
  4  0.129797
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/303028': 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) = 9093.79800004
delta logL = 0.942053987736

Extracting fit parameters...

4FGL J0811.4+0146
   Spectrum: LogParabola
272         norm:  1.546e+00  1.964e+00  1.000e-04  1.000e+04 ( 1.000e-12)
273        alpha:  1.146e+00  6.208e-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.016e+00  1.298e-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.011e+00  1.998e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.75
Ra Dec: 122.861 1.776
Photon Index (Free Index): 1.15 +/- 0.62
Photon Flux (Free Index): 6.71e-09 +/- 7.74e-09
Energy Flux (Free Index): 3.55e-05 +/- 4.72e-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/303028/cmap_HighResolution_267580801_267840001_4FGL_J0811.4+0146_daily_bin109.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.73e-08', energy_flux2='3.55e-05', photon_flux_error='1.40e-08', dlogl='9.42e-01', energy_flux='1.03e-05', photon_flux2='6.71e-09', job_status='DONE', time_completed='2021-08-29 12:14:23.016277', photon_index_error2='0.62', photon_index2='1.15', ts='7.87', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', energy_flux_error2='4.72e-05', EG='1.00', time_epoch_completed='1630264463.02', return_code='0', job_id='303028', GAL2='1.02', EG2='1.01', return_code2='0', energy_flux_error='8.29e-06', photon_flux_error2='7.74e-09', ts2='9.75', photon_index='2.01' WHERE bin_id='109' AND source_name='4FGL J0811.4+0146' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 12:14:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0036>
Subject: Job 303028: <4FGL_J0811.4+0146_daily_bin109> in cluster <slac> Done

Job <4FGL_J0811.4+0146_daily_bin109> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun Aug 29 12:00:30 2021
Job was executed on host(s) <bullet0036>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 12:00:32 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:32 2021
Terminated at Sun Aug 29 12:14:23 2021
Results reported at Sun Aug 29 12:14:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0811.4+0146_daily_bin109 122.861 1.7756 267580801 267840001 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.00 sec.
    Max Memory :                                 1148 MB
    Average Memory :                             310.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   831 sec.
    Turnaround time :                            833 sec.

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

