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


Performing analysis on: 4FGL_J0004.4-4001_daily_bin1719
RA = 1.1184, Dec = -40.0251
tmin = 684892801, tmax = 685152001
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='643941', job_status='RUN', time_executed='2022-09-18 00:04:53.716108', time_epoch_executed='1663484693.72' WHERE source_name='4FGL J0004.4-4001' and cadence='daily' and bin_id='1719'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/643941

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/643941/ft1_4FGL_J0004.4-4001_daily_bin1719.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/643941/ft2_4FGL_J0004.4-4001_daily_bin1719.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/643941/ft1_4FGL_J0004.4-4001_daily_bin1719.fits outfile=/scratch/kocevski/643941/ft1_filteredMKT_4FGL_J0004.4-4001_daily_bin1719.fits ra=1.1184 dec=-40.0251 rad=12.0 tmin=684892801.0 tmax=685152001.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.19
user 2.91
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/643941/ft2_4FGL_J0004.4-4001_daily_bin1719.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/643941/ft1_filteredMKT_4FGL_J0004.4-4001_daily_bin1719.fits evtable="EVENTS" outfile="/scratch/kocevski/643941/ft1_filtered_4FGL_J0004.4-4001_daily_bin1719.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.54
user 0.35
sys 0.16

Number of photons that the gtmktime cut: 3

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/643941/ft1_filtered_4FGL_J0004.4-4001_daily_bin1719.fits" evtable="EVENTS" scfile=/scratch/kocevski/643941/ft2_4FGL_J0004.4-4001_daily_bin1719.fits sctable="SC_DATA" outfile=/scratch/kocevski/643941/ltcube_684892801_685152001_4FGL_J0004.4-4001_daily_bin1719.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/643941/ft2_4FGL_J0004.4-4001_daily_bin1719.fits
.....................!
real 14.56
user 14.14
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/643941/ft1_filtered_4FGL_J0004.4-4001_daily_bin1719.fits evtable="EVENTS" scfile=/scratch/kocevski/643941/ft2_4FGL_J0004.4-4001_daily_bin1719.fits sctable="SC_DATA" expcube=/scratch/kocevski/643941/ltcube_684892801_685152001_4FGL_J0004.4-4001_daily_bin1719.fits outfile=/scratch/kocevski/643941/expmap_684892801_685152001_4FGL_J0004.4-4001_daily_bin1719.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/643941/ltcube_684892801_685152001_4FGL_J0004.4-4001_daily_bin1719.fits
.....................!
real 191.53
user 186.74
sys 4.35

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/643941/ft1_filtered_4FGL_J0004.4-4001_daily_bin1719.fits scfile=/scratch/kocevski/643941/ft2_4FGL_J0004.4-4001_daily_bin1719.fits outfile=/scratch/kocevski/643941/cmap_684892801_685152001_4FGL_J0004.4-4001_daily_bin1719.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.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/643941/ft1_filtered_4FGL_J0004.4-4001_daily_bin1719.fits scfile=/scratch/kocevski/643941/ft2_4FGL_J0004.4-4001_daily_bin1719.fits outfile=/scratch/kocevski/643941/cmap_HighResolution_684892801_685152001_4FGL_J0004.4-4001_daily_bin1719.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.60
user 0.40
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/643941/ft1_filtered_4FGL_J0004.4-4001_daily_bin1719.fits evtable="EVENTS" scfile=/scratch/kocevski/643941/ft2_4FGL_J0004.4-4001_daily_bin1719.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/643941/Model_4FGL_J0004.4-4001_daily_bin1719.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/643941/ft1_filtered_4FGL_J0004.4-4001_daily_bin1719.fits...!
real 15.00
user 12.40
sys 1.33

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/643941/ft1_filtered_4FGL_J0004.4-4001_daily_bin1719.fits', '/scratch/kocevski/643941/ft2_4FGL_J0004.4-4001_daily_bin1719.fits', expMap='/scratch/kocevski/643941/expmap_684892801_685152001_4FGL_J0004.4-4001_daily_bin1719.fits', expCube='/scratch/kocevski/643941/ltcube_684892801_685152001_4FGL_J0004.4-4001_daily_bin1719.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/643941/Model_4FGL_J0004.4-4001_daily_bin1719.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  0.000e+00  1.000e+06 ( 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/643941/ft1_filtered_4FGL_J0004.4-4001_daily_bin1719.fits
Spacecraft file(s): /scratch/kocevski/643941/ft2_4FGL_J0004.4-4001_daily_bin1719.fits
Exposure map: /scratch/kocevski/643941/expmap_684892801_685152001_4FGL_J0004.4-4001_daily_bin1719.fits
Exposure cube: /scratch/kocevski/643941/ltcube_684892801_685152001_4FGL_J0004.4-4001_daily_bin1719.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/643941/Model_4FGL_J0004.4-4001_daily_bin1719.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 41.7052656752

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 40.3178569869

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.3286       1.0000          .0000       .10000E+07
     2 'Prefactor '    3.3721       1.0000          .0000       .10000E+07
     3 'Prefactor '    1.4677       1.0000          .0000       .10000E+07
     4 'Prefactor '    1.0815       1.0000          .0000       .10000E+07
     5 'Prefactor '    .26592E-05   1.0000          .0000       .10000E+07
     6 'Prefactor '    .40817E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    .37298       1.0000          .0000       .10000E+07
     8 'Prefactor '    .11026E-04   1.0000          .0000       .10000E+07
     9 'norm      '    1.5015       1.0000          .0000       .10000E+07
    10 'norm      '    .56785       1.0000          .0000       .10000E+07
    11 'norm      '    7.2301       1.0000          .0000       .10000E+07
    12 'norm      '    .17557E-02   1.0000          .0000       .10000E+07
    13 'norm      '    6.4243       1.0000          .0000       .10000E+07
    14 'Prefactor '    .27611       1.0000          .0000       .10000E+07
    15 'Prefactor '    6.4068       1.0000          .0000       .10000E+07
    16 'Prefactor '    7.1105       1.0000          .0000       .10000E+07
    17 'norm      '    2.7736       1.0000          .0000       .10000E+07
    18 'Prefactor '    .82693       1.0000          .0000       .10000E+07
    19 'norm      '    2.7641       1.0000          .0000       .10000E+07
    20 'norm      '    3.5799       1.0000          .0000       .10000E+07
    21 'Prefactor '    1.1552       1.0000          .0000       .10000E+07
    22 'Prefactor '    3.4222       1.0000          .0000       .10000E+07
    23 'Prefactor '    8.1040       1.0000          .0000       .10000E+07
    24 'Prefactor '    1.6803       1.0000          .0000       .10000E+07
    25 'Prefactor '    7818.9       1.0000          .0000       .10000E+07
    26 'Prefactor '    8.1546       1.0000          .0000       .10000E+07
    27 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    28 'Prefactor '    .29666       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   40.29679     FROM MIGRAD    STATUS=CONVERGED    206 CALLS      490 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.8689        .22984E+06    .37026E-03   -.19199E-01
   2  Prefactor     .42108E-01    1999.9        .55080E-03** at limit **
   3  Prefactor     .10969E-04    1059.1        .88699E-03** at limit **
   4  Prefactor     1.0815        1.2035         .0000         .0000    
   5  Prefactor      .0000        .44347E-01    .15868E-06** at limit **
   6  Prefactor      .0000        .44347E-01   -.20641E-05** at limit **
   7  Prefactor      .0000        .21477       -.56521E-05** at limit **
   8  Prefactor      .0000        .44347E-01    .63560E-05** at limit **
   9  norm          .11102E-09    .19073       -.15096E-04** at limit **
  10  norm          .91858E-04    .13017       -.64028E-05** at limit **
  11  norm          .49106E-03    .34745E-01    .74252E-05** at limit **
  12  norm          .45986E-01    .90319E-01   -.98198E-05** at limit **
  13  norm          2.5417        .63092       -.15303E-04    .38706E-01
  14  Prefactor     .88818E-09    .27841       -.25578E-05** at limit **
  15  Prefactor     2.3633        .60922       -.16103E-04    .39714E-01
  16  Prefactor     7.1105        1.0025         .0000         .0000    
  17  norm          .12166        .21305       -.44594E-05** at limit **
  18  Prefactor     .40017E-01    .10192       -.35370E-05** at limit **
  19  norm           .0000        .93617E-01    .23137E-05** at limit **
  20  norm          5.9280        1.2998        .97002E-05   -.20622E-01
  21  Prefactor     .15181E-02    .28843       -.38205E-04** at limit **
  22  Prefactor     2.1715        .80542       -.63117E-05    .96974E-02
  23  Prefactor     8.1040        1.0019         .0000         .0000    
  24  Prefactor     1.6803        1.0530         .0000         .0000    
  25  Prefactor     7818.8        .99999       -.13182E-07    .53694E-01
  26  Prefactor     8.1546        1.0019         .0000         .0000    
  27  Normalizat    .10000E-01    .25505        .32913E-03** at limit **
  28  Prefactor     .30076        .61347       -.17811E-04   -.18562E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.86894
  Prefactor  = 0.0421082
  Prefactor  = 1.09689e-05
  Prefactor  = 1.08152
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  norm       = 1.11022e-10
  norm       = 9.18582e-05
  norm       = 0.000491065
  norm       = 0.0459859
  norm       = 2.54168
  Prefactor  = 8.88178e-10
  Prefactor  = 2.36325
  Prefactor  = 7.11054
  norm       = 0.121657
  Prefactor  = 0.0400167
  norm       = 0
  norm       = 5.92802
  Prefactor  = 0.0015181
  Prefactor  = 2.17151
  Prefactor  = 8.10404
  Prefactor  = 1.68027
  Prefactor  = 7818.75
  Prefactor  = 8.15459
  Normalizat = 0.01
  Prefactor  = 0.300758
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   40.29679     FROM HESSE     STATUS=FAILED        17 CALLS      507 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.8689        .22984E+06    .37026E-03   -1.5648    
   2  Prefactor     .42108E-01    1999.9        .55080E-03   -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10969E-04    1059.1        .88699E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     63121.        63120.         .0000       -1.5687    
   5  Prefactor      .0000        .44347E-01    .15868E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        .44347E-01   -.20641E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        .21477       -.56521E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        .44347E-01    .63560E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .11102E-09    .19073       -.15096E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .91858E-04    .13017       -.64028E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .49106E-03    .34745E-01    .74252E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .45986E-01    .90319E-01   -.98198E-05   -1.5712    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.5417        .63092       -.15303E-04   -1.5676    
  14  Prefactor     .88818E-09    .27841       -.25578E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.3633        .60922       -.16103E-04   -1.5677    
  16  Prefactor     7.1105        1.0025         .0000       -1.5655    
  17  norm          .12166        .21305       -.44594E-05   -1.5715    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .40017E-01    .10192       -.35370E-05   -1.5712    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm           .0000        .93617E-01    .23137E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          5.9280        1.2998        .97002E-05   -1.5659    
  21  Prefactor     .15181E-02    .28843       -.38205E-04   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     2.1715        .80542       -.63117E-05   -1.5678    
  23  Prefactor     8.1040        1.0019         .0000       -1.5651    
  24  Prefactor     1.6803        1.0530         .0000       -1.5682    
  25  Prefactor     7818.8        .99999       -.13182E-07   -1.3937    
  26  Prefactor     8.1546        1.0019         .0000       -1.5651    
  27  Normalizat    .10000E-01    .25505        .32913E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .30076        .61347       -.17811E-04   -1.2222    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.54757e-09
Minuit parameter uncertainties:
  1  2978.06
  2  18.3595
  3  0.215599
  4  1.20347
  5  2.40902e-08
  6  5.01489e-07
  7  3.44244e-06
  8  1.85042e-06
  9  9.47681e-06
  10  0.0069159
  11  0.00826124
  12  0.0903185
  13  0.63092
  14  3.14258e-05
  15  0.609217
  16  1.00249
  17  0.213047
  18  0.101918
  19  1.83998e-06
  20  1.29982
  21  0.0418502
  22  0.805419
  23  1.00192
  24  1.05303
  25  0.999991
  26  1.00189
  27  7.33212e-07
  28  0.627486
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 40.2967895405

Extracting fit parameters...

4FGL J0004.4-4001
   Spectrum: PowerLaw
16     Prefactor:  8.869e+00  2.978e+03  0.000e+00  1.000e+06 ( 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:  3.008e-01  6.275e-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.000e-02  7.332e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 1.118 -40.025
Photon Flux Upper Limit: 3.92e-04 ph cm-2 s-1
Energy Flux Upper Limit: 2.98e+01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/643941/likelihoodResults_684892801_685152001_4FGL_J0004.4-4001_daily_bin1719.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) = 40.2967895194
delta logL = 2.1135605266e-08

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 39.5227666594
delta logL = 0.774022881145

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    69691.       1.0000          .0000       .10000E+07
     2 'Index     '    2.8468       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .32636E-01   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=   39.52277     FROM MIGRAD    STATUS=CONVERGED     73 CALLS      269 TOTAL
                     EDM=   .19E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     69705.        .18589E+06    .98846E-06    .91728E-05
   2  Index         2.8464        1.3600        .64524E-04    .28165E-04
   3  Normalizat    .10000E-01    .23837        .95753E-03** at limit **
   4  Prefactor     .32586E-01    1.2116        .38233E-02    .32315E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 69704.7
  Index      = 2.84642
  Normalizat = 0.01
  Prefactor  = 0.0325859
 **********
 **   18 **HESSE 
 **********

 FCN=   39.52277     FROM HESSE     STATUS=OK            25 CALLS      294 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     69705.        .18780E+06    .24710E-06   -1.0364    
   2  Index         2.8464        1.3760        .12905E-04   -.44529    
   3  Normalizat    .10000E-01    .23837        .19151E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .32586E-01    1.2107        .15293E-03   -1.4566    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.80413e-11
Minuit parameter uncertainties:
  1  211189
  2  1.3983
  3  1.12625e-06
  4  0.406453
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/643941': 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) = 39.5227663661
delta logL = 0.774023174403

Extracting fit parameters...

4FGL J0004.4-4001
   Spectrum: PowerLaw
16     Prefactor:  6.970e+04  2.112e+05  0.000e+00  1.000e+06 ( 1.000e-14)
17         Index:  2.846e+00  1.398e+00  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:  3.259e-02  4.065e-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.000e-02  1.126e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.75
Ra Dec: 1.118 -40.025
Photon Index (Free Index): 2.85 +/- 1.40
Photon Flux (Free Index): 1.78e-04 +/- 2.10e-04
Energy Flux (Free Index): 3.86e-02 +/- 4.21e-02

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/643941/cmap_HighResolution_684892801_685152001_4FGL_J0004.4-4001_daily_bin1719.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.98e+01', comment='SUCCESS', energy_flux2='3.86e-02', dlogl='7.74e-01', photon_flux2='1.78e-04', job_status='DONE', time_completed='2022-09-18 00:10:23.180588', photon_index_error2='1.40', photon_index2='2.85', ts='0.00', fit_tolerance='1e-08', GAL='0.30', photon_index_error='0.00', photon_flux_upper_limit='3.92e-04', energy_flux_error2='4.21e-02', EG='0.01', time_epoch_completed='1663485023.18', return_code='101', job_id='643941', GAL2='0.03', EG2='0.01', return_code2='0', photon_flux_error2='2.10e-04', ts2='1.75', photon_index='2.15' WHERE bin_id='1719' AND source_name='4FGL J0004.4-4001' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 18 00:10:23 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0215>
Subject: Job 643941: <4FGL_J0004.4-4001_daily_bin1719> in cluster <slac> Done

Job <4FGL_J0004.4-4001_daily_bin1719> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep 18 00:04:34 2022
Job was executed on host(s) <bullet0215>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 18 00:04:36 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 18 00:04:36 2022
Terminated at Sun Sep 18 00:10:24 2022
Results reported at Sun Sep 18 00:10:24 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0004.4-4001_daily_bin1719 1.1184 -40.0251 684892801 685152001 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 :                                   329.31 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             324.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   347 sec.
    Turnaround time :                            350 sec.

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

