aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 205 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 = 7493
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0833.9+4223_daily_bin1748
RA = 128.476, Dec = 42.3989
tmin = 692409601, tmax = 692668801
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='881668', job_status='RUN', time_executed='2022-12-14 00:28:53.092519', time_epoch_executed='1671006533.09' WHERE source_name='4FGL J0833.9+4223' and cadence='daily' and bin_id='1748'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/881668

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/881668/ft1_4FGL_J0833.9+4223_daily_bin1748.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/881668/ft2_4FGL_J0833.9+4223_daily_bin1748.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/881668/ft1_4FGL_J0833.9+4223_daily_bin1748.fits outfile=/scratch/kocevski/881668/ft1_filteredMKT_4FGL_J0833.9+4223_daily_bin1748.fits ra=128.476 dec=42.3989 rad=12.0 tmin=692409601.0 tmax=692668801.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.54
user 3.30
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/881668/ft2_4FGL_J0833.9+4223_daily_bin1748.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/881668/ft1_filteredMKT_4FGL_J0833.9+4223_daily_bin1748.fits evtable="EVENTS" outfile="/scratch/kocevski/881668/ft1_filtered_4FGL_J0833.9+4223_daily_bin1748.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.17

Number of photons that the gtmktime cut: 626

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/881668/ft1_filtered_4FGL_J0833.9+4223_daily_bin1748.fits" evtable="EVENTS" scfile=/scratch/kocevski/881668/ft2_4FGL_J0833.9+4223_daily_bin1748.fits sctable="SC_DATA" outfile=/scratch/kocevski/881668/ltcube_692409601_692668801_4FGL_J0833.9+4223_daily_bin1748.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/881668/ft2_4FGL_J0833.9+4223_daily_bin1748.fits
.....................!
real 11.90
user 11.57
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/881668/ft1_filtered_4FGL_J0833.9+4223_daily_bin1748.fits evtable="EVENTS" scfile=/scratch/kocevski/881668/ft2_4FGL_J0833.9+4223_daily_bin1748.fits sctable="SC_DATA" expcube=/scratch/kocevski/881668/ltcube_692409601_692668801_4FGL_J0833.9+4223_daily_bin1748.fits outfile=/scratch/kocevski/881668/expmap_692409601_692668801_4FGL_J0833.9+4223_daily_bin1748.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/881668/ltcube_692409601_692668801_4FGL_J0833.9+4223_daily_bin1748.fits
.....................!
real 191.55
user 186.72
sys 4.50

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/881668/ft1_filtered_4FGL_J0833.9+4223_daily_bin1748.fits scfile=/scratch/kocevski/881668/ft2_4FGL_J0833.9+4223_daily_bin1748.fits outfile=/scratch/kocevski/881668/cmap_692409601_692668801_4FGL_J0833.9+4223_daily_bin1748.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.58
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/881668/ft1_filtered_4FGL_J0833.9+4223_daily_bin1748.fits scfile=/scratch/kocevski/881668/ft2_4FGL_J0833.9+4223_daily_bin1748.fits outfile=/scratch/kocevski/881668/cmap_HighResolution_692409601_692668801_4FGL_J0833.9+4223_daily_bin1748.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.55
user 0.36
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.0437       1.0000          .0000       .10000E+07
     2 'Prefactor '    .95904E-03   1.0000          .0000       .10000E+07
     3 'norm      '    4.5135       1.0000          .0000       .10000E+07
     4 'Prefactor '    7.9336       1.0000          .0000       .10000E+07
     5 'Prefactor '    .16094E-04   1.0000          .0000       .10000E+07
     6 'Prefactor '    27.478       1.0000          .0000       .10000E+07
     7 'norm      '    .97102E-04   1.0000          .0000       .10000E+07
     8 'norm      '    7.4192       1.0000          .0000       .10000E+07
     9 'norm      '    .84338       1.0000          .0000       .10000E+07
    10 'Prefactor '    .46118E-05   1.0000          .0000       .10000E+07
    11 'Prefactor '    .25223       1.0000          .0000       .10000E+07
    12 'Prefactor '    1.8525       1.0000          .0000       .10000E+07
    13 'Prefactor '    .39450E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    .27472E-03   1.0000          .0000       .10000E+07
    15 'Prefactor '    1.3218       1.0000          .0000       .10000E+07
    16 'norm      '    .33596E-03   1.0000          .0000       .10000E+07
    17 'norm      '    5.8432       1.0000          .0000       .10000E+07
    18 'Prefactor '    27.671       1.0000          .0000       .10000E+07
    19 'Prefactor '    14.305       1.0000          .0000       .10000E+07
    20 'Prefactor '    4.1162       1.0000          .0000       .10000E+07
    21 'Prefactor '    .15837E-03   1.0000          .0000       .10000E+07
    22 'norm      '    .38075       1.0000          .0000       .10000E+07
    23 'Prefactor '    .15344E-03   1.0000          .0000       .10000E+07
    24 'norm      '    .25710E-03   1.0000          .0000       .10000E+07
    25 'Prefactor '    2.1539       1.0000          .0000       .10000E+07
    26 'Normalizat'    .95138       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .85775       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=   7048.107     FROM MIGRAD    STATUS=CONVERGED    196 CALLS     2452 TOTAL
                     EDM=   .38E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.0385        9.6527        .20348E-06   -.21117E-03
   2  Prefactor     .57176E-08    10.735       -.11973E-06** at limit **
   3  norm          4.5138        2.3501       -.37952E-07   -.15372E-02
   4  Prefactor     7.9334        8.3867       -.13050E-06   -.12630E-02
   5  Prefactor     .38858E-09    33.516       -.43442E-06** at limit **
   6  Prefactor     27.505        7.3703        .95196E-07    .22689E-02
   7  norm          .22204E-09    3.2411       -.18126E-06** at limit **
   8  norm          7.4177        2.7461        .16576E-07    .15743E-02
   9  norm          .84489        .52632        .75513E-08   -.55641E-03
  10  Prefactor     .11102E-09    9.2120       -.33044E-06** at limit **
  11  Prefactor     .15754E-06    948.89        .50628E-05** at limit **
  12  Prefactor     1.8801        3.4171        .74670E-06    .28816E-02
  13  Prefactor     .34417E-07    4.5737        .10741E-06** at limit **
  14  Prefactor     .47740E-07    2.5597        .18806E-06** at limit **
  15  Prefactor     1.3531        4.7218        .22735E-06    .73217E-03
  16  norm          .27756E-09    4.4676       -.27229E-06** at limit **
  17  norm          5.8529        6.1211        .14006E-06   -.54652E-03
  18  Prefactor     27.463        20.223       -.96948E-06    .10007E-01
  19  Prefactor     14.272        2.0005        .11025E-06    .16307E-02
  20  Prefactor     4.0977        4.2645       -.15936E-07   -.20866E-03
  21  Prefactor     .49960E-08    5.8099       -.47729E-06** at limit **
  22  norm          .38070        .42723       -.41982E-07   -.20490E-02
  23  Prefactor     .70277E-07    1.6969        .20274E-06** at limit **
  24  norm          .16653E-09    4.5954        .17212E-06** at limit **
  25  Prefactor     2.1600        2.8740        .10425E-06    .86354E-03
  26  Normalizat    .95167        .20073        .56231E-06    .30952E-04
  27  Prefactor     .85770        .16438       -.11637E-05    .14279E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.03854
  Prefactor  = 5.71765e-09
  norm       = 4.51378
  Prefactor  = 7.93344
  Prefactor  = 3.88578e-10
  Prefactor  = 27.5053
  norm       = 2.22045e-10
  norm       = 7.4177
  norm       = 0.844893
  Prefactor  = 1.11022e-10
  Prefactor  = 1.57541e-07
  Prefactor  = 1.88008
  Prefactor  = 3.44169e-08
  Prefactor  = 4.77396e-08
  Prefactor  = 1.35311
  norm       = 2.77556e-10
  norm       = 5.85286
  Prefactor  = 27.463
  Prefactor  = 14.2716
  Prefactor  = 4.09771
  Prefactor  = 4.996e-09
  norm       = 0.380704
  Prefactor  = 7.02771e-08
  norm       = 1.66533e-10
  Prefactor  = 2.15998
  Normalizat = 0.951673
  Prefactor  = 0.857696
 **********
 **   18 **HESSE 
 **********

 FCN=   7048.107     FROM HESSE     STATUS=OK           550 CALLS     3002 TOTAL
                     EDM=   .39E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.0385        9.7029        .12205E-02   -1.5688    
   2  Prefactor     .57176E-08    11.288        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          4.5138        2.3559        .47365E-03   -1.5665    
   4  Prefactor     7.9334        8.4087        .35574E-03   -1.5652    
   5  Prefactor     .38858E-09    33.572        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     27.505        7.4265        .19080E-03   -1.5603    
   7  norm          .22204E-09    3.2663        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          7.4177        2.7504        .36797E-03   -1.5653    
   9  norm          .84489        .53259        .49756E-03   -1.5690    
  10  Prefactor     .11102E-09    9.4539        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .15754E-06    7.6807        .10911E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.8801        3.6647        .76562E-03   -1.5681    
  13  Prefactor     .34417E-07    6.7031        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .47740E-07    6.6173        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.3531        4.7852        .95649E-03   -1.5685    
  16  norm          .27756E-09    4.4732        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          5.8529        6.1437        .41523E-03   -1.5660    
  18  Prefactor     27.463        20.982        .19014E-03   -1.5603    
  19  Prefactor     14.272        20.542        .26456E-03   -1.5632    
  20  Prefactor     4.0977        4.3449        .49663E-03   -1.5667    
  21  Prefactor     .49960E-08    6.0650        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .38070        .55457        .91752E-03   -1.5696    
  23  Prefactor     .70277E-07    2.4436        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .16653E-09    4.6028        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     2.1600        2.9379        .70172E-03   -1.5679    
  26  Normalizat    .95167        .17714        .45555E-01   -.94667    
  27  Prefactor     .85770        .14388        .44464E-01   -.97635    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.8518e-06
Minuit parameter uncertainties:
  1  6.34883
  2  0.000508683
  3  2.35594
  4  8.40872
  5  0.000228701
  6  7.42653
  7  5.2919e-05
  8  2.75041
  9  0.53259
  10  6.03857e-05
  11  0.00220022
  12  3.66475
  13  0.000960418
  14  0.0011243
  15  4.78521
  16  6.92112e-05
  17  6.14368
  18  20.9822
  19  20.5419
  20  4.34487
  21  0.000347984
  22  0.554573
  23  0.000828881
  24  5.13586e-05
  25  2.93795
  26  0.177245
  27  0.143941
Done.

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

Extracting fit parameters...

4FGL J0833.9+4223
   Spectrum: PowerLaw
335    Prefactor:  3.442e-08  9.604e-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:  8.577e-01  1.439e-01  0.000e+00  1.000e+01 ( 1.000e+00)
664        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
665        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
662   Normalization:  9.517e-01  1.772e-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: 4.67e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.62e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/881668/likelihoodResults_692409601_692668801_4FGL_J0833.9+4223_daily_bin1748.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) = 7048.10682484
delta logL = -0.000209020146031

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7048.10661616
delta logL = -3.44702129951e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .41196E-05   1.0000          .0000       .10000E+07
     2 'Index     '    1.7952       1.0000          .0000       10.000    
     3 'Normalizat'    .95175       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85763       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   7048.107     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      289 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        1.2648        .42118E-03** at limit **
   2  Index         3.9468        1.3094        .22652E-03     .0000    
   3  Normalizat    .95167        1.2844        .31292E-04    .43769E-03
   4  Prefactor     .85770        1.2044       -.28676E-04    .52142E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 3.94678
  Normalizat = 0.951674
  Prefactor  = 0.857697
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   7048.107     FROM HESSE     STATUS=FAILED         9 CALLS      298 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        1.2648        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.6947        2.2906        .22652E-03   -.21223    
   3  Normalizat    .95167        1.2844        .31292E-04   -.94667    
   4  Prefactor     .85770        1.2044       -.28676E-04   -.97635    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.4043e-10
Minuit parameter uncertainties:
  1  8.25039e-06
  2  1.32556
  3  1.32988
  4  1.24506
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/881668': 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): 101
logL (Free Index) = 7048.10661582
delta logL = 2.45017872658e-09

Extracting fit parameters...

4FGL J0833.9+4223
   Spectrum: PowerLaw
335    Prefactor:  0.000e+00  8.250e-06  0.000e+00  1.000e+06 ( 1.000e-13)
336        Index:  3.947e+00  1.326e+00  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:  8.577e-01  1.245e+00  0.000e+00  1.000e+01 ( 1.000e+00)
664        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
665        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
662   Normalization:  9.517e-01  1.330e+00  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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/881668/cmap_HighResolution_692409601_692668801_4FGL_J0833.9+4223_daily_bin1748.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.62e-03', job_status='DONE', photon_flux_upper_limit='4.67e-08', time_completed='2022-12-14 00:41:48.935295', job_id='881668', GAL2='0.86', fit_tolerance='1e-08', EG2='0.95', EG='0.95', time_epoch_completed='1671007308.94', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='2.45e-09', ts2='0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='1748' AND source_name='4FGL J0833.9+4223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec 14 00:41:48 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0224>
Subject: Job 881668: <4FGL_J0833.9+4223_daily_bin1748> in cluster <slac> Done

Job <4FGL_J0833.9+4223_daily_bin1748> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Dec 14 00:25:19 2022
Job was executed on host(s) <bullet0224>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec 14 00:25:20 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec 14 00:25:20 2022
Terminated at Wed Dec 14 00:41:49 2022
Results reported at Wed Dec 14 00:41:49 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0833.9+4223_daily_bin1748 128.476 42.3989 692409601 692668801 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 :                                   778.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             286.91 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   989 sec.
    Turnaround time :                            990 sec.

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

