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


Performing analysis on: 4FGL_J1606.9+5919_daily_bin1777
RA = 241.734, Dec = 59.3201
tmin = 699926401, tmax = 700185601
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='918262', job_status='RUN', time_executed='2023-03-11 00:55:48.156283', time_epoch_executed='1678524948.16' WHERE source_name='4FGL J1606.9+5919' and cadence='daily' and bin_id='1777'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/918262

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/918262/ft1_4FGL_J1606.9+5919_daily_bin1777.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/918262/ft2_4FGL_J1606.9+5919_daily_bin1777.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/918262/ft1_4FGL_J1606.9+5919_daily_bin1777.fits outfile=/scratch/kocevski/918262/ft1_filteredMKT_4FGL_J1606.9+5919_daily_bin1777.fits ra=241.734 dec=59.3201 rad=12.0 tmin=699926401.0 tmax=700185601.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.62
user 3.40
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/918262/ft2_4FGL_J1606.9+5919_daily_bin1777.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/918262/ft2_4FGL_J1606.9+5919_daily_bin1777.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/918262/ft1_filteredMKT_4FGL_J1606.9+5919_daily_bin1777.fits evtable="EVENTS" outfile="/scratch/kocevski/918262/ft1_filtered_4FGL_J1606.9+5919_daily_bin1777.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.49
user 0.31
sys 0.17

Number of photons that the gtmktime cut: 718

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/918262/ft1_filtered_4FGL_J1606.9+5919_daily_bin1777.fits" evtable="EVENTS" scfile=/scratch/kocevski/918262/ft2_4FGL_J1606.9+5919_daily_bin1777.fits sctable="SC_DATA" outfile=/scratch/kocevski/918262/ltcube_699926401_700185601_4FGL_J1606.9+5919_daily_bin1777.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/918262/ft2_4FGL_J1606.9+5919_daily_bin1777.fits
.....................!
real 11.94
user 11.60
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/918262/ft1_filtered_4FGL_J1606.9+5919_daily_bin1777.fits evtable="EVENTS" scfile=/scratch/kocevski/918262/ft2_4FGL_J1606.9+5919_daily_bin1777.fits sctable="SC_DATA" expcube=/scratch/kocevski/918262/ltcube_699926401_700185601_4FGL_J1606.9+5919_daily_bin1777.fits outfile=/scratch/kocevski/918262/expmap_699926401_700185601_4FGL_J1606.9+5919_daily_bin1777.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/918262/ltcube_699926401_700185601_4FGL_J1606.9+5919_daily_bin1777.fits
.....................!
real 192.88
user 187.10
sys 5.47

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

Setting source of interest to:
4FGL J1606.9+5919 @ 241.734 59.3201

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/918262/ft1_filtered_4FGL_J1606.9+5919_daily_bin1777.fits scfile=/scratch/kocevski/918262/ft2_4FGL_J1606.9+5919_daily_bin1777.fits outfile=/scratch/kocevski/918262/cmap_699926401_700185601_4FGL_J1606.9+5919_daily_bin1777.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=241.734 yref=59.3201 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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/918262/ft1_filtered_4FGL_J1606.9+5919_daily_bin1777.fits scfile=/scratch/kocevski/918262/ft2_4FGL_J1606.9+5919_daily_bin1777.fits outfile=/scratch/kocevski/918262/cmap_HighResolution_699926401_700185601_4FGL_J1606.9+5919_daily_bin1777.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=241.734 yref=59.3201 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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/918262/ft1_filtered_4FGL_J1606.9+5919_daily_bin1777.fits evtable="EVENTS" scfile=/scratch/kocevski/918262/ft2_4FGL_J1606.9+5919_daily_bin1777.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/918262/Model_4FGL_J1606.9+5919_daily_bin1777.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/918262/ft1_filtered_4FGL_J1606.9+5919_daily_bin1777.fits.....................!
real 63.39
user 62.11
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/918262/ft1_filtered_4FGL_J1606.9+5919_daily_bin1777.fits', '/scratch/kocevski/918262/ft2_4FGL_J1606.9+5919_daily_bin1777.fits', expMap='/scratch/kocevski/918262/expmap_699926401_700185601_4FGL_J1606.9+5919_daily_bin1777.fits', expCube='/scratch/kocevski/918262/ltcube_699926401_700185601_4FGL_J1606.9+5919_daily_bin1777.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/918262/Model_4FGL_J1606.9+5919_daily_bin1777.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1606.9+5919'

4FGL J1606.9+5919
   Spectrum: PowerLaw
329    Prefactor:  2.197e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
330        Index:  2.114e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
331        Scale:  2.350e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/918262/ft1_filtered_4FGL_J1606.9+5919_daily_bin1777.fits
Spacecraft file(s): /scratch/kocevski/918262/ft2_4FGL_J1606.9+5919_daily_bin1777.fits
Exposure map: /scratch/kocevski/918262/expmap_699926401_700185601_4FGL_J1606.9+5919_daily_bin1777.fits
Exposure cube: /scratch/kocevski/918262/ltcube_699926401_700185601_4FGL_J1606.9+5919_daily_bin1777.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/918262/Model_4FGL_J1606.9+5919_daily_bin1777.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) = 7789.80072924

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .30300E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    .11384E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    .12889       1.0000          .0000       .10000E+07
     4 'Prefactor '    .86647E-01   1.0000          .0000       .10000E+07
     5 'norm      '    .64204E-06   1.0000          .0000       .10000E+07
     6 'Prefactor '    84.621       1.0000          .0000       .10000E+07
     7 'Prefactor '    7.5676       1.0000          .0000       .10000E+07
     8 'norm      '    .87374E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    27.894       1.0000          .0000       .10000E+07
    10 'Prefactor '    71.363       1.0000          .0000       .10000E+07
    11 'Prefactor '    5.5722       1.0000          .0000       .10000E+07
    12 'norm      '    .58743E-02   1.0000          .0000       .10000E+07
    13 'Prefactor '    3.2899       1.0000          .0000       .10000E+07
    14 'Prefactor '    2.1343       1.0000          .0000       .10000E+07
    15 'norm      '    11.104       1.0000          .0000       .10000E+07
    16 'Prefactor '    .15338E-06   1.0000          .0000       .10000E+07
    17 'Prefactor '    .50978E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    .29023E-04   1.0000          .0000       .10000E+07
    19 'norm      '    .11102E-08   1.0000          .0000       .10000E+07
    20 'Prefactor '    .33121E-02   1.0000          .0000       .10000E+07
    21 'Prefactor '    2.4174       1.0000          .0000       .10000E+07
    22 'Prefactor '    .35871E-04   1.0000          .0000       .10000E+07
    23 'Prefactor '    .68953E-03   1.0000          .0000       .10000E+07
    24 'Prefactor '    .14878E-02   1.0000          .0000       .10000E+07
    25 'Normalizat'    1.2918       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .77261       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7060E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7789.800     FROM MIGRAD    STATUS=CONVERGED    151 CALLS     2323 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .33362E-07    1.3604       -.23523E-07** at limit **
   2  Prefactor     .58009E-07    1.9403       -.12681E-06** at limit **
   3  Prefactor     .12387        .94577        .15910E-06** at limit **
   4  Prefactor     .46629E-08    26.377        .57658E-06** at limit **
   5  norm           .0000        .77101       -.18875E-06** at limit **
   6  Prefactor     84.728        41.297        .21786E-06   -.12260    
   7  Prefactor     7.5269        5.9324        .54511E-08    .40991E-03
   8  norm          .43632E-07    2.2854        .94486E-07** at limit **
   9  Prefactor     27.858        1.4458        .73800E-08   -.10781E-01
  10  Prefactor     71.437        16.754        .94222E-07   -.40329E-01
  11  Prefactor     5.5294        5.1267       -.10524E-06   -.84490E-04
  12  norm          .32141E-07    7.7723        .11299E-05** at limit **
  13  Prefactor     3.2864        6.1719        .32041E-07   -.78451E-03
  14  Prefactor     2.1864        50.049        .12543E-07    .37153E-01
  15  norm          11.114        6.9437       -.73433E-07    .10731E-01
  16  Prefactor      .0000        1.0405        .33501E-06** at limit **
  17  Prefactor     .33429E-06    3.7097        .26951E-06** at limit **
  18  Prefactor     .15338E-06    1.9087       -.17572E-06** at limit **
  19  norm           .0000        .25337        .14085E-06** at limit **
  20  Prefactor     .20428E-07    8.3114       -.29055E-06** at limit **
  21  Prefactor     2.3993        8.9536       -.59213E-06   -.30578E-01
  22  Prefactor      .0000        2.6426        .45495E-07** at limit **
  23  Prefactor     .64948E-08    1.8107        .56506E-07** at limit **
  24  Prefactor     .16098E-08    14.358        .34824E-06** at limit **
  25  Normalizat    1.2922        .18168        .22915E-07    .62523E-04
  26  Prefactor     .77239        .16886        .31304E-05    .59579E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.33622e-08
  Prefactor  = 5.80092e-08
  Prefactor  = 0.123872
  Prefactor  = 4.66294e-09
  norm       = 0
  Prefactor  = 84.7284
  Prefactor  = 7.52694
  norm       = 4.36318e-08
  Prefactor  = 27.8584
  Prefactor  = 71.4368
  Prefactor  = 5.52942
  norm       = 3.2141e-08
  Prefactor  = 3.28637
  Prefactor  = 2.18642
  norm       = 11.114
  Prefactor  = 0
  Prefactor  = 3.34288e-07
  Prefactor  = 1.53377e-07
  norm       = 0
  Prefactor  = 2.04281e-08
  Prefactor  = 2.39927
  Prefactor  = 0
  Prefactor  = 6.4948e-09
  Prefactor  = 1.60982e-09
  Normalizat = 1.29219
  Prefactor  = 0.772392
 **********
 **   18 **HESSE 
 **********

 FCN=   7789.800     FROM HESSE     STATUS=OK           508 CALLS     2831 TOTAL
                     EDM=   .18E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .33362E-07    4.9095        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .58009E-07    5.4431        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .12387        3.1005        .99669E-02   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .46629E-08    25.889        .14303E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm           .0000        .77041        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     84.728        68.153        .10871E-03   -1.5524    
   7  Prefactor     7.5269        5.9377        .36432E-03   -1.5653    
   8  norm          .43632E-07    4.8689        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     27.858        23.979        .18937E-03   -1.5602    
  10  Prefactor     71.437        62.126        .11838E-03   -1.5539    
  11  Prefactor     5.5294        5.1889        .42536E-03   -1.5661    
  12  norm          .32141E-07    8.7739        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.2864        6.1928        .55797E-03   -1.5672    
  14  Prefactor     2.1864        92.541        .70537E-03   -1.5678    
  15  norm          11.114        6.9524        .30040E-03   -1.5641    
  16  Prefactor      .0000        1.0384        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .33429E-06    5.7866        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .15338E-06    5.3600        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm           .0000        .24958        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .20428E-07    9.6772        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     2.3993        9.6082        .65808E-03   -1.5677    
  22  Prefactor      .0000        2.6383        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .64948E-08    4.8983        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .16098E-08    14.378        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.2922        .15851        .49633E-01   -.83800    
  26  Prefactor     .77239        .14508        .43360E-01   -1.0075    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.77839e-06
Minuit parameter uncertainties:
  1  0.000809464
  2  0.00112372
  3  1.23946
  4  0.000696031
  5  2.72796e-06
  6  68.1536
  7  5.93768
  8  0.000921564
  9  23.9793
  10  62.1262
  11  5.18888
  12  0.00106179
  13  6.19283
  14  28.4493
  15  6.95244
  16  5.11619e-06
  17  0.0027816
  18  0.00181327
  19  1.50413e-06
  20  0.000888852
  21  9.60267
  22  2.04552e-07
  23  0.000356343
  24  0.000302677
  25  0.158573
  26  0.14515
Done.

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

Extracting fit parameters...

4FGL J1606.9+5919
   Spectrum: PowerLaw
329    Prefactor:  2.786e+01  2.398e+01  0.000e+00  1.000e+06 ( 1.000e-14)
330        Index:  2.114e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
331        Scale:  2.350e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
703    Prefactor:  7.724e-01  1.451e-01  0.000e+00  1.000e+01 ( 1.000e+00)
704        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
705        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
702   Normalization:  1.292e+00  1.586e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.86
Ra Dec: 241.734 59.320
Photon Index (Fixed Index): 2.11 +/- 0.00
Photon Flux (Fixed Index): 1.98e-08 +/- 1.70e-08
Energy Flux (Fixed Index): 1.05e-05 +/- 9.07e-06

TS (Fixed Index): 3.86
Ra Dec: 241.734 59.320
Photon Flux Upper Limit: 6.42e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.86e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/918262/likelihoodResults_699926401_700185601_4FGL_J1606.9+5919_daily_bin1777.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) = 7789.75056274
delta logL = 0.0494720181887

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7789.7468143
delta logL = 0.0532204559877

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    34.401       1.0000          .0000       .10000E+07
     2 'Index     '    1.9134       1.0000          .0000       10.000    
     3 'Normalizat'    1.2967       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77044       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7060E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7789.747     FROM MIGRAD    STATUS=CONVERGED     65 CALLS      278 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     34.484        794.57        .17052E-03   -.28602E-04
   2  Index         1.9169        3.1913        .21045        .65576E-04
   3  Normalizat    1.2966        .64953E-01    .49563E-01    .12182E-05
   4  Prefactor     .77012        .49889E-01    .43331E-01    .21520E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 34.4837
  Index      = 1.9169
  Normalizat = 1.29658
  Prefactor  = 0.770123
 **********
 **   18 **HESSE 
 **********

 FCN=   7789.747     FROM HESSE     STATUS=OK            31 CALLS      309 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     34.484        35.748        .68207E-05   -1.5591    
   2  Index         1.9169        .60813        .73792E-02   -.66444    
   3  Normalizat    1.2966        .17699        .21912E-03   -.83668    
   4  Prefactor     .77012        .16811        .26205E-03   -1.0084    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.72253e-09
Minuit parameter uncertainties:
  1  35.7487
  2  0.610571
  3  0.177077
  4  0.168221
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/918262': 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) = 7789.74676794
delta logL = 0.0532668169699

Extracting fit parameters...

4FGL J1606.9+5919
   Spectrum: PowerLaw
329    Prefactor:  3.448e+01  3.575e+01  0.000e+00  1.000e+06 ( 1.000e-14)
330        Index:  1.917e+00  6.106e-01  0.000e+00  1.000e+01 (-1.000e+00)
331        Scale:  2.350e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
703    Prefactor:  7.701e-01  1.682e-01  0.000e+00  1.000e+01 ( 1.000e+00)
704        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
705        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
702   Normalization:  1.297e+00  1.771e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.97
Ra Dec: 241.734 59.320
Photon Index (Free Index): 1.92 +/- 0.61
Photon Flux (Free Index): 1.60e-08 +/- 1.80e-08
Energy Flux (Free Index): 1.37e-05 +/- 1.75e-05

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/918262/cmap_HighResolution_699926401_700185601_4FGL_J1606.9+5919_daily_bin1777.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.86e-03', comment='SUCCESS', photon_flux='1.98e-08', energy_flux2='1.37e-05', photon_flux_error='1.70e-08', dlogl='5.33e-02', energy_flux='1.05e-05', photon_flux2='1.60e-08', job_status='DONE', time_completed='2023-03-11 01:09:50.880781', photon_index_error2='0.61', photon_index2='1.92', ts='3.86', fit_tolerance='1e-08', GAL='0.77', photon_index_error='0.00', photon_flux_upper_limit='6.42e-08', energy_flux_error2='1.75e-05', EG='1.29', time_epoch_completed='1678525790.88', return_code='0', job_id='918262', GAL2='0.77', EG2='1.30', return_code2='0', energy_flux_error='9.07e-06', photon_flux_error2='1.80e-08', ts2='3.97', photon_index='2.11' WHERE bin_id='1777' AND source_name='4FGL J1606.9+5919' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Mar 11 01:09:50 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0123>
Subject: Job 918262: <4FGL_J1606.9+5919_daily_bin1777> in cluster <slac> Done

Job <4FGL_J1606.9+5919_daily_bin1777> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Mar 11 00:55:28 2023
Job was executed on host(s) <bullet0123>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Mar 11 00:55:29 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Mar 11 00:55:29 2023
Terminated at Sat Mar 11 01:09:51 2023
Results reported at Sat Mar 11 01:09:51 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1606.9+5919_daily_bin1777 241.734 59.3201 699926401 700185601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1606.9+5919 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   845.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             338.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   862 sec.
    Turnaround time :                            863 sec.

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

