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


Performing analysis on: 4FGL_J0004.4-4737_daily_bin1693
RA = 1.1091, Dec = -47.6233
tmin = 678153601, tmax = 678412801
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='538831', job_status='RUN', time_executed='2022-07-02 00:06:28.975707', time_epoch_executed='1656745588.98' WHERE source_name='4FGL J0004.4-4737' and cadence='daily' and bin_id='1693'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/538831

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/538831/ft1_4FGL_J0004.4-4737_daily_bin1693.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/538831/ft2_4FGL_J0004.4-4737_daily_bin1693.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/538831/ft1_4FGL_J0004.4-4737_daily_bin1693.fits outfile=/scratch/kocevski/538831/ft1_filteredMKT_4FGL_J0004.4-4737_daily_bin1693.fits ra=1.1091 dec=-47.6233 rad=12.0 tmin=678153601.0 tmax=678412801.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.23
user 3.92
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/538831/ft2_4FGL_J0004.4-4737_daily_bin1693.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/538831/ft1_filteredMKT_4FGL_J0004.4-4737_daily_bin1693.fits evtable="EVENTS" outfile="/scratch/kocevski/538831/ft1_filtered_4FGL_J0004.4-4737_daily_bin1693.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.52
user 0.34
sys 0.15

Number of photons that the gtmktime cut: 433

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/538831/ft1_filtered_4FGL_J0004.4-4737_daily_bin1693.fits" evtable="EVENTS" scfile=/scratch/kocevski/538831/ft2_4FGL_J0004.4-4737_daily_bin1693.fits sctable="SC_DATA" outfile=/scratch/kocevski/538831/ltcube_678153601_678412801_4FGL_J0004.4-4737_daily_bin1693.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/538831/ft2_4FGL_J0004.4-4737_daily_bin1693.fits
.....................!
real 15.49
user 15.07
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/538831/ft1_filtered_4FGL_J0004.4-4737_daily_bin1693.fits evtable="EVENTS" scfile=/scratch/kocevski/538831/ft2_4FGL_J0004.4-4737_daily_bin1693.fits sctable="SC_DATA" expcube=/scratch/kocevski/538831/ltcube_678153601_678412801_4FGL_J0004.4-4737_daily_bin1693.fits outfile=/scratch/kocevski/538831/expmap_678153601_678412801_4FGL_J0004.4-4737_daily_bin1693.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/538831/ltcube_678153601_678412801_4FGL_J0004.4-4737_daily_bin1693.fits
.....................!
real 193.39
user 188.14
sys 4.54

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/538831/ft1_filtered_4FGL_J0004.4-4737_daily_bin1693.fits scfile=/scratch/kocevski/538831/ft2_4FGL_J0004.4-4737_daily_bin1693.fits outfile=/scratch/kocevski/538831/cmap_678153601_678412801_4FGL_J0004.4-4737_daily_bin1693.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 0.58
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/538831/ft1_filtered_4FGL_J0004.4-4737_daily_bin1693.fits scfile=/scratch/kocevski/538831/ft2_4FGL_J0004.4-4737_daily_bin1693.fits outfile=/scratch/kocevski/538831/cmap_HighResolution_678153601_678412801_4FGL_J0004.4-4737_daily_bin1693.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.55
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/538831/ft1_filtered_4FGL_J0004.4-4737_daily_bin1693.fits evtable="EVENTS" scfile=/scratch/kocevski/538831/ft2_4FGL_J0004.4-4737_daily_bin1693.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/538831/Model_4FGL_J0004.4-4737_daily_bin1693.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/538831/ft1_filtered_4FGL_J0004.4-4737_daily_bin1693.fits.....................!
real 38.91
user 36.52
sys 1.37

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/538831/ft1_filtered_4FGL_J0004.4-4737_daily_bin1693.fits', '/scratch/kocevski/538831/ft2_4FGL_J0004.4-4737_daily_bin1693.fits', expMap='/scratch/kocevski/538831/expmap_678153601_678412801_4FGL_J0004.4-4737_daily_bin1693.fits', expCube='/scratch/kocevski/538831/ltcube_678153601_678412801_4FGL_J0004.4-4737_daily_bin1693.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/538831/Model_4FGL_J0004.4-4737_daily_bin1693.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/538831/ft1_filtered_4FGL_J0004.4-4737_daily_bin1693.fits
Spacecraft file(s): /scratch/kocevski/538831/ft2_4FGL_J0004.4-4737_daily_bin1693.fits
Exposure map: /scratch/kocevski/538831/expmap_678153601_678412801_4FGL_J0004.4-4737_daily_bin1693.fits
Exposure cube: /scratch/kocevski/538831/ltcube_678153601_678412801_4FGL_J0004.4-4737_daily_bin1693.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/538831/Model_4FGL_J0004.4-4737_daily_bin1693.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) = 4766.35250217

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.9779       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    20.170       1.0000         .10000E-03   10000.    
    12 'Prefactor '    69.200       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.6074       1.0000         .10000E-03   10000.    
    18 'Prefactor '    34.284       1.0000         .10000E-03   10000.    
    19 'norm      '    .34660E-01   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10302E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10167E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.5999       1.0000         .10000E-03   10000.    
    23 'Prefactor '    17.870       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    76.009       1.0000         .10000E-03   10000.    
    26 'norm      '    20.588       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10936E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.1154       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0192       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=   4766.327     FROM MIGRAD    STATUS=CONVERGED    827 CALLS     4019 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    31.810        .16891E-05** at limit **
   2  Prefactor     6.9791        23.125        .21658E-05   -.12624E-03
   3  Prefactor     .10000E-03    16.932       -.97150E-05** at limit **
   4  Prefactor     .10000E-03    5.8882        .76599E-08** at limit **
   5  Prefactor     .10000E-03    6.5941       -.19302E-05** at limit **
   6  Prefactor     .10000E-03    10.163        .15188E-05** at limit **
   7  Prefactor     .10000E-03    7.5728       -.13415E-06** at limit **
   8  Prefactor     .10000E-03    6.2322        .86651E-07** at limit **
   9  norm          .10000E-03    10.779       -.25076E-05** at limit **
  10  Prefactor     .10000E-03    18.141        .44621E-05** at limit **
  11  norm          20.175        34.609        .62995E-05   -.21770E-04
  12  Prefactor     69.206        71.799        .75435E-05   -.16201E-05
  13  Prefactor     .10000E-03    21.833       -.75301E-05** at limit **
  14  norm          .10000E-03    13.022        .26328E-05** at limit **
  15  norm          .10000E-03    3.3595        .10433E-06** at limit **
  16  norm          .10000E-03    2.6995       -.61397E-07** at limit **
  17  Prefactor     2.6031        9.4147       -.22800E-05   -.33494E-03
  18  Prefactor     34.487        49.274        .38407E-05    .94278E-04
  19  norm          .10005E-03    3.8008       -.59876E-06** at limit **
  20  Prefactor     .10000E-03    49.021        .39106E-07** at limit **
  21  norm          .10000E-03    .81063        .16515E-06** at limit **
  22  norm          1.6024        3.8070       -.73600E-06   -.46686E-03
  23  Prefactor     17.864        17.687       -.62058E-05   -.54097E-04
  24  Prefactor     .10000E-03    1.5857        .61162E-07** at limit **
  25  Prefactor     76.021        34.592        .11691E-05   -.18787E-03
  26  norm          20.584        23.821       -.12101E-05   -.10875E-03
  27  Prefactor     .10000E-03    6.5490        .23459E-05** at limit **
  28  Prefactor     .10018E-03    3.4991        .14472E-05** at limit **
  29  Normalizat    1.1153        .21088       -.10370E-05   -.16557E-03
  30  Prefactor     1.0194        .22570        .47485E-06   -.16191E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 6.97912
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 20.1753
  Prefactor  = 69.2056
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 2.60309
  Prefactor  = 34.4875
  norm       = 0.000100051
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 1.60245
  Prefactor  = 17.8639
  Prefactor  = 0.0001
  Prefactor  = 76.0211
  norm       = 20.5844
  Prefactor  = 0.0001
  Prefactor  = 0.000100183
  Normalizat = 1.11528
  Prefactor  = 1.01939
 **********
 **   18 **HESSE 
 **********

 FCN=   4766.327     FROM HESSE     STATUS=OK           582 CALLS     4601 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    31.819        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.9791        22.704        .15187E-03   -1.5180    
   3  Prefactor     .10000E-03    16.848        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.9317        .16359E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.6425        .17303E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    10.163        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.6857        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.3801        .33620E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    10.775        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    18.162        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          20.175        34.542        .89182E-04   -1.4809    
  12  Prefactor     69.206        71.601        .48253E-04   -1.4042    
  13  Prefactor     .10000E-03    21.910        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    13.180        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    3.3651        .12356E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.7055        .11071E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.6031        9.1203        .25263E-03   -1.5385    
  18  Prefactor     34.487        51.258        .68440E-04   -1.4533    
  19  norm          .10005E-03    7.7390        .40379E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    49.220        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    1.1843        .11564E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.6024        3.7688        .19470E-03   -1.5455    
  23  Prefactor     17.864        17.726        .94744E-04   -1.4862    
  24  Prefactor     .10000E-03    1.5931        .84791E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     76.021        34.261        .46057E-04   -1.3962    
  26  norm          20.584        23.732        .88274E-04   -1.4800    
  27  Prefactor     .10000E-03    6.6966        .34357E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10018E-03    18.993        .23692E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.1153        .25077        .23268E-03   -.89263    
  30  Prefactor     1.0194        .27047        .27149E-03   -.92086    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04161e-08
Minuit parameter uncertainties:
  1  2.47228e-06
  2  22.7319
  3  5.55783e-06
  4  1.01537e-05
  5  3.86554e-06
  6  4.00876e-06
  7  9.2495e-06
  8  3.14137e-05
  9  4.47933e-07
  10  4.07086e-05
  11  34.5758
  12  71.69
  13  0.000134824
  14  3.12429e-06
  15  7.41982e-06
  16  6.73369e-06
  17  9.12516
  18  51.3235
  19  0.00125511
  20  0.000423711
  21  2.57564e-05
  22  3.76933
  23  17.7308
  24  1.96655e-07
  25  34.2695
  26  23.7429
  27  7.38002e-05
  28  0.00372683
  29  0.25104
  30  0.270835
Done.

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

Extracting fit parameters...

4FGL J0004.4-4737
   Spectrum: PowerLaw
18     Prefactor:  6.979e+00  2.273e+01  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:  1.019e+00  2.708e-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:  1.115e+00  2.510e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/538831/likelihoodResults_678153601_678412801_4FGL_J0004.4-4737_daily_bin1693.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) = 4766.29143298
delta logL = 0.0355276933815

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4766.28103645
delta logL = 0.0459242199222

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.594       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9550       1.0000          .0000       10.000    
     3 'Normalizat'    1.1204       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0134       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=   4766.281     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      243 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.595        26.225        .12310E-03   -.50809E-03
   2  Index         1.9548        1.1470        .15715E-01   -.16367E-03
   3  Normalizat    1.1204        .23835        .23221E-03    .13208E-03
   4  Prefactor     1.0134        .26861        .27216E-03    .15397E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.5951
  Index      = 1.95484
  Normalizat = 1.12043
  Prefactor  = 1.01337
 **********
 **   18 **HESSE 
 **********

 FCN=   4766.281     FROM HESSE     STATUS=OK            23 CALLS      266 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.595        26.131        .24620E-04   -1.5057    
   2  Index         1.9548        1.1435        .62861E-03   -.65484    
   3  Normalizat    1.1204        .23854        .46441E-04   -.89099    
   4  Prefactor     1.0134        .26883        .10887E-04   -.92285    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.00096e-09
Minuit parameter uncertainties:
  1  26.1593
  2  1.16002
  3  0.238775
  4  0.269182
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/538831': 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) = 4766.28103644
delta logL = 0.0459242332909

Extracting fit parameters...

4FGL J0004.4-4737
   Spectrum: PowerLaw
18     Prefactor:  1.060e+01  2.616e+01  1.000e-04  1.000e+04 ( 1.000e-13)
19         Index:  1.955e+00  1.160e+00  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:  1.013e+00  2.692e-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:  1.120e+00  2.388e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.11
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/538831/cmap_HighResolution_678153601_678412801_4FGL_J0004.4-4737_daily_bin1693.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.24e-03', job_status='DONE', photon_flux_upper_limit='9.40e-08', time_completed='2022-07-02 00:19:17.343746', job_id='538831', GAL2='1.01', fit_tolerance='1e-08', EG2='1.12', EG='1.12', time_epoch_completed='1656746357.34', return_code2='0', ts='0.11', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='4.59e-02', ts2='0.20', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='1693' AND source_name='4FGL J0004.4-4737' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Jul  2 00:19:17 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0192>
Subject: Job 538831: <4FGL_J0004.4-4737_daily_bin1693> in cluster <slac> Done

Job <4FGL_J0004.4-4737_daily_bin1693> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Jul  2 00:04:29 2022
Job was executed on host(s) <bullet0192>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jul  2 00:05:23 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Jul  2 00:05:23 2022
Terminated at Sat Jul  2 00:19:18 2022
Results reported at Sat Jul  2 00:19:18 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0004.4-4737_daily_bin1693 1.1091 -47.6233 678153601 678412801 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 :                                   764.17 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             281.66 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   835 sec.
    Turnaround time :                            889 sec.

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

