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 109 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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


Performing analysis on: 4FGL_J1404.8+6554_daily_bin1760
RA = 211.216, Dec = 65.9048
tmin = 695520001, tmax = 695779201
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='738880', job_status='RUN', time_executed='2023-01-19 01:03:11.199197', time_epoch_executed='1674118991.2' WHERE source_name='4FGL J1404.8+6554' and cadence='daily' and bin_id='1760'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/738880

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/738880/ft1_4FGL_J1404.8+6554_daily_bin1760.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/738880/ft2_4FGL_J1404.8+6554_daily_bin1760.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/738880/ft1_4FGL_J1404.8+6554_daily_bin1760.fits outfile=/scratch/kocevski/738880/ft1_filteredMKT_4FGL_J1404.8+6554_daily_bin1760.fits ra=211.216 dec=65.9048 rad=12.0 tmin=695520001.0 tmax=695779201.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.42
user 2.23
sys 0.19

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

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

Number of photons that the gtmktime cut: 647

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/738880/ft1_filtered_4FGL_J1404.8+6554_daily_bin1760.fits" evtable="EVENTS" scfile=/scratch/kocevski/738880/ft2_4FGL_J1404.8+6554_daily_bin1760.fits sctable="SC_DATA" outfile=/scratch/kocevski/738880/ltcube_695520001_695779201_4FGL_J1404.8+6554_daily_bin1760.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/738880/ft2_4FGL_J1404.8+6554_daily_bin1760.fits
.....................!
real 15.83
user 15.44
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/738880/ft1_filtered_4FGL_J1404.8+6554_daily_bin1760.fits evtable="EVENTS" scfile=/scratch/kocevski/738880/ft2_4FGL_J1404.8+6554_daily_bin1760.fits sctable="SC_DATA" expcube=/scratch/kocevski/738880/ltcube_695520001_695779201_4FGL_J1404.8+6554_daily_bin1760.fits outfile=/scratch/kocevski/738880/expmap_695520001_695779201_4FGL_J1404.8+6554_daily_bin1760.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/738880/ltcube_695520001_695779201_4FGL_J1404.8+6554_daily_bin1760.fits
.....................!
real 192.18
user 186.32
sys 5.42

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/738880/ft1_filtered_4FGL_J1404.8+6554_daily_bin1760.fits scfile=/scratch/kocevski/738880/ft2_4FGL_J1404.8+6554_daily_bin1760.fits outfile=/scratch/kocevski/738880/cmap_695520001_695779201_4FGL_J1404.8+6554_daily_bin1760.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.57
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/738880/ft1_filtered_4FGL_J1404.8+6554_daily_bin1760.fits scfile=/scratch/kocevski/738880/ft2_4FGL_J1404.8+6554_daily_bin1760.fits outfile=/scratch/kocevski/738880/cmap_HighResolution_695520001_695779201_4FGL_J1404.8+6554_daily_bin1760.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.57
user 0.40
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/738880/ft1_filtered_4FGL_J1404.8+6554_daily_bin1760.fits', '/scratch/kocevski/738880/ft2_4FGL_J1404.8+6554_daily_bin1760.fits', expMap='/scratch/kocevski/738880/expmap_695520001_695779201_4FGL_J1404.8+6554_daily_bin1760.fits', expCube='/scratch/kocevski/738880/ltcube_695520001_695779201_4FGL_J1404.8+6554_daily_bin1760.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/738880/Model_4FGL_J1404.8+6554_daily_bin1760.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  0.000e+00  1.000e+06 ( 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/738880/ft1_filtered_4FGL_J1404.8+6554_daily_bin1760.fits
Spacecraft file(s): /scratch/kocevski/738880/ft2_4FGL_J1404.8+6554_daily_bin1760.fits
Exposure map: /scratch/kocevski/738880/expmap_695520001_695779201_4FGL_J1404.8+6554_daily_bin1760.fits
Exposure cube: /scratch/kocevski/738880/ltcube_695520001_695779201_4FGL_J1404.8+6554_daily_bin1760.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/738880/Model_4FGL_J1404.8+6554_daily_bin1760.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) = 7081.24532524

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .46343E-01   1.0000          .0000       .10000E+07
     2 'norm      '    .29122E-04   1.0000          .0000       .10000E+07
     3 'norm      '    7.4892       1.0000          .0000       .10000E+07
     4 'Prefactor '    18.512       1.0000          .0000       .10000E+07
     5 'Prefactor '    7.4608       1.0000          .0000       .10000E+07
     6 'Prefactor '    53.506       1.0000          .0000       .10000E+07
     7 'Prefactor '    .17326E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    95.276       1.0000          .0000       .10000E+07
     9 'Prefactor '    1.9560       1.0000          .0000       .10000E+07
    10 'Prefactor '    .34739E-02   1.0000          .0000       .10000E+07
    11 'Prefactor '    .16036E-02   1.0000          .0000       .10000E+07
    12 'norm      '    .17726E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    .47638E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    3.2221       1.0000          .0000       .10000E+07
    15 'Prefactor '    .47737       1.0000          .0000       .10000E+07
    16 'Prefactor '    9.8846       1.0000          .0000       .10000E+07
    17 'Prefactor '    7.1308       1.0000          .0000       .10000E+07
    18 'Prefactor '    22.723       1.0000          .0000       .10000E+07
    19 'Prefactor '    .41345E-02   1.0000          .0000       .10000E+07
    20 'Prefactor '    .34944E-02   1.0000          .0000       .10000E+07
    21 'norm      '    1.1186       1.0000          .0000       .10000E+07
    22 'Prefactor '    59.569       1.0000          .0000       .10000E+07
    23 'Normalizat'    1.2195       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .71932       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7140E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7081.221     FROM MIGRAD    STATUS=CONVERGED    164 CALLS     1998 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .62829E-04    181.04       -.17303E-04** at limit **
   2  norm           .0000        1.6383       -.11874E-07** at limit **
   3  norm          7.4890        3.2172        .60319E-06    .37754E-02
   4  Prefactor     18.496        1.1593        .45363E-07    .53573E-02
   5  Prefactor     7.4758        11.792       -.62046E-06    .21797E-02
   6  Prefactor     54.880        27.034        .47825E-06    .22410    
   7  Prefactor     .68723E-07    11.855        .27099E-05** at limit **
   8  Prefactor     96.565        33.200        .12339E-05   -.42405E-01
   9  Prefactor     1.9550        4.2151       -.14009E-05   -.52600E-03
  10  Prefactor     .20500E-06    7.4555        .27577E-05** at limit **
  11  Prefactor     .22204E-09    4.1957       -.44159E-06** at limit **
  12  norm           .0000        2.2322        .18650E-06** at limit **
  13  Prefactor     .25033E-05    13.083        .12513E-05** at limit **
  14  Prefactor     3.2019        2.6817        .45573E-07    .51626E-03
  15  Prefactor     .32594E-05    75.355        .15399E-05** at limit **
  16  Prefactor     12.379        47.307        .21653E-05   -.11609E-01
  17  Prefactor     7.1425        11.711        .20616E-05    .27750E-01
  18  Prefactor     22.996        1.6987       -.70563E-07   -.45874E-02
  19  Prefactor     .39547E-05    11.925       -.24844E-05** at limit **
  20  Prefactor     .13983E-06    7.5354       -.94696E-06** at limit **
  21  norm          1.1278        1.5569       -.47100E-06   -.42315E-03
  22  Prefactor     57.377        51.503       -.26821E-05    .10011    
  23  Normalizat    1.2181        .17525       -.30847E-05    .68217E-04
  24  Prefactor     .71949        .18277        .75262E-05    .89441E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.28291e-05
  norm       = 0
  norm       = 7.48897
  Prefactor  = 18.4965
  Prefactor  = 7.47578
  Prefactor  = 54.8798
  Prefactor  = 6.87228e-08
  Prefactor  = 96.5645
  Prefactor  = 1.95503
  Prefactor  = 2.05003e-07
  Prefactor  = 2.22045e-10
  norm       = 0
  Prefactor  = 2.50328e-06
  Prefactor  = 3.20193
  Prefactor  = 3.25945e-06
  Prefactor  = 12.3793
  Prefactor  = 7.14246
  Prefactor  = 22.9955
  Prefactor  = 3.95473e-06
  Prefactor  = 1.39833e-07
  norm       = 1.12783
  Prefactor  = 57.377
  Normalizat = 1.2181
  Prefactor  = 0.719489
 **********
 **   18 **HESSE 
 **********

 FCN=   7081.221     FROM HESSE     STATUS=OK           447 CALLS     2445 TOTAL
                     EDM=   .45E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .62829E-04    14.549        .15689E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm           .0000        1.6401        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          7.4890        3.2143        .36623E-03   -1.5653    
   4  Prefactor     18.496        18.438        .23251E-03   -1.5622    
   5  Prefactor     7.4758        11.815        .36694E-03   -1.5653    
   6  Prefactor     54.880        57.242        .13672E-03   -1.5560    
   7  Prefactor     .68723E-07    11.885        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     96.565        68.831        .10246E-03   -1.5511    
   9  Prefactor     1.9550        4.2650        .74155E-03   -1.5680    
  10  Prefactor     .20500E-06    7.5780        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .22204E-09    4.1937        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm           .0000        2.2192        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .25033E-05    15.244        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.2019        2.6880        .56411E-03   -1.5672    
  15  Prefactor     .32594E-05    78.801        .81019E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     12.379        47.778        .31848E-03   -1.5638    
  17  Prefactor     7.1425        11.776        .37541E-03   -1.5655    
  18  Prefactor     22.996        20.251        .20984E-03   -1.5612    
  19  Prefactor     .39547E-05    15.077        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .13983E-06    7.6113        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.1278        1.9214        .27695E-02   -1.5687    
  22  Prefactor     57.377        70.190        .12957E-03   -1.5556    
  23  Normalizat    1.2181        .15229        .34430E-01   -.86045    
  24  Prefactor     .71949        .15779        .62912E-01   -1.0277    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.49993e-06
Minuit parameter uncertainties:
  1  0.0604676
  2  8.37084e-06
  3  3.21432
  4  18.4382
  5  11.8151
  6  57.2421
  7  0.00180755
  8  68.8319
  9  4.26498
  10  0.00249275
  11  6.24029e-05
  12  3.39788e-06
  13  0.0123548
  14  2.68803
  15  0.0320533
  16  47.7798
  17  11.7763
  18  20.2507
  19  0.0154434
  20  0.00206335
  21  1.92139
  22  70.1906
  23  0.152347
  24  0.157887
Done.

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

Extracting fit parameters...

4FGL J1404.8+6554
   Spectrum: PowerLaw
366    Prefactor:  2.503e-06  1.235e-02  0.000e+00  1.000e+06 ( 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:  7.195e-01  1.579e-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:  1.218e+00  1.523e-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: 3.44e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.56e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/738880/likelihoodResults_695520001_695779201_4FGL_J1404.8+6554_daily_bin1760.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) = 7081.25289253
delta logL = -0.0314107380036

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7081.22148196
delta logL = -1.66689460457e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .19440E-06   1.0000          .0000       .10000E+07
     2 'Index     '    .22606       1.0000          .0000       10.000    
     3 'Normalizat'    1.2182       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71938       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   7081.221     FROM MIGRAD    STATUS=CONVERGED     43 CALLS      211 TOTAL
                     EDM=   .36E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        12.105        .42118E-03** at limit **
   2  Index         2.4068        1.4930       -.72010E-03     .0000    
   3  Normalizat    1.2181        1.1003        .32625E-05    .16736E-04
   4  Prefactor     .71948        1.0692       -.69557E-06   -.34327E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.4068
  Normalizat = 1.21811
  Prefactor  = 0.719484
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   7081.221     FROM HESSE     STATUS=FAILED         9 CALLS      220 TOTAL
                     EDM=   .36E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        12.105        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .64986        1.9202       -.72010E-03   -.54526    
   3  Normalizat    1.2181        1.1003        .32625E-05   -.86045    
   4  Prefactor     .71948        1.0692       -.69557E-06   -1.0277    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 3.60425e-10
Minuit parameter uncertainties:
  1  1.64859e-05
  2  1.52512
  3  1.12241
  4  1.10231
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/738880': 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): 101
logL (Free Index) = 7081.22148171
delta logL = 8.1789039541e-08

Extracting fit parameters...

4FGL J1404.8+6554
   Spectrum: PowerLaw
366    Prefactor:  0.000e+00  1.649e-05  0.000e+00  1.000e+06 ( 1.000e-14)
367        Index:  2.407e+00  1.525e+00  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:  7.195e-01  1.102e+00  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:  1.218e+00  1.122e+00  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/738880/cmap_HighResolution_695520001_695779201_4FGL_J1404.8+6554_daily_bin1760.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.56e-03', job_status='DONE', photon_flux_upper_limit='3.44e-08', time_completed='2023-01-19 01:15:33.676006', job_id='738880', GAL2='0.72', fit_tolerance='1e-08', EG2='1.22', EG='1.22', time_epoch_completed='1674119733.68', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.72', dlogl='8.18e-08', ts2='0.00', photon_index_error='0.00', photon_index='1.93' WHERE bin_id='1760' AND source_name='4FGL J1404.8+6554' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Jan 19 01:15:33 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0212>
Subject: Job 738880: <4FGL_J1404.8+6554_daily_bin1760> in cluster <slac> Done

Job <4FGL_J1404.8+6554_daily_bin1760> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Thu Jan 19 01:00:19 2023
Job was executed on host(s) <bullet0212>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Jan 19 01:01:12 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Jan 19 01:01:12 2023
Terminated at Thu Jan 19 01:15:34 2023
Results reported at Thu Jan 19 01:15:34 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1404.8+6554_daily_bin1760 211.216 65.9048 695520001 695779201 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 :                                   744.61 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             326.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   862 sec.
    Turnaround time :                            915 sec.

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

