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


Performing analysis on: 4FGL_J0807.1-0541_daily_bin944
RA = 121.78, Dec = -5.6842
tmin = 484012801, tmax = 484272001
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='165066', job_status='RUN', time_executed='2021-08-29 03:59:15.178007', time_epoch_executed='1630234755.18' WHERE source_name='4FGL J0807.1-0541' and cadence='daily' and bin_id='944'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/165066

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/165066/ft1_4FGL_J0807.1-0541_daily_bin944.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/165066/ft2_4FGL_J0807.1-0541_daily_bin944.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/165066/ft1_4FGL_J0807.1-0541_daily_bin944.fits outfile=/scratch/kocevski/165066/ft1_filteredMKT_4FGL_J0807.1-0541_daily_bin944.fits ra=121.78 dec=-5.6842 rad=12.0 tmin=484012801.0 tmax=484272001.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.93
user 3.20
sys 0.58

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/165066/ft2_4FGL_J0807.1-0541_daily_bin944.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/165066/ft2_4FGL_J0807.1-0541_daily_bin944.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/165066/ft1_filteredMKT_4FGL_J0807.1-0541_daily_bin944.fits evtable="EVENTS" outfile="/scratch/kocevski/165066/ft1_filtered_4FGL_J0807.1-0541_daily_bin944.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.88
user 0.36
sys 0.51

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/165066/ft1_filtered_4FGL_J0807.1-0541_daily_bin944.fits" evtable="EVENTS" scfile=/scratch/kocevski/165066/ft2_4FGL_J0807.1-0541_daily_bin944.fits sctable="SC_DATA" outfile=/scratch/kocevski/165066/ltcube_484012801_484272001_4FGL_J0807.1-0541_daily_bin944.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/165066/ft2_4FGL_J0807.1-0541_daily_bin944.fits
.....................!
real 15.34
user 14.39
sys 0.72

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/165066/ft1_filtered_4FGL_J0807.1-0541_daily_bin944.fits evtable="EVENTS" scfile=/scratch/kocevski/165066/ft2_4FGL_J0807.1-0541_daily_bin944.fits sctable="SC_DATA" expcube=/scratch/kocevski/165066/ltcube_484012801_484272001_4FGL_J0807.1-0541_daily_bin944.fits outfile=/scratch/kocevski/165066/expmap_484012801_484272001_4FGL_J0807.1-0541_daily_bin944.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/165066/ltcube_484012801_484272001_4FGL_J0807.1-0541_daily_bin944.fits
.....................!
real 194.99
user 186.73
sys 5.48

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

Setting source of interest to:
4FGL J0807.1-0541 @ 121.78 -5.6842

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/165066/ft1_filtered_4FGL_J0807.1-0541_daily_bin944.fits scfile=/scratch/kocevski/165066/ft2_4FGL_J0807.1-0541_daily_bin944.fits outfile=/scratch/kocevski/165066/cmap_484012801_484272001_4FGL_J0807.1-0541_daily_bin944.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.78 yref=-5.6842 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.02
user 0.40
sys 0.49

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/165066/ft1_filtered_4FGL_J0807.1-0541_daily_bin944.fits scfile=/scratch/kocevski/165066/ft2_4FGL_J0807.1-0541_daily_bin944.fits outfile=/scratch/kocevski/165066/cmap_HighResolution_484012801_484272001_4FGL_J0807.1-0541_daily_bin944.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.78 yref=-5.6842 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.92
user 0.39
sys 0.52

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/165066/ft1_filtered_4FGL_J0807.1-0541_daily_bin944.fits evtable="EVENTS" scfile=/scratch/kocevski/165066/ft2_4FGL_J0807.1-0541_daily_bin944.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/165066/Model_4FGL_J0807.1-0541_daily_bin944.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/165066/ft1_filtered_4FGL_J0807.1-0541_daily_bin944.fits.....................!
real 94.30
user 91.13
sys 1.73

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/165066/ft1_filtered_4FGL_J0807.1-0541_daily_bin944.fits', '/scratch/kocevski/165066/ft2_4FGL_J0807.1-0541_daily_bin944.fits', expMap='/scratch/kocevski/165066/expmap_484012801_484272001_4FGL_J0807.1-0541_daily_bin944.fits', expCube='/scratch/kocevski/165066/ltcube_484012801_484272001_4FGL_J0807.1-0541_daily_bin944.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/165066/Model_4FGL_J0807.1-0541_daily_bin944.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0807.1-0541'

4FGL J0807.1-0541
   Spectrum: LogParabola
254         norm:  1.114e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
255        alpha:  2.100e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
256         beta:  9.991e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
257           Eb:  1.231e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/165066/ft1_filtered_4FGL_J0807.1-0541_daily_bin944.fits
Spacecraft file(s): /scratch/kocevski/165066/ft2_4FGL_J0807.1-0541_daily_bin944.fits
Exposure map: /scratch/kocevski/165066/expmap_484012801_484272001_4FGL_J0807.1-0541_daily_bin944.fits
Exposure cube: /scratch/kocevski/165066/ltcube_484012801_484272001_4FGL_J0807.1-0541_daily_bin944.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/165066/Model_4FGL_J0807.1-0541_daily_bin944.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) = 6943.87345249

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'norm      '    7.1328       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    2.7112       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    9.7841       1.0000         .10000E-03   10000.    
     7 'norm      '    44.267       1.0000         .10000E-03   10000.    
     8 'norm      '    2.0630       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    31.127       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.3031       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.0937       1.0000         .10000E-03   10000.    
    15 'norm      '    11.487       1.0000         .10000E-03   10000.    
    16 'norm      '    12.038       1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.3705       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .19801       1.0000         .10000E-03   10000.    
    19 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .75425E-01   1.0000         .10000E-03   10000.    
    21 'norm      '    10.414       1.0000         .10000E-03   10000.    
    22 'Prefactor '    55.563       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .44690       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1198       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5110E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6943.871     FROM MIGRAD    STATUS=CONVERGED    550 CALLS     2735 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.3510       -.26769E-06** at limit **
   2  norm          7.1320        2.1772       -.58928E-07   -.43875E-04
   3  Prefactor     .10000E-03    4.4245       -.13142E-06** at limit **
   4  norm          2.7106        1.9779       -.24295E-06    .51073E-04
   5  Prefactor     .10000E-03    22.404       -.45569E-05** at limit **
   6  norm          9.7815        14.867        .10222E-06    .21826E-04
   7  norm          44.264        22.121        .46502E-06    .22652E-04
   8  norm          2.0627        3.1337       -.64157E-06    .49660E-04
   9  Prefactor     .10000E-03    8.7122       -.11882E-05** at limit **
  10  Prefactor     31.123        34.926        .85447E-06    .23067E-04
  11  norm          .10000E-03    6.8222        .50523E-06** at limit **
  12  norm          1.3029        2.1418       -.86744E-06    .21149E-04
  13  Prefactor     .10000E-03    4.0107       -.91889E-07** at limit **
  14  norm          2.0932        1.3981       -.33553E-07    .24479E-03
  15  norm          11.485        22.615        .16114E-06    .18475E-04
  16  norm          12.037        5.2019       -.59323E-06    .26315E-03
  17  Prefactor     5.3721        10.586        .19064E-07    .35447E-05
  18  Prefactor     .13783        30.881       -.11789E-04    .22568E-03
  19  norm          .10000E-03    15.084        .20498E-05** at limit **
  20  norm          .73424E-01    1.8720        .24625E-05    .96210E-03
  21  norm          10.414        8.5646       -.18380E-06    .42650E-04
  22  Prefactor     55.557        40.515        .74713E-06    .23041E-04
  23  Normalizat    .44689        .23680        .23597E-05    .15126E-03
  24  Prefactor     1.1199        .10988        .80158E-08    .30271E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 7.13205
  Prefactor  = 0.0001
  norm       = 2.71057
  Prefactor  = 0.0001
  norm       = 9.78154
  norm       = 44.2637
  norm       = 2.0627
  Prefactor  = 0.0001
  Prefactor  = 31.1229
  norm       = 0.0001
  norm       = 1.30291
  Prefactor  = 0.0001
  norm       = 2.09325
  norm       = 11.4854
  norm       = 12.0375
  Prefactor  = 5.37215
  Prefactor  = 0.137827
  norm       = 0.0001
  norm       = 0.0734238
  norm       = 10.4136
  Prefactor  = 55.5567
  Normalizat = 0.446894
  Prefactor  = 1.11992
 **********
 **   18 **HESSE 
 **********

 FCN=   6943.871     FROM HESSE     STATUS=OK           409 CALLS     3144 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.3781        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          7.1320        2.1952        .64105E-04   -1.5174    
   3  Prefactor     .10000E-03    4.4299        .17119E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.7106        1.9763        .95711E-04   -1.5379    
   5  Prefactor     .10000E-03    22.742        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          9.7815        14.895        .12811E-03   -1.5082    
   7  norm          44.264        22.227        .60258E-04   -1.4376    
   8  norm          2.0627        3.1278        .17627E-03   -1.5421    
   9  Prefactor     .10000E-03    8.7681        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     31.123        34.846        .71817E-04   -1.4592    
  11  norm          .10000E-03    6.8873        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.3029        2.1199        .15074E-03   -1.5480    
  13  Prefactor     .10000E-03    4.0298        .16292E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.0932        1.3817        .74455E-04   -1.5419    
  15  norm          11.485        22.565        .11820E-03   -1.5030    
  16  norm          12.037        5.2152        .57728E-03   -1.5014    
  17  Prefactor     5.3721        10.514        .17341E-03   -1.5244    
  18  Prefactor     .13783        45.796        .34613E-02   -1.5634    
  19  norm          .10000E-03    15.208        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .73424E-01    3.8868        .13281E-02   -1.5654    
  21  norm          10.414        8.5485        .12416E-03   -1.5062    
  22  Prefactor     55.557        40.460        .53814E-04   -1.4216    
  23  Normalizat    .44689        .23816        .52418E-03   -1.1494    
  24  Prefactor     1.1199        .11348        .16353E-03   -.88832    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.49256e-09
Minuit parameter uncertainties:
  1  1.06588e-06
  2  2.19523
  3  1.27456e-06
  4  1.97632
  5  8.45672e-05
  6  14.9005
  7  22.2315
  8  3.128
  9  2.93875e-05
  10  34.8692
  11  1.26717e-05
  12  2.12006
  13  3.62468e-07
  14  1.38169
  15  22.5821
  16  5.21542
  17  10.5172
  18  5.02679
  19  4.73956e-05
  20  1.06778
  21  8.54945
  22  40.48
  23  0.238705
  24  0.113506
Done.

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

Extracting fit parameters...

4FGL J0807.1-0541
   Spectrum: LogParabola
254         norm:  1.303e+00  2.120e+00  1.000e-04  1.000e+04 ( 1.000e-12)
255        alpha:  2.100e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
256         beta:  9.991e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
257           Eb:  1.231e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
508    Prefactor:  1.120e+00  1.135e-01  0.000e+00  1.000e+01 ( 1.000e+00)
509        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
510        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
507   Normalization:  4.469e-01  2.387e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.59
Ra Dec: 121.780 -5.684
Photon Flux Upper Limit: 9.50e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.15e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/165066/likelihoodResults_484012801_484272001_4FGL_J0807.1-0541_daily_bin944.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) = 6943.36434919
delta logL = 0.506617447859

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6943.35575557
delta logL = 0.515211061131

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6943.356     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      253 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .53111        7.9732        .11392E-01    .13948E-02
   2  alpha         3.3885        4.0452        .29146        .81455E-04
   3  Normalizat    .39598        .53440E-01    .12515        .23607E-04
   4  Prefactor     1.1302        .25383E-01    .36543E-01   -.11965E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.531114
  alpha      = 3.38845
  Normalizat = 0.395978
  Prefactor  = 1.13021
 **********
 **   18 **HESSE 
 **********

 FCN=   6943.356     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      288 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .53111        21.992        .55852E-03   -1.5562    
   2  alpha         3.3885        3.4903        .14240E-01    .36332    
   3  Normalizat    .39598        .23106        .55507E-03   -1.1751    
   4  Prefactor     1.1302        .10154        .16277E-03   -.88507    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.6392e-10
Minuit parameter uncertainties:
  1  6.83733
  2  7.13385
  3  0.231616
  4  0.101559
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/165066': 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): 102
logL (Free Index) = 6943.35575223
delta logL = 0.515214407417

Extracting fit parameters...

4FGL J0807.1-0541
   Spectrum: LogParabola
254         norm:  5.311e-01  6.837e+00  1.000e-04  1.000e+04 ( 1.000e-12)
255        alpha:  3.388e+00  7.134e+00  0.000e+00  5.000e+00 ( 1.000e+00)
256         beta:  9.991e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
257           Eb:  1.231e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
508    Prefactor:  1.130e+00  1.016e-01  0.000e+00  1.000e+01 ( 1.000e+00)
509        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
510        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
507   Normalization:  3.960e-01  2.316e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.69
Ra Dec: 121.780 -5.684
Photon Index (Free Index): 3.39 +/- 7.13
Photon Flux (Free Index): 7.07e-08 +/- 1.32e-07
Energy Flux (Free Index): 1.33e-05 +/- 1.71e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/165066/cmap_HighResolution_484012801_484272001_4FGL_J0807.1-0541_daily_bin944.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.15e-05', comment='SUCCESS', energy_flux2='1.33e-05', dlogl='5.15e-01', photon_flux2='7.07e-08', job_status='DONE', time_completed='2021-08-29 04:11:03.230657', photon_index_error2='7.13', photon_index2='3.39', ts='0.59', fit_tolerance='1e-08', GAL='1.12', photon_index_error='0.00', photon_flux_upper_limit='9.50e-08', energy_flux_error2='1.71e-05', EG='0.45', time_epoch_completed='1630235463.23', return_code='0', job_id='165066', GAL2='1.13', EG2='0.40', return_code2='102', photon_flux_error2='1.32e-07', ts2='1.69', photon_index='2.10' WHERE bin_id='944' AND source_name='4FGL J0807.1-0541' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 04:11:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0040>
Subject: Job 165066: <4FGL_J0807.1-0541_daily_bin944> in cluster <slac> Done

Job <4FGL_J0807.1-0541_daily_bin944> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Aug 29 03:55:27 2021
Job was executed on host(s) <bullet0040>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 03:55:29 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 29 03:55:29 2021
Terminated at Sun Aug 29 04:11:04 2021
Results reported at Sun Aug 29 04:11:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0807.1-0541_daily_bin944 121.78 -5.6842 484012801 484272001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0807.1-0541 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   705.38 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             263.94 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   934 sec.
    Turnaround time :                            937 sec.

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

