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


Performing analysis on: 4FGL_J0800.9+4401_daily_bin1746
RA = 120.246, Dec = 44.0181
tmin = 691891201, tmax = 692150401
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='718709', job_status='RUN', time_executed='2022-12-08 00:30:23.296088', time_epoch_executed='1670488223.3' WHERE source_name='4FGL J0800.9+4401' and cadence='daily' and bin_id='1746'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/718709

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/718709/ft1_4FGL_J0800.9+4401_daily_bin1746.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/718709/ft2_4FGL_J0800.9+4401_daily_bin1746.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/718709/ft1_4FGL_J0800.9+4401_daily_bin1746.fits outfile=/scratch/kocevski/718709/ft1_filteredMKT_4FGL_J0800.9+4401_daily_bin1746.fits ra=120.246 dec=44.0181 rad=12.0 tmin=691891201.0 tmax=692150401.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.72
user 4.45
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/718709/ft2_4FGL_J0800.9+4401_daily_bin1746.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/718709/ft1_filteredMKT_4FGL_J0800.9+4401_daily_bin1746.fits evtable="EVENTS" outfile="/scratch/kocevski/718709/ft1_filtered_4FGL_J0800.9+4401_daily_bin1746.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.52
user 0.34
sys 0.14

Number of photons that the gtmktime cut: 616

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/718709/ft1_filtered_4FGL_J0800.9+4401_daily_bin1746.fits" evtable="EVENTS" scfile=/scratch/kocevski/718709/ft2_4FGL_J0800.9+4401_daily_bin1746.fits sctable="SC_DATA" outfile=/scratch/kocevski/718709/ltcube_691891201_692150401_4FGL_J0800.9+4401_daily_bin1746.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/718709/ft2_4FGL_J0800.9+4401_daily_bin1746.fits
.....................!
real 12.05
user 11.63
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/718709/ft1_filtered_4FGL_J0800.9+4401_daily_bin1746.fits evtable="EVENTS" scfile=/scratch/kocevski/718709/ft2_4FGL_J0800.9+4401_daily_bin1746.fits sctable="SC_DATA" expcube=/scratch/kocevski/718709/ltcube_691891201_692150401_4FGL_J0800.9+4401_daily_bin1746.fits outfile=/scratch/kocevski/718709/expmap_691891201_692150401_4FGL_J0800.9+4401_daily_bin1746.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/718709/ltcube_691891201_692150401_4FGL_J0800.9+4401_daily_bin1746.fits
.....................!
real 191.03
user 185.60
sys 4.48

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 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/718709/ft1_filtered_4FGL_J0800.9+4401_daily_bin1746.fits scfile=/scratch/kocevski/718709/ft2_4FGL_J0800.9+4401_daily_bin1746.fits outfile=/scratch/kocevski/718709/cmap_691891201_692150401_4FGL_J0800.9+4401_daily_bin1746.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.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/718709/ft1_filtered_4FGL_J0800.9+4401_daily_bin1746.fits scfile=/scratch/kocevski/718709/ft2_4FGL_J0800.9+4401_daily_bin1746.fits outfile=/scratch/kocevski/718709/cmap_HighResolution_691891201_692150401_4FGL_J0800.9+4401_daily_bin1746.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.55
user 0.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/718709/ft1_filtered_4FGL_J0800.9+4401_daily_bin1746.fits evtable="EVENTS" scfile=/scratch/kocevski/718709/ft2_4FGL_J0800.9+4401_daily_bin1746.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/718709/Model_4FGL_J0800.9+4401_daily_bin1746.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/718709/ft1_filtered_4FGL_J0800.9+4401_daily_bin1746.fits.....................!
real 63.93
user 62.39
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/718709/ft1_filtered_4FGL_J0800.9+4401_daily_bin1746.fits', '/scratch/kocevski/718709/ft2_4FGL_J0800.9+4401_daily_bin1746.fits', expMap='/scratch/kocevski/718709/expmap_691891201_692150401_4FGL_J0800.9+4401_daily_bin1746.fits', expCube='/scratch/kocevski/718709/ltcube_691891201_692150401_4FGL_J0800.9+4401_daily_bin1746.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/718709/Model_4FGL_J0800.9+4401_daily_bin1746.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/718709/ft1_filtered_4FGL_J0800.9+4401_daily_bin1746.fits
Spacecraft file(s): /scratch/kocevski/718709/ft2_4FGL_J0800.9+4401_daily_bin1746.fits
Exposure map: /scratch/kocevski/718709/expmap_691891201_692150401_4FGL_J0800.9+4401_daily_bin1746.fits
Exposure cube: /scratch/kocevski/718709/ltcube_691891201_692150401_4FGL_J0800.9+4401_daily_bin1746.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/718709/Model_4FGL_J0800.9+4401_daily_bin1746.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) = 6683.2506817

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .13426E-03   1.0000          .0000       .10000E+07
     2 'norm      '    2.3321       1.0000          .0000       .10000E+07
     3 'Prefactor '    .94870E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    9.2899       1.0000          .0000       .10000E+07
     5 'norm      '    .38755E-04   1.0000          .0000       .10000E+07
     6 'Prefactor '    3.1549       1.0000          .0000       .10000E+07
     7 'Prefactor '    14.886       1.0000          .0000       .10000E+07
     8 'norm      '    .55511E-09   1.0000          .0000       .10000E+07
     9 'Prefactor '    .81890E-01   1.0000          .0000       .10000E+07
    10 'Prefactor '    18.090       1.0000          .0000       .10000E+07
    11 'norm      '    3.7412       1.0000          .0000       .10000E+07
    12 'norm      '    .10126E-02   1.0000          .0000       .10000E+07
    13 'Prefactor '    8.3375       1.0000          .0000       .10000E+07
    14 'Prefactor '    22.894       1.0000          .0000       .10000E+07
    15 'Prefactor '    29.257       1.0000          .0000       .10000E+07
    16 'norm      '    .44356E-03   1.0000          .0000       .10000E+07
    17 'norm      '    2.4151       1.0000          .0000       .10000E+07
    18 'norm      '    .44094E-01   1.0000          .0000       .10000E+07
    19 'Prefactor '    .12984E-02   1.0000          .0000       .10000E+07
    20 'Prefactor '    5.1090       1.0000          .0000       .10000E+07
    21 'Prefactor '    .42193E-03   1.0000          .0000       .10000E+07
    22 'Prefactor '    3.1646       1.0000          .0000       .10000E+07
    23 'Prefactor '    7.3706       1.0000          .0000       .10000E+07
    24 'norm      '    .10355E-04   1.0000          .0000       .10000E+07
    25 'norm      '    .22768E-03   1.0000          .0000       .10000E+07
    26 'Normalizat'    1.1683       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .85588       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=   6683.250     FROM MIGRAD    STATUS=CONVERGED    154 CALLS     2525 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .55511E-10    2.0673       -.16479E-06** at limit **
   2  norm          2.3326        3.7053       -.13542E-06   -.23747E-05
   3  Prefactor     .14505E-06    5.8169        .25092E-06** at limit **
   4  Prefactor     9.2826        1.5024        .11283E-06   -.48380E-02
   5  norm          .22204E-09    1.7995        .38952E-06** at limit **
   6  Prefactor     3.1633        6.4855        .90633E-06    .49101E-01
   7  Prefactor     15.000        1.9120       -.12799E-06    .27935E-01
   8  norm           .0000        .27719       -.18283E-06** at limit **
   9  Prefactor     .38969E-07    2.9143        .62994E-06** at limit **
  10  Prefactor     18.099        1.5925        .45084E-07   -.12246E-01
  11  norm          3.7427        2.3389       -.17676E-06    .84310E-02
  12  norm           .0000        4.6300       -.31065E-06** at limit **
  13  Prefactor     8.3243        2.9520       -.27209E-06    .19618E-01
  14  Prefactor     23.026        5.7771        .36587E-06   -.15139    
  15  Prefactor     29.262        7.5491        .11739E-06    .46923E-01
  16  norm           .0000        2.5139       -.83555E-07** at limit **
  17  norm          2.4144        1.7182       -.87794E-07   -.35267E-03
  18  norm          .43895E-01    .91058       -.78001E-08** at limit **
  19  Prefactor     .73053E-07    5.1600       -.12756E-06** at limit **
  20  Prefactor     5.1063        3.4507        .71687E-07   -.51037E-03
  21  Prefactor     .10547E-08    11.684        .30899E-06** at limit **
  22  Prefactor     3.1502        3.1547        .50709E-06   -.49746E-03
  23  Prefactor     7.3614        6.5190        .42590E-06    .49473E-01
  24  norm          .10758E-06    43.361        .10814E-06** at limit **
  25  norm          .34417E-08    6.6963       -.29459E-06** at limit **
  26  Normalizat    1.1683        .22040       -.23309E-05    .20211E-04
  27  Prefactor     .85591        .15146        .10760E-05   -.42403E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.55112e-11
  norm       = 2.33255
  Prefactor  = 1.45051e-07
  Prefactor  = 9.28256
  norm       = 2.22045e-10
  Prefactor  = 3.16334
  Prefactor  = 15
  norm       = 0
  Prefactor  = 3.89688e-08
  Prefactor  = 18.0993
  norm       = 3.74266
  norm       = 0
  Prefactor  = 8.32425
  Prefactor  = 23.0259
  Prefactor  = 29.2623
  norm       = 0
  norm       = 2.41441
  norm       = 0.0438947
  Prefactor  = 7.30527e-08
  Prefactor  = 5.10628
  Prefactor  = 1.05471e-09
  Prefactor  = 3.15021
  Prefactor  = 7.36136
  norm       = 1.07581e-07
  norm       = 3.44169e-09
  Normalizat = 1.16831
  Prefactor  = 0.855913
 **********
 **   18 **HESSE 
 **********

 FCN=   6683.250     FROM HESSE     STATUS=OK           554 CALLS     3079 TOTAL
                     EDM=   .44E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .55511E-10    2.0744        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.3326        3.7472        .67123E-03   -1.5677    
   3  Prefactor     .14505E-06    10.218        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     9.2826        10.170        .32857E-03   -1.5647    
   5  norm          .22204E-09    1.8043        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.1633        6.9173        .57040E-03   -1.5672    
   7  Prefactor     15.000        33.783        .25934E-03   -1.5631    
   8  norm           .0000        .27613        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .38969E-07    11.524        .83158E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     18.099        16.778        .23521E-03   -1.5623    
  11  norm          3.7427        15.021        .52177E-03   -1.5669    
  12  norm           .0000        4.5872        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     8.3243        12.067        .34695E-03   -1.5650    
  14  Prefactor     23.026        63.394        .20905E-03   -1.5612    
  15  Prefactor     29.262        8.0358        .18491E-03   -1.5600    
  16  norm           .0000        2.5319        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.4144        1.7239        .65842E-03   -1.5677    
  18  norm          .43895E-01    .36087        .15784E-02   -1.5712    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .73053E-07    10.314        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     5.1063        3.4664        .44458E-03   -1.5663    
  21  Prefactor     .10547E-08    12.346        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     3.1502        9.5737        .56948E-03   -1.5672    
  23  Prefactor     7.3614        6.6759        .36920E-03   -1.5654    
  24  norm          .10758E-06    42.326        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .34417E-08    6.7336        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.1683        .19509        .62087E-01   -.87588    
  27  Prefactor     .85591        .13181        .44440E-01   -.97699    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.38854e-06
Minuit parameter uncertainties:
  1  2.48421e-05
  2  3.74716
  3  0.00243463
  4  10.17
  5  3.79403e-05
  6  6.91728
  7  33.7832
  8  5.18266e-07
  9  0.00134054
  10  16.7783
  11  14.9957
  12  2.17869e-05
  13  12.0675
  14  63.3955
  15  8.03578
  16  5.45868e-06
  17  1.72389
  18  0.251716
  19  0.00173578
  20  3.46642
  21  0.00022796
  22  9.57372
  23  6.67594
  24  0.00426725
  25  0.000305357
  26  0.195207
  27  0.131861
Done.

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

Extracting fit parameters...

4FGL J0800.9+4401
   Spectrum: PowerLaw
278    Prefactor:  8.324e+00  1.207e+01  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.559e-01  1.319e-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.168e+00  1.952e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.97
Ra Dec: 120.246 44.018
Photon Flux Upper Limit: 1.12e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.53e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/718709/likelihoodResults_691891201_692150401_4FGL_J0800.9+4401_daily_bin1746.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): 0
logL (Free Index) = 6683.17621152
delta logL = 0.0737085263709

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6683.17352778
delta logL = 0.0763922632177

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.2351       1.0000          .0000       .10000E+07
     2 'Index     '    2.4617       1.0000          .0000       10.000    
     3 'Normalizat'    1.1589       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85941       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6683.174     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      299 TOTAL
                     EDM=   .67E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.2336        10.746        .16071E-04   -.36473E-02
   2  Index         2.4622        .84315        .64191E-02   -.11754E-03
   3  Normalizat    1.1589        .21663        .27549E-03   -.62480E-03
   4  Prefactor     .85941        .15085        .21973E-03   -.82905E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.23358
  Index      = 2.46221
  Normalizat = 1.15893
  Prefactor  = 0.859412
 **********
 **   18 **HESSE 
 **********

 FCN=   6683.174     FROM HESSE     STATUS=OK            25 CALLS      324 TOTAL
                     EDM=   .72E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.2336        9.7318        .64285E-06   -1.5658    
   2  Index         2.4622        .76400        .25676E-03   -.53235    
   3  Normalizat    1.1589        .21658        .55098E-04   -.87882    
   4  Prefactor     .85941        .15082        .43946E-04   -.97574    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.15713e-10
Minuit parameter uncertainties:
  1  9.73179
  2  0.768065
  3  0.21675
  4  0.150888
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/718709': 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) = 6683.17352716
delta logL = 0.0763928884808

Extracting fit parameters...

4FGL J0800.9+4401
   Spectrum: PowerLaw
278    Prefactor:  6.234e+00  9.732e+00  0.000e+00  1.000e+06 ( 1.000e-13)
279        Index:  2.462e+00  7.681e-01  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.594e-01  1.509e-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.159e+00  2.167e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.13
Ra Dec: 120.246 44.018
Photon Index (Free Index): 2.46 +/- 0.77
Photon Flux (Free Index): 3.94e-08 +/- 4.78e-08
Energy Flux (Free Index): 1.19e-05 +/- 1.41e-05

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/718709/cmap_HighResolution_691891201_692150401_4FGL_J0800.9+4401_daily_bin1746.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.53e-03', comment='SUCCESS', energy_flux2='1.19e-05', dlogl='7.64e-02', photon_flux2='3.94e-08', job_status='DONE', time_completed='2022-12-08 00:43:58.926366', photon_index_error2='0.77', photon_index2='2.46', ts='0.97', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', photon_flux_upper_limit='1.12e-07', energy_flux_error2='1.41e-05', EG='1.17', time_epoch_completed='1670489038.93', return_code='0', job_id='718709', GAL2='0.86', EG2='1.16', return_code2='0', photon_flux_error2='4.78e-08', ts2='1.13', photon_index='2.17' WHERE bin_id='1746' AND source_name='4FGL J0800.9+4401' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Dec  8 00:43:58 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0278>
Subject: Job 718709: <4FGL_J0800.9+4401_daily_bin1746> in cluster <slac> Done

Job <4FGL_J0800.9+4401_daily_bin1746> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Thu Dec  8 00:30:11 2022
Job was executed on host(s) <bullet0278>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Dec  8 00:30:13 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Dec  8 00:30:13 2022
Terminated at Thu Dec  8 00:43:59 2022
Results reported at Thu Dec  8 00:43:59 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0800.9+4401_daily_bin1746 120.246 44.0181 691891201 692150401 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 :                                   816.11 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             348.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   826 sec.
    Turnaround time :                            828 sec.

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

