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


Performing analysis on: 4FGL_J0833.9+4223_daily_bin1333
RA = 128.476, Dec = 42.3989
tmin = 584841601, tmax = 585100801
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='567710', job_status='RUN', time_executed='2021-08-30 01:14:08.228524', time_epoch_executed='1630311248.23' WHERE source_name='4FGL J0833.9+4223' and cadence='daily' and bin_id='1333'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/567710

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/567710/ft1_4FGL_J0833.9+4223_daily_bin1333.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/567710/ft2_4FGL_J0833.9+4223_daily_bin1333.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/567710/ft1_4FGL_J0833.9+4223_daily_bin1333.fits outfile=/scratch/kocevski/567710/ft1_filteredMKT_4FGL_J0833.9+4223_daily_bin1333.fits ra=128.476 dec=42.3989 rad=12.0 tmin=584841601.0 tmax=585100801.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 4.31
user 2.70
sys 1.34

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/567710/ft1_filtered_4FGL_J0833.9+4223_daily_bin1333.fits" evtable="EVENTS" scfile=/scratch/kocevski/567710/ft2_4FGL_J0833.9+4223_daily_bin1333.fits sctable="SC_DATA" outfile=/scratch/kocevski/567710/ltcube_584841601_585100801_4FGL_J0833.9+4223_daily_bin1333.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/567710/ft2_4FGL_J0833.9+4223_daily_bin1333.fits
.....................!
real 13.75
user 12.20
sys 1.48

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/567710/ft1_filtered_4FGL_J0833.9+4223_daily_bin1333.fits evtable="EVENTS" scfile=/scratch/kocevski/567710/ft2_4FGL_J0833.9+4223_daily_bin1333.fits sctable="SC_DATA" expcube=/scratch/kocevski/567710/ltcube_584841601_585100801_4FGL_J0833.9+4223_daily_bin1333.fits outfile=/scratch/kocevski/567710/expmap_584841601_585100801_4FGL_J0833.9+4223_daily_bin1333.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/567710/ltcube_584841601_585100801_4FGL_J0833.9+4223_daily_bin1333.fits
.....................!
real 191.93
user 185.30
sys 6.16

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/567710/ft1_filtered_4FGL_J0833.9+4223_daily_bin1333.fits scfile=/scratch/kocevski/567710/ft2_4FGL_J0833.9+4223_daily_bin1333.fits outfile=/scratch/kocevski/567710/cmap_584841601_585100801_4FGL_J0833.9+4223_daily_bin1333.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=128.476 yref=42.3989 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 2.17
user 0.36
sys 1.19

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/567710/ft1_filtered_4FGL_J0833.9+4223_daily_bin1333.fits scfile=/scratch/kocevski/567710/ft2_4FGL_J0833.9+4223_daily_bin1333.fits outfile=/scratch/kocevski/567710/cmap_HighResolution_584841601_585100801_4FGL_J0833.9+4223_daily_bin1333.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=128.476 yref=42.3989 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 2.06
user 0.38
sys 1.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10151E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .37459       1.0000         .10000E-03   10000.    
     3 'norm      '    .10323E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    5417.5       1.0000         .10000E-03   10000.    
     5 'Prefactor '    64.448       1.0000         .10000E-03   10000.    
     6 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     7 'norm      '    15.939       1.0000         .10000E-03   10000.    
     8 'norm      '    .20274E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10307E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.9112       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .16444       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10269E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .41237E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .16106E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .85019E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10429E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .11396E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10458E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    138.35       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10162E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10325E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    6.2570       1.0000         .10000E-03   10000.    
    24 'Prefactor '    59.874       1.0000         .10000E-03   10000.    
    25 'norm      '    .84701E-01   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .13763E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    15.266       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    30 'Prefactor '    .95163       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=   577.7451     FROM MIGRAD    STATUS=CONVERGED    441 CALLS     3491 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    22.029        .21109E-07** at limit **
   2  Prefactor     .10000E-03    181.24        .90629E-06** at limit **
   3  norm          .10000E-03    8.9511        .12662E-06** at limit **
   4  Prefactor     1719.4        5043.6        .29375E-04    .58455E-06
   5  Prefactor    10000.0        6620.8       -.48176E-03** at limit **
   6  Prefactor    10000.0        656.01        .15028E-04** at limit **
   7  norm          16.606        27.091       -.20210E-05   -.52055E-05
   8  norm          .10000E-03    13.882       -.15495E-05** at limit **
   9  norm          .10000E-03    14.722       -.85899E-07** at limit **
  10  Prefactor     .10001E-03    723.46        .17836E-05** at limit **
  11  Prefactor     .10000E-03    107.33        .99156E-06** at limit **
  12  Prefactor     .10000E-03    14.081        .15793E-07** at limit **
  13  Prefactor     .10000E-03    92.268        .19752E-06** at limit **
  14  Prefactor     .10000E-03    52.411        .60250E-06** at limit **
  15  Prefactor     .10000E-03    67.893       -.16252E-06** at limit **
  16  norm          .10000E-03    18.664       -.51770E-06** at limit **
  17  norm          .10000E-03    18.874       -.85074E-07** at limit **
  18  Prefactor     .10000E-03    2.8436        .82716E-08** at limit **
  19  Prefactor     .10000E-03    23.142        .88274E-07** at limit **
  20  Prefactor     141.08        173.22       -.42683E-04    .15293E-03
  21  Prefactor     .10000E-03    4.7121        .28390E-06** at limit **
  22  Prefactor     .10001E-03    53.030       -.21767E-04** at limit **
  23  Prefactor     6.1412        6.8839        .41830E-06    .20567E-04
  24  Prefactor     65.164        69.420        .12135E-04   -.26142E-03
  25  norm          .83530E-01    .99032       -.63044E-06   -.20458E-03
  26  Prefactor     .10000E-03    15.537       -.10660E-04** at limit **
  27  norm          13.846        26.884        .25213E-04    .20187E-04
  28  Prefactor     .10000E-03    3.6799        .28966E-05** at limit **
  29  Normalizat    .10000E-01    .24119       -.37300E-04** at limit **
  30  Prefactor     .95175        .31782        .81687E-05    .87672E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  norm       = 0.0001
  Prefactor  = 1719.39
  Prefactor  = 10000
  Prefactor  = 10000
  norm       = 16.6062
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100008
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 141.082
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 6.14117
  Prefactor  = 65.1641
  norm       = 0.0835296
  Prefactor  = 0.000100001
  norm       = 13.8464
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 0.951752
 **********
 **   18 **HESSE 
 **********

 FCN=   577.7451     FROM HESSE     STATUS=OK           638 CALLS     4129 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    21.995        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    183.57        .10748E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    8.9438        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1719.4        5218.1        .20070E-03   -.71567    
   5  Prefactor    10000.0        6541.7        .12497E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor    10000.0        644.25        .91857E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          16.606        27.143        .25080E-02   -1.4893    
   8  norm          .10000E-03    13.842        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    14.752        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10001E-03    753.51        .59531E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    107.49        .98141E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    14.109        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    92.354        .10625E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    52.711        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    67.936        .10433E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    18.631        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    18.844        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.8282        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    23.090        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     141.08        170.86        .85614E-03   -1.3327    
  21  Prefactor     .10000E-03    4.7025        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10001E-03    52.819        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     6.1412        6.8944        .40119E-02   -1.5212    
  24  Prefactor     65.164        69.094        .12963E-02   -1.4092    
  25  norm          .83530E-01    1.4239        .94380E-02   -1.5650    
  26  Prefactor     .10000E-03    11.664        .20845E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          13.846        26.624        .25628E-02   -1.6452    
  28  Prefactor     .10000E-03    3.6205        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .10000E-01    .22890        .16505       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .95175        .32782        .45660E-01   -.94355    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.35715e-09
Minuit parameter uncertainties:
  1  1.20727e-05
  2  0.00174049
  3  5.95605e-07
  4  6870.32
  5  0.167455
  6  0.00223642
  7  27.1636
  8  4.38343e-05
  9  1.2586e-05
  10  0.00500774
  11  0.000611282
  12  1.37171e-05
  13  0.000179255
  14  0.000181476
  15  6.08069e-06
  16  2.77602e-05
  17  1.31882e-05
  18  2.99353e-08
  19  3.21983e-05
  20  171.465
  21  1.03905e-05
  22  0.00122697
  23  6.8953
  24  69.1796
  25  0.68936
  26  0.000172799
  27  26.6472
  28  3.59448e-06
  29  2.4925e-06
  30  0.328503
Done.

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

Extracting fit parameters...

4FGL J0833.9+4223
   Spectrum: PowerLaw
335    Prefactor:  1.000e-04  1.793e-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:  9.518e-01  3.285e-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  2.492e-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: 6.93e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.37e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/567710/likelihoodResults_584841601_585100801_4FGL_J0833.9+4223_daily_bin1333.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) = 577.745146792
delta logL = -5.16652158922e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 577.745095598
delta logL = -4.71208409181e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8873       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95176       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=   577.7451     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      280 TOTAL
                     EDM=   .96E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11081E-03    73.220        .17030E-01** at limit **
   2  Index         2.7203        6.2286        .50000        .54613E-05
   3  Normalizat    .10000E-01    .56172E-03    .66909E-02** at limit **
   4  Prefactor     .95175        .13150E-01    .21884E-03   -.14739E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000110813
  Index      = 2.72026
  Normalizat = 0.01
  Prefactor  = 0.951746
 **********
 **   18 **HESSE 
 **********

 FCN=   577.7451     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      309 TOTAL
                     EDM=   .81E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11081E-03    606.07        .18712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7203        7.2465        .50000       -.47344    
   3  Normalizat    .10000E-01    .48186E-02    .13382E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .95175        .38511E-01    .43768E-04   -.94356    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.11902e-09
Minuit parameter uncertainties:
  1  0.163588
  2  992.527
  3  6.0378e-07
  4  0.0385122
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/567710': 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) = 577.74509546
delta logL = -3.32948957293e-07

Extracting fit parameters...

4FGL J0833.9+4223
   Spectrum: PowerLaw
335    Prefactor:  1.108e-04  1.636e-01  1.000e-04  1.000e+04 ( 1.000e-13)
336        Index:  2.720e+00  9.925e+02  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:  9.517e-01  3.851e-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  6.038e-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/567710/cmap_HighResolution_584841601_585100801_4FGL_J0833.9+4223_daily_bin1333.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.37e-02', job_status='DONE', photon_flux_upper_limit='6.93e-07', time_completed='2021-08-30 01:21:59.192375', job_id='567710', GAL2='0.95', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630311719.19', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='-3.33e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='1333' AND source_name='4FGL J0833.9+4223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 01:21:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0072>
Subject: Job 567710: <4FGL_J0833.9+4223_daily_bin1333> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0833.9+4223_daily_bin1333 128.476 42.3989 584841601 585100801 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 :                                   420.35 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             176.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   689 sec.
    Turnaround time :                            691 sec.

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

