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


Performing analysis on: 4FGL_J0440.3-4333_daily_bin1709
RA = 70.0881, Dec = -43.5532
tmin = 682300801, tmax = 682560001
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='23197', job_status='RUN', time_executed='2022-09-16 11:21:18.030264', time_epoch_executed='1663352478.03' WHERE source_name='4FGL J0440.3-4333' and cadence='daily' and bin_id='1709'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/23197

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/23197/ft1_4FGL_J0440.3-4333_daily_bin1709.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/23197/ft2_4FGL_J0440.3-4333_daily_bin1709.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/23197/ft1_4FGL_J0440.3-4333_daily_bin1709.fits outfile=/scratch/kocevski/23197/ft1_filteredMKT_4FGL_J0440.3-4333_daily_bin1709.fits ra=70.0881 dec=-43.5532 rad=12.0 tmin=682300801.0 tmax=682560001.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.81
user 3.53
sys 0.25

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/23197/ft2_4FGL_J0440.3-4333_daily_bin1709.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/23197/ft2_4FGL_J0440.3-4333_daily_bin1709.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/23197/ft1_filteredMKT_4FGL_J0440.3-4333_daily_bin1709.fits evtable="EVENTS" outfile="/scratch/kocevski/23197/ft1_filtered_4FGL_J0440.3-4333_daily_bin1709.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.35
sys 0.16

Number of photons that the gtmktime cut: 622

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/23197/ft1_filtered_4FGL_J0440.3-4333_daily_bin1709.fits" evtable="EVENTS" scfile=/scratch/kocevski/23197/ft2_4FGL_J0440.3-4333_daily_bin1709.fits sctable="SC_DATA" outfile=/scratch/kocevski/23197/ltcube_682300801_682560001_4FGL_J0440.3-4333_daily_bin1709.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/23197/ft2_4FGL_J0440.3-4333_daily_bin1709.fits
.....................!
real 16.19
user 15.81
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/23197/ft1_filtered_4FGL_J0440.3-4333_daily_bin1709.fits evtable="EVENTS" scfile=/scratch/kocevski/23197/ft2_4FGL_J0440.3-4333_daily_bin1709.fits sctable="SC_DATA" expcube=/scratch/kocevski/23197/ltcube_682300801_682560001_4FGL_J0440.3-4333_daily_bin1709.fits outfile=/scratch/kocevski/23197/expmap_682300801_682560001_4FGL_J0440.3-4333_daily_bin1709.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/23197/ltcube_682300801_682560001_4FGL_J0440.3-4333_daily_bin1709.fits
.....................!
real 192.44
user 187.74
sys 4.29

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
Extended source Fornax A in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/FornaxA.fits is the correct path to the extended template.
Added 187 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0440.3-4333 @ 70.0881 -43.5532

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/23197/ft1_filtered_4FGL_J0440.3-4333_daily_bin1709.fits scfile=/scratch/kocevski/23197/ft2_4FGL_J0440.3-4333_daily_bin1709.fits outfile=/scratch/kocevski/23197/cmap_682300801_682560001_4FGL_J0440.3-4333_daily_bin1709.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=70.0881 yref=-43.5532 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.63
user 0.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/23197/ft1_filtered_4FGL_J0440.3-4333_daily_bin1709.fits scfile=/scratch/kocevski/23197/ft2_4FGL_J0440.3-4333_daily_bin1709.fits outfile=/scratch/kocevski/23197/cmap_HighResolution_682300801_682560001_4FGL_J0440.3-4333_daily_bin1709.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=70.0881 yref=-43.5532 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.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/23197/ft1_filtered_4FGL_J0440.3-4333_daily_bin1709.fits evtable="EVENTS" scfile=/scratch/kocevski/23197/ft2_4FGL_J0440.3-4333_daily_bin1709.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/23197/Model_4FGL_J0440.3-4333_daily_bin1709.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 Fornax A
adding source GAL_V02
Working on...
/scratch/kocevski/23197/ft1_filtered_4FGL_J0440.3-4333_daily_bin1709.fits.....................!
real 140.54
user 138.99
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/23197/ft1_filtered_4FGL_J0440.3-4333_daily_bin1709.fits', '/scratch/kocevski/23197/ft2_4FGL_J0440.3-4333_daily_bin1709.fits', expMap='/scratch/kocevski/23197/expmap_682300801_682560001_4FGL_J0440.3-4333_daily_bin1709.fits', expCube='/scratch/kocevski/23197/ltcube_682300801_682560001_4FGL_J0440.3-4333_daily_bin1709.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/23197/Model_4FGL_J0440.3-4333_daily_bin1709.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0440.3-4333'

4FGL J0440.3-4333
   Spectrum: LogParabola
286         norm:  4.526e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
287        alpha:  2.463e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
288         beta:  4.215e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
289           Eb:  6.095e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/23197/ft1_filtered_4FGL_J0440.3-4333_daily_bin1709.fits
Spacecraft file(s): /scratch/kocevski/23197/ft2_4FGL_J0440.3-4333_daily_bin1709.fits
Exposure map: /scratch/kocevski/23197/expmap_682300801_682560001_4FGL_J0440.3-4333_daily_bin1709.fits
Exposure cube: /scratch/kocevski/23197/ltcube_682300801_682560001_4FGL_J0440.3-4333_daily_bin1709.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/23197/Model_4FGL_J0440.3-4333_daily_bin1709.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) = 6689.45345372

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .24240       1.0000          .0000       .10000E+07
     2 'norm      '    1.9994       1.0000          .0000       .10000E+07
     3 'norm      '    .70496E-01   1.0000          .0000       .10000E+07
     4 'Prefactor '    .17268E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    21.007       1.0000          .0000       .10000E+07
     6 'Prefactor '    .13719E-02   1.0000          .0000       .10000E+07
     7 'norm      '    1.8162       1.0000          .0000       .10000E+07
     8 'Prefactor '    1.7279       1.0000          .0000       .10000E+07
     9 'norm      '    .97272       1.0000          .0000       .10000E+07
    10 'Prefactor '    107.49       1.0000          .0000       .10000E+07
    11 'Prefactor '    2.7862       1.0000          .0000       .10000E+07
    12 'norm      '    5.3589       1.0000          .0000       .10000E+07
    13 'norm      '    3.4713       1.0000          .0000       .10000E+07
    14 'Prefactor '    .40334E-06   1.0000          .0000       .10000E+07
    15 'Prefactor '    .13301E-03   1.0000          .0000       .10000E+07
    16 'norm      '    1.2321       1.0000          .0000       .10000E+07
    17 'Prefactor '    .15063E-02   1.0000          .0000       .10000E+07
    18 'Prefactor '    .22620E-03   1.0000          .0000       .10000E+07
    19 'Prefactor '    6.7478       1.0000          .0000       .10000E+07
    20 'Prefactor '    .24394E-03   1.0000          .0000       .10000E+07
    21 'norm      '    1.0786       1.0000          .0000       .10000E+07
    22 'norm      '    .89182E-03   1.0000          .0000       .10000E+07
    23 'norm      '    8.8451       1.0000          .0000       .10000E+07
    24 'Prefactor '    2.5310       1.0000          .0000       .10000E+07
    25 'Prefactor '    .26086E-05   1.0000          .0000       .10000E+07
    26 'Prefactor '    .28158E-02   1.0000          .0000       .10000E+07
    27 'norm      '    4.6996       1.0000          .0000       .10000E+07
    28 'Normalizat'    1.5006       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .72611       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6080E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6689.340     FROM MIGRAD    STATUS=CONVERGED    186 CALLS     2705 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .54956E-08    2.6428       -.43286E-06** at limit **
   2  norm          2.0020        .54496        .13292E-07   -.23473E-02
   3  norm          .28606E-02    7.2811        .76024E-06** at limit **
   4  Prefactor     .76050E-08    5.7979       -.75648E-06** at limit **
   5  Prefactor     21.241        5.8152       -.20409E-06    .13346    
   6  Prefactor     .25535E-08    22.423        .12877E-05** at limit **
   7  norm          1.8082        2.3085        .19725E-06   -.10699E-02
   8  Prefactor     1.7922        11.783       -.11226E-05    .12006E-03
   9  norm          .97204        .52184        .19410E-07   -.29857E-02
  10  Prefactor     110.52        71.262       -.69010E-06   -.18120E-01
  11  Prefactor     2.7832        2.9765       -.17363E-07   -.62305E-03
  12  norm          5.4118        10.173        .34424E-06    .39199E-02
  13  norm          3.4711        1.7334       -.19309E-07    .23875E-03
  14  Prefactor     .72164E-09    1.7524        .27150E-06** at limit **
  15  Prefactor     .77127E-06    12.419       -.86187E-07** at limit **
  16  norm          1.2336        5.3463        .68041E-06   -.21003E-02
  17  Prefactor     .22108E-05    8.0040       -.57485E-07** at limit **
  18  Prefactor     .25036E-07    8.8570       -.85554E-06** at limit **
  19  Prefactor     6.7519        3.0138       -.66276E-07    .26445E-02
  20  Prefactor     .23781E-06    9.3955       -.15219E-06** at limit **
  21  norm          1.0806        1.7749        .32549E-07   -.10581E-02
  22  norm          .10270E-07    4.8889        .31752E-06** at limit **
  23  norm          8.8513        3.8964       -.11622E-06    .47506E-03
  24  Prefactor     2.5300        3.9388       -.34455E-06    .14452E-02
  25  Prefactor     .55511E-10    5.0027        .39416E-07** at limit **
  26  Prefactor     .79919E-06    11.391        .23847E-06** at limit **
  27  norm          4.7006        1.2064       -.19614E-07    .54920E-02
  28  Normalizat    1.4983        .24965        .42020E-05    .62823E-04
  29  Prefactor     .72707        .23792       -.80242E-05    .59204E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.4956e-09
  norm       = 2.00199
  norm       = 0.0028606
  Prefactor  = 7.60503e-09
  Prefactor  = 21.241
  Prefactor  = 2.55351e-09
  norm       = 1.80819
  Prefactor  = 1.7922
  norm       = 0.972044
  Prefactor  = 110.521
  Prefactor  = 2.78323
  norm       = 5.41183
  norm       = 3.47115
  Prefactor  = 7.21645e-10
  Prefactor  = 7.71272e-07
  norm       = 1.23361
  Prefactor  = 2.21084e-06
  Prefactor  = 2.50355e-08
  Prefactor  = 6.75189
  Prefactor  = 2.3781e-07
  norm       = 1.08064
  norm       = 1.02696e-08
  norm       = 8.85128
  Prefactor  = 2.52999
  Prefactor  = 5.55112e-11
  Prefactor  = 7.99194e-07
  norm       = 4.70057
  Normalizat = 1.4983
  Prefactor  = 0.727069
 **********
 **   18 **HESSE 
 **********

 FCN=   6689.340     FROM HESSE     STATUS=OK           627 CALLS     3332 TOTAL
                     EDM=   .11E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .54956E-08    64.138        .11065E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.0020        .55976        .67461E-03   -1.5680    
   3  norm          .28606E-02    4.7702        .10722E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .76050E-08    5.8062        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     21.241        32.049        .21824E-03   -1.5616    
   6  Prefactor     .25535E-08    23.071        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.8082        2.3192        .77471E-03   -1.5681    
   8  Prefactor     1.7922        12.064        .79847E-03   -1.5681    
   9  norm          .97204        .52637        .42797E-03   -1.5688    
  10  Prefactor     110.52        70.989        .96460E-04   -1.5498    
  11  Prefactor     2.7832        3.0148        .60933E-03   -1.5675    
  12  norm          5.4118        10.246        .43389E-03   -1.5661    
  13  norm          3.4711        1.7380        .54251E-03   -1.5671    
  14  Prefactor     .72164E-09    1.7526        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .77127E-06    18.009        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.2336        5.4655        .10122E-02   -1.5686    
  17  Prefactor     .22108E-05    15.729        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .25036E-07    9.2429        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     6.7519        3.0276        .38603E-03   -1.5656    
  20  Prefactor     .23781E-06    1.8621        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.0806        1.8532        .11614E-02   -1.5687    
  22  norm          .10270E-07    4.8655        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          8.8513        3.9102        .33678E-03   -1.5648    
  24  Prefactor     2.5300        3.9744        .64176E-03   -1.5676    
  25  Prefactor     .55511E-10    5.0029        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .79919E-06    13.209        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          4.7006        1.2077        .46395E-03   -1.5665    
  28  Normalizat    1.4983        .20959        .56485E-01   -.77826    
  29  Prefactor     .72707        .20110        .77288E-01   -1.0248    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.13189e-06
Minuit parameter uncertainties:
  1  0.00118909
  2  0.559759
  3  0.233629
  4  0.000420966
  5  32.049
  6  0.000487337
  7  2.31921
  8  9.29969
  9  0.52637
  10  70.9894
  11  3.0148
  12  10.246
  13  1.73801
  14  7.1743e-05
  15  0.00745376
  16  5.19319
  17  0.0117942
  18  0.00096174
  19  3.02761
  20  0.00133086
  21  1.85317
  22  0.00044651
  23  3.91019
  24  3.97444
  25  3.34571e-05
  26  0.00649802
  27  1.20766
  28  0.209708
  29  0.201306
Done.

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

Extracting fit parameters...

4FGL J0440.3-4333
   Spectrum: LogParabola
286         norm:  5.412e+00  1.025e+01  0.000e+00  1.000e+06 ( 1.000e-12)
287        alpha:  2.463e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
288         beta:  4.215e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
289           Eb:  6.095e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
605    Prefactor:  7.271e-01  2.013e-01  0.000e+00  1.000e+01 ( 1.000e+00)
606        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
607        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
601   Normalization:  1.498e+00  2.097e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.40
Ra Dec: 70.088 -43.553
Photon Flux Upper Limit: 9.15e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.96e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/23197/likelihoodResults_682300801_682560001_4FGL_J0440.3-4333_daily_bin1709.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) = 6688.94060929
delta logL = 0.399486543433

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6688.9271757
delta logL = 0.412920135074

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.3776       1.0000          .0000       .10000E+07
     2 'alpha     '    3.9125       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4474       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75913       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6080E+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=   6688.927     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      275 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.3787        7.2815        .14086E-04   -.10416E-01
   2  alpha         3.9123        1.4913        .27908E-02   -.49894E-04
   3  Normalizat    1.4473        .24263        .25309E-03    .85123E-04
   4  Prefactor     .75916        .23730        .33538E-03    .14502E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.37866
  alpha      = 3.91231
  Normalizat = 1.44731
  Prefactor  = 0.759159
 **********
 **   18 **HESSE 
 **********

 FCN=   6688.927     FROM HESSE     STATUS=OK            23 CALLS      298 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.3787        6.8581        .56343E-06   -1.5671    
   2  alpha         3.9123        1.4226        .11163E-03    .60034    
   3  Normalizat    1.4473        .24280        .50618E-04   -.79270    
   4  Prefactor     .75916        .23741        .13415E-04   -1.0125    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.38474e-10
Minuit parameter uncertainties:
  1  6.85815
  2  1.56973
  3  0.242996
  4  0.237728
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/23197': 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) = 6688.92717566
delta logL = 0.412920173159

Extracting fit parameters...

4FGL J0440.3-4333
   Spectrum: LogParabola
286         norm:  3.379e+00  6.858e+00  0.000e+00  1.000e+06 ( 1.000e-12)
287        alpha:  3.912e+00  1.570e+00  0.000e+00  5.000e+00 ( 1.000e+00)
288         beta:  4.215e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
289           Eb:  6.095e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
605    Prefactor:  7.592e-01  2.377e-01  0.000e+00  1.000e+01 ( 1.000e+00)
606        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
607        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
601   Normalization:  1.447e+00  2.430e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.26
Ra Dec: 70.088 -43.553
Photon Index (Free Index): 3.91 +/- 1.57
Photon Flux (Free Index): 5.62e-08 +/- 5.90e-08
Energy Flux (Free Index): 1.01e-05 +/- 1.01e-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/23197/cmap_HighResolution_682300801_682560001_4FGL_J0440.3-4333_daily_bin1709.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.96e-05', comment='SUCCESS', energy_flux2='1.01e-05', dlogl='4.13e-01', photon_flux2='5.62e-08', job_status='DONE', time_completed='2022-09-16 11:35:40.173694', photon_index_error2='1.57', photon_index2='3.91', ts='0.40', fit_tolerance='1e-08', GAL='0.73', photon_index_error='0.00', photon_flux_upper_limit='9.15e-08', energy_flux_error2='1.01e-05', EG='1.50', time_epoch_completed='1663353340.17', return_code='0', job_id='23197', GAL2='0.76', EG2='1.45', return_code2='0', photon_flux_error2='5.90e-08', ts2='1.26', photon_index='2.46' WHERE bin_id='1709' AND source_name='4FGL J0440.3-4333' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 11:35:40 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0043>
Subject: Job 23197: <4FGL_J0440.3-4333_daily_bin1709> in cluster <slac> Done

Job <4FGL_J0440.3-4333_daily_bin1709> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Sep 16 11:20:23 2022
Job was executed on host(s) <bullet0043>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 11:20:54 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 11:20:54 2022
Terminated at Fri Sep 16 11:35:40 2022
Results reported at Fri Sep 16 11:35:40 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0440.3-4333_daily_bin1709 70.0881 -43.5532 682300801 682560001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0440.3-4333 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   864.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             349.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   887 sec.
    Turnaround time :                            917 sec.

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

