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


Performing analysis on: 4FGL_J0833.9+4223_daily_bin1460
RA = 128.476, Dec = 42.3989
tmin = 617760001, tmax = 618019201
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='567899', job_status='RUN', time_executed='2021-08-30 01:13:34.549936', time_epoch_executed='1630311214.55' WHERE source_name='4FGL J0833.9+4223' and cadence='daily' and bin_id='1460'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/567899

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/567899/ft1_4FGL_J0833.9+4223_daily_bin1460.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/567899/ft2_4FGL_J0833.9+4223_daily_bin1460.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/567899/ft1_4FGL_J0833.9+4223_daily_bin1460.fits outfile=/scratch/kocevski/567899/ft1_filteredMKT_4FGL_J0833.9+4223_daily_bin1460.fits ra=128.476 dec=42.3989 rad=12.0 tmin=617760001.0 tmax=618019201.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.02
user 2.49
sys 0.46

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/567899/ft2_4FGL_J0833.9+4223_daily_bin1460.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/567899/ft1_filteredMKT_4FGL_J0833.9+4223_daily_bin1460.fits evtable="EVENTS" outfile="/scratch/kocevski/567899/ft1_filtered_4FGL_J0833.9+4223_daily_bin1460.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.95
user 0.35
sys 0.42

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/567899/ft1_filtered_4FGL_J0833.9+4223_daily_bin1460.fits" evtable="EVENTS" scfile=/scratch/kocevski/567899/ft2_4FGL_J0833.9+4223_daily_bin1460.fits sctable="SC_DATA" outfile=/scratch/kocevski/567899/ltcube_617760001_618019201_4FGL_J0833.9+4223_daily_bin1460.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/567899/ft2_4FGL_J0833.9+4223_daily_bin1460.fits
.....................!
real 12.89
user 12.12
sys 0.66

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/567899/ft1_filtered_4FGL_J0833.9+4223_daily_bin1460.fits evtable="EVENTS" scfile=/scratch/kocevski/567899/ft2_4FGL_J0833.9+4223_daily_bin1460.fits sctable="SC_DATA" expcube=/scratch/kocevski/567899/ltcube_617760001_618019201_4FGL_J0833.9+4223_daily_bin1460.fits outfile=/scratch/kocevski/567899/expmap_617760001_618019201_4FGL_J0833.9+4223_daily_bin1460.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/567899/ltcube_617760001_618019201_4FGL_J0833.9+4223_daily_bin1460.fits
.....................!
real 194.47
user 189.54
sys 4.48

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 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/567899/ft1_filtered_4FGL_J0833.9+4223_daily_bin1460.fits scfile=/scratch/kocevski/567899/ft2_4FGL_J0833.9+4223_daily_bin1460.fits outfile=/scratch/kocevski/567899/cmap_617760001_618019201_4FGL_J0833.9+4223_daily_bin1460.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.82
user 0.38
sys 0.42

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/567899/ft1_filtered_4FGL_J0833.9+4223_daily_bin1460.fits scfile=/scratch/kocevski/567899/ft2_4FGL_J0833.9+4223_daily_bin1460.fits outfile=/scratch/kocevski/567899/cmap_HighResolution_617760001_618019201_4FGL_J0833.9+4223_daily_bin1460.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.82
user 0.36
sys 0.45

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .22218E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .43097E-01   1.0000         .10000E-03   10000.    
     3 'norm      '    14.936       1.0000         .10000E-03   10000.    
     4 'Prefactor '    60.327       1.0000         .10000E-03   10000.    
     5 'Prefactor '    15.768       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10396E-01   1.0000         .10000E-03   10000.    
     7 'norm      '    11.961       1.0000         .10000E-03   10000.    
     8 'norm      '    .10146E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    68.822       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .67993E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11936E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .17581E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .71144E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .47983E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10581E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .35835E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .22417E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    217.53       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .97519E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    346.70       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .85116E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    73.483       1.0000         .10000E-03   10000.    
    25 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    8.4946       1.0000         .10000E-03   10000.    
    27 'norm      '    .61977E-02   1.0000         .10000E-03   10000.    
    28 'Prefactor '    8.1825       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .10001E-01   1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.6297       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6660E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   754.4579     FROM MIGRAD    STATUS=CONVERGED    311 CALLS     3005 TOTAL
                     EDM=   .73E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    56.398        .15151E-06** at limit **
   2  Prefactor     .10000E-03    90.755       -.87913E-06** at limit **
   3  norm          15.577        19.859        .21030E-06    .11477E-04
   4  Prefactor     61.950        93.680       -.14417E-04    .36401E-04
   5  Prefactor     .10519E-03    6562.2       -.12688E-03** at limit **
   6  Prefactor     .10000E-03    94.863        .15817E-04** at limit **
   7  norm          12.250        14.747       -.56448E-06    .49106E-05
   8  norm          .10000E-03    3.4220       -.30544E-07** at limit **
   9  norm          .10000E-03    1.8902        .28076E-06** at limit **
  10  Prefactor     74.721        258.95        .11274E-04   -.15491E-03
  11  Prefactor     .10000E-03    48.591       -.14702E-05** at limit **
  12  Prefactor     .10000E-03    10.166       -.10089E-06** at limit **
  13  Prefactor     .10000E-03    83.889        .30309E-05** at limit **
  14  Prefactor     .10000E-03    22.803        .69848E-07** at limit **
  15  Prefactor     .10000E-03    60.513        .31618E-06** at limit **
  16  norm          .10000E-03    8.3573       -.34427E-07** at limit **
  17  norm          .10000E-03    160.85        .16111E-04** at limit **
  18  Prefactor     .10000E-03    3.1109        .70891E-08** at limit **
  19  Prefactor     .10000E-03    76.932        .75682E-08** at limit **
  20  Prefactor     211.10        176.27       -.23967E-05    .17977E-04
  21  Prefactor     .10000E-03    12.425        .30520E-06** at limit **
  22  Prefactor     348.51        34.233        .82468E-06    .39625E-02
  23  Prefactor     .10000E-03    10.649       -.82383E-07** at limit **
  24  Prefactor     74.808        93.472       -.33762E-05   -.50043E-03
  25  norm          .10000E-03    1.5573        .46236E-07** at limit **
  26  Prefactor     8.4699        7.9113        .63313E-07   -.19635E-04
  27  norm          .10000E-03    51.804       -.27960E-05** at limit **
  28  Prefactor     8.0963        10.020        .41686E-06   -.20562E-04
  29  Normalizat    .10000E-01    1.3362       -.41305E-04** at limit **
  30  Prefactor     1.6319        .34410        .27158E-05    .39682E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 15.5766
  Prefactor  = 61.9497
  Prefactor  = 0.000105195
  Prefactor  = 0.000100001
  norm       = 12.2495
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 74.7207
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 211.101
  Prefactor  = 0.0001
  Prefactor  = 348.511
  Prefactor  = 0.0001
  Prefactor  = 74.8076
  norm       = 0.0001
  Prefactor  = 8.46994
  norm       = 0.0001
  Prefactor  = 8.09631
  Normalizat = 0.01
  Prefactor  = 1.63195
 **********
 **   18 **HESSE 
 **********

 FCN=   754.4579     FROM HESSE     STATUS=OK           652 CALLS     3657 TOTAL
                     EDM=   .52E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    56.415        .10066E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    91.092        .92363E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          15.577        19.858        .25909E-02   -1.4918    
   4  Prefactor     61.950        91.732        .12914E-02   -1.4132    
   5  Prefactor     .10519E-03    6516.3        .25216E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    93.728        .90750E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          12.250        14.734        .28957E-02   -1.5008    
   8  norm          .10000E-03    3.4188        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    1.8902        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     74.721        262.77        .12096E-02   -1.3977    
  11  Prefactor     .10000E-03    48.521        .10498E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    10.176        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    83.560        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    22.877        .93367E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    58.208        .10589E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    8.4073        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    19.818        .69965E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.1280        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    76.201        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     211.10        179.22        .68551E-03   -1.2792    
  21  Prefactor     .10000E-03    12.433        .10389E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     348.51        309.49        .54662E-03   -1.1952    
  23  Prefactor     .10000E-03    10.618        .10432E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     74.808        124.24        .11709E-02   -1.3976    
  25  norm          .10000E-03    1.3892        .14214E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     8.4699        8.5028        .34385E-02   -1.5126    
  27  norm          .10000E-03    52.005        .94454E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     8.0963        10.124        .35039E-02   -1.5139    
  29  Normalizat    .10000E-01    .92898        .21091       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     1.6319        .40729        .49663E-01   -.73908    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.21196e-07
Minuit parameter uncertainties:
  1  1.08515e-05
  2  0.000183142
  3  19.8661
  4  91.942
  5  0.265848
  6  0.000448265
  7  14.7386
  8  1.84208e-07
  9  5.15326e-07
  10  267.025
  11  1.06881e-05
  12  9.95939e-08
  13  0.0001693
  14  3.42751e-06
  15  7.00591e-06
  16  1.89402e-07
  17  0.000257455
  18  1.68916e-07
  19  0.000271359
  20  179.691
  21  2.50293e-06
  22  310.974
  23  5.23549e-06
  24  124.676
  25  2.1013e-08
  26  8.50406
  27  0.000115465
  28  10.1259
  29  1.38391e-06
  30  0.408123
Done.

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

Extracting fit parameters...

4FGL J0833.9+4223
   Spectrum: PowerLaw
335    Prefactor:  1.000e-04  1.693e-04  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.632e+00  4.081e-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  1.384e-06  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/567899/likelihoodResults_617760001_618019201_4FGL_J0833.9+4223_daily_bin1460.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) = 754.457949315
delta logL = -5.74234928763e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 754.457893314
delta logL = -1.42293299632e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .16903E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8945       1.0000          .0000       10.000    
     3 'Normalizat'    .10001E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.6320       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=   754.4579     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      292 TOTAL
                     EDM=   .61E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10851E-03    66.341        .18142E-01** at limit **
   2  Index         2.7391        6.7705        .50000        .48028E-05
   3  Normalizat    .10000E-01    .30320E-02    .12317E-01** at limit **
   4  Prefactor     1.6319        .14194E-01    .21949E-03   -.79313E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000108506
  Index      = 2.73908
  Normalizat = 0.01
  Prefactor  = 1.63195
 **********
 **   18 **HESSE 
 **********

 FCN=   754.4579     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      321 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10851E-03    555.33        .20845E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7391        5.1645        .50000       -.46921    
   3  Normalizat    .10000E-01    .26355E-01    .24635E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.6319        .41746E-01    .87795E-05   -.73908    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.24868e-09
Minuit parameter uncertainties:
  1  0.138765
  2  1018.89
  3  4.87741e-07
  4  0.0417467
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/567899': 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): 102
logL (Free Index) = 754.457892193
delta logL = -3.01834916172e-07

Extracting fit parameters...

4FGL J0833.9+4223
   Spectrum: PowerLaw
335    Prefactor:  1.085e-04  1.388e-01  1.000e-04  1.000e+04 ( 1.000e-13)
336        Index:  2.739e+00  1.019e+03  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.632e+00  4.175e-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.000e-02  4.877e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 128.476 42.399

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/567899/cmap_HighResolution_617760001_618019201_4FGL_J0833.9+4223_daily_bin1460.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.33e-02', job_status='DONE', photon_flux_upper_limit='5.59e-07', time_completed='2021-08-30 01:20:51.861068', job_id='567899', GAL2='1.63', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630311651.86', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.63', dlogl='-3.02e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='1460' AND source_name='4FGL J0833.9+4223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 01:20:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0150>
Subject: Job 567899: <4FGL_J0833.9+4223_daily_bin1460> in cluster <slac> Done

Job <4FGL_J0833.9+4223_daily_bin1460> 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) <bullet0150>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 01:10:42 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:42 2021
Terminated at Mon Aug 30 01:20:52 2021
Results reported at Mon Aug 30 01:20:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0833.9+4223_daily_bin1460 128.476 42.3989 617760001 618019201 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 :                                   402.33 sec.
    Max Memory :                                 1119 MB
    Average Memory :                             233.05 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   610 sec.
    Turnaround time :                            611 sec.

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

