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


Performing analysis on: 4FGL_J0812.6+2821_daily_bin1098
RA = 123.156, Dec = 28.3574
tmin = 523929601, tmax = 524188801
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='322412', job_status='RUN', time_executed='2021-08-29 13:01:09.400634', time_epoch_executed='1630267269.4' WHERE source_name='4FGL J0812.6+2821' and cadence='daily' and bin_id='1098'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/322412

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/322412/ft1_4FGL_J0812.6+2821_daily_bin1098.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/322412/ft2_4FGL_J0812.6+2821_daily_bin1098.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/322412/ft1_4FGL_J0812.6+2821_daily_bin1098.fits outfile=/scratch/kocevski/322412/ft1_filteredMKT_4FGL_J0812.6+2821_daily_bin1098.fits ra=123.156 dec=28.3574 rad=12.0 tmin=523929601.0 tmax=524188801.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.90
user 3.28
sys 0.54

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/322412/ft1_filtered_4FGL_J0812.6+2821_daily_bin1098.fits" evtable="EVENTS" scfile=/scratch/kocevski/322412/ft2_4FGL_J0812.6+2821_daily_bin1098.fits sctable="SC_DATA" outfile=/scratch/kocevski/322412/ltcube_523929601_524188801_4FGL_J0812.6+2821_daily_bin1098.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/322412/ft2_4FGL_J0812.6+2821_daily_bin1098.fits
.....................!
real 12.52
user 11.57
sys 0.75

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/322412/ft1_filtered_4FGL_J0812.6+2821_daily_bin1098.fits evtable="EVENTS" scfile=/scratch/kocevski/322412/ft2_4FGL_J0812.6+2821_daily_bin1098.fits sctable="SC_DATA" expcube=/scratch/kocevski/322412/ltcube_523929601_524188801_4FGL_J0812.6+2821_daily_bin1098.fits outfile=/scratch/kocevski/322412/expmap_523929601_524188801_4FGL_J0812.6+2821_daily_bin1098.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/322412/ltcube_523929601_524188801_4FGL_J0812.6+2821_daily_bin1098.fits
.....................!
real 191.07
user 184.84
sys 5.74

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/322412/ft1_filtered_4FGL_J0812.6+2821_daily_bin1098.fits scfile=/scratch/kocevski/322412/ft2_4FGL_J0812.6+2821_daily_bin1098.fits outfile=/scratch/kocevski/322412/cmap_523929601_524188801_4FGL_J0812.6+2821_daily_bin1098.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.89
user 0.37
sys 0.47

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/322412/ft1_filtered_4FGL_J0812.6+2821_daily_bin1098.fits scfile=/scratch/kocevski/322412/ft2_4FGL_J0812.6+2821_daily_bin1098.fits outfile=/scratch/kocevski/322412/cmap_HighResolution_523929601_524188801_4FGL_J0812.6+2821_daily_bin1098.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.92
user 0.39
sys 0.49

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .96822       1.0000         .10000E-03   10000.    
     3 'norm      '    .52686E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    18.214       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .43612E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    6.9093       1.0000         .10000E-03   10000.    
     9 'norm      '    .10034E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.7373       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.3153       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    19.127       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0918       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1837       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=   7455.688     FROM MIGRAD    STATUS=CONVERGED    444 CALLS     2434 TOTAL
                     EDM=   .40E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.9930       -.16847E-07** at limit **
   2  Prefactor     .97983        8.3429       -.27878E-06   -.23363E-04
   3  norm          .10000E-03    2.1126        .21327E-06** at limit **
   4  Prefactor     18.196        41.389       -.17454E-05   -.18778E-03
   5  Prefactor     .10000E-03    9.6972        .13176E-07** at limit **
   6  Prefactor     .10001E-03    27.267       -.53819E-07** at limit **
   7  Prefactor     .10000E-03    24.795       -.82156E-06** at limit **
   8  norm          6.9095        10.735        .21932E-05   -.48690E-03
   9  norm          .10000E-03    23.149        .57137E-06** at limit **
  10  Prefactor     7.7376        26.751       -.10742E-06   -.16110E-04
  11  Prefactor     1.3096        59.755        .67239E-05    .51784E-04
  12  Prefactor     .10000E-03    14.711       -.39384E-07** at limit **
  13  Prefactor     .10000E-03    8.8265        .32465E-08** at limit **
  14  Prefactor     .10000E-03    1.3071        .93075E-08** at limit **
  15  norm          .10000E-03    .26944        .76148E-08** at limit **
  16  Prefactor     .10000E-03    3.5163        .12789E-07** at limit **
  17  Prefactor     .10000E-03    4.0785        .57565E-08** at limit **
  18  Prefactor     19.122        20.247        .13444E-05    .26204E-03
  19  Normalizat    1.0918        .18745       -.25140E-06   -.90805E-04
  20  Prefactor     1.1837        .14117       -.35882E-07   -.11968E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.979825
  norm       = 0.0001
  Prefactor  = 18.1958
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  norm       = 6.90947
  norm       = 0.0001
  Prefactor  = 7.73764
  Prefactor  = 1.30959
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.1224
  Normalizat = 1.09183
  Prefactor  = 1.18367
 **********
 **   18 **HESSE 
 **********

 FCN=   7455.688     FROM HESSE     STATUS=OK           299 CALLS     2733 TOTAL
                     EDM=   .28E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.1513        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .97983        44.911        .47901E-02   -1.5510    
   3  norm          .10000E-03    35.599        .22517E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     18.196        41.344        .93846E-04   -1.4855    
   5  Prefactor     .10000E-03    9.7410        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10001E-03    28.245        .14422       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    24.813        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          6.9095        11.779        .76316E-03   -1.5182    
   9  norm          .10000E-03    23.211        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     7.7376        26.623        .14416E-03   -1.5152    
  11  Prefactor     1.3096        61.125        .38408E-03   -1.5479    
  12  Prefactor     .10000E-03    14.733        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    8.8491        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.5172        .19195E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .27162        .43748E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    3.5324        .15810E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.0854        .17030E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     19.122        20.830        .91581E-04   -1.4833    
  19  Normalizat    1.0918        .21537        .28770E-03   -.90014    
  20  Prefactor     1.1837        .16342        .21406E-03   -.86835    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.75903e-08
Minuit parameter uncertainties:
  1  3.91103e-06
  2  13.2772
  3  3.46105e-05
  4  41.4093
  5  4.49886e-06
  6  0.000762077
  7  0.000113103
  8  11.7831
  9  0.000125661
  10  26.6643
  11  17.9128
  12  1.13115e-05
  13  4.33948e-06
  14  1.24479e-07
  15  1.45942e-07
  16  3.26782e-07
  17  8.04051e-08
  18  20.8375
  19  0.215542
  20  0.163487
Done.

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

Extracting fit parameters...

4FGL J0812.6+2821
   Spectrum: PowerLaw
289    Prefactor:  7.738e+00  2.666e+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.184e+00  1.635e-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.092e+00  2.155e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/322412/likelihoodResults_523929601_524188801_4FGL_J0812.6+2821_daily_bin1098.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) = 7455.68780559
delta logL = 0.000634164754956

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7452.91310175
delta logL = 2.77533800574

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    6.9956       1.0000          .0000       10.000    
     3 'Normalizat'    .90520       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2835       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=   7452.913     FROM MIGRAD    STATUS=CONVERGED    235 CALLS      689 TOTAL
                     EDM=   .25E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .26888E-03   -.43935E-08** at limit **
   2  Index         6.9955        .16561       -.25134E-06    .10595E-03
   3  Normalizat    .90519        .22325       -.59074E-05    .21405E-06
   4  Prefactor     1.2835        .16928       -.53339E-05    .12709E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 6.99555
  Normalizat = 0.905193
  Prefactor  = 1.28351
 **********
 **   18 **HESSE 
 **********

 FCN=   7452.913     FROM HESSE     STATUS=OK            43 CALLS      732 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .69320E-04    .25796E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         6.9955        .26578        .64421E-01   -16.119    
   3  Normalizat    .90519        .21501        .70535E-01   -2.1788    
   4  Prefactor     1.2835        .16291        .32903E-01   -.83799    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.28385e-10
Minuit parameter uncertainties:
  1  1.4998e-10
  2  0.265932
  3  0.215219
  4  0.162978
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/322412': 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) = 7452.91310175
delta logL = 2.7753380104

Extracting fit parameters...

4FGL J0812.6+2821
   Spectrum: PowerLaw
289    Prefactor:  1.000e-04  1.500e-10  1.000e-04  1.000e+04 ( 1.000e-14)
290        Index:  6.996e+00  2.659e-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.284e+00  1.630e-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.052e-01  2.152e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.34
Ra Dec: 123.156 28.357
Photon Index (Free Index): 7.00 +/- 0.27
Photon Flux (Free Index): 1.48e-07 +/- 1.21e-07
Energy Flux (Free Index): 1.77e-05 +/- 1.44e-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/322412/cmap_HighResolution_523929601_524188801_4FGL_J0812.6+2821_daily_bin1098.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.65e-03', comment='SUCCESS', energy_flux2='1.77e-05', dlogl='2.78e+00', photon_flux2='1.48e-07', job_status='DONE', time_completed='2021-08-29 13:13:22.302154', photon_index_error2='0.27', photon_index2='7.00', ts='0.10', fit_tolerance='1e-08', GAL='1.18', photon_index_error='0.00', photon_flux_upper_limit='7.47e-08', energy_flux_error2='1.44e-05', EG='1.09', time_epoch_completed='1630268002.3', return_code='0', job_id='322412', GAL2='1.28', EG2='0.91', return_code2='0', photon_flux_error2='1.21e-07', ts2='6.34', photon_index='2.11' WHERE bin_id='1098' AND source_name='4FGL J0812.6+2821' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 13:13:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0275>
Subject: Job 322412: <4FGL_J0812.6+2821_daily_bin1098> in cluster <slac> Done

Job <4FGL_J0812.6+2821_daily_bin1098> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Aug 29 13:00:29 2021
Job was executed on host(s) <bullet0275>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 13:00:30 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:00:30 2021
Terminated at Sun Aug 29 13:13:23 2021
Results reported at Sun Aug 29 13:13:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0812.6+2821_daily_bin1098 123.156 28.3574 523929601 524188801 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 :                                   732.23 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             342.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   772 sec.
    Turnaround time :                            774 sec.

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

