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


Performing analysis on: 4FGL_J0800.9+4401_weekly_bin754
RA = 120.246, Dec = 44.0181
tmin = 695001601, tmax = 695606401
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='948409', job_status='RUN', time_executed='2023-01-17 00:46:31.060327', time_epoch_executed='1673945191.06' WHERE source_name='4FGL J0800.9+4401' and cadence='weekly' and bin_id='754'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/948409

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/948409/ft1_4FGL_J0800.9+4401_weekly_bin754.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/948409/ft2_4FGL_J0800.9+4401_weekly_bin754.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/948409/ft1_4FGL_J0800.9+4401_weekly_bin754.fits outfile=/scratch/kocevski/948409/ft1_filteredMKT_4FGL_J0800.9+4401_weekly_bin754.fits ra=120.246 dec=44.0181 rad=12.0 tmin=695001601.0 tmax=695606401.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 5.64
user 5.33
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/948409/ft2_4FGL_J0800.9+4401_weekly_bin754.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/948409/ft1_filteredMKT_4FGL_J0800.9+4401_weekly_bin754.fits evtable="EVENTS" outfile="/scratch/kocevski/948409/ft1_filtered_4FGL_J0800.9+4401_weekly_bin754.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.56
user 0.37
sys 0.18

Number of photons that the gtmktime cut: 57

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/948409/ft1_filtered_4FGL_J0800.9+4401_weekly_bin754.fits" evtable="EVENTS" scfile=/scratch/kocevski/948409/ft2_4FGL_J0800.9+4401_weekly_bin754.fits sctable="SC_DATA" outfile=/scratch/kocevski/948409/ltcube_695001601_695606401_4FGL_J0800.9+4401_weekly_bin754.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/948409/ft2_4FGL_J0800.9+4401_weekly_bin754.fits
.....................!
real 35.07
user 34.22
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/948409/ft1_filtered_4FGL_J0800.9+4401_weekly_bin754.fits evtable="EVENTS" scfile=/scratch/kocevski/948409/ft2_4FGL_J0800.9+4401_weekly_bin754.fits sctable="SC_DATA" expcube=/scratch/kocevski/948409/ltcube_695001601_695606401_4FGL_J0800.9+4401_weekly_bin754.fits outfile=/scratch/kocevski/948409/expmap_695001601_695606401_4FGL_J0800.9+4401_weekly_bin754.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/948409/ltcube_695001601_695606401_4FGL_J0800.9+4401_weekly_bin754.fits
.....................!
real 193.64
user 186.71
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/948409/ft1_filtered_4FGL_J0800.9+4401_weekly_bin754.fits scfile=/scratch/kocevski/948409/ft2_4FGL_J0800.9+4401_weekly_bin754.fits outfile=/scratch/kocevski/948409/cmap_695001601_695606401_4FGL_J0800.9+4401_weekly_bin754.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.59
user 0.41
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/948409/ft1_filtered_4FGL_J0800.9+4401_weekly_bin754.fits scfile=/scratch/kocevski/948409/ft2_4FGL_J0800.9+4401_weekly_bin754.fits outfile=/scratch/kocevski/948409/cmap_HighResolution_695001601_695606401_4FGL_J0800.9+4401_weekly_bin754.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.59
user 0.42
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/948409/ft1_filtered_4FGL_J0800.9+4401_weekly_bin754.fits', '/scratch/kocevski/948409/ft2_4FGL_J0800.9+4401_weekly_bin754.fits', expMap='/scratch/kocevski/948409/expmap_695001601_695606401_4FGL_J0800.9+4401_weekly_bin754.fits', expCube='/scratch/kocevski/948409/ltcube_695001601_695606401_4FGL_J0800.9+4401_weekly_bin754.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/948409/Model_4FGL_J0800.9+4401_weekly_bin754.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/948409/ft1_filtered_4FGL_J0800.9+4401_weekly_bin754.fits
Spacecraft file(s): /scratch/kocevski/948409/ft2_4FGL_J0800.9+4401_weekly_bin754.fits
Exposure map: /scratch/kocevski/948409/expmap_695001601_695606401_4FGL_J0800.9+4401_weekly_bin754.fits
Exposure cube: /scratch/kocevski/948409/ltcube_695001601_695606401_4FGL_J0800.9+4401_weekly_bin754.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/948409/Model_4FGL_J0800.9+4401_weekly_bin754.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 592.173049605

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E+07   1.0000          .0000       .10000E+07
     2 'norm      '    .10000E+07   1.0000          .0000       .10000E+07
     3 'Prefactor '    .10000E+07   1.0000          .0000       .10000E+07
     4 'Prefactor '    .10000E+07   1.0000          .0000       .10000E+07
     5 'norm      '    .10000E+07   1.0000          .0000       .10000E+07
     6 'Prefactor '    .10000E+07   1.0000          .0000       .10000E+07
     7 'Prefactor '    .59527E-04   1.0000          .0000       .10000E+07
     8 'norm      '    1.7613       1.0000          .0000       .10000E+07
     9 'Prefactor '    .67146E-06   1.0000          .0000       .10000E+07
    10 'Prefactor '    .90772E-06   1.0000          .0000       .10000E+07
    11 'norm      '    28.723       1.0000          .0000       .10000E+07
    12 'norm      '    25.268       1.0000          .0000       .10000E+07
    13 'Prefactor '    .60511E-05   1.0000          .0000       .10000E+07
    14 'Prefactor '    .95951E-06   1.0000          .0000       .10000E+07
    15 'Prefactor '    .42777E-05   1.0000          .0000       .10000E+07
    16 'norm      '    .19595E-07   1.0000          .0000       .10000E+07
    17 'norm      '    .16653E-08   1.0000          .0000       .10000E+07
    18 'norm      '    1.5256       1.0000          .0000       .10000E+07
    19 'Prefactor '    .31229E-05   1.0000          .0000       .10000E+07
    20 'Prefactor '    27.097       1.0000          .0000       .10000E+07
    21 'Prefactor '    .89967E-06   1.0000          .0000       .10000E+07
    22 'Prefactor '    .45131E-07   1.0000          .0000       .10000E+07
    23 'Prefactor '    .12546E-07   1.0000          .0000       .10000E+07
    24 'norm      '    .10469E-06   1.0000          .0000       .10000E+07
    25 'norm      '    9.0311       1.0000          .0000       .10000E+07
    26 'Normalizat'    .25867       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .29467E-01   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=   590.7970     FROM MIGRAD    STATUS=CONVERGED    244 CALLS     4080 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E+07    .74265        .20800E-05** at limit **
   2  norm          .10000E+07    1.4381        .26354E-05   -.68649E-02
   3  Prefactor     .10000E+07    1.6635        .30883E-05   -.80401E-02
   4  Prefactor     .10000E+07    2.2094        .41782E-05   -.10863E-01
   5  norm          .10000E+07    2.7152        .56213E-05** at limit **
   6  Prefactor     .10000E+07    .46245        .14501E-06** at limit **
   7  Prefactor     .62264E-05    319.95       -.40204E-04** at limit **
   8  norm          1.7612        1.8742       -.40891E-07   -.15035E-02
   9  Prefactor     .36537E-06    45.581        .14148E-04** at limit **
  10  Prefactor     .33917E-04    91.227        .12286E-04** at limit **
  11  norm          28.724        1.0014        .17392E-07   -.23150E-03
  12  norm          25.260        21.962       -.85791E-06   -.23624E-03
  13  Prefactor     .20660E-04    36.489       -.60038E-05** at limit **
  14  Prefactor     .12498E-04    111.83        .17059E-04** at limit **
  15  Prefactor     .10895E-04    47.788        .69072E-05** at limit **
  16  norm           .0000        2.8142       -.43447E-06** at limit **
  17  norm           .0000        1.3785       -.11041E-05** at limit **
  18  norm          1.5243        2.2928       -.32897E-07   -.13714E-02
  19  Prefactor     .64599E-05    82.635       -.29221E-04** at limit **
  20  Prefactor     27.088        20.381        .29107E-05    .13945E-02
  21  Prefactor     .14649E-05    46.747       -.13809E-04** at limit **
  22  Prefactor     .16653E-09    12.106       -.25507E-06** at limit **
  23  Prefactor      .0000        3.7002        .11445E-05** at limit **
  24  norm           .0000        4.3976        .20556E-05** at limit **
  25  norm          9.0354        8.1552       -.14757E-06   -.44868E-02
  26  Normalizat    .25847        .32190        .17978E-03   -.13707E-03
  27  Prefactor     .29797E-01    .65243        .47693E-03    .10297E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1e+06
  norm       = 999999
  Prefactor  = 999999
  Prefactor  = 999999
  norm       = 1e+06
  Prefactor  = 1e+06
  Prefactor  = 6.22635e-06
  norm       = 1.76118
  Prefactor  = 3.65374e-07
  Prefactor  = 3.39169e-05
  norm       = 28.7239
  norm       = 25.2597
  Prefactor  = 2.06601e-05
  Prefactor  = 1.24978e-05
  Prefactor  = 1.08955e-05
  norm       = 0
  norm       = 0
  norm       = 1.52428
  Prefactor  = 6.45989e-06
  Prefactor  = 27.0882
  Prefactor  = 1.46488e-06
  Prefactor  = 1.66533e-10
  Prefactor  = 0
  norm       = 0
  norm       = 9.03537
  Normalizat = 0.258469
  Prefactor  = 0.0297967
 **********
 **   18 **HESSE 
 **********

 FCN=   590.7970     FROM HESSE     STATUS=OK           528 CALLS     4608 TOTAL
                     EDM=   .42E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E+07    .13105E+06    .11371E-02    1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E+07    53603.        .42118E-03    1.5689    
   3  Prefactor     .10000E+07    47333.        .42118E-03    1.5689    
   4  Prefactor     .10000E+07    36891.        .42118E-03    1.5689    
   5  norm          .10000E+07    76100.        .12222E-02    1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E+07    .21497E+06    .13472E-02    1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .62264E-05    334.99        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.7612        1.8547        .75512E-03   -1.5681    
   9  Prefactor     .36537E-06    46.265        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .33917E-04    212.64        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          28.724        .22984E+06    .18662E-03   -1.5601    
  12  norm          25.260        21.570        .19898E-03   -1.5607    
  13  Prefactor     .20660E-04    74.787        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .12498E-04    190.83        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10895E-04    65.318        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm           .0000        2.8163        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm           .0000        1.3798        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.5243        2.2758        .86424E-03   -1.5683    
  19  Prefactor     .64599E-05    95.293        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     27.088        20.308        .19214E-03   -1.5604    
  21  Prefactor     .14649E-05    48.746        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .16653E-09    12.118        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor      .0000        3.7064        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm           .0000        4.4036        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          9.0354        8.0829        .33327E-03   -1.5648    
  26  Normalizat    .25847        .18784        .58942E-01   -1.2541    
  27  Prefactor     .29797E-01    .14598        .14162       -1.6800    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.24273e-05
Minuit parameter uncertainties:
  1  343.338
  2  450.798
  3  422.254
  4  370.203
  5  220.034
  6  330.426
  7  0.0913462
  8  1.85469
  9  0.00822267
  10  0.169853
  11  5359.38
  12  21.5696
  13  0.0786166
  14  0.0976758
  15  0.0533547
  16  9.27416e-06
  17  7.6887e-06
  18  2.27584
  19  0.0496227
  20  20.3076
  21  0.0169006
  22  8.45677e-05
  23  1.87236e-05
  24  6.76121e-06
  25  8.08293
  26  0.188297
  27  0.132428
Done.

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

Extracting fit parameters...

4FGL J0800.9+4401
   Spectrum: PowerLaw
278    Prefactor:  2.066e-05  7.862e-02  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:  2.980e-02  1.324e-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:  2.585e-01  1.883e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 120.246 44.018
Photon Flux Upper Limit: 1.12e-06 ph cm-2 s-1
Energy Flux Upper Limit: 8.51e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/948409/likelihoodResults_695001601_695606401_4FGL_J0800.9+4401_weekly_bin754.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) = 590.803365352
delta logL = -0.00638076631117

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 590.796985755
delta logL = -1.16898274882e-06

Fit tolerance = 1e-08

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

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

 FCN=   590.7970     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      249 TOTAL
                     EDM=   .12E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        17.853        .42118E-03** at limit **
   2  Index         .37250        .47053       -.31199E-03     .0000    
   3  Normalizat    .25846        .54867        .75733E-05   -.93338E-05
   4  Prefactor     .29804E-01    .26120       -.16568E-04   -.14638E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 0.372499
  Normalizat = 0.258464
  Prefactor  = 0.0298044
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   590.7970     FROM HESSE     STATUS=FAILED         9 CALLS      258 TOTAL
                     EDM=   .12E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        17.853        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .36895E-01    .48072       -.31199E-03   -1.1824    
   3  Normalizat    .25846        .54867        .75733E-05   -1.2541    
   4  Prefactor     .29804E-01    .26120       -.16568E-04   -1.4616    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.18804e-12
Minuit parameter uncertainties:
  1  1.67155e-06
  2  0.475512
  3  0.560727
  4  0.177512
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/948409': 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) = 590.796984447
delta logL = 1.38560835694e-07

Extracting fit parameters...

4FGL J0800.9+4401
   Spectrum: PowerLaw
278    Prefactor:  0.000e+00  1.672e-06  0.000e+00  1.000e+06 ( 1.000e-13)
279        Index:  3.725e-01  4.755e-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:  2.980e-02  1.775e-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:  2.585e-01  5.607e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 120.246 44.018

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/948409/cmap_HighResolution_695001601_695606401_4FGL_J0800.9+4401_weekly_bin754.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.51e-02', job_status='DONE', photon_flux_upper_limit='1.12e-06', time_completed='2023-01-17 00:53:51.179095', job_id='948409', GAL2='0.03', fit_tolerance='1e-08', EG2='0.26', EG='0.26', time_epoch_completed='1673945631.18', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.03', dlogl='1.39e-07', ts2='0.00', photon_index_error='0.00', photon_index='2.17' WHERE bin_id='754' AND source_name='4FGL J0800.9+4401' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jan 17 00:53:51 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0223>
Subject: Job 948409: <4FGL_J0800.9+4401_weekly_bin754> in cluster <slac> Done

Job <4FGL_J0800.9+4401_weekly_bin754> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Jan 17 00:45:19 2023
Job was executed on host(s) <bullet0223>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jan 17 00:45:55 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jan 17 00:45:55 2023
Terminated at Tue Jan 17 00:53:51 2023
Results reported at Tue Jan 17 00:53:51 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0800.9+4401_weekly_bin754 120.246 44.0181 695001601 695606401 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 :                                   439.00 sec.
    Max Memory :                                 1096 MB
    Average Memory :                             300.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   476 sec.
    Turnaround time :                            512 sec.

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

