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


Performing analysis on: 4FGL_J0807.7-1206_daily_bin1178
RA = 121.934, Dec = -12.1043
tmin = 544665601, tmax = 544924801
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='211698', job_status='RUN', time_executed='2021-08-29 06:44:05.802377', time_epoch_executed='1630244645.8' WHERE source_name='4FGL J0807.7-1206' and cadence='daily' and bin_id='1178'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/211698

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/211698/ft1_4FGL_J0807.7-1206_daily_bin1178.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/211698/ft2_4FGL_J0807.7-1206_daily_bin1178.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/211698/ft1_4FGL_J0807.7-1206_daily_bin1178.fits outfile=/scratch/kocevski/211698/ft1_filteredMKT_4FGL_J0807.7-1206_daily_bin1178.fits ra=121.934 dec=-12.1043 rad=12.0 tmin=544665601.0 tmax=544924801.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.48
user 3.78
sys 0.66

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/211698/ft2_4FGL_J0807.7-1206_daily_bin1178.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/211698/ft2_4FGL_J0807.7-1206_daily_bin1178.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/211698/ft1_filteredMKT_4FGL_J0807.7-1206_daily_bin1178.fits evtable="EVENTS" outfile="/scratch/kocevski/211698/ft1_filtered_4FGL_J0807.7-1206_daily_bin1178.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.94
user 0.32
sys 0.61

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/211698/ft1_filtered_4FGL_J0807.7-1206_daily_bin1178.fits" evtable="EVENTS" scfile=/scratch/kocevski/211698/ft2_4FGL_J0807.7-1206_daily_bin1178.fits sctable="SC_DATA" outfile=/scratch/kocevski/211698/ltcube_544665601_544924801_4FGL_J0807.7-1206_daily_bin1178.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/211698/ft2_4FGL_J0807.7-1206_daily_bin1178.fits
.....................!
real 12.05
user 11.19
sys 0.82

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/211698/ft1_filtered_4FGL_J0807.7-1206_daily_bin1178.fits evtable="EVENTS" scfile=/scratch/kocevski/211698/ft2_4FGL_J0807.7-1206_daily_bin1178.fits sctable="SC_DATA" expcube=/scratch/kocevski/211698/ltcube_544665601_544924801_4FGL_J0807.7-1206_daily_bin1178.fits outfile=/scratch/kocevski/211698/expmap_544665601_544924801_4FGL_J0807.7-1206_daily_bin1178.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/211698/ltcube_544665601_544924801_4FGL_J0807.7-1206_daily_bin1178.fits
.....................!
real 191.29
user 186.02
sys 4.90

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

Setting source of interest to:
4FGL J0807.7-1206 @ 121.934 -12.1043

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/211698/ft1_filtered_4FGL_J0807.7-1206_daily_bin1178.fits scfile=/scratch/kocevski/211698/ft2_4FGL_J0807.7-1206_daily_bin1178.fits outfile=/scratch/kocevski/211698/cmap_544665601_544924801_4FGL_J0807.7-1206_daily_bin1178.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.934 yref=-12.1043 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.98
user 0.36
sys 0.60

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/211698/ft1_filtered_4FGL_J0807.7-1206_daily_bin1178.fits scfile=/scratch/kocevski/211698/ft2_4FGL_J0807.7-1206_daily_bin1178.fits outfile=/scratch/kocevski/211698/cmap_HighResolution_544665601_544924801_4FGL_J0807.7-1206_daily_bin1178.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.934 yref=-12.1043 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.00
user 0.38
sys 0.59

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/211698/ft1_filtered_4FGL_J0807.7-1206_daily_bin1178.fits evtable="EVENTS" scfile=/scratch/kocevski/211698/ft2_4FGL_J0807.7-1206_daily_bin1178.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/211698/Model_4FGL_J0807.7-1206_daily_bin1178.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/211698/ft1_filtered_4FGL_J0807.7-1206_daily_bin1178.fits.....................!
real 103.08
user 101.10
sys 1.72

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/211698/ft1_filtered_4FGL_J0807.7-1206_daily_bin1178.fits', '/scratch/kocevski/211698/ft2_4FGL_J0807.7-1206_daily_bin1178.fits', expMap='/scratch/kocevski/211698/expmap_544665601_544924801_4FGL_J0807.7-1206_daily_bin1178.fits', expCube='/scratch/kocevski/211698/ltcube_544665601_544924801_4FGL_J0807.7-1206_daily_bin1178.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/211698/Model_4FGL_J0807.7-1206_daily_bin1178.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0807.7-1206'

4FGL J0807.7-1206
   Spectrum: PowerLaw
269    Prefactor:  1.175e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
270        Index:  2.671e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
271        Scale:  5.859e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/211698/ft1_filtered_4FGL_J0807.7-1206_daily_bin1178.fits
Spacecraft file(s): /scratch/kocevski/211698/ft2_4FGL_J0807.7-1206_daily_bin1178.fits
Exposure map: /scratch/kocevski/211698/expmap_544665601_544924801_4FGL_J0807.7-1206_daily_bin1178.fits
Exposure cube: /scratch/kocevski/211698/ltcube_544665601_544924801_4FGL_J0807.7-1206_daily_bin1178.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/211698/Model_4FGL_J0807.7-1206_daily_bin1178.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) = 7590.73036049

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.4311       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10275E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10076E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    10.433       1.0000         .10000E-03   10000.    
     6 'norm      '    .10333E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .15854       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    30.379       1.0000         .10000E-03   10000.    
    10 'norm      '    4.5790       1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.5211       1.0000         .10000E-03   10000.    
    12 'norm      '    .10056E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    19.457       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.6277       1.0000         .10000E-03   10000.    
    15 'norm      '    .10184E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    9.5066       1.0000         .10000E-03   10000.    
    17 'norm      '    .10949E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    9.8806       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.3134       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0197       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5490E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7590.642     FROM MIGRAD    STATUS=CONVERGED    514 CALLS     2342 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.4312        2.7177        .13037E-05   -.88920E-03
   2  Prefactor     .10000E-03    54.807        .40021E-06** at limit **
   3  Prefactor     .10000E-03    100.90       -.62835E-06** at limit **
   4  norm          .10000E-03    47.227       -.59950E-06** at limit **
   5  norm          10.430        17.152        .37121E-06    .70280E-05
   6  norm          .10000E-03    4.0059        .16169E-07** at limit **
   7  norm          .14738E-03    35.088       -.17048E-07** at limit **
   8  Prefactor     .10000E-03    13.153       -.45114E-06** at limit **
   9  norm          30.387        31.905       -.38753E-05   -.31539E-03
  10  norm          4.5752        5.2552        .18345E-06   -.40775E-04
  11  Prefactor     8.5174        15.162       -.15890E-07    .70252E-05
  12  norm          .10000E-03    .95233        .50965E-07** at limit **
  13  Prefactor     19.459        19.216        .22475E-06    .42898E-04
  14  Prefactor     2.6281        4.6689        .35890E-06   -.53296E-04
  15  norm          .10000E-03    43.744        .52095E-06** at limit **
  16  norm          9.5056        4.4104        .33378E-07   -.23479E-04
  17  norm          .10000E-03    15.179        .32520E-06** at limit **
  18  Prefactor     .10000E-03    15.647       -.92078E-08** at limit **
  19  norm          9.8810        11.963       -.28081E-06   -.92514E-04
  20  Normalizat    1.3131        .27865        .54262E-06   -.55823E-04
  21  Prefactor     1.0197        .78736E-01   -.65287E-06    .57901E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.4312
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 10.4299
  norm       = 0.0001
  norm       = 0.000147383
  Prefactor  = 0.0001
  norm       = 30.3867
  norm       = 4.57518
  Prefactor  = 8.51738
  norm       = 0.0001
  Prefactor  = 19.4588
  Prefactor  = 2.62814
  norm       = 0.0001
  norm       = 9.50556
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 9.88099
  Normalizat = 1.31314
  Prefactor  = 1.01966
 **********
 **   18 **HESSE 
 **********

 FCN=   7590.642     FROM HESSE     STATUS=OK           329 CALLS     2671 TOTAL
                     EDM=   .60E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.4312        2.7914        .54799E-03   -1.5287    
   2  Prefactor     .10000E-03    55.021        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    101.04        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    47.546        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          10.430        17.177        .12405E-03   -1.5062    
   6  norm          .10000E-03    12.810        .33276E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .14738E-03    34.991        .15639       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    13.173        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          30.387        33.868        .72693E-04   -1.4605    
  10  norm          4.5752        5.1360        .18811E-03   -1.5280    
  11  Prefactor     8.5174        14.986        .13733E-03   -1.5124    
  12  norm          .10000E-03    1.4354        .15953E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     19.459        19.012        .90801E-04   -1.4825    
  14  Prefactor     2.6281        4.6464        .24178E-03   -1.5384    
  15  norm          .10000E-03    43.814        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          9.5056        4.4099        .12054E-03   -1.5091    
  17  norm          .10000E-03    15.851        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    15.655        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          9.8810        12.019        .12748E-03   -1.5079    
  20  Normalizat    1.3131        .29593        .47986E-03   -.83175    
  21  Prefactor     1.0197        .84267E-01    .15577E-03   -.92077    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.99898e-10
Minuit parameter uncertainties:
  1  2.7915
  2  8.36592e-05
  3  5.32587e-05
  4  0.00010786
  5  17.1853
  6  0.00011834
  7  0.0814847
  8  3.40379e-05
  9  33.8892
  10  5.13646
  11  14.993
  12  7.41125e-06
  13  19.0184
  14  4.64703
  15  2.73316e-06
  16  4.41005
  17  5.07261e-06
  18  1.19071e-07
  19  12.0222
  20  0.296313
  21  0.0842781
Done.

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

Extracting fit parameters...

4FGL J0807.7-1206
   Spectrum: PowerLaw
269    Prefactor:  8.517e+00  1.499e+01  1.000e-04  1.000e+04 ( 1.000e-12)
270        Index:  2.671e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
271        Scale:  5.859e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
546    Prefactor:  1.020e+00  8.428e-02  0.000e+00  1.000e+01 ( 1.000e+00)
547        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
548        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
545   Normalization:  1.313e+00  2.963e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.45
Ra Dec: 121.934 -12.104
Photon Flux Upper Limit: 2.62e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.06e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/211698/likelihoodResults_544665601_544924801_4FGL_J0807.7-1206_daily_bin1178.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) = 7590.4828038
delta logL = 0.159166110933

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7590.48041997
delta logL = 0.161549937857

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.8899       1.0000         .10000E-03   10000.    
     2 'Index     '    3.5271       1.0000          .0000       10.000    
     3 'Normalizat'    1.2811       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0243       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5490E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   7590.480     FROM MIGRAD    STATUS=FAILED       101 CALLS      317 TOTAL
                     EDM=   .29E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.8978        9149.0        .90949E-03    .36726E-03
   2  Index         3.5266        6.7359        .10639E-01    .39722E-03
   3  Normalizat    1.2810        .28902        .48495E-03   -.37040E-05
   4  Prefactor     1.0243        .17656        .15546E-03   -.86293E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7590.480     FROM SIMPLEX   STATUS=UNCHANGED    111 CALLS      428 TOTAL
                     EDM=   .82E-05    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.8978        9149.0        .21843E-03   -1.5265    
   2  Index         3.5266        6.7359        .18900E-02   -.29913    
   3  Normalizat    1.2810        .28902        .11161E-03   -.84136    
   4  Prefactor     1.0243        .17656        .23121E-04   -.91923    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7590.480     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      462 TOTAL
                     EDM=   .40E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.8978        13.384        .18190E-03   -.39375E-05
   2  Index         3.5266        1.9015        .21278E-02    .14843E-04
   3  Normalizat    1.2810        .28795        .19398E-04   -.37509E-05
   4  Prefactor     1.0243        .80865E-01    .62184E-05   -.87755E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.89781
  Index      = 3.52657
  Normalizat = 1.28099
  Prefactor  = 1.02432
 **********
 **   18 **HESSE 
 **********

 FCN=   7590.480     FROM HESSE     STATUS=OK            25 CALLS      487 TOTAL
                     EDM=   .83E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.8978        12.282        .72759E-05   -1.5265    
   2  Index         3.5266        1.7520        .42556E-03   -.29913    
   3  Normalizat    1.2810        .28791        .38796E-05   -.84136    
   4  Prefactor     1.0243        .80824E-01    .12437E-05   -.91923    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.27217e-14
Minuit parameter uncertainties:
  1  12.2881
  2  1.79383
  3  0.288274
  4  0.0808336
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/211698': 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) = 7590.48041957
delta logL = 0.161550337766

Extracting fit parameters...

4FGL J0807.7-1206
   Spectrum: PowerLaw
269    Prefactor:  4.898e+00  1.229e+01  1.000e-04  1.000e+04 ( 1.000e-12)
270        Index:  3.527e+00  1.794e+00  0.000e+00  1.000e+01 (-1.000e+00)
271        Scale:  5.859e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
546    Prefactor:  1.024e+00  8.083e-02  0.000e+00  1.000e+01 ( 1.000e+00)
547        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
548        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
545   Normalization:  1.281e+00  2.883e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.45
Ra Dec: 121.934 -12.104

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/211698/cmap_HighResolution_544665601_544924801_4FGL_J0807.7-1206_daily_bin1178.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.06e-02', job_status='DONE', photon_flux_upper_limit='2.62e-07', time_completed='2021-08-29 06:56:10.100932', job_id='211698', GAL2='1.02', fit_tolerance='1e-08', EG2='1.28', EG='1.31', time_epoch_completed='1630245370.1', return_code2='0', ts='0.45', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='1.62e-01', ts2='0.81', photon_index_error='0.00', photon_index='2.67' WHERE bin_id='1178' AND source_name='4FGL J0807.7-1206' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 06:56:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0217>
Subject: Job 211698: <4FGL_J0807.7-1206_daily_bin1178> in cluster <slac> Done

Job <4FGL_J0807.7-1206_daily_bin1178> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Aug 29 06:40:39 2021
Job was executed on host(s) <bullet0217>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 06:40:41 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 29 06:40:41 2021
Terminated at Sun Aug 29 06:56:10 2021
Results reported at Sun Aug 29 06:56:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0807.7-1206_daily_bin1178 121.934 -12.1043 544665601 544924801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0807.7-1206 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   727.25 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             298.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   929 sec.
    Turnaround time :                            931 sec.

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

