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


Performing analysis on: 4FGL_J0812.6+2821_daily_bin1
RA = 123.156, Dec = 28.3574
tmin = 239587201, tmax = 239846401
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='314063', job_status='RUN', time_executed='2021-08-29 12:37:54.168857', time_epoch_executed='1630265874.17' WHERE source_name='4FGL J0812.6+2821' and cadence='daily' and bin_id='1'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/314063

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

Retrieving the FT1 file...

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

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

Retrieving 41 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/314063/ft1_4FGL_J0812.6+2821_daily_bin1.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/314063/ft2_4FGL_J0812.6+2821_daily_bin1.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/314063/ft1_4FGL_J0812.6+2821_daily_bin1.fits outfile=/scratch/kocevski/314063/ft1_filteredMKT_4FGL_J0812.6+2821_daily_bin1.fits ra=123.156 dec=28.3574 rad=12.0 tmin=239587201.0 tmax=239846401.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.38
user 1.13
sys 2.15

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/314063/ft2_4FGL_J0812.6+2821_daily_bin1.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/314063/ft1_filteredMKT_4FGL_J0812.6+2821_daily_bin1.fits evtable="EVENTS" outfile="/scratch/kocevski/314063/ft1_filtered_4FGL_J0812.6+2821_daily_bin1.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 2.50
user 0.34
sys 2.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/314063/ft1_filtered_4FGL_J0812.6+2821_daily_bin1.fits" evtable="EVENTS" scfile=/scratch/kocevski/314063/ft2_4FGL_J0812.6+2821_daily_bin1.fits sctable="SC_DATA" outfile=/scratch/kocevski/314063/ltcube_239587201_239846401_4FGL_J0812.6+2821_daily_bin1.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/314063/ft2_4FGL_J0812.6+2821_daily_bin1.fits
.....................!
real 15.78
user 13.10
sys 2.56

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/314063/ft1_filtered_4FGL_J0812.6+2821_daily_bin1.fits evtable="EVENTS" scfile=/scratch/kocevski/314063/ft2_4FGL_J0812.6+2821_daily_bin1.fits sctable="SC_DATA" expcube=/scratch/kocevski/314063/ltcube_239587201_239846401_4FGL_J0812.6+2821_daily_bin1.fits outfile=/scratch/kocevski/314063/expmap_239587201_239846401_4FGL_J0812.6+2821_daily_bin1.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/314063/ltcube_239587201_239846401_4FGL_J0812.6+2821_daily_bin1.fits
.....................!
real 193.63
user 185.27
sys 7.32

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/314063/ft1_filtered_4FGL_J0812.6+2821_daily_bin1.fits scfile=/scratch/kocevski/314063/ft2_4FGL_J0812.6+2821_daily_bin1.fits outfile=/scratch/kocevski/314063/cmap_239587201_239846401_4FGL_J0812.6+2821_daily_bin1.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 2.52
user 0.37
sys 2.11

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/314063/ft1_filtered_4FGL_J0812.6+2821_daily_bin1.fits scfile=/scratch/kocevski/314063/ft2_4FGL_J0812.6+2821_daily_bin1.fits outfile=/scratch/kocevski/314063/cmap_HighResolution_239587201_239846401_4FGL_J0812.6+2821_daily_bin1.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 2.62
user 0.39
sys 2.11

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10115E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .11268E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    40.848       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.2355       1.0000         .10000E-03   10000.    
     6 'Prefactor '    37.543       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10551E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10096E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    67.249       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11481E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10536E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .16754E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.2450       1.0000         .10000E-03   10000.    
    15 'norm      '    2.6502       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .91182E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .14440E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    23.864       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .44833       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1039       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=   6176.806     FROM MIGRAD    STATUS=CONVERGED    414 CALLS     2093 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.3349       -.32991E-06** at limit **
   2  Prefactor     .10000E-03    11.092       -.74228E-07** at limit **
   3  norm          .10000E-03    1.6474       -.81828E-06** at limit **
   4  Prefactor     40.815        37.308        .60318E-05    .80749E-04
   5  Prefactor     2.2365        9.6432        .78680E-05    .31748E-03
   6  Prefactor     37.542        28.072        .30160E-06   -.50620E-05
   7  Prefactor     .10000E-03    10.938       -.14666E-05** at limit **
   8  norm          .10000E-03    9.7937        .26902E-06** at limit **
   9  norm          .10000E-03    27.047       -.21344E-05** at limit **
  10  Prefactor     67.246        37.490        .74050E-07   -.10956E-03
  11  Prefactor     .10000E-03    24.734        .47841E-05** at limit **
  12  Prefactor     .10000E-03    48.968       -.34543E-05** at limit **
  13  Prefactor     .10000E-03    53.566        .48423E-05** at limit **
  14  Prefactor     3.2449        2.9357        .16434E-06    .37919E-04
  15  norm          2.6486        1.2892       -.21094E-06   -.17004E-02
  16  Prefactor     .10000E-03    6.9743       -.30934E-05** at limit **
  17  Prefactor     .10012E-03    9.8296        .64747E-05** at limit **
  18  Prefactor     23.861        17.354        .36860E-06   -.19835E-04
  19  Normalizat    .44829        .17147       -.19241E-05   -.25425E-03
  20  Prefactor     1.1040        .12991       -.35849E-06   -.41369E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 40.8146
  Prefactor  = 2.23654
  Prefactor  = 37.5415
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 67.2464
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.24493
  norm       = 2.64856
  Prefactor  = 0.000100004
  Prefactor  = 0.000100123
  Prefactor  = 23.8613
  Normalizat = 0.44829
  Prefactor  = 1.10399
 **********
 **   18 **HESSE 
 **********

 FCN=   6176.806     FROM HESSE     STATUS=OK           285 CALLS     2378 TOTAL
                     EDM=   .58E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.4290        .17718E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    11.141        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    1.7308        .19796E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     40.815        37.445        .62718E-04   -1.4429    
   5  Prefactor     2.2365        10.799        .13746E-02   -1.5409    
   6  Prefactor     37.542        28.070        .65411E-04   -1.4482    
   7  Prefactor     .10000E-03    10.979        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    9.8697        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    27.043        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     67.246        37.418        .48943E-04   -1.4066    
  11  Prefactor     .10000E-03    24.748        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    49.352        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    54.977        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.2449        2.9263        .12344E-03   -1.5348    
  15  norm          2.6486        1.2546        .57338E-04   -1.5382    
  16  Prefactor     .10000E-03    16.124        .35548E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10012E-03    27.460        .38128E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     23.861        17.365        .81998E-04   -1.4731    
  19  Normalizat    .44829        .18659        .33210E-03   -1.1488    
  20  Prefactor     1.1040        .14424        .17508E-03   -.89339    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.81442e-09
Minuit parameter uncertainties:
  1  3.26701e-05
  2  1.12187e-05
  3  6.30513e-05
  4  37.4664
  5  9.83185
  6  28.0799
  7  0.000104469
  8  1.28593e-05
  9  2.83876e-05
  10  37.431
  11  4.72727e-05
  12  0.000100075
  13  0.000108352
  14  2.92647
  15  1.25462
  16  0.000526012
  17  0.00368049
  18  17.3686
  19  0.186845
  20  0.144287
Done.

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

Extracting fit parameters...

4FGL J0812.6+2821
   Spectrum: PowerLaw
289    Prefactor:  6.725e+01  3.743e+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.104e+00  1.443e-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:  4.483e-01  1.868e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.40
Ra Dec: 123.156 28.357
Photon Index (Fixed Index): 2.11 +/- 0.00
Photon Flux (Fixed Index): 6.06e-08 +/- 3.37e-08
Energy Flux (Fixed Index): 3.25e-05 +/- 1.81e-05

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) = 6175.67625365
delta logL = 1.12942240954

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6175.66919106
delta logL = 1.13648500698

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.933       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9128       1.0000          .0000       10.000    
     3 'Normalizat'    .38482       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1365       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=   6175.669     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      307 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.937        81.339        .10365E-03    .34979E-03
   2  Index         2.9132        1.7980        .26273E-02    .27799E-03
   3  Normalizat    .38447        .20552        .35721E-03   -.10770E-03
   4  Prefactor     1.1368        .15910        .17274E-03    .10973E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.9373
  Index      = 2.91318
  Normalizat = 0.384473
  Prefactor  = 1.1368
 **********
 **   18 **HESSE 
 **********

 FCN=   6175.669     FROM HESSE     STATUS=OK            25 CALLS      332 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.937        23.795        .41459E-05   -1.4935    
   2  Index         2.9132        .62748        .10509E-03   -.43054    
   3  Normalizat    .38447        .18457        .14289E-04   -1.1811    
   4  Prefactor     1.1368        .14615        .34549E-04   -.88299    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.38227e-10
Minuit parameter uncertainties:
  1  23.8103
  2  0.629488
  3  0.184859
  4  0.146205
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/314063': 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) = 6175.6691855
delta logL = 1.13649056387

Extracting fit parameters...

4FGL J0812.6+2821
   Spectrum: PowerLaw
289    Prefactor:  1.494e+01  2.381e+01  1.000e-04  1.000e+04 ( 1.000e-14)
290        Index:  2.913e+00  6.295e-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.137e+00  1.462e-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:  3.845e-01  1.849e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.91
Ra Dec: 123.156 28.357
Photon Index (Free Index): 2.91 +/- 0.63
Photon Flux (Free Index): 1.08e-07 +/- 5.37e-08
Energy Flux (Free Index): 2.26e-05 +/- 1.08e-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/314063/cmap_HighResolution_239587201_239846401_4FGL_J0812.6+2821_daily_bin1.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.06e-08', energy_flux2='2.26e-05', photon_flux_error='3.37e-08', dlogl='1.14e+00', energy_flux='3.25e-05', photon_flux2='1.08e-07', job_status='DONE', time_completed='2021-08-29 12:47:27.453049', photon_index_error2='0.63', photon_index2='2.91', ts='5.40', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', energy_flux_error2='1.08e-05', EG='0.45', time_epoch_completed='1630266447.45', return_code='0', job_id='314063', GAL2='1.14', EG2='0.38', return_code2='0', energy_flux_error='1.81e-05', photon_flux_error2='5.37e-08', ts2='7.91', photon_index='2.11' WHERE bin_id='1' AND source_name='4FGL J0812.6+2821' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 12:47:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0076>
Subject: Job 314063: <4FGL_J0812.6+2821_daily_bin1> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0812.6+2821_daily_bin1 123.156 28.3574 239587201 239846401 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 :                                   603.19 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             300.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   694 sec.
    Turnaround time :                            698 sec.

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

