aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 234 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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


Performing analysis on: 4FGL_J0812.6+2821_daily_bin1709
RA = 123.156, Dec = 28.3574
tmin = 682300801, tmax = 682560001
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='66594', job_status='RUN', time_executed='2022-09-16 13:55:04.158134', time_epoch_executed='1663361704.16' WHERE source_name='4FGL J0812.6+2821' and cadence='daily' and bin_id='1709'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/66594

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/66594/ft1_4FGL_J0812.6+2821_daily_bin1709.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/66594/ft2_4FGL_J0812.6+2821_daily_bin1709.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/66594/ft1_4FGL_J0812.6+2821_daily_bin1709.fits outfile=/scratch/kocevski/66594/ft1_filteredMKT_4FGL_J0812.6+2821_daily_bin1709.fits ra=123.156 dec=28.3574 rad=12.0 tmin=682300801.0 tmax=682560001.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.78
user 3.53
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/66594/ft2_4FGL_J0812.6+2821_daily_bin1709.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/66594/ft1_filteredMKT_4FGL_J0812.6+2821_daily_bin1709.fits evtable="EVENTS" outfile="/scratch/kocevski/66594/ft1_filtered_4FGL_J0812.6+2821_daily_bin1709.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.49
user 0.33
sys 0.16

Number of photons that the gtmktime cut: 626

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/66594/ft1_filtered_4FGL_J0812.6+2821_daily_bin1709.fits" evtable="EVENTS" scfile=/scratch/kocevski/66594/ft2_4FGL_J0812.6+2821_daily_bin1709.fits sctable="SC_DATA" outfile=/scratch/kocevski/66594/ltcube_682300801_682560001_4FGL_J0812.6+2821_daily_bin1709.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/66594/ft2_4FGL_J0812.6+2821_daily_bin1709.fits
.....................!
real 14.14
user 13.68
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/66594/ft1_filtered_4FGL_J0812.6+2821_daily_bin1709.fits evtable="EVENTS" scfile=/scratch/kocevski/66594/ft2_4FGL_J0812.6+2821_daily_bin1709.fits sctable="SC_DATA" expcube=/scratch/kocevski/66594/ltcube_682300801_682560001_4FGL_J0812.6+2821_daily_bin1709.fits outfile=/scratch/kocevski/66594/expmap_682300801_682560001_4FGL_J0812.6+2821_daily_bin1709.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/66594/ltcube_682300801_682560001_4FGL_J0812.6+2821_daily_bin1709.fits
.....................!
real 192.43
user 185.95
sys 4.94

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/66594/ft1_filtered_4FGL_J0812.6+2821_daily_bin1709.fits scfile=/scratch/kocevski/66594/ft2_4FGL_J0812.6+2821_daily_bin1709.fits outfile=/scratch/kocevski/66594/cmap_682300801_682560001_4FGL_J0812.6+2821_daily_bin1709.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 0.55
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/66594/ft1_filtered_4FGL_J0812.6+2821_daily_bin1709.fits scfile=/scratch/kocevski/66594/ft2_4FGL_J0812.6+2821_daily_bin1709.fits outfile=/scratch/kocevski/66594/cmap_HighResolution_682300801_682560001_4FGL_J0812.6+2821_daily_bin1709.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 0.56
user 0.40
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/66594/ft1_filtered_4FGL_J0812.6+2821_daily_bin1709.fits', '/scratch/kocevski/66594/ft2_4FGL_J0812.6+2821_daily_bin1709.fits', expMap='/scratch/kocevski/66594/expmap_682300801_682560001_4FGL_J0812.6+2821_daily_bin1709.fits', expCube='/scratch/kocevski/66594/ltcube_682300801_682560001_4FGL_J0812.6+2821_daily_bin1709.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/66594/Model_4FGL_J0812.6+2821_daily_bin1709.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  0.000e+00  1.000e+06 ( 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/66594/ft1_filtered_4FGL_J0812.6+2821_daily_bin1709.fits
Spacecraft file(s): /scratch/kocevski/66594/ft2_4FGL_J0812.6+2821_daily_bin1709.fits
Exposure map: /scratch/kocevski/66594/expmap_682300801_682560001_4FGL_J0812.6+2821_daily_bin1709.fits
Exposure cube: /scratch/kocevski/66594/ltcube_682300801_682560001_4FGL_J0812.6+2821_daily_bin1709.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/66594/Model_4FGL_J0812.6+2821_daily_bin1709.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 6895.45764721

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10911E-05   1.0000          .0000       .10000E+07
     2 'Prefactor '    16.888       1.0000          .0000       .10000E+07
     3 'norm      '    .90244E-06   1.0000          .0000       .10000E+07
     4 'Prefactor '    .71692E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    .74962E-06   1.0000          .0000       .10000E+07
     6 'Prefactor '    72.151       1.0000          .0000       .10000E+07
     7 'norm      '    .44495E-03   1.0000          .0000       .10000E+07
     8 'norm      '    10.071       1.0000          .0000       .10000E+07
     9 'Prefactor '    32.141       1.0000          .0000       .10000E+07
    10 'Prefactor '    .60563E-07   1.0000          .0000       .10000E+07
    11 'Prefactor '    74.094       1.0000          .0000       .10000E+07
    12 'Prefactor '    .21005E-05   1.0000          .0000       .10000E+07
    13 'norm      '    .74940E-08   1.0000          .0000       .10000E+07
    14 'Prefactor '    6.1846       1.0000          .0000       .10000E+07
    15 'Prefactor '    68.281       1.0000          .0000       .10000E+07
    16 'Normalizat'    1.1608       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .92953       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5590E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6890.530     FROM MIGRAD    STATUS=CONVERGED    144 CALLS      804 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        5.8021        .24857E-08** at limit **
   2  Prefactor     16.782        13.854       -.16043E-07   -.20370E-03
   3  norm           .0000        1.1827        .15423E-07** at limit **
   4  Prefactor      .0000        14.365        .22605E-06** at limit **
   5  Prefactor      .0000        5.8907       -.36897E-07** at limit **
   6  Prefactor     72.112        8.7953        .54620E-07   -.12521    
   7  norm           .0000        7.9020        .15318E-07** at limit **
   8  norm          9.3249        284.50        .96898E-06    .31837E-02
   9  Prefactor     31.854        33.484        .26862E-06    .66017E-02
  10  Prefactor      .0000        23.786       -.15375E-06** at limit **
  11  Prefactor     73.861        6.9339       -.33392E-07   -.48017E-01
  12  Prefactor      .0000        1.1772       -.55318E-08** at limit **
  13  norm           .0000        1.0319        .19174E-07** at limit **
  14  Prefactor     6.2882        9.6807       -.33687E-07    .39529E-03
  15  Prefactor     69.161        26.621        .78596E-07    .34398E-02
  16  Normalizat    1.1603        .21813        .17268E-05    .54141E-04
  17  Prefactor     .92992        .16689       -.84673E-06    .44749E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 16.7819
  norm       = 0
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 72.1117
  norm       = 0
  norm       = 9.32494
  Prefactor  = 31.8542
  Prefactor  = 0
  Prefactor  = 73.8608
  Prefactor  = 0
  norm       = 0
  Prefactor  = 6.28816
  Prefactor  = 69.1609
  Normalizat = 1.16025
  Prefactor  = 0.929923
 **********
 **   18 **HESSE 
 **********

 FCN=   6890.530     FROM HESSE     STATUS=OK           253 CALLS     1057 TOTAL
                     EDM=   .66E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        5.7690        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     16.782        13.876        .24345E-03   -1.5626    
   3  norm           .0000        1.1811        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor      .0000        14.385        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor      .0000        5.8887        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     72.112        53.057        .11773E-03   -1.5538    
   7  norm           .0000        7.8858        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          9.3249        298.39        .31550E-03   -1.5647    
   9  Prefactor     31.854        34.198        .17641E-03   -1.5595    
  10  Prefactor      .0000        23.778        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     73.861        28.877        .11618E-03   -1.5536    
  12  Prefactor      .0000        1.1728        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm           .0000        1.0251        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.2882        9.7659        .40344E-03   -1.5658    
  15  Prefactor     69.161        26.627        .12103E-03   -1.5542    
  16  Normalizat    1.1603        .18789        .60777E-01   -.87840    
  17  Prefactor     .92992        .14128        .45380E-01   -.95103    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.64089e-07
Minuit parameter uncertainties:
  1  2.86459e-06
  2  13.8757
  3  1.7042e-06
  4  2.88959e-05
  5  2.62485e-06
  6  53.0568
  7  2.03591e-06
  8  105.504
  9  34.198
  10  8.8453e-06
  11  28.8772
  12  3.96996e-07
  13  1.65434e-06
  14  9.76592
  15  26.627
  16  0.188
  17  0.141332
Done.

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

Extracting fit parameters...

4FGL J0812.6+2821
   Spectrum: PowerLaw
289    Prefactor:  3.185e+01  3.420e+01  0.000e+00  1.000e+06 ( 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.299e-01  1.413e-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.160e+00  1.880e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.31
Ra Dec: 123.156 28.357
Photon Index (Fixed Index): 2.11 +/- 0.00
Photon Flux (Fixed Index): 2.87e-08 +/- 3.08e-08
Energy Flux (Fixed Index): 1.54e-05 +/- 1.65e-05

TS (Fixed Index): 1.31
Ra Dec: 123.156 28.357
Photon Flux Upper Limit: 1.00e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.59e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/66594/likelihoodResults_682300801_682560001_4FGL_J0812.6+2821_daily_bin1709.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) = 6890.11362596
delta logL = 0.416077847

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6890.06536508
delta logL = 0.464338729364

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.2853       1.0000          .0000       .10000E+07
     2 'Index     '    3.3884       1.0000          .0000       10.000    
     3 'Normalizat'    1.1084       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95901       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6890.065     FROM MIGRAD    STATUS=FAILED        82 CALLS      300 TOTAL
                     EDM=   .36E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.2848        71.035        .94802E-05   -.40281E-01
   2  Index         3.3889        3.6361        .40685E-02   -.98797E-03
   3  Normalizat    1.1085        .20158        .27406E-03   -.52914E-03
   4  Prefactor     .95918        .15028        .22405E-03   -.45066E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6890.065     FROM SIMPLEX   STATUS=UNCHANGED     89 CALLS      389 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.2848        71.035        .15797E-04   -.40281E-01
   2  Index         3.3889        3.6361        .74783E-03   -.98797E-03
   3  Normalizat    1.1085        .20158        .21270E-03   -.52914E-03
   4  Prefactor     .95918        .15028        .10199E-03   -.45066E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6890.065     FROM MIGRAD    STATUS=CONVERGED     27 CALLS      416 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.2840        10.733        .37921E-06   -.41319E-01
   2  Index         3.3891        1.5825        .16274E-03   -.78478E-03
   3  Normalizat    1.1085        .22296        .54811E-04   -.48946E-03
   4  Prefactor     .95918        .16846        .44810E-04   -.46515E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.28404
  Index      = 3.38905
  Normalizat = 1.10854
  Prefactor  = 0.959185
 **********
 **   18 **HESSE 
 **********

 FCN=   6890.065     FROM HESSE     STATUS=OK            23 CALLS      439 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.2840        9.5772        .37379E-06   -1.5678    
   2  Index         3.3891        1.4979        .32548E-04   -.32804    
   3  Normalizat    1.1085        .22270        .10962E-04   -.89478    
   4  Prefactor     .95918        .16830        .89620E-05   -.94103    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.34545e-09
Minuit parameter uncertainties:
  1  9.35412
  2  1.52408
  3  0.22289
  4  0.168387
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/66594': 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) = 6890.06535656
delta logL = 0.464347252276

Extracting fit parameters...

4FGL J0812.6+2821
   Spectrum: PowerLaw
289    Prefactor:  2.284e+00  9.354e+00  0.000e+00  1.000e+06 ( 1.000e-14)
290        Index:  3.389e+00  1.524e+00  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.592e-01  1.684e-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.109e+00  2.229e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.30
Ra Dec: 123.156 28.357
Photon Index (Free Index): 3.39 +/- 1.52
Photon Flux (Free Index): 6.29e-08 +/- 5.43e-08
Energy Flux (Free Index): 1.08e-05 +/- 8.73e-06

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/66594/cmap_HighResolution_682300801_682560001_4FGL_J0812.6+2821_daily_bin1709.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.59e-03', comment='SUCCESS', photon_flux='2.87e-08', energy_flux2='1.08e-05', photon_flux_error='3.08e-08', dlogl='4.64e-01', energy_flux='1.54e-05', photon_flux2='6.29e-08', job_status='DONE', time_completed='2022-09-16 14:03:46.743524', photon_index_error2='1.52', photon_index2='3.39', ts='1.31', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', photon_flux_upper_limit='1.00e-07', energy_flux_error2='8.73e-06', EG='1.16', time_epoch_completed='1663362226.74', return_code='0', job_id='66594', GAL2='0.96', EG2='1.11', return_code2='0', energy_flux_error='1.65e-05', photon_flux_error2='5.43e-08', ts2='2.30', photon_index='2.11' WHERE bin_id='1709' AND source_name='4FGL J0812.6+2821' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 14:03:46 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0266>
Subject: Job 66594: <4FGL_J0812.6+2821_daily_bin1709> in cluster <slac> Done

Job <4FGL_J0812.6+2821_daily_bin1709> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Sep 16 13:50:14 2022
Job was executed on host(s) <bullet0266>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 13:51:01 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 13:51:01 2022
Terminated at Fri Sep 16 14:03:47 2022
Results reported at Fri Sep 16 14:03:47 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0812.6+2821_daily_bin1709 123.156 28.3574 682300801 682560001 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 :                                   522.55 sec.
    Max Memory :                                 1030 MB
    Average Memory :                             243.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   766 sec.
    Turnaround time :                            813 sec.

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

