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


Performing analysis on: 4FGL_J0812.6+2821_daily_bin1500
RA = 123.156, Dec = 28.3574
tmin = 628128001, tmax = 628387201
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='325830', job_status='RUN', time_executed='2021-08-29 13:09:26.958281', time_epoch_executed='1630267766.96' WHERE source_name='4FGL J0812.6+2821' and cadence='daily' and bin_id='1500'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/325830

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/325830/ft1_4FGL_J0812.6+2821_daily_bin1500.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/325830/ft2_4FGL_J0812.6+2821_daily_bin1500.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/325830/ft1_4FGL_J0812.6+2821_daily_bin1500.fits outfile=/scratch/kocevski/325830/ft1_filteredMKT_4FGL_J0812.6+2821_daily_bin1500.fits ra=123.156 dec=28.3574 rad=12.0 tmin=628128001.0 tmax=628387201.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 6.15
user 4.97
sys 0.89

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/325830/ft1_filtered_4FGL_J0812.6+2821_daily_bin1500.fits" evtable="EVENTS" scfile=/scratch/kocevski/325830/ft2_4FGL_J0812.6+2821_daily_bin1500.fits sctable="SC_DATA" outfile=/scratch/kocevski/325830/ltcube_628128001_628387201_4FGL_J0812.6+2821_daily_bin1500.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/325830/ft2_4FGL_J0812.6+2821_daily_bin1500.fits
.....................!
real 13.02
user 11.80
sys 1.07

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/325830/ft1_filtered_4FGL_J0812.6+2821_daily_bin1500.fits evtable="EVENTS" scfile=/scratch/kocevski/325830/ft2_4FGL_J0812.6+2821_daily_bin1500.fits sctable="SC_DATA" expcube=/scratch/kocevski/325830/ltcube_628128001_628387201_4FGL_J0812.6+2821_daily_bin1500.fits outfile=/scratch/kocevski/325830/expmap_628128001_628387201_4FGL_J0812.6+2821_daily_bin1500.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/325830/ltcube_628128001_628387201_4FGL_J0812.6+2821_daily_bin1500.fits
.....................!
real 192.71
user 185.87
sys 6.02

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/325830/ft1_filtered_4FGL_J0812.6+2821_daily_bin1500.fits scfile=/scratch/kocevski/325830/ft2_4FGL_J0812.6+2821_daily_bin1500.fits outfile=/scratch/kocevski/325830/cmap_628128001_628387201_4FGL_J0812.6+2821_daily_bin1500.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 1.35
user 0.38
sys 0.78

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/325830/ft1_filtered_4FGL_J0812.6+2821_daily_bin1500.fits scfile=/scratch/kocevski/325830/ft2_4FGL_J0812.6+2821_daily_bin1500.fits outfile=/scratch/kocevski/325830/cmap_HighResolution_628128001_628387201_4FGL_J0812.6+2821_daily_bin1500.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 1.61
user 0.38
sys 0.79

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15116E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    21.096       1.0000         .10000E-03   10000.    
     3 'norm      '    15.234       1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.352       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    103.61       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    45.876       1.0000         .10000E-03   10000.    
    10 'Prefactor '    31.901       1.0000         .10000E-03   10000.    
    11 'Prefactor '    27.391       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.0482       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .13650       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0373       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .99629       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=   6655.141     FROM MIGRAD    STATUS=CONVERGED    417 CALLS     2122 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10004E-03    5.1635        .61712E-06** at limit **
   2  Prefactor     21.097        20.939       -.31107E-06    .88563E-05
   3  norm          15.236        6.0460        .50887E-05    .36056E-03
   4  Prefactor     11.303        41.892       -.10111E-03   -.47234E-05
   5  Prefactor     .10000E-03    11.602       -.37650E-05** at limit **
   6  Prefactor     103.59        54.085       -.12958E-04    .27617E-04
   7  Prefactor     .10000E-03    13.496       -.19239E-05** at limit **
   8  norm          .10000E-03    12.321        .29643E-05** at limit **
   9  norm          45.874        60.341       -.27410E-05    .69288E-05
  10  Prefactor     31.902        30.117        .28547E-05    .63355E-04
  11  Prefactor     27.388        34.476       -.30825E-05    .48271E-04
  12  Prefactor     4.0316        61.748       -.43306E-04   -.11602E-04
  13  Prefactor     .10000E-03    12.429        .27784E-05** at limit **
  14  Prefactor     .10000E-03    3.0580       -.19891E-06** at limit **
  15  norm          .10000E-03    .41510       -.12280E-06** at limit **
  16  Prefactor     .10000E-03    4.7909       -.22160E-06** at limit **
  17  Prefactor     .16003        5.1642       -.43246E-05    .12198E-02
  18  Prefactor     .10000E-03    7.0015        .48039E-07** at limit **
  19  Normalizat    1.0373        .18539        .57781E-05    .18963E-03
  20  Prefactor     .99630        .13924        .14246E-05    .46686E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100036
  Prefactor  = 21.097
  norm       = 15.2363
  Prefactor  = 11.3033
  Prefactor  = 0.0001
  Prefactor  = 103.594
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 45.8736
  Prefactor  = 31.9022
  Prefactor  = 27.3881
  Prefactor  = 4.03157
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.160025
  Prefactor  = 0.0001
  Normalizat = 1.03727
  Prefactor  = 0.996299
 **********
 **   18 **HESSE 
 **********

 FCN=   6655.141     FROM HESSE     STATUS=OK           289 CALLS     2411 TOTAL
                     EDM=   .31E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10004E-03    24.893        .35595E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     21.097        20.948        .87204E-04   -1.4789    
   3  norm          15.236        6.0474        .10262E-03   -1.4927    
   4  Prefactor     11.303        41.945        .11891E-03   -1.5035    
   5  Prefactor     .10000E-03    11.680        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     103.59        54.068        .39503E-04   -1.3669    
   7  Prefactor     .10000E-03    13.494        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    12.457        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          45.874        60.362        .59196E-04   -1.4352    
  10  Prefactor     31.902        30.124        .70943E-04   -1.4578    
  11  Prefactor     27.388        34.463        .76546E-04   -1.4661    
  12  Prefactor     4.0316        61.846        .20041E-03   -1.5306    
  13  Prefactor     .10000E-03    12.463        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.1766        .27835E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .42776        .10252E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    4.8304        .17433E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .16003        43.873        .35836E-02   -1.5628    
  18  Prefactor     .10000E-03    7.0136        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.0373        .21675        .27690E-03   -.91792    
  20  Prefactor     .99630        .16353        .21690E-03   -.92853    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.08809e-08
Minuit parameter uncertainties:
  1  0.00188212
  2  20.9556
  3  6.04761
  4  42.0545
  5  6.28199e-05
  6  54.0937
  7  0.000172713
  8  2.33274e-05
  9  60.443
  10  30.1382
  11  34.488
  12  31.6194
  13  4.57096e-05
  14  4.27671e-05
  15  5.53826e-06
  16  2.87256e-05
  17  5.30165
  18  2.38183e-05
  19  0.216932
  20  0.163611
Done.

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

Extracting fit parameters...

4FGL J0812.6+2821
   Spectrum: PowerLaw
289    Prefactor:  3.190e+01  3.014e+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.963e-01  1.636e-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.037e+00  2.169e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.72
Ra Dec: 123.156 28.357
Photon Index (Fixed Index): 2.11 +/- 0.00
Photon Flux (Fixed Index): 2.88e-08 +/- 2.71e-08
Energy Flux (Fixed Index): 1.54e-05 +/- 1.46e-05

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

Saving results to:
/scratch/kocevski/325830/likelihoodResults_628128001_628387201_4FGL_J0812.6+2821_daily_bin1500.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) = 6654.41436778
delta logL = 0.726739482258

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6654.39699768
delta logL = 0.74410958571

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.5065       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3099       1.0000          .0000       10.000    
     3 'Normalizat'    .95123       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0371       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=   6654.397     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      263 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.5128        44.831        .47414E-02    .18647E-03
   2  Index         3.3099        1.9784        .87362E-01    .19066E-03
   3  Normalizat    .95135        .69128E-01    .45553E-01    .18943E-04
   4  Prefactor     1.0370        .47956E-01    .40732E-01    .27526E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.5128
  Index      = 3.30987
  Normalizat = 0.951349
  Prefactor  = 1.03697
 **********
 **   18 **HESSE 
 **********

 FCN=   6654.397     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      296 TOTAL
                     EDM=   .39E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.5128        76.875        .98670E-04   -1.5283    
   2  Index         3.3099        3.0640        .31832E-02   -.34482    
   3  Normalizat    .95135        .25414        .28704E-03   -.94679    
   4  Prefactor     1.0370        .17469        .21299E-03   -.91507    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.90766e-07
Minuit parameter uncertainties:
  1  37.3075
  2  3.33671
  3  0.254466
  4  0.174784
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/325830': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6654.39699501
delta logL = 0.744112247738

Extracting fit parameters...

4FGL J0812.6+2821
   Spectrum: PowerLaw
289    Prefactor:  4.513e+00  3.731e+01  1.000e-04  1.000e+04 ( 1.000e-14)
290        Index:  3.310e+00  3.337e+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:  1.037e+00  1.748e-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.513e-01  2.545e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.37
Ra Dec: 123.156 28.357
Photon Index (Free Index): 3.31 +/- 3.34
Photon Flux (Free Index): 9.92e-08 +/- 1.35e-07
Energy Flux (Free Index): 1.75e-05 +/- 1.07e-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/325830/cmap_HighResolution_628128001_628387201_4FGL_J0812.6+2821_daily_bin1500.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.36e-03', comment='SUCCESS', photon_flux='2.88e-08', energy_flux2='1.75e-05', photon_flux_error='2.71e-08', dlogl='7.44e-01', energy_flux='1.54e-05', photon_flux2='9.92e-08', job_status='DONE', time_completed='2021-08-29 13:20:16.769309', photon_index_error2='3.34', photon_index2='3.31', ts='2.72', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', photon_flux_upper_limit='9.73e-08', energy_flux_error2='1.07e-05', EG='1.04', time_epoch_completed='1630268416.77', return_code='0', job_id='325830', GAL2='1.04', EG2='0.95', return_code2='102', energy_flux_error='1.46e-05', photon_flux_error2='1.35e-07', ts2='4.37', photon_index='2.11' WHERE bin_id='1500' AND source_name='4FGL J0812.6+2821' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 13:20:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0282>
Subject: Job 325830: <4FGL_J0812.6+2821_daily_bin1500> in cluster <slac> Done

Job <4FGL_J0812.6+2821_daily_bin1500> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Sun Aug 29 13:05:44 2021
Job was executed on host(s) <bullet0282>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 13:05:47 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 29 13:05:47 2021
Terminated at Sun Aug 29 13:20:17 2021
Results reported at Sun Aug 29 13:20:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0812.6+2821_daily_bin1500 123.156 28.3574 628128001 628387201 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 :                                   651.04 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             266.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   870 sec.
    Turnaround time :                            873 sec.

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

