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


Performing analysis on: 4FGL_J0823.1+4042_daily_bin735
RA = 125.8, Dec = 40.7077
tmin = 429840001, tmax = 430099201
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='425455', job_status='RUN', time_executed='2021-08-29 17:56:52.039677', time_epoch_executed='1630285012.04' WHERE source_name='4FGL J0823.1+4042' and cadence='daily' and bin_id='735'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/425455

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/425455/ft1_4FGL_J0823.1+4042_daily_bin735.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/425455/ft2_4FGL_J0823.1+4042_daily_bin735.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/425455/ft1_4FGL_J0823.1+4042_daily_bin735.fits outfile=/scratch/kocevski/425455/ft1_filteredMKT_4FGL_J0823.1+4042_daily_bin735.fits ra=125.8 dec=40.7077 rad=12.0 tmin=429840001.0 tmax=430099201.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 6.34
user 5.65
sys 0.50

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/425455/ft2_4FGL_J0823.1+4042_daily_bin735.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/425455/ft1_filteredMKT_4FGL_J0823.1+4042_daily_bin735.fits evtable="EVENTS" outfile="/scratch/kocevski/425455/ft1_filtered_4FGL_J0823.1+4042_daily_bin735.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.82
user 0.33
sys 0.47

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/425455/ft1_filtered_4FGL_J0823.1+4042_daily_bin735.fits" evtable="EVENTS" scfile=/scratch/kocevski/425455/ft2_4FGL_J0823.1+4042_daily_bin735.fits sctable="SC_DATA" outfile=/scratch/kocevski/425455/ltcube_429840001_430099201_4FGL_J0823.1+4042_daily_bin735.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/425455/ft2_4FGL_J0823.1+4042_daily_bin735.fits
.....................!
real 13.79
user 12.93
sys 0.68

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/425455/ft1_filtered_4FGL_J0823.1+4042_daily_bin735.fits evtable="EVENTS" scfile=/scratch/kocevski/425455/ft2_4FGL_J0823.1+4042_daily_bin735.fits sctable="SC_DATA" expcube=/scratch/kocevski/425455/ltcube_429840001_430099201_4FGL_J0823.1+4042_daily_bin735.fits outfile=/scratch/kocevski/425455/expmap_429840001_430099201_4FGL_J0823.1+4042_daily_bin735.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/425455/ltcube_429840001_430099201_4FGL_J0823.1+4042_daily_bin735.fits
.....................!
real 191.50
user 184.98
sys 5.17

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/425455/ft1_filtered_4FGL_J0823.1+4042_daily_bin735.fits scfile=/scratch/kocevski/425455/ft2_4FGL_J0823.1+4042_daily_bin735.fits outfile=/scratch/kocevski/425455/cmap_429840001_430099201_4FGL_J0823.1+4042_daily_bin735.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.83
user 0.38
sys 0.44

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/425455/ft1_filtered_4FGL_J0823.1+4042_daily_bin735.fits scfile=/scratch/kocevski/425455/ft2_4FGL_J0823.1+4042_daily_bin735.fits outfile=/scratch/kocevski/425455/cmap_HighResolution_429840001_430099201_4FGL_J0823.1+4042_daily_bin735.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.89
user 0.38
sys 0.45

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .87528E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.9844       1.0000         .10000E-03   10000.    
     4 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.4382       1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.7045       1.0000         .10000E-03   10000.    
     7 'Prefactor '    41.687       1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.5843       1.0000         .10000E-03   10000.    
     9 'norm      '    .10289E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.2159       1.0000         .10000E-03   10000.    
    11 'Prefactor '    35.267       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .91383E-01   1.0000         .10000E-03   10000.    
    16 'norm      '    5.6558       1.0000         .10000E-03   10000.    
    17 'norm      '    2.7138       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    18.679       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    27.032       1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    35.774       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .95316       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .89832       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0665       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6330E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4817.859     FROM MIGRAD    STATUS=CONVERGED    120 CALLS     3203 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.6086       -.26535E-05** at limit **
   2  Prefactor     .24070        210.05        .99020E-05    .45649E-03
   3  Prefactor     3.9651        1.9094        .63361E-06   -.13863E-02
   4  norm          .10000E-03    3.1051        .10704E-05** at limit **
   5  norm          2.4202        3.4595        .23096E-05    .55604E-02
   6  Prefactor     8.7030        6.4906        .17307E-05   -.29548E-02
   7  Prefactor     41.678        1.2352        .17656E-07   -.58687E-03
   8  Prefactor     8.5844        1.2365       -.43033E-06    .76441E-03
   9  norm          .10000E-03    3.2990        .14953E-05** at limit **
  10  norm          1.2161        .62182        .56800E-07    .12099E-03
  11  Prefactor     35.265        1.0400        .46694E-07   -.13674E-02
  12  Prefactor     .10000E-03    4.0084       -.19749E-05** at limit **
  13  Prefactor     .10000E-03    5.1188        .30342E-06** at limit **
  14  Prefactor     .10000E-03    28.823        .51075E-05** at limit **
  15  Prefactor     .13756E-03    437.58       -.15667E-04** at limit **
  16  norm          5.6555        5.4942       -.92775E-06    .33030E-02
  17  norm          2.7143        2.8218       -.27112E-05    .22029E-02
  18  Prefactor     .10000E-03    1.6037       -.78199E-06** at limit **
  19  Prefactor     .10001E-03    48.631       -.28114E-05** at limit **
  20  Prefactor     .10000E-03    2.0352       -.10566E-05** at limit **
  21  Prefactor     18.676        1.0585       -.35501E-07    .11775E-03
  22  Prefactor     .10000E-03    2.7142        .20282E-05** at limit **
  23  Prefactor     27.034        1.1802       -.12902E-06    .22991E-02
  24  norm          .10000E-03    .27058       -.14552E-06** at limit **
  25  Prefactor     .10000E-03    2.3354        .12750E-05** at limit **
  26  norm          35.793        2.2512       -.32926E-06    .92442E-02
  27  Prefactor     .94877        4.4145        .46568E-05    .93472E-03
  28  Normalizat    .89845        .22865       -.32109E-05    .38899E-04
  29  Prefactor     1.0664        .18624        .23726E-05    .67964E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.2407
  Prefactor  = 3.96511
  norm       = 0.0001
  norm       = 2.4202
  Prefactor  = 8.70303
  Prefactor  = 41.6776
  Prefactor  = 8.58439
  norm       = 0.0001
  norm       = 1.21607
  Prefactor  = 35.265
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000137558
  norm       = 5.65547
  norm       = 2.7143
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 18.6756
  Prefactor  = 0.0001
  Prefactor  = 27.0341
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 35.7935
  Prefactor  = 0.948768
  Normalizat = 0.898446
  Prefactor  = 1.06638
 **********
 **   18 **HESSE 
 **********

 FCN=   4817.859     FROM HESSE     STATUS=OK           627 CALLS     3830 TOTAL
                     EDM=   .16E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.5668        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .24070        18.565        .94516E-01   -1.5610    
   3  Prefactor     3.9651        16.370        .50514E-02   -1.5310    
   4  norm          .10000E-03    3.1054        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.4202        4.2508        .65507E-02   -1.5397    
   6  Prefactor     8.7030        8.8786        .33966E-02   -1.5118    
   7  Prefactor     41.678        55.615        .15522E-02   -1.4416    
   8  Prefactor     8.5844        6.0494        .34204E-02   -1.5122    
   9  norm          .10000E-03    3.1493        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.2161        .62931        .85960E-02   -1.5487    
  11  Prefactor     35.265        27.312        .16871E-02   -1.4520    
  12  Prefactor     .10000E-03    4.0103        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.8919        .30907E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    28.796        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .13756E-03    9.6016        .94701E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          5.6555        7.5312        .42228E-02   -1.5232    
  17  norm          2.7143        7.4834        .61809E-02   -1.5378    
  18  Prefactor     .10000E-03    1.5809        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10001E-03    49.191        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.0350        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     18.676        59.324        .23168E-02   -1.4843    
  22  Prefactor     .10000E-03    2.6964        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     27.034        40.743        .19263E-02   -1.4668    
  24  norm          .10000E-03    .22560        .15235E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    2.3076        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          35.793        24.329        .16751E-02   -1.4511    
  27  Prefactor     .94877        5.3924        .12999E-01   -1.5513    
  28  Normalizat    .89845        .21485        .44880E-01   -.96515    
  29  Prefactor     1.0664        .16632        .39026E-01   -.90548    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.56042e-07
Minuit parameter uncertainties:
  1  4.62142e-05
  2  4.22833
  3  16.1207
  4  2.43455e-05
  5  4.2513
  6  8.87991
  7  55.6846
  8  6.04983
  9  2.95579e-06
  10  0.629316
  11  27.3219
  12  1.60792e-05
  13  7.21249e-06
  14  8.41102e-05
  15  0.0379857
  16  7.53248
  17  7.48593
  18  6.59235e-06
  19  0.00112775
  20  1.50339e-05
  21  59.5122
  22  1.65809e-05
  23  40.7846
  24  3.55477e-07
  25  1.73325e-05
  26  24.3355
  27  4.52415
  28  0.21505
  29  0.166399
Done.

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

Extracting fit parameters...

4FGL J0823.1+4042
   Spectrum: PowerLaw
302    Prefactor:  1.000e-04  1.608e-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.066e+00  1.664e-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:  8.984e-01  2.151e-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.16e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.78e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/425455/likelihoodResults_429840001_430099201_4FGL_J0823.1+4042_daily_bin735.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) = 4817.86057745
delta logL = -0.00117506861261

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4817.85940217
delta logL = 2.09877725865e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4272       1.0000          .0000       10.000    
     3 'Normalizat'    .89859       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0663       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=   4817.859     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      238 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10398E-03    4.7882        .14041E-01** at limit **
   2  Index         2.3269        5.1816        .50000        .51058E-04
   3  Normalizat    .89845        .52710E-02    .27679E-03   -.10474E-04
   4  Prefactor     1.0664        .43601E-02    .21085E-03   -.80877E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103984
  Index      = 2.32691
  Normalizat = 0.898446
  Prefactor  = 1.06638
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10398E-03    53.857        .14606E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3269        5.2107        .50000       -.56406    
   3  Normalizat    .89845        .17871E-01    .11072E-04   -.96515    
   4  Prefactor     1.0664        .14782E-01    .84341E-05   -.90548    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.43979e-08
Minuit parameter uncertainties:
  1  0.0293242
  2  265.93
  3  0.0178711
  4  0.0147825
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/425455': 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) = 4817.85940111
delta logL = 1.27866860566e-06

Extracting fit parameters...

4FGL J0823.1+4042
   Spectrum: PowerLaw
302    Prefactor:  1.040e-04  2.932e-02  1.000e-04  1.000e+04 ( 1.000e-13)
303        Index:  2.327e+00  2.659e+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:  1.066e+00  1.478e-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:  8.984e-01  1.787e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/425455/cmap_HighResolution_429840001_430099201_4FGL_J0823.1+4042_daily_bin735.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.78e-03', job_status='DONE', photon_flux_upper_limit='6.16e-08', time_completed='2021-08-29 18:09:22.149606', job_id='425455', GAL2='1.07', fit_tolerance='1e-08', EG2='0.90', EG='0.90', time_epoch_completed='1630285762.15', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='1.28e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.46' WHERE bin_id='735' AND source_name='4FGL J0823.1+4042' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 18:09:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0211>
Subject: Job 425455: <4FGL_J0823.1+4042_daily_bin735> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0823.1+4042_daily_bin735 125.8 40.7077 429840001 430099201 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 :                                   750.34 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             330.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   828 sec.
    Turnaround time :                            829 sec.

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

