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


Performing analysis on: 4FGL_J0833.9+4223_daily_bin1290
RA = 128.476, Dec = 42.3989
tmin = 573696001, tmax = 573955201
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='566565', job_status='RUN', time_executed='2021-08-30 01:09:21.958073', time_epoch_executed='1630310961.96' WHERE source_name='4FGL J0833.9+4223' and cadence='daily' and bin_id='1290'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/566565

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/566565/ft1_4FGL_J0833.9+4223_daily_bin1290.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/566565/ft2_4FGL_J0833.9+4223_daily_bin1290.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/566565/ft1_4FGL_J0833.9+4223_daily_bin1290.fits outfile=/scratch/kocevski/566565/ft1_filteredMKT_4FGL_J0833.9+4223_daily_bin1290.fits ra=128.476 dec=42.3989 rad=12.0 tmin=573696001.0 tmax=573955201.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.31
user 3.07
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/566565/ft2_4FGL_J0833.9+4223_daily_bin1290.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/566565/ft1_filteredMKT_4FGL_J0833.9+4223_daily_bin1290.fits evtable="EVENTS" outfile="/scratch/kocevski/566565/ft1_filtered_4FGL_J0833.9+4223_daily_bin1290.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.41
user 0.26
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/566565/ft1_filtered_4FGL_J0833.9+4223_daily_bin1290.fits" evtable="EVENTS" scfile=/scratch/kocevski/566565/ft2_4FGL_J0833.9+4223_daily_bin1290.fits sctable="SC_DATA" outfile=/scratch/kocevski/566565/ltcube_573696001_573955201_4FGL_J0833.9+4223_daily_bin1290.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/566565/ft2_4FGL_J0833.9+4223_daily_bin1290.fits
.....................!
real 8.76
user 8.49
sys 0.25

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/566565/ft1_filtered_4FGL_J0833.9+4223_daily_bin1290.fits evtable="EVENTS" scfile=/scratch/kocevski/566565/ft2_4FGL_J0833.9+4223_daily_bin1290.fits sctable="SC_DATA" expcube=/scratch/kocevski/566565/ltcube_573696001_573955201_4FGL_J0833.9+4223_daily_bin1290.fits outfile=/scratch/kocevski/566565/expmap_573696001_573955201_4FGL_J0833.9+4223_daily_bin1290.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/566565/ltcube_573696001_573955201_4FGL_J0833.9+4223_daily_bin1290.fits
.....................!
real 141.76
user 137.54
sys 3.98

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/566565/ft1_filtered_4FGL_J0833.9+4223_daily_bin1290.fits scfile=/scratch/kocevski/566565/ft2_4FGL_J0833.9+4223_daily_bin1290.fits outfile=/scratch/kocevski/566565/cmap_573696001_573955201_4FGL_J0833.9+4223_daily_bin1290.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.53
user 0.30
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/566565/ft1_filtered_4FGL_J0833.9+4223_daily_bin1290.fits scfile=/scratch/kocevski/566565/ft2_4FGL_J0833.9+4223_daily_bin1290.fits outfile=/scratch/kocevski/566565/cmap_HighResolution_573696001_573955201_4FGL_J0833.9+4223_daily_bin1290.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.47
user 0.30
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.494       1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.0030       1.0000         .10000E-03   10000.    
     3 'norm      '    .56589E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.3004       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.9982       1.0000         .10000E-03   10000.    
     7 'norm      '    6.1061       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10090E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.3073       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10322E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    101.31       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .63568       1.0000         .10000E-03   10000.    
    17 'norm      '    2.0219       1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.5231       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10215E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    14.132       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    19.178       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .48239E-02   1.0000         .10000E-03   10000.    
    26 'Prefactor '    5.5680       1.0000         .10000E-03   10000.    
    27 'norm      '    5.6609       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .22359E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .94138       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.1016       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=   6349.074     FROM MIGRAD    STATUS=CONVERGED    800 CALLS     4120 TOTAL
                     EDM=   .91E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.493        11.319       -.12998E-06   -.11182E-03
   2  Prefactor     4.0030        27.735        .15282E-05   -.79643E-05
   3  norm          .59539E-01    1.4577       -.34813E-07    .25756E-03
   4  Prefactor     .10000E-03    7.3241        .54426E-07** at limit **
   5  Prefactor     8.3023        32.453        .76094E-06   -.89487E-06
   6  Prefactor     2.9984        3.9028        .30705E-06   -.12254E-05
   7  norm          6.1058        5.9532        .21921E-06   -.30700E-04
   8  norm          .10000E-03    .67326       -.10915E-07** at limit **
   9  norm          .10000E-03    .38817        .62436E-07** at limit **
  10  Prefactor     2.3065        42.028        .20773E-04   -.18347E-03
  11  Prefactor     .10000E-03    30.168        .39183E-06** at limit **
  12  Prefactor     .10000E-03    1.6514        .25464E-07** at limit **
  13  Prefactor     101.32        44.413        .75581E-06    .53741E-04
  14  Prefactor     .10000E-03    44.019       -.13885E-06** at limit **
  15  Prefactor     .10000E-03    2.7779        .44148E-07** at limit **
  16  norm          .63973        4.4442        .35816E-06   -.23579E-03
  17  norm          2.0221        3.5606        .31118E-07   -.18582E-03
  18  Prefactor     5.5240        3.3569       -.84638E-07   -.13875E-03
  19  Prefactor     .10000E-03    74.311        .55370E-05** at limit **
  20  Prefactor     14.194        49.021        .15985E-04    .23732E-03
  21  Prefactor     .10000E-03    3.2935       -.21234E-07** at limit **
  22  Prefactor     19.170        23.934       -.75882E-07   -.27483E-04
  23  Prefactor     .10000E-03    2.6524       -.43411E-07** at limit **
  24  Prefactor     .10000E-03    6.4669       -.29928E-07** at limit **
  25  norm          .62513E-02    .46612        .11180E-06   -.57370E-03
  26  Prefactor     5.5588        3.7216       -.14744E-07   -.45519E-03
  27  norm          5.6570        9.1474        .77971E-06   -.91587E-05
  28  Prefactor     .10000E-03    1.4398        .61478E-07** at limit **
  29  Normalizat    .94123        .20373       -.23948E-05   -.11334E-03
  30  Prefactor     1.1017        .16062       -.22199E-07   -.21016E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.4934
  Prefactor  = 4.00296
  norm       = 0.0595387
  Prefactor  = 0.0001
  Prefactor  = 8.30229
  Prefactor  = 2.99839
  norm       = 6.10584
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 2.30647
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 101.319
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.63973
  norm       = 2.02215
  Prefactor  = 5.52402
  Prefactor  = 0.000100001
  Prefactor  = 14.1942
  Prefactor  = 0.0001
  Prefactor  = 19.1704
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.00625133
  Prefactor  = 5.55876
  norm       = 5.65695
  Prefactor  = 0.0001
  Normalizat = 0.941228
  Prefactor  = 1.10169
 **********
 **   18 **HESSE 
 **********

 FCN=   6349.074     FROM HESSE     STATUS=OK           600 CALLS     4720 TOTAL
                     EDM=   .35E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.493        11.501        .10520E-03   -1.4946    
   2  Prefactor     4.0030        27.392        .20157E-03   -1.5308    
   3  norm          .59539E-01    29.580        .17988E-02   -1.5659    
   4  Prefactor     .10000E-03    7.3757        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     8.3023        32.316        .13915E-03   -1.5132    
   6  Prefactor     2.9984        3.8521        .17085E-03   -1.5362    
   7  norm          6.1058        5.9369        .16247E-03   -1.5214    
   8  norm          .10000E-03    .68321        .63700E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    .88350        .93940E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.3065        45.501        .13506E-02   -1.5404    
  11  Prefactor     .10000E-03    30.552        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.6738        .99872E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     101.32        44.030        .39943E-04   -1.3691    
  14  Prefactor     .10000E-03    45.581        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.7960        .12969E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .63973        9.0892        .31561E-02   -1.5548    
  17  norm          2.0221        3.5307        .19311E-03   -1.5424    
  18  Prefactor     5.5240        3.3409        .10596E-03   -1.5238    
  19  Prefactor     .10000E-03    76.625        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     14.194        52.303        .10655E-03   -1.4954    
  21  Prefactor     .10000E-03    3.3857        .28232E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     19.170        23.928        .45729E-03   -1.4832    
  23  Prefactor     .10000E-03    2.7391        .25289E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    6.4694        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .62513E-02    .51042        .14230E-01   -1.5692    
  26  Prefactor     5.5588        3.8220        .96863E-04   -1.5236    
  27  norm          5.6570        9.0127        .16883E-03   -1.5232    
  28  Prefactor     .10000E-03    5.4800        .17881E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .94123        .22905        .28630E-03   -.95026    
  30  Prefactor     1.1017        .18352        .22485E-03   -.89412    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.508e-08
Minuit parameter uncertainties:
  1  11.5031
  2  20.9563
  3  2.65325
  4  6.10085e-06
  5  32.3838
  6  3.85242
  7  5.93751
  8  8.52794e-07
  9  5.21406e-06
  10  20.5062
  11  1.8082e-05
  12  2.08484e-06
  13  44.0442
  14  0.000131559
  15  2.99388e-06
  16  4.82322
  17  3.53111
  18  3.34103
  19  0.000650156
  20  52.4727
  21  1.19894e-05
  22  23.9398
  23  8.82045e-06
  24  2.55264e-06
  25  0.112069
  26  3.82212
  27  9.01488
  28  6.12656e-05
  29  0.229283
  30  0.183628
Done.

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

Extracting fit parameters...

4FGL J0833.9+4223
   Spectrum: PowerLaw
335    Prefactor:  1.013e+02  4.404e+01  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.102e+00  1.836e-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:  9.412e-01  2.293e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.16
Ra Dec: 128.476 42.399
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 1.33e-07 +/- 5.80e-08
Energy Flux (Fixed Index): 4.19e-05 +/- 1.82e-05

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) = 6346.97249238
delta logL = 2.1013615898

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6346.95520689
delta logL = 2.11864707822

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    33.050       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4992       1.0000          .0000       10.000    
     3 'Normalizat'    .80458       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1802       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=   6346.955     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      316 TOTAL
                     EDM=   .96E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     33.028        48.508        .69702E-04    .61327E-04
   2  Index         3.4997        .89553        .29596E-02   -.70696E-04
   3  Normalizat    .80386        .22599        .30661E-03    .37034E-03
   4  Prefactor     1.1807        .18618        .21815E-03    .21470E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 33.0278
  Index      = 3.49975
  Normalizat = 0.803856
  Prefactor  = 1.18067
 **********
 **   18 **HESSE 
 **********

 FCN=   6346.955     FROM HESSE     STATUS=OK            25 CALLS      341 TOTAL
                     EDM=   .82E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     33.028        34.017        .27881E-05   -1.4558    
   2  Index         3.4997        .62902        .11838E-03   -.30475    
   3  Normalizat    .80386        .22283        .12265E-04   -.99926    
   4  Prefactor     1.1807        .18340        .43631E-04   -.86928    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.22562e-10
Minuit parameter uncertainties:
  1  34.0371
  2  0.630855
  3  0.223085
  4  0.183501
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/566565': 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) = 6346.95520114
delta logL = 2.11865282705

Extracting fit parameters...

4FGL J0833.9+4223
   Spectrum: PowerLaw
335    Prefactor:  3.303e+01  3.404e+01  1.000e-04  1.000e+04 ( 1.000e-13)
336        Index:  3.500e+00  6.309e-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.181e+00  1.835e-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:  8.039e-01  2.231e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 15.21
Ra Dec: 128.476 42.399
Photon Index (Free Index): 3.50 +/- 0.63
Photon Flux (Free Index): 2.48e-07 +/- 8.91e-08
Energy Flux (Free Index): 4.12e-05 +/- 1.39e-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/566565/cmap_HighResolution_573696001_573955201_4FGL_J0833.9+4223_daily_bin1290.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.33e-07', energy_flux2='4.12e-05', photon_flux_error='5.80e-08', dlogl='2.12e+00', energy_flux='4.19e-05', photon_flux2='2.48e-07', job_status='DONE', time_completed='2021-08-30 01:20:01.651263', photon_index_error2='0.63', photon_index2='3.50', ts='10.16', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', energy_flux_error2='1.39e-05', EG='0.94', time_epoch_completed='1630311601.65', return_code='0', job_id='566565', GAL2='1.18', EG2='0.80', return_code2='0', energy_flux_error='1.82e-05', photon_flux_error2='8.91e-08', ts2='15.21', photon_index='2.43' WHERE bin_id='1290' AND source_name='4FGL J0833.9+4223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 01:20:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0071>
Subject: Job 566565: <4FGL_J0833.9+4223_daily_bin1290> in cluster <slac> Done

Job <4FGL_J0833.9+4223_daily_bin1290> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Mon Aug 30 01:05:52 2021
Job was executed on host(s) <bullet0071>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 01:05:53 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:05:53 2021
Terminated at Mon Aug 30 01:20:02 2021
Results reported at Mon Aug 30 01:20:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0833.9+4223_daily_bin1290 128.476 42.3989 573696001 573955201 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 :                                   626.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             230.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   849 sec.
    Turnaround time :                            850 sec.

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

