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


Performing analysis on: 4FGL_J0833.9+4223_daily_bin1455
RA = 128.476, Dec = 42.3989
tmin = 616464001, tmax = 616723201
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='567892', job_status='RUN', time_executed='2021-08-30 01:14:37.167617', time_epoch_executed='1630311277.17' WHERE source_name='4FGL J0833.9+4223' and cadence='daily' and bin_id='1455'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/567892

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/567892/ft1_4FGL_J0833.9+4223_daily_bin1455.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/567892/ft2_4FGL_J0833.9+4223_daily_bin1455.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/567892/ft1_4FGL_J0833.9+4223_daily_bin1455.fits outfile=/scratch/kocevski/567892/ft1_filteredMKT_4FGL_J0833.9+4223_daily_bin1455.fits ra=128.476 dec=42.3989 rad=12.0 tmin=616464001.0 tmax=616723201.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 3.38
user 2.68
sys 0.60

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/567892/ft2_4FGL_J0833.9+4223_daily_bin1455.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/567892/ft1_filteredMKT_4FGL_J0833.9+4223_daily_bin1455.fits evtable="EVENTS" outfile="/scratch/kocevski/567892/ft1_filtered_4FGL_J0833.9+4223_daily_bin1455.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.94
user 0.34
sys 0.56

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/567892/ft1_filtered_4FGL_J0833.9+4223_daily_bin1455.fits" evtable="EVENTS" scfile=/scratch/kocevski/567892/ft2_4FGL_J0833.9+4223_daily_bin1455.fits sctable="SC_DATA" outfile=/scratch/kocevski/567892/ltcube_616464001_616723201_4FGL_J0833.9+4223_daily_bin1455.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/567892/ft2_4FGL_J0833.9+4223_daily_bin1455.fits
.....................!
real 12.88
user 12.04
sys 0.79

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/567892/ft1_filtered_4FGL_J0833.9+4223_daily_bin1455.fits evtable="EVENTS" scfile=/scratch/kocevski/567892/ft2_4FGL_J0833.9+4223_daily_bin1455.fits sctable="SC_DATA" expcube=/scratch/kocevski/567892/ltcube_616464001_616723201_4FGL_J0833.9+4223_daily_bin1455.fits outfile=/scratch/kocevski/567892/expmap_616464001_616723201_4FGL_J0833.9+4223_daily_bin1455.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/567892/ltcube_616464001_616723201_4FGL_J0833.9+4223_daily_bin1455.fits
.....................!
real 190.20
user 185.13
sys 4.53

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/567892/ft1_filtered_4FGL_J0833.9+4223_daily_bin1455.fits scfile=/scratch/kocevski/567892/ft2_4FGL_J0833.9+4223_daily_bin1455.fits outfile=/scratch/kocevski/567892/cmap_616464001_616723201_4FGL_J0833.9+4223_daily_bin1455.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 0.92
user 0.36
sys 0.55

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/567892/ft1_filtered_4FGL_J0833.9+4223_daily_bin1455.fits scfile=/scratch/kocevski/567892/ft2_4FGL_J0833.9+4223_daily_bin1455.fits outfile=/scratch/kocevski/567892/cmap_HighResolution_616464001_616723201_4FGL_J0833.9+4223_daily_bin1455.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 0.96
user 0.39
sys 0.54

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/567892/ft1_filtered_4FGL_J0833.9+4223_daily_bin1455.fits', '/scratch/kocevski/567892/ft2_4FGL_J0833.9+4223_daily_bin1455.fits', expMap='/scratch/kocevski/567892/expmap_616464001_616723201_4FGL_J0833.9+4223_daily_bin1455.fits', expCube='/scratch/kocevski/567892/ltcube_616464001_616723201_4FGL_J0833.9+4223_daily_bin1455.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/567892/Model_4FGL_J0833.9+4223_daily_bin1455.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/567892/ft1_filtered_4FGL_J0833.9+4223_daily_bin1455.fits
Spacecraft file(s): /scratch/kocevski/567892/ft2_4FGL_J0833.9+4223_daily_bin1455.fits
Exposure map: /scratch/kocevski/567892/expmap_616464001_616723201_4FGL_J0833.9+4223_daily_bin1455.fits
Exposure cube: /scratch/kocevski/567892/ltcube_616464001_616723201_4FGL_J0833.9+4223_daily_bin1455.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/567892/Model_4FGL_J0833.9+4223_daily_bin1455.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) = 459.20409316

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12639E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .80256E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10028E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .17475E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .26154E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .18167       1.0000         .10000E-03   10000.    
     7 'norm      '    17.958       1.0000         .10000E-03   10000.    
     8 'norm      '    3.9062       1.0000         .10000E-03   10000.    
     9 'norm      '    .11715E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.3383       1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.1100       1.0000         .10000E-03   10000.    
    12 'Prefactor '    64.983       1.0000         .10000E-03   10000.    
    13 'Prefactor '    92.313       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .28269E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .20239E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .34466E-02   1.0000         .10000E-03   10000.    
    17 'norm      '    .24188E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    9968.1       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .15633E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.3842       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10359E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.0136       1.0000         .10000E-03   10000.    
    23 'Prefactor '    10.876       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .54981       1.0000         .10000E-03   10000.    
    25 'norm      '    .10160E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .66196       1.0000         .10000E-03   10000.    
    27 'norm      '    .17501E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .68787E-01   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    30 'Prefactor '    .80858       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=   457.5397     FROM MIGRAD    STATUS=CONVERGED   1660 CALLS     4217 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.916        .77777E-03** at limit **
   2  Prefactor     .10000E-03    22.600        .99569E-03** at limit **
   3  norm          .10000E-03    4.6381        .88612E-04** at limit **
   4  Prefactor     .10000E-03    14.859        .80970E-03** at limit **
   5  Prefactor     .10000E-03    167.91        .18306E-02** at limit **
   6  Prefactor     .10001E-03    293.64        .38529E-02** at limit **
   7  norm          17.896        13.038        .63622E-04   -.14981E-03
   8  norm          3.9398        3.6998        .38440E-04   -.16039E-03
   9  norm          .10000E-03    4.9082        .47217E-03** at limit **
  10  Prefactor    10000.0        6997.4        .13407E-02** at limit **
  11  Prefactor     .10000E-03    739.78        .81211E-02** at limit **
  12  Prefactor     .10026E-03    6639.0        .24892E-02** at limit **
  13  Prefactor     257.51        7948.2        .60327E-01    .47837E-04
  14  Prefactor     .10000E-03    156.23        .18327E-02** at limit **
  15  Prefactor     .10000E-03    8.4295        .60691E-03** at limit **
  16  norm          .10000E-03    19.823        .93100E-03** at limit **
  17  norm          .10000E-03    11.288        .70236E-03** at limit **
  18  Prefactor    10000.0        521.29        .35460E-02** at limit **
  19  Prefactor     .10000E-03    125.85        .20438E-02** at limit **
  20  Prefactor     .10000E-03    793.46        .18487E-02** at limit **
  21  Prefactor     .10000E-03    47.612        .14436E-02** at limit **
  22  Prefactor     .10000E-03    1825.1        .89797E-03** at limit **
  23  Prefactor     .10000E-03    482.07        .60743E-03** at limit **
  24  Prefactor     .10000E-03    364.30        .22945E-02** at limit **
  25  norm          .10000E-03    46.460        .14256E-02** at limit **
  26  Prefactor     .10000E-03    315.62        .23830E-02** at limit **
  27  norm          .10000E-03    54.669        .15466E-02** at limit **
  28  Prefactor     .10000E-03    207.00        .18723E-02** at limit **
  29  Normalizat    .10000E-01    .35766        .70879E-02** at limit **
  30  Prefactor     .78931        .24966        .18417E-03   -.31339E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.00010001
  norm       = 17.8956
  norm       = 3.9398
  norm       = 0.0001
  Prefactor  = 10000
  Prefactor  = 0.000100002
  Prefactor  = 0.000100262
  Prefactor  = 257.507
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 10000
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 0.789311
 **********
 **   18 **HESSE 
 **********

 FCN=   457.5397     FROM HESSE     STATUS=OK           558 CALLS     4775 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.916        .15555E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    22.600        .19914E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    4.6381        .17722E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    14.859        .16194E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    167.92        .36612E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10001E-03    294.19        .77059E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          17.896        13.038        .12724E-04   -1.4862    
   8  norm          3.9398        3.6998        .76879E-05   -1.5311    
   9  norm          .10000E-03    4.9083        .94435E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor    10000.0        6997.4        .26814E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    739.78        .16242E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10026E-03    6639.1        .49784E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     257.51        7926.7        .12065E-01   -1.2485    
  14  Prefactor     .10000E-03    156.23        .36654E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    8.4295        .12138E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    19.823        .18620E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    11.288        .14047E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor    10000.0        521.29        .70920E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    125.85        .40876E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    793.46        .36974E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    47.612        .28872E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    1825.1        .17959E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    482.07        .12149E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    364.30        .45890E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    46.460        .28511E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    315.62        .47660E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    54.669        .30931E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    207.10        .37445E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .10000E-01    .35772        .14176E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .78931        .24848        .36834E-04   -1.0012    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.71268e-10
Minuit parameter uncertainties:
  1  3.39635e-05
  2  8.84693e-07
  3  3.92304e-05
  4  1.13136e-05
  5  0.000104923
  6  0.00350439
  7  13.0403
  8  3.69998
  9  2.71239e-05
  10  0.000406139
  11  0.00233609
  12  0.0624304
  13  3353.45
  14  0.000102264
  15  9.64131e-07
  16  2.6154e-06
  17  1.20953e-06
  18  0.00066736
  19  5.17826e-06
  20  1.45187e-05
  21  4.72078e-06
  22  2.47256e-05
  23  8.66653e-06
  24  1.05781e-06
  25  7.87507e-06
  26  8.43129e-06
  27  5.17211e-06
  28  0.00037511
  29  5.12844e-07
  30  0.248833
Done.

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

Extracting fit parameters...

4FGL J0833.9+4223
   Spectrum: PowerLaw
335    Prefactor:  2.575e+02  3.353e+03  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:  7.893e-01  2.488e-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:  1.000e-02  5.128e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.01
Ra Dec: 128.476 42.399
Photon Flux Upper Limit: 1.06e-05 ph cm-2 s-1
Energy Flux Upper Limit: 8.18e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/567892/likelihoodResults_616464001_616723201_4FGL_J0833.9+4223_daily_bin1455.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) = 456.740695315
delta logL = 0.799019322759

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 456.738790956
delta logL = 0.800923681198

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    240.86       1.0000         .10000E-03   10000.    
     2 'Index     '    4.4751       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73948       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=   456.7388     FROM MIGRAD    STATUS=CONVERGED     78 CALLS      265 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     240.62        886.65        .13045E-03    .16993E-03
   2  Index         4.4753        2.0888        .21081E-02    .23874E-03
   3  Normalizat    .10000E-01    .27593        .64520E-02** at limit **
   4  Prefactor     .73987        .23360        .18330E-03   -.24827E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 240.62
  Index      = 4.4753
  Normalizat = 0.01
  Prefactor  = 0.739872
 **********
 **   18 **HESSE 
 **********

 FCN=   456.7388     FROM HESSE     STATUS=OK            23 CALLS      288 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     240.62        705.51        .26090E-04   -1.2593    
   2  Index         4.4753        1.6402        .84322E-04   -.10513    
   3  Normalizat    .10000E-01    .27596        .12904E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .73987        .23301        .36660E-04   -1.0198    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.30749e-09
Minuit parameter uncertainties:
  1  733.164
  2  1.67155
  3  6.46482e-07
  4  0.233317
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/567892': 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) = 456.738789382
delta logL = 0.800925255502

Extracting fit parameters...

4FGL J0833.9+4223
   Spectrum: PowerLaw
335    Prefactor:  2.406e+02  7.332e+02  1.000e-04  1.000e+04 ( 1.000e-13)
336        Index:  4.475e+00  1.672e+00  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:  7.399e-01  2.333e-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:  1.000e-02  6.465e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.66
Ra Dec: 128.476 42.399
Photon Index (Free Index): 4.48 +/- 1.67
Photon Flux (Free Index): 1.06e-05 +/- 1.03e-05
Energy Flux (Free Index): 1.49e-03 +/- 1.41e-03

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/567892/cmap_HighResolution_616464001_616723201_4FGL_J0833.9+4223_daily_bin1455.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.18e-01', comment='SUCCESS', energy_flux2='1.49e-03', dlogl='8.01e-01', photon_flux2='1.06e-05', job_status='DONE', time_completed='2021-08-30 01:22:36.722147', photon_index_error2='1.67', photon_index2='4.48', ts='0.01', fit_tolerance='1e-08', GAL='0.79', photon_index_error='0.00', photon_flux_upper_limit='1.06e-05', energy_flux_error2='1.41e-03', EG='0.01', time_epoch_completed='1630311756.72', return_code='0', job_id='567892', GAL2='0.74', EG2='0.01', return_code2='0', photon_flux_error2='1.03e-05', ts2='1.66', photon_index='2.43' WHERE bin_id='1455' AND source_name='4FGL J0833.9+4223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 01:22:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0279>
Subject: Job 567892: <4FGL_J0833.9+4223_daily_bin1455> in cluster <slac> Done

Job <4FGL_J0833.9+4223_daily_bin1455> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Mon Aug 30 01:10:41 2021
Job was executed on host(s) <bullet0279>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 01:10:41 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:41 2021
Terminated at Mon Aug 30 01:22:37 2021
Results reported at Mon Aug 30 01:22:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0833.9+4223_daily_bin1455 128.476 42.3989 616464001 616723201 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 :                                   389.14 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             163.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   716 sec.
    Turnaround time :                            716 sec.

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

