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


Performing analysis on: 4FGL_J0805.2-0110_daily_bin1113
RA = 121.3, Dec = -1.181
tmin = 527817601, tmax = 528076801
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='124505', job_status='RUN', time_executed='2021-08-29 01:41:18.956504', time_epoch_executed='1630226478.96' WHERE source_name='4FGL J0805.2-0110' and cadence='daily' and bin_id='1113'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/124505

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/124505/ft1_4FGL_J0805.2-0110_daily_bin1113.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/124505/ft2_4FGL_J0805.2-0110_daily_bin1113.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/124505/ft1_4FGL_J0805.2-0110_daily_bin1113.fits outfile=/scratch/kocevski/124505/ft1_filteredMKT_4FGL_J0805.2-0110_daily_bin1113.fits ra=121.3 dec=-1.181 rad=12.0 tmin=527817601.0 tmax=528076801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.52
user 3.28
sys 1.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/124505/ft2_4FGL_J0805.2-0110_daily_bin1113.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/124505/ft2_4FGL_J0805.2-0110_daily_bin1113.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/124505/ft1_filteredMKT_4FGL_J0805.2-0110_daily_bin1113.fits evtable="EVENTS" outfile="/scratch/kocevski/124505/ft1_filtered_4FGL_J0805.2-0110_daily_bin1113.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/124505/ft1_filtered_4FGL_J0805.2-0110_daily_bin1113.fits" evtable="EVENTS" scfile=/scratch/kocevski/124505/ft2_4FGL_J0805.2-0110_daily_bin1113.fits sctable="SC_DATA" outfile=/scratch/kocevski/124505/ltcube_527817601_528076801_4FGL_J0805.2-0110_daily_bin1113.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/124505/ft2_4FGL_J0805.2-0110_daily_bin1113.fits
.....................!
real 13.03
user 11.50
sys 1.41

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/124505/ft1_filtered_4FGL_J0805.2-0110_daily_bin1113.fits evtable="EVENTS" scfile=/scratch/kocevski/124505/ft2_4FGL_J0805.2-0110_daily_bin1113.fits sctable="SC_DATA" expcube=/scratch/kocevski/124505/ltcube_527817601_528076801_4FGL_J0805.2-0110_daily_bin1113.fits outfile=/scratch/kocevski/124505/expmap_527817601_528076801_4FGL_J0805.2-0110_daily_bin1113.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/124505/ltcube_527817601_528076801_4FGL_J0805.2-0110_daily_bin1113.fits
.....................!
real 194.07
user 187.67
sys 5.51

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 152 point sources and 0 extended sources

Setting source of interest to:
4FGL J0805.2-0110 @ 121.3 -1.181

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/124505/ft1_filtered_4FGL_J0805.2-0110_daily_bin1113.fits scfile=/scratch/kocevski/124505/ft2_4FGL_J0805.2-0110_daily_bin1113.fits outfile=/scratch/kocevski/124505/cmap_527817601_528076801_4FGL_J0805.2-0110_daily_bin1113.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=121.3 yref=-1.181 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.63
user 0.36
sys 1.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/124505/ft1_filtered_4FGL_J0805.2-0110_daily_bin1113.fits scfile=/scratch/kocevski/124505/ft2_4FGL_J0805.2-0110_daily_bin1113.fits outfile=/scratch/kocevski/124505/cmap_HighResolution_527817601_528076801_4FGL_J0805.2-0110_daily_bin1113.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=121.3 yref=-1.181 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.60
user 0.37
sys 1.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/124505/ft1_filtered_4FGL_J0805.2-0110_daily_bin1113.fits evtable="EVENTS" scfile=/scratch/kocevski/124505/ft2_4FGL_J0805.2-0110_daily_bin1113.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/124505/Model_4FGL_J0805.2-0110_daily_bin1113.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/124505/ft1_filtered_4FGL_J0805.2-0110_daily_bin1113.fits.....................!
real 122.80
user 117.86
sys 2.52

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/124505/ft1_filtered_4FGL_J0805.2-0110_daily_bin1113.fits', '/scratch/kocevski/124505/ft2_4FGL_J0805.2-0110_daily_bin1113.fits', expMap='/scratch/kocevski/124505/expmap_527817601_528076801_4FGL_J0805.2-0110_daily_bin1113.fits', expCube='/scratch/kocevski/124505/ltcube_527817601_528076801_4FGL_J0805.2-0110_daily_bin1113.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/124505/Model_4FGL_J0805.2-0110_daily_bin1113.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0805.2-0110'

4FGL J0805.2-0110
   Spectrum: LogParabola
254         norm:  3.803e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
255        alpha:  2.349e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
256         beta:  1.330e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
257           Eb:  5.643e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/124505/ft1_filtered_4FGL_J0805.2-0110_daily_bin1113.fits
Spacecraft file(s): /scratch/kocevski/124505/ft2_4FGL_J0805.2-0110_daily_bin1113.fits
Exposure map: /scratch/kocevski/124505/expmap_527817601_528076801_4FGL_J0805.2-0110_daily_bin1113.fits
Exposure cube: /scratch/kocevski/124505/ltcube_527817601_528076801_4FGL_J0805.2-0110_daily_bin1113.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/124505/Model_4FGL_J0805.2-0110_daily_bin1113.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) = 9694.38287469

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.8868       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.819       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11468E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    4.2735       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    3.6204       1.0000         .10000E-03   10000.    
     8 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.7693       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.1622       1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.178       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.2709       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.4557       1.0000         .10000E-03   10000.    
    17 'norm      '    12.460       1.0000         .10000E-03   10000.    
    18 'norm      '    6.0153       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10476E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    14.719       1.0000         .10000E-03   10000.    
    21 'norm      '    12.758       1.0000         .10000E-03   10000.    
    22 'Prefactor '    26.279       1.0000         .10000E-03   10000.    
    23 'norm      '    5.4408       1.0000         .10000E-03   10000.    
    24 'norm      '    1.3441       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.3036       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .72778       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5040E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9694.380     FROM MIGRAD    STATUS=CONVERGED    625 CALLS     3104 TOTAL
                     EDM=   .30E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.7925        112.34       -.23763E-05   -.41632E-05
   2  Prefactor     .10000E-03    3.0325       -.86405E-10** at limit **
   3  Prefactor     11.819        8.7427       -.10868E-06   -.53657E-05
   4  Prefactor     .10000E-03    35.950       -.19203E-06** at limit **
   5  norm          4.2726        1.6839       -.18488E-07    .35669E-05
   6  Prefactor     .10000E-03    9.0379        .41675E-07** at limit **
   7  norm          3.6211        6.7228        .31403E-06   -.34391E-03
   8  norm          .10000E-03    11.077       -.22002E-07** at limit **
   9  norm          2.7684        2.8214       -.29362E-07   -.74339E-04
  10  Prefactor     5.1634        7.3492       -.58456E-07   -.50225E-05
  11  Prefactor     11.177        6.2230       -.41541E-07    .70757E-05
  12  Prefactor     .10000E-03    19.286        .79139E-07** at limit **
  13  norm          .10000E-03    4.1333       -.15695E-07** at limit **
  14  norm          1.2716        1.9871       -.44148E-07   -.15516E-03
  15  Prefactor     .10000E-03    2.3313        .80279E-09** at limit **
  16  norm          1.4556        .93036       -.73249E-08   -.42449E-04
  17  norm          12.463        14.398       -.78894E-06   -.30760E-05
  18  norm          6.0156        3.4483       -.26638E-07   -.73513E-03
  19  Prefactor     .10000E-03    7.9124        .33791E-07** at limit **
  20  Prefactor     14.720        10.145       -.17819E-06   -.23313E-05
  21  norm          12.758        12.692       -.37446E-07    .22352E-05
  22  Prefactor     26.288        22.697       -.31897E-05   -.11649E-04
  23  norm          5.4409        1.3213        .76452E-08    .49952E-04
  24  norm          1.3445        3.7789       -.85938E-07   -.13150E-03
  25  Normalizat    1.3035        .16985        .68885E-06   -.21761E-04
  26  Prefactor     .72780        .85040E-01   -.81579E-07    .58777E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.79252
  Prefactor  = 0.0001
  Prefactor  = 11.8189
  Prefactor  = 0.0001
  norm       = 4.27262
  Prefactor  = 0.0001
  norm       = 3.62107
  norm       = 0.0001
  norm       = 2.7684
  Prefactor  = 5.16343
  Prefactor  = 11.1769
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.27158
  Prefactor  = 0.0001
  norm       = 1.4556
  norm       = 12.4632
  norm       = 6.01559
  Prefactor  = 0.0001
  Prefactor  = 14.7203
  norm       = 12.7576
  Prefactor  = 26.288
  norm       = 5.44089
  norm       = 1.34455
  Normalizat = 1.30346
  Prefactor  = 0.727805
 **********
 **   18 **HESSE 
 **********

 FCN=   9694.380     FROM HESSE     STATUS=OK           466 CALLS     3570 TOTAL
                     EDM=   .64E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.7925        114.22        .30298E-03   -1.5440    
   2  Prefactor     .10000E-03    3.0532        .16741E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     11.819        8.7733        .11653E-03   -1.5020    
   4  Prefactor     .10000E-03    36.204        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          4.2726        1.6843        .76491E-04   -1.5295    
   6  Prefactor     .10000E-03    9.0496        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.6211        11.676        .10617E-02   -1.5327    
   8  norm          .10000E-03    11.154        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.7684        2.8289        .16043E-03   -1.5375    
  10  Prefactor     5.1634        7.3453        .17694E-03   -1.5253    
  11  Prefactor     11.177        6.2155        .11983E-03   -1.5039    
  12  Prefactor     .10000E-03    19.457        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    4.1731        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.2716        1.9584        .16254E-03   -1.5482    
  15  Prefactor     .10000E-03    2.3391        .14674E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.4556        .91737        .69912E-04   -1.5467    
  17  norm          12.463        14.395        .11348E-03   -1.5002    
  18  norm          6.0156        3.9261        .75232E-03   -1.5217    
  19  Prefactor     .10000E-03    7.9169        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     14.720        10.122        .10440E-03   -1.4940    
  21  norm          12.758        12.684        .11215E-03   -1.4993    
  22  Prefactor     26.288        22.726        .78146E-04   -1.4682    
  23  norm          5.4409        1.3258        .53259E-04   -1.5241    
  24  norm          1.3445        3.7848        .31615E-03   -1.5476    
  25  Normalizat    1.3035        .18971        .29797E-03   -.83463    
  26  Prefactor     .72780        .96235E-01    .19717E-03   -1.0245    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.35044e-10
Minuit parameter uncertainties:
  1  28.6742
  2  7.39484e-07
  3  8.77422
  4  1.12823e-05
  5  1.68435
  6  1.76545e-06
  7  11.6835
  8  9.48141e-08
  9  2.829
  10  7.34659
  11  6.21589
  12  1.51696e-05
  13  1.86839e-06
  14  1.95855
  15  1.6915e-07
  16  0.91738
  17  14.3995
  18  3.92626
  19  8.24528e-06
  20  10.123
  21  12.6868
  22  22.7336
  23  1.32581
  24  3.78548
  25  0.189808
  26  0.0962574
Done.

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

Extracting fit parameters...

4FGL J0805.2-0110
   Spectrum: LogParabola
254         norm:  1.000e-04  1.868e-06  1.000e-04  1.000e+04 ( 1.000e-12)
255        alpha:  2.349e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
256         beta:  1.330e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
257           Eb:  5.643e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
501    Prefactor:  7.278e-01  9.626e-02  0.000e+00  1.000e+01 ( 1.000e+00)
502        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
503        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
500   Normalization:  1.303e+00  1.898e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 121.300 -1.181
Photon Flux Upper Limit: 5.18e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.66e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/124505/likelihoodResults_527817601_528076801_4FGL_J0805.2-0110_daily_bin1113.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) = 9694.38119351
delta logL = -0.00114182574907

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9694.38005169
delta logL = -7.32688931748e-09

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   9694.204     FROM MIGRAD    STATUS=FAILED       215 CALLS      361 TOTAL
                     EDM=   .16E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .28048        36.370        .18142E-01    .31039E-02
   2  alpha         5.0000        4.7578        .16496    ** at limit **
   3  Normalizat    1.2671        .41086        .29797E-03   -.63031E-04
   4  Prefactor     .73838        .68868E-01    .19717E-03   -.13838E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   9694.204     FROM SIMPLEX   STATUS=UNCHANGED    179 CALLS      540 TOTAL
                     EDM=   .87E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .28048        36.370        .30065E-07    .31039E-02
   2  alpha         5.0000        4.7578        .70402E-02** at limit **
   3  Normalizat    1.2671        .41086        .38804E-07   -.63031E-04
   4  Prefactor     .73838        .68868E-01    .32154E-08   -.13838E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9694.204     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      573 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .28048        .50294        .81291E-03    .12233E-01
   2  alpha         5.0000        3.2925        .32992E-01** at limit **
   3  Normalizat    1.2671        .18647        .11919E-04   -.64862E-04
   4  Prefactor     .73838        .92110E-01    .78869E-05    .11532E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.280477
  alpha      = 5
  Normalizat = 1.26715
  Prefactor  = 0.738381
 **********
 **   18 **HESSE 
 **********

 FCN=   9694.204     FROM HESSE     STATUS=OK            25 CALLS      598 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .28048        .50135        .16258E-03   -1.5602    
   2  alpha         5.0000        3.2920        .65984E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.2671        .18582        .23837E-05   -.84552    
   4  Prefactor     .73838        .91918E-01    .15774E-05   -1.0204    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.25272e-11
Minuit parameter uncertainties:
  1  0.501354
  2  1.18684e-06
  3  0.185915
  4  0.0919368
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/124505': 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) = 9694.20366395
delta logL = 0.176387734995

Extracting fit parameters...

4FGL J0805.2-0110
   Spectrum: LogParabola
254         norm:  2.805e-01  5.014e-01  1.000e-04  1.000e+04 ( 1.000e-12)
255        alpha:  5.000e+00  1.187e-06  0.000e+00  5.000e+00 ( 1.000e+00)
256         beta:  1.330e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
257           Eb:  5.643e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
501    Prefactor:  7.384e-01  9.194e-02  0.000e+00  1.000e+01 ( 1.000e+00)
502        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
503        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
500   Normalization:  1.267e+00  1.859e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 121.300 -1.181

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/124505/cmap_HighResolution_527817601_528076801_4FGL_J0805.2-0110_daily_bin1113.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.66e-05', job_status='DONE', photon_flux_upper_limit='5.18e-08', time_completed='2021-08-29 01:57:13.145357', job_id='124505', GAL2='0.74', fit_tolerance='1e-08', EG2='1.27', EG='1.30', time_epoch_completed='1630227433.15', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.73', dlogl='1.76e-01', ts2='0.38', photon_index_error='0.00', photon_index='2.35' WHERE bin_id='1113' AND source_name='4FGL J0805.2-0110' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 01:57:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0239>
Subject: Job 124505: <4FGL_J0805.2-0110_daily_bin1113> in cluster <slac> Done

Job <4FGL_J0805.2-0110_daily_bin1113> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun Aug 29 01:40:45 2021
Job was executed on host(s) <bullet0239>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 01:40:47 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 29 01:40:47 2021
Terminated at Sun Aug 29 01:57:14 2021
Results reported at Sun Aug 29 01:57:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0805.2-0110_daily_bin1113 121.3 -1.181 527817601 528076801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0805.2-0110 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   957.30 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             338.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   986 sec.
    Turnaround time :                            989 sec.

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

