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


Performing analysis on: 4FGL_J0823.1+4042_daily_bin928
RA = 125.8, Dec = 40.7077
tmin = 479865601, tmax = 480124801
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='425740', job_status='RUN', time_executed='2021-08-29 17:56:40.679768', time_epoch_executed='1630285000.68' WHERE source_name='4FGL J0823.1+4042' and cadence='daily' and bin_id='928'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/425740

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/425740/ft1_4FGL_J0823.1+4042_daily_bin928.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/425740/ft2_4FGL_J0823.1+4042_daily_bin928.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/425740/ft1_4FGL_J0823.1+4042_daily_bin928.fits outfile=/scratch/kocevski/425740/ft1_filteredMKT_4FGL_J0823.1+4042_daily_bin928.fits ra=125.8 dec=40.7077 rad=12.0 tmin=479865601.0 tmax=480124801.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 4.08
user 3.22
sys 0.43

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/425740/ft2_4FGL_J0823.1+4042_daily_bin928.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/425740/ft1_filteredMKT_4FGL_J0823.1+4042_daily_bin928.fits evtable="EVENTS" outfile="/scratch/kocevski/425740/ft1_filtered_4FGL_J0823.1+4042_daily_bin928.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.05
user 0.32
sys 0.39

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/425740/ft1_filtered_4FGL_J0823.1+4042_daily_bin928.fits evtable="EVENTS" scfile=/scratch/kocevski/425740/ft2_4FGL_J0823.1+4042_daily_bin928.fits sctable="SC_DATA" expcube=/scratch/kocevski/425740/ltcube_479865601_480124801_4FGL_J0823.1+4042_daily_bin928.fits outfile=/scratch/kocevski/425740/expmap_479865601_480124801_4FGL_J0823.1+4042_daily_bin928.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/425740/ltcube_479865601_480124801_4FGL_J0823.1+4042_daily_bin928.fits
.....................!
real 192.00
user 186.03
sys 5.02

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/425740/ft1_filtered_4FGL_J0823.1+4042_daily_bin928.fits scfile=/scratch/kocevski/425740/ft2_4FGL_J0823.1+4042_daily_bin928.fits outfile=/scratch/kocevski/425740/cmap_479865601_480124801_4FGL_J0823.1+4042_daily_bin928.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.82
user 0.37
sys 0.36

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/425740/ft1_filtered_4FGL_J0823.1+4042_daily_bin928.fits scfile=/scratch/kocevski/425740/ft2_4FGL_J0823.1+4042_daily_bin928.fits outfile=/scratch/kocevski/425740/cmap_HighResolution_479865601_480124801_4FGL_J0823.1+4042_daily_bin928.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.78
user 0.38
sys 0.38

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10162E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .40041       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10079E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.2054       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.0049       1.0000         .10000E-03   10000.    
     9 'norm      '    2.0972       1.0000         .10000E-03   10000.    
    10 'norm      '    .64741       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    32.612       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.7899       1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.200       1.0000         .10000E-03   10000.    
    16 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.4691       1.0000         .10000E-03   10000.    
    19 'Prefactor '    135.37       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .12160E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    9.8206       1.0000         .10000E-03   10000.    
    24 'norm      '    1.1760       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .18987E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .15805       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .88396       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.1815       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .86860       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=   6628.657     FROM MIGRAD    STATUS=CONVERGED    768 CALLS     4358 TOTAL
                     EDM=   .77E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.8752        .54324E-07** at limit **
   2  Prefactor     .10000E-03    4.2196       -.58526E-07** at limit **
   3  Prefactor     .41432        8.0784        .14968E-05   -.45937E-03
   4  norm          .10000E-03    3.7106        .43231E-07** at limit **
   5  norm          .10000E-03    .96428        .13220E-07** at limit **
   6  Prefactor     5.2048        7.0334        .19663E-07   -.13711E-03
   7  Prefactor     .10000E-03    43.027       -.11982E-05** at limit **
   8  Prefactor     2.0051        3.0434        .15729E-06   -.55853E-04
   9  norm          2.0972        1.5567       -.10944E-07    .22076E-04
  10  norm          .64735        .47288        .64157E-08    .25915E-04
  11  Prefactor     .10000E-03    23.165        .22312E-06** at limit **
  12  Prefactor     32.622        17.560       -.24707E-06   -.70393E-04
  13  Prefactor     .10000E-03    2.7828       -.16831E-06** at limit **
  14  Prefactor     9.7911        30.928        .52288E-06   -.16381E-04
  15  Prefactor     11.197        10.756        .26112E-06   -.27934E-04
  16  norm          .10000E-03    2.3960       -.15124E-06** at limit **
  17  norm          .10000E-03    2.0983       -.13981E-06** at limit **
  18  Prefactor     2.4694        2.3460        .26353E-06   -.90873E-04
  19  Prefactor     135.29        97.788       -.65725E-05   -.61883E-04
  20  Prefactor     .10000E-03    4.3776        .17730E-06** at limit **
  21  Prefactor     .10000E-03    15.415        .48649E-06** at limit **
  22  Prefactor     .10000E-03    1.7927        .85091E-06** at limit **
  23  Prefactor     9.9033        21.813       -.52800E-05   -.27306E-03
  24  norm          1.1766        .58741       -.14794E-07   -.62268E-03
  25  Prefactor     .10000E-03    2.1493       -.95550E-07** at limit **
  26  norm          .85767E-01    9.9181        .30238E-05   -.35973E-03
  27  Prefactor     .88524        3.0816        .91699E-07   -.69142E-03
  28  Normalizat    1.1814        .18049       -.15775E-05   -.30922E-03
  29  Prefactor     .86870        .13739        .75231E-06   -.35947E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.41432
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 5.20481
  Prefactor  = 0.0001
  Prefactor  = 2.00514
  norm       = 2.09717
  norm       = 0.647354
  Prefactor  = 0.0001
  Prefactor  = 32.6224
  Prefactor  = 0.0001
  Prefactor  = 9.79112
  Prefactor  = 11.1969
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 2.4694
  Prefactor  = 135.294
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.90326
  norm       = 1.17663
  Prefactor  = 0.000100002
  norm       = 0.0857672
  Prefactor  = 0.885241
  Normalizat = 1.1814
  Prefactor  = 0.868697
 **********
 **   18 **HESSE 
 **********

 FCN=   6628.657     FROM HESSE     STATUS=OK           565 CALLS     4923 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.9332        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.2298        .16332E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .41432        58.151        .43106E-02   -1.5579    
   4  norm          .10000E-03    3.7200        .15316E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.5926        .15566E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.2048        7.0003        .17619E-03   -1.5252    
   7  Prefactor     .10000E-03    43.210        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.0051        3.0146        .16736E-03   -1.5425    
   9  norm          2.0972        1.5610        .85371E-04   -1.5418    
  10  norm          .64735        .45873        .45330E-04   -1.5547    
  11  Prefactor     .10000E-03    23.379        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     32.622        17.404        .70167E-04   -1.4565    
  13  Prefactor     .10000E-03    2.8712        .26312E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     9.7911        30.793        .12807E-03   -1.5082    
  15  Prefactor     11.197        10.725        .11971E-03   -1.5039    
  16  norm          .10000E-03    2.4078        .12300E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.0995        .11512E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.4694        2.3297        .11543E-03   -1.5394    
  19  Prefactor     135.29        97.702        .17307E-03   -1.3376    
  20  Prefactor     .10000E-03    4.4699        .16634E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    15.431        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    3.0306        .20270E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     9.9033        27.142        .12787E-03   -1.5078    
  24  norm          1.1766        .53031        .38339E-04   -1.5491    
  25  Prefactor     .10000E-03    6.0773        .20546E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .85767E-01    20.176        .66902E-01   -1.5649    
  27  Prefactor     .88524        2.9606        .23094E-03   -1.5520    
  28  Normalizat    1.1814        .21067        .24585E-03   -.87180    
  29  Prefactor     .86870        .16059        .22739E-03   -.97244    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.78057e-09
Minuit parameter uncertainties:
  1  6.2385e-06
  2  6.94821e-07
  3  9.82551
  4  2.50951e-06
  5  3.62678e-07
  6  7.00139
  7  2.22346e-05
  8  3.01486
  9  1.561
  10  0.458729
  11  1.89684e-05
  12  17.4065
  13  2.14633e-05
  14  30.8433
  15  10.7267
  16  1.24094e-05
  17  8.45574e-06
  18  2.32979
  19  97.8193
  20  5.5284e-06
  21  5.53734e-07
  22  3.44733e-05
  23  27.1757
  24  0.530315
  25  0.000193576
  26  2.6303
  27  2.96106
  28  0.210825
  29  0.160678
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
630    Prefactor:  8.687e-01  1.607e-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.181e+00  2.108e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.83
Ra Dec: 125.800 40.708
Photon Index (Fixed Index): 2.46 +/- 0.00
Photon Flux (Fixed Index): 9.50e-08 +/- 5.06e-08
Energy Flux (Fixed Index): 2.90e-05 +/- 1.55e-05

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) = 6627.66417737
delta logL = 0.993055973053

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6627.59408448
delta logL = 1.06314886706

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.0767       1.0000         .10000E-03   10000.    
     2 'Index     '    4.3945       1.0000          .0000       10.000    
     3 'Normalizat'    1.0712       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94215       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=   6627.594     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      287 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.0664        5.4158        .72845E-02    .70516E-03
   2  Index         4.3986        1.8798        .64896E-01    .22447E-03
   3  Normalizat    1.0711        .63389E-01    .57859E-01    .13545E-04
   4  Prefactor     .94231        .50847E-01    .45540E-01    .99213E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.06636
  Index      = 4.39863
  Normalizat = 1.07114
  Prefactor  = 0.942306
 **********
 **   18 **HESSE 
 **********

 FCN=   6627.594     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      320 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.0664        8.5428        .32536E-04   -1.5501    
   2  Index         4.3986        2.4862        .27123E-02   -.12057    
   3  Normalizat    1.0711        .18507        .25586E-03   -.90684    
   4  Prefactor     .94231        .14873        .21969E-03   -.94678    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.65806e-10
Minuit parameter uncertainties:
  1  6.03735
  2  2.60403
  3  0.185177
  4  0.14879
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/425740': 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) = 6627.59407838
delta logL = 1.06315496466

Extracting fit parameters...

4FGL J0823.1+4042
   Spectrum: PowerLaw
302    Prefactor:  1.066e+00  6.037e+00  1.000e-04  1.000e+04 ( 1.000e-13)
303        Index:  4.399e+00  2.604e+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:  9.423e-01  1.488e-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.071e+00  1.852e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.54
Ra Dec: 125.800 40.708
Photon Index (Free Index): 4.40 +/- 2.60
Photon Flux (Free Index): 1.60e-07 +/- 6.44e-08
Energy Flux (Free Index): 2.26e-05 +/- 1.16e-05

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/425740/cmap_HighResolution_479865601_480124801_4FGL_J0823.1+4042_daily_bin928.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.50e-08', energy_flux2='2.26e-05', photon_flux_error='5.06e-08', dlogl='1.06e+00', energy_flux='2.90e-05', photon_flux2='1.60e-07', job_status='DONE', time_completed='2021-08-29 18:11:23.924864', photon_index_error2='2.60', photon_index2='4.40', ts='6.83', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', energy_flux_error2='1.16e-05', EG='1.18', time_epoch_completed='1630285883.92', return_code='0', job_id='425740', GAL2='0.94', EG2='1.07', return_code2='102', energy_flux_error='1.55e-05', photon_flux_error2='6.44e-08', ts2='9.54', photon_index='2.46' WHERE bin_id='928' AND source_name='4FGL J0823.1+4042' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 18:11:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0052>
Subject: Job 425740: <4FGL_J0823.1+4042_daily_bin928> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0823.1+4042_daily_bin928 125.8 40.7077 479865601 480124801 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 :                                   882.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             351.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   928 sec.
    Turnaround time :                            930 sec.

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

