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


Performing analysis on: 4FGL_J0004.4-4737_daily_bin1701
RA = 1.1091, Dec = -47.6233
tmin = 680227201, tmax = 680486401
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='157763', job_status='RUN', time_executed='2022-07-26 00:07:34.751918', time_epoch_executed='1658819254.75' WHERE source_name='4FGL J0004.4-4737' and cadence='daily' and bin_id='1701'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/157763

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/157763/ft1_4FGL_J0004.4-4737_daily_bin1701.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/157763/ft2_4FGL_J0004.4-4737_daily_bin1701.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/157763/ft1_4FGL_J0004.4-4737_daily_bin1701.fits outfile=/scratch/kocevski/157763/ft1_filteredMKT_4FGL_J0004.4-4737_daily_bin1701.fits ra=1.1091 dec=-47.6233 rad=12.0 tmin=680227201.0 tmax=680486401.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 2.93
user 2.67
sys 0.21

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

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

Number of photons that the gtmktime cut: 222

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/157763/ft1_filtered_4FGL_J0004.4-4737_daily_bin1701.fits" evtable="EVENTS" scfile=/scratch/kocevski/157763/ft2_4FGL_J0004.4-4737_daily_bin1701.fits sctable="SC_DATA" outfile=/scratch/kocevski/157763/ltcube_680227201_680486401_4FGL_J0004.4-4737_daily_bin1701.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/157763/ft2_4FGL_J0004.4-4737_daily_bin1701.fits
.....................!
real 15.64
user 15.24
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/157763/ft1_filtered_4FGL_J0004.4-4737_daily_bin1701.fits evtable="EVENTS" scfile=/scratch/kocevski/157763/ft2_4FGL_J0004.4-4737_daily_bin1701.fits sctable="SC_DATA" expcube=/scratch/kocevski/157763/ltcube_680227201_680486401_4FGL_J0004.4-4737_daily_bin1701.fits outfile=/scratch/kocevski/157763/expmap_680227201_680486401_4FGL_J0004.4-4737_daily_bin1701.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/157763/ltcube_680227201_680486401_4FGL_J0004.4-4737_daily_bin1701.fits
.....................!
real 192.59
user 186.48
sys 5.59

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/157763/ft1_filtered_4FGL_J0004.4-4737_daily_bin1701.fits scfile=/scratch/kocevski/157763/ft2_4FGL_J0004.4-4737_daily_bin1701.fits outfile=/scratch/kocevski/157763/cmap_680227201_680486401_4FGL_J0004.4-4737_daily_bin1701.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.56
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/157763/ft1_filtered_4FGL_J0004.4-4737_daily_bin1701.fits scfile=/scratch/kocevski/157763/ft2_4FGL_J0004.4-4737_daily_bin1701.fits outfile=/scratch/kocevski/157763/cmap_HighResolution_680227201_680486401_4FGL_J0004.4-4737_daily_bin1701.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.56
user 0.41
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/157763/ft1_filtered_4FGL_J0004.4-4737_daily_bin1701.fits evtable="EVENTS" scfile=/scratch/kocevski/157763/ft2_4FGL_J0004.4-4737_daily_bin1701.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/157763/Model_4FGL_J0004.4-4737_daily_bin1701.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/157763/ft1_filtered_4FGL_J0004.4-4737_daily_bin1701.fits.....................!
real 27.28
user 25.38
sys 1.28

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.708       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    21.469       1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.425       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .75837E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.7346       1.0000         .10000E-03   10000.    
     9 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    42.265       1.0000         .10000E-03   10000.    
    11 'norm      '    .10060E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    131.10       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    49.227       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    5.2565       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .14346E-02   1.0000         .10000E-03   10000.    
    21 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .42828       1.0000         .10000E-03   10000.    
    28 'Prefactor '    7.5502       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.1757       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .51655       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=   2516.015     FROM MIGRAD    STATUS=CONVERGED    746 CALLS     4052 TOTAL
                     EDM=   .37E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.731        194.66        .40759E-05   -.95244E-05
   2  Prefactor     .10000E-03    25.092       -.56308E-07** at limit **
   3  Prefactor     21.153        117.82        .44881E-06    .20300E-04
   4  Prefactor     12.420        13.729       -.40036E-07   -.13774E-03
   5  Prefactor     .10029E-03    34.665       -.56324E-05** at limit **
   6  Prefactor     .10000E-03    40.247       -.17082E-05** at limit **
   7  Prefactor     .10000E-03    11.016       -.65088E-06** at limit **
   8  Prefactor     6.7338        10.327        .19945E-06   -.61221E-05
   9  norm          .10000E-03    31.553       -.24469E-05** at limit **
  10  Prefactor     42.297        48.973        .28814E-05    .19648E-05
  11  norm          .10000E-03    23.558       -.33137E-05** at limit **
  12  Prefactor     131.12        86.246        .14003E-05   -.69264E-04
  13  Prefactor     .10000E-03    51.582        .69412E-07** at limit **
  14  norm          .10000E-03    21.371        .25583E-07** at limit **
  15  norm          .10000E-03    15.235       -.17745E-06** at limit **
  16  norm          .10000E-03    12.016        .41411E-06** at limit **
  17  Prefactor     49.264        31.666        .10618E-05    .15523E-03
  18  Prefactor     .10000E-03    134.55       -.15910E-05** at limit **
  19  norm          5.2562        7.2378       -.35293E-06   -.52631E-04
  20  Prefactor     .10003E-03    204.47       -.12310E-04** at limit **
  21  norm          .10000E-03    1.6531       -.39054E-06** at limit **
  22  norm          .10000E-03    4.1030       -.43656E-06** at limit **
  23  Prefactor     .10000E-03    32.242       -.49877E-06** at limit **
  24  Prefactor     .10000E-03    4.0711        .23900E-07** at limit **
  25  Prefactor     .10000E-03    30.474       -.64745E-06** at limit **
  26  norm          .10000E-03    18.080       -.16263E-06** at limit **
  27  Prefactor     .50535        93.292        .10431E-04    .45712E-04
  28  Prefactor     7.5537        9.4549        .18304E-06   -.21710E-03
  29  Normalizat    1.1755        .33250       -.14000E-04    .73183E-04
  30  Prefactor     .51662        .31695        .20281E-04    .38096E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.7313
  Prefactor  = 0.0001
  Prefactor  = 21.153
  Prefactor  = 12.4197
  Prefactor  = 0.000100287
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.73379
  norm       = 0.000100001
  Prefactor  = 42.2971
  norm       = 0.000100001
  Prefactor  = 131.116
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 49.2641
  Prefactor  = 0.000100002
  norm       = 5.25622
  Prefactor  = 0.000100029
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.505349
  Prefactor  = 7.55367
  Normalizat = 1.17552
  Prefactor  = 0.516624
 **********
 **   18 **HESSE 
 **********

 FCN=   2516.015     FROM HESSE     STATUS=OK           580 CALLS     4632 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.731        194.10        .97984E-04   -1.4890    
   2  Prefactor     .10000E-03    25.131        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     21.153        128.29        .86444E-04   -1.4788    
   4  Prefactor     12.420        13.743        .11364E-03   -1.5003    
   5  Prefactor     .10029E-03    225.37        .41673E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    40.434        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    11.213        .16285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     6.7338        10.243        .14102E-03   -1.5189    
   9  norm          .10000E-03    31.723        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     42.297        48.603        .61662E-04   -1.4406    
  11  norm          .10000E-03    23.833        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     131.12        86.365        .17583E-03   -1.3413    
  13  Prefactor     .10000E-03    51.587        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    21.372        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    15.237        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    12.043        .16966E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     49.264        31.609        .28577E-03   -1.4303    
  18  Prefactor     .10000E-03    134.80        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          5.2562        7.2253        .15376E-03   -1.5249    
  20  Prefactor     .10003E-03    209.47        .20506E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    1.6605        .63032E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    4.1206        .99206E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    32.249        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    4.0767        .98765E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    30.515        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    18.082        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .50535        105.75        .39402E-02   -1.5566    
  28  Prefactor     7.5537        9.4658        .72976E-03   -1.5158    
  29  Normalizat    1.1755        .33451        .20535E-03   -.87363    
  30  Prefactor     .51662        .31729        .32115E-03   -1.1122    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.87402e-09
Minuit parameter uncertainties:
  1  114.445
  2  4.2455e-05
  3  104.524
  4  13.747
  5  0.01615
  6  0.000284182
  7  5.86984e-06
  8  10.2458
  9  0.000406646
  10  48.6485
  11  0.000368042
  12  86.4477
  13  0.000128353
  14  3.76634e-05
  15  1.57997e-05
  16  3.20536e-05
  17  31.6193
  18  0.00108377
  19  7.22647
  20  0.00497987
  21  1.31665e-05
  22  1.61031e-05
  23  0.000105815
  24  6.65516e-06
  25  0.000120026
  26  5.45797e-05
  27  14.6454
  28  9.46772
  29  0.335119
  30  0.318383
Done.

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

Extracting fit parameters...

4FGL J0004.4-4737
   Spectrum: PowerLaw
18     Prefactor:  1.000e-04  4.246e-05  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:  5.166e-01  3.184e-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.176e+00  3.351e-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: 1.41e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.09e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/157763/likelihoodResults_680227201_680486401_4FGL_J0004.4-4737_daily_bin1701.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) = 2516.01530971
delta logL = -0.000189335035429

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2516.01512041
delta logL = -3.46176420862e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2828       1.0000          .0000       10.000    
     3 'Normalizat'    1.1755       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .51663       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=   2516.015     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      266 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    28.189        .18142E-02** at limit **
   2  Index         2.2872        6.1367        .50000       -.15607E-05
   3  Normalizat    1.1755        .28325        .20534E-03    .19963E-03
   4  Prefactor     .51661        .30411        .32117E-03   -.17014E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.28723
  Normalizat = 1.17553
  Prefactor  = 0.516613
 **********
 **   18 **HESSE 
 **********

 FCN=   2516.015     FROM HESSE     STATUS=OK            29 CALLS      295 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    24.676        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2872        6.1436        .50000       -.57347    
   3  Normalizat    1.1755        .28344        .41069E-04   -.87362    
   4  Prefactor     .51661        .30431        .12847E-04   -1.1122    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.59759e-09
Minuit parameter uncertainties:
  1  7.37864e-05
  2  4.21117
  3  0.283812
  4  0.305274
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/157763': 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) = 2516.0151204
delta logL = -2.81047505268e-08

Extracting fit parameters...

4FGL J0004.4-4737
   Spectrum: PowerLaw
18     Prefactor:  1.000e-04  7.379e-05  1.000e-04  1.000e+04 ( 1.000e-13)
19         Index:  2.287e+00  4.211e+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:  5.166e-01  3.053e-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.176e+00  2.838e-01  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/157763/cmap_HighResolution_680227201_680486401_4FGL_J0004.4-4737_daily_bin1701.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.09e-02', job_status='DONE', photon_flux_upper_limit='1.41e-07', time_completed='2022-07-26 00:16:45.788785', job_id='157763', GAL2='0.52', fit_tolerance='1e-08', EG2='1.18', EG='1.18', time_epoch_completed='1658819805.79', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.52', dlogl='-2.81e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='1701' AND source_name='4FGL J0004.4-4737' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Jul 26 00:16:45 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0182>
Subject: Job 157763: <4FGL_J0004.4-4737_daily_bin1701> in cluster <slac> Done

Job <4FGL_J0004.4-4737_daily_bin1701> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Jul 26 00:04:27 2022
Job was executed on host(s) <bullet0182>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jul 26 00:04:53 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jul 26 00:04:53 2022
Terminated at Tue Jul 26 00:16:46 2022
Results reported at Tue Jul 26 00:16:46 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0004.4-4737_daily_bin1701 1.1091 -47.6233 680227201 680486401 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 :                                   550.06 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             262.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   713 sec.
    Turnaround time :                            739 sec.

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

