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


Performing analysis on: 4FGL_J0004.4-4001_daily_bin1771
RA = 1.1184, Dec = -40.0251
tmin = 698371201, tmax = 698630401
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='534313', job_status='RUN', time_executed='2023-02-21 00:06:32.697203', time_epoch_executed='1676966792.7' WHERE source_name='4FGL J0004.4-4001' and cadence='daily' and bin_id='1771'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/534313

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/534313/ft1_4FGL_J0004.4-4001_daily_bin1771.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/534313/ft2_4FGL_J0004.4-4001_daily_bin1771.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/534313/ft1_4FGL_J0004.4-4001_daily_bin1771.fits outfile=/scratch/kocevski/534313/ft1_filteredMKT_4FGL_J0004.4-4001_daily_bin1771.fits ra=1.1184 dec=-40.0251 rad=12.0 tmin=698371201.0 tmax=698630401.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 4.16
user 2.92
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/534313/ft2_4FGL_J0004.4-4001_daily_bin1771.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/534313/ft1_filteredMKT_4FGL_J0004.4-4001_daily_bin1771.fits evtable="EVENTS" outfile="/scratch/kocevski/534313/ft1_filtered_4FGL_J0004.4-4001_daily_bin1771.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 1.13
user 0.33
sys 0.18

Number of photons that the gtmktime cut: 145

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/534313/ft1_filtered_4FGL_J0004.4-4001_daily_bin1771.fits" evtable="EVENTS" scfile=/scratch/kocevski/534313/ft2_4FGL_J0004.4-4001_daily_bin1771.fits sctable="SC_DATA" outfile=/scratch/kocevski/534313/ltcube_698371201_698630401_4FGL_J0004.4-4001_daily_bin1771.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/534313/ft2_4FGL_J0004.4-4001_daily_bin1771.fits
.....................!
real 20.17
user 19.27
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/534313/ft1_filtered_4FGL_J0004.4-4001_daily_bin1771.fits evtable="EVENTS" scfile=/scratch/kocevski/534313/ft2_4FGL_J0004.4-4001_daily_bin1771.fits sctable="SC_DATA" expcube=/scratch/kocevski/534313/ltcube_698371201_698630401_4FGL_J0004.4-4001_daily_bin1771.fits outfile=/scratch/kocevski/534313/expmap_698371201_698630401_4FGL_J0004.4-4001_daily_bin1771.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/534313/ltcube_698371201_698630401_4FGL_J0004.4-4001_daily_bin1771.fits
.....................!
real 197.07
user 186.22
sys 4.88

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/534313/ft1_filtered_4FGL_J0004.4-4001_daily_bin1771.fits scfile=/scratch/kocevski/534313/ft2_4FGL_J0004.4-4001_daily_bin1771.fits outfile=/scratch/kocevski/534313/cmap_698371201_698630401_4FGL_J0004.4-4001_daily_bin1771.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.57
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/534313/ft1_filtered_4FGL_J0004.4-4001_daily_bin1771.fits scfile=/scratch/kocevski/534313/ft2_4FGL_J0004.4-4001_daily_bin1771.fits outfile=/scratch/kocevski/534313/cmap_HighResolution_698371201_698630401_4FGL_J0004.4-4001_daily_bin1771.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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/534313/ft1_filtered_4FGL_J0004.4-4001_daily_bin1771.fits evtable="EVENTS" scfile=/scratch/kocevski/534313/ft2_4FGL_J0004.4-4001_daily_bin1771.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/534313/Model_4FGL_J0004.4-4001_daily_bin1771.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/534313/ft1_filtered_4FGL_J0004.4-4001_daily_bin1771.fits.....................!
real 22.76
user 20.87
sys 1.30

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .57581E-01   1.0000          .0000       .10000E+07
     2 'Prefactor '    .22264E-01   1.0000          .0000       .10000E+07
     3 'Prefactor '    .73356E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    .53144E-04   1.0000          .0000       .10000E+07
     5 'Prefactor '    .19660E-01   1.0000          .0000       .10000E+07
     6 'Prefactor '    .98695E-04   1.0000          .0000       .10000E+07
     7 'Prefactor '    .20196       1.0000          .0000       .10000E+07
     8 'Prefactor '    .29249E-02   1.0000          .0000       .10000E+07
     9 'norm      '    60.822       1.0000          .0000       .10000E+07
    10 'norm      '    .91305       1.0000          .0000       .10000E+07
    11 'norm      '    .17633       1.0000          .0000       .10000E+07
    12 'norm      '    .23914E-01   1.0000          .0000       .10000E+07
    13 'norm      '    .20193E-01   1.0000          .0000       .10000E+07
    14 'Prefactor '    5494.4       1.0000          .0000       .10000E+07
    15 'Prefactor '    .39295       1.0000          .0000       .10000E+07
    16 'Prefactor '    .24560       1.0000          .0000       .10000E+07
    17 'norm      '    .23740E-02   1.0000          .0000       .10000E+07
    18 'Prefactor '    .50815       1.0000          .0000       .10000E+07
    19 'norm      '    .16447E-03   1.0000          .0000       .10000E+07
    20 'norm      '    .15072E-03   1.0000          .0000       .10000E+07
    21 'Prefactor '    30.887       1.0000          .0000       .10000E+07
    22 'Prefactor '    .14113E-02   1.0000          .0000       .10000E+07
    23 'Prefactor '    64.941       1.0000          .0000       .10000E+07
    24 'Prefactor '    .28121E-03   1.0000          .0000       .10000E+07
    25 'Prefactor '    16.128       1.0000          .0000       .10000E+07
    26 'Prefactor '    .71353E-02   1.0000          .0000       .10000E+07
    27 'Normalizat'    1.0198       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .57055       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=   1587.163     FROM MIGRAD    STATUS=CONVERGED    803 CALLS     3886 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .55511E-09    61.224       -.13953E-07** at limit **
   2  Prefactor     .22204E-09    23.589       -.63553E-08** at limit **
   3  Prefactor     .55511E-10    45.237        .84993E-09** at limit **
   4  Prefactor     .55511E-10    4.7010       -.41755E-07** at limit **
   5  Prefactor     .11102E-09    26.206       -.10440E-05** at limit **
   6  Prefactor     .72164E-09    28.490       -.48196E-07** at limit **
   7  Prefactor     .16653E-08    102.87       -.22440E-06** at limit **
   8  Prefactor     .16653E-09    9.9644       -.63853E-07** at limit **
   9  norm          60.933        47.058        .10991E-06    .88412E-03
  10  norm          .27756E-09    2933.9        .38903E-07** at limit **
  11  norm          .12768E-08    3548.4        .41226E-07** at limit **
  12  norm           .0000        22.517        .24631E-08** at limit **
  13  norm          .11102E-09    50.373       -.91122E-07** at limit **
  14  Prefactor     5453.7        2072.5        .57869E-07    .37828E-03
  15  Prefactor     .55511E-09    156.91        .21001E-07** at limit **
  16  Prefactor      .0000        107.94       -.24561E-07** at limit **
  17  norm           .0000        10.184        .25421E-08** at limit **
  18  Prefactor     .55511E-09    215.24        .21013E-07** at limit **
  19  norm          .26645E-08    143.49        .66716E-07** at limit **
  20  norm           .0000        6.4630        .37660E-08** at limit **
  21  Prefactor     30.923        30.421       -.10123E-07   -.12387E-03
  22  Prefactor      .0000        40.815        .12792E-08** at limit **
  23  Prefactor     64.977        70.691        .11497E-07   -.30818E-04
  24  Prefactor      .0000        6.4728       -.17245E-07** at limit **
  25  Prefactor     16.170        13.376       -.62319E-08   -.36665E-04
  26  Prefactor      .0000        45.106       -.20712E-07** at limit **
  27  Normalizat    1.0225        .36073       -.46782E-05    .21120E-03
  28  Prefactor     .56875        .38445        .90010E-05    .11512E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.55112e-10
  Prefactor  = 2.22045e-10
  Prefactor  = 5.55112e-11
  Prefactor  = 5.55112e-11
  Prefactor  = 1.11022e-10
  Prefactor  = 7.21645e-10
  Prefactor  = 1.66533e-09
  Prefactor  = 1.66533e-10
  norm       = 60.9334
  norm       = 2.77556e-10
  norm       = 1.27676e-09
  norm       = 0
  norm       = 1.11022e-10
  Prefactor  = 5453.71
  Prefactor  = 5.55112e-10
  Prefactor  = 0
  norm       = 0
  Prefactor  = 5.55112e-10
  norm       = 2.66454e-09
  norm       = 0
  Prefactor  = 30.9231
  Prefactor  = 0
  Prefactor  = 64.9774
  Prefactor  = 0
  Prefactor  = 16.1696
  Prefactor  = 0
  Normalizat = 1.02249
  Prefactor  = 0.568754
 **********
 **   18 **HESSE 
 **********

 FCN=   1587.163     FROM HESSE     STATUS=OK           503 CALLS     4389 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .55511E-09    61.428        .30455E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .22204E-09    23.648        .18902E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .55511E-10    45.365        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .55511E-10    4.7170        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .11102E-09    26.137        .28637E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .72164E-09    29.503        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .16653E-08    106.40        .46964E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .16653E-09    9.9963        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          60.933        46.980        .25646E-04   -1.5552    
  10  norm          .27756E-09    2955.8        .89724E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .12768E-08    3568.9        .24426E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm           .0000        22.526        .18465E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .11102E-09    50.895        .27635E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5453.7        2075.6        .27056E-05   -1.4230    
  15  Prefactor     .55511E-09    157.43        .18062E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor      .0000        107.96        .22029E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm           .0000        10.197        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .55511E-09    216.08        .15579E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .26645E-08    145.75        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm           .0000        6.4735        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     30.923        30.424        .71984E-05   -1.5597    
  22  Prefactor      .0000        40.854        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     64.977        70.691        .24820E-04   -1.5547    
  24  Prefactor      .0000        6.4752        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     16.170        13.371        .99652E-05   -1.5628    
  26  Prefactor      .0000        45.070        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.0225        .36121        .20455E-03   -.92281    
  28  Prefactor     .56875        .38402        .29941E-03   -1.0892    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.08163e-10
Minuit parameter uncertainties:
  1  0.000364996
  2  0.000145034
  3  0.00011
  4  3.83121e-05
  5  9.82038e-05
  6  0.000293191
  7  0.000846015
  8  8.74646e-05
  9  46.9801
  10  0.00185204
  11  0.0042619
  12  4.06883e-05
  13  0.000153553
  14  2075.88
  15  0.000579915
  16  1.07786e-05
  17  2.48813e-05
  18  0.000707679
  19  0.00125038
  20  2.37642e-05
  21  30.4244
  22  3.78727e-05
  23  70.6921
  24  8.11382e-06
  25  13.3708
  26  4.55294e-05
  27  0.362084
  28  0.385798
Done.

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

Extracting fit parameters...

4FGL J0004.4-4001
   Spectrum: PowerLaw
16     Prefactor:  5.551e-10  3.650e-04  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:  5.688e-01  3.858e-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.022e+00  3.621e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 1.118 -40.025
Photon Flux Upper Limit: 1.32e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.00e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/534313/likelihoodResults_698371201_698630401_4FGL_J0004.4-4001_daily_bin1771.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): 102
logL (Free Index) = 1587.17062636
delta logL = -0.00777478383861

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1587.16285159
delta logL = -1.27492967295e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .30981E-06   1.0000          .0000       .10000E+07
     2 'Index     '    .43375       1.0000          .0000       10.000    
     3 'Normalizat'    1.0225       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .56879       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=   1587.151     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      275 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .18826        23.785        .42118E-03** at limit **
   2  Index         4.1917        7.0959        .60205E-01    .62895E-04
   3  Normalizat    1.0091        .29903        .43014E-01    .76194E-04
   4  Prefactor     .57785        .32295        .67213E-01    .60889E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.188261
  Index      = 4.19173
  Normalizat = 1.00912
  Prefactor  = 0.577855
 **********
 **   18 **HESSE 
 **********

 FCN=   1587.151     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      306 TOTAL
                     EDM=   .32E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .18826        398.83        .10661E-04   -1.5717    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         4.1917        5.0984        .15110E-01   -.16237    
   3  Normalizat    1.0091        .24124        .20546E-03   -.92726    
   4  Prefactor     .57785        .26633        .29748E-03   -1.0853    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.2166e-06
Minuit parameter uncertainties:
  1  17.3314
  2  31.2003
  3  0.241497
  4  0.26691
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/534313': 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): 102
logL (Free Index) = 1587.15067951
delta logL = 0.0121720683642

Extracting fit parameters...

4FGL J0004.4-4001
   Spectrum: PowerLaw
16     Prefactor:  1.883e-01  1.733e+01  0.000e+00  1.000e+06 ( 1.000e-14)
17         Index:  4.192e+00  3.120e+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:  5.779e-01  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:  1.009e+00  2.415e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 1.118 -40.025

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/534313/cmap_HighResolution_698371201_698630401_4FGL_J0004.4-4001_daily_bin1771.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.00e-02', job_status='DONE', photon_flux_upper_limit='1.32e-07', time_completed='2023-02-21 00:14:25.051063', job_id='534313', GAL2='0.58', fit_tolerance='1e-08', EG2='1.01', EG='1.02', time_epoch_completed='1676967265.05', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.57', dlogl='1.22e-02', ts2='0.03', photon_index_error='0.00', photon_index='2.15' WHERE bin_id='1771' AND source_name='4FGL J0004.4-4001' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Feb 21 00:14:25 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0241>
Subject: Job 534313: <4FGL_J0004.4-4001_daily_bin1771> in cluster <slac> Done

Job <4FGL_J0004.4-4001_daily_bin1771> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Feb 21 00:04:57 2023
Job was executed on host(s) <bullet0241>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Feb 21 00:04:58 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Feb 21 00:04:58 2023
Terminated at Tue Feb 21 00:14:25 2023
Results reported at Tue Feb 21 00:14:25 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0004.4-4001_daily_bin1771 1.1184 -40.0251 698371201 698630401 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 :                                   461.02 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             283.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   567 sec.
    Turnaround time :                            568 sec.

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

