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


Performing analysis on: 4FGL_J1606.9+5919_daily_bin1751
RA = 241.734, Dec = 59.3201
tmin = 693187201, tmax = 693446401
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='81610', job_status='RUN', time_executed='2022-12-23 00:56:34.839253', time_epoch_executed='1671785794.84' WHERE source_name='4FGL J1606.9+5919' and cadence='daily' and bin_id='1751'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/81610

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/81610/ft1_4FGL_J1606.9+5919_daily_bin1751.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/81610/ft2_4FGL_J1606.9+5919_daily_bin1751.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/81610/ft1_4FGL_J1606.9+5919_daily_bin1751.fits outfile=/scratch/kocevski/81610/ft1_filteredMKT_4FGL_J1606.9+5919_daily_bin1751.fits ra=241.734 dec=59.3201 rad=12.0 tmin=693187201.0 tmax=693446401.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.64
user 3.43
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/81610/ft2_4FGL_J1606.9+5919_daily_bin1751.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/81610/ft1_filteredMKT_4FGL_J1606.9+5919_daily_bin1751.fits evtable="EVENTS" outfile="/scratch/kocevski/81610/ft1_filtered_4FGL_J1606.9+5919_daily_bin1751.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.32
sys 0.16

Number of photons that the gtmktime cut: 597

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/81610/ft1_filtered_4FGL_J1606.9+5919_daily_bin1751.fits" evtable="EVENTS" scfile=/scratch/kocevski/81610/ft2_4FGL_J1606.9+5919_daily_bin1751.fits sctable="SC_DATA" outfile=/scratch/kocevski/81610/ltcube_693187201_693446401_4FGL_J1606.9+5919_daily_bin1751.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/81610/ft2_4FGL_J1606.9+5919_daily_bin1751.fits
.....................!
real 12.25
user 11.88
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/81610/ft1_filtered_4FGL_J1606.9+5919_daily_bin1751.fits evtable="EVENTS" scfile=/scratch/kocevski/81610/ft2_4FGL_J1606.9+5919_daily_bin1751.fits sctable="SC_DATA" expcube=/scratch/kocevski/81610/ltcube_693187201_693446401_4FGL_J1606.9+5919_daily_bin1751.fits outfile=/scratch/kocevski/81610/expmap_693187201_693446401_4FGL_J1606.9+5919_daily_bin1751.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/81610/ltcube_693187201_693446401_4FGL_J1606.9+5919_daily_bin1751.fits
.....................!
real 190.56
user 184.46
sys 5.78

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/81610/ft1_filtered_4FGL_J1606.9+5919_daily_bin1751.fits scfile=/scratch/kocevski/81610/ft2_4FGL_J1606.9+5919_daily_bin1751.fits outfile=/scratch/kocevski/81610/cmap_693187201_693446401_4FGL_J1606.9+5919_daily_bin1751.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/81610/ft1_filtered_4FGL_J1606.9+5919_daily_bin1751.fits scfile=/scratch/kocevski/81610/ft2_4FGL_J1606.9+5919_daily_bin1751.fits outfile=/scratch/kocevski/81610/cmap_HighResolution_693187201_693446401_4FGL_J1606.9+5919_daily_bin1751.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.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/81610/ft1_filtered_4FGL_J1606.9+5919_daily_bin1751.fits', '/scratch/kocevski/81610/ft2_4FGL_J1606.9+5919_daily_bin1751.fits', expMap='/scratch/kocevski/81610/expmap_693187201_693446401_4FGL_J1606.9+5919_daily_bin1751.fits', expCube='/scratch/kocevski/81610/ltcube_693187201_693446401_4FGL_J1606.9+5919_daily_bin1751.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/81610/Model_4FGL_J1606.9+5919_daily_bin1751.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/81610/ft1_filtered_4FGL_J1606.9+5919_daily_bin1751.fits
Spacecraft file(s): /scratch/kocevski/81610/ft2_4FGL_J1606.9+5919_daily_bin1751.fits
Exposure map: /scratch/kocevski/81610/expmap_693187201_693446401_4FGL_J1606.9+5919_daily_bin1751.fits
Exposure cube: /scratch/kocevski/81610/ltcube_693187201_693446401_4FGL_J1606.9+5919_daily_bin1751.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/81610/Model_4FGL_J1606.9+5919_daily_bin1751.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) = 6448.03227819

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.422       1.0000          .0000       .10000E+07
     2 'Prefactor '    .67291E-05   1.0000          .0000       .10000E+07
     3 'Prefactor '    3.4464       1.0000          .0000       .10000E+07
     4 'Prefactor '    .12005E-05   1.0000          .0000       .10000E+07
     5 'norm      '    .29065E-05   1.0000          .0000       .10000E+07
     6 'Prefactor '    .16600E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    3.1022       1.0000          .0000       .10000E+07
     8 'norm      '    2.7721       1.0000          .0000       .10000E+07
     9 'Prefactor '    .39976       1.0000          .0000       .10000E+07
    10 'Prefactor '    .51446E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    13.238       1.0000          .0000       .10000E+07
    12 'norm      '    .28659       1.0000          .0000       .10000E+07
    13 'Prefactor '    1.9141       1.0000          .0000       .10000E+07
    14 'Prefactor '    .41089E-06   1.0000          .0000       .10000E+07
    15 'norm      '    12.394       1.0000          .0000       .10000E+07
    16 'Prefactor '    2.2344       1.0000          .0000       .10000E+07
    17 'Prefactor '    9.5985       1.0000          .0000       .10000E+07
    18 'Prefactor '    20.670       1.0000          .0000       .10000E+07
    19 'norm      '    .78420       1.0000          .0000       .10000E+07
    20 'Prefactor '    6.3801       1.0000          .0000       .10000E+07
    21 'Prefactor '    14.364       1.0000          .0000       .10000E+07
    22 'Prefactor '    .85497E-02   1.0000          .0000       .10000E+07
    23 'Prefactor '    .11661E-02   1.0000          .0000       .10000E+07
    24 'Prefactor '    .15226E-01   1.0000          .0000       .10000E+07
    25 'Normalizat'    .93311       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1116       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=   6448.012     FROM MIGRAD    STATUS=CONVERGED    183 CALLS     2252 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.421        4.9319        .50481E-08    .14370E-01
   2  Prefactor     .55511E-10    3.7817       -.34336E-07** at limit **
   3  Prefactor     3.3784        6.9268        .34050E-07   -.16540E-02
   4  Prefactor      .0000        14.877       -.96122E-07** at limit **
   5  norm           .0000        3.8271       -.11581E-06** at limit **
   6  Prefactor     .10120E-06    54.588        .26198E-06** at limit **
   7  Prefactor     3.0755        8.7471       -.15669E-06    .11300E-01
   8  norm          2.6904        6.4817       -.47031E-06   -.43366E-02
   9  Prefactor     .33426E-05    481.20       -.33324E-05** at limit **
  10  Prefactor     .16653E-09    20.018        .16098E-06** at limit **
  11  Prefactor     13.358        7.8247       -.29276E-07    .73350E-02
  12  norm          .45461E-04    27.053       -.51801E-06** at limit **
  13  Prefactor     1.9376        8.3544       -.43801E-06   -.26722E-02
  14  Prefactor     .16653E-09    11.032        .10421E-06** at limit **
  15  norm          12.421        7.4788       -.63196E-07   -.28637E-01
  16  Prefactor     2.2337        2.2119       -.78650E-07   -.40078E-04
  17  Prefactor     9.6080        6.2415        .67352E-07   -.48892E-01
  18  Prefactor     20.657        1.4405       -.69083E-08    .93373E-02
  19  norm          .78344        .60146        .19613E-07   -.57004E-03
  20  Prefactor     6.4258        7.4213        .96931E-07    .10017E-01
  21  Prefactor     14.320        1.3452        .15524E-07    .10015E-01
  22  Prefactor     .11102E-09    9.4027       -.53613E-07** at limit **
  23  Prefactor     .22204E-09    5.2546        .52919E-07** at limit **
  24  Prefactor      .0000        27.693        .16059E-06** at limit **
  25  Normalizat    .93345        .21368       -.48272E-06   -.56638E-04
  26  Prefactor     1.1117        .20058       -.19756E-05   -.58853E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.421
  Prefactor  = 5.55112e-11
  Prefactor  = 3.37837
  Prefactor  = 0
  norm       = 0
  Prefactor  = 1.01197e-07
  Prefactor  = 3.07546
  norm       = 2.69038
  Prefactor  = 3.3426e-06
  Prefactor  = 1.66533e-10
  Prefactor  = 13.3576
  norm       = 4.54606e-05
  Prefactor  = 1.93756
  Prefactor  = 1.66533e-10
  norm       = 12.4214
  Prefactor  = 2.23369
  Prefactor  = 9.60799
  Prefactor  = 20.6574
  norm       = 0.783443
  Prefactor  = 6.42578
  Prefactor  = 14.3197
  Prefactor  = 1.11022e-10
  Prefactor  = 2.22045e-10
  Prefactor  = 0
  Normalizat = 0.933448
  Prefactor  = 1.11165
 **********
 **   18 **HESSE 
 **********

 FCN=   6448.012     FROM HESSE     STATUS=OK           526 CALLS     2778 TOTAL
                     EDM=   .76E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.421        11.430        .29618E-03   -1.5640    
   2  Prefactor     .55511E-10    3.7805        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.3784        6.9456        .54455E-03   -1.5671    
   4  Prefactor      .0000        14.908        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm           .0000        3.7275        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10120E-06    55.733        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.0755        11.345        .57549E-03   -1.5673    
   8  norm          2.6904        7.2447        .61098E-03   -1.5675    
   9  Prefactor     .33426E-05    29.089        .13777E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .16653E-09    20.051        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     13.358        8.1055        .27504E-03   -1.5635    
  12  norm          .45461E-04    19.131        .12533E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.9376        8.7020        .75098E-03   -1.5680    
  14  Prefactor     .16653E-09    11.058        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          12.421        7.8682        .28428E-03   -1.5637    
  16  Prefactor     2.2337        2.2262        .68741E-03   -1.5678    
  17  Prefactor     9.6080        10.426        .32321E-03   -1.5646    
  18  Prefactor     20.657        18.934        .22002E-03   -1.5617    
  19  norm          .78344        .63973        .54120E-03   -1.5690    
  20  Prefactor     6.4258        7.7932        .39713E-03   -1.5657    
  21  Prefactor     14.320        22.141        .26401E-03   -1.5632    
  22  Prefactor     .11102E-09    9.2709        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .22204E-09    5.2443        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor      .0000        27.558        .17374E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .93345        .18531        .45323E-01   -.95295    
  26  Prefactor     1.1117        .17320        .37161E-01   -.89095    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.64914e-07
Minuit parameter uncertainties:
  1  11.4297
  2  2.74846e-05
  3  6.94558
  4  6.64802e-06
  5  8.39018e-06
  6  0.00474945
  7  11.3448
  8  7.24477
  9  0.0197215
  10  0.000110059
  11  8.10549
  12  0.0589821
  13  8.21235
  14  8.06546e-05
  15  7.86824
  16  2.22615
  17  10.4257
  18  18.934
  19  0.639728
  20  7.79325
  21  22.141
  22  5.72091e-05
  23  6.5421e-05
  24  9.40437e-07
  25  0.185442
  26  0.173289
Done.

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

Extracting fit parameters...

4FGL J1606.9+5919
   Spectrum: PowerLaw
329    Prefactor:  3.343e-06  1.972e-02  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:  1.112e+00  1.733e-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:  9.334e-01  1.854e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/81610/likelihoodResults_693187201_693446401_4FGL_J1606.9+5919_daily_bin1751.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) = 6448.01331237
delta logL = -0.00146414027859

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 1
logL (Free Index) = 6447.1553089
delta logL = 0.856539328181

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11213E-07   1.0000          .0000       .10000E+07
     2 'Index     '   10.0000       1.0000          .0000       10.000    
     3 'Normalizat'    .84958       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1691       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=   6448.012     FROM MIGRAD    STATUS=CONVERGED    122 CALLS      695 TOTAL
                     EDM=   .63E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .38858E-09    49.635        .42118E-03** at limit **
   2  Index         1.7841        7.3616        1.2934        .38674E-10
   3  Normalizat    .93345        .16961        .44254E-01   -.18993E-04
   4  Prefactor     1.1117        .16766        .52843E-01   -.55604E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.88578e-10
  Index      = 1.78409
  Normalizat = 0.933449
  Prefactor  = 1.11165
 **********
 **   18 **HESSE 
 **********

 FCN=   6448.012     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      730 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .38858E-09    1373.5        .47848E-01   -.10034E+06
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7841        8.6576        1.2934       -.27125E+07
   3  Normalizat    .93345        .47021E-01    .25681E-03   -107.77    
   4  Prefactor     1.1117        .44864E-01    .23364E-03   -82.572    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.58794e-09
Minuit parameter uncertainties:
  1  0.00147923
  2  35.0783
  3  0.0470235
  4  0.0448655
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/81610': 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) = 6448.01184823
delta logL = 3.32238414558e-09

Extracting fit parameters...

4FGL J1606.9+5919
   Spectrum: PowerLaw
329    Prefactor:  3.886e-10  1.479e-03  0.000e+00  1.000e+06 ( 1.000e-14)
330        Index:  1.784e+00  3.508e+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:  1.112e+00  4.487e-02  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:  9.334e-01  4.702e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 241.734 59.320

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/81610/cmap_HighResolution_693187201_693446401_4FGL_J1606.9+5919_daily_bin1751.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.82e-03', job_status='DONE', photon_flux_upper_limit='6.37e-08', time_completed='2022-12-23 01:10:27.950100', job_id='81610', GAL2='1.11', fit_tolerance='1e-08', EG2='0.93', EG='0.93', time_epoch_completed='1671786627.95', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='3.32e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.11' WHERE bin_id='1751' AND source_name='4FGL J1606.9+5919' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Dec 23 01:10:27 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0158>
Subject: Job 81610: <4FGL_J1606.9+5919_daily_bin1751> in cluster <slac> Done

Job <4FGL_J1606.9+5919_daily_bin1751> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Dec 23 00:55:22 2022
Job was executed on host(s) <bullet0158>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Dec 23 00:55:23 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Dec 23 00:55:23 2022
Terminated at Fri Dec 23 01:10:28 2022
Results reported at Fri Dec 23 01:10:28 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1606.9+5919_daily_bin1751 241.734 59.3201 693187201 693446401 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 :                                   833.03 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             316.34 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   905 sec.
    Turnaround time :                            906 sec.

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

