/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 15 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 = 7397
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0823.1+4042_daily_bin322
RA = 125.8, Dec = 40.7077
tmin = 322790401, tmax = 323049601
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='423775', job_status='RUN', time_executed='2021-08-29 17:51:40.608512', time_epoch_executed='1630284700.61' WHERE source_name='4FGL J0823.1+4042' and cadence='daily' and bin_id='322'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/423775

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/423775/ft1_4FGL_J0823.1+4042_daily_bin322.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/423775/ft2_4FGL_J0823.1+4042_daily_bin322.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/423775/ft1_4FGL_J0823.1+4042_daily_bin322.fits outfile=/scratch/kocevski/423775/ft1_filteredMKT_4FGL_J0823.1+4042_daily_bin322.fits ra=125.8 dec=40.7077 rad=12.0 tmin=322790401.0 tmax=323049601.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 12.39
user 11.55
sys 0.66

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/423775/ft2_4FGL_J0823.1+4042_daily_bin322.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/423775/ft2_4FGL_J0823.1+4042_daily_bin322.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/423775/ft1_filteredMKT_4FGL_J0823.1+4042_daily_bin322.fits evtable="EVENTS" outfile="/scratch/kocevski/423775/ft1_filtered_4FGL_J0823.1+4042_daily_bin322.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.33
sys 0.48

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/423775/ft1_filtered_4FGL_J0823.1+4042_daily_bin322.fits" evtable="EVENTS" scfile=/scratch/kocevski/423775/ft2_4FGL_J0823.1+4042_daily_bin322.fits sctable="SC_DATA" outfile=/scratch/kocevski/423775/ltcube_322790401_323049601_4FGL_J0823.1+4042_daily_bin322.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/423775/ft2_4FGL_J0823.1+4042_daily_bin322.fits
.....................!
real 11.55
user 10.78
sys 0.72

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/423775/ft1_filtered_4FGL_J0823.1+4042_daily_bin322.fits evtable="EVENTS" scfile=/scratch/kocevski/423775/ft2_4FGL_J0823.1+4042_daily_bin322.fits sctable="SC_DATA" expcube=/scratch/kocevski/423775/ltcube_322790401_323049601_4FGL_J0823.1+4042_daily_bin322.fits outfile=/scratch/kocevski/423775/expmap_322790401_323049601_4FGL_J0823.1+4042_daily_bin322.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/423775/ltcube_322790401_323049601_4FGL_J0823.1+4042_daily_bin322.fits
.....................!
real 190.61
user 185.38
sys 4.77

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 198 point sources and 0 extended sources

Setting source of interest to:
4FGL J0823.1+4042 @ 125.8 40.7077

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/423775/ft1_filtered_4FGL_J0823.1+4042_daily_bin322.fits scfile=/scratch/kocevski/423775/ft2_4FGL_J0823.1+4042_daily_bin322.fits outfile=/scratch/kocevski/423775/cmap_322790401_323049601_4FGL_J0823.1+4042_daily_bin322.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=125.8 yref=40.7077 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.38
sys 0.49

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/423775/ft1_filtered_4FGL_J0823.1+4042_daily_bin322.fits scfile=/scratch/kocevski/423775/ft2_4FGL_J0823.1+4042_daily_bin322.fits outfile=/scratch/kocevski/423775/cmap_HighResolution_322790401_323049601_4FGL_J0823.1+4042_daily_bin322.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=125.8 yref=40.7077 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.90
user 0.38
sys 0.49

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/423775/ft1_filtered_4FGL_J0823.1+4042_daily_bin322.fits evtable="EVENTS" scfile=/scratch/kocevski/423775/ft2_4FGL_J0823.1+4042_daily_bin322.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/423775/Model_4FGL_J0823.1+4042_daily_bin322.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/423775/ft1_filtered_4FGL_J0823.1+4042_daily_bin322.fits.....................!
real 51.80
user 49.86
sys 1.68

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/423775/ft1_filtered_4FGL_J0823.1+4042_daily_bin322.fits', '/scratch/kocevski/423775/ft2_4FGL_J0823.1+4042_daily_bin322.fits', expMap='/scratch/kocevski/423775/expmap_322790401_323049601_4FGL_J0823.1+4042_daily_bin322.fits', expCube='/scratch/kocevski/423775/ltcube_322790401_323049601_4FGL_J0823.1+4042_daily_bin322.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/423775/Model_4FGL_J0823.1+4042_daily_bin322.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0823.1+4042'

4FGL J0823.1+4042
   Spectrum: PowerLaw
302    Prefactor:  2.674e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
303        Index:  2.456e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
304        Scale:  1.174e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/423775/ft1_filtered_4FGL_J0823.1+4042_daily_bin322.fits
Spacecraft file(s): /scratch/kocevski/423775/ft2_4FGL_J0823.1+4042_daily_bin322.fits
Exposure map: /scratch/kocevski/423775/expmap_322790401_323049601_4FGL_J0823.1+4042_daily_bin322.fits
Exposure cube: /scratch/kocevski/423775/ltcube_322790401_323049601_4FGL_J0823.1+4042_daily_bin322.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/423775/Model_4FGL_J0823.1+4042_daily_bin322.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) = 5521.37555475

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10172E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .11484E-02   1.0000         .10000E-03   10000.    
     5 'norm      '    3.5156       1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.943       1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.5813       1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.6342       1.0000         .10000E-03   10000.    
     9 'norm      '    7.3232       1.0000         .10000E-03   10000.    
    10 'norm      '    1.6607       1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.8872       1.0000         .10000E-03   10000.    
    12 'Prefactor '    16.255       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.4181       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10748E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .73952       1.0000         .10000E-03   10000.    
    16 'norm      '    7.1558       1.0000         .10000E-03   10000.    
    17 'norm      '    7.2745       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .17548       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .13546E-01   1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.4785       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .13311E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .25045E-02   1.0000         .10000E-03   10000.    
    23 'Prefactor '    35.051       1.0000         .10000E-03   10000.    
    24 'norm      '    .10077E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    12.532       1.0000         .10000E-03   10000.    
    26 'norm      '    .10158E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    2.4866       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .45809       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.2045       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6330E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5521.348     FROM MIGRAD    STATUS=CONVERGED    816 CALLS     3889 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.4323        .26758E-07** at limit **
   2  Prefactor     .10000E-03    9.5630        .14203E-06** at limit **
   3  Prefactor     .10000E-03    14.539        .44862E-06** at limit **
   4  norm          .10009E-03    22.209       -.57356E-05** at limit **
   5  norm          3.5155        3.0409       -.47208E-07   -.97240E-04
   6  Prefactor     13.943        13.068        .24605E-07    .52851E-04
   7  Prefactor     9.6725        73.980       -.29380E-06    .11002E-04
   8  Prefactor     8.6356        6.4340       -.13284E-06   -.36849E-04
   9  norm          7.3238        2.9570       -.45009E-08   -.23470E-04
  10  norm          1.6606        .75805        .23806E-07   -.93366E-04
  11  Prefactor     9.8923        28.961       -.47240E-06   -.90017E-06
  12  Prefactor     16.257        17.501       -.36901E-07    .49516E-05
  13  Prefactor     3.4183        3.0157       -.81818E-07   -.38616E-04
  14  Prefactor     .10019E-03    123.77        .13327E-04** at limit **
  15  Prefactor     .74488        12.256       -.13458E-05   -.70814E-03
  16  norm          7.1486        6.9480        .11782E-06    .89100E-04
  17  norm          7.2684        6.9686        .13693E-06    .86299E-04
  18  Prefactor     .17791        1.6314       -.31967E-07   -.14571E-04
  19  Prefactor     .10004E-03    901.70        .89788E-05** at limit **
  20  Prefactor     9.4799        5.9112       -.56662E-07   -.44190E-05
  21  Prefactor     .10000E-03    46.772       -.33491E-05** at limit **
  22  Prefactor     .10000E-03    1.6053       -.47086E-06** at limit **
  23  Prefactor     35.074        22.772        .49499E-06    .16255E-03
  24  norm          .10000E-03    .54569        .39988E-06** at limit **
  25  Prefactor     12.544        4.1574       -.73798E-06   -.10975E-02
  26  norm          .10000E-03    5.6976       -.14452E-05** at limit **
  27  Prefactor     2.4877        2.2438        .79493E-07    .33733E-03
  28  Normalizat    .45794        .21704        .28496E-05    .16338E-03
  29  Prefactor     1.2046        .16907       -.85212E-06    .33757E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100092
  norm       = 3.51546
  Prefactor  = 13.9434
  Prefactor  = 9.67251
  Prefactor  = 8.63555
  norm       = 7.3238
  norm       = 1.66057
  Prefactor  = 9.8923
  Prefactor  = 16.2567
  Prefactor  = 3.41828
  Prefactor  = 0.000100185
  Prefactor  = 0.744883
  norm       = 7.1486
  norm       = 7.26839
  Prefactor  = 0.177912
  Prefactor  = 0.000100039
  Prefactor  = 9.47989
  Prefactor  = 0.000100004
  Prefactor  = 0.000100005
  Prefactor  = 35.0736
  norm       = 0.0001
  Prefactor  = 12.544
  norm       = 0.000100001
  Prefactor  = 2.48767
  Normalizat = 0.457936
  Prefactor  = 1.20455
 **********
 **   18 **HESSE 
 **********

 FCN=   5521.348     FROM HESSE     STATUS=OK           579 CALLS     4468 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.4383        .15278E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    9.6067        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    14.641        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10009E-03    5.8769        .63466E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.5155        3.0375        .11563E-03   -1.5333    
   6  Prefactor     13.943        12.960        .10727E-03   -1.4961    
   7  Prefactor     9.6725        72.694        .12946E-03   -1.5086    
   8  Prefactor     8.6356        6.4133        .13642E-03   -1.5120    
   9  norm          7.3238        2.9573        .78942E-04   -1.5167    
  10  norm          1.6606        .75326        .40003E-04   -1.5450    
  11  Prefactor     9.8923        28.956        .12744E-03   -1.5079    
  12  Prefactor     16.257        17.308        .99341E-04   -1.4901    
  13  Prefactor     3.4183        2.9992        .11137E-03   -1.5338    
  14  Prefactor     .10019E-03    211.42        .66669E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .74488        21.953        .40360E-02   -1.5535    
  16  norm          7.1486        6.9040        .14995E-03   -1.5173    
  17  norm          7.2684        6.9499        .14871E-03   -1.5169    
  18  Prefactor     .17791        7.3987        .17447E-02   -1.5624    
  19  Prefactor     .10004E-03    908.04        .18181E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     9.4799        5.9110        .13017E-03   -1.5092    
  21  Prefactor     .10000E-03    47.267        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    34.840        .17239E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     35.074        22.763        .67689E-04   -1.4523    
  24  norm          .10000E-03    1.6523        .96477E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     12.544        4.3853        .86147E-04   -1.4999    
  26  norm          .10000E-03    5.8000        .17443E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     2.4877        2.2289        .10130E-03   -1.5393    
  28  Normalizat    .45794        .22603        .36818E-03   -1.1441    
  29  Prefactor     1.2046        .17986        .19935E-03   -.86191    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.22598e-08
Minuit parameter uncertainties:
  1  1.7327e-06
  2  1.10305e-05
  3  8.95716e-06
  4  0.00146728
  5  3.03762
  6  12.9624
  7  53.1234
  8  6.41382
  9  2.95732
  10  0.753265
  11  28.997
  12  17.3134
  13  2.9993
  14  0.0125672
  15  8.09039
  16  6.9048
  17  6.95065
  18  2.29427
  19  0.0120779
  20  5.91135
  21  0.000829838
  22  0.000801478
  23  22.7682
  24  2.09464e-06
  25  4.38542
  26  0.00011759
  27  2.22893
  28  0.226481
  29  0.179956
Done.

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

Extracting fit parameters...

4FGL J0823.1+4042
   Spectrum: PowerLaw
302    Prefactor:  1.626e+01  1.731e+01  1.000e-04  1.000e+04 ( 1.000e-13)
303        Index:  2.456e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
304        Scale:  1.174e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
630    Prefactor:  1.205e+00  1.800e-01  0.000e+00  1.000e+01 ( 1.000e+00)
631        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
632        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
629   Normalization:  4.579e-01  2.265e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.42
Ra Dec: 125.800 40.708
Photon Index (Fixed Index): 2.46 +/- 0.00
Photon Flux (Fixed Index): 4.73e-08 +/- 5.04e-08
Energy Flux (Fixed Index): 1.45e-05 +/- 1.54e-05

TS (Fixed Index): 1.42
Ra Dec: 125.800 40.708
Photon Flux Upper Limit: 1.46e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.14e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/423775/likelihoodResults_322790401_323049601_4FGL_J0823.1+4042_daily_bin322.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) = 5521.3447158
delta logL = 0.00305750737061

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5521.34135684
delta logL = 0.00641646779695

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.578       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5650       1.0000          .0000       10.000    
     3 'Normalizat'    .45274       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2073       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6330E+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=   5521.341     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      264 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.563        24.822        .10490E-03    .24861E-03
   2  Index         2.5666        1.1544        .76168E-02    .10037E-03
   3  Normalizat    .45273        .21490        .37016E-03    .49448E-04
   4  Prefactor     1.2073        .17928        .19914E-03   -.13993E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.5631
  Index      = 2.56662
  Normalizat = 0.452732
  Prefactor  = 1.20734
 **********
 **   18 **HESSE 
 **********

 FCN=   5521.341     FROM HESSE     STATUS=OK            25 CALLS      289 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.563        21.370        .41961E-05   -1.4945    
   2  Index         2.5666        .99454        .30467E-03   -.50828    
   3  Normalizat    .45273        .21332        .14806E-04   -1.1466    
   4  Prefactor     1.2073        .17852        .39828E-04   -.86106    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.59884e-10
Minuit parameter uncertainties:
  1  21.3808
  2  1.00334
  3  0.213704
  4  0.178611
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/423775': 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) = 5521.34135501
delta logL = 0.00641829388587

Extracting fit parameters...

4FGL J0823.1+4042
   Spectrum: PowerLaw
302    Prefactor:  1.456e+01  2.138e+01  1.000e-04  1.000e+04 ( 1.000e-13)
303        Index:  2.567e+00  1.003e+00  0.000e+00  1.000e+01 (-1.000e+00)
304        Scale:  1.174e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
630    Prefactor:  1.207e+00  1.786e-01  0.000e+00  1.000e+01 ( 1.000e+00)
631        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
632        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
629   Normalization:  4.527e-01  2.137e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.48
Ra Dec: 125.800 40.708
Photon Index (Free Index): 2.57 +/- 1.00
Photon Flux (Free Index): 5.18e-08 +/- 6.20e-08
Energy Flux (Free Index): 1.40e-05 +/- 1.40e-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/423775/cmap_HighResolution_322790401_323049601_4FGL_J0823.1+4042_daily_bin322.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.14e-02', comment='SUCCESS', photon_flux='4.73e-08', energy_flux2='1.40e-05', photon_flux_error='5.04e-08', dlogl='6.42e-03', energy_flux='1.45e-05', photon_flux2='5.18e-08', job_status='DONE', time_completed='2021-08-29 18:06:19.887088', photon_index_error2='1.00', photon_index2='2.57', ts='1.42', fit_tolerance='1e-08', GAL='1.20', photon_index_error='0.00', photon_flux_upper_limit='1.46e-07', energy_flux_error2='1.40e-05', EG='0.46', time_epoch_completed='1630285579.89', return_code='0', job_id='423775', GAL2='1.21', EG2='0.45', return_code2='0', energy_flux_error='1.54e-05', photon_flux_error2='6.20e-08', ts2='1.48', photon_index='2.46' WHERE bin_id='322' AND source_name='4FGL J0823.1+4042' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 18:06:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0275>
Subject: Job 423775: <4FGL_J0823.1+4042_daily_bin322> in cluster <slac> Done

Job <4FGL_J0823.1+4042_daily_bin322> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Aug 29 17:50:40 2021
Job was executed on host(s) <bullet0275>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 17:50:42 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 29 17:50:42 2021
Terminated at Sun Aug 29 18:06:22 2021
Results reported at Sun Aug 29 18:06:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0823.1+4042_daily_bin322 125.8 40.7077 322790401 323049601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0823.1+4042 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   878.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             273.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   938 sec.
    Turnaround time :                            942 sec.

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

