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


Performing analysis on: 4FGL_J1404.8+6554_daily_bin1674
RA = 211.216, Dec = 65.9048
tmin = 673228801, tmax = 673488001
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='670548', job_status='RUN', time_executed='2022-05-06 02:54:40.333774', time_epoch_executed='1651830880.33' WHERE source_name='4FGL J1404.8+6554' and cadence='daily' and bin_id='1674'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/670548

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/670548/ft1_4FGL_J1404.8+6554_daily_bin1674.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/670548/ft2_4FGL_J1404.8+6554_daily_bin1674.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/670548/ft1_4FGL_J1404.8+6554_daily_bin1674.fits outfile=/scratch/kocevski/670548/ft1_filteredMKT_4FGL_J1404.8+6554_daily_bin1674.fits ra=211.216 dec=65.9048 rad=12.0 tmin=673228801.0 tmax=673488001.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.90
user 2.56
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/670548/ft2_4FGL_J1404.8+6554_daily_bin1674.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/670548/ft2_4FGL_J1404.8+6554_daily_bin1674.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/670548/ft1_filteredMKT_4FGL_J1404.8+6554_daily_bin1674.fits evtable="EVENTS" outfile="/scratch/kocevski/670548/ft1_filtered_4FGL_J1404.8+6554_daily_bin1674.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.74
user 0.34
sys 0.16

Number of photons that the gtmktime cut: 1120

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/670548/ft1_filtered_4FGL_J1404.8+6554_daily_bin1674.fits" evtable="EVENTS" scfile=/scratch/kocevski/670548/ft2_4FGL_J1404.8+6554_daily_bin1674.fits sctable="SC_DATA" outfile=/scratch/kocevski/670548/ltcube_673228801_673488001_4FGL_J1404.8+6554_daily_bin1674.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/670548/ft2_4FGL_J1404.8+6554_daily_bin1674.fits
.....................!
real 13.54
user 13.12
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/670548/ft1_filtered_4FGL_J1404.8+6554_daily_bin1674.fits evtable="EVENTS" scfile=/scratch/kocevski/670548/ft2_4FGL_J1404.8+6554_daily_bin1674.fits sctable="SC_DATA" expcube=/scratch/kocevski/670548/ltcube_673228801_673488001_4FGL_J1404.8+6554_daily_bin1674.fits outfile=/scratch/kocevski/670548/expmap_673228801_673488001_4FGL_J1404.8+6554_daily_bin1674.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/670548/ltcube_673228801_673488001_4FGL_J1404.8+6554_daily_bin1674.fits
.....................!
real 192.10
user 185.16
sys 6.30

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

Setting source of interest to:
4FGL J1404.8+6554 @ 211.216 65.9048

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/670548/ft1_filtered_4FGL_J1404.8+6554_daily_bin1674.fits scfile=/scratch/kocevski/670548/ft2_4FGL_J1404.8+6554_daily_bin1674.fits outfile=/scratch/kocevski/670548/cmap_673228801_673488001_4FGL_J1404.8+6554_daily_bin1674.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=211.216 yref=65.9048 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/670548/ft1_filtered_4FGL_J1404.8+6554_daily_bin1674.fits scfile=/scratch/kocevski/670548/ft2_4FGL_J1404.8+6554_daily_bin1674.fits outfile=/scratch/kocevski/670548/cmap_HighResolution_673228801_673488001_4FGL_J1404.8+6554_daily_bin1674.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=211.216 yref=65.9048 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.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/670548/ft1_filtered_4FGL_J1404.8+6554_daily_bin1674.fits evtable="EVENTS" scfile=/scratch/kocevski/670548/ft2_4FGL_J1404.8+6554_daily_bin1674.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/670548/Model_4FGL_J1404.8+6554_daily_bin1674.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/670548/ft1_filtered_4FGL_J1404.8+6554_daily_bin1674.fits....................!
real 96.45
user 95.01
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/670548/ft1_filtered_4FGL_J1404.8+6554_daily_bin1674.fits', '/scratch/kocevski/670548/ft2_4FGL_J1404.8+6554_daily_bin1674.fits', expMap='/scratch/kocevski/670548/expmap_673228801_673488001_4FGL_J1404.8+6554_daily_bin1674.fits', expCube='/scratch/kocevski/670548/ltcube_673228801_673488001_4FGL_J1404.8+6554_daily_bin1674.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/670548/Model_4FGL_J1404.8+6554_daily_bin1674.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1404.8+6554'

4FGL J1404.8+6554
   Spectrum: PowerLaw
366    Prefactor:  7.015e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
367        Index:  1.926e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
368        Scale:  2.467e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/670548/ft1_filtered_4FGL_J1404.8+6554_daily_bin1674.fits
Spacecraft file(s): /scratch/kocevski/670548/ft2_4FGL_J1404.8+6554_daily_bin1674.fits
Exposure map: /scratch/kocevski/670548/expmap_673228801_673488001_4FGL_J1404.8+6554_daily_bin1674.fits
Exposure cube: /scratch/kocevski/670548/ltcube_673228801_673488001_4FGL_J1404.8+6554_daily_bin1674.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/670548/Model_4FGL_J1404.8+6554_daily_bin1674.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) = 12221.23625

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'norm      '    1.6960       1.0000         .10000E-03   10000.    
     3 'norm      '    5.2955       1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.912       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.1967       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.7772       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.7404       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.7063       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10175E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.3144       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.7340       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .71966E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    4.0776       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10922E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .64555       1.0000         .10000E-03   10000.    
    20 'Prefactor '    21.522       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.2426       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .58102       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    5.7427       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    18.859       1.0000         .10000E-03   10000.    
    28 'norm      '    .99124       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .81480       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.2057       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7140E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   12221.21     FROM MIGRAD    STATUS=CONVERGED    830 CALLS     4199 TOTAL
                     EDM=   .83E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.0019        .81789E-06** at limit **
   2  norm          1.6962        2.5244        .74256E-07   -.10256E-04
   3  norm          5.2951        2.1547        .30761E-07    .11287E-04
   4  Prefactor     11.909        30.023       -.31780E-06   -.13041E-04
   5  Prefactor     1.1970        7.8268       -.91598E-07   -.21875E-03
   6  Prefactor     .10000E-03    15.337        .12711E-05** at limit **
   7  Prefactor     8.7766        9.8152        .18535E-07   -.17822E-04
   8  Prefactor     .10000E-03    10.226        .13040E-06** at limit **
   9  Prefactor     4.7387        3.8708        .81715E-07   -.68373E-04
  10  Prefactor     1.7070        10.060        .99016E-06   -.17633E-04
  11  Prefactor     .10000E-03    56.008       -.16887E-05** at limit **
  12  Prefactor     2.3179        8.2597        .33492E-08   -.21265E-04
  13  Prefactor     4.7347        5.5052        .55621E-06    .50742E-04
  14  norm          .10000E-03    13.325       -.60978E-06** at limit **
  15  Prefactor     .10000E-03    37.745        .67579E-05** at limit **
  16  norm          4.0780        3.1465       -.24786E-06   -.12066E-03
  17  Prefactor     .10000E-03    7.0539       -.82414E-06** at limit **
  18  Prefactor     .10000E-03    323.63        .45879E-05** at limit **
  19  Prefactor     .64679        1.9420        .13015E-05   -.47533E-04
  20  Prefactor     21.509        19.569       -.17444E-05   -.12458E-03
  21  Prefactor     .10000E-03    15.928       -.40216E-06** at limit **
  22  Prefactor     1.2038        82.555        .11176E-04   -.27070E-04
  23  Prefactor     .58098        5.0438       -.60889E-07   -.29582E-03
  24  Prefactor     .10000E-03    3.2775        .38419E-07** at limit **
  25  Prefactor     5.7428        6.2995       -.90442E-07   -.66922E-04
  26  Prefactor     .10000E-03    4.4129        .13232E-07** at limit **
  27  Prefactor     18.859        13.803        .76417E-07   -.80293E-05
  28  norm          .99201        1.7294        .10154E-06    .11504E-03
  29  Prefactor     .10000E-03    35.462        .22678E-05** at limit **
  30  Normalizat    .81477        .11777       -.90951E-06   -.54453E-04
  31  Prefactor     1.2057        .12789        .23939E-06   -.27622E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.69621
  norm       = 5.29512
  Prefactor  = 11.9088
  Prefactor  = 1.19696
  Prefactor  = 0.0001
  Prefactor  = 8.77664
  Prefactor  = 0.0001
  Prefactor  = 4.73868
  Prefactor  = 1.70703
  Prefactor  = 0.0001
  Prefactor  = 2.31787
  Prefactor  = 4.73466
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 4.078
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.646793
  Prefactor  = 21.5086
  Prefactor  = 0.0001
  Prefactor  = 1.20378
  Prefactor  = 0.580984
  Prefactor  = 0.0001
  Prefactor  = 5.74277
  Prefactor  = 0.0001
  Prefactor  = 18.8589
  norm       = 0.992009
  Prefactor  = 0.0001
  Normalizat = 0.814774
  Prefactor  = 1.20566
 **********
 **   18 **HESSE 
 **********

 FCN=   12221.21     FROM HESSE     STATUS=OK           630 CALLS     4829 TOTAL
                     EDM=   .77E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.0381        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.6962        2.5047        .20780E-03   -1.5447    
   3  norm          5.2951        2.1614        .97993E-04   -1.5248    
   4  Prefactor     11.909        30.026        .11607E-03   -1.5018    
   5  Prefactor     1.1970        12.259        .20774E-02   -1.5489    
   6  Prefactor     .10000E-03    15.366        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     8.7766        9.8003        .13530E-03   -1.5115    
   8  Prefactor     .10000E-03    10.230        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.7387        3.7075        .13936E-03   -1.5273    
  10  Prefactor     1.7070        9.9425        .32191E-03   -1.5447    
  11  Prefactor     .10000E-03    56.368        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.3179        7.8836        .26967E-03   -1.5403    
  13  Prefactor     4.7347        5.4881        .18493E-03   -1.5273    
  14  norm          .10000E-03    13.329        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    36.806        .46671E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          4.0780        3.1353        .16352E-03   -1.5304    
  17  Prefactor     .10000E-03    7.0654        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    324.02        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .64679        1.9346        .25229E-03   -1.5547    
  20  Prefactor     21.509        19.699        .86338E-04   -1.4780    
  21  Prefactor     .10000E-03    15.943        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     1.2038        82.803        .40206E-03   -1.5489    
  23  Prefactor     .58098        14.908        .23194E-02   -1.5556    
  24  Prefactor     .10000E-03    3.2798        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     5.7428        6.3113        .16761E-03   -1.5229    
  26  Prefactor     .10000E-03    4.4434        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     18.859        13.801        .92228E-04   -1.4839    
  28  norm          .99201        1.5776        .18555E-02   -1.5509    
  29  Prefactor     .10000E-03    35.596        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .81477        .14095        .23983E-03   -.99523    
  31  Prefactor     1.2057        .15414        .23044E-03   -.86157    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.74483e-10
Minuit parameter uncertainties:
  1  2.18056e-05
  2  2.50481
  3  2.16143
  4  30.0641
  5  7.66288
  6  3.34957e-05
  7  9.80206
  8  8.24875e-06
  9  3.70769
  10  8.24131
  11  0.000101811
  12  7.88712
  13  5.48869
  14  1.57883e-05
  15  3.53662e-05
  16  3.13542
  17  1.38215e-05
  18  0.000648477
  19  1.93475
  20  19.7045
  21  1.81636e-05
  22  19.9956
  23  5.88711
  24  9.57519e-07
  25  6.31207
  26  7.30438e-06
  27  13.803
  28  1.5777
  29  0.000105573
  30  0.141018
  31  0.154196
Done.

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

Extracting fit parameters...

4FGL J1404.8+6554
   Spectrum: PowerLaw
366    Prefactor:  1.000e-04  1.382e-05  1.000e-04  1.000e+04 ( 1.000e-14)
367        Index:  1.926e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
368        Scale:  2.467e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
711    Prefactor:  1.206e+00  1.542e-01  0.000e+00  1.000e+01 ( 1.000e+00)
712        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
713        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
710   Normalization:  8.148e-01  1.410e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 211.216 65.905
Photon Flux Upper Limit: 1.81e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.35e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/670548/likelihoodResults_673228801_673488001_4FGL_J1404.8+6554_daily_bin1674.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) = 12221.2103318
delta logL = -0.000673589560392

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 12221.2096582
delta logL = 1.54414010467e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9143       1.0000          .0000       10.000    
     3 'Normalizat'    .81477       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2057       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7140E+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=   12221.21     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      245 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10047E-03    66.665        .18142E-02** at limit **
   2  Index         1.8795        5.6824        .50000        .11642E-04
   3  Normalizat    .81477        .82815E-02    .23983E-03    .85327E-06
   4  Prefactor     1.2057        .95314E-02    .23044E-03    .20424E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100472
  Index      = 1.87954
  Normalizat = 0.814773
  Prefactor  = 1.20566
 **********
 **   18 **HESSE 
 **********

 FCN=   12221.21     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      274 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10047E-03    306.18        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8795        6.5373        .50000       -.67397    
   3  Normalizat    .81477        .18525E-01    .95930E-05   -.99523    
   4  Prefactor     1.2057        .21319E-01    .92177E-05   -.86157    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.89047e-08
Minuit parameter uncertainties:
  1  0.0241584
  2  598.729
  3  0.0185252
  4  0.0213195
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/670548': 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) = 12221.2096581
delta logL = 1.17132003652e-07

Extracting fit parameters...

4FGL J1404.8+6554
   Spectrum: PowerLaw
366    Prefactor:  1.005e-04  2.416e-02  1.000e-04  1.000e+04 ( 1.000e-14)
367        Index:  1.880e+00  5.987e+02  0.000e+00  1.000e+01 (-1.000e+00)
368        Scale:  2.467e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
711    Prefactor:  1.206e+00  2.132e-02  0.000e+00  1.000e+01 ( 1.000e+00)
712        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
713        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
710   Normalization:  8.148e-01  1.853e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 211.216 65.905

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/670548/cmap_HighResolution_673228801_673488001_4FGL_J1404.8+6554_daily_bin1674.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.35e-03', job_status='DONE', photon_flux_upper_limit='1.81e-08', time_completed='2022-05-06 03:24:03.516173', job_id='670548', GAL2='1.21', fit_tolerance='1e-08', EG2='0.81', EG='0.81', time_epoch_completed='1651832643.52', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.21', dlogl='1.17e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.93' WHERE bin_id='1674' AND source_name='4FGL J1404.8+6554' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri May  6 03:24:03 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0080>
Subject: Job 670475: <4FGL_J1404.8+6554_daily_bin1674> in cluster <slac> Done

Job <4FGL_J1404.8+6554_daily_bin1674> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri May  6 00:07:39 2022
Job was executed on host(s) <bullet0080>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri May  6 02:51:33 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri May  6 02:51:33 2022
Terminated at Fri May  6 03:23:50 2022
Results reported at Fri May  6 03:23:50 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1404.8+6554_daily_bin1674 211.216 65.9048 673228801 673488001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1404.8+6554 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   1741.12 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             300.91 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1937 sec.
    Turnaround time :                            11771 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0039>
Subject: Job 670548: <4FGL_J1404.8+6554_daily_bin1674> in cluster <slac> Done

Job <4FGL_J1404.8+6554_daily_bin1674> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri May  6 00:07:44 2022
Job was executed on host(s) <bullet0039>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri May  6 02:52:04 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri May  6 02:52:04 2022
Terminated at Fri May  6 03:24:03 2022
Results reported at Fri May  6 03:24:03 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1404.8+6554_daily_bin1674 211.216 65.9048 673228801 673488001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1404.8+6554 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   1759.59 sec.
    Max Memory :                                 623 MB
    Average Memory :                             311.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   2931 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   1919 sec.
    Turnaround time :                            11779 sec.

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

