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


Performing analysis on: 4FGL_J0823.1+4042_daily_bin802
RA = 125.8, Dec = 40.7077
tmin = 447206401, tmax = 447465601
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='425554', job_status='RUN', time_executed='2021-08-29 17:56:10.441673', time_epoch_executed='1630284970.44' WHERE source_name='4FGL J0823.1+4042' and cadence='daily' and bin_id='802'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/425554

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/425554/ft1_4FGL_J0823.1+4042_daily_bin802.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/425554/ft2_4FGL_J0823.1+4042_daily_bin802.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/425554/ft1_4FGL_J0823.1+4042_daily_bin802.fits outfile=/scratch/kocevski/425554/ft1_filteredMKT_4FGL_J0823.1+4042_daily_bin802.fits ra=125.8 dec=40.7077 rad=12.0 tmin=447206401.0 tmax=447465601.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.40
user 3.19
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/425554/ft2_4FGL_J0823.1+4042_daily_bin802.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/425554/ft1_filteredMKT_4FGL_J0823.1+4042_daily_bin802.fits evtable="EVENTS" outfile="/scratch/kocevski/425554/ft1_filtered_4FGL_J0823.1+4042_daily_bin802.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.52
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/425554/ft1_filtered_4FGL_J0823.1+4042_daily_bin802.fits" evtable="EVENTS" scfile=/scratch/kocevski/425554/ft2_4FGL_J0823.1+4042_daily_bin802.fits sctable="SC_DATA" outfile=/scratch/kocevski/425554/ltcube_447206401_447465601_4FGL_J0823.1+4042_daily_bin802.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/425554/ft2_4FGL_J0823.1+4042_daily_bin802.fits
.....................!
real 12.77
user 12.38
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/425554/ft1_filtered_4FGL_J0823.1+4042_daily_bin802.fits evtable="EVENTS" scfile=/scratch/kocevski/425554/ft2_4FGL_J0823.1+4042_daily_bin802.fits sctable="SC_DATA" expcube=/scratch/kocevski/425554/ltcube_447206401_447465601_4FGL_J0823.1+4042_daily_bin802.fits outfile=/scratch/kocevski/425554/expmap_447206401_447465601_4FGL_J0823.1+4042_daily_bin802.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/425554/ltcube_447206401_447465601_4FGL_J0823.1+4042_daily_bin802.fits
.....................!
real 190.51
user 185.49
sys 4.37

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/425554/ft1_filtered_4FGL_J0823.1+4042_daily_bin802.fits scfile=/scratch/kocevski/425554/ft2_4FGL_J0823.1+4042_daily_bin802.fits outfile=/scratch/kocevski/425554/cmap_447206401_447465601_4FGL_J0823.1+4042_daily_bin802.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.53
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/425554/ft1_filtered_4FGL_J0823.1+4042_daily_bin802.fits scfile=/scratch/kocevski/425554/ft2_4FGL_J0823.1+4042_daily_bin802.fits outfile=/scratch/kocevski/425554/cmap_HighResolution_447206401_447465601_4FGL_J0823.1+4042_daily_bin802.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.54
user 0.38
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/425554/ft1_filtered_4FGL_J0823.1+4042_daily_bin802.fits', '/scratch/kocevski/425554/ft2_4FGL_J0823.1+4042_daily_bin802.fits', expMap='/scratch/kocevski/425554/expmap_447206401_447465601_4FGL_J0823.1+4042_daily_bin802.fits', expCube='/scratch/kocevski/425554/ltcube_447206401_447465601_4FGL_J0823.1+4042_daily_bin802.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/425554/Model_4FGL_J0823.1+4042_daily_bin802.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/425554/ft1_filtered_4FGL_J0823.1+4042_daily_bin802.fits
Spacecraft file(s): /scratch/kocevski/425554/ft2_4FGL_J0823.1+4042_daily_bin802.fits
Exposure map: /scratch/kocevski/425554/expmap_447206401_447465601_4FGL_J0823.1+4042_daily_bin802.fits
Exposure cube: /scratch/kocevski/425554/ltcube_447206401_447465601_4FGL_J0823.1+4042_daily_bin802.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/425554/Model_4FGL_J0823.1+4042_daily_bin802.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) = 7397.34472721

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.2819       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .46641E-01   1.0000         .10000E-03   10000.    
     5 'norm      '    6.0269       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .15669E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.5401       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.7833       1.0000         .10000E-03   10000.    
     9 'norm      '    3.9281       1.0000         .10000E-03   10000.    
    10 'norm      '    .68808       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11661E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .14150E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.2882       1.0000         .10000E-03   10000.    
    17 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.3004       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.1504       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .63902       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .73301       1.0000         .10000E-03   10000.    
    26 'norm      '    19.240       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10191E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0960       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .89993       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=   7397.261     FROM MIGRAD    STATUS=CONVERGED    762 CALLS     3261 TOTAL
                     EDM=   .63E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.995        .25325E-05** at limit **
   2  Prefactor     8.2780        9.7432        .16530E-05   -.17409E-03
   3  Prefactor     .10000E-03    8.6586       -.30591E-06** at limit **
   4  norm          .10000E-03    4.3691       -.10184E-06** at limit **
   5  norm          6.0265        2.8399       -.76004E-07    .10428E-03
   6  Prefactor     .10005E-03    6.0791       -.12894E-05** at limit **
   7  Prefactor     9.5121        49.046       -.18128E-06   -.63273E-05
   8  Prefactor     1.7837        4.6246        .12892E-05   -.33571E-04
   9  norm          3.9277        2.2552       -.24435E-07   -.16033E-04
  10  norm          .68830        .56398       -.48521E-08   -.10128E-03
  11  Prefactor     .10000E-03    8.2014        .54900E-08** at limit **
  12  Prefactor     .10004E-03    5.9118        .48394E-06** at limit **
  13  Prefactor     .10000E-03    .79670       -.48701E-08** at limit **
  14  Prefactor     .10000E-03    24.030       -.24327E-05** at limit **
  15  Prefactor     .10000E-03    27.299       -.11124E-05** at limit **
  16  norm          2.2876        6.2340        .30203E-06   -.90464E-04
  17  norm          .10000E-03    4.2493       -.59995E-07** at limit **
  18  Prefactor     1.3004        2.4291        .48032E-07   -.17881E-03
  19  Prefactor     .10000E-03    29.808        .20023E-05** at limit **
  20  Prefactor     7.1499        4.3503        .84284E-06    .57877E-03
  21  Prefactor     .10000E-03    28.500       -.89456E-06** at limit **
  22  Prefactor     .10000E-03    1.3092        .38595E-07** at limit **
  23  Prefactor     .10000E-03    12.254       -.26970E-05** at limit **
  24  norm          .63908        .47566       -.62084E-07   -.52212E-03
  25  Prefactor     .73337        3.2596        .20329E-06   -.31611E-03
  26  norm          19.240        10.130       -.12793E-06   -.36933E-05
  27  Prefactor     .10005E-03    .95854        .37975E-06** at limit **
  28  Normalizat    1.0958        .16470        .32098E-06    .81095E-04
  29  Prefactor     .90017        .12667        .39605E-08    .13467E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 8.278
  Prefactor  = 0.0001
  norm       = 0.000100002
  norm       = 6.02653
  Prefactor  = 0.000100046
  Prefactor  = 9.51205
  Prefactor  = 1.7837
  norm       = 3.92774
  norm       = 0.688298
  Prefactor  = 0.0001
  Prefactor  = 0.000100038
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 2.28758
  norm       = 0.0001
  Prefactor  = 1.30043
  Prefactor  = 0.0001
  Prefactor  = 7.14994
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.639076
  Prefactor  = 0.733366
  norm       = 19.2402
  Prefactor  = 0.000100048
  Normalizat = 1.09584
  Prefactor  = 0.900172
 **********
 **   18 **HESSE 
 **********

 FCN=   7397.261     FROM HESSE     STATUS=OK           573 CALLS     3834 TOTAL
                     EDM=   .49E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.463        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     8.2780        9.8952        .69653E-03   -1.5132    
   3  Prefactor     .10000E-03    8.7010        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    7.4014        .61030E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          6.0265        2.8431        .93677E-04   -1.5217    
   6  Prefactor     .10005E-03    28.979        .35474E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     9.5121        44.934        .12975E-03   -1.5091    
   8  Prefactor     1.7837        4.5640        .26773E-03   -1.5441    
   9  norm          3.9277        2.2538        .95079E-04   -1.5312    
  10  norm          .68830        .52250        .52338E-03   -1.5542    
  11  Prefactor     .10000E-03    8.2085        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10004E-03    29.406        .38905E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    .80334        .74886E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    24.332        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    28.417        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.2876        6.2097        .27138E-03   -1.5405    
  17  norm          .10000E-03    4.2999        .17299E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.3004        2.3585        .16673E-03   -1.5480    
  19  Prefactor     .10000E-03    29.908        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     7.1499        4.4064        .13779E-03   -1.5173    
  21  Prefactor     .10000E-03    28.590        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    1.3416        .19191E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    12.481        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .63908        .50458        .39748E-04   -1.5548    
  25  Prefactor     .73337        6.1065        .22782E-02   -1.5537    
  26  norm          19.240        10.099        .91311E-04   -1.4830    
  27  Prefactor     .10005E-03    10.668        .15866E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.0958        .19141        .24596E-03   -.89885    
  29  Prefactor     .90017        .14762        .22052E-03   -.96135    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.85793e-08
Minuit parameter uncertainties:
  1  0.000109389
  2  9.89718
  3  8.0644e-06
  4  0.000215619
  5  2.84319
  6  0.00229806
  7  41.3985
  8  4.5649
  9  2.25386
  10  0.5225
  11  3.02004e-06
  12  0.00212884
  13  2.53335e-06
  14  0.000238045
  15  0.000123982
  16  6.21147
  17  5.47188e-06
  18  2.35871
  19  0.000192241
  20  4.4066
  21  9.74001e-05
  22  2.04588e-06
  23  0.000175912
  24  0.504583
  25  4.2327
  26  10.0997
  27  0.00143469
  28  0.191534
  29  0.147687
Done.

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

Extracting fit parameters...

4FGL J0823.1+4042
   Spectrum: PowerLaw
302    Prefactor:  1.000e-04  2.129e-03  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:  9.002e-01  1.477e-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:  1.096e+00  1.915e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 125.800 40.708
Photon Flux Upper Limit: 6.74e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.23e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/425554/likelihoodResults_447206401_447465601_4FGL_J0823.1+4042_daily_bin802.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) = 7397.26153265
delta logL = -0.000160447915732

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7397.26137262
delta logL = -4.1230032366e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12506E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4390       1.0000          .0000       10.000    
     3 'Normalizat'    1.0958       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90018       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.

 FCN=   7397.261     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      225 TOTAL
                     EDM=   .91E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .20077        .90712E-01** at limit **
   2  Index         2.4253        7.2628        .50000        .31806E-05
   3  Normalizat    1.0958        .76702E-03    .55625E-01    .95419E-05
   4  Prefactor     .90017        .63296E-03    .45007E-01    .83086E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.42525
  Normalizat = 1.09584
  Prefactor  = 0.900172
 **********
 **   18 **HESSE 
 **********

 FCN=   7397.261     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      260 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    42.529        .39932E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4253        5.3027        .50000       -.54095    
   3  Normalizat    1.0958        .48566E-02    .24596E-03   -.89885    
   4  Prefactor     .90017        .40090E-02    .22052E-03   -.96135    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.68293e-09
Minuit parameter uncertainties:
  1  1.58844e-05
  2  81.4271
  3  0.00485658
  4  0.00400904
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/425554': 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) = 7397.26137218
delta logL = 3.01779436995e-08

Extracting fit parameters...

4FGL J0823.1+4042
   Spectrum: PowerLaw
302    Prefactor:  1.000e-04  1.588e-05  1.000e-04  1.000e+04 ( 1.000e-13)
303        Index:  2.425e+00  8.143e+01  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:  9.002e-01  4.009e-03  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:  1.096e+00  4.857e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 125.800 40.708

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/425554/cmap_HighResolution_447206401_447465601_4FGL_J0823.1+4042_daily_bin802.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.23e-03', job_status='DONE', photon_flux_upper_limit='6.74e-08', time_completed='2021-08-29 18:12:11.894714', job_id='425554', GAL2='0.90', fit_tolerance='1e-08', EG2='1.10', EG='1.10', time_epoch_completed='1630285931.89', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='3.02e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.46' WHERE bin_id='802' AND source_name='4FGL J0823.1+4042' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 18:12:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0049>
Subject: Job 425554: <4FGL_J0823.1+4042_daily_bin802> in cluster <slac> Done

Job <4FGL_J0823.1+4042_daily_bin802> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Sun Aug 29 17:55:41 2021
Job was executed on host(s) <bullet0049>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 17:55:43 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:55:43 2021
Terminated at Sun Aug 29 18:12:12 2021
Results reported at Sun Aug 29 18:12:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0823.1+4042_daily_bin802 125.8 40.7077 447206401 447465601 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 :                                   950.41 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             362.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   989 sec.
    Turnaround time :                            991 sec.

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

