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


Performing analysis on: 4FGL_J0805.2-0110_daily_bin1560
RA = 121.3, Dec = -1.181
tmin = 643680001, tmax = 643939201
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='127768', job_status='RUN', time_executed='2021-08-29 01:54:51.716843', time_epoch_executed='1630227291.72' WHERE source_name='4FGL J0805.2-0110' and cadence='daily' and bin_id='1560'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/127768

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/127768/ft1_4FGL_J0805.2-0110_daily_bin1560.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/127768/ft2_4FGL_J0805.2-0110_daily_bin1560.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/127768/ft1_4FGL_J0805.2-0110_daily_bin1560.fits outfile=/scratch/kocevski/127768/ft1_filteredMKT_4FGL_J0805.2-0110_daily_bin1560.fits ra=121.3 dec=-1.181 rad=12.0 tmin=643680001.0 tmax=643939201.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.82
user 3.23
sys 0.50

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/127768/ft2_4FGL_J0805.2-0110_daily_bin1560.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/127768/ft1_filteredMKT_4FGL_J0805.2-0110_daily_bin1560.fits evtable="EVENTS" outfile="/scratch/kocevski/127768/ft1_filtered_4FGL_J0805.2-0110_daily_bin1560.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.97
user 0.32
sys 0.45

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/127768/ft1_filtered_4FGL_J0805.2-0110_daily_bin1560.fits" evtable="EVENTS" scfile=/scratch/kocevski/127768/ft2_4FGL_J0805.2-0110_daily_bin1560.fits sctable="SC_DATA" outfile=/scratch/kocevski/127768/ltcube_643680001_643939201_4FGL_J0805.2-0110_daily_bin1560.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/127768/ft2_4FGL_J0805.2-0110_daily_bin1560.fits
.....................!
real 12.19
user 11.47
sys 0.61

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/127768/ft1_filtered_4FGL_J0805.2-0110_daily_bin1560.fits evtable="EVENTS" scfile=/scratch/kocevski/127768/ft2_4FGL_J0805.2-0110_daily_bin1560.fits sctable="SC_DATA" expcube=/scratch/kocevski/127768/ltcube_643680001_643939201_4FGL_J0805.2-0110_daily_bin1560.fits outfile=/scratch/kocevski/127768/expmap_643680001_643939201_4FGL_J0805.2-0110_daily_bin1560.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/127768/ltcube_643680001_643939201_4FGL_J0805.2-0110_daily_bin1560.fits
.....................!
real 191.16
user 185.47
sys 4.40

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/127768/ft1_filtered_4FGL_J0805.2-0110_daily_bin1560.fits scfile=/scratch/kocevski/127768/ft2_4FGL_J0805.2-0110_daily_bin1560.fits outfile=/scratch/kocevski/127768/cmap_643680001_643939201_4FGL_J0805.2-0110_daily_bin1560.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 0.85
user 0.39
sys 0.42

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/127768/ft1_filtered_4FGL_J0805.2-0110_daily_bin1560.fits scfile=/scratch/kocevski/127768/ft2_4FGL_J0805.2-0110_daily_bin1560.fits outfile=/scratch/kocevski/127768/cmap_HighResolution_643680001_643939201_4FGL_J0805.2-0110_daily_bin1560.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 0.82
user 0.38
sys 0.44

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/127768/ft1_filtered_4FGL_J0805.2-0110_daily_bin1560.fits evtable="EVENTS" scfile=/scratch/kocevski/127768/ft2_4FGL_J0805.2-0110_daily_bin1560.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/127768/Model_4FGL_J0805.2-0110_daily_bin1560.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/127768/ft1_filtered_4FGL_J0805.2-0110_daily_bin1560.fits.....................!
real 82.32
user 79.18
sys 1.69

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/127768/ft1_filtered_4FGL_J0805.2-0110_daily_bin1560.fits', '/scratch/kocevski/127768/ft2_4FGL_J0805.2-0110_daily_bin1560.fits', expMap='/scratch/kocevski/127768/expmap_643680001_643939201_4FGL_J0805.2-0110_daily_bin1560.fits', expCube='/scratch/kocevski/127768/ltcube_643680001_643939201_4FGL_J0805.2-0110_daily_bin1560.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/127768/Model_4FGL_J0805.2-0110_daily_bin1560.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/127768/ft1_filtered_4FGL_J0805.2-0110_daily_bin1560.fits
Spacecraft file(s): /scratch/kocevski/127768/ft2_4FGL_J0805.2-0110_daily_bin1560.fits
Exposure map: /scratch/kocevski/127768/expmap_643680001_643939201_4FGL_J0805.2-0110_daily_bin1560.fits
Exposure cube: /scratch/kocevski/127768/ltcube_643680001_643939201_4FGL_J0805.2-0110_daily_bin1560.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/127768/Model_4FGL_J0805.2-0110_daily_bin1560.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) = 6111.77235947

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .25207E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.6661       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10119E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    7.9259       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.9878       1.0000         .10000E-03   10000.    
     7 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10248E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.486       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.3984       1.0000         .10000E-03   10000.    
    13 'norm      '    2.6843       1.0000         .10000E-03   10000.    
    14 'norm      '    1.8053       1.0000         .10000E-03   10000.    
    15 'Prefactor '    13.533       1.0000         .10000E-03   10000.    
    16 'norm      '    2.2932       1.0000         .10000E-03   10000.    
    17 'norm      '    .34444E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    6.5851       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10502E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .55477E-02   1.0000         .10000E-03   10000.    
    21 'norm      '    .16703E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    34.428       1.0000         .10000E-03   10000.    
    23 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .44027       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1243       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=   6111.767     FROM MIGRAD    STATUS=CONVERGED    624 CALLS     3132 TOTAL
                     EDM=   .36E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    59.106       -.23576E-05** at limit **
   2  Prefactor     .10002E-03    7.1718        .88057E-06** at limit **
   3  Prefactor     2.6631        8.8558        .28193E-06    .60608E-05
   4  Prefactor     .10000E-03    12.243        .12866E-06** at limit **
   5  norm          7.9265        2.7359        .24250E-07   -.51907E-04
   6  Prefactor     1.9804        95.234        .22197E-05   -.35080E-05
   7  norm          .10000E-03    9.6763       -.31982E-07** at limit **
   8  norm          .10000E-03    16.662       -.24987E-06** at limit **
   9  norm          .10000E-03    1.6208       -.78569E-08** at limit **
  10  Prefactor     13.487        11.962        .10905E-06    .16967E-04
  11  Prefactor     .10000E-03    3.1880        .11293E-06** at limit **
  12  Prefactor     4.3524        53.431        .93403E-05   -.76898E-05
  13  norm          2.6813        9.8497        .45638E-05    .23182E-04
  14  norm          1.8052        1.7582       -.18536E-08    .68501E-04
  15  Prefactor     13.528        11.434        .17740E-06    .16886E-03
  16  norm          2.2926        1.5606        .49220E-07    .51022E-03
  17  norm          .10001E-03    60.613       -.80662E-05** at limit **
  18  norm          6.5892        4.8762       -.36290E-06    .21448E-04
  19  Prefactor     .10000E-03    28.710        .97664E-07** at limit **
  20  Prefactor     .10032E-03    8.2341       -.15335E-05** at limit **
  21  norm          .10000E-03    64.650        .47935E-06** at limit **
  22  Prefactor     34.424        26.058        .39472E-06   -.11261E-04
  23  norm          .10000E-03    .46579        .16385E-06** at limit **
  24  norm          .10000E-03    4.4838        .74802E-07** at limit **
  25  Normalizat    .44030        .22543       -.30462E-05    .23578E-04
  26  Prefactor     1.1243        .11498        .28485E-06    .29637E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.000100023
  Prefactor  = 2.66315
  Prefactor  = 0.0001
  norm       = 7.92648
  Prefactor  = 1.98039
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 13.4865
  Prefactor  = 0.0001
  Prefactor  = 4.3524
  norm       = 2.68131
  norm       = 1.80515
  Prefactor  = 13.5279
  norm       = 2.29259
  norm       = 0.000100014
  norm       = 6.58918
  Prefactor  = 0.0001
  Prefactor  = 0.000100316
  norm       = 0.0001
  Prefactor  = 34.424
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 0.440297
  Prefactor  = 1.12432
 **********
 **   18 **HESSE 
 **********

 FCN=   6111.767     FROM HESSE     STATUS=OK           466 CALLS     3598 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    59.307        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10002E-03    48.444        .39499E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.6631        8.8455        .24961E-03   -1.5382    
   4  Prefactor     .10000E-03    12.251        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          7.9265        2.7235        .71284E-04   -1.5145    
   6  Prefactor     1.9804        95.829        .29389E-03   -1.5427    
   7  norm          .10000E-03    9.6950        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    16.724        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    1.6292        .97177E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     13.487        11.941        .10907E-03   -1.4973    
  11  Prefactor     .10000E-03    3.1948        .13633E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.3524        54.394        .19203E-03   -1.5291    
  13  norm          2.6813        9.9587        .12435E-02   -1.5380    
  14  norm          1.8052        1.7671        .98605E-04   -1.5439    
  15  Prefactor     13.528        11.173        .10888E-03   -1.4972    
  16  norm          2.2926        1.5256        .73847E-04   -1.5405    
  17  norm          .10001E-03    65.776        .42661E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          6.5892        4.8593        .14013E-03   -1.5195    
  19  Prefactor     .10000E-03    28.758        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10032E-03    73.480        .39155E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    66.138        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     34.424        26.028        .68297E-04   -1.4534    
  23  norm          .10000E-03    .75621        .10278E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    4.5052        .16164E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .44030        .22678        .45662E-03   -1.1527    
  26  Prefactor     1.1243        .11843        .16248E-03   -.88693    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.74243e-09
Minuit parameter uncertainties:
  1  0.000346631
  2  0.00209403
  3  8.84988
  4  3.45025e-06
  5  2.72352
  6  27.5982
  7  3.20551e-06
  8  1.91506e-05
  9  4.43922e-07
  10  11.9428
  11  1.53257e-06
  12  30.8073
  13  9.9648
  14  1.76711
  15  11.1749
  16  1.52566
  17  0.00192041
  18  4.85955
  19  0.000143626
  20  0.00964324
  21  8.30358e-05
  22  26.0368
  23  2.56188e-06
  24  8.60358e-06
  25  0.227256
  26  0.118455
Done.

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

Extracting fit parameters...

4FGL J0805.2-0110
   Spectrum: LogParabola
254         norm:  2.681e+00  9.965e+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

GAL_V02
   Spectrum: PowerLaw
501    Prefactor:  1.124e+00  1.185e-01  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:  4.403e-01  2.273e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.09
Ra Dec: 121.300 -1.181
Photon Flux Upper Limit: 1.03e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.31e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/127768/likelihoodResults_643680001_643939201_4FGL_J0805.2-0110_daily_bin1560.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) = 6109.93444093
delta logL = 1.83259124318

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6109.86196993
delta logL = 1.9050622454

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1516       1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    .31544       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1617       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.

 FCN=   6109.862     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      284 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1506        22.154        .10776E-01    .62484E-03
   2  alpha         5.0000        4.9632        .46381    ** at limit **
   3  Normalizat    .31600        .20355        .12070        .12093E-03
   4  Prefactor     1.1615        .90914E-01    .35605E-01   -.32532E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.15062
  alpha      = 5
  Normalizat = 0.316
  Prefactor  = 1.16153
 **********
 **   18 **HESSE 
 **********

 FCN=   6109.862     FROM HESSE     STATUS=OK            29 CALLS      313 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1506        .72043        .49655E-04   -1.5493    
   2  alpha         5.0000        1.0128        .49116E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .31600        .21359        .53463E-03   -1.2190    
   4  Prefactor     1.1615        .11615        .15997E-03   -.87523    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.1459e-10
Minuit parameter uncertainties:
  1  0.720433
  2  1.16502e-06
  3  0.214142
  4  0.116173
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/127768': 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) = 6109.86196571
delta logL = 1.90506646438

Extracting fit parameters...

4FGL J0805.2-0110
   Spectrum: LogParabola
254         norm:  1.151e+00  7.204e-01  1.000e-04  1.000e+04 ( 1.000e-12)
255        alpha:  5.000e+00  1.165e-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:  1.162e+00  1.162e-01  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:  3.160e-01  2.141e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.29
Ra Dec: 121.300 -1.181
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 1.23e-07 +/- 7.66e-08
Energy Flux (Free Index): 1.68e-05 +/- 1.05e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/127768/cmap_HighResolution_643680001_643939201_4FGL_J0805.2-0110_daily_bin1560.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.31e-05', comment='SUCCESS', energy_flux2='1.68e-05', dlogl='1.91e+00', photon_flux2='1.23e-07', job_status='DONE', time_completed='2021-08-29 02:06:18.897789', photon_index_error2='0.00', photon_index2='5.00', ts='0.09', fit_tolerance='1e-08', GAL='1.12', photon_index_error='0.00', photon_flux_upper_limit='1.03e-07', energy_flux_error2='1.05e-05', EG='0.44', time_epoch_completed='1630227978.9', return_code='0', job_id='127768', GAL2='1.16', EG2='0.32', return_code2='0', photon_flux_error2='7.66e-08', ts2='4.29', photon_index='2.35' WHERE bin_id='1560' AND source_name='4FGL J0805.2-0110' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 02:06:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0250>
Subject: Job 127768: <4FGL_J0805.2-0110_daily_bin1560> in cluster <slac> Done

Job <4FGL_J0805.2-0110_daily_bin1560> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Aug 29 01:50:51 2021
Job was executed on host(s) <bullet0250>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 01:50:53 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:50:53 2021
Terminated at Sun Aug 29 02:06:19 2021
Results reported at Sun Aug 29 02:06:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0805.2-0110_daily_bin1560 121.3 -1.181 643680001 643939201 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 :                                   684.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             291.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   926 sec.
    Turnaround time :                            928 sec.

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

