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 156 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_J0800.9+4401_daily_bin1748
RA = 120.246, Dec = 44.0181
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='880208', job_status='RUN', time_executed='2022-12-14 00:23:05.063640', time_epoch_executed='1671006185.06' WHERE source_name='4FGL J0800.9+4401' and cadence='daily' and bin_id='1748'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/880208

Creating custom pfile directory:
/scratch/kocevski/880208/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/880208/ft1_4FGL_J0800.9+4401_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/880208/ft2_4FGL_J0800.9+4401_daily_bin1748.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/880208/ft1_4FGL_J0800.9+4401_daily_bin1748.fits outfile=/scratch/kocevski/880208/ft1_filteredMKT_4FGL_J0800.9+4401_daily_bin1748.fits ra=120.246 dec=44.0181 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.62
user 3.33
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/880208/ft2_4FGL_J0800.9+4401_daily_bin1748.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/880208/ft2_4FGL_J0800.9+4401_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/880208/ft1_filteredMKT_4FGL_J0800.9+4401_daily_bin1748.fits evtable="EVENTS" outfile="/scratch/kocevski/880208/ft1_filtered_4FGL_J0800.9+4401_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.50
user 0.33
sys 0.15

Number of photons that the gtmktime cut: 678

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/880208/ft1_filtered_4FGL_J0800.9+4401_daily_bin1748.fits" evtable="EVENTS" scfile=/scratch/kocevski/880208/ft2_4FGL_J0800.9+4401_daily_bin1748.fits sctable="SC_DATA" outfile=/scratch/kocevski/880208/ltcube_692409601_692668801_4FGL_J0800.9+4401_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/880208/ft2_4FGL_J0800.9+4401_daily_bin1748.fits
.....................!
real 12.66
user 11.98
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/880208/ft1_filtered_4FGL_J0800.9+4401_daily_bin1748.fits evtable="EVENTS" scfile=/scratch/kocevski/880208/ft2_4FGL_J0800.9+4401_daily_bin1748.fits sctable="SC_DATA" expcube=/scratch/kocevski/880208/ltcube_692409601_692668801_4FGL_J0800.9+4401_daily_bin1748.fits outfile=/scratch/kocevski/880208/expmap_692409601_692668801_4FGL_J0800.9+4401_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/880208/ltcube_692409601_692668801_4FGL_J0800.9+4401_daily_bin1748.fits
.....................!
real 190.96
user 185.24
sys 5.37

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 206 point sources and 0 extended sources

Setting source of interest to:
4FGL J0800.9+4401 @ 120.246 44.0181

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/880208/ft1_filtered_4FGL_J0800.9+4401_daily_bin1748.fits scfile=/scratch/kocevski/880208/ft2_4FGL_J0800.9+4401_daily_bin1748.fits outfile=/scratch/kocevski/880208/cmap_692409601_692668801_4FGL_J0800.9+4401_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=120.246 yref=44.0181 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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/880208/ft1_filtered_4FGL_J0800.9+4401_daily_bin1748.fits scfile=/scratch/kocevski/880208/ft2_4FGL_J0800.9+4401_daily_bin1748.fits outfile=/scratch/kocevski/880208/cmap_HighResolution_692409601_692668801_4FGL_J0800.9+4401_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=120.246 yref=44.0181 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.57
user 0.39
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/880208/ft1_filtered_4FGL_J0800.9+4401_daily_bin1748.fits evtable="EVENTS" scfile=/scratch/kocevski/880208/ft2_4FGL_J0800.9+4401_daily_bin1748.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/880208/Model_4FGL_J0800.9+4401_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/880208/ft1_filtered_4FGL_J0800.9+4401_daily_bin1748.fits.....................!
real 71.00
user 69.64
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/880208/ft1_filtered_4FGL_J0800.9+4401_daily_bin1748.fits', '/scratch/kocevski/880208/ft2_4FGL_J0800.9+4401_daily_bin1748.fits', expMap='/scratch/kocevski/880208/expmap_692409601_692668801_4FGL_J0800.9+4401_daily_bin1748.fits', expCube='/scratch/kocevski/880208/ltcube_692409601_692668801_4FGL_J0800.9+4401_daily_bin1748.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/880208/Model_4FGL_J0800.9+4401_daily_bin1748.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0800.9+4401'

4FGL J0800.9+4401
   Spectrum: PowerLaw
278    Prefactor:  1.350e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
279        Index:  2.172e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
280        Scale:  1.600e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/880208/ft1_filtered_4FGL_J0800.9+4401_daily_bin1748.fits
Spacecraft file(s): /scratch/kocevski/880208/ft2_4FGL_J0800.9+4401_daily_bin1748.fits
Exposure map: /scratch/kocevski/880208/expmap_692409601_692668801_4FGL_J0800.9+4401_daily_bin1748.fits
Exposure cube: /scratch/kocevski/880208/ltcube_692409601_692668801_4FGL_J0800.9+4401_daily_bin1748.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/880208/Model_4FGL_J0800.9+4401_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) = 7545.64632847

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .37744       1.0000          .0000       .10000E+07
     2 'norm      '    .39468E-07   1.0000          .0000       .10000E+07
     3 'Prefactor '    8.0143       1.0000          .0000       .10000E+07
     4 'Prefactor '    .25129E-01   1.0000          .0000       .10000E+07
     5 'norm      '    .28930E-04   1.0000          .0000       .10000E+07
     6 'Prefactor '    .26756E-06   1.0000          .0000       .10000E+07
     7 'Prefactor '    .55146E-01   1.0000          .0000       .10000E+07
     8 'norm      '    .21816E-07   1.0000          .0000       .10000E+07
     9 'Prefactor '    .72915       1.0000          .0000       .10000E+07
    10 'Prefactor '    .43047E-03   1.0000          .0000       .10000E+07
    11 'norm      '    4.1617       1.0000          .0000       .10000E+07
    12 'norm      '    4.4225       1.0000          .0000       .10000E+07
    13 'Prefactor '    6.9637       1.0000          .0000       .10000E+07
    14 'Prefactor '    .10946E-02   1.0000          .0000       .10000E+07
    15 'Prefactor '    26.736       1.0000          .0000       .10000E+07
    16 'norm      '    .29421E-08   1.0000          .0000       .10000E+07
    17 'norm      '    7.0021       1.0000          .0000       .10000E+07
    18 'norm      '    .81875       1.0000          .0000       .10000E+07
    19 'Prefactor '    .22683E-02   1.0000          .0000       .10000E+07
    20 'Prefactor '    1.1787       1.0000          .0000       .10000E+07
    21 'Prefactor '    .22725E-04   1.0000          .0000       .10000E+07
    22 'Prefactor '    .29288E-06   1.0000          .0000       .10000E+07
    23 'Prefactor '    1.5118       1.0000          .0000       .10000E+07
    24 'norm      '    .17703E-06   1.0000          .0000       .10000E+07
    25 'norm      '    6.0783       1.0000          .0000       .10000E+07
    26 'Normalizat'    1.0532       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .84872       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6590E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7543.665     FROM MIGRAD    STATUS=CONVERGED    197 CALLS     1441 TOTAL
                     EDM=   .53E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .41896        6.2405       -.19203E-06   -.20085E-03
   2  norm          .73941E-07    2.9125        .79236E-08** at limit **
   3  Prefactor     7.9648        6.5221       -.13195E-06   -.16308E-02
   4  Prefactor      .0000        23.176        .12848E-06** at limit **
   5  norm          .26645E-08    8.6612        .17148E-05** at limit **
   6  Prefactor     .38858E-09    3.9870        .75789E-06** at limit **
   7  Prefactor     .12657E-07    36.215       -.30996E-05** at limit **
   8  norm           .0000        .71676        .32038E-06** at limit **
   9  Prefactor     .71553        .53118        .30983E-08    .25197E-02
  10  Prefactor     .11102E-09    10.721       -.44642E-06** at limit **
  11  norm          4.1425        1.7349        .16050E-06   -.21172E-01
  12  norm          4.4239        2.2957        .45023E-07   -.74344E-03
  13  Prefactor     7.0939        2.2131        .10946E-07   -.16962E-02
  14  Prefactor     .27756E-09    29.858        .74153E-06** at limit **
  15  Prefactor     26.685        6.9326       -.32930E-07   -.24549E-02
  16  norm          .55511E-10    1.9229       -.43494E-06** at limit **
  17  norm          7.0017        2.6537       -.13020E-07   -.82194E-03
  18  norm          .81868        .51715        .50605E-08   -.14841E-01
  19  Prefactor     .77716E-09    174.12        .14831E-04** at limit **
  20  Prefactor     1.1763        3.2405       -.51963E-06   -.77569E-02
  21  Prefactor     .86597E-08    6.0630       -.12697E-05** at limit **
  22  Prefactor     .80824E-07    2.7365       -.43837E-06** at limit **
  23  Prefactor     1.4637        4.9924       -.44486E-06    .12711E-03
  24  norm          .11102E-09    3.7455        .64245E-06** at limit **
  25  norm          6.0264        6.1502        .93564E-07   -.21371E-02
  26  Normalizat    1.0538        .20293       -.11337E-05   -.25993E-03
  27  Prefactor     .84851        .13836       -.89687E-06   -.33177E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.418961
  norm       = 7.39409e-08
  Prefactor  = 7.96481
  Prefactor  = 0
  norm       = 2.66454e-09
  Prefactor  = 3.88578e-10
  Prefactor  = 1.26565e-08
  norm       = 0
  Prefactor  = 0.715535
  Prefactor  = 1.11022e-10
  norm       = 4.14255
  norm       = 4.42392
  Prefactor  = 7.09388
  Prefactor  = 2.77556e-10
  Prefactor  = 26.6848
  norm       = 5.55112e-11
  norm       = 7.00168
  norm       = 0.818684
  Prefactor  = 7.77156e-10
  Prefactor  = 1.17629
  Prefactor  = 8.65974e-09
  Prefactor  = 8.08242e-08
  Prefactor  = 1.46367
  norm       = 1.11022e-10
  norm       = 6.0264
  Normalizat = 1.05377
  Prefactor  = 0.848508
 **********
 **   18 **HESSE 
 **********

 FCN=   7543.665     FROM HESSE     STATUS=OK           564 CALLS     2005 TOTAL
                     EDM=   .52E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .41896        6.0940        .92149E-03   -1.5695    
   2  norm          .73941E-07    5.2757        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.9648        6.6749        .35393E-03   -1.5652    
   4  Prefactor      .0000        10.503        .93973E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .26645E-08    8.5978        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .38858E-09    4.0244        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .12657E-07    10.194        .15341E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm           .0000        .37501        .19721E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .71553        12.949        .58373E-03   -1.5691    
  10  Prefactor     .11102E-09    10.716        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          4.1425        8.3911        .49382E-03   -1.5667    
  12  norm          4.4239        2.3213        .47863E-03   -1.5666    
  13  Prefactor     7.0939        8.2896        .37994E-03   -1.5655    
  14  Prefactor     .27756E-09    29.910        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     26.685        7.3305        .19344E-03   -1.5605    
  16  norm          .55511E-10    1.9236        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          7.0017        2.6564        .37888E-03   -1.5655    
  18  norm          .81868        .52455        .51548E-03   -1.5690    
  19  Prefactor     .77716E-09    13.053        .71956E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.1763        3.5682        .10533E-02   -1.5686    
  21  Prefactor     .86597E-08    6.3113        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .80824E-07    5.4413        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     1.4637        5.0341        .86945E-03   -1.5684    
  24  norm          .11102E-09    3.7410        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          6.0264        6.1742        .40700E-03   -1.5659    
  26  Normalizat    1.0538        .17743        .63517E-01   -.91250    
  27  Prefactor     .84851        .12042        .44348E-01   -.97964    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.2325e-06
Minuit parameter uncertainties:
  1  3.19571
  2  0.00124894
  3  6.67495
  4  2.3585e-06
  5  0.000301914
  6  8.10781e-05
  7  0.000717866
  8  1.54455e-06
  9  6.0878
  10  6.90653e-05
  11  8.3911
  12  2.32135
  13  8.28964
  14  0.000180445
  15  7.33052
  16  2.3076e-05
  17  2.65636
  18  0.524546
  19  0.000202161
  20  3.56824
  21  0.000468253
  22  0.00132649
  23  5.03408
  24  3.56908e-05
  25  6.17419
  26  0.177527
  27  0.120462
Done.

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

Extracting fit parameters...

4FGL J0800.9+4401
   Spectrum: PowerLaw
278    Prefactor:  7.094e+00  8.290e+00  0.000e+00  1.000e+06 ( 1.000e-13)
279        Index:  2.172e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
280        Scale:  1.600e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
656    Prefactor:  8.485e-01  1.205e-01  0.000e+00  1.000e+01 ( 1.000e+00)
657        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
658        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
655   Normalization:  1.054e+00  1.775e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.95
Ra Dec: 120.246 44.018
Photon Flux Upper Limit: 9.06e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.89e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/880208/likelihoodResults_692409601_692668801_4FGL_J0800.9+4401_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) = 7541.5645979
delta logL = 2.10019018509

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7540.5658493
delta logL = 3.09893878732

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .27676       1.0000          .0000       .10000E+07
     2 'Index     '    .48495E-05   1.0000          .0000       10.000    
     3 'Normalizat'    1.0487       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86184       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6590E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7540.566     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      244 TOTAL
                     EDM=   .47E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .27654        .30704        .10185E-02   -.11143E-01
   2  Index         .41356E-12    .36202        .50000    ** at limit **
   3  Normalizat    1.0485        .16894        .63613E-01    .19312E-04
   4  Prefactor     .86194        .11848        .44517E-01    .54017E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.276545
  Index      = 4.13558e-13
  Normalizat = 1.0485
  Prefactor  = 0.861938
 **********
 **   18 **HESSE 
 **********

 FCN=   7540.566     FROM HESSE     STATUS=OK            33 CALLS      277 TOTAL
                     EDM=   .66E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .27654        .28154        .38679E-04   -1.5697    
   2  Index         .41356E-12    .87998        .25363E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.0485        .19495        .28137E-03   -.91423    
   4  Prefactor     .86194        .13683        .21434E-03   -.97484    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.5917e-12
Minuit parameter uncertainties:
  1  0.281536
  2  1.22531e-06
  3  0.195079
  4  0.136888
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/880208': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7540.56584541
delta logL = 3.09894267775

Extracting fit parameters...

4FGL J0800.9+4401
   Spectrum: PowerLaw
278    Prefactor:  2.765e-01  2.815e-01  0.000e+00  1.000e+06 ( 1.000e-13)
279        Index:  4.136e-13  1.225e-06  0.000e+00  1.000e+01 (-1.000e+00)
280        Scale:  1.600e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
656    Prefactor:  8.619e-01  1.369e-01  0.000e+00  1.000e+01 ( 1.000e+00)
657        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
658        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
655   Normalization:  1.049e+00  1.951e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.16
Ra Dec: 120.246 44.018
Photon Index (Free Index): 0.00 +/- 0.00
Photon Flux (Free Index): 2.76e-09 +/- 2.81e-09
Energy Flux (Free Index): 1.38e-04 +/- 1.41e-04

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/880208/cmap_HighResolution_692409601_692668801_4FGL_J0800.9+4401_daily_bin1748.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.89e-03', comment='SUCCESS', energy_flux2='1.38e-04', dlogl='3.10e+00', photon_flux2='2.76e-09', job_status='DONE', time_completed='2022-12-14 00:34:47.982066', photon_index_error2='0.00', photon_index2='0.00', ts='0.95', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', photon_flux_upper_limit='9.06e-08', energy_flux_error2='1.41e-04', EG='1.05', time_epoch_completed='1671006887.98', return_code='0', job_id='880208', GAL2='0.86', EG2='1.05', return_code2='0', photon_flux_error2='2.81e-09', ts2='7.16', photon_index='2.17' WHERE bin_id='1748' AND source_name='4FGL J0800.9+4401' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec 14 00:34:48 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0046>
Subject: Job 880208: <4FGL_J0800.9+4401_daily_bin1748> in cluster <slac> Done

Job <4FGL_J0800.9+4401_daily_bin1748> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Dec 14 00:20:16 2022
Job was executed on host(s) <bullet0046>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec 14 00:20:17 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:20:17 2022
Terminated at Wed Dec 14 00:34:48 2022
Results reported at Wed Dec 14 00:34:48 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0800.9+4401_daily_bin1748 120.246 44.0181 692409601 692668801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0800.9+4401 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   697.56 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             273.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   883 sec.
    Turnaround time :                            872 sec.

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

