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


Performing analysis on: 4FGL_J0812.6+2821_daily_bin35
RA = 123.156, Dec = 28.3574
tmin = 248400001, tmax = 248659201
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='314114', job_status='RUN', time_executed='2021-08-29 12:38:45.091491', time_epoch_executed='1630265925.09' WHERE source_name='4FGL J0812.6+2821' and cadence='daily' and bin_id='35'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/314114

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/314114/ft1_4FGL_J0812.6+2821_daily_bin35.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/314114/ft2_4FGL_J0812.6+2821_daily_bin35.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/314114/ft1_4FGL_J0812.6+2821_daily_bin35.fits outfile=/scratch/kocevski/314114/ft1_filteredMKT_4FGL_J0812.6+2821_daily_bin35.fits ra=123.156 dec=28.3574 rad=12.0 tmin=248400001.0 tmax=248659201.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 2.74
user 1.24
sys 1.46

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/314114/ft1_filtered_4FGL_J0812.6+2821_daily_bin35.fits" evtable="EVENTS" scfile=/scratch/kocevski/314114/ft2_4FGL_J0812.6+2821_daily_bin35.fits sctable="SC_DATA" outfile=/scratch/kocevski/314114/ltcube_248400001_248659201_4FGL_J0812.6+2821_daily_bin35.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/314114/ft2_4FGL_J0812.6+2821_daily_bin35.fits
.....................!
real 14.42
user 12.51
sys 1.78

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/314114/ft1_filtered_4FGL_J0812.6+2821_daily_bin35.fits evtable="EVENTS" scfile=/scratch/kocevski/314114/ft2_4FGL_J0812.6+2821_daily_bin35.fits sctable="SC_DATA" expcube=/scratch/kocevski/314114/ltcube_248400001_248659201_4FGL_J0812.6+2821_daily_bin35.fits outfile=/scratch/kocevski/314114/expmap_248400001_248659201_4FGL_J0812.6+2821_daily_bin35.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/314114/ltcube_248400001_248659201_4FGL_J0812.6+2821_daily_bin35.fits
.....................!
real 193.28
user 185.20
sys 7.11

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/314114/ft1_filtered_4FGL_J0812.6+2821_daily_bin35.fits scfile=/scratch/kocevski/314114/ft2_4FGL_J0812.6+2821_daily_bin35.fits outfile=/scratch/kocevski/314114/cmap_248400001_248659201_4FGL_J0812.6+2821_daily_bin35.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.81
user 0.38
sys 1.40

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/314114/ft1_filtered_4FGL_J0812.6+2821_daily_bin35.fits scfile=/scratch/kocevski/314114/ft2_4FGL_J0812.6+2821_daily_bin35.fits outfile=/scratch/kocevski/314114/cmap_HighResolution_248400001_248659201_4FGL_J0812.6+2821_daily_bin35.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.98
user 0.38
sys 1.43

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    9.7350       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.5510       1.0000         .10000E-03   10000.    
     5 'Prefactor '    25.208       1.0000         .10000E-03   10000.    
     6 'Prefactor '    71.079       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    5.3660       1.0000         .10000E-03   10000.    
     9 'norm      '    66.202       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.4679       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    16.804       1.0000         .10000E-03   10000.    
    13 'Prefactor '    15.407       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.9916       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.5505       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.8241       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1607       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .97400       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=   9647.430     FROM MIGRAD    STATUS=CONVERGED    390 CALLS     2029 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.1766        .17815E-07** at limit **
   2  Prefactor     .10000E-03    5.5496       -.94171E-08** at limit **
   3  norm          9.7355        6.1400       -.51312E-06   -.36269E-04
   4  Prefactor     6.5615        66.940        .12503E-04    .14934E-03
   5  Prefactor     25.208        22.876        .31846E-06   -.98441E-05
   6  Prefactor     71.085        50.219        .24502E-05    .16478E-03
   7  Prefactor     .10000E-03    19.808        .10000E-06** at limit **
   8  norm          5.3653        7.5410        .27082E-05   -.11507E-02
   9  norm          66.198        103.21       -.11807E-05   -.28433E-04
  10  Prefactor     3.4672        31.009       -.89722E-07   -.33886E-04
  11  Prefactor     .10000E-03    8.4478       -.22106E-07** at limit **
  12  Prefactor     16.800        19.693       -.19501E-05   -.29056E-03
  13  Prefactor     15.410        25.394        .19582E-05    .10142E-03
  14  Prefactor     .10000E-03    .77058        .88835E-08** at limit **
  15  norm          3.9916        1.6195       -.94326E-07   -.12723E-03
  16  Prefactor     3.5508        7.0256        .37697E-06   -.11967E-03
  17  Prefactor     .10000E-03    6.7244       -.20710E-08** at limit **
  18  Prefactor     6.8264        17.559        .18565E-05    .63032E-04
  19  Normalizat    1.1606        .17558       -.15637E-05    .25332E-04
  20  Prefactor     .97409        .12478        .23859E-06   -.16828E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.73552
  Prefactor  = 6.56152
  Prefactor  = 25.2082
  Prefactor  = 71.0851
  Prefactor  = 0.0001
  norm       = 5.3653
  norm       = 66.1982
  Prefactor  = 3.46723
  Prefactor  = 0.0001
  Prefactor  = 16.7999
  Prefactor  = 15.41
  Prefactor  = 0.0001
  norm       = 3.99163
  Prefactor  = 3.55083
  Prefactor  = 0.0001
  Prefactor  = 6.82643
  Normalizat = 1.16056
  Prefactor  = 0.974092
 **********
 **   18 **HESSE 
 **********

 FCN=   9647.430     FROM HESSE     STATUS=OK           293 CALLS     2322 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.1897        .14148E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.6034        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          9.7355        6.1622        .12843E-03   -1.5084    
   4  Prefactor     6.5615        73.056        .15679E-03   -1.5196    
   5  Prefactor     25.208        22.823        .79786E-04   -1.4703    
   6  Prefactor     71.085        50.589        .47615E-04   -1.4020    
   7  Prefactor     .10000E-03    19.845        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          5.3653        9.0516        .86743E-03   -1.5245    
   9  norm          66.198        103.52        .49326E-04   -1.4079    
  10  Prefactor     3.4672        31.073        .21715E-03   -1.5336    
  11  Prefactor     .10000E-03    8.4520        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     16.800        20.001        .97704E-04   -1.4888    
  13  Prefactor     15.410        25.658        .10204E-03   -1.4923    
  14  Prefactor     .10000E-03    .78244        .84189E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.9916        1.6281        .62236E-04   -1.5308    
  16  Prefactor     3.5508        7.0153        .21450E-03   -1.5331    
  17  Prefactor     .10000E-03    6.8216        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     6.8264        17.674        .15359E-03   -1.5185    
  19  Normalizat    1.1606        .20859        .27574E-03   -.87830    
  20  Prefactor     .97409        .14872        .22876E-03   -.93598    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.10273e-09
Minuit parameter uncertainties:
  1  9.92445e-07
  2  1.67003e-06
  3  6.16263
  4  43.8561
  5  22.8313
  6  50.6193
  7  7.27098e-05
  8  9.05387
  9  103.803
  10  20.7733
  11  2.33499e-06
  12  20.0093
  13  25.6761
  14  1.3636e-06
  15  1.62808
  16  7.01693
  17  7.46159e-06
  18  17.6875
  19  0.208734
  20  0.148787
Done.

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

Extracting fit parameters...

4FGL J0812.6+2821
   Spectrum: PowerLaw
289    Prefactor:  3.467e+00  2.077e+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.741e-01  1.488e-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.161e+00  2.087e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/314114/likelihoodResults_248400001_248659201_4FGL_J0812.6+2821_daily_bin35.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): 102
logL (Free Index) = 9647.39710973
delta logL = 0.0333428660124

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9647.3929116
delta logL = 0.0375410008655

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.2827       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6869       1.0000          .0000       10.000    
     3 'Normalizat'    1.1541       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97634       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=   9647.393     FROM MIGRAD    STATUS=FAILED        90 CALLS      260 TOTAL
                     EDM=   .94E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.2799        65.450        .27174E-03   -.10774E-02
   2  Index         2.6867        3.5017        .91333E-02   -.51121E-03
   3  Normalizat    1.1540        .19219        .27643E-03    .12717E-02
   4  Prefactor     .97646        .14694        .22850E-03    .19116E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   9647.393     FROM SIMPLEX   STATUS=UNCHANGED     91 CALLS      351 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.2799        65.450        .45852E-03   -1.5406    
   2  Index         2.6867        3.5017        .21758E-02   -.48100    
   3  Normalizat    1.1540        .19219        .27572E-03   -.88038    
   4  Prefactor     .97646        .14694        .19837E-03   -.93518    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9647.393     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      382 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.2786        17.235        .10870E-04   -.92876E-04
   2  Index         2.6870        1.9955        .36533E-03   -.14999E-04
   3  Normalizat    1.1540        .19131        .55286E-04   -.43019E-04
   4  Prefactor     .97646        .14614        .45701E-04   -.53136E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.2786
  Index      = 2.68701
  Normalizat = 1.15396
  Prefactor  = 0.976459
 **********
 **   18 **HESSE 
 **********

 FCN=   9647.393     FROM HESSE     STATUS=OK            23 CALLS      405 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.2786        16.929        .21739E-05   -1.5406    
   2  Index         2.6870        1.9784        .14613E-04   -.48092    
   3  Normalizat    1.1540        .19134        .11057E-04   -.88038    
   4  Prefactor     .97646        .14616        .91401E-05   -.93518    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.0608e-11
Minuit parameter uncertainties:
  1  12.4263
  2  2.05081
  3  0.191457
  4  0.146221
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/314114': 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) = 9647.39291111
delta logL = 0.0375414925293

Extracting fit parameters...

4FGL J0812.6+2821
   Spectrum: PowerLaw
289    Prefactor:  2.279e+00  1.243e+01  1.000e-04  1.000e+04 ( 1.000e-14)
290        Index:  2.687e+00  2.051e+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.765e-01  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:  1.154e+00  1.915e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.03
Ra Dec: 123.156 28.357

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/314114/cmap_HighResolution_248400001_248659201_4FGL_J0812.6+2821_daily_bin35.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.16e-03', job_status='DONE', photon_flux_upper_limit='5.49e-08', time_completed='2021-08-29 12:51:54.124760', job_id='314114', GAL2='0.98', fit_tolerance='1e-08', EG2='1.15', EG='1.16', time_epoch_completed='1630266714.12', return_code2='0', ts='0.03', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='3.75e-02', ts2='0.11', photon_index_error='0.00', photon_index='2.11' WHERE bin_id='35' AND source_name='4FGL J0812.6+2821' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 12:51:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0233>
Subject: Job 314114: <4FGL_J0812.6+2821_daily_bin35> in cluster <slac> Done

Job <4FGL_J0812.6+2821_daily_bin35> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Aug 29 12:35:55 2021
Job was executed on host(s) <bullet0233>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 12:35:57 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:57 2021
Terminated at Sun Aug 29 12:51:54 2021
Results reported at Sun Aug 29 12:51:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0812.6+2821_daily_bin35 123.156 28.3574 248400001 248659201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0812.6+2821 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   808.14 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             330.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   957 sec.
    Turnaround time :                            959 sec.

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

