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


Performing analysis on: 4FGL_J0823.1+4042_daily_bin498
RA = 125.8, Dec = 40.7077
tmin = 368409601, tmax = 368668801
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='424008', job_status='RUN', time_executed='2021-08-29 17:52:26.041859', time_epoch_executed='1630284746.04' WHERE source_name='4FGL J0823.1+4042' and cadence='daily' and bin_id='498'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/424008

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/424008/ft1_4FGL_J0823.1+4042_daily_bin498.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/424008/ft2_4FGL_J0823.1+4042_daily_bin498.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/424008/ft1_4FGL_J0823.1+4042_daily_bin498.fits outfile=/scratch/kocevski/424008/ft1_filteredMKT_4FGL_J0823.1+4042_daily_bin498.fits ra=125.8 dec=40.7077 rad=12.0 tmin=368409601.0 tmax=368668801.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 2.87
user 2.34
sys 0.42

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/424008/ft2_4FGL_J0823.1+4042_daily_bin498.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/424008/ft1_filteredMKT_4FGL_J0823.1+4042_daily_bin498.fits evtable="EVENTS" outfile="/scratch/kocevski/424008/ft1_filtered_4FGL_J0823.1+4042_daily_bin498.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.64
user 0.26
sys 0.35

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/424008/ft1_filtered_4FGL_J0823.1+4042_daily_bin498.fits" evtable="EVENTS" scfile=/scratch/kocevski/424008/ft2_4FGL_J0823.1+4042_daily_bin498.fits sctable="SC_DATA" outfile=/scratch/kocevski/424008/ltcube_368409601_368668801_4FGL_J0823.1+4042_daily_bin498.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/424008/ft2_4FGL_J0823.1+4042_daily_bin498.fits
.....................!
real 10.06
user 9.23
sys 0.51

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/424008/ft1_filtered_4FGL_J0823.1+4042_daily_bin498.fits evtable="EVENTS" scfile=/scratch/kocevski/424008/ft2_4FGL_J0823.1+4042_daily_bin498.fits sctable="SC_DATA" expcube=/scratch/kocevski/424008/ltcube_368409601_368668801_4FGL_J0823.1+4042_daily_bin498.fits outfile=/scratch/kocevski/424008/expmap_368409601_368668801_4FGL_J0823.1+4042_daily_bin498.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/424008/ltcube_368409601_368668801_4FGL_J0823.1+4042_daily_bin498.fits
.....................!
real 147.17
user 142.77
sys 3.79

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/424008/ft1_filtered_4FGL_J0823.1+4042_daily_bin498.fits scfile=/scratch/kocevski/424008/ft2_4FGL_J0823.1+4042_daily_bin498.fits outfile=/scratch/kocevski/424008/cmap_368409601_368668801_4FGL_J0823.1+4042_daily_bin498.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.69
user 0.29
sys 0.36

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/424008/ft1_filtered_4FGL_J0823.1+4042_daily_bin498.fits scfile=/scratch/kocevski/424008/ft2_4FGL_J0823.1+4042_daily_bin498.fits outfile=/scratch/kocevski/424008/cmap_HighResolution_368409601_368668801_4FGL_J0823.1+4042_daily_bin498.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.72
user 0.30
sys 0.37

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.8646       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .16472E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10426E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .48745       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.2616       1.0000         .10000E-03   10000.    
     9 'norm      '    2.2535       1.0000         .10000E-03   10000.    
    10 'norm      '    .94302       1.0000         .10000E-03   10000.    
    11 'Prefactor '    29.535       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.4399       1.0000         .10000E-03   10000.    
    14 'Prefactor '    22.835       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    7.9786       1.0000         .10000E-03   10000.    
    17 'norm      '    8.4654       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .47716E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    282.68       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10172E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    23.101       1.0000         .10000E-03   10000.    
    24 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .42195       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0977       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .80834       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=   7324.139     FROM MIGRAD    STATUS=CONVERGED    748 CALLS     3759 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.8658        10.763        .89417E-06   -.38281E-03
   2  Prefactor     .10000E-03    7.1801        .31851E-06** at limit **
   3  Prefactor     .10000E-03    81.447       -.24489E-06** at limit **
   4  norm          .10000E-03    6.8890       -.23630E-06** at limit **
   5  norm          .10000E-03    .93307        .23377E-07** at limit **
   6  Prefactor     .44747        6.6473        .10493E-06   -.55142E-04
   7  Prefactor     .10000E-03    27.245       -.10931E-06** at limit **
   8  Prefactor     9.2605        5.9961        .29700E-07   -.80991E-04
   9  norm          2.2539        1.7520        .18594E-07   -.27459E-04
  10  norm          .94308        .52531        .14651E-08   -.25304E-04
  11  Prefactor     29.543        23.992        .71785E-06    .62205E-04
  12  Prefactor     .10000E-03    21.111        .62667E-07** at limit **
  13  Prefactor     2.4393        2.7856        .13419E-06   -.18732E-03
  14  Prefactor     22.833        21.078       -.15463E-07   -.33323E-05
  15  Prefactor     .10000E-03    6.0059        .54785E-07** at limit **
  16  norm          7.9738        6.6029       -.28821E-06    .10860E-03
  17  norm          8.4644        5.8297        .43875E-06   -.69769E-03
  18  Prefactor     .10000E-03    1.2465       -.27408E-06** at limit **
  19  Prefactor     282.70        123.81        .40715E-05    .20122E-03
  20  Prefactor     .10000E-03    2.1903        .24156E-08** at limit **
  21  Prefactor     .10000E-03    11.964        .45496E-07** at limit **
  22  Prefactor     .10000E-03    1.6886       -.38289E-07** at limit **
  23  Prefactor     23.093        16.264        .51127E-06    .10713E-03
  24  norm          .10000E-03    .10025       -.67367E-09** at limit **
  25  Prefactor     .10000E-03    .96329        .30460E-08** at limit **
  26  norm          .10000E-03    3.5758       -.59875E-08** at limit **
  27  Prefactor     .42359        1.6394        .12628E-06   -.35835E-03
  28  Normalizat    1.0981        .16904       -.91501E-06    .12982E-03
  29  Prefactor     .80793        .12520        .96030E-07    .10280E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.86581
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.447465
  Prefactor  = 0.0001
  Prefactor  = 9.2605
  norm       = 2.2539
  norm       = 0.94308
  Prefactor  = 29.5432
  Prefactor  = 0.0001
  Prefactor  = 2.43934
  Prefactor  = 22.8326
  Prefactor  = 0.0001
  norm       = 7.97376
  norm       = 8.46437
  Prefactor  = 0.000100002
  Prefactor  = 282.7
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.093
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.423595
  Normalizat = 1.09813
  Prefactor  = 0.807931
 **********
 **   18 **HESSE 
 **********

 FCN=   7324.139     FROM HESSE     STATUS=OK           557 CALLS     4316 TOTAL
                     EDM=   .78E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.8658        11.665        .67311E-03   -1.5112    
   2  Prefactor     .10000E-03    7.3099        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    84.357        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    7.0002        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.6530        .16081E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .44747        33.829        .40950E-02   -1.5574    
   7  Prefactor     .10000E-03    27.318        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     9.2605        5.9461        .13169E-03   -1.5099    
   9  norm          2.2539        1.7490        .97125E-04   -1.5408    
  10  norm          .94308        .52172        .43428E-04   -1.5514    
  11  Prefactor     29.543        23.989        .73721E-04   -1.4620    
  12  Prefactor     .10000E-03    21.350        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.4393        2.7749        .14305E-03   -1.5396    
  14  Prefactor     22.833        21.083        .83823E-04   -1.4752    
  15  Prefactor     .10000E-03    6.0528        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          7.9738        6.5221        .14195E-03   -1.5143    
  17  norm          8.4644        6.5424        .68890E-03   -1.5126    
  18  Prefactor     .10000E-03    10.896        .17397E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     282.70        131.50        .12067E-03   -1.2329    
  20  Prefactor     .10000E-03    2.2046        .12368E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    11.968        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    1.7267        .21608E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     23.093        16.264        .83340E-04   -1.4746    
  24  norm          .10000E-03    .10291        .52838E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    .97082        .81946E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    3.5809        .15797E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .42359        2.8877        .20472E-02   -1.5578    
  28  Normalizat    1.0981        .19130        .24951E-03   -.89812    
  29  Prefactor     .80793        .14431        .22686E-03   -.99437    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.75793e-08
Minuit parameter uncertainties:
  1  11.6681
  2  2.16052e-05
  3  0.000199607
  4  8.82418e-06
  5  4.86701e-06
  6  7.78503
  7  9.25006e-06
  8  5.94645
  9  1.74902
  10  0.521722
  11  23.9967
  12  1.91217e-05
  13  2.77505
  14  21.0899
  15  7.25557e-06
  16  6.52265
  17  6.54292
  18  0.000278592
  19  131.635
  20  1.05183e-06
  21  1.59627e-06
  22  2.28808e-08
  23  16.2673
  24  6.08419e-08
  25  2.39659e-07
  26  1.58362e-06
  27  2.21188
  28  0.191423
  29  0.144381
Done.

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

Extracting fit parameters...

4FGL J0823.1+4042
   Spectrum: PowerLaw
302    Prefactor:  1.000e-04  1.912e-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:  8.079e-01  1.444e-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.098e+00  1.914e-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: 8.64e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.70e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/424008/likelihoodResults_368409601_368668801_4FGL_J0823.1+4042_daily_bin498.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) = 7324.13917471
delta logL = -0.000223261290557

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7324.13895146
delta logL = -1.06356310425e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4606       1.0000          .0000       10.000    
     3 'Normalizat'    1.0981       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80794       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=   7324.139     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      207 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.6634        .90712E-02** at limit **
   2  Index         2.4649        7.8064        .50000       -.16366E-05
   3  Normalizat    1.0981        .28203E-02    .56426E-01    .24478E-04
   4  Prefactor     .80793        .22453E-02    .43820E-01    .25187E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.46487
  Normalizat = 1.09812
  Prefactor  = 0.807932
 **********
 **   18 **HESSE 
 **********

 FCN=   7324.139     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      240 TOTAL
                     EDM=   .51E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    222.75        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4649        8.3149        .50000       -.53173    
   3  Normalizat    1.0981        .13580E-01    .24951E-03   -.89812    
   4  Prefactor     .80793        .10814E-01    .22686E-03   -.99437    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.11001e-08
Minuit parameter uncertainties:
  1  0.000182795
  2  584.028
  3  0.0135798
  4  0.0108143
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/424008': 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) = 7324.13895144
delta logL = 3.72074282495e-09

Extracting fit parameters...

4FGL J0823.1+4042
   Spectrum: PowerLaw
302    Prefactor:  1.000e-04  1.828e-04  1.000e-04  1.000e+04 ( 1.000e-13)
303        Index:  2.465e+00  5.840e+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:  8.079e-01  1.081e-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.098e+00  1.358e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/424008/cmap_HighResolution_368409601_368668801_4FGL_J0823.1+4042_daily_bin498.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.70e-03', job_status='DONE', photon_flux_upper_limit='8.64e-08', time_completed='2021-08-29 18:05:20.674271', job_id='424008', GAL2='0.81', fit_tolerance='1e-08', EG2='1.10', EG='1.10', time_epoch_completed='1630285520.67', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='3.72e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.46' WHERE bin_id='498' AND source_name='4FGL J0823.1+4042' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 18:05:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0033>
Subject: Job 424008: <4FGL_J0823.1+4042_daily_bin498> in cluster <slac> Done

Job <4FGL_J0823.1+4042_daily_bin498> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Aug 29 17:51:01 2021
Job was executed on host(s) <bullet0033>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 17:51:02 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:51:02 2021
Terminated at Sun Aug 29 18:05:21 2021
Results reported at Sun Aug 29 18:05:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0823.1+4042_daily_bin498 125.8 40.7077 368409601 368668801 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 :                                   773.38 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             310.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   858 sec.
    Turnaround time :                            860 sec.

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

