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 58 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 make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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


Performing analysis on: 4FGL_J0004.4-4001_daily_bin1705
RA = 1.1184, Dec = -40.0251
tmin = 681264001, tmax = 681523201
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='406405', job_status='RUN', time_executed='2022-08-07 00:11:42.603966', time_epoch_executed='1659856302.6' WHERE source_name='4FGL J0004.4-4001' and cadence='daily' and bin_id='1705'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/406405

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/406405/ft1_4FGL_J0004.4-4001_daily_bin1705.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/406405/ft2_4FGL_J0004.4-4001_daily_bin1705.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/406405/ft1_4FGL_J0004.4-4001_daily_bin1705.fits outfile=/scratch/kocevski/406405/ft1_filteredMKT_4FGL_J0004.4-4001_daily_bin1705.fits ra=1.1184 dec=-40.0251 rad=12.0 tmin=681264001.0 tmax=681523201.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 2.89
user 2.62
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/406405/ft2_4FGL_J0004.4-4001_daily_bin1705.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/406405/ft2_4FGL_J0004.4-4001_daily_bin1705.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/406405/ft1_filteredMKT_4FGL_J0004.4-4001_daily_bin1705.fits evtable="EVENTS" outfile="/scratch/kocevski/406405/ft1_filtered_4FGL_J0004.4-4001_daily_bin1705.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.16

Number of photons that the gtmktime cut: 249

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/406405/ft1_filtered_4FGL_J0004.4-4001_daily_bin1705.fits" evtable="EVENTS" scfile=/scratch/kocevski/406405/ft2_4FGL_J0004.4-4001_daily_bin1705.fits sctable="SC_DATA" outfile=/scratch/kocevski/406405/ltcube_681264001_681523201_4FGL_J0004.4-4001_daily_bin1705.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/406405/ft2_4FGL_J0004.4-4001_daily_bin1705.fits
.....................!
real 16.35
user 15.93
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/406405/ft1_filtered_4FGL_J0004.4-4001_daily_bin1705.fits evtable="EVENTS" scfile=/scratch/kocevski/406405/ft2_4FGL_J0004.4-4001_daily_bin1705.fits sctable="SC_DATA" expcube=/scratch/kocevski/406405/ltcube_681264001_681523201_4FGL_J0004.4-4001_daily_bin1705.fits outfile=/scratch/kocevski/406405/expmap_681264001_681523201_4FGL_J0004.4-4001_daily_bin1705.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/406405/ltcube_681264001_681523201_4FGL_J0004.4-4001_daily_bin1705.fits
.....................!
real 194.18
user 188.88
sys 4.45

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

Setting source of interest to:
4FGL J0004.4-4001 @ 1.1184 -40.0251

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/406405/ft1_filtered_4FGL_J0004.4-4001_daily_bin1705.fits scfile=/scratch/kocevski/406405/ft2_4FGL_J0004.4-4001_daily_bin1705.fits outfile=/scratch/kocevski/406405/cmap_681264001_681523201_4FGL_J0004.4-4001_daily_bin1705.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=1.1184 yref=-40.0251 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.56
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/406405/ft1_filtered_4FGL_J0004.4-4001_daily_bin1705.fits scfile=/scratch/kocevski/406405/ft2_4FGL_J0004.4-4001_daily_bin1705.fits outfile=/scratch/kocevski/406405/cmap_HighResolution_681264001_681523201_4FGL_J0004.4-4001_daily_bin1705.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=1.1184 yref=-40.0251 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.56
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/406405/ft1_filtered_4FGL_J0004.4-4001_daily_bin1705.fits evtable="EVENTS" scfile=/scratch/kocevski/406405/ft2_4FGL_J0004.4-4001_daily_bin1705.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/406405/Model_4FGL_J0004.4-4001_daily_bin1705.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/406405/ft1_filtered_4FGL_J0004.4-4001_daily_bin1705.fits.....................!
real 29.63
user 26.94
sys 1.40

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/406405/ft1_filtered_4FGL_J0004.4-4001_daily_bin1705.fits', '/scratch/kocevski/406405/ft2_4FGL_J0004.4-4001_daily_bin1705.fits', expMap='/scratch/kocevski/406405/expmap_681264001_681523201_4FGL_J0004.4-4001_daily_bin1705.fits', expCube='/scratch/kocevski/406405/ltcube_681264001_681523201_4FGL_J0004.4-4001_daily_bin1705.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/406405/Model_4FGL_J0004.4-4001_daily_bin1705.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0004.4-4001'

4FGL J0004.4-4001
   Spectrum: PowerLaw
16     Prefactor:  6.579e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
17         Index:  2.145e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
18         Scale:  1.951e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/406405/ft1_filtered_4FGL_J0004.4-4001_daily_bin1705.fits
Spacecraft file(s): /scratch/kocevski/406405/ft2_4FGL_J0004.4-4001_daily_bin1705.fits
Exposure map: /scratch/kocevski/406405/expmap_681264001_681523201_4FGL_J0004.4-4001_daily_bin1705.fits
Exposure cube: /scratch/kocevski/406405/ltcube_681264001_681523201_4FGL_J0004.4-4001_daily_bin1705.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/406405/Model_4FGL_J0004.4-4001_daily_bin1705.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) = 2804.77161964

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    125.48       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    17.637       1.0000         .10000E-03   10000.    
     6 'Prefactor '    24.305       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10124E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11164E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    37.244       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10108E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10132E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    26.402       1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.588       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .37179E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10049E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    38.438       1.0000         .10000E-03   10000.    
    21 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .55754E-02   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10102E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10123E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    18.654       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .31367E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0984       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0114       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6490E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2804.734     FROM MIGRAD    STATUS=CONVERGED    785 CALLS     3945 TOTAL
                     EDM=   .58E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     125.45        96.555       -.16566E-04    .11229E-04
   2  Prefactor     .10000E-03    36.460        .97744E-05** at limit **
   3  Prefactor     .10000E-03    21.230        .18513E-04** at limit **
   4  Prefactor     .10000E-03    4.1967        .33646E-06** at limit **
   5  Prefactor     17.653        37.238       -.93690E-05   -.34935E-04
   6  Prefactor     24.300        30.214        .37780E-05    .10231E-04
   7  Prefactor     .10000E-03    11.680       -.21998E-05** at limit **
   8  Prefactor     .10000E-03    6.0028       -.77562E-06** at limit **
   9  Prefactor     37.203        37.907        .11782E-04    .32630E-04
  10  Prefactor     .10000E-03    7.5621       -.12257E-06** at limit **
  11  norm          .10000E-03    17.677       -.56065E-05** at limit **
  12  norm          .10000E-03    12.219        .27228E-05** at limit **
  13  norm          .10000E-03    6.2234       -.48822E-08** at limit **
  14  norm          .10000E-03    3.8775        .16657E-07** at limit **
  15  norm          26.379        20.215       -.12141E-05   -.15154E-04
  16  Prefactor     11.589        15.947        .12082E-05    .26395E-06
  17  Prefactor     .10000E-03    24.009       -.17587E-04** at limit **
  18  Prefactor     .10000E-03    159.85        .29455E-04** at limit **
  19  norm          .10000E-03    8.7521        .22661E-06** at limit **
  20  Prefactor     38.443        39.842       -.20806E-05    .23954E-04
  21  norm          .10000E-03    1.6856        .59889E-07** at limit **
  22  norm          .14353E-03    5.5657       -.80340E-06** at limit **
  23  Prefactor     .10000E-03    2.3456        .10888E-07** at limit **
  24  Prefactor     .10000E-03    46.572       -.36708E-05** at limit **
  25  Prefactor     .10000E-03    87.141       -.40791E-04** at limit **
  26  Prefactor     18.644        14.061        .88160E-06   -.11504E-03
  27  Prefactor     .10004E-03    4.6609       -.50533E-06** at limit **
  28  Prefactor     .10000E-03    99.044        .44454E-04** at limit **
  29  Normalizat    1.0987        .27624       -.14161E-05    .11173E-03
  30  Prefactor     1.0111        .30398        .19061E-05    .27388E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 125.451
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.653
  Prefactor  = 24.3004
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 37.2028
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 26.3789
  Prefactor  = 11.5889
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 38.4426
  norm       = 0.0001
  norm       = 0.000143534
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.6444
  Prefactor  = 0.000100042
  Prefactor  = 0.0001
  Normalizat = 1.09866
  Prefactor  = 1.01108
 **********
 **   18 **HESSE 
 **********

 FCN=   2804.734     FROM HESSE     STATUS=OK           586 CALLS     4531 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     125.45        96.669        .17968E-03   -1.3463    
   2  Prefactor     .10000E-03    36.593        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    21.220        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.2429        .10562E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     17.653        37.159        .95368E-04   -1.4867    
   6  Prefactor     24.300        30.208        .81252E-04   -1.4722    
   7  Prefactor     .10000E-03    11.759        .17672E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.0501        .12647E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     37.203        38.004        .65672E-04   -1.4487    
  10  Prefactor     .10000E-03    7.6158        .14221E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    17.712        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    12.222        .18084E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    6.2235        .12904E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    3.8787        .10185E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          26.379        20.215        .77964E-04   -1.4680    
  16  Prefactor     11.589        15.933        .11768E-03   -1.5027    
  17  Prefactor     .10000E-03    23.996        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    160.30        .21297E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    9.0380        .30536E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     38.443        39.760        .64648E-04   -1.4467    
  21  norm          .10000E-03    1.7248        .13382E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .14353E-03    12.045        .41387E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    2.3557        .79202E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    47.268        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    87.161        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     18.644        14.094        .92733E-04   -1.4844    
  27  Prefactor     .10004E-03    34.517        .21784E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    99.209        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.0987        .33123        .23985E-03   -.89795    
  30  Prefactor     1.0111        .36533        .28256E-03   -.92361    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.00334e-09
Minuit parameter uncertainties:
  1  96.7913
  2  2.26137e-05
  3  3.9171e-06
  4  6.88001e-05
  5  37.2078
  6  30.2274
  7  1.75725e-05
  8  0.000190788
  9  38.0283
  10  3.0905e-05
  11  5.63245e-05
  12  3.94116e-06
  13  1.64068e-06
  14  1.65801e-06
  15  20.2199
  16  15.9386
  17  1.6813e-05
  18  4.84465e-06
  19  3.46812e-05
  20  39.7874
  21  5.92228e-06
  22  0.0458078
  23  2.21983e-06
  24  7.83855e-05
  25  2.17561e-05
  26  14.0961
  27  0.00240733
  28  8.98692e-05
  29  0.331861
  30  0.366226
Done.

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

Extracting fit parameters...

4FGL J0004.4-4001
   Spectrum: PowerLaw
16     Prefactor:  1.255e+02  9.679e+01  1.000e-04  1.000e+04 ( 1.000e-14)
17         Index:  2.145e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
18         Scale:  1.951e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
646    Prefactor:  1.011e+00  3.662e-01  0.000e+00  1.000e+01 ( 1.000e+00)
647        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
648        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
645   Normalization:  1.099e+00  3.319e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.24
Ra Dec: 1.118 -40.025
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 6.42e-08 +/- 4.95e-08
Energy Flux (Fixed Index): 3.20e-05 +/- 2.47e-05

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) = 2803.41996215
delta logL = 1.31382427784

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2803.18343128
delta logL = 1.55035514033

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    35.473       1.0000         .10000E-03   10000.    
     2 'Index     '    .66203       1.0000          .0000       10.000    
     3 'Normalizat'    1.1473       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99837       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6490E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2803.183     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      212 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     35.473        42.617        .16822E-02    .16213E-02
   2  Index         .66155        .47466        .18387       -.96097E-05
   3  Normalizat    1.1471        .26285        .53317E-01    .12519E-04
   4  Prefactor     .99885        .29949        .46247E-01    .10287E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 35.473
  Index      = 0.661549
  Normalizat = 1.14715
  Prefactor  = 0.998847
 **********
 **   18 **HESSE 
 **********

 FCN=   2803.183     FROM HESSE     STATUS=OK            29 CALLS      241 TOTAL
                     EDM=   .45E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     35.473        77.031        .67286E-04   -1.4516    
   2  Index         .66155        .82942        .83028E-03   -1.0505    
   3  Normalizat    1.1471        .31594        .23574E-03   -.88252    
   4  Prefactor     .99885        .35998        .28436E-03   -.92768    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.484e-08
Minuit parameter uncertainties:
  1  77.2482
  2  0.84564
  3  0.316467
  4  0.360847
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/406405': 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) = 2803.18342856
delta logL = 1.55035786673

Extracting fit parameters...

4FGL J0004.4-4001
   Spectrum: PowerLaw
16     Prefactor:  3.547e+01  7.725e+01  1.000e-04  1.000e+04 ( 1.000e-14)
17         Index:  6.615e-01  8.456e-01  0.000e+00  1.000e+01 (-1.000e+00)
18         Scale:  1.951e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
646    Prefactor:  9.988e-01  3.608e-01  0.000e+00  1.000e+01 ( 1.000e+00)
647        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
648        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
645   Normalization:  1.147e+00  3.165e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.30
Ra Dec: 1.118 -40.025
Photon Index (Free Index): 0.66 +/- 0.85
Photon Flux (Free Index): 7.00e-09 +/- 7.79e-09
Energy Flux (Free Index): 1.96e-04 +/- 2.48e-04

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/406405/cmap_HighResolution_681264001_681523201_4FGL_J0004.4-4001_daily_bin1705.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.42e-08', energy_flux2='1.96e-04', photon_flux_error='4.95e-08', dlogl='1.55e+00', energy_flux='3.20e-05', photon_flux2='7.00e-09', job_status='DONE', time_completed='2022-08-07 00:20:51.436532', photon_index_error2='0.85', photon_index2='0.66', ts='5.24', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', energy_flux_error2='2.48e-04', EG='1.10', time_epoch_completed='1659856851.44', return_code='0', job_id='406405', GAL2='1.00', EG2='1.15', return_code2='0', energy_flux_error='2.47e-05', photon_flux_error2='7.79e-09', ts2='8.30', photon_index='2.15' WHERE bin_id='1705' AND source_name='4FGL J0004.4-4001' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug  7 00:20:51 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0051>
Subject: Job 406405: <4FGL_J0004.4-4001_daily_bin1705> in cluster <slac> Done

Job <4FGL_J0004.4-4001_daily_bin1705> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Aug  7 00:04:21 2022
Job was executed on host(s) <bullet0051>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug  7 00:10:24 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug  7 00:10:24 2022
Terminated at Sun Aug  7 00:20:51 2022
Results reported at Sun Aug  7 00:20:51 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0004.4-4001_daily_bin1705 1.1184 -40.0251 681264001 681523201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0004.4-4001 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   545.57 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             285.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   627 sec.
    Turnaround time :                            990 sec.

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

