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


Performing analysis on: 4FGL_J0823.1+4042_daily_bin184
RA = 125.8, Dec = 40.7077
tmin = 287020801, tmax = 287280001
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='422283', job_status='RUN', time_executed='2021-08-29 17:46:27.542436', time_epoch_executed='1630284387.54' WHERE source_name='4FGL J0823.1+4042' and cadence='daily' and bin_id='184'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/422283

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/422283/ft1_4FGL_J0823.1+4042_daily_bin184.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/422283/ft2_4FGL_J0823.1+4042_daily_bin184.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/422283/ft1_4FGL_J0823.1+4042_daily_bin184.fits outfile=/scratch/kocevski/422283/ft1_filteredMKT_4FGL_J0823.1+4042_daily_bin184.fits ra=125.8 dec=40.7077 rad=12.0 tmin=287020801.0 tmax=287280001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 5.56
user 4.40
sys 0.50

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/422283/ft1_filtered_4FGL_J0823.1+4042_daily_bin184.fits" evtable="EVENTS" scfile=/scratch/kocevski/422283/ft2_4FGL_J0823.1+4042_daily_bin184.fits sctable="SC_DATA" outfile=/scratch/kocevski/422283/ltcube_287020801_287280001_4FGL_J0823.1+4042_daily_bin184.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/422283/ft2_4FGL_J0823.1+4042_daily_bin184.fits
.....................!
real 12.82
user 11.50
sys 0.62

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/422283/ft1_filtered_4FGL_J0823.1+4042_daily_bin184.fits evtable="EVENTS" scfile=/scratch/kocevski/422283/ft2_4FGL_J0823.1+4042_daily_bin184.fits sctable="SC_DATA" expcube=/scratch/kocevski/422283/ltcube_287020801_287280001_4FGL_J0823.1+4042_daily_bin184.fits outfile=/scratch/kocevski/422283/expmap_287020801_287280001_4FGL_J0823.1+4042_daily_bin184.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/422283/ltcube_287020801_287280001_4FGL_J0823.1+4042_daily_bin184.fits
.....................!
real 196.49
user 186.65
sys 4.48

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/422283/ft1_filtered_4FGL_J0823.1+4042_daily_bin184.fits scfile=/scratch/kocevski/422283/ft2_4FGL_J0823.1+4042_daily_bin184.fits outfile=/scratch/kocevski/422283/cmap_287020801_287280001_4FGL_J0823.1+4042_daily_bin184.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.37
sys 0.42

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/422283/ft1_filtered_4FGL_J0823.1+4042_daily_bin184.fits scfile=/scratch/kocevski/422283/ft2_4FGL_J0823.1+4042_daily_bin184.fits outfile=/scratch/kocevski/422283/cmap_HighResolution_287020801_287280001_4FGL_J0823.1+4042_daily_bin184.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.82
user 0.38
sys 0.42

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    9.9606       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.3683       1.0000         .10000E-03   10000.    
     4 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.4937       1.0000         .10000E-03   10000.    
     9 'norm      '    .92231       1.0000         .10000E-03   10000.    
    10 'norm      '    1.2921       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    17.935       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .93023E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.2903       1.0000         .10000E-03   10000.    
    17 'norm      '    5.4091       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.7110       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .22831E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    11.201       1.0000         .10000E-03   10000.    
    21 'Prefactor '    22.646       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10211E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .30996       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .71678       1.0000         .10000E-03   10000.    
    26 'norm      '    5.9185       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .37685       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.2630       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .67103       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5810.408     FROM MIGRAD    STATUS=CONVERGED    757 CALLS     3780 TOTAL
                     EDM=   .21E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    20.027         .0000    ** at limit **
   2  Prefactor     9.9607        10.004         .0000        .35681E-04
   3  Prefactor     3.3679        16.237         .0000        .22165E-02
   4  norm          .10000E-03    6.3744         .0000    ** at limit **
   5  norm          .10000E-03    .68601         .0000    ** at limit **
   6  Prefactor     .10000E-03    2.4143         .0000    ** at limit **
   7  Prefactor     .10000E-03    11.629         .0000    ** at limit **
   8  Prefactor     1.4949        4.6804         .0000        .93827E-03
   9  norm          .92234        1.6780         .0000        .17694E-03
  10  norm          1.2921        .58414         .0000        .72950E-03
  11  Prefactor     .10000E-03    15.661         .0000    ** at limit **
  12  Prefactor     17.937        13.863         .0000        .56719E-03
  13  Prefactor     .10000E-03    1.3653         .0000    ** at limit **
  14  Prefactor     .10000E-03    8.6802         .0000    ** at limit **
  15  Prefactor     .10000E-03    9.6393         .0000    ** at limit **
  16  norm          2.2840        7.3638         .0000        .11922E-01
  17  norm          5.4082        6.4392         .0000       -.16620E-02
  18  Prefactor     1.7099        2.3608         .0000        .12753E-03
  19  Prefactor     .10007E-03    276.84         .0000    ** at limit **
  20  Prefactor     11.202        6.2975         .0000        .56290E-03
  21  Prefactor     22.628        38.752         .0000        .31182E-03
  22  Prefactor     .10000E-03    1.4154         .0000    ** at limit **
  23  Prefactor     .10000E-03    28.119         .0000    ** at limit **
  24  norm          .31009        .46583         .0000       -.13310E-02
  25  Prefactor     .71588        3.8413         .0000        .63592E-03
  26  norm          5.9149        8.2492         .0000        .23000E-02
  27  Prefactor     .37221        1.9033         .0000        .63485E-03
  28  Normalizat    1.2628        .17992         .0000       -.39493E-03
  29  Prefactor     .67112        .13943         .0000       -.45662E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 9.96072
  Prefactor  = 3.36787
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.49486
  norm       = 0.922337
  norm       = 1.29207
  Prefactor  = 0.000100001
  Prefactor  = 17.9374
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 2.28402
  norm       = 5.40818
  Prefactor  = 1.70988
  Prefactor  = 0.000100073
  Prefactor  = 11.2019
  Prefactor  = 22.6284
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.310093
  Prefactor  = 0.715882
  norm       = 5.91488
  Prefactor  = 0.372213
  Normalizat = 1.26285
  Prefactor  = 0.671117
 **********
 **   18 **HESSE 
 **********

 FCN=   5810.408     FROM HESSE     STATUS=OK           557 CALLS     4337 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    20.491        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     9.9607        9.9967        .12697E-03   -1.5077    
   3  Prefactor     3.3679        16.207        .11024E-02   -1.5341    
   4  norm          .10000E-03    6.4020        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    .68745        .61626E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.4177        .11565E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    11.634        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.4949        4.6298        .26978E-03   -1.5463    
   9  norm          .92234        1.3477        .12962E-02   -1.5516    
  10  norm          1.2921        .58552        .37081E-04   -1.5481    
  11  Prefactor     .10000E-03    15.730        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     17.937        13.447        .94574E-04   -1.4861    
  13  Prefactor     .10000E-03    15.653        .16531E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    8.6883        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    9.9199        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.2840        7.2906        .13562E-02   -1.5406    
  17  norm          5.4082        6.3944        .17278E-03   -1.5243    
  18  Prefactor     1.7099        2.3319        .12964E-03   -1.5446    
  19  Prefactor     .10007E-03    278.72        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     11.202        6.3043        .11970E-03   -1.5038    
  21  Prefactor     22.628        38.546        .84172E-04   -1.4756    
  22  Prefactor     .10000E-03    2.5182        .17234E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    28.304        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .31009        .42658        .45436E-03   -1.5597    
  25  Prefactor     .71588        3.7599        .20812E-03   -1.5539    
  26  norm          5.9149        8.1734        .82532E-03   -1.5222    
  27  Prefactor     .37221        3.2469        .19049E-02   -1.5586    
  28  Normalizat    1.2628        .20749        .22485E-03   -.84682    
  29  Prefactor     .67112        .16115        .23940E-03   -1.0467    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.39218e-09
Minuit parameter uncertainties:
  1  0.000200803
  2  9.99833
  3  14.7822
  4  6.29157e-05
  5  8.2501e-06
  6  4.04363e-05
  7  0.000150843
  8  4.6309
  9  1.34776
  10  0.585518
  11  0.000287729
  12  13.4488
  13  0.000366477
  14  0.000119447
  15  0.00023089
  16  7.29343
  17  6.39524
  18  2.33198
  19  0.00905289
  20  6.30471
  21  38.5885
  22  1.07497e-05
  23  0.000289885
  24  0.426582
  25  3.28135
  26  8.17496
  27  2.19855
  28  0.207622
  29  0.161261
Done.

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

Extracting fit parameters...

4FGL J0823.1+4042
   Spectrum: PowerLaw
302    Prefactor:  1.794e+01  1.345e+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:  6.711e-01  1.613e-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.263e+00  2.076e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.93
Ra Dec: 125.800 40.708
Photon Index (Fixed Index): 2.46 +/- 0.00
Photon Flux (Fixed Index): 5.22e-08 +/- 3.91e-08
Energy Flux (Fixed Index): 1.59e-05 +/- 1.20e-05

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

Saving results to:
/scratch/kocevski/422283/likelihoodResults_287020801_287280001_4FGL_J0823.1+4042_daily_bin184.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) = 5809.95044079
delta logL = 0.457848966455

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5809.95035019
delta logL = 0.457939569688

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    28.215       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9005       1.0000          .0000       10.000    
     3 'Normalizat'    1.2869       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .65803       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=   5809.950     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      272 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     28.275        726.18        .18856E-02   -.14289E-04
   2  Index         1.9022        5.2971        .16336        .19306E-04
   3  Normalizat    1.2871        .21151        .50461E-01   -.18769E-04
   4  Prefactor     .65774        .11534        .41840E-01   -.14319E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 28.2751
  Index      = 1.9022
  Normalizat = 1.28708
  Prefactor  = 0.657742
 **********
 **   18 **HESSE 
 **********

 FCN=   5809.950     FROM HESSE     STATUS=OK            33 CALLS      305 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     28.275        20.457        .75423E-04   -1.4644    
   2  Index         1.9022        .53562        .83924E-02   -.66818    
   3  Normalizat    1.2871        .19760        .22309E-03   -.83953    
   4  Prefactor     .65774        .15807        .24146E-03   -1.0521    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.75618e-10
Minuit parameter uncertainties:
  1  20.4619
  2  0.5373
  3  0.197719
  4  0.158178
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/422283': 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) = 5809.95033776
delta logL = 0.457951997478

Extracting fit parameters...

4FGL J0823.1+4042
   Spectrum: PowerLaw
302    Prefactor:  2.828e+01  2.046e+01  1.000e-04  1.000e+04 ( 1.000e-13)
303        Index:  1.902e+00  5.373e-01  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:  6.577e-01  1.582e-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.287e+00  1.977e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.87
Ra Dec: 125.800 40.708
Photon Index (Free Index): 1.90 +/- 0.54
Photon Flux (Free Index): 3.39e-08 +/- 3.28e-08
Energy Flux (Free Index): 3.02e-05 +/- 3.31e-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/422283/cmap_HighResolution_287020801_287280001_4FGL_J0823.1+4042_daily_bin184.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.04e-02', comment='SUCCESS', photon_flux='5.22e-08', energy_flux2='3.02e-05', photon_flux_error='3.91e-08', dlogl='4.58e-01', energy_flux='1.59e-05', photon_flux2='3.39e-08', job_status='DONE', time_completed='2021-08-29 18:00:59.798052', photon_index_error2='0.54', photon_index2='1.90', ts='2.93', fit_tolerance='1e-08', GAL='0.67', photon_index_error='0.00', photon_flux_upper_limit='1.35e-07', energy_flux_error2='3.31e-05', EG='1.26', time_epoch_completed='1630285259.8', return_code='0', job_id='422283', GAL2='0.66', EG2='1.29', return_code2='0', energy_flux_error='1.20e-05', photon_flux_error2='3.28e-08', ts2='3.87', photon_index='2.46' WHERE bin_id='184' AND source_name='4FGL J0823.1+4042' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 18:00:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0215>
Subject: Job 422283: <4FGL_J0823.1+4042_daily_bin184> in cluster <slac> Done

Job <4FGL_J0823.1+4042_daily_bin184> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun Aug 29 17:45:49 2021
Job was executed on host(s) <bullet0215>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 17:45:52 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:45:52 2021
Terminated at Sun Aug 29 18:01:00 2021
Results reported at Sun Aug 29 18:01:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0823.1+4042_daily_bin184 125.8 40.7077 287020801 287280001 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 :                                   862.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             322.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   909 sec.
    Turnaround time :                            911 sec.

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

