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


Performing analysis on: 4FGL_J0812.6+2821_daily_bin1025
RA = 123.156, Dec = 28.3574
tmin = 505008001, tmax = 505267201
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='320869', job_status='RUN', time_executed='2021-08-29 12:58:55.802462', time_epoch_executed='1630267135.8' WHERE source_name='4FGL J0812.6+2821' and cadence='daily' and bin_id='1025'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/320869

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/320869/ft1_4FGL_J0812.6+2821_daily_bin1025.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/320869/ft2_4FGL_J0812.6+2821_daily_bin1025.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/320869/ft1_4FGL_J0812.6+2821_daily_bin1025.fits outfile=/scratch/kocevski/320869/ft1_filteredMKT_4FGL_J0812.6+2821_daily_bin1025.fits ra=123.156 dec=28.3574 rad=12.0 tmin=505008001.0 tmax=505267201.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 5.40
user 4.32
sys 1.04

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/320869/ft2_4FGL_J0812.6+2821_daily_bin1025.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/320869/ft1_filteredMKT_4FGL_J0812.6+2821_daily_bin1025.fits evtable="EVENTS" outfile="/scratch/kocevski/320869/ft1_filtered_4FGL_J0812.6+2821_daily_bin1025.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.38
user 0.36
sys 0.97

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/320869/ft1_filtered_4FGL_J0812.6+2821_daily_bin1025.fits" evtable="EVENTS" scfile=/scratch/kocevski/320869/ft2_4FGL_J0812.6+2821_daily_bin1025.fits sctable="SC_DATA" outfile=/scratch/kocevski/320869/ltcube_505008001_505267201_4FGL_J0812.6+2821_daily_bin1025.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/320869/ft2_4FGL_J0812.6+2821_daily_bin1025.fits
.....................!
real 12.67
user 11.33
sys 1.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/320869/ft1_filtered_4FGL_J0812.6+2821_daily_bin1025.fits evtable="EVENTS" scfile=/scratch/kocevski/320869/ft2_4FGL_J0812.6+2821_daily_bin1025.fits sctable="SC_DATA" expcube=/scratch/kocevski/320869/ltcube_505008001_505267201_4FGL_J0812.6+2821_daily_bin1025.fits outfile=/scratch/kocevski/320869/expmap_505008001_505267201_4FGL_J0812.6+2821_daily_bin1025.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/320869/ltcube_505008001_505267201_4FGL_J0812.6+2821_daily_bin1025.fits
.....................!
real 191.40
user 185.57
sys 5.42

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/320869/ft1_filtered_4FGL_J0812.6+2821_daily_bin1025.fits scfile=/scratch/kocevski/320869/ft2_4FGL_J0812.6+2821_daily_bin1025.fits outfile=/scratch/kocevski/320869/cmap_505008001_505267201_4FGL_J0812.6+2821_daily_bin1025.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.39
user 0.38
sys 0.99

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/320869/ft1_filtered_4FGL_J0812.6+2821_daily_bin1025.fits scfile=/scratch/kocevski/320869/ft2_4FGL_J0812.6+2821_daily_bin1025.fits outfile=/scratch/kocevski/320869/cmap_HighResolution_505008001_505267201_4FGL_J0812.6+2821_daily_bin1025.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.39
user 0.39
sys 0.99

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .68499E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    7.5527       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.6090       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10309E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .12086E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    37.127       1.0000         .10000E-03   10000.    
     9 'norm      '    .10500E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10826E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10469E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10785E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.4196       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10154E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10249E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.3517       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.4453       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.2824       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .95963       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=   6566.066     FROM MIGRAD    STATUS=CONVERGED    406 CALLS     1745 TOTAL
                     EDM=   .88E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    7.5206       -.11793E-05** at limit **
   2  Prefactor     .10000E-03    19.999        .10863E-05** at limit **
   3  norm          7.5499        6.3854        .25708E-06    .36341E-03
   4  Prefactor     .10000E-03    17.754       -.95973E-06** at limit **
   5  Prefactor     1.6243        71.240       -.43106E-05    .12132E-04
   6  Prefactor     .10000E-03    23.145        .55902E-06** at limit **
   7  Prefactor     .10000E-03    29.416       -.13420E-05** at limit **
   8  norm          37.138        17.653       -.54612E-06    .86500E-04
   9  norm          .10000E-03    23.224        .55622E-06** at limit **
  10  Prefactor     .10000E-03    23.133        .46709E-06** at limit **
  11  Prefactor     .10000E-03    32.758       -.11731E-05** at limit **
  12  Prefactor     .10000E-03    25.526       -.59624E-06** at limit **
  13  Prefactor     2.4641        62.849        .38512E-05   -.28983E-05
  14  Prefactor     .10000E-03    3.5093       -.11489E-06** at limit **
  15  norm          .10000E-03    .86908        .52867E-06** at limit **
  16  Prefactor     .10000E-03    3.6019       -.55403E-07** at limit **
  17  Prefactor     7.3486        7.6747       -.18817E-06    .25015E-04
  18  Prefactor     1.4396        54.985       -.47170E-06   -.11123E-05
  19  Normalizat    1.2824        .20873        .43286E-06    .14417E-03
  20  Prefactor     .95980        .14874        .78063E-06    .27216E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  norm       = 7.54987
  Prefactor  = 0.0001
  Prefactor  = 1.62427
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 37.1384
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.46407
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.34856
  Prefactor  = 1.43962
  Normalizat = 1.28245
  Prefactor  = 0.959799
 **********
 **   18 **HESSE 
 **********

 FCN=   6566.066     FROM HESSE     STATUS=OK           287 CALLS     2032 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    30.547        .40784E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    19.956        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          7.5499        6.2567        .14593E-03   -1.5158    
   4  Prefactor     .10000E-03    17.739        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.6243        69.342        .33398E-03   -1.5453    
   6  Prefactor     .10000E-03    23.127        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    29.386        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          37.138        17.625        .65776E-04   -1.4488    
   9  norm          .10000E-03    23.200        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    23.131        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    32.855        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    25.641        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.4641        61.683        .26314E-03   -1.5394    
  14  Prefactor     .10000E-03    3.6190        .29646E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .88639        .11703E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    3.6219        .15018E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     7.3486        7.6691        .14792E-03   -1.5166    
  18  Prefactor     1.4396        56.210        .35861E-03   -1.5468    
  19  Normalizat    1.2824        .24346        .26952E-03   -.84092    
  20  Prefactor     .95980        .17639        .23079E-03   -.94082    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.5239e-10
Minuit parameter uncertainties:
  1  0.000906538
  2  8.23339e-05
  3  6.2572
  4  2.5009e-05
  5  21.2511
  6  3.96511e-05
  7  4.81955e-05
  8  17.6275
  9  2.62308e-05
  10  4.17347e-05
  11  2.23568e-05
  12  1.41292e-05
  13  24.685
  14  1.92719e-05
  15  3.11519e-06
  16  3.80102e-06
  17  7.67012
  18  18.0088
  19  0.243681
  20  0.176498
Done.

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

Extracting fit parameters...

4FGL J0812.6+2821
   Spectrum: PowerLaw
289    Prefactor:  1.000e-04  4.173e-05  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.598e-01  1.765e-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.282e+00  2.437e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/320869/likelihoodResults_505008001_505267201_4FGL_J0812.6+2821_daily_bin1025.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) = 6566.0660498
delta logL = -0.000205975700737

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6566.06584388
delta logL = -6.04914021096e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1956       1.0000          .0000       10.000    
     3 'Normalizat'    1.2824       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95980       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=   6566.066     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      232 TOTAL
                     EDM=   .63E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    414.01        .90712E-02** at limit **
   2  Index         2.1890        8.8514        .50000        .23794E-05
   3  Normalizat    1.2824        .22338E-01    .60939E-01   -.47061E-04
   4  Prefactor     .95980        .16920E-01    .45763E-01   -.19391E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.18898
  Normalizat = 1.28245
  Prefactor  = 0.959798
 **********
 **   18 **HESSE 
 **********

 FCN=   6566.066     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      265 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6400.0        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1890        6.9427        .50000       -.59705    
   3  Normalizat    1.2824        .74077E-01    .26952E-03   -.84092    
   4  Prefactor     .95980        .56125E-01    .23079E-03   -.94082    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.54045e-10
Minuit parameter uncertainties:
  1  0.00182763
  2  48.5975
  3  0.0740836
  4  0.0561283
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/320869': 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) = 6566.06584386
delta logL = -4.12119334214e-08

Extracting fit parameters...

4FGL J0812.6+2821
   Spectrum: PowerLaw
289    Prefactor:  1.000e-04  1.828e-03  1.000e-04  1.000e+04 ( 1.000e-14)
290        Index:  2.189e+00  4.860e+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:  9.598e-01  5.613e-02  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.282e+00  7.408e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 123.156 28.357

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/320869/cmap_HighResolution_505008001_505267201_4FGL_J0812.6+2821_daily_bin1025.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.31e-03', job_status='DONE', photon_flux_upper_limit='7.02e-08', time_completed='2021-08-29 13:09:05.409575', job_id='320869', GAL2='0.96', fit_tolerance='1e-08', EG2='1.28', EG='1.28', time_epoch_completed='1630267745.41', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='-4.12e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.11' WHERE bin_id='1025' AND source_name='4FGL J0812.6+2821' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 13:09:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0120>
Subject: Job 320869: <4FGL_J0812.6+2821_daily_bin1025> in cluster <slac> Done

Job <4FGL_J0812.6+2821_daily_bin1025> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sun Aug 29 12:56:02 2021
Job was executed on host(s) <bullet0120>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 12:56:03 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:56:03 2021
Terminated at Sun Aug 29 13:09:06 2021
Results reported at Sun Aug 29 13:09:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0812.6+2821_daily_bin1025 123.156 28.3574 505008001 505267201 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 :                                   621.07 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             292.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   782 sec.
    Turnaround time :                            784 sec.

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

