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


Performing analysis on: 4FGL_J0004.4-4001_daily_bin1694
RA = 1.1184, Dec = -40.0251
tmin = 678412801, tmax = 678672001
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='638118', job_status='RUN', time_executed='2022-07-05 00:07:34.832652', time_epoch_executed='1657004854.83' WHERE source_name='4FGL J0004.4-4001' and cadence='daily' and bin_id='1694'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/638118

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/638118/ft1_4FGL_J0004.4-4001_daily_bin1694.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/638118/ft2_4FGL_J0004.4-4001_daily_bin1694.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/638118/ft1_4FGL_J0004.4-4001_daily_bin1694.fits outfile=/scratch/kocevski/638118/ft1_filteredMKT_4FGL_J0004.4-4001_daily_bin1694.fits ra=1.1184 dec=-40.0251 rad=12.0 tmin=678412801.0 tmax=678672001.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.09
user 2.86
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/638118/ft2_4FGL_J0004.4-4001_daily_bin1694.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/638118/ft1_filteredMKT_4FGL_J0004.4-4001_daily_bin1694.fits evtable="EVENTS" outfile="/scratch/kocevski/638118/ft1_filtered_4FGL_J0004.4-4001_daily_bin1694.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.48
user 0.27
sys 0.17

Number of photons that the gtmktime cut: 391

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/638118/ft1_filtered_4FGL_J0004.4-4001_daily_bin1694.fits" evtable="EVENTS" scfile=/scratch/kocevski/638118/ft2_4FGL_J0004.4-4001_daily_bin1694.fits sctable="SC_DATA" outfile=/scratch/kocevski/638118/ltcube_678412801_678672001_4FGL_J0004.4-4001_daily_bin1694.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/638118/ft2_4FGL_J0004.4-4001_daily_bin1694.fits
.....................!
real 13.84
user 13.47
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/638118/ft1_filtered_4FGL_J0004.4-4001_daily_bin1694.fits evtable="EVENTS" scfile=/scratch/kocevski/638118/ft2_4FGL_J0004.4-4001_daily_bin1694.fits sctable="SC_DATA" expcube=/scratch/kocevski/638118/ltcube_678412801_678672001_4FGL_J0004.4-4001_daily_bin1694.fits outfile=/scratch/kocevski/638118/expmap_678412801_678672001_4FGL_J0004.4-4001_daily_bin1694.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/638118/ltcube_678412801_678672001_4FGL_J0004.4-4001_daily_bin1694.fits
.....................!
real 157.30
user 153.18
sys 3.64

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/638118/ft1_filtered_4FGL_J0004.4-4001_daily_bin1694.fits scfile=/scratch/kocevski/638118/ft2_4FGL_J0004.4-4001_daily_bin1694.fits outfile=/scratch/kocevski/638118/cmap_678412801_678672001_4FGL_J0004.4-4001_daily_bin1694.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.50
user 0.32
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/638118/ft1_filtered_4FGL_J0004.4-4001_daily_bin1694.fits scfile=/scratch/kocevski/638118/ft2_4FGL_J0004.4-4001_daily_bin1694.fits outfile=/scratch/kocevski/638118/cmap_HighResolution_678412801_678672001_4FGL_J0004.4-4001_daily_bin1694.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.48
user 0.32
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/638118/ft1_filtered_4FGL_J0004.4-4001_daily_bin1694.fits evtable="EVENTS" scfile=/scratch/kocevski/638118/ft2_4FGL_J0004.4-4001_daily_bin1694.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/638118/Model_4FGL_J0004.4-4001_daily_bin1694.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/638118/ft1_filtered_4FGL_J0004.4-4001_daily_bin1694.fits.....................!
real 31.54
user 29.83
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    47.227       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .13708E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .41258E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.9002       1.0000         .10000E-03   10000.    
     5 'Prefactor '    27.088       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .52334E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .13137E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.9744       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .47117E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .28716E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    10.839       1.0000         .10000E-03   10000.    
    12 'norm      '    .28896E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    5.3185       1.0000         .10000E-03   10000.    
    14 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .28051E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .13792E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    52.323       1.0000         .10000E-03   10000.    
    18 'Prefactor '    61.597       1.0000         .10000E-03   10000.    
    19 'norm      '    .10137E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .55314E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .70448       1.0000         .10000E-03   10000.    
    22 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .30160E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    1.9980       1.0000         .10000E-03   10000.    
    25 'Prefactor '    23.256       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .32520E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    13.647       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0957       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .80685       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=   4385.632     FROM MIGRAD    STATUS=CONVERGED    196 CALLS     2857 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     48.674        31.803        .16347E-05    .10916E-01
   2  Prefactor     .10000E-03    37.220        .32971E-06** at limit **
   3  Prefactor     .10000E-03    29.975        .10596E-05** at limit **
   4  Prefactor     3.8345        4.5614       -.35709E-07    .11197E-03
   5  Prefactor     27.382        25.636       -.43879E-06   -.49944E-02
   6  Prefactor     .10000E-03    89.779        .33138E-05** at limit **
   7  Prefactor     .10000E-03    13.623        .24434E-05** at limit **
   8  Prefactor     5.0171        4.8428        .89898E-07    .35279E-04
   9  Prefactor     .10000E-03    15.418       -.10614E-05** at limit **
  10  Prefactor     .10000E-03    4.1717       -.25415E-06** at limit **
  11  norm          10.331        24.267        .24705E-05    .12355E-02
  12  norm          .10000E-03    10.153        .17004E-06** at limit **
  13  norm          5.3601        8.3941        .53000E-06   -.14309E-03
  14  norm          .10000E-03    2.2883       -.31748E-07** at limit **
  15  norm          .10000E-03    8.3982        .59571E-06** at limit **
  16  Prefactor     .10000E-03    5.2721       -.21456E-06** at limit **
  17  Prefactor     53.072        27.054        .78987E-06   -.14750E-01
  18  Prefactor     59.664        36.807       -.18763E-05    .24804E-02
  19  norm          .10000E-03    10.925       -.28713E-05** at limit **
  20  Prefactor     .10000E-03    7.1149       -.36545E-06** at limit **
  21  norm          .70600        1.7275       -.13235E-06    .58868E-04
  22  norm          .10000E-03    1.8498       -.45991E-07** at limit **
  23  Prefactor     .10000E-03    3.9748       -.20862E-06** at limit **
  24  Prefactor     1.8334        36.164        .20955E-05   -.36680E-02
  25  Prefactor     23.245        34.110        .10301E-06    .45935E-02
  26  Prefactor     .10000E-03    8.1778       -.32824E-06** at limit **
  27  Prefactor     .10000E-03    11.093       -.53276E-06** at limit **
  28  Prefactor     16.476        54.762        .53043E-05   -.55070E-04
  29  Normalizat    1.0940        .24043        .12464E-06    .12612E-03
  30  Prefactor     .80762        .26418       -.48019E-06    .60259E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 48.674
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.83449
  Prefactor  = 27.3824
  Prefactor  = 0.000100003
  Prefactor  = 0.000100001
  Prefactor  = 5.01707
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  norm       = 10.331
  norm       = 0.0001
  norm       = 5.36014
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 53.0725
  Prefactor  = 59.6637
  norm       = 0.000100003
  Prefactor  = 0.0001
  norm       = 0.706001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.83337
  Prefactor  = 23.2455
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.4763
  Normalizat = 1.094
  Prefactor  = 0.807622
 **********
 **   18 **HESSE 
 **********

 FCN=   4385.632     FROM HESSE     STATUS=OK           658 CALLS     3515 TOTAL
                     EDM=   .27E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     48.674        54.283        .14587E-02   -1.4311    
   2  Prefactor     .10000E-03    36.847        .90914E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    29.893        .97279E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.8345        4.7039        .51074E-02   -1.5316    
   5  Prefactor     27.382        30.967        .19243E-02   -1.4661    
   6  Prefactor     .10000E-03    88.339        .92815E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    12.985        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.0171        4.8824        .45078E-02   -1.5260    
   9  Prefactor     .10000E-03    15.373        .10593E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.1397        .10704E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          10.331        24.354        .30424E-02   -1.5065    
  12  norm          .10000E-03    9.9020        .10703E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          5.3601        8.6247        .43568E-02   -1.5245    
  14  norm          .10000E-03    2.2860        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    8.2721        .10709E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    5.1958        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     53.072        50.267        .13862E-02   -1.4250    
  18  Prefactor     59.664        67.387        .12781E-02   -1.4162    
  19  norm          .10000E-03    4.2726        .62631E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    7.0782        .10553E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .70600        1.8726        .12079E-01   -1.5540    
  22  norm          .10000E-03    1.8364        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    3.9125        .10694E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     1.8334        114.13        .73256E-02   -1.5437    
  25  Prefactor     23.245        53.215        .20766E-02   -1.4743    
  26  Prefactor     .10000E-03    8.0620        .10678E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    2.9320        .62716E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     16.476        72.732        .27106E-02   -1.4896    
  29  Normalizat    1.0940        .20935        .38176E-01   -.89945    
  30  Prefactor     .80762        .22316        .43806E-01   -.99448    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.72089e-06
Minuit parameter uncertainties:
  1  54.3381
  2  0.000256402
  3  0.000138481
  4  4.70439
  5  30.9852
  6  0.00110002
  7  0.000266415
  8  4.88279
  9  0.0005539
  10  1.64814e-05
  11  24.3778
  12  1.74341e-05
  13  8.62673
  14  1.2086e-06
  15  5.61967e-05
  16  1.33775e-05
  17  50.3073
  18  67.4736
  19  0.000217797
  20  2.94524e-05
  21  1.8728
  22  1.80328e-06
  23  1.26584e-05
  24  28.9875
  25  53.3243
  26  3.27656e-05
  27  3.82647e-05
  28  69.3759
  29  0.209506
  30  0.223411
Done.

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

Extracting fit parameters...

4FGL J0004.4-4001
   Spectrum: PowerLaw
16     Prefactor:  4.867e+01  5.434e+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:  8.076e-01  2.234e-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.094e+00  2.095e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.42
Ra Dec: 1.118 -40.025
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 2.49e-08 +/- 2.78e-08
Energy Flux (Fixed Index): 1.24e-05 +/- 1.39e-05

TS (Fixed Index): 1.42
Ra Dec: 1.118 -40.025
Photon Flux Upper Limit: 9.51e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.21e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/638118/likelihoodResults_678412801_678672001_4FGL_J0004.4-4001_daily_bin1694.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) = 4385.62657968
delta logL = 0.00540112591534

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4385.62327549
delta logL = 0.00870531148394

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    53.547       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9959       1.0000          .0000       10.000    
     3 'Normalizat'    1.1007       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80282       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=   4385.623     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      266 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     53.600        70.871        .27406E-03    .66164E-04
   2  Index         1.9951        1.1663        .11226E-01    .19641E-03
   3  Normalizat    1.1007        .23708        .21200E-03   -.55127E-04
   4  Prefactor     .80293        .26497        .27672E-03    .23130E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 53.5998
  Index      = 1.99505
  Normalizat = 1.10074
  Prefactor  = 0.802926
 **********
 **   18 **HESSE 
 **********

 FCN=   4385.623     FROM HESSE     STATUS=OK            25 CALLS      291 TOTAL
                     EDM=   .87E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     53.600        68.254        .10962E-04   -1.4242    
   2  Index         1.9951        1.1234        .22452E-02   -.64474    
   3  Normalizat    1.1007        .23666        .84801E-05   -.89728    
   4  Prefactor     .80293        .26495        .11069E-04   -.99621    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.73438e-11
Minuit parameter uncertainties:
  1  68.3535
  2  1.13878
  3  0.236893
  4  0.265369
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/638118': 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) = 4385.62327474
delta logL = 0.00870606495846

Extracting fit parameters...

4FGL J0004.4-4001
   Spectrum: PowerLaw
16     Prefactor:  5.360e+01  6.835e+01  1.000e-04  1.000e+04 ( 1.000e-14)
17         Index:  1.995e+00  1.139e+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:  8.029e-01  2.654e-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.101e+00  2.369e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.44
Ra Dec: 1.118 -40.025
Photon Index (Free Index): 2.00 +/- 1.14
Photon Flux (Free Index): 2.02e-08 +/- 4.16e-08
Energy Flux (Free Index): 1.41e-05 +/- 2.26e-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/638118/cmap_HighResolution_678412801_678672001_4FGL_J0004.4-4001_daily_bin1694.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.21e-03', comment='SUCCESS', photon_flux='2.49e-08', energy_flux2='1.41e-05', photon_flux_error='2.78e-08', dlogl='8.71e-03', energy_flux='1.24e-05', photon_flux2='2.02e-08', job_status='DONE', time_completed='2022-07-05 00:17:06.897090', photon_index_error2='1.14', photon_index2='2.00', ts='1.42', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', photon_flux_upper_limit='9.51e-08', energy_flux_error2='2.26e-05', EG='1.09', time_epoch_completed='1657005426.9', return_code='0', job_id='638118', GAL2='0.80', EG2='1.10', return_code2='0', energy_flux_error='1.39e-05', photon_flux_error2='4.16e-08', ts2='1.44', photon_index='2.15' WHERE bin_id='1694' AND source_name='4FGL J0004.4-4001' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Jul  5 00:17:06 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0189>
Subject: Job 638118: <4FGL_J0004.4-4001_daily_bin1694> in cluster <slac> Done

Job <4FGL_J0004.4-4001_daily_bin1694> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Tue Jul  5 00:04:38 2022
Job was executed on host(s) <bullet0189>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jul  5 00:05:23 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jul  5 00:05:23 2022
Terminated at Tue Jul  5 00:17:07 2022
Results reported at Tue Jul  5 00:17:07 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0004.4-4001_daily_bin1694 1.1184 -40.0251 678412801 678672001 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 :                                   568.27 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             273.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   704 sec.
    Turnaround time :                            749 sec.

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

