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


Performing analysis on: 4FGL_J0812.6+2821_daily_bin64
RA = 123.156, Dec = 28.3574
tmin = 255916801, tmax = 256176001
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='314147', job_status='RUN', time_executed='2021-08-29 12:39:03.365972', time_epoch_executed='1630265943.37' WHERE source_name='4FGL J0812.6+2821' and cadence='daily' and bin_id='64'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/314147

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/314147/ft1_4FGL_J0812.6+2821_daily_bin64.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/314147/ft2_4FGL_J0812.6+2821_daily_bin64.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/314147/ft1_4FGL_J0812.6+2821_daily_bin64.fits outfile=/scratch/kocevski/314147/ft1_filteredMKT_4FGL_J0812.6+2821_daily_bin64.fits ra=123.156 dec=28.3574 rad=12.0 tmin=255916801.0 tmax=256176001.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 5.96
user 1.28
sys 3.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/314147/ft2_4FGL_J0812.6+2821_daily_bin64.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/314147/ft2_4FGL_J0812.6+2821_daily_bin64.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/314147/ft1_filteredMKT_4FGL_J0812.6+2821_daily_bin64.fits evtable="EVENTS" outfile="/scratch/kocevski/314147/ft1_filtered_4FGL_J0812.6+2821_daily_bin64.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 4.18
user 0.32
sys 3.53

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/314147/ft1_filtered_4FGL_J0812.6+2821_daily_bin64.fits" evtable="EVENTS" scfile=/scratch/kocevski/314147/ft2_4FGL_J0812.6+2821_daily_bin64.fits sctable="SC_DATA" outfile=/scratch/kocevski/314147/ltcube_255916801_256176001_4FGL_J0812.6+2821_daily_bin64.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/314147/ft2_4FGL_J0812.6+2821_daily_bin64.fits
.....................!
real 16.72
user 12.10
sys 4.13

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/314147/ft1_filtered_4FGL_J0812.6+2821_daily_bin64.fits evtable="EVENTS" scfile=/scratch/kocevski/314147/ft2_4FGL_J0812.6+2821_daily_bin64.fits sctable="SC_DATA" expcube=/scratch/kocevski/314147/ltcube_255916801_256176001_4FGL_J0812.6+2821_daily_bin64.fits outfile=/scratch/kocevski/314147/expmap_255916801_256176001_4FGL_J0812.6+2821_daily_bin64.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/314147/ltcube_255916801_256176001_4FGL_J0812.6+2821_daily_bin64.fits
.....................!
real 195.82
user 186.11
sys 8.98

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

Setting source of interest to:
4FGL J0812.6+2821 @ 123.156 28.3574

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/314147/ft1_filtered_4FGL_J0812.6+2821_daily_bin64.fits scfile=/scratch/kocevski/314147/ft2_4FGL_J0812.6+2821_daily_bin64.fits outfile=/scratch/kocevski/314147/cmap_255916801_256176001_4FGL_J0812.6+2821_daily_bin64.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=123.156 yref=28.3574 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 3.82
user 0.37
sys 3.38

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/314147/ft1_filtered_4FGL_J0812.6+2821_daily_bin64.fits scfile=/scratch/kocevski/314147/ft2_4FGL_J0812.6+2821_daily_bin64.fits outfile=/scratch/kocevski/314147/cmap_HighResolution_255916801_256176001_4FGL_J0812.6+2821_daily_bin64.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=123.156 yref=28.3574 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 3.86
user 0.38
sys 3.44

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/314147/ft1_filtered_4FGL_J0812.6+2821_daily_bin64.fits evtable="EVENTS" scfile=/scratch/kocevski/314147/ft2_4FGL_J0812.6+2821_daily_bin64.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/314147/Model_4FGL_J0812.6+2821_daily_bin64.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/314147/ft1_filtered_4FGL_J0812.6+2821_daily_bin64.fits.....................!
real 81.31
user 75.04
sys 5.47

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/314147/ft1_filtered_4FGL_J0812.6+2821_daily_bin64.fits', '/scratch/kocevski/314147/ft2_4FGL_J0812.6+2821_daily_bin64.fits', expMap='/scratch/kocevski/314147/expmap_255916801_256176001_4FGL_J0812.6+2821_daily_bin64.fits', expCube='/scratch/kocevski/314147/ltcube_255916801_256176001_4FGL_J0812.6+2821_daily_bin64.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/314147/Model_4FGL_J0812.6+2821_daily_bin64.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0812.6+2821'

4FGL J0812.6+2821
   Spectrum: PowerLaw
289    Prefactor:  2.525e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
290        Index:  2.111e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
291        Scale:  2.639e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/314147/ft1_filtered_4FGL_J0812.6+2821_daily_bin64.fits
Spacecraft file(s): /scratch/kocevski/314147/ft2_4FGL_J0812.6+2821_daily_bin64.fits
Exposure map: /scratch/kocevski/314147/expmap_255916801_256176001_4FGL_J0812.6+2821_daily_bin64.fits
Exposure cube: /scratch/kocevski/314147/ltcube_255916801_256176001_4FGL_J0812.6+2821_daily_bin64.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/314147/Model_4FGL_J0812.6+2821_daily_bin64.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) = 8116.08667668

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10114E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10224E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    5.4600       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .26849E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .45758E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    81.510       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10185E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10195E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.562       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    17.078       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .28741E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.3271       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10634E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .98399       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0482       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5590E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8116.083     FROM MIGRAD    STATUS=CONVERGED    414 CALLS     2042 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10019E-03    4.1758       -.24940E-05** at limit **
   2  Prefactor     .10000E-03    19.883       -.10849E-06** at limit **
   3  norm          5.4671        4.2082       -.39837E-07    .64681E-03
   4  Prefactor     .10001E-03    124.22       -.47988E-04** at limit **
   5  Prefactor     .10000E-03    9.8288        .21707E-07** at limit **
   6  Prefactor     81.522        39.103        .89828E-05    .17175E-04
   7  Prefactor     .10000E-03    13.740        .10609E-04** at limit **
   8  norm          .10000E-03    5.5374       -.86293E-07** at limit **
   9  norm          .10000E-03    21.189        .83003E-05** at limit **
  10  Prefactor     11.563        19.015       -.19517E-06    .22017E-05
  11  Prefactor     .10000E-03    7.6296       -.11106E-05** at limit **
  12  Prefactor     .10000E-03    6.3357        .84300E-06** at limit **
  13  Prefactor     17.088        22.464        .59803E-05    .69148E-05
  14  Prefactor     .10000E-03    1.1295       -.75488E-07** at limit **
  15  norm          1.3266        1.3166       -.73346E-06   -.26740E-03
  16  Prefactor     .10000E-03    1.9854        .24626E-06** at limit **
  17  Prefactor     .10000E-03    2.9616        .62609E-07** at limit **
  18  Prefactor     .10000E-03    15.033       -.53230E-05** at limit **
  19  Normalizat    .98403        .16397       -.84427E-06    .65941E-03
  20  Prefactor     1.0483        .12687        .20611E-06    .74379E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100193
  Prefactor  = 0.0001
  norm       = 5.46713
  Prefactor  = 0.000100011
  Prefactor  = 0.000100003
  Prefactor  = 81.5216
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 11.5625
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.0878
  Prefactor  = 0.000100003
  norm       = 1.32658
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.984028
  Prefactor  = 1.04831
 **********
 **   18 **HESSE 
 **********

 FCN=   8116.083     FROM HESSE     STATUS=OK           289 CALLS     2331 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10019E-03    15.990        .34601E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    20.219        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          5.4671        4.0237        .14649E-03   -1.5240    
   4  Prefactor     .10001E-03    126.26        .42872E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    58.674        .52117E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     81.522        39.143        .44488E-04   -1.3900    
   7  Prefactor     .10000E-03    13.806        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    5.5828        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    21.209        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     11.563        19.008        .11781E-03   -1.5028    
  11  Prefactor     .10000E-03    7.6343        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    6.3412        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     17.088        22.396        .96918E-04   -1.4881    
  14  Prefactor     .10000E-03    9.6773        .18549E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.3266        1.3129        .38147E-04   -1.5478    
  16  Prefactor     .10000E-03    1.9900        .12394E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2.9819        .15141E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    15.226        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .98403        .18746        .27082E-03   -.93567    
  20  Prefactor     1.0483        .14565        .20884E-03   -.91136    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.25975e-08
Minuit parameter uncertainties:
  1  0.00351397
  2  2.5206e-05
  3  4.02389
  4  0.00240504
  5  0.000767942
  6  39.1559
  7  2.38329e-05
  8  8.17054e-06
  9  7.42187e-06
  10  19.018
  11  1.62952e-06
  12  1.06559e-06
  13  22.4072
  14  0.000324434
  15  1.31288
  16  3.79978e-07
  17  5.54499e-08
  18  4.09299e-05
  19  0.187586
  20  0.14571
Done.

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

Extracting fit parameters...

4FGL J0812.6+2821
   Spectrum: PowerLaw
289    Prefactor:  1.156e+01  1.902e+01  1.000e-04  1.000e+04 ( 1.000e-14)
290        Index:  2.111e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
291        Scale:  2.639e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
556    Prefactor:  1.048e+00  1.457e-01  0.000e+00  1.000e+01 ( 1.000e+00)
557        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
558        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
555   Normalization:  9.840e-01  1.876e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.53
Ra Dec: 123.156 28.357
Photon Flux Upper Limit: 5.77e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.36e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/314147/likelihoodResults_255916801_256176001_4FGL_J0812.6+2821_daily_bin64.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) = 8115.4585688
delta logL = 0.624328687794

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8115.4005496
delta logL = 0.682347889297

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8115.401     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      250 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.051        1430.5        .21340E-02   -.11278E-04
   2  Index         1.2152        6.5503        .34272       -.27907E-04
   3  Normalizat    .98760        .10969        .46013E-01   -.24596E-04
   4  Prefactor     1.0479        .70370E-01    .40041E-01    .22392E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.0514
  Index      = 1.21522
  Normalizat = 0.987602
  Prefactor  = 1.04791
 **********
 **   18 **HESSE 
 **********

 FCN=   8115.401     FROM HESSE     STATUS=OK            33 CALLS      283 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.051        29.725        .85358E-04   -1.4768    
   2  Index         1.2152        .73835        .13515E-01   -.85864    
   3  Normalizat    .98760        .18230        .27029E-03   -.93447    
   4  Prefactor     1.0479        .14546        .20883E-03   -.91149    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.44103e-11
Minuit parameter uncertainties:
  1  29.7448
  2  0.744786
  3  0.182416
  4  0.145518
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/314147': 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) = 8115.40054794
delta logL = 0.682349548453

Extracting fit parameters...

4FGL J0812.6+2821
   Spectrum: PowerLaw
289    Prefactor:  2.205e+01  2.974e+01  1.000e-04  1.000e+04 ( 1.000e-14)
290        Index:  1.215e+00  7.448e-01  0.000e+00  1.000e+01 (-1.000e+00)
291        Scale:  2.639e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
556    Prefactor:  1.048e+00  1.455e-01  0.000e+00  1.000e+01 ( 1.000e+00)
557        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
558        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
555   Normalization:  9.876e-01  1.824e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.89
Ra Dec: 123.156 28.357
Photon Index (Free Index): 1.22 +/- 0.74
Photon Flux (Free Index): 4.23e-09 +/- 6.90e-09
Energy Flux (Free Index): 3.38e-05 +/- 5.57e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/314147/cmap_HighResolution_255916801_256176001_4FGL_J0812.6+2821_daily_bin64.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.36e-03', comment='SUCCESS', energy_flux2='3.38e-05', dlogl='6.82e-01', photon_flux2='4.23e-09', job_status='DONE', time_completed='2021-08-29 12:51:09.820047', photon_index_error2='0.74', photon_index2='1.22', ts='0.53', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', photon_flux_upper_limit='5.77e-08', energy_flux_error2='5.57e-05', EG='0.98', time_epoch_completed='1630266669.82', return_code='0', job_id='314147', GAL2='1.05', EG2='0.99', return_code2='0', photon_flux_error2='6.90e-09', ts2='1.89', photon_index='2.11' WHERE bin_id='64' AND source_name='4FGL J0812.6+2821' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 12:51:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0281>
Subject: Job 314147: <4FGL_J0812.6+2821_daily_bin64> in cluster <slac> Done

Job <4FGL_J0812.6+2821_daily_bin64> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Aug 29 12:35:58 2021
Job was executed on host(s) <bullet0281>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 12:35:59 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 29 12:35:59 2021
Terminated at Sun Aug 29 12:51:10 2021
Results reported at Sun Aug 29 12:51:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0812.6+2821_daily_bin64 123.156 28.3574 255916801 256176001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0812.6+2821 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   775.09 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             298.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   911 sec.
    Turnaround time :                            912 sec.

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

