/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 50 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 = 7352
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0833.9+4223_daily_bin1526
RA = 128.476, Dec = 42.3989
tmin = 634867201, tmax = 635126401
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='567994', job_status='RUN', time_executed='2021-08-30 01:12:52.548917', time_epoch_executed='1630311172.55' WHERE source_name='4FGL J0833.9+4223' and cadence='daily' and bin_id='1526'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/567994

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/567994/ft1_4FGL_J0833.9+4223_daily_bin1526.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/567994/ft2_4FGL_J0833.9+4223_daily_bin1526.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/567994/ft1_4FGL_J0833.9+4223_daily_bin1526.fits outfile=/scratch/kocevski/567994/ft1_filteredMKT_4FGL_J0833.9+4223_daily_bin1526.fits ra=128.476 dec=42.3989 rad=12.0 tmin=634867201.0 tmax=635126401.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.08
user 2.82
sys 2.16

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/567994/ft2_4FGL_J0833.9+4223_daily_bin1526.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/567994/ft2_4FGL_J0833.9+4223_daily_bin1526.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/567994/ft1_filteredMKT_4FGL_J0833.9+4223_daily_bin1526.fits evtable="EVENTS" outfile="/scratch/kocevski/567994/ft1_filtered_4FGL_J0833.9+4223_daily_bin1526.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 6.91
user 0.33
sys 2.22

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/567994/ft1_filtered_4FGL_J0833.9+4223_daily_bin1526.fits" evtable="EVENTS" scfile=/scratch/kocevski/567994/ft2_4FGL_J0833.9+4223_daily_bin1526.fits sctable="SC_DATA" outfile=/scratch/kocevski/567994/ltcube_634867201_635126401_4FGL_J0833.9+4223_daily_bin1526.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/567994/ft2_4FGL_J0833.9+4223_daily_bin1526.fits
.....................!
real 15.78
user 13.04
sys 2.50

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/567994/ft1_filtered_4FGL_J0833.9+4223_daily_bin1526.fits evtable="EVENTS" scfile=/scratch/kocevski/567994/ft2_4FGL_J0833.9+4223_daily_bin1526.fits sctable="SC_DATA" expcube=/scratch/kocevski/567994/ltcube_634867201_635126401_4FGL_J0833.9+4223_daily_bin1526.fits outfile=/scratch/kocevski/567994/expmap_634867201_635126401_4FGL_J0833.9+4223_daily_bin1526.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/567994/ltcube_634867201_635126401_4FGL_J0833.9+4223_daily_bin1526.fits
.....................!
real 193.11
user 185.26
sys 7.08

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 209 point sources and 0 extended sources

Setting source of interest to:
4FGL J0833.9+4223 @ 128.476 42.3989

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/567994/ft1_filtered_4FGL_J0833.9+4223_daily_bin1526.fits scfile=/scratch/kocevski/567994/ft2_4FGL_J0833.9+4223_daily_bin1526.fits outfile=/scratch/kocevski/567994/cmap_634867201_635126401_4FGL_J0833.9+4223_daily_bin1526.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=128.476 yref=42.3989 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 2.45
user 0.36
sys 2.06

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/567994/ft1_filtered_4FGL_J0833.9+4223_daily_bin1526.fits scfile=/scratch/kocevski/567994/ft2_4FGL_J0833.9+4223_daily_bin1526.fits outfile=/scratch/kocevski/567994/cmap_HighResolution_634867201_635126401_4FGL_J0833.9+4223_daily_bin1526.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=128.476 yref=42.3989 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 2.49
user 0.37
sys 2.10

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/567994/ft1_filtered_4FGL_J0833.9+4223_daily_bin1526.fits evtable="EVENTS" scfile=/scratch/kocevski/567994/ft2_4FGL_J0833.9+4223_daily_bin1526.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/567994/Model_4FGL_J0833.9+4223_daily_bin1526.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/567994/ft1_filtered_4FGL_J0833.9+4223_daily_bin1526.fits.........................!
real 28.68
user 22.37
sys 3.51

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/567994/ft1_filtered_4FGL_J0833.9+4223_daily_bin1526.fits', '/scratch/kocevski/567994/ft2_4FGL_J0833.9+4223_daily_bin1526.fits', expMap='/scratch/kocevski/567994/expmap_634867201_635126401_4FGL_J0833.9+4223_daily_bin1526.fits', expCube='/scratch/kocevski/567994/ltcube_634867201_635126401_4FGL_J0833.9+4223_daily_bin1526.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/567994/Model_4FGL_J0833.9+4223_daily_bin1526.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0833.9+4223'

4FGL J0833.9+4223
   Spectrum: PowerLaw
335    Prefactor:  8.920e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
336        Index:  2.434e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
337        Scale:  8.609e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/567994/ft1_filtered_4FGL_J0833.9+4223_daily_bin1526.fits
Spacecraft file(s): /scratch/kocevski/567994/ft2_4FGL_J0833.9+4223_daily_bin1526.fits
Exposure map: /scratch/kocevski/567994/expmap_634867201_635126401_4FGL_J0833.9+4223_daily_bin1526.fits
Exposure cube: /scratch/kocevski/567994/ltcube_634867201_635126401_4FGL_J0833.9+4223_daily_bin1526.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/567994/Model_4FGL_J0833.9+4223_daily_bin1526.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) = 1149.52653273

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    9.2178       1.0000         .10000E-03   10000.    
     3 'norm      '    5.3852       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10228E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    81.737       1.0000         .10000E-03   10000.    
     6 'Prefactor '    23.232       1.0000         .10000E-03   10000.    
     7 'norm      '    15.943       1.0000         .10000E-03   10000.    
     8 'norm      '    .10204E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.0959       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11565E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    115.83       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10213E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10302E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10900E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10533E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .13529E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .11055E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10473E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    27 'norm      '   10000.0       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .24305E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .67931E-01   1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.2244       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6660E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1148.404     FROM MIGRAD    STATUS=CONVERGED    782 CALLS     4500 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.749        .22588E-06** at limit **
   2  Prefactor     9.2469        43.536        .60166E-05   -.93222E-05
   3  norm          5.3864        5.4348        .35422E-06    .32943E-04
   4  Prefactor     .10000E-03    12.870       -.31453E-06** at limit **
   5  Prefactor     81.684        123.61        .53392E-05   -.37271E-04
   6  Prefactor     23.225        20.567        .20456E-05   -.10583E-04
   7  norm          15.937        14.358        .16970E-05    .16973E-04
   8  norm          .10000E-03    2.9274        .98657E-07** at limit **
   9  norm          1.0956        1.5991       -.22959E-06    .69296E-03
  10  Prefactor     .10000E-03    774.96        .26519E-05** at limit **
  11  Prefactor     .10000E-03    19.904       -.92917E-07** at limit **
  12  Prefactor     .10000E-03    7.6474       -.31110E-07** at limit **
  13  Prefactor     115.73        130.82        .18854E-05   -.53249E-04
  14  Prefactor     .10000E-03    29.338       -.50683E-06** at limit **
  15  Prefactor     .10000E-03    13.564        .31087E-06** at limit **
  16  norm          .10000E-03    7.4386        .59609E-07** at limit **
  17  norm          .10000E-03    12.472        .29372E-06** at limit **
  18  Prefactor     .10000E-03    13.356       -.11562E-08** at limit **
  19  Prefactor     .10000E-03    92.886        .82936E-06** at limit **
  20  Prefactor     .10000E-03    162.63       -.96278E-06** at limit **
  21  Prefactor     .10002E-03    480.70        .29070E-05** at limit **
  22  Prefactor     .10005E-03    1016.2       -.42849E-05** at limit **
  23  Prefactor     .10000E-03    51.177        .66450E-07** at limit **
  24  Prefactor     .10001E-03    867.29       -.23857E-05** at limit **
  25  norm          .10000E-03    7.3541        .39214E-07** at limit **
  26  Prefactor     .10000E-03    65.180       -.58198E-07** at limit **
  27  norm         10000.0        7154.3        .11917E-04** at limit **
  28  Prefactor     .10000E-03    217.04        .81348E-06** at limit **
  29  Normalizat    .67237E-01    1.3518       -.10903E-03   -.10791E-04
  30  Prefactor     1.2251        .38248        .13956E-04   -.53034E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 9.24691
  norm       = 5.3864
  Prefactor  = 0.0001
  Prefactor  = 81.6836
  Prefactor  = 23.2249
  norm       = 15.9374
  norm       = 0.0001
  norm       = 1.09556
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 115.726
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.000100021
  Prefactor  = 0.000100046
  Prefactor  = 0.0001
  Prefactor  = 0.000100015
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 10000
  Prefactor  = 0.000100001
  Normalizat = 0.0672367
  Prefactor  = 1.22507
 **********
 **   18 **HESSE 
 **********

 FCN=   1148.404     FROM HESSE     STATUS=OK           570 CALLS     5070 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.763        .10853E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     9.2469        43.961        .13201E-03   -1.5100    
   3  norm          5.3864        5.4486        .74184E-04   -1.5244    
   4  Prefactor     .10000E-03    12.882        .11869E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     81.684        123.45        .44426E-04   -1.3898    
   6  Prefactor     23.225        20.646        .83104E-04   -1.4744    
   7  norm          15.937        14.406        .10031E-03   -1.4909    
   8  norm          .10000E-03    2.9737        .56393E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.0956        1.5422        .47646E-03   -1.5499    
  10  Prefactor     .10000E-03    777.91        .20664E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    19.906        .14771E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    7.6624        .91517E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     115.73        130.43        .18692E-03   -1.3552    
  14  Prefactor     .10000E-03    29.344        .17926E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    13.592        .12193E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    7.4400        .90291E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    12.515        .11693E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    13.381        .12098E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    92.918        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    162.52        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10002E-03    479.92        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10005E-03    1014.6        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    51.180        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10001E-03    866.74        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    7.3571        .89776E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    65.179        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm         10000.0        7149.2        .19237E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    216.99        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .67237E-01    1.3950        .10831E-02   -1.4193    
  30  Prefactor     1.2251        .39068        .18241E-03   -.85563    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.02156e-10
Minuit parameter uncertainties:
  1  6.40653e-06
  2  40.3719
  3  5.44907
  4  0.000133917
  5  123.839
  6  20.6527
  7  14.409
  8  1.91334e-05
  9  1.54221
  10  0.00117547
  11  6.59973e-05
  12  2.95482e-05
  13  130.752
  14  0.000390394
  15  2.12874e-06
  16  4.97103e-06
  17  1.83607e-05
  18  8.69987e-06
  19  0.000346672
  20  0.00135655
  21  0.00638159
  22  0.0138371
  23  7.23574e-05
  24  0.00721766
  25  1.03861e-05
  26  0.000107951
  27  0.0869606
  28  0.00107359
  29  0.581039
  30  0.391608
Done.

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

Extracting fit parameters...

4FGL J0833.9+4223
   Spectrum: PowerLaw
335    Prefactor:  1.157e+02  1.308e+02  1.000e-04  1.000e+04 ( 1.000e-13)
336        Index:  2.434e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
337        Scale:  8.609e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
663    Prefactor:  1.225e+00  3.916e-01  0.000e+00  1.000e+01 ( 1.000e+00)
664        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
665        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
662   Normalization:  6.724e-02  5.810e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.34
Ra Dec: 128.476 42.399
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 1.52e-07 +/- 1.72e-07
Energy Flux (Fixed Index): 4.78e-05 +/- 5.40e-05

TS (Fixed Index): 1.34
Ra Dec: 128.476 42.399
Photon Flux Upper Limit: 6.05e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.68e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/567994/likelihoodResults_634867201_635126401_4FGL_J0833.9+4223_daily_bin1526.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) = 1148.39284597
delta logL = 0.011213628454

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1148.38865917
delta logL = 0.0154004350329

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    129.41       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2855       1.0000          .0000       10.000    
     3 'Normalizat'    .72692E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2221       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6660E+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=   1148.389     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      271 TOTAL
                     EDM=   .55E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     129.39        158.13        .17696E-03    .19273E-04
   2  Index         2.2857        .83201        .54886E-02    .14695E-04
   3  Normalizat    .73091E-01    1.2451        .88539E-02    .19621E-04
   4  Prefactor     1.2220        .41702        .18259E-03    .71148E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 129.386
  Index      = 2.28571
  Normalizat = 0.0730912
  Prefactor  = 1.22203
 **********
 **   18 **HESSE 
 **********

 FCN=   1148.389     FROM HESSE     STATUS=OK            27 CALLS      298 TOTAL
                     EDM=   .29E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     129.39        156.29        .70784E-05   -1.3428    
   2  Index         2.2857        .82191        .21954E-03   -.57384    
   3  Normalizat    .73091E-01    1.0507        .35416E-03   -1.4117    
   4  Prefactor     1.2220        .38205        .36518E-04   -.85656    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.91645e-11
Minuit parameter uncertainties:
  1  156.796
  2  0.827251
  3  0.526213
  4  0.382925
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/567994': 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) = 1148.38865832
delta logL = 0.0154012789274

Extracting fit parameters...

4FGL J0833.9+4223
   Spectrum: PowerLaw
335    Prefactor:  1.294e+02  1.568e+02  1.000e-04  1.000e+04 ( 1.000e-13)
336        Index:  2.286e+00  8.273e-01  0.000e+00  1.000e+01 (-1.000e+00)
337        Scale:  8.609e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
663    Prefactor:  1.222e+00  3.829e-01  0.000e+00  1.000e+01 ( 1.000e+00)
664        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
665        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
662   Normalization:  7.309e-02  5.262e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.38
Ra Dec: 128.476 42.399
Photon Index (Free Index): 2.29 +/- 0.83
Photon Flux (Free Index): 1.38e-07 +/- 1.75e-07
Energy Flux (Free Index): 5.35e-05 +/- 6.97e-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/567994/cmap_HighResolution_634867201_635126401_4FGL_J0833.9+4223_daily_bin1526.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.68e-02', comment='SUCCESS', photon_flux='1.52e-07', energy_flux2='5.35e-05', photon_flux_error='1.72e-07', dlogl='1.54e-02', energy_flux='4.78e-05', photon_flux2='1.38e-07', job_status='DONE', time_completed='2021-08-30 01:21:14.988648', photon_index_error2='0.83', photon_index2='2.29', ts='1.34', fit_tolerance='1e-08', GAL='1.23', photon_index_error='0.00', photon_flux_upper_limit='6.05e-07', energy_flux_error2='6.97e-05', EG='0.07', time_epoch_completed='1630311674.99', return_code='0', job_id='567994', GAL2='1.22', EG2='0.07', return_code2='0', energy_flux_error='5.40e-05', photon_flux_error2='1.75e-07', ts2='1.38', photon_index='2.43' WHERE bin_id='1526' AND source_name='4FGL J0833.9+4223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 01:21:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0079>
Subject: Job 567994: <4FGL_J0833.9+4223_daily_bin1526> in cluster <slac> Done

Job <4FGL_J0833.9+4223_daily_bin1526> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Mon Aug 30 01:10:47 2021
Job was executed on host(s) <bullet0079>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 01:10:48 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Aug 30 01:10:48 2021
Terminated at Mon Aug 30 01:21:16 2021
Results reported at Mon Aug 30 01:21:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0833.9+4223_daily_bin1526 128.476 42.3989 634867201 635126401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0833.9+4223 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   515.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             265.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   627 sec.
    Turnaround time :                            629 sec.

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

