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


Performing analysis on: 4FGL_J0004.4-4737_daily_bin1698
RA = 1.1091, Dec = -47.6233
tmin = 679449601, tmax = 679708801
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='916226', job_status='RUN', time_executed='2022-07-17 00:05:10.757196', time_epoch_executed='1658041510.76' WHERE source_name='4FGL J0004.4-4737' and cadence='daily' and bin_id='1698'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/916226

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/916226/ft1_4FGL_J0004.4-4737_daily_bin1698.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/916226/ft2_4FGL_J0004.4-4737_daily_bin1698.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/916226/ft1_4FGL_J0004.4-4737_daily_bin1698.fits outfile=/scratch/kocevski/916226/ft1_filteredMKT_4FGL_J0004.4-4737_daily_bin1698.fits ra=1.1091 dec=-47.6233 rad=12.0 tmin=679449601.0 tmax=679708801.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.60
user 3.23
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/916226/ft2_4FGL_J0004.4-4737_daily_bin1698.fits

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

Number of photons that the gtmktime cut: 554

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/916226/ft1_filtered_4FGL_J0004.4-4737_daily_bin1698.fits" evtable="EVENTS" scfile=/scratch/kocevski/916226/ft2_4FGL_J0004.4-4737_daily_bin1698.fits sctable="SC_DATA" outfile=/scratch/kocevski/916226/ltcube_679449601_679708801_4FGL_J0004.4-4737_daily_bin1698.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/916226/ft2_4FGL_J0004.4-4737_daily_bin1698.fits
.....................!
real 12.37
user 11.85
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/916226/ft1_filtered_4FGL_J0004.4-4737_daily_bin1698.fits evtable="EVENTS" scfile=/scratch/kocevski/916226/ft2_4FGL_J0004.4-4737_daily_bin1698.fits sctable="SC_DATA" expcube=/scratch/kocevski/916226/ltcube_679449601_679708801_4FGL_J0004.4-4737_daily_bin1698.fits outfile=/scratch/kocevski/916226/expmap_679449601_679708801_4FGL_J0004.4-4737_daily_bin1698.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/916226/ltcube_679449601_679708801_4FGL_J0004.4-4737_daily_bin1698.fits
.....................!
real 193.12
user 185.48
sys 5.47

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 187 point sources and 0 extended sources

Setting source of interest to:
4FGL J0004.4-4737 @ 1.1091 -47.6233

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/916226/ft1_filtered_4FGL_J0004.4-4737_daily_bin1698.fits scfile=/scratch/kocevski/916226/ft2_4FGL_J0004.4-4737_daily_bin1698.fits outfile=/scratch/kocevski/916226/cmap_679449601_679708801_4FGL_J0004.4-4737_daily_bin1698.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.1091 yref=-47.6233 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 2.15
user 0.38
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/916226/ft1_filtered_4FGL_J0004.4-4737_daily_bin1698.fits scfile=/scratch/kocevski/916226/ft2_4FGL_J0004.4-4737_daily_bin1698.fits outfile=/scratch/kocevski/916226/cmap_HighResolution_679449601_679708801_4FGL_J0004.4-4737_daily_bin1698.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.1091 yref=-47.6233 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.81
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/916226/ft1_filtered_4FGL_J0004.4-4737_daily_bin1698.fits evtable="EVENTS" scfile=/scratch/kocevski/916226/ft2_4FGL_J0004.4-4737_daily_bin1698.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/916226/Model_4FGL_J0004.4-4737_daily_bin1698.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/916226/ft1_filtered_4FGL_J0004.4-4737_daily_bin1698.fits.....................!
real 59.96
user 42.57
sys 1.35

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/916226/ft1_filtered_4FGL_J0004.4-4737_daily_bin1698.fits', '/scratch/kocevski/916226/ft2_4FGL_J0004.4-4737_daily_bin1698.fits', expMap='/scratch/kocevski/916226/expmap_679449601_679708801_4FGL_J0004.4-4737_daily_bin1698.fits', expCube='/scratch/kocevski/916226/ltcube_679449601_679708801_4FGL_J0004.4-4737_daily_bin1698.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/916226/Model_4FGL_J0004.4-4737_daily_bin1698.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0004.4-4737'

4FGL J0004.4-4737
   Spectrum: PowerLaw
18     Prefactor:  7.346e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
19         Index:  2.366e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
20         Scale:  9.156e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/916226/ft1_filtered_4FGL_J0004.4-4737_daily_bin1698.fits
Spacecraft file(s): /scratch/kocevski/916226/ft2_4FGL_J0004.4-4737_daily_bin1698.fits
Exposure map: /scratch/kocevski/916226/expmap_679449601_679708801_4FGL_J0004.4-4737_daily_bin1698.fits
Exposure cube: /scratch/kocevski/916226/ltcube_679449601_679708801_4FGL_J0004.4-4737_daily_bin1698.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/916226/Model_4FGL_J0004.4-4737_daily_bin1698.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) = 5989.34429051

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.636       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    21.681       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.2657       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10147E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.0526       1.0000         .10000E-03   10000.    
     9 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.222       1.0000         .10000E-03   10000.    
    11 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    5.9364       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.5618       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.2933       1.0000         .10000E-03   10000.    
    22 'norm      '    .13248E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10917E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    20.540       1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    2.9239       1.0000         .10000E-03   10000.    
    28 'Prefactor '    3.0715       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .99073       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .90661       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5940E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5989.334     FROM MIGRAD    STATUS=CONVERGED    747 CALLS     3887 TOTAL
                     EDM=   .58E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.646        42.821        .13659E-04    .29641E-04
   2  Prefactor     .10000E-03    7.0190       -.27075E-06** at limit **
   3  Prefactor     .10000E-03    16.053       -.19725E-05** at limit **
   4  Prefactor     21.681        11.826        .90105E-07   -.18563E-04
   5  Prefactor     5.2653        6.6545        .65042E-07   -.68641E-03
   6  Prefactor     .10000E-03    12.597        .11775E-05** at limit **
   7  Prefactor     .10007E-03    4.5875       -.11022E-05** at limit **
   8  Prefactor     5.0528        5.0980        .76581E-06    .49335E-04
   9  norm          .10000E-03    27.812        .85224E-05** at limit **
  10  Prefactor     10.224        19.310        .10107E-06    .90791E-06
  11  norm          .10000E-03    14.490        .23622E-05** at limit **
  12  Prefactor     .10000E-03    25.755       -.18344E-05** at limit **
  13  Prefactor     .10000E-03    4.4913        .13062E-06** at limit **
  14  norm          .10000E-03    9.0892       -.26123E-06** at limit **
  15  norm          5.9364        6.2217       -.15397E-07   -.17454E-04
  16  norm          .10000E-03    2.2355        .79146E-08** at limit **
  17  Prefactor     9.5616        6.3439        .30480E-08   -.98504E-05
  18  Prefactor     .10000E-03    8.8779        .28123E-05** at limit **
  19  norm          .10000E-03    1.8231        .10152E-06** at limit **
  20  Prefactor     .10000E-03    4.3496        .21256E-06** at limit **
  21  norm          1.2932        1.1773       -.79267E-07   -.34364E-04
  22  norm          .10000E-03    2.1082       -.57536E-07** at limit **
  23  Prefactor     .10000E-03    59.746       -.29354E-05** at limit **
  24  Prefactor     .10000E-03    .83300        .85018E-08** at limit **
  25  Prefactor     20.541        20.200        .34423E-06    .27598E-04
  26  norm          .10000E-03    9.5256       -.36962E-05** at limit **
  27  Prefactor     2.9235        2.2583        .27454E-06   -.23898E-02
  28  Prefactor     3.0717        2.9330       -.17344E-07    .49751E-04
  29  Normalizat    .99071        .16589       -.34045E-06    .22819E-03
  30  Prefactor     .90665        .18315       -.34762E-06    .13613E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.6462
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.6811
  Prefactor  = 5.26528
  Prefactor  = 0.0001
  Prefactor  = 0.000100071
  Prefactor  = 5.05284
  norm       = 0.0001
  Prefactor  = 10.2237
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 5.93637
  norm       = 0.0001
  Prefactor  = 9.56163
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.2932
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.5414
  norm       = 0.0001
  Prefactor  = 2.92346
  Prefactor  = 3.0717
  Normalizat = 0.990708
  Prefactor  = 0.906651
 **********
 **   18 **HESSE 
 **********

 FCN=   5989.334     FROM HESSE     STATUS=OK           584 CALLS     4471 TOTAL
                     EDM=   .79E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.646        42.864        .10129E-03   -1.4917    
   2  Prefactor     .10000E-03    7.0286        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    16.093        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     21.681        11.838        .86021E-04   -1.4776    
   5  Prefactor     5.2653        6.8427        .87580E-03   -1.5249    
   6  Prefactor     .10000E-03    12.609        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10007E-03    24.657        .31110E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.0528        5.0743        .15268E-03   -1.5258    
   9  norm          .10000E-03    27.948        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     10.224        19.227        .12532E-03   -1.5068    
  11  norm          .10000E-03    14.556        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    25.777        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    4.4958        .16016E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    9.1560        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          5.9364        6.2213        .16481E-03   -1.5221    
  16  norm          .10000E-03    2.2577        .11299E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     9.5616        6.3368        .12960E-03   -1.5089    
  18  Prefactor     .10000E-03    8.8915        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    1.8631        .10195E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.3566        .15758E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.2932        1.1760        .38916E-04   -1.5481    
  22  norm          .10000E-03    15.397        .21490E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    62.357        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    .83582        .68928E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     20.541        20.214        .88377E-04   -1.4801    
  26  norm          .10000E-03    9.5415        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     2.9235        4.8284        .10318E-02   -1.5366    
  28  Prefactor     3.0717        2.9336        .12462E-03   -1.5357    
  29  Normalizat    .99071        .19835        .21815E-03   -.93342    
  30  Prefactor     .90665        .21877        .26038E-03   -.95909    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.88759e-09
Minuit parameter uncertainties:
  1  42.9486
  2  3.8734e-07
  3  8.47086e-06
  4  11.8396
  5  6.84372
  6  2.29463e-05
  7  0.00265644
  8  5.07473
  9  9.96234e-05
  10  19.239
  11  1.46289e-05
  12  1.64366e-05
  13  3.15663e-06
  14  2.74139e-06
  15  6.22193
  16  5.92583e-07
  17  6.33729
  18  1.98728e-05
  19  2.26039e-07
  20  3.01198e-06
  21  1.176
  22  4.27018e-05
  23  0.000169343
  24  4.32167e-07
  25  20.2211
  26  2.46087e-05
  27  4.82907
  28  2.93372
  29  0.198493
  30  0.218982
Done.

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

Extracting fit parameters...

4FGL J0004.4-4737
   Spectrum: PowerLaw
18     Prefactor:  1.000e-04  3.873e-07  1.000e-04  1.000e+04 ( 1.000e-13)
19         Index:  2.366e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
20         Scale:  9.156e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
591    Prefactor:  9.067e-01  2.190e-01  0.000e+00  1.000e+01 ( 1.000e+00)
592        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
593        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
590   Normalization:  9.907e-01  1.985e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 1.109 -47.623
Photon Flux Upper Limit: 4.47e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.45e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/916226/likelihoodResults_679449601_679708801_4FGL_J0004.4-4737_daily_bin1698.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) = 5989.33431205
delta logL = -0.000677465411172

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5989.33363464
delta logL = -5.49998731003e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3535       1.0000          .0000       10.000    
     3 'Normalizat'    .99078       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90657       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5940E+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=   5989.334     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      234 TOTAL
                     EDM=   .71E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10136E-03    129.73        .18142E-02** at limit **
   2  Index         2.2777        6.1233        .50000        .11744E-04
   3  Normalizat    .99071        .16474E-01    .21815E-03    .10840E-04
   4  Prefactor     .90665        .18994E-01    .26038E-03    .75098E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101356
  Index      = 2.27768
  Normalizat = 0.990707
  Prefactor  = 0.906652
 **********
 **   18 **HESSE 
 **********

 FCN=   5989.334     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      263 TOTAL
                     EDM=   .32E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10136E-03    519.55        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2777        6.1241        .50000       -.57575    
   3  Normalizat    .99071        .35621E-01    .87262E-05   -.93342    
   4  Prefactor     .90665        .41068E-01    .10415E-04   -.95909    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.22482e-08
Minuit parameter uncertainties:
  1  0.0535617
  2  1294.93
  3  0.0356219
  4  0.0410696
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/916226': 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) = 5989.3336344
delta logL = 1.83016709343e-07

Extracting fit parameters...

4FGL J0004.4-4737
   Spectrum: PowerLaw
18     Prefactor:  1.014e-04  5.356e-02  1.000e-04  1.000e+04 ( 1.000e-13)
19         Index:  2.278e+00  1.295e+03  0.000e+00  1.000e+01 (-1.000e+00)
20         Scale:  9.156e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
591    Prefactor:  9.067e-01  4.107e-02  0.000e+00  1.000e+01 ( 1.000e+00)
592        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
593        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
590   Normalization:  9.907e-01  3.562e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 1.109 -47.623

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/916226/cmap_HighResolution_679449601_679708801_4FGL_J0004.4-4737_daily_bin1698.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.45e-03', job_status='DONE', photon_flux_upper_limit='4.47e-08', time_completed='2022-07-17 00:19:38.237342', job_id='916226', GAL2='0.91', fit_tolerance='1e-08', EG2='0.99', EG='0.99', time_epoch_completed='1658042378.24', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='1.83e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='1698' AND source_name='4FGL J0004.4-4737' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Jul 17 00:19:38 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0218>
Subject: Job 916226: <4FGL_J0004.4-4737_daily_bin1698> in cluster <slac> Done

Job <4FGL_J0004.4-4737_daily_bin1698> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun Jul 17 00:04:29 2022
Job was executed on host(s) <bullet0218>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jul 17 00:04:30 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Jul 17 00:04:30 2022
Terminated at Sun Jul 17 00:19:39 2022
Results reported at Sun Jul 17 00:19:39 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0004.4-4737_daily_bin1698 1.1091 -47.6233 679449601 679708801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0004.4-4737 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   840.34 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             319.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   908 sec.
    Turnaround time :                            910 sec.

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

