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


Performing analysis on: 4FGL_J0812.6+2821_daily_bin561
RA = 123.156, Dec = 28.3574
tmin = 384739201, tmax = 384998401
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='318524', job_status='RUN', time_executed='2021-08-29 12:52:17.279016', time_epoch_executed='1630266737.28' WHERE source_name='4FGL J0812.6+2821' and cadence='daily' and bin_id='561'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/318524

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/318524/ft1_4FGL_J0812.6+2821_daily_bin561.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/318524/ft2_4FGL_J0812.6+2821_daily_bin561.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/318524/ft1_4FGL_J0812.6+2821_daily_bin561.fits outfile=/scratch/kocevski/318524/ft1_filteredMKT_4FGL_J0812.6+2821_daily_bin561.fits ra=123.156 dec=28.3574 rad=12.0 tmin=384739201.0 tmax=384998401.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 11.21
user 4.33
sys 6.76

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/318524/ft2_4FGL_J0812.6+2821_daily_bin561.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/318524/ft1_filteredMKT_4FGL_J0812.6+2821_daily_bin561.fits evtable="EVENTS" outfile="/scratch/kocevski/318524/ft1_filtered_4FGL_J0812.6+2821_daily_bin561.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 7.18
user 0.35
sys 6.75

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/318524/ft1_filtered_4FGL_J0812.6+2821_daily_bin561.fits" evtable="EVENTS" scfile=/scratch/kocevski/318524/ft2_4FGL_J0812.6+2821_daily_bin561.fits sctable="SC_DATA" outfile=/scratch/kocevski/318524/ltcube_384739201_384998401_4FGL_J0812.6+2821_daily_bin561.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/318524/ft2_4FGL_J0812.6+2821_daily_bin561.fits
.....................!
real 19.16
user 11.27
sys 7.76

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/318524/ft1_filtered_4FGL_J0812.6+2821_daily_bin561.fits evtable="EVENTS" scfile=/scratch/kocevski/318524/ft2_4FGL_J0812.6+2821_daily_bin561.fits sctable="SC_DATA" expcube=/scratch/kocevski/318524/ltcube_384739201_384998401_4FGL_J0812.6+2821_daily_bin561.fits outfile=/scratch/kocevski/318524/expmap_384739201_384998401_4FGL_J0812.6+2821_daily_bin561.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/318524/ltcube_384739201_384998401_4FGL_J0812.6+2821_daily_bin561.fits
.....................!
real 200.13
user 185.38
sys 13.39

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/318524/ft1_filtered_4FGL_J0812.6+2821_daily_bin561.fits scfile=/scratch/kocevski/318524/ft2_4FGL_J0812.6+2821_daily_bin561.fits outfile=/scratch/kocevski/318524/cmap_384739201_384998401_4FGL_J0812.6+2821_daily_bin561.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 7.42
user 0.37
sys 6.68

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/318524/ft1_filtered_4FGL_J0812.6+2821_daily_bin561.fits scfile=/scratch/kocevski/318524/ft2_4FGL_J0812.6+2821_daily_bin561.fits outfile=/scratch/kocevski/318524/cmap_HighResolution_384739201_384998401_4FGL_J0812.6+2821_daily_bin561.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 7.25
user 0.38
sys 6.71

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/318524/ft1_filtered_4FGL_J0812.6+2821_daily_bin561.fits', '/scratch/kocevski/318524/ft2_4FGL_J0812.6+2821_daily_bin561.fits', expMap='/scratch/kocevski/318524/expmap_384739201_384998401_4FGL_J0812.6+2821_daily_bin561.fits', expCube='/scratch/kocevski/318524/ltcube_384739201_384998401_4FGL_J0812.6+2821_daily_bin561.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/318524/Model_4FGL_J0812.6+2821_daily_bin561.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/318524/ft1_filtered_4FGL_J0812.6+2821_daily_bin561.fits
Spacecraft file(s): /scratch/kocevski/318524/ft2_4FGL_J0812.6+2821_daily_bin561.fits
Exposure map: /scratch/kocevski/318524/expmap_384739201_384998401_4FGL_J0812.6+2821_daily_bin561.fits
Exposure cube: /scratch/kocevski/318524/ltcube_384739201_384998401_4FGL_J0812.6+2821_daily_bin561.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/318524/Model_4FGL_J0812.6+2821_daily_bin561.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) = 6246.20874176

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.9413       1.0000         .10000E-03   10000.    
     3 'norm      '    .12097E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    24.878       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.0426       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10439E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.7179       1.0000         .10000E-03   10000.    
     9 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    32.304       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    16.618       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .96109       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10167E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    13.693       1.0000         .10000E-03   10000.    
    18 'Prefactor '    29.314       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0029       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .99336       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=   6246.158     FROM MIGRAD    STATUS=CONVERGED    415 CALLS     2048 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.2928       -.59076E-07** at limit **
   2  Prefactor     6.9426        10.345        .19599E-05    .12353E-03
   3  norm          .10000E-03    2.9034       -.11496E-05** at limit **
   4  Prefactor     24.849        29.709       -.77499E-06   -.29090E-04
   5  Prefactor     .10000E-03    10.901       -.73730E-06** at limit **
   6  Prefactor     9.0433        38.965        .24660E-06    .92770E-05
   7  Prefactor     .10000E-03    29.202       -.70280E-06** at limit **
   8  norm          3.7167        9.5510        .26754E-06    .18294E-04
   9  norm          .10000E-03    67.757        .11929E-06** at limit **
  10  Prefactor     32.303        30.403       -.11002E-06    .10977E-04
  11  Prefactor     .10000E-03    14.250       -.67410E-06** at limit **
  12  Prefactor     16.620        20.153       -.65411E-07    .46138E-05
  13  Prefactor     .10000E-03    8.4139       -.15116E-07** at limit **
  14  Prefactor     .10000E-03    1.1234        .30136E-07** at limit **
  15  norm          .96096        1.2529        .34105E-06    .47132E-03
  16  Prefactor     .10000E-03    11.860        .14564E-05** at limit **
  17  Prefactor     13.693        15.370        .10277E-06   -.11641E-04
  18  Prefactor     29.317        23.611       -.52437E-07    .84196E-05
  19  Normalizat    1.0028        .18639        .55691E-06    .16895E-03
  20  Prefactor     .99336        .14235       -.17385E-06    .24206E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 6.94257
  norm       = 0.000100002
  Prefactor  = 24.8486
  Prefactor  = 0.0001
  Prefactor  = 9.04327
  Prefactor  = 0.0001
  norm       = 3.71667
  norm       = 0.0001
  Prefactor  = 32.3031
  Prefactor  = 0.0001
  Prefactor  = 16.6198
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.960961
  Prefactor  = 0.0001
  Prefactor  = 13.693
  Prefactor  = 29.3171
  Normalizat = 1.00284
  Prefactor  = 0.993357
 **********
 **   18 **HESSE 
 **********

 FCN=   6246.158     FROM HESSE     STATUS=OK           295 CALLS     2343 TOTAL
                     EDM=   .65E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.4072        .31972E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.9426        10.551        .76137E-03   -1.5181    
   3  norm          .10000E-03    4.3860        .22882E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     24.849        29.935        .80312E-04   -1.4711    
   5  Prefactor     .10000E-03    10.996        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     9.0433        38.950        .13328E-03   -1.5106    
   7  Prefactor     .10000E-03    29.283        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.7167        9.5369        .20943E-03   -1.5322    
   9  norm          .10000E-03    67.799        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     32.303        30.415        .70500E-04   -1.4571    
  11  Prefactor     .10000E-03    14.330        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     16.620        20.159        .98249E-04   -1.4892    
  13  Prefactor     .10000E-03    8.4241        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    1.1431        .81763E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .96096        1.1754        .96845E-03   -1.5512    
  16  Prefactor     .10000E-03    12.135        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     13.693        15.355        .10824E-03   -1.4968    
  18  Prefactor     29.317        23.713        .73999E-04   -1.4625    
  19  Normalizat    1.0028        .21555        .26371E-03   -.92935    
  20  Prefactor     .99336        .16626        .20900E-03   -.92951    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.49049e-10
Minuit parameter uncertainties:
  1  1.68751e-06
  2  10.5537
  3  0.000198097
  4  29.9529
  5  6.16093e-05
  6  37.5772
  7  2.77363e-05
  8  9.54079
  9  2.09825e-05
  10  30.4298
  11  8.72162e-05
  12  20.1669
  13  9.96052e-06
  14  4.58324e-07
  15  1.17544
  16  9.3109e-05
  17  15.3589
  18  23.7201
  19  0.21574
  20  0.166346
Done.

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

Extracting fit parameters...

4FGL J0812.6+2821
   Spectrum: PowerLaw
289    Prefactor:  3.230e+01  3.043e+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:  9.934e-01  1.663e-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:  1.003e+00  2.157e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.98
Ra Dec: 123.156 28.357
Photon Index (Fixed Index): 2.11 +/- 0.00
Photon Flux (Fixed Index): 2.91e-08 +/- 2.74e-08
Energy Flux (Fixed Index): 1.56e-05 +/- 1.47e-05

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

Saving results to:
/scratch/kocevski/318524/likelihoodResults_384739201_384998401_4FGL_J0812.6+2821_daily_bin561.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) = 6245.73459407
delta logL = 0.42295254061

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6245.7317883
delta logL = 0.425758308489

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    67.056       1.0000         .10000E-03   10000.    
     2 'Index     '    1.5458       1.0000          .0000       10.000    
     3 'Normalizat'    1.0167       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98558       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6245.732     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      303 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     67.064        57.704        .49013E-04    .96491E-05
   2  Index         1.5457        .51164        .89243E-02    .58421E-05
   3  Normalizat    1.0167        .20734        .26198E-03    .27469E-04
   4  Prefactor     .98558        .16436        .20964E-03   -.24295E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 67.0642
  Index      = 1.54573
  Normalizat = 1.01675
  Prefactor  = 0.985585
 **********
 **   18 **HESSE 
 **********

 FCN=   6245.732     FROM HESSE     STATUS=OK            25 CALLS      328 TOTAL
                     EDM=   .10E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     67.064        57.136        .98027E-05   -1.4068    
   2  Index         1.5457        .50667        .35697E-03   -.76267    
   3  Normalizat    1.0167        .20752        .10479E-04   -.92472    
   4  Prefactor     .98558        .16451        .83855E-05   -.93212    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03625e-11
Minuit parameter uncertainties:
  1  57.1826
  2  0.508341
  3  0.207681
  4  0.164596
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/318524': 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) = 6245.73178822
delta logL = 0.425758390305

Extracting fit parameters...

4FGL J0812.6+2821
   Spectrum: PowerLaw
289    Prefactor:  6.706e+01  5.718e+01  1.000e-04  1.000e+04 ( 1.000e-14)
290        Index:  1.546e+00  5.083e-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:  9.856e-01  1.646e-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:  1.017e+00  2.077e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.83
Ra Dec: 123.156 28.357
Photon Index (Free Index): 1.55 +/- 0.51
Photon Flux (Free Index): 1.89e-08 +/- 1.97e-08
Energy Flux (Free Index): 5.13e-05 +/- 6.97e-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/318524/cmap_HighResolution_384739201_384998401_4FGL_J0812.6+2821_daily_bin561.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.16e-03', comment='SUCCESS', photon_flux='2.91e-08', energy_flux2='5.13e-05', photon_flux_error='2.74e-08', dlogl='4.26e-01', energy_flux='1.56e-05', photon_flux2='1.89e-08', job_status='DONE', time_completed='2021-08-29 13:04:08.336156', photon_index_error2='0.51', photon_index2='1.55', ts='1.98', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', photon_flux_upper_limit='9.46e-08', energy_flux_error2='6.97e-05', EG='1.00', time_epoch_completed='1630267448.34', return_code='0', job_id='318524', GAL2='0.99', EG2='1.02', return_code2='0', energy_flux_error='1.47e-05', photon_flux_error2='1.97e-08', ts2='2.83', photon_index='2.11' WHERE bin_id='561' AND source_name='4FGL J0812.6+2821' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 13:04:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0090>
Subject: Job 318524: <4FGL_J0812.6+2821_daily_bin561> in cluster <slac> Done

Job <4FGL_J0812.6+2821_daily_bin561> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Aug 29 12:50:18 2021
Job was executed on host(s) <bullet0090>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 12:50:19 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:50:19 2021
Terminated at Sun Aug 29 13:04:09 2021
Results reported at Sun Aug 29 13:04:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0812.6+2821_daily_bin561 123.156 28.3574 384739201 384998401 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 :                                   808.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             298.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   830 sec.
    Turnaround time :                            831 sec.

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

