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


Performing analysis on: 4FGL_J0823.1+4042_daily_bin1504
RA = 125.8, Dec = 40.7077
tmin = 629164801, tmax = 629424001
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='430663', job_status='RUN', time_executed='2021-08-29 18:11:13.679250', time_epoch_executed='1630285873.68' WHERE source_name='4FGL J0823.1+4042' and cadence='daily' and bin_id='1504'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/430663

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/430663/ft1_4FGL_J0823.1+4042_daily_bin1504.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/430663/ft2_4FGL_J0823.1+4042_daily_bin1504.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/430663/ft1_4FGL_J0823.1+4042_daily_bin1504.fits outfile=/scratch/kocevski/430663/ft1_filteredMKT_4FGL_J0823.1+4042_daily_bin1504.fits ra=125.8 dec=40.7077 rad=12.0 tmin=629164801.0 tmax=629424001.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.10
user 3.38
sys 0.85

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/430663/ft1_filtered_4FGL_J0823.1+4042_daily_bin1504.fits" evtable="EVENTS" scfile=/scratch/kocevski/430663/ft2_4FGL_J0823.1+4042_daily_bin1504.fits sctable="SC_DATA" outfile=/scratch/kocevski/430663/ltcube_629164801_629424001_4FGL_J0823.1+4042_daily_bin1504.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/430663/ft2_4FGL_J0823.1+4042_daily_bin1504.fits
.....................!
real 12.74
user 11.63
sys 1.07

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/430663/ft1_filtered_4FGL_J0823.1+4042_daily_bin1504.fits evtable="EVENTS" scfile=/scratch/kocevski/430663/ft2_4FGL_J0823.1+4042_daily_bin1504.fits sctable="SC_DATA" expcube=/scratch/kocevski/430663/ltcube_629164801_629424001_4FGL_J0823.1+4042_daily_bin1504.fits outfile=/scratch/kocevski/430663/expmap_629164801_629424001_4FGL_J0823.1+4042_daily_bin1504.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/430663/ltcube_629164801_629424001_4FGL_J0823.1+4042_daily_bin1504.fits
.....................!
real 191.82
user 185.84
sys 5.33

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/430663/ft1_filtered_4FGL_J0823.1+4042_daily_bin1504.fits scfile=/scratch/kocevski/430663/ft2_4FGL_J0823.1+4042_daily_bin1504.fits outfile=/scratch/kocevski/430663/cmap_629164801_629424001_4FGL_J0823.1+4042_daily_bin1504.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 1.20
user 0.38
sys 0.77

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/430663/ft1_filtered_4FGL_J0823.1+4042_daily_bin1504.fits scfile=/scratch/kocevski/430663/ft2_4FGL_J0823.1+4042_daily_bin1504.fits outfile=/scratch/kocevski/430663/cmap_HighResolution_629164801_629424001_4FGL_J0823.1+4042_daily_bin1504.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 1.19
user 0.37
sys 0.80

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .55802E-01   1.0000         .10000E-03   10000.    
     2 'Prefactor '    18.433       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    21.393       1.0000         .10000E-03   10000.    
     5 'norm      '    .10763E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.407       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10112E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.6358       1.0000         .10000E-03   10000.    
     9 'norm      '    2.5068       1.0000         .10000E-03   10000.    
    10 'norm      '    1.2301       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10198E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    19.800       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .14121E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.6760       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .58870       1.0000         .10000E-03   10000.    
    25 'Prefactor '    1.3767       1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .23361       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.2685       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .72640       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=   6858.578     FROM MIGRAD    STATUS=CONVERGED    743 CALLS     3236 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10665        5.2815        .23774E-06   -.11441E-03
   2  Prefactor     18.424        13.701        .87801E-06    .66848E-03
   3  Prefactor     .10000E-03    7.5402       -.13513E-05** at limit **
   4  norm          21.390        14.165        .45818E-06    .11816E-03
   5  norm          .10000E-03    1.6607       -.87042E-06** at limit **
   6  Prefactor     13.405        8.3562       -.12760E-06    .11383E-03
   7  Prefactor     .10001E-03    27.966       -.46973E-05** at limit **
   8  Prefactor     6.6368        4.6871        .17125E-05   -.16272E-02
   9  norm          2.5068        1.5095       -.15713E-07    .95535E-04
  10  norm          1.2300        .60659       -.87921E-07   -.12883E-03
  11  Prefactor     .10000E-03    11.141        .12513E-05** at limit **
  12  Prefactor     .10000E-03    6.6403        .11286E-05** at limit **
  13  Prefactor     .10000E-03    2.5266       -.12130E-06** at limit **
  14  Prefactor     19.804        23.031        .62977E-06    .71914E-04
  15  Prefactor     .10000E-03    2.9611       -.22082E-06** at limit **
  16  norm          .10000E-03    3.6755       -.42741E-06** at limit **
  17  norm          .10000E-03    1.8010        .25066E-07** at limit **
  18  Prefactor     1.6765        2.4217        .23539E-06   -.14324E-03
  19  Prefactor     .10001E-03    29.545        .47585E-05** at limit **
  20  Prefactor     .10000E-03    4.1857        .46182E-06** at limit **
  21  Prefactor     .10000E-03    10.384       -.18105E-06** at limit **
  22  Prefactor     .10000E-03    .76377       -.56371E-07** at limit **
  23  Prefactor     .10000E-03    4.7896       -.54293E-06** at limit **
  24  norm          .58888        .49965        .17124E-07   -.18461E-03
  25  Prefactor     1.3757        3.1146        .53160E-07   -.28612E-03
  26  norm          .10000E-03    3.1309        .10519E-05** at limit **
  27  Prefactor     .23442        1.7383        .29838E-06   -.44114E-03
  28  Normalizat    1.2687        .17426       -.77968E-06    .20153E-03
  29  Prefactor     .72621        .13553       -.25655E-06    .19487E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.106654
  Prefactor  = 18.4235
  Prefactor  = 0.000100001
  norm       = 21.3899
  norm       = 0.000100001
  Prefactor  = 13.4046
  Prefactor  = 0.000100008
  Prefactor  = 6.63684
  norm       = 2.50678
  norm       = 1.23001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.8036
  Prefactor  = 0.0001
  norm       = 0.000100005
  norm       = 0.0001
  Prefactor  = 1.67651
  Prefactor  = 0.000100008
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.588882
  Prefactor  = 1.37566
  norm       = 0.0001
  Prefactor  = 0.234418
  Normalizat = 1.26873
  Prefactor  = 0.726211
 **********
 **   18 **HESSE 
 **********

 FCN=   6858.578     FROM HESSE     STATUS=OK           561 CALLS     3797 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10665        7.1692        .69271E-01   -1.5643    
   2  Prefactor     18.424        13.752        .93286E-04   -1.4849    
   3  Prefactor     .10000E-03    7.6606        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          21.390        14.165        .86598E-04   -1.4783    
   5  norm          .10000E-03    3.2903        .19742E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     13.405        8.3532        .10940E-03   -1.4976    
   7  Prefactor     .10001E-03    29.238        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     6.6368        5.1303        .77257E-03   -1.5193    
   9  norm          2.5068        1.5148        .77043E-04   -1.5391    
  10  norm          1.2300        .60599        .42647E-04   -1.5486    
  11  Prefactor     .10000E-03    11.240        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    6.7270        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.6385        .25662E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     19.804        23.065        .90011E-04   -1.4818    
  15  Prefactor     .10000E-03    2.9674        .13924E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    12.966        .30368E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.8045        .10853E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.6765        2.3935        .14621E-03   -1.5449    
  19  Prefactor     .10001E-03    30.833        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.2769        .16564E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    10.391        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    .76840        .70618E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    4.8092        .17729E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .58888        .55950        .42603E-04   -1.5554    
  25  Prefactor     1.3757        3.4415        .17255E-03   -1.5473    
  26  norm          .10000E-03    3.2050        .14455E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .23442        4.1063        .20701E-02   -1.5611    
  28  Normalizat    1.2687        .20164        .23837E-03   -.84505    
  29  Prefactor     .72621        .15708        .24299E-03   -1.0251    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.41373e-09
Minuit parameter uncertainties:
  1  1.74825
  2  13.7542
  3  0.000139384
  4  14.1668
  5  0.000123362
  6  8.35397
  7  0.000949106
  8  5.13059
  9  1.51478
  10  0.605993
  11  0.000160582
  12  0.000107237
  13  9.82419e-06
  14  23.0756
  15  1.56522e-05
  16  0.000483549
  17  2.20915e-06
  18  2.3936
  19  0.00101261
  20  3.57072e-05
  21  2.12043e-05
  22  1.25085e-06
  23  4.47137e-05
  24  0.559501
  25  3.44202
  26  7.23157e-05
  27  1.96197
  28  0.201767
  29  0.157179
Done.

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

Extracting fit parameters...

4FGL J0823.1+4042
   Spectrum: PowerLaw
302    Prefactor:  1.000e-04  1.072e-04  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:  7.262e-01  1.572e-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.269e+00  2.018e-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: 7.08e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.49e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/430663/likelihoodResults_629164801_629424001_4FGL_J0823.1+4042_daily_bin1504.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) = 6858.57843872
delta logL = -0.000708144135388

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6858.57773166
delta logL = -1.07796950033e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11277E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4304       1.0000          .0000       10.000    
     3 'Normalizat'    1.2686       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72634       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=   6858.578     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      238 TOTAL
                     EDM=   .64E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10167E-03    56.854        .18142E-02** at limit **
   2  Index         2.3704        6.5445        .50000        .26231E-04
   3  Normalizat    1.2687        .12286E-01    .23837E-03    .97010E-04
   4  Prefactor     .72621        .98041E-02    .24299E-03    .83841E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101674
  Index      = 2.37044
  Normalizat = 1.26873
  Prefactor  = 0.72621
 **********
 **   18 **HESSE 
 **********

 FCN=   6858.578     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      267 TOTAL
                     EDM=   .28E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10167E-03    244.72        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3704        8.0790        .50000       -.55379    
   3  Normalizat    1.2687        .26320E-01    .47673E-04   -.84505    
   4  Prefactor     .72621        .21002E-01    .97197E-05   -1.0251    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.84682e-08
Minuit parameter uncertainties:
  1  0.0406452
  2  468.585
  3  0.0263199
  4  0.0210027
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/430663': 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) = 6858.57773012
delta logL = 4.65031007479e-07

Extracting fit parameters...

4FGL J0823.1+4042
   Spectrum: PowerLaw
302    Prefactor:  1.017e-04  4.065e-02  1.000e-04  1.000e+04 ( 1.000e-13)
303        Index:  2.370e+00  4.686e+02  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:  7.262e-01  2.100e-02  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.269e+00  2.632e-02  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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/430663/cmap_HighResolution_629164801_629424001_4FGL_J0823.1+4042_daily_bin1504.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.49e-03', job_status='DONE', photon_flux_upper_limit='7.08e-08', time_completed='2021-08-29 18:26:18.572231', job_id='430663', GAL2='0.73', fit_tolerance='1e-08', EG2='1.27', EG='1.27', time_epoch_completed='1630286778.57', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.73', dlogl='4.65e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.46' WHERE bin_id='1504' AND source_name='4FGL J0823.1+4042' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 18:26:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0037>
Subject: Job 430663: <4FGL_J0823.1+4042_daily_bin1504> in cluster <slac> Done

Job <4FGL_J0823.1+4042_daily_bin1504> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Aug 29 18:10:46 2021
Job was executed on host(s) <bullet0037>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 18:10:47 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 29 18:10:47 2021
Terminated at Sun Aug 29 18:26:20 2021
Results reported at Sun Aug 29 18:26:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0823.1+4042_daily_bin1504 125.8 40.7077 629164801 629424001 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 :                                   909.27 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             321.53 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   931 sec.
    Turnaround time :                            934 sec.

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

