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


Performing analysis on: 4FGL_J1404.8+6554_daily_bin1749
RA = 211.216, Dec = 65.9048
tmin = 692668801, tmax = 692928001
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='954274', job_status='RUN', time_executed='2022-12-17 00:52:29.409540', time_epoch_executed='1671267149.41' WHERE source_name='4FGL J1404.8+6554' and cadence='daily' and bin_id='1749'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/954274

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/954274/ft1_4FGL_J1404.8+6554_daily_bin1749.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/954274/ft2_4FGL_J1404.8+6554_daily_bin1749.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/954274/ft1_4FGL_J1404.8+6554_daily_bin1749.fits outfile=/scratch/kocevski/954274/ft1_filteredMKT_4FGL_J1404.8+6554_daily_bin1749.fits ra=211.216 dec=65.9048 rad=12.0 tmin=692668801.0 tmax=692928001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.70
user 3.45
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/954274/ft2_4FGL_J1404.8+6554_daily_bin1749.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/954274/ft1_filteredMKT_4FGL_J1404.8+6554_daily_bin1749.fits evtable="EVENTS" outfile="/scratch/kocevski/954274/ft1_filtered_4FGL_J1404.8+6554_daily_bin1749.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.55
user 0.33
sys 0.15

Number of photons that the gtmktime cut: 604

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/954274/ft1_filtered_4FGL_J1404.8+6554_daily_bin1749.fits" evtable="EVENTS" scfile=/scratch/kocevski/954274/ft2_4FGL_J1404.8+6554_daily_bin1749.fits sctable="SC_DATA" outfile=/scratch/kocevski/954274/ltcube_692668801_692928001_4FGL_J1404.8+6554_daily_bin1749.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/954274/ft2_4FGL_J1404.8+6554_daily_bin1749.fits
.....................!
real 12.29
user 11.86
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/954274/ft1_filtered_4FGL_J1404.8+6554_daily_bin1749.fits evtable="EVENTS" scfile=/scratch/kocevski/954274/ft2_4FGL_J1404.8+6554_daily_bin1749.fits sctable="SC_DATA" expcube=/scratch/kocevski/954274/ltcube_692668801_692928001_4FGL_J1404.8+6554_daily_bin1749.fits outfile=/scratch/kocevski/954274/expmap_692668801_692928001_4FGL_J1404.8+6554_daily_bin1749.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/954274/ltcube_692668801_692928001_4FGL_J1404.8+6554_daily_bin1749.fits
.....................!
real 193.86
user 187.43
sys 6.05

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/954274/ft1_filtered_4FGL_J1404.8+6554_daily_bin1749.fits scfile=/scratch/kocevski/954274/ft2_4FGL_J1404.8+6554_daily_bin1749.fits outfile=/scratch/kocevski/954274/cmap_692668801_692928001_4FGL_J1404.8+6554_daily_bin1749.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.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/954274/ft1_filtered_4FGL_J1404.8+6554_daily_bin1749.fits scfile=/scratch/kocevski/954274/ft2_4FGL_J1404.8+6554_daily_bin1749.fits outfile=/scratch/kocevski/954274/cmap_HighResolution_692668801_692928001_4FGL_J1404.8+6554_daily_bin1749.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.37
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/954274/ft1_filtered_4FGL_J1404.8+6554_daily_bin1749.fits', '/scratch/kocevski/954274/ft2_4FGL_J1404.8+6554_daily_bin1749.fits', expMap='/scratch/kocevski/954274/expmap_692668801_692928001_4FGL_J1404.8+6554_daily_bin1749.fits', expCube='/scratch/kocevski/954274/ltcube_692668801_692928001_4FGL_J1404.8+6554_daily_bin1749.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/954274/Model_4FGL_J1404.8+6554_daily_bin1749.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/954274/ft1_filtered_4FGL_J1404.8+6554_daily_bin1749.fits
Spacecraft file(s): /scratch/kocevski/954274/ft2_4FGL_J1404.8+6554_daily_bin1749.fits
Exposure map: /scratch/kocevski/954274/expmap_692668801_692928001_4FGL_J1404.8+6554_daily_bin1749.fits
Exposure cube: /scratch/kocevski/954274/ltcube_692668801_692928001_4FGL_J1404.8+6554_daily_bin1749.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/954274/Model_4FGL_J1404.8+6554_daily_bin1749.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) = 6544.52241569

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.355       1.0000          .0000       .10000E+07
     2 'norm      '    2.6371       1.0000          .0000       .10000E+07
     3 'norm      '    3.1092       1.0000          .0000       .10000E+07
     4 'Prefactor '    27.599       1.0000          .0000       .10000E+07
     5 'Prefactor '    .75980E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    .10097E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    .12878E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    .79775E-06   1.0000          .0000       .10000E+07
     9 'Prefactor '    .23269E-04   1.0000          .0000       .10000E+07
    10 'Prefactor '    .45464E-07   1.0000          .0000       .10000E+07
    11 'Prefactor '    .47387E-04   1.0000          .0000       .10000E+07
    12 'norm      '    5.7327       1.0000          .0000       .10000E+07
    13 'Prefactor '    40.761       1.0000          .0000       .10000E+07
    14 'Prefactor '    .60339       1.0000          .0000       .10000E+07
    15 'Prefactor '    .56919E-02   1.0000          .0000       .10000E+07
    16 'Prefactor '    24.732       1.0000          .0000       .10000E+07
    17 'Prefactor '    .30038E-02   1.0000          .0000       .10000E+07
    18 'Prefactor '    .50737E-02   1.0000          .0000       .10000E+07
    19 'Prefactor '    13.939       1.0000          .0000       .10000E+07
    20 'Prefactor '    16.750       1.0000          .0000       .10000E+07
    21 'norm      '    3.8379       1.0000          .0000       .10000E+07
    22 'Prefactor '    .13648       1.0000          .0000       .10000E+07
    23 'Normalizat'    1.2070       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .70293       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=   6544.500     FROM MIGRAD    STATUS=CONVERGED    123 CALLS     1548 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.209        1.9830        .17892E-06   -.19601E-02
   2  norm          2.6390        2.6410        .36215E-06    .34345E-03
   3  norm          3.1068        1.8779       -.13411E-06   -.36425E-03
   4  Prefactor     28.232        4.3057       -.16273E-06   -.18311E-01
   5  Prefactor     .19035E-05    3.8763       -.77859E-06** at limit **
   6  Prefactor     .65398E-06    5.2065        .82948E-08** at limit **
   7  Prefactor     .14838E-05    8.1233       -.44628E-06** at limit **
   8  Prefactor     .14989E-05    4.4733       -.47981E-06** at limit **
   9  Prefactor     .11102E-08    6.1877       -.12605E-05** at limit **
  10  Prefactor     .13597E-05    4.0640        .91642E-08** at limit **
  11  Prefactor     .58564E-07    8.5319       -.54899E-06** at limit **
  12  norm          5.7203        3.1724        .16038E-07    .87573E-03
  13  Prefactor     40.515        1.0470        .26555E-08   -.30170E-02
  14  Prefactor     .59980        1.5544        .11144E-06    .13174E-03
  15  Prefactor     .17482E-05    6.8733        .14702E-05** at limit **
  16  Prefactor     24.756        1.1371        .34596E-07   -.56891E-02
  17  Prefactor     .43426E-05    12.648        .22413E-05** at limit **
  18  Prefactor     .75495E-07    46.520        .31028E-05** at limit **
  19  Prefactor     13.758        10.284        .19920E-06   -.28706E-02
  20  Prefactor     16.757        1.0205        .50180E-08   -.15984E-02
  21  norm          3.8392        3.2244       -.12884E-06   -.96577E-04
  22  Prefactor     .14827E-06    55.219        .15127E-05** at limit **
  23  Normalizat    1.2074        .17542        .19774E-04   -.35251E-04
  24  Prefactor     .70269        .19174       -.23613E-04   -.74268E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.2087
  norm       = 2.63901
  norm       = 3.10676
  Prefactor  = 28.2321
  Prefactor  = 1.90353e-06
  Prefactor  = 6.53977e-07
  Prefactor  = 1.48381e-06
  Prefactor  = 1.49891e-06
  Prefactor  = 1.11022e-09
  Prefactor  = 1.35969e-06
  Prefactor  = 5.85643e-08
  norm       = 5.72032
  Prefactor  = 40.5153
  Prefactor  = 0.5998
  Prefactor  = 1.74821e-06
  Prefactor  = 24.7558
  Prefactor  = 4.34258e-06
  Prefactor  = 7.54952e-08
  Prefactor  = 13.7577
  Prefactor  = 16.757
  norm       = 3.83924
  Prefactor  = 1.4827e-07
  Normalizat = 1.20738
  Prefactor  = 0.702693
 **********
 **   18 **HESSE 
 **********

 FCN=   6544.500     FROM HESSE     STATUS=OK           445 CALLS     1993 TOTAL
                     EDM=   .87E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.209        20.132        .29706E-03   -1.5641    
   2  norm          2.6390        2.6406        .62763E-03   -1.5675    
   3  norm          3.1068        1.8768        .57481E-03   -1.5673    
   4  Prefactor     28.232        33.886        .19038E-03   -1.5602    
   5  Prefactor     .19035E-05    12.796        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .65398E-06    15.047        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .14838E-05    10.311        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .14989E-05    12.996        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .11102E-08    6.1140        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .13597E-05    15.971        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .58564E-07    8.6116        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          5.7203        3.1733        .41927E-03   -1.5660    
  13  Prefactor     40.515        38.647        .15665E-03   -1.5581    
  14  Prefactor     .59980        1.5838        .68925E-03   -1.5692    
  15  Prefactor     .17482E-05    18.380        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     24.756        20.759        .20113E-03   -1.5608    
  17  Prefactor     .43426E-05    20.629        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .75495E-07    47.258        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     13.758        10.270        .26802E-03   -1.5634    
  20  Prefactor     16.757        16.415        .24445E-03   -1.5626    
  21  norm          3.8392        3.2260        .51492E-03   -1.5669    
  22  Prefactor     .14827E-06    55.314        .13038E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.2074        .15079        .34721E-01   -.86375    
  24  Prefactor     .70269        .16419        .62997E-01   -1.0342    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.65039e-07
Minuit parameter uncertainties:
  1  20.1325
  2  2.64063
  3  1.87685
  4  33.8862
  5  0.00987068
  6  0.00627398
  7  0.00782295
  8  0.00882707
  9  0.000162868
  10  0.0093201
  11  0.00142011
  12  3.17327
  13  38.6476
  14  1.58378
  15  0.0113371
  16  20.7592
  17  0.0189298
  18  0.00377829
  19  10.27
  20  16.4147
  21  3.226
  22  0.00572729
  23  0.150843
  24  0.164299
Done.

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

Extracting fit parameters...

4FGL J1404.8+6554
   Spectrum: PowerLaw
366    Prefactor:  4.052e+01  3.865e+01  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.027e-01  1.643e-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.207e+00  1.508e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.13
Ra Dec: 211.216 65.905
Photon Index (Fixed Index): 1.93 +/- 0.00
Photon Flux (Fixed Index): 2.10e-08 +/- 2.00e-08
Energy Flux (Fixed Index): 1.75e-05 +/- 1.67e-05

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

Saving results to:
/scratch/kocevski/954274/likelihoodResults_692668801_692928001_4FGL_J1404.8+6554_daily_bin1749.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) = 6541.69754418
delta logL = 2.80290085815

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6541.46183117
delta logL = 3.03861386999

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .26311       1.0000          .0000       .10000E+07
     2 'Index     '    4.4892       1.0000          .0000       10.000    
     3 'Normalizat'    1.0222       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84575       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.

 FCN=   6541.462     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      302 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .25892        1.2735        .35325E-03    .20739E-01
   2  Index         4.4947        1.3905        .46963E-01    .33710E-03
   3  Normalizat    1.0225        .51836E-01    .43047E-01    .41669E-04
   4  Prefactor     .84527        .56780E-01    .44310E-01    .18785E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.258923
  Index      = 4.49471
  Normalizat = 1.02254
  Prefactor  = 0.845269
 **********
 **   18 **HESSE 
 **********

 FCN=   6541.462     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      335 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .25892        1.9801        .15765E-05   -1.5698    
   2  Index         4.4947        1.8393        .19772E-02   -.10123    
   3  Normalizat    1.0225        .16283        .21281E-03   -.92279    
   4  Prefactor     .84527        .17655        .25634E-03   -.98081    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.02265e-10
Minuit parameter uncertainties:
  1  1.43204
  2  1.88398
  3  0.162911
  4  0.176667
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/954274': 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) = 6541.46182156
delta logL = 3.03862348102

Extracting fit parameters...

4FGL J1404.8+6554
   Spectrum: PowerLaw
366    Prefactor:  2.589e-01  1.432e+00  0.000e+00  1.000e+06 ( 1.000e-14)
367        Index:  4.495e+00  1.884e+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:  8.453e-01  1.767e-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.023e+00  1.629e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.00
Ra Dec: 211.216 65.905
Photon Index (Free Index): 4.49 +/- 1.88
Photon Flux (Free Index): 1.35e-07 +/- 5.44e-08
Energy Flux (Free Index): 1.88e-05 +/- 8.77e-06

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/954274/cmap_HighResolution_692668801_692928001_4FGL_J1404.8+6554_daily_bin1749.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.31e-03', comment='SUCCESS', photon_flux='2.10e-08', energy_flux2='1.88e-05', photon_flux_error='2.00e-08', dlogl='3.04e+00', energy_flux='1.75e-05', photon_flux2='1.35e-07', job_status='DONE', time_completed='2022-12-17 01:03:47.660894', photon_index_error2='1.88', photon_index2='4.49', ts='2.13', fit_tolerance='1e-08', GAL='0.70', photon_index_error='0.00', photon_flux_upper_limit='7.13e-08', energy_flux_error2='8.77e-06', EG='1.21', time_epoch_completed='1671267827.66', return_code='0', job_id='954274', GAL2='0.85', EG2='1.02', return_code2='102', energy_flux_error='1.67e-05', photon_flux_error2='5.44e-08', ts2='9.00', photon_index='1.93' WHERE bin_id='1749' AND source_name='4FGL J1404.8+6554' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Dec 17 01:03:47 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0085>
Subject: Job 954274: <4FGL_J1404.8+6554_daily_bin1749> in cluster <slac> Done

Job <4FGL_J1404.8+6554_daily_bin1749> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Dec 17 00:50:16 2022
Job was executed on host(s) <bullet0085>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Dec 17 00:50:17 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Dec 17 00:50:17 2022
Terminated at Sat Dec 17 01:03:48 2022
Results reported at Sat Dec 17 01:03:48 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1404.8+6554_daily_bin1749 211.216 65.9048 692668801 692928001 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 :                                   680.40 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             288.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   810 sec.
    Turnaround time :                            812 sec.

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

