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


Performing analysis on: 4FGL_J0004.4-4001_daily_bin1703
RA = 1.1184, Dec = -40.0251
tmin = 680745601, tmax = 681004801
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='302289', job_status='RUN', time_executed='2022-08-01 00:06:32.548879', time_epoch_executed='1659337592.55' WHERE source_name='4FGL J0004.4-4001' and cadence='daily' and bin_id='1703'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/302289

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/302289/ft1_4FGL_J0004.4-4001_daily_bin1703.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/302289/ft2_4FGL_J0004.4-4001_daily_bin1703.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/302289/ft1_4FGL_J0004.4-4001_daily_bin1703.fits outfile=/scratch/kocevski/302289/ft1_filteredMKT_4FGL_J0004.4-4001_daily_bin1703.fits ra=1.1184 dec=-40.0251 rad=12.0 tmin=680745601.0 tmax=681004801.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.06
user 2.79
sys 0.20

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

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

Number of photons that the gtmktime cut: 389

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/302289/ft1_filtered_4FGL_J0004.4-4001_daily_bin1703.fits" evtable="EVENTS" scfile=/scratch/kocevski/302289/ft2_4FGL_J0004.4-4001_daily_bin1703.fits sctable="SC_DATA" outfile=/scratch/kocevski/302289/ltcube_680745601_681004801_4FGL_J0004.4-4001_daily_bin1703.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/302289/ft2_4FGL_J0004.4-4001_daily_bin1703.fits
.....................!
real 16.53
user 15.68
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/302289/ft1_filtered_4FGL_J0004.4-4001_daily_bin1703.fits evtable="EVENTS" scfile=/scratch/kocevski/302289/ft2_4FGL_J0004.4-4001_daily_bin1703.fits sctable="SC_DATA" expcube=/scratch/kocevski/302289/ltcube_680745601_681004801_4FGL_J0004.4-4001_daily_bin1703.fits outfile=/scratch/kocevski/302289/expmap_680745601_681004801_4FGL_J0004.4-4001_daily_bin1703.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/302289/ltcube_680745601_681004801_4FGL_J0004.4-4001_daily_bin1703.fits
.....................!
real 194.51
user 188.89
sys 4.83

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/302289/ft1_filtered_4FGL_J0004.4-4001_daily_bin1703.fits scfile=/scratch/kocevski/302289/ft2_4FGL_J0004.4-4001_daily_bin1703.fits outfile=/scratch/kocevski/302289/cmap_680745601_681004801_4FGL_J0004.4-4001_daily_bin1703.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.58
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/302289/ft1_filtered_4FGL_J0004.4-4001_daily_bin1703.fits scfile=/scratch/kocevski/302289/ft2_4FGL_J0004.4-4001_daily_bin1703.fits outfile=/scratch/kocevski/302289/cmap_HighResolution_680745601_681004801_4FGL_J0004.4-4001_daily_bin1703.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.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/302289/ft1_filtered_4FGL_J0004.4-4001_daily_bin1703.fits evtable="EVENTS" scfile=/scratch/kocevski/302289/ft2_4FGL_J0004.4-4001_daily_bin1703.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/302289/Model_4FGL_J0004.4-4001_daily_bin1703.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/302289/ft1_filtered_4FGL_J0004.4-4001_daily_bin1703.fits.....................!
real 37.54
user 35.48
sys 1.29

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/302289/ft1_filtered_4FGL_J0004.4-4001_daily_bin1703.fits', '/scratch/kocevski/302289/ft2_4FGL_J0004.4-4001_daily_bin1703.fits', expMap='/scratch/kocevski/302289/expmap_680745601_681004801_4FGL_J0004.4-4001_daily_bin1703.fits', expCube='/scratch/kocevski/302289/ltcube_680745601_681004801_4FGL_J0004.4-4001_daily_bin1703.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/302289/Model_4FGL_J0004.4-4001_daily_bin1703.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/302289/ft1_filtered_4FGL_J0004.4-4001_daily_bin1703.fits
Spacecraft file(s): /scratch/kocevski/302289/ft2_4FGL_J0004.4-4001_daily_bin1703.fits
Exposure map: /scratch/kocevski/302289/expmap_680745601_681004801_4FGL_J0004.4-4001_daily_bin1703.fits
Exposure cube: /scratch/kocevski/302289/ltcube_680745601_681004801_4FGL_J0004.4-4001_daily_bin1703.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/302289/Model_4FGL_J0004.4-4001_daily_bin1703.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) = 4429.24198851

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    185.75       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.0947       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10191E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10646E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10104E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    16.832       1.0000         .10000E-03   10000.    
    12 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10070E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    6.0553       1.0000         .10000E-03   10000.    
    16 'Prefactor '    17.329       1.0000         .10000E-03   10000.    
    17 'Prefactor '    19.611       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10547E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10602E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2.5052       1.0000         .10000E-03   10000.    
    22 'norm      '    5.7396       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .99380E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .39801E-02   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10117E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    5.9451       1.0000         .10000E-03   10000.    
    28 'Prefactor '    4.7522       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .48241       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.4247       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=   4429.236     FROM MIGRAD    STATUS=CONVERGED    774 CALLS     3938 TOTAL
                     EDM=   .34E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     185.76        85.651        .52828E-06   -.20854E-04
   2  Prefactor     .10000E-03    5.4337       -.62967E-07** at limit **
   3  Prefactor     .10000E-03    8.6048       -.28238E-06** at limit **
   4  Prefactor     4.0955        4.1504       -.50233E-06   -.81708E-04
   5  Prefactor     .10000E-03    10.124       -.11721E-06** at limit **
   6  Prefactor     .10000E-03    20.542        .97714E-07** at limit **
   7  Prefactor     .10000E-03    8.7768        .15851E-06** at limit **
   8  Prefactor     .10000E-03    2.4257        .93251E-07** at limit **
   9  Prefactor     .10000E-03    9.9494        .11966E-06** at limit **
  10  Prefactor     .10000E-03    3.3483        .83698E-07** at limit **
  11  norm          16.831        27.664       -.14042E-06   -.73744E-05
  12  norm          .10000E-03    9.4423        .29049E-06** at limit **
  13  norm          .10000E-03    10.908       -.18165E-06** at limit **
  14  norm          .10000E-03    2.8775        .25946E-06** at limit **
  15  norm          6.0585        11.892        .11141E-06   -.40275E-05
  16  Prefactor     17.329        9.8583        .98986E-07    .65148E-05
  17  Prefactor     19.579        48.580       -.33896E-05    .93112E-05
  18  Prefactor     .10000E-03    53.158       -.12293E-05** at limit **
  19  norm          .10000E-03    3.2329        .85411E-06** at limit **
  20  Prefactor     .10000E-03    7.1988        .85758E-07** at limit **
  21  norm          2.5047        1.6565        .35721E-07    .26867E-05
  22  norm          5.7418        5.8625        .26598E-06    .34836E-05
  23  Prefactor     .10000E-03    1.6820        .15503E-07** at limit **
  24  Prefactor     .10000E-03    90.469        .11441E-04** at limit **
  25  Prefactor     .10000E-03    238.94       -.45429E-05** at limit **
  26  Prefactor     .10000E-03    2.5001       -.32601E-06** at limit **
  27  Prefactor     5.9448        5.4561       -.10875E-05    .85264E-04
  28  Prefactor     4.7892        120.62        .87090E-05   -.56002E-05
  29  Normalizat    .48222        .19642        .21798E-06   -.35215E-04
  30  Prefactor     1.4246        .22420        .10223E-06   -.40326E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 185.758
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.09551
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 16.8309
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 6.05848
  Prefactor  = 17.3295
  Prefactor  = 19.579
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.5047
  norm       = 5.74184
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 5.94484
  Prefactor  = 4.78921
  Normalizat = 0.482218
  Prefactor  = 1.42462
 **********
 **   18 **HESSE 
 **********

 FCN=   4429.236     FROM HESSE     STATUS=OK           582 CALLS     4520 TOTAL
                     EDM=   .61E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     185.76        85.604        .14813E-03   -1.2974    
   2  Prefactor     .10000E-03    5.4355        .15152E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    8.6061        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.0955        4.1357        .12568E-03   -1.5303    
   5  Prefactor     .10000E-03    10.131        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    20.614        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    8.9970        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    8.9117        .19825E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    9.9641        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.3636        .11889E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          16.831        27.656        .97623E-04   -1.4887    
  12  norm          .10000E-03    9.4588        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    10.963        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    2.8848        .11029E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          6.0585        11.875        .16316E-03   -1.5216    
  16  Prefactor     17.329        9.8403        .96213E-04   -1.4875    
  17  Prefactor     19.579        48.471        .90444E-04   -1.4823    
  18  Prefactor     .10000E-03    53.239        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    3.2768        .11722E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    7.2098        .17438E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.5047        1.6500        .66881E-04   -1.5391    
  22  norm          5.7418        5.8428        .14846E-03   -1.5229    
  23  Prefactor     .10000E-03    1.6963        .84212E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    88.812        .50193E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    244.83        .19501E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    2.5133        .10285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     5.9448        5.4694        .70174E-03   -1.5220    
  28  Prefactor     4.7892        120.07        .18457E-03   -1.5270    
  29  Normalizat    .48222        .22943        .29699E-03   -1.1325    
  30  Prefactor     1.4246        .26663        .22046E-03   -.79673    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.14861e-11
Minuit parameter uncertainties:
  1  85.6612
  2  2.37002e-06
  3  1.14574e-05
  4  4.13595
  5  1.01532e-05
  6  3.39094e-06
  7  8.22661e-06
  8  5.3609e-07
  9  2.59292e-06
  10  1.37145e-06
  11  27.6771
  12  3.88412e-06
  13  9.24292e-06
  14  1.02811e-05
  15  11.8798
  16  9.84125
  17  48.5687
  18  9.35646e-05
  19  3.73613e-05
  20  4.61707e-06
  21  1.65002
  22  5.8434
  23  1.50755e-06
  24  0.000117651
  25  0.000781512
  26  1.38336e-05
  27  5.46987
  28  48.0673
  29  0.229884
  30  0.266888
Done.

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

Extracting fit parameters...

4FGL J0004.4-4001
   Spectrum: PowerLaw
16     Prefactor:  1.858e+02  8.566e+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.425e+00  2.669e-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:  4.822e-01  2.299e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.57
Ra Dec: 1.118 -40.025
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 9.50e-08 +/- 4.38e-08
Energy Flux (Fixed Index): 4.74e-05 +/- 2.19e-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) = 4429.15130907
delta logL = 0.0851463102617

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4429.1476505
delta logL = 0.0888048740662

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    145.56       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3191       1.0000          .0000       10.000    
     3 'Normalizat'    .46296       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4404       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4429.148     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      287 TOTAL
                     EDM=   .74E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     145.51        127.34        .16699E-03    .85429E-03
   2  Index         2.3190        .46598        .32113E-02    .85278E-03
   3  Normalizat    .46266        .22377        .30286E-03   -.81476E-03
   4  Prefactor     1.4409        .26924        .21940E-03   -.16861E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 145.51
  Index      = 2.319
  Normalizat = 0.462662
  Prefactor  = 1.4409
 **********
 **   18 **HESSE 
 **********

 FCN=   4429.148     FROM HESSE     STATUS=OK            23 CALLS      310 TOTAL
                     EDM=   .73E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     145.51        117.38        .33398E-04   -1.3290    
   2  Index         2.3190        .42905        .12845E-03   -.56593    
   3  Normalizat    .46266        .22304        .60572E-04   -1.1418    
   4  Prefactor     1.4409        .26873        .43881E-04   -.79209    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.33617e-09
Minuit parameter uncertainties:
  1  117.57
  2  0.429793
  3  0.223473
  4  0.268993
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/302289': 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) = 4429.14764747
delta logL = 0.0888079028109

Extracting fit parameters...

4FGL J0004.4-4001
   Spectrum: PowerLaw
16     Prefactor:  1.455e+02  1.176e+02  1.000e-04  1.000e+04 ( 1.000e-14)
17         Index:  2.319e+00  4.298e-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:  1.441e+00  2.690e-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:  4.627e-01  2.235e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.72
Ra Dec: 1.118 -40.025
Photon Index (Free Index): 2.32 +/- 0.43
Photon Flux (Free Index): 1.08e-07 +/- 5.73e-08
Energy Flux (Free Index): 3.98e-05 +/- 2.33e-05

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/302289/cmap_HighResolution_680745601_681004801_4FGL_J0004.4-4001_daily_bin1703.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.50e-08', energy_flux2='3.98e-05', photon_flux_error='4.38e-08', dlogl='8.88e-02', energy_flux='4.74e-05', photon_flux2='1.08e-07', job_status='DONE', time_completed='2022-08-01 00:17:45.789387', photon_index_error2='0.43', photon_index2='2.32', ts='10.57', fit_tolerance='1e-08', GAL='1.42', photon_index_error='0.00', energy_flux_error2='2.33e-05', EG='0.48', time_epoch_completed='1659338265.79', return_code='0', job_id='302289', GAL2='1.44', EG2='0.46', return_code2='0', energy_flux_error='2.19e-05', photon_flux_error2='5.73e-08', ts2='10.72', photon_index='2.15' WHERE bin_id='1703' AND source_name='4FGL J0004.4-4001' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug  1 00:17:45 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0058>
Subject: Job 302289: <4FGL_J0004.4-4001_daily_bin1703> in cluster <slac> Done

Job <4FGL_J0004.4-4001_daily_bin1703> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Aug  1 00:04:55 2022
Job was executed on host(s) <bullet0058>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug  1 00:04:57 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Aug  1 00:04:57 2022
Terminated at Mon Aug  1 00:17:46 2022
Results reported at Mon Aug  1 00:17:46 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0004.4-4001_daily_bin1703 1.1184 -40.0251 680745601 681004801 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 :                                   668.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             301.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   769 sec.
    Turnaround time :                            771 sec.

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

