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


Performing analysis on: 4FGL_J0823.1+4042_daily_bin375
RA = 125.8, Dec = 40.7077
tmin = 336528001, tmax = 336787201
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='423856', job_status='RUN', time_executed='2021-08-29 17:53:13.165642', time_epoch_executed='1630284793.17' WHERE source_name='4FGL J0823.1+4042' and cadence='daily' and bin_id='375'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/423856

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/423856/ft1_4FGL_J0823.1+4042_daily_bin375.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/423856/ft2_4FGL_J0823.1+4042_daily_bin375.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/423856/ft1_4FGL_J0823.1+4042_daily_bin375.fits outfile=/scratch/kocevski/423856/ft1_filteredMKT_4FGL_J0823.1+4042_daily_bin375.fits ra=125.8 dec=40.7077 rad=12.0 tmin=336528001.0 tmax=336787201.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.91
user 5.52
sys 0.30

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/423856/ft1_filtered_4FGL_J0823.1+4042_daily_bin375.fits" evtable="EVENTS" scfile=/scratch/kocevski/423856/ft2_4FGL_J0823.1+4042_daily_bin375.fits sctable="SC_DATA" outfile=/scratch/kocevski/423856/ltcube_336528001_336787201_4FGL_J0823.1+4042_daily_bin375.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/423856/ft2_4FGL_J0823.1+4042_daily_bin375.fits
.....................!
real 11.93
user 11.49
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/423856/ft1_filtered_4FGL_J0823.1+4042_daily_bin375.fits evtable="EVENTS" scfile=/scratch/kocevski/423856/ft2_4FGL_J0823.1+4042_daily_bin375.fits sctable="SC_DATA" expcube=/scratch/kocevski/423856/ltcube_336528001_336787201_4FGL_J0823.1+4042_daily_bin375.fits outfile=/scratch/kocevski/423856/expmap_336528001_336787201_4FGL_J0823.1+4042_daily_bin375.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/423856/ltcube_336528001_336787201_4FGL_J0823.1+4042_daily_bin375.fits
.....................!
real 189.90
user 184.74
sys 4.75

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/423856/ft1_filtered_4FGL_J0823.1+4042_daily_bin375.fits scfile=/scratch/kocevski/423856/ft2_4FGL_J0823.1+4042_daily_bin375.fits outfile=/scratch/kocevski/423856/cmap_336528001_336787201_4FGL_J0823.1+4042_daily_bin375.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.65
user 0.38
sys 0.20

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/423856/ft1_filtered_4FGL_J0823.1+4042_daily_bin375.fits scfile=/scratch/kocevski/423856/ft2_4FGL_J0823.1+4042_daily_bin375.fits outfile=/scratch/kocevski/423856/cmap_HighResolution_336528001_336787201_4FGL_J0823.1+4042_daily_bin375.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.67
user 0.38
sys 0.21

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.6679       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    8.0721       1.0000         .10000E-03   10000.    
     5 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    43.715       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    5.6910       1.0000         .10000E-03   10000.    
    10 'norm      '    1.6684       1.0000         .10000E-03   10000.    
    11 'Prefactor '    44.577       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .18686E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.5300       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.1156       1.0000         .10000E-03   10000.    
    19 'Prefactor '    12.064       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .92042       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10842E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    2.0822       1.0000         .10000E-03   10000.    
    25 'Prefactor '    4.1411       1.0000         .10000E-03   10000.    
    26 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .66343       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0429       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=   5736.587     FROM MIGRAD    STATUS=CONVERGED    714 CALLS     3694 TOTAL
                     EDM=   .37E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.9713        .20219E-06** at limit **
   2  Prefactor     6.6708        14.202       -.28040E-06   -.14032E-04
   3  Prefactor     .10000E-03    8.2993       -.40543E-06** at limit **
   4  norm          8.0726        14.748        .42129E-06    .57858E-05
   5  norm          .10000E-03    1.0874       -.11489E-07** at limit **
   6  Prefactor     .10000E-03    2.9014       -.58913E-06** at limit **
   7  Prefactor     43.702        43.536        .27117E-05    .13041E-03
   8  Prefactor     .10000E-03    4.7046       -.67381E-06** at limit **
   9  norm          5.6911        2.6854        .71045E-07    .89503E-04
  10  norm          1.6684        .60924       -.23840E-08   -.11428E-03
  11  Prefactor     44.582        34.528       -.51102E-06   -.51713E-04
  12  Prefactor     .10000E-03    17.827        .27356E-06** at limit **
  13  Prefactor     .10005E-03    1.7113        .13046E-05** at limit **
  14  Prefactor     .10000E-03    11.209       -.64138E-07** at limit **
  15  Prefactor     .10000E-03    2.7699        .48081E-07** at limit **
  16  norm          .10000E-03    3.1148        .16323E-06** at limit **
  17  norm          1.5301        3.9465        .37162E-06    .73836E-04
  18  Prefactor     3.1165        2.9098        .19427E-07    .16598E-03
  19  Prefactor     12.085        141.38       -.86537E-05   -.25539E-04
  20  Prefactor     .92048        5.1596        .73618E-06    .46502E-06
  21  Prefactor     .10000E-03    9.5835        .29102E-06** at limit **
  22  Prefactor     .10000E-03    1.3076       -.41953E-06** at limit **
  23  Prefactor     .10000E-03    4.3914        .36518E-06** at limit **
  24  norm          2.0821        .90615       -.43714E-06   -.32921E-03
  25  Prefactor     4.1409        5.9432        .29012E-05   -.59013E-04
  26  norm          .10000E-03    2.5127       -.50389E-07** at limit **
  27  Prefactor     .10000E-03    .97667        .12077E-07** at limit **
  28  Normalizat    .66329        .18175       -.18945E-05   -.33392E-04
  29  Prefactor     1.0430        .14038        .90607E-06    .16351E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 6.67077
  Prefactor  = 0.0001
  norm       = 8.07259
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 43.7021
  Prefactor  = 0.0001
  norm       = 5.6911
  norm       = 1.66843
  Prefactor  = 44.582
  Prefactor  = 0.0001
  Prefactor  = 0.00010005
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.53014
  Prefactor  = 3.11649
  Prefactor  = 12.0848
  Prefactor  = 0.92048
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.08214
  Prefactor  = 4.14087
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.663288
  Prefactor  = 1.04303
 **********
 **   18 **HESSE 
 **********

 FCN=   5736.587     FROM HESSE     STATUS=OK           551 CALLS     4245 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.055        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.6708        14.163        .15540E-03   -1.5191    
   3  Prefactor     .10000E-03    8.3444        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          8.0726        14.734        .14112E-03   -1.5140    
   5  norm          .10000E-03    1.0915        .76938E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.9406        .12665E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     43.702        43.802        .60636E-04   -1.4385    
   8  Prefactor     .10000E-03    4.9052        .32099E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          5.6911        2.6852        .82764E-04   -1.5231    
  10  norm          1.6684        .60746        .34192E-04   -1.5450    
  11  Prefactor     44.582        34.560        .60049E-04   -1.4372    
  12  Prefactor     .10000E-03    18.089        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10005E-03    13.607        .16256E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    11.232        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.7735        .12309E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    3.1474        .13045E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.5301        3.9028        .23434E-03   -1.5461    
  18  Prefactor     3.1165        2.9001        .11312E-03   -1.5355    
  19  Prefactor     12.085        141.43        .11533E-03   -1.5013    
  20  Prefactor     .92048        5.2650        .33094E-03   -1.5516    
  21  Prefactor     .10000E-03    9.5843        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    2.7568        .16670E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    4.3929        .15499E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          2.0821        .91589        .34434E-04   -1.5419    
  25  Prefactor     4.1409        6.0814        .78344E-03   -1.5301    
  26  norm          .10000E-03    2.5148        .11725E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    .99320        .73051E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .66329        .20236        .28713E-03   -1.0536    
  29  Prefactor     1.0430        .15970        .19536E-03   -.91309    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.89953e-09
Minuit parameter uncertainties:
  1  7.25812e-07
  2  14.1697
  3  5.63441e-05
  4  14.7409
  5  2.65816e-07
  6  5.52521e-05
  7  43.8344
  8  6.21893e-05
  9  2.6853
  10  0.607466
  11  34.5759
  12  6.45048e-05
  13  0.0016492
  14  1.54805e-05
  15  1.60128e-06
  16  2.55854e-05
  17  3.90346
  18  2.90027
  19  82.9302
  20  4.40324
  21  1.45008e-05
  22  2.12597e-05
  23  1.24248e-05
  24  0.915894
  25  6.08227
  26  1.22384e-06
  27  9.09315e-07
  28  0.202591
  29  0.159776
Done.

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

Extracting fit parameters...

4FGL J0823.1+4042
   Spectrum: PowerLaw
302    Prefactor:  1.000e-04  6.450e-05  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.043e+00  1.598e-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:  6.633e-01  2.026e-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.98e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.19e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/423856/likelihoodResults_336528001_336787201_4FGL_J0823.1+4042_daily_bin375.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) = 5736.58775482
delta logL = -0.000263476014879

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5736.58749141
delta logL = -6.23440428171e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10529E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4836       1.0000          .0000       10.000    
     3 'Normalizat'    .66329       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0430       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=   5736.587     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      210 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    544.70        .90712E-02** at limit **
   2  Index         2.5134        7.0454        .50000       -.14752E-04
   3  Normalizat    .66329        .24055E-01    .64893E-01   -.73001E-04
   4  Prefactor     1.0430        .20253E-01    .40336E-01   -.14207E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.51337
  Normalizat = 0.663288
  Prefactor  = 1.04303
 **********
 **   18 **HESSE 
 **********

 FCN=   5736.587     FROM HESSE     STATUS=OK            31 CALLS      241 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    101.53        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5134        5.4499        .50000       -.52051    
   3  Normalizat    .66329        .18350        .28713E-03   -1.0536    
   4  Prefactor     1.0430        .15491        .19536E-03   -.91309    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.63752e-09
Minuit parameter uncertainties:
  1  0.000271057
  2  9.96887
  3  0.183673
  4  0.154975
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/423856': 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) = 5736.58749116
delta logL = 1.88401827472e-07

Extracting fit parameters...

4FGL J0823.1+4042
   Spectrum: PowerLaw
302    Prefactor:  1.000e-04  2.711e-04  1.000e-04  1.000e+04 ( 1.000e-13)
303        Index:  2.513e+00  9.969e+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.043e+00  1.550e-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:  6.633e-01  1.837e-01  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/423856/cmap_HighResolution_336528001_336787201_4FGL_J0823.1+4042_daily_bin375.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.19e-03', job_status='DONE', photon_flux_upper_limit='7.98e-08', time_completed='2021-08-29 18:07:19.722090', job_id='423856', GAL2='1.04', fit_tolerance='1e-08', EG2='0.66', EG='0.66', time_epoch_completed='1630285639.72', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='1.88e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.46' WHERE bin_id='375' AND source_name='4FGL J0823.1+4042' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 18:07:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0204>
Subject: Job 423856: <4FGL_J0823.1+4042_daily_bin375> in cluster <slac> Done

Job <4FGL_J0823.1+4042_daily_bin375> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Aug 29 17:50:46 2021
Job was executed on host(s) <bullet0204>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 17:50:48 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:48 2021
Terminated at Sun Aug 29 18:07:20 2021
Results reported at Sun Aug 29 18:07:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0823.1+4042_daily_bin375 125.8 40.7077 336528001 336787201 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 :                                   841.31 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             293.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   992 sec.
    Turnaround time :                            994 sec.

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

