/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 72 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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 = 7474
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0833.9+4223_daily_bin1744
RA = 128.476, Dec = 42.3989
tmin = 691372801, tmax = 691632001
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='571755', job_status='RUN', time_executed='2022-12-02 00:31:35.618745', time_epoch_executed='1669969895.62' WHERE source_name='4FGL J0833.9+4223' and cadence='daily' and bin_id='1744'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/571755

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/571755/ft1_4FGL_J0833.9+4223_daily_bin1744.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/571755/ft2_4FGL_J0833.9+4223_daily_bin1744.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/571755/ft1_4FGL_J0833.9+4223_daily_bin1744.fits outfile=/scratch/kocevski/571755/ft1_filteredMKT_4FGL_J0833.9+4223_daily_bin1744.fits ra=128.476 dec=42.3989 rad=12.0 tmin=691372801.0 tmax=691632001.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 2.50
user 2.29
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/571755/ft2_4FGL_J0833.9+4223_daily_bin1744.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/571755/ft1_filteredMKT_4FGL_J0833.9+4223_daily_bin1744.fits evtable="EVENTS" outfile="/scratch/kocevski/571755/ft1_filtered_4FGL_J0833.9+4223_daily_bin1744.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.49
user 0.32
sys 0.16

Number of photons that the gtmktime cut: 567

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/571755/ft1_filtered_4FGL_J0833.9+4223_daily_bin1744.fits" evtable="EVENTS" scfile=/scratch/kocevski/571755/ft2_4FGL_J0833.9+4223_daily_bin1744.fits sctable="SC_DATA" outfile=/scratch/kocevski/571755/ltcube_691372801_691632001_4FGL_J0833.9+4223_daily_bin1744.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/571755/ft2_4FGL_J0833.9+4223_daily_bin1744.fits
.....................!
real 13.31
user 12.94
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/571755/ft1_filtered_4FGL_J0833.9+4223_daily_bin1744.fits evtable="EVENTS" scfile=/scratch/kocevski/571755/ft2_4FGL_J0833.9+4223_daily_bin1744.fits sctable="SC_DATA" expcube=/scratch/kocevski/571755/ltcube_691372801_691632001_4FGL_J0833.9+4223_daily_bin1744.fits outfile=/scratch/kocevski/571755/expmap_691372801_691632001_4FGL_J0833.9+4223_daily_bin1744.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/571755/ltcube_691372801_691632001_4FGL_J0833.9+4223_daily_bin1744.fits
.....................!
real 191.19
user 185.72
sys 5.12

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/571755/ft1_filtered_4FGL_J0833.9+4223_daily_bin1744.fits scfile=/scratch/kocevski/571755/ft2_4FGL_J0833.9+4223_daily_bin1744.fits outfile=/scratch/kocevski/571755/cmap_691372801_691632001_4FGL_J0833.9+4223_daily_bin1744.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.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/571755/ft1_filtered_4FGL_J0833.9+4223_daily_bin1744.fits scfile=/scratch/kocevski/571755/ft2_4FGL_J0833.9+4223_daily_bin1744.fits outfile=/scratch/kocevski/571755/cmap_HighResolution_691372801_691632001_4FGL_J0833.9+4223_daily_bin1744.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.54
user 0.38
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/571755/ft1_filtered_4FGL_J0833.9+4223_daily_bin1744.fits', '/scratch/kocevski/571755/ft2_4FGL_J0833.9+4223_daily_bin1744.fits', expMap='/scratch/kocevski/571755/expmap_691372801_691632001_4FGL_J0833.9+4223_daily_bin1744.fits', expCube='/scratch/kocevski/571755/ltcube_691372801_691632001_4FGL_J0833.9+4223_daily_bin1744.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/571755/Model_4FGL_J0833.9+4223_daily_bin1744.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  0.000e+00  1.000e+06 ( 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/571755/ft1_filtered_4FGL_J0833.9+4223_daily_bin1744.fits
Spacecraft file(s): /scratch/kocevski/571755/ft2_4FGL_J0833.9+4223_daily_bin1744.fits
Exposure map: /scratch/kocevski/571755/expmap_691372801_691632001_4FGL_J0833.9+4223_daily_bin1744.fits
Exposure cube: /scratch/kocevski/571755/ltcube_691372801_691632001_4FGL_J0833.9+4223_daily_bin1744.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/571755/Model_4FGL_J0833.9+4223_daily_bin1744.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) = 6308.03074981

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .17339E-04   1.0000          .0000       .10000E+07
     2 'Prefactor '    14.842       1.0000          .0000       .10000E+07
     3 'norm      '    .90589       1.0000          .0000       .10000E+07
     4 'Prefactor '    14.930       1.0000          .0000       .10000E+07
     5 'Prefactor '    .95026E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    21.413       1.0000          .0000       .10000E+07
     7 'norm      '    3.3241       1.0000          .0000       .10000E+07
     8 'norm      '    4.5804       1.0000          .0000       .10000E+07
     9 'norm      '    .77433       1.0000          .0000       .10000E+07
    10 'Prefactor '    75.463       1.0000          .0000       .10000E+07
    11 'Prefactor '    .89545E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    3.6715       1.0000          .0000       .10000E+07
    13 'Prefactor '    .10489E-01   1.0000          .0000       .10000E+07
    14 'Prefactor '    23.522       1.0000          .0000       .10000E+07
    15 'Prefactor '    2.1016       1.0000          .0000       .10000E+07
    16 'norm      '    1.0372       1.0000          .0000       .10000E+07
    17 'norm      '    9.2945       1.0000          .0000       .10000E+07
    18 'Prefactor '    .33228E-02   1.0000          .0000       .10000E+07
    19 'Prefactor '    .59453E-02   1.0000          .0000       .10000E+07
    20 'Prefactor '    2.4580       1.0000          .0000       .10000E+07
    21 'Prefactor '    .11535       1.0000          .0000       .10000E+07
    22 'norm      '    .79603E-07   1.0000          .0000       .10000E+07
    23 'Prefactor '    2.7351       1.0000          .0000       .10000E+07
    24 'norm      '    8.2092       1.0000          .0000       .10000E+07
    25 'Prefactor '    .95596       1.0000          .0000       .10000E+07
    26 'Normalizat'    .87014       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.3192       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=   6308.014     FROM MIGRAD    STATUS=CONVERGED    158 CALLS     2427 TOTAL
                     EDM=   .60E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .19429E-08    5.1809        .96519E-07** at limit **
   2  Prefactor     14.830        1.0495        .31060E-07   -.32206E-02
   3  norm          .94084        1.2165        .84121E-06    .32698E-01
   4  Prefactor     14.926        1.7410        .20026E-06   -.44647E-01
   5  Prefactor     .60901E-06    15.415       -.70558E-06** at limit **
   6  Prefactor     21.456        6.3335       -.81857E-06    .55462E-01
   7  norm          3.3454        6.1056       -.17290E-05   -.16147E-01
   8  norm          4.5785        2.2888        .16956E-06    .30756E-02
   9  norm          .77435        .55629       -.16389E-07   -.40296E-02
  10  Prefactor     75.439        1.5463       -.79479E-07    .92788E-01
  11  Prefactor      .0000        5.8791        .58477E-06** at limit **
  12  Prefactor     3.6810        3.3845        .77728E-07   -.76604E-03
  13  Prefactor     .83267E-09    11.496        .43108E-06** at limit **
  14  Prefactor     23.513        1.2317       -.67877E-07    .24185E-01
  15  Prefactor     2.1015        6.5023        .91971E-06    .12740E-01
  16  norm          1.0206        4.7462       -.42615E-06   -.29152E-03
  17  norm          9.3032        6.5267       -.67991E-06   -.20295E-01
  18  Prefactor     .72164E-09    19.431        .93292E-06** at limit **
  19  Prefactor     .69295E-06    13.330       -.28486E-06** at limit **
  20  Prefactor     2.4532        3.5113        .65876E-07    .54930E-03
  21  Prefactor     .41189E-06    3.3819        .12645E-05** at limit **
  22  norm          .11102E-09    1.3149        .65276E-06** at limit **
  23  Prefactor     2.7402        2.4915       -.19150E-06   -.31653E-02
  24  norm          8.4932        8.1192       -.75985E-06    .13097E-01
  25  Prefactor     .95615        1.3660       -.28964E-07   -.83434E-03
  26  Normalizat    .86928        .25073        .14735E-04    .52228E-05
  27  Prefactor     1.3192        .21656       -.39895E-05    .26316E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.94289e-09
  Prefactor  = 14.8299
  norm       = 0.940838
  Prefactor  = 14.9262
  Prefactor  = 6.09013e-07
  Prefactor  = 21.4557
  norm       = 3.34539
  norm       = 4.57851
  norm       = 0.774347
  Prefactor  = 75.439
  Prefactor  = 0
  Prefactor  = 3.68101
  Prefactor  = 8.32667e-10
  Prefactor  = 23.5134
  Prefactor  = 2.10149
  norm       = 1.02063
  norm       = 9.30325
  Prefactor  = 7.21645e-10
  Prefactor  = 6.92946e-07
  Prefactor  = 2.45316
  Prefactor  = 4.11893e-07
  norm       = 1.11022e-10
  Prefactor  = 2.74022
  norm       = 8.49317
  Prefactor  = 0.956151
  Normalizat = 0.869282
  Prefactor  = 1.31922
 **********
 **   18 **HESSE 
 **********

 FCN=   6308.014     FROM HESSE     STATUS=OK           562 CALLS     2989 TOTAL
                     EDM=   .33E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .19429E-08    5.3700        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     14.830        28.933        .25972E-03   -1.5631    
   3  norm          .94084        3.0485        .45354E-03   -1.5689    
   4  Prefactor     14.926        14.105        .25895E-03   -1.5631    
   5  Prefactor     .60901E-06    28.892        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     21.456        8.7520        .21617E-03   -1.5615    
   7  norm          3.3454        7.4096        .55495E-03   -1.5671    
   8  norm          4.5785        2.3331        .47009E-03   -1.5665    
   9  norm          .77435        .56277        .54868E-03   -1.5690    
  10  Prefactor     75.439        41.896        .11512E-03   -1.5534    
  11  Prefactor      .0000        5.9432        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.6810        3.4059        .52690E-03   -1.5670    
  13  Prefactor     .83267E-09    11.537        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     23.513        14.143        .20624E-03   -1.5611    
  15  Prefactor     2.1015        7.1142        .71156E-03   -1.5679    
  16  norm          1.0206        4.9405        .12344E-02   -1.5688    
  17  norm          9.3032        7.0826        .32849E-03   -1.5647    
  18  Prefactor     .72164E-09    19.529        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .69295E-06    28.275        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2.4532        3.5833        .65209E-03   -1.5677    
  21  Prefactor     .41189E-06    13.546        .13534E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .11102E-09    .30445        .22419E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     2.7402        2.9122        .61540E-03   -1.5675    
  24  norm          8.4932        9.2964        .34967E-03   -1.5650    
  25  Prefactor     .95615        1.3768        .42199E-03   -1.5688    
  26  Normalizat    .86928        .21893        .73227E-01   -.97548    
  27  Prefactor     1.3192        .18727        .55219E-01   -.82737    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.34087e-07
Minuit parameter uncertainties:
  1  0.000202966
  2  28.9337
  3  3.04849
  4  14.1055
  5  0.00838947
  6  8.75199
  7  7.40961
  8  2.33308
  9  0.56277
  10  41.8965
  11  1.59127e-06
  12  3.40587
  13  0.00019686
  14  14.1432
  15  7.11418
  16  4.49106
  17  7.08264
  18  0.000241144
  19  0.00885288
  20  3.58328
  21  0.0047241
  22  1.05499e-05
  23  2.91224
  24  9.29639
  25  1.3768
  26  0.219157
  27  0.187363
Done.

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

Extracting fit parameters...

4FGL J0833.9+4223
   Spectrum: PowerLaw
335    Prefactor:  8.327e-10  1.969e-04  0.000e+00  1.000e+06 ( 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.319e+00  1.874e-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.693e-01  2.192e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/571755/likelihoodResults_691372801_691632001_4FGL_J0833.9+4223_daily_bin1744.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) = 6308.01485991
delta logL = -0.000980742686806

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6308.0138792
delta logL = -3.01961335936e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .39080E-06   1.0000          .0000       .10000E+07
     2 'Index     '    2.9507       1.0000          .0000       10.000    
     3 'Normalizat'    .86929       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3192       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.

 FCN=   6308.014     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      254 TOTAL
                     EDM=   .62E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .66613E-09    .20986        .42118E-03** at limit **
   2  Index         .51717        5.1611        .50000       -.21828E-08
   3  Normalizat    .86929        .23098E-02    .73227E-01    .35219E-03
   4  Prefactor     1.3192        .21025E-02    .55219E-01    .24360E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.66134e-10
  Index      = 0.517175
  Normalizat = 0.869286
  Prefactor  = 1.31921
 **********
 **   18 **HESSE 
 **********

 FCN=   6308.014     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      285 TOTAL
                     EDM=   .32E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .66613E-09    1.0955        .80464E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .51717        9.6360        .50000       -1.1120    
   3  Normalizat    .86929        .52706E-02    .32405E-03   -.97548    
   4  Prefactor     1.3192        .48043E-02    .24415E-03   -.82737    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.2426e-11
Minuit parameter uncertainties:
  1  5.40413e-05
  2  31065.8
  3  0.0052706
  4  0.00480425
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/571755': 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) = 6308.01387917
delta logL = -4.05634636991e-10

Extracting fit parameters...

4FGL J0833.9+4223
   Spectrum: PowerLaw
335    Prefactor:  6.661e-10  5.404e-05  0.000e+00  1.000e+06 ( 1.000e-13)
336        Index:  5.172e-01  3.107e+04  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.319e+00  4.804e-03  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.693e-01  5.271e-03  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/571755/cmap_HighResolution_691372801_691632001_4FGL_J0833.9+4223_daily_bin1744.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.47e-03', job_status='DONE', photon_flux_upper_limit='7.06e-08', time_completed='2022-12-02 00:43:45.629844', job_id='571755', GAL2='1.32', fit_tolerance='1e-08', EG2='0.87', EG='0.87', time_epoch_completed='1669970625.63', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.32', dlogl='-4.06e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='1744' AND source_name='4FGL J0833.9+4223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Dec  2 00:43:45 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0143>
Subject: Job 571755: <4FGL_J0833.9+4223_daily_bin1744> in cluster <slac> Done

Job <4FGL_J0833.9+4223_daily_bin1744> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Dec  2 00:30:12 2022
Job was executed on host(s) <bullet0143>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Dec  2 00:30:13 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Dec  2 00:30:13 2022
Terminated at Fri Dec  2 00:43:46 2022
Results reported at Fri Dec  2 00:43:46 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0833.9+4223_daily_bin1744 128.476 42.3989 691372801 691632001 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 :                                   732.32 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             341.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   812 sec.
    Turnaround time :                            814 sec.

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

