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


Performing analysis on: 4FGL_J0833.9+4223_monthly_bin117
RA = 128.476, Dec = 42.3989
tmin = 540259201, tmax = 542851201
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='372653', job_status='RUN', time_executed='2021-10-19 18:47:48.804332', time_epoch_executed='1634694468.8' WHERE source_name='4FGL J0833.9+4223' and cadence='monthly' and bin_id='117'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/372653

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

Retrieving the FT1 file...

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

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

Retrieving 457 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/372653/ft1_4FGL_J0833.9+4223_monthly_bin117.fits


Retrieving the FT1 file...

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

Retrieving 457 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/372653/ft2_4FGL_J0833.9+4223_monthly_bin117.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/372653/ft1_4FGL_J0833.9+4223_monthly_bin117.fits outfile=/scratch/kocevski/372653/ft1_filteredMKT_4FGL_J0833.9+4223_monthly_bin117.fits ra=128.476 dec=42.3989 rad=12.0 tmin=540259201.0 tmax=542851201.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 35.22
user 34.27
sys 0.80

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/372653/ft2_4FGL_J0833.9+4223_monthly_bin117.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/372653/ft1_filteredMKT_4FGL_J0833.9+4223_monthly_bin117.fits evtable="EVENTS" outfile="/scratch/kocevski/372653/ft1_filtered_4FGL_J0833.9+4223_monthly_bin117.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.85
user 0.65
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/372653/ft1_filtered_4FGL_J0833.9+4223_monthly_bin117.fits" evtable="EVENTS" scfile=/scratch/kocevski/372653/ft2_4FGL_J0833.9+4223_monthly_bin117.fits sctable="SC_DATA" outfile=/scratch/kocevski/372653/ltcube_540259201_542851201_4FGL_J0833.9+4223_monthly_bin117.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/372653/ft2_4FGL_J0833.9+4223_monthly_bin117.fits
.....................!
real 142.80
user 141.93
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/372653/ft1_filtered_4FGL_J0833.9+4223_monthly_bin117.fits evtable="EVENTS" scfile=/scratch/kocevski/372653/ft2_4FGL_J0833.9+4223_monthly_bin117.fits sctable="SC_DATA" expcube=/scratch/kocevski/372653/ltcube_540259201_542851201_4FGL_J0833.9+4223_monthly_bin117.fits outfile=/scratch/kocevski/372653/expmap_540259201_542851201_4FGL_J0833.9+4223_monthly_bin117.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/372653/ltcube_540259201_542851201_4FGL_J0833.9+4223_monthly_bin117.fits
.....................!
real 191.86
user 186.22
sys 4.93

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/372653/ft1_filtered_4FGL_J0833.9+4223_monthly_bin117.fits scfile=/scratch/kocevski/372653/ft2_4FGL_J0833.9+4223_monthly_bin117.fits outfile=/scratch/kocevski/372653/cmap_540259201_542851201_4FGL_J0833.9+4223_monthly_bin117.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.79
user 0.62
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/372653/ft1_filtered_4FGL_J0833.9+4223_monthly_bin117.fits scfile=/scratch/kocevski/372653/ft2_4FGL_J0833.9+4223_monthly_bin117.fits outfile=/scratch/kocevski/372653/cmap_HighResolution_540259201_542851201_4FGL_J0833.9+4223_monthly_bin117.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.79
user 0.60
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.0067       1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.7550       1.0000         .10000E-03   10000.    
     3 'norm      '    .95431       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10382E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    24.402       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12162E-01   1.0000         .10000E-03   10000.    
     7 'norm      '    1.0407       1.0000         .10000E-03   10000.    
     8 'norm      '    2.3700       1.0000         .10000E-03   10000.    
     9 'norm      '    1.0749       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.3358       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .97559       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.4907       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.1680       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.5606       1.0000         .10000E-03   10000.    
    17 'norm      '    1.1972       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.5650       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10127E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10216E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.2944       1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.7283       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .13506       1.0000         .10000E-03   10000.    
    24 'Prefactor '    3.7256       1.0000         .10000E-03   10000.    
    25 'norm      '    .75211       1.0000         .10000E-03   10000.    
    26 'Prefactor '    2.5746       1.0000         .10000E-03   10000.    
    27 'norm      '    4.4406       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .36046       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0624       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0063       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   74896.64     FROM MIGRAD    STATUS=CONVERGED    803 CALLS     4091 TOTAL
                     EDM=   .17E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.0078        2.9485         .0000        .35909E-02
   2  Prefactor     6.7522        3.8116         .0000        .52677E-02
   3  norm          .95443        .48473         .0000        .17687E-02
   4  Prefactor     .10000E-03    .46387         .0000    ** at limit **
   5  Prefactor     24.398        11.730         .0000        .32306E-02
   6  Prefactor     .19623E-01    .23250         .0000        .99066E-03
   7  norm          1.0408        .98655         .0000        .45678E-02
   8  norm          2.3701        .49054         .0000        .54142E-03
   9  norm          1.0747        .18565         .0000        .15453E-02
  10  Prefactor     .10000E-03    2.0343         .0000    ** at limit **
  11  Prefactor     4.3331        3.8627         .0000        .22563E-02
  12  Prefactor     .97544        .69587         .0000        .78550E-02
  13  Prefactor     3.4917        6.6923         .0000        .49634E-03
  14  Prefactor     3.1683        2.0959         .0000        .17754E-02
  15  Prefactor     .10000E-03    .33755         .0000    ** at limit **
  16  norm          2.5613        1.4604         .0000        .62402E-02
  17  norm          1.1975        .95731         .0000        .38885E-02
  18  Prefactor     1.5653        .69272         .0000        .58092E-02
  19  Prefactor     .10000E-03    .89876         .0000    ** at limit **
  20  Prefactor     .10000E-03    9.6151         .0000    ** at limit **
  21  Prefactor     1.2945        .78623         .0000        .12443E-02
  22  Prefactor     4.7317        7.0434         .0000        .20995E-02
  23  Prefactor     .13307        .28173         .0000        .82206E-02
  24  Prefactor     3.7289        5.3532         .0000        .55769E-02
  25  norm          .75211        .17960         .0000        .56448E-02
  26  Prefactor     2.5752        1.1169         .0000        .71512E-02
  27  norm          4.4408        2.5989         .0000        .48432E-01
  28  Prefactor     .36050        .46266         .0000        .14195E-01
  29  Normalizat    1.0624        .55697E-01     .0000        .24353E-04
  30  Prefactor     1.0063        .44263E-01     .0000       -.26344E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.00776
  Prefactor  = 6.75215
  norm       = 0.954432
  Prefactor  = 0.0001
  Prefactor  = 24.3983
  Prefactor  = 0.0196228
  norm       = 1.04082
  norm       = 2.37005
  norm       = 1.07467
  Prefactor  = 0.0001
  Prefactor  = 4.3331
  Prefactor  = 0.97544
  Prefactor  = 3.49173
  Prefactor  = 3.16827
  Prefactor  = 0.0001
  norm       = 2.56126
  norm       = 1.19747
  Prefactor  = 1.56531
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 1.29451
  Prefactor  = 4.73166
  Prefactor  = 0.133065
  Prefactor  = 3.72891
  norm       = 0.75211
  Prefactor  = 2.57516
  norm       = 4.44083
  Prefactor  = 0.360497
  Normalizat = 1.06237
  Prefactor  = 1.00626
 **********
 **   18 **HESSE 
 **********

 FCN=   74896.64     FROM HESSE     STATUS=OK           624 CALLS     4715 TOTAL
                     EDM=   .34E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.0078        2.9167        .29229E-03   -1.5425    
   2  Prefactor     6.7522        3.7929        .15438E-03   -1.5188    
   3  norm          .95443        .47583        .12886E-03   -1.5513    
   4  Prefactor     .10000E-03    1.4649        .34420E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     24.398        11.329        .81090E-04   -1.4720    
   6  Prefactor     .19623E-01    .57061        .39842E-01   -1.5680    
   7  norm          1.0408        .95850        .25210E-03   -1.5504    
   8  norm          2.3701        .48774        .82916E-04   -1.5400    
   9  norm          1.0747        .18306        .45070E-04   -1.5501    
  10  Prefactor     .10000E-03    2.0545        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.3331        3.7637        .19345E-03   -1.5292    
  12  Prefactor     .97544        .66934        .17226E-03   -1.5510    
  13  Prefactor     3.4917        6.6309        .21641E-03   -1.5334    
  14  Prefactor     3.1683        2.0813        .22770E-03   -1.5352    
  15  Prefactor     .10000E-03    .80754        .30845E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.5613        1.4495        .23781E-03   -1.5388    
  17  norm          1.1975        .94558        .23013E-03   -1.5489    
  18  Prefactor     1.5653        .68762        .14279E-03   -1.5458    
  19  Prefactor     .10000E-03    12.924        .49819E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    9.6813        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.2945        .79043        .18382E-03   -1.5480    
  22  Prefactor     4.7317        6.9960        .18505E-03   -1.5273    
  23  Prefactor     .13307        .71331        .19141E-02   -1.5635    
  24  Prefactor     3.7289        5.2388        .20920E-03   -1.5322    
  25  norm          .75211        .18459        .44088E-04   -1.5535    
  26  Prefactor     2.5752        1.1576        .14390E-03   -1.5387    
  27  norm          4.4408        2.5484        .95547E-03   -1.5286    
  28  Prefactor     .36050        .50694        .18742E-02   -1.5588    
  29  Normalizat    1.0624        .64153E-01    .26202E-03   -.90969    
  30  Prefactor     1.0063        .51483E-01    .22904E-03   -.92521    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.3531e-07
Minuit parameter uncertainties:
  1  2.91686
  2  3.79308
  3  0.475835
  4  1.7958e-06
  5  11.33
  6  0.211094
  7  0.958515
  8  0.487739
  9  0.183056
  10  6.98138e-06
  11  3.76386
  12  0.669346
  13  6.63234
  14  2.08138
  15  3.64738e-07
  16  1.44949
  17  0.945592
  18  0.687627
  19  0.000186189
  20  0.000210191
  21  0.790434
  22  6.99718
  23  0.61595
  24  5.23945
  25  0.184594
  26  1.15762
  27  2.54851
  28  0.506951
  29  0.064158
  30  0.0514855
Done.

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

Extracting fit parameters...

4FGL J0833.9+4223
   Spectrum: PowerLaw
335    Prefactor:  3.492e+00  6.632e+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

GAL_V02
   Spectrum: PowerLaw
663    Prefactor:  1.006e+00  5.149e-02  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.062e+00  6.416e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.34
Ra Dec: 128.476 42.399
Photon Flux Upper Limit: 2.28e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.77e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/372653/likelihoodResults_540259201_542851201_4FGL_J0833.9+4223_monthly_bin117.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): 102
logL (Free Index) = 74895.6377585
delta logL = 1.0064880867

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 74895.6033407
delta logL = 1.04090587645

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.3295       1.0000         .10000E-03   10000.    
     2 'Index     '    3.6499       1.0000          .0000       10.000    
     3 'Normalizat'    1.0414       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0161       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   74895.60     FROM MIGRAD    STATUS=FAILED        98 CALLS      278 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.3309        48.799        .26146E-03    .57325E-03
   2  Index         3.6495        6.7562        .10902E-01    .21242E-03
   3  Normalizat    1.0414        .50672E-01    .26431E-03   -.30970E-04
   4  Prefactor     1.0161        .43598E-01    .22803E-03   -.47861E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   74895.60     FROM SIMPLEX   STATUS=UNCHANGED     86 CALLS      364 TOTAL
                     EDM=   .84E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.3309        48.799        .12411E-03    .57325E-03
   2  Index         3.6495        6.7562        .93488E-03    .21242E-03
   3  Normalizat    1.0414        .50672E-01    .70165E-04   -.30970E-04
   4  Prefactor     1.0161        .43598E-01    .50180E-04   -.47861E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   74895.60     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      396 TOTAL
                     EDM=   .84E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.3309        4.1919        .10459E-04    .11827E-03
   2  Index         3.6495        .99796        .43610E-03    .20855E-05
   3  Normalizat    1.0414        .60691E-01    .10572E-04   -.13764E-04
   4  Prefactor     1.0161        .50766E-01    .91213E-05    .19942E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.33088
  Index      = 3.64948
  Normalizat = 1.04141
  Prefactor  = 1.01613
 **********
 **   18 **HESSE 
 **********

 FCN=   74895.60     FROM HESSE     STATUS=OK            23 CALLS      419 TOTAL
                     EDM=   .61E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.3309        4.0490        .20917E-05   -1.5403    
   2  Index         3.6495        .96458        .17444E-04   -.27350    
   3  Normalizat    1.0414        .60727E-01    .21144E-05   -.91656    
   4  Prefactor     1.0161        .50805E-01    .18243E-05   -.92194    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.12733e-12
Minuit parameter uncertainties:
  1  4.04948
  2  0.971149
  3  0.0607313
  4  0.0508073
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/372653': 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) = 74895.6033406
delta logL = 1.04090603658

Extracting fit parameters...

4FGL J0833.9+4223
   Spectrum: PowerLaw
335    Prefactor:  2.331e+00  4.049e+00  1.000e-04  1.000e+04 ( 1.000e-13)
336        Index:  3.649e+00  9.711e-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.016e+00  5.081e-02  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.041e+00  6.073e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.53
Ra Dec: 128.476 42.399
Photon Index (Free Index): 3.65 +/- 0.97
Photon Flux (Free Index): 2.28e-08 +/- 1.56e-08
Energy Flux (Free Index): 3.65e-06 +/- 2.49e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/372653/cmap_HighResolution_540259201_542851201_4FGL_J0833.9+4223_monthly_bin117.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.77e-03', comment='SUCCESS', energy_flux2='3.65e-06', dlogl='1.04e+00', photon_flux2='2.28e-08', job_status='DONE', time_completed='2021-10-19 21:27:59.361130', photon_index_error2='0.97', photon_index2='3.65', ts='0.34', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', photon_flux_upper_limit='2.28e-08', energy_flux_error2='2.49e-06', EG='1.06', time_epoch_completed='1634704079.36', return_code='0', job_id='372653', GAL2='1.02', EG2='1.04', return_code2='0', photon_flux_error2='1.56e-08', ts2='2.53', photon_index='2.43' WHERE bin_id='117' AND source_name='4FGL J0833.9+4223' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Tue Oct 19 21:27:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0035>
Subject: Job 372653: <4FGL_J0833.9+4223_monthly_bin117> in cluster <slac> Done

Job <4FGL_J0833.9+4223_monthly_bin117> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Oct 19 18:40:15 2021
Job was executed on host(s) <bullet0035>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Oct 19 18:47:32 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Oct 19 18:47:32 2021
Terminated at Tue Oct 19 21:28:00 2021
Results reported at Tue Oct 19 21:28:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0833.9+4223_monthly_bin117 128.476 42.3989 540259201 542851201 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 :                                   8687.00 sec.
    Max Memory :                                 1261 MB
    Average Memory :                             389.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   9627 sec.
    Turnaround time :                            10065 sec.

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

