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


Performing analysis on: 4FGL_J0004.4-4001_daily_bin1762
RA = 1.1184, Dec = -40.0251
tmin = 696038401, tmax = 696297601
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='95685', job_status='RUN', time_executed='2023-01-25 00:06:43.147957', time_epoch_executed='1674634003.15' WHERE source_name='4FGL J0004.4-4001' and cadence='daily' and bin_id='1762'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/95685

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/95685/ft1_4FGL_J0004.4-4001_daily_bin1762.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/95685/ft2_4FGL_J0004.4-4001_daily_bin1762.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/95685/ft1_4FGL_J0004.4-4001_daily_bin1762.fits outfile=/scratch/kocevski/95685/ft1_filteredMKT_4FGL_J0004.4-4001_daily_bin1762.fits ra=1.1184 dec=-40.0251 rad=12.0 tmin=696038401.0 tmax=696297601.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.69
user 3.47
sys 0.19

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

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

Number of photons that the gtmktime cut: 376

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/95685/ft1_filtered_4FGL_J0004.4-4001_daily_bin1762.fits" evtable="EVENTS" scfile=/scratch/kocevski/95685/ft2_4FGL_J0004.4-4001_daily_bin1762.fits sctable="SC_DATA" outfile=/scratch/kocevski/95685/ltcube_696038401_696297601_4FGL_J0004.4-4001_daily_bin1762.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/95685/ft2_4FGL_J0004.4-4001_daily_bin1762.fits
.....................!
real 12.90
user 12.43
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/95685/ft1_filtered_4FGL_J0004.4-4001_daily_bin1762.fits evtable="EVENTS" scfile=/scratch/kocevski/95685/ft2_4FGL_J0004.4-4001_daily_bin1762.fits sctable="SC_DATA" expcube=/scratch/kocevski/95685/ltcube_696038401_696297601_4FGL_J0004.4-4001_daily_bin1762.fits outfile=/scratch/kocevski/95685/expmap_696038401_696297601_4FGL_J0004.4-4001_daily_bin1762.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/95685/ltcube_696038401_696297601_4FGL_J0004.4-4001_daily_bin1762.fits
.....................!
real 191.66
user 185.38
sys 5.71

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/95685/ft1_filtered_4FGL_J0004.4-4001_daily_bin1762.fits scfile=/scratch/kocevski/95685/ft2_4FGL_J0004.4-4001_daily_bin1762.fits outfile=/scratch/kocevski/95685/cmap_696038401_696297601_4FGL_J0004.4-4001_daily_bin1762.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/95685/ft1_filtered_4FGL_J0004.4-4001_daily_bin1762.fits scfile=/scratch/kocevski/95685/ft2_4FGL_J0004.4-4001_daily_bin1762.fits outfile=/scratch/kocevski/95685/cmap_HighResolution_696038401_696297601_4FGL_J0004.4-4001_daily_bin1762.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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/95685/ft1_filtered_4FGL_J0004.4-4001_daily_bin1762.fits evtable="EVENTS" scfile=/scratch/kocevski/95685/ft2_4FGL_J0004.4-4001_daily_bin1762.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/95685/Model_4FGL_J0004.4-4001_daily_bin1762.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/95685/ft1_filtered_4FGL_J0004.4-4001_daily_bin1762.fits.....................!
real 37.34
user 35.29
sys 1.43

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .81039E-04   1.0000          .0000       .10000E+07
     2 'Prefactor '    .10234E-01   1.0000          .0000       .10000E+07
     3 'Prefactor '    87.467       1.0000          .0000       .10000E+07
     4 'Prefactor '    5.2397       1.0000          .0000       .10000E+07
     5 'Prefactor '    .69549       1.0000          .0000       .10000E+07
     6 'Prefactor '    3.4434       1.0000          .0000       .10000E+07
     7 'Prefactor '    42.103       1.0000          .0000       .10000E+07
     8 'Prefactor '    .78477E-04   1.0000          .0000       .10000E+07
     9 'norm      '    12.852       1.0000          .0000       .10000E+07
    10 'norm      '    .81099E-03   1.0000          .0000       .10000E+07
    11 'norm      '    .10325E-02   1.0000          .0000       .10000E+07
    12 'norm      '    .22384E-03   1.0000          .0000       .10000E+07
    13 'norm      '    5.4496       1.0000          .0000       .10000E+07
    14 'Prefactor '    5.6902       1.0000          .0000       .10000E+07
    15 'Prefactor '    29.682       1.0000          .0000       .10000E+07
    16 'Prefactor '    .16137E-01   1.0000          .0000       .10000E+07
    17 'norm      '    .88226E-04   1.0000          .0000       .10000E+07
    18 'Prefactor '    .11058E-02   1.0000          .0000       .10000E+07
    19 'norm      '    .16183E-05   1.0000          .0000       .10000E+07
    20 'norm      '    .84342E-03   1.0000          .0000       .10000E+07
    21 'Prefactor '    .10210E-03   1.0000          .0000       .10000E+07
    22 'Prefactor '    .22624E-03   1.0000          .0000       .10000E+07
    23 'Prefactor '    58.366       1.0000          .0000       .10000E+07
    24 'Prefactor '    .84010E-02   1.0000          .0000       .10000E+07
    25 'Prefactor '    18.358       1.0000          .0000       .10000E+07
    26 'Prefactor '    70.585       1.0000          .0000       .10000E+07
    27 'Normalizat'    1.1200       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .86217       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6490E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4231.483     FROM MIGRAD    STATUS=CONVERGED    230 CALLS     2568 TOTAL
                     EDM=   .60E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .15953E-05    76.656       -.12524E-06** at limit **
   2  Prefactor     .46518E-07    39.506        .52716E-06** at limit **
   3  Prefactor     92.490        51.397       -.12258E-06    .35195E-01
   4  Prefactor     5.1444        5.3776       -.11697E-06   -.16300E-02
   5  Prefactor     .73001        57.924        .20737E-06   -.45109E-02
   6  Prefactor     3.3077        6.0201        .54159E-07    .78718E-03
   7  Prefactor     43.975        17.641       -.50270E-07    .98130E-03
   8  Prefactor      .0000        5.3685       -.18453E-07** at limit **
   9  norm          13.175        18.565       -.13448E-06   -.69227E-01
  10  norm           .0000        4.3918       -.44677E-07** at limit **
  11  norm          .55511E-10    6.2804       -.10178E-06** at limit **
  12  norm           .0000        2.0055       -.11130E-06** at limit **
  13  norm          5.4902        6.5934       -.56817E-08   -.10223E-03
  14  Prefactor     5.6376        6.7982        .41352E-07    .26117E-04
  15  Prefactor     30.479        28.296       -.13481E-06   -.35452E-01
  16  Prefactor      .0000        22.697       -.13477E-07** at limit **
  17  norm           .0000        2.2730       -.39343E-07** at limit **
  18  Prefactor     .55511E-10    6.3745       -.15020E-06** at limit **
  19  norm           .0000        1.0493        .37276E-08** at limit **
  20  norm           .0000        2.8749        .94613E-07** at limit **
  21  Prefactor      .0000        3.3704        .49474E-07** at limit **
  22  Prefactor     .67453E-03    177.10        .78520E-06** at limit **
  23  Prefactor     58.390        43.367        .17168E-06   -.14016    
  24  Prefactor     .11102E-09    11.594       -.19883E-06** at limit **
  25  Prefactor     18.364        8.4781        .41443E-07   -.49751E-03
  26  Prefactor     77.317        56.814       -.26677E-06    .46352E-01
  27  Normalizat    1.1107        .28825        .64868E-05    .69019E-04
  28  Prefactor     .86554        .29458       -.57898E-05    .16301E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.59533e-06
  Prefactor  = 4.65183e-08
  Prefactor  = 92.4904
  Prefactor  = 5.14438
  Prefactor  = 0.730007
  Prefactor  = 3.30772
  Prefactor  = 43.9748
  Prefactor  = 0
  norm       = 13.1747
  norm       = 0
  norm       = 5.55112e-11
  norm       = 0
  norm       = 5.49019
  Prefactor  = 5.6376
  Prefactor  = 30.4785
  Prefactor  = 0
  norm       = 0
  Prefactor  = 5.55112e-11
  norm       = 0
  norm       = 0
  Prefactor  = 0
  Prefactor  = 0.000674534
  Prefactor  = 58.3902
  Prefactor  = 1.11022e-10
  Prefactor  = 18.364
  Prefactor  = 77.3167
  Normalizat = 1.11069
  Prefactor  = 0.86554
 **********
 **   18 **HESSE 
 **********

 FCN=   4231.483     FROM HESSE     STATUS=OK           573 CALLS     3141 TOTAL
                     EDM=   .37E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .15953E-05    85.114        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .46518E-07    39.487        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     92.490        67.607        .10693E-03   -1.5516    
   4  Prefactor     5.1444        5.4895        .43889E-03   -1.5663    
   5  Prefactor     .73001        63.306        .61076E-03   -1.5691    
   6  Prefactor     3.3077        6.7565        .54480E-03   -1.5672    
   7  Prefactor     43.975        42.982        .15413E-03   -1.5575    
   8  Prefactor      .0000        5.3672        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          13.175        33.482        .27916E-03   -1.5635    
  10  norm           .0000        4.3952        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .55511E-10    6.2976        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm           .0000        2.0061        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          5.4902        6.6002        .43020E-03   -1.5661    
  14  Prefactor     5.6376        6.8169        .42086E-03   -1.5660    
  15  Prefactor     30.479        38.001        .18358E-03   -1.5598    
  16  Prefactor      .0000        22.671        .17305E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm           .0000        2.2729        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .55511E-10    6.3996        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm           .0000        1.0426        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm           .0000        2.8672        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor      .0000        3.3694        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .67453E-03    369.49        .42118E-03   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     58.390        57.735        .13090E-03   -1.5555    
  24  Prefactor     .11102E-09    11.543        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     18.364        8.5011        .23348E-03   -1.5622    
  26  Prefactor     77.317        76.210        .11903E-03   -1.5532    
  27  Normalizat    1.1107        .23099        .53617E-01   -.89409    
  28  Prefactor     .86554        .23759        .66474E-01   -.97356    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.71171e-06
Minuit parameter uncertainties:
  1  0.0233056
  2  0.00271129
  3  67.6078
  4  5.48952
  5  13.5963
  6  6.75652
  7  42.982
  8  4.48078e-06
  9  33.4824
  10  1.09923e-05
  11  3.19625e-05
  12  1.19903e-05
  13  6.60023
  14  6.81688
  15  38.0008
  16  1.58599e-05
  17  5.02904e-06
  18  2.99473e-05
  19  2.56052e-07
  20  8.29166e-06
  21  3.08272e-06
  22  0.998521
  23  57.7357
  24  7.82361e-05
  25  8.50113
  26  76.2111
  27  0.2312
  28  0.237873
Done.

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

Extracting fit parameters...

4FGL J0004.4-4001
   Spectrum: PowerLaw
16     Prefactor:  1.595e-06  2.331e-02  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:  8.655e-01  2.379e-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.111e+00  2.312e-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: 9.27e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.04e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/95685/likelihoodResults_696038401_696297601_4FGL_J0004.4-4001_daily_bin1762.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) = 4231.48857597
delta logL = -0.00565106447539

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4231.4829271
delta logL = -2.19707453653e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10880E-04   1.0000          .0000       .10000E+07
     2 'Index     '    .10151       1.0000          .0000       10.000    
     3 'Normalizat'    1.1108       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86539       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=   4231.483     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      283 TOTAL
                     EDM=   .75E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .15543E-08    2.0284        .42118E-03** at limit **
   2  Index         1.4152        7.3266        .50000       -.68212E-10
   3  Normalizat    1.1107        .10569E-02    .37575E-01    .62209E-03
   4  Prefactor     .86554        .11790E-02    .66474E-01    .30138E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.55431e-09
  Index      = 1.41519
  Normalizat = 1.11069
  Prefactor  = 0.865536
 **********
 **   18 **HESSE 
 **********

 FCN=   4231.483     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      312 TOTAL
                     EDM=   .37E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .15543E-08    10.183        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.4152        8.4327        .50000       -.79943    
   3  Normalizat    1.1107        .23672E-02    .23696E-03   -.89409    
   4  Prefactor     .86554        .26373E-02    .29406E-03   -.97356    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.73626e-12
Minuit parameter uncertainties:
  1  0.000251781
  2  35517.3
  3  0.0023672
  4  0.00263734
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/95685': 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) = 4231.4829249
delta logL = 8.96852725418e-09

Extracting fit parameters...

4FGL J0004.4-4001
   Spectrum: PowerLaw
16     Prefactor:  1.554e-09  2.518e-04  0.000e+00  1.000e+06 ( 1.000e-14)
17         Index:  1.415e+00  3.552e+04  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:  8.655e-01  2.637e-03  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.111e+00  2.367e-03  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/95685/cmap_HighResolution_696038401_696297601_4FGL_J0004.4-4001_daily_bin1762.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.04e-03', job_status='DONE', photon_flux_upper_limit='9.27e-08', time_completed='2023-01-25 00:17:11.789055', job_id='95685', GAL2='0.87', fit_tolerance='1e-08', EG2='1.11', EG='1.11', time_epoch_completed='1674634631.79', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='8.97e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.15' WHERE bin_id='1762' AND source_name='4FGL J0004.4-4001' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Jan 25 00:17:11 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0219>
Subject: Job 95685: <4FGL_J0004.4-4001_daily_bin1762> in cluster <slac> Done

Job <4FGL_J0004.4-4001_daily_bin1762> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Jan 25 00:04:44 2023
Job was executed on host(s) <bullet0219>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jan 25 00:05:18 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Jan 25 00:05:18 2023
Terminated at Wed Jan 25 00:17:12 2023
Results reported at Wed Jan 25 00:17:12 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0004.4-4001_daily_bin1762 1.1184 -40.0251 696038401 696297601 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 :                                   629.42 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             325.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   714 sec.
    Turnaround time :                            748 sec.

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

