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


Performing analysis on: 4FGL_J0823.1+4042_daily_bin1025
RA = 125.8, Dec = 40.7077
tmin = 505008001, tmax = 505267201
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='427263', job_status='RUN', time_executed='2021-08-29 18:01:36.281307', time_epoch_executed='1630285296.28' WHERE source_name='4FGL J0823.1+4042' and cadence='daily' and bin_id='1025'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/427263

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/427263/ft1_4FGL_J0823.1+4042_daily_bin1025.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/427263/ft2_4FGL_J0823.1+4042_daily_bin1025.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/427263/ft1_4FGL_J0823.1+4042_daily_bin1025.fits outfile=/scratch/kocevski/427263/ft1_filteredMKT_4FGL_J0823.1+4042_daily_bin1025.fits ra=125.8 dec=40.7077 rad=12.0 tmin=505008001.0 tmax=505267201.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.77
user 4.28
sys 0.46

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/427263/ft1_filtered_4FGL_J0823.1+4042_daily_bin1025.fits" evtable="EVENTS" scfile=/scratch/kocevski/427263/ft2_4FGL_J0823.1+4042_daily_bin1025.fits sctable="SC_DATA" outfile=/scratch/kocevski/427263/ltcube_505008001_505267201_4FGL_J0823.1+4042_daily_bin1025.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/427263/ft2_4FGL_J0823.1+4042_daily_bin1025.fits
.....................!
real 12.37
user 11.72
sys 0.59

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/427263/ft1_filtered_4FGL_J0823.1+4042_daily_bin1025.fits evtable="EVENTS" scfile=/scratch/kocevski/427263/ft2_4FGL_J0823.1+4042_daily_bin1025.fits sctable="SC_DATA" expcube=/scratch/kocevski/427263/ltcube_505008001_505267201_4FGL_J0823.1+4042_daily_bin1025.fits outfile=/scratch/kocevski/427263/expmap_505008001_505267201_4FGL_J0823.1+4042_daily_bin1025.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/427263/ltcube_505008001_505267201_4FGL_J0823.1+4042_daily_bin1025.fits
.....................!
real 192.03
user 187.45
sys 4.14

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/427263/ft1_filtered_4FGL_J0823.1+4042_daily_bin1025.fits scfile=/scratch/kocevski/427263/ft2_4FGL_J0823.1+4042_daily_bin1025.fits outfile=/scratch/kocevski/427263/cmap_505008001_505267201_4FGL_J0823.1+4042_daily_bin1025.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.74
user 0.37
sys 0.34

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/427263/ft1_filtered_4FGL_J0823.1+4042_daily_bin1025.fits scfile=/scratch/kocevski/427263/ft2_4FGL_J0823.1+4042_daily_bin1025.fits outfile=/scratch/kocevski/427263/cmap_HighResolution_505008001_505267201_4FGL_J0823.1+4042_daily_bin1025.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.77
user 0.40
sys 0.37

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .56816       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    43.642       1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .43684       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.2425       1.0000         .10000E-03   10000.    
     9 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .14369       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    16.663       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11642E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    6.4330       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.7368       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.5562       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.5679       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .84400       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .25008E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .61194       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.1652       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .84943       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=   6315.672     FROM MIGRAD    STATUS=CONVERGED    755 CALLS     3254 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .64499        19.659        .11873E-04   -.56466E-03
   2  Prefactor     .10000E-03    2.3829       -.32736E-07** at limit **
   3  Prefactor     .10000E-03    18.667        .97161E-06** at limit **
   4  norm          43.642        18.471       -.12658E-05   -.11848E-03
   5  norm          .10000E-03    .72512       -.21352E-07** at limit **
   6  Prefactor     .42510        7.9541        .53561E-05   -.12890E-03
   7  Prefactor     .10000E-03    11.930        .57125E-06** at limit **
   8  Prefactor     6.2425        5.6349        .50851E-07    .33481E-04
   9  norm          .10000E-03    1.1557       -.82357E-07** at limit **
  10  norm          .14330        .28383       -.13122E-06   -.29699E-02
  11  Prefactor     .10000E-03    55.803       -.66348E-05** at limit **
  12  Prefactor     16.671        15.096        .92511E-06    .83060E-04
  13  Prefactor     .10000E-03    2.9037       -.59463E-06** at limit **
  14  Prefactor     .10000E-03    9.7321        .28646E-05** at limit **
  15  Prefactor     .10000E-03    5.7047       -.35339E-06** at limit **
  16  norm          .10000E-03    1.7238       -.21881E-07** at limit **
  17  norm          6.4311        5.8861       -.89274E-07   -.34687E-04
  18  Prefactor     3.7346        3.1834       -.57578E-07   -.15968E-03
  19  Prefactor     .10000E-03    256.46        .67730E-05** at limit **
  20  Prefactor     3.5567        4.0295        .28649E-05    .54448E-03
  21  Prefactor     .10000E-03    9.4373       -.30745E-05** at limit **
  22  Prefactor     1.5703        2.9462       -.15749E-06   -.21175E-03
  23  Prefactor     .10000E-03    6.5664        .10490E-06** at limit **
  24  norm          .84466        .53940       -.37980E-07   -.28394E-03
  25  Prefactor     .10000E-03    2.2569       -.82597E-06** at limit **
  26  norm          .64255        16.505       -.12966E-04   -.37717E-03
  27  Prefactor     .10000E-03    1.8815       -.76319E-07** at limit **
  28  Normalizat    1.1654        .18675        .82871E-06   -.94284E-04
  29  Prefactor     .84918        .13999       -.95625E-06   -.18503E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.644992
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 43.6419
  norm       = 0.0001
  Prefactor  = 0.425095
  Prefactor  = 0.0001
  Prefactor  = 6.24249
  norm       = 0.0001
  norm       = 0.143297
  Prefactor  = 0.0001
  Prefactor  = 16.6711
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 6.43108
  Prefactor  = 3.73458
  Prefactor  = 0.0001
  Prefactor  = 3.55671
  Prefactor  = 0.0001
  Prefactor  = 1.57026
  Prefactor  = 0.0001
  norm       = 0.844663
  Prefactor  = 0.000100001
  norm       = 0.642553
  Prefactor  = 0.0001
  Normalizat = 1.16535
  Prefactor  = 0.849179
 **********
 **   18 **HESSE 
 **********

 FCN=   6315.672     FROM HESSE     STATUS=OK           559 CALLS     3813 TOTAL
                     EDM=   .49E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .64499        82.972        .46021E-02   -1.5547    
   2  Prefactor     .10000E-03    2.3842        .11981E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    18.811        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          43.642        18.466        .60685E-04   -1.4386    
   5  norm          .10000E-03    .73010        .66080E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .42510        24.494        .37264E-02   -1.5578    
   7  Prefactor     .10000E-03    11.933        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     6.2425        5.6099        .16067E-03   -1.5208    
   9  norm          .10000E-03    1.1769        .83416E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .14330        .22890        .57652E-03   -1.5632    
  11  Prefactor     .10000E-03    56.031        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     16.671        15.001        .98116E-04   -1.4891    
  13  Prefactor     .10000E-03    2.9677        .26337E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    9.7038        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.7352        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.7277        .10188E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          6.4311        5.8861        .15824E-03   -1.5201    
  18  Prefactor     3.7346        3.1786        .12199E-03   -1.5321    
  19  Prefactor     .10000E-03    257.07        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     3.5567        5.4434        .10716E-02   -1.5331    
  21  Prefactor     .10000E-03    9.4257        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     1.5703        2.8879        .17329E-03   -1.5457    
  23  Prefactor     .10000E-03    6.5693        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .84466        .49622        .41381E-04   -1.5524    
  25  Prefactor     .10000E-03    7.4492        .20607E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .64255        25.267        .40886E-02   -1.5548    
  27  Prefactor     .10000E-03    1.9245        .21161E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.1654        .21857        .25405E-03   -.87680    
  29  Prefactor     .84918        .16318        .22879E-03   -.97940    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.89646e-08
Minuit parameter uncertainties:
  1  14.6506
  2  1.6895e-06
  3  6.47515e-05
  4  18.468
  5  1.62661e-06
  6  6.45561
  7  4.99519e-06
  8  5.6104
  9  2.89655e-06
  10  0.228901
  11  4.31247e-05
  12  15.0047
  13  7.27063e-05
  14  6.81861e-06
  15  2.25879e-05
  16  7.93351e-07
  17  5.88667
  18  3.17872
  19  0.000179643
  20  5.44412
  21  3.41405e-05
  22  2.88811
  23  4.56756e-06
  24  0.49622
  25  0.000142465
  26  8.06158
  27  1.22369e-05
  28  0.218738
  29  0.163278
Done.

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

Extracting fit parameters...

4FGL J0823.1+4042
   Spectrum: PowerLaw
302    Prefactor:  1.667e+01  1.500e+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.492e-01  1.633e-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.165e+00  2.187e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.92
Ra Dec: 125.800 40.708
Photon Index (Fixed Index): 2.46 +/- 0.00
Photon Flux (Fixed Index): 4.85e-08 +/- 4.37e-08
Energy Flux (Fixed Index): 1.48e-05 +/- 1.33e-05

TS (Fixed Index): 1.92
Ra Dec: 125.800 40.708
Photon Flux Upper Limit: 1.39e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.08e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/427263/likelihoodResults_505008001_505267201_4FGL_J0823.1+4042_daily_bin1025.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): 0
logL (Free Index) = 6315.36948409
delta logL = 0.302148234088

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6315.35364474
delta logL = 0.31798758107

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.6369       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2263       1.0000          .0000       10.000    
     3 'Normalizat'    1.1228       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87099       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=   6315.354     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      287 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.6402        157.58        .13824E-03    .59465E-03
   2  Index         3.2262        6.6098        .52322E-02    .13553E-03
   3  Normalizat    1.1228        .27374        .25803E-03   -.48109E-03
   4  Prefactor     .87100        .20305        .22623E-03   -.20341E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.64024
  Index      = 3.22615
  Normalizat = 1.12281
  Prefactor  = 0.870998
 **********
 **   18 **HESSE 
 **********

 FCN=   6315.354     FROM HESSE     STATUS=OK            25 CALLS      312 TOTAL
                     EDM=   .77E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.6402        13.804        .55298E-05   -1.5193    
   2  Index         3.2262        1.1379        .20929E-03   -.36267    
   3  Normalizat    1.1228        .21024        .51607E-04   -.89023    
   4  Prefactor     .87100        .16077        .45246E-04   -.97162    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.73689e-10
Minuit parameter uncertainties:
  1  13.8104
  2  1.14942
  3  0.210398
  4  0.160856
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/427263': 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) = 6315.35364464
delta logL = 0.317987682122

Extracting fit parameters...

4FGL J0823.1+4042
   Spectrum: PowerLaw
302    Prefactor:  6.640e+00  1.381e+01  1.000e-04  1.000e+04 ( 1.000e-13)
303        Index:  3.226e+00  1.149e+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:  8.710e-01  1.609e-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.123e+00  2.104e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.62
Ra Dec: 125.800 40.708
Photon Index (Free Index): 3.23 +/- 1.15
Photon Flux (Free Index): 8.44e-08 +/- 6.83e-08
Energy Flux (Free Index): 1.53e-05 +/- 1.11e-05

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/427263/cmap_HighResolution_505008001_505267201_4FGL_J0823.1+4042_daily_bin1025.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.08e-02', comment='SUCCESS', photon_flux='4.85e-08', energy_flux2='1.53e-05', photon_flux_error='4.37e-08', dlogl='3.18e-01', energy_flux='1.48e-05', photon_flux2='8.44e-08', job_status='DONE', time_completed='2021-08-29 18:15:57.958362', photon_index_error2='1.15', photon_index2='3.23', ts='1.92', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', photon_flux_upper_limit='1.39e-07', energy_flux_error2='1.11e-05', EG='1.17', time_epoch_completed='1630286157.96', return_code='0', job_id='427263', GAL2='0.87', EG2='1.12', return_code2='0', energy_flux_error='1.33e-05', photon_flux_error2='6.83e-08', ts2='2.62', photon_index='2.46' WHERE bin_id='1025' AND source_name='4FGL J0823.1+4042' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 18:15:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0259>
Subject: Job 427263: <4FGL_J0823.1+4042_daily_bin1025> in cluster <slac> Done

Job <4FGL_J0823.1+4042_daily_bin1025> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sun Aug 29 18:01:04 2021
Job was executed on host(s) <bullet0259>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 18:01:05 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 29 18:01:05 2021
Terminated at Sun Aug 29 18:15:58 2021
Results reported at Sun Aug 29 18:15:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0823.1+4042_daily_bin1025 125.8 40.7077 505008001 505267201 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 :                                   858.29 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             323.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   893 sec.
    Turnaround time :                            894 sec.

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

