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


Performing analysis on: 4FGL_J1606.9+5919_daily_bin1731
RA = 241.734, Dec = 59.3201
tmin = 688003201, tmax = 688262401
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='673198', job_status='RUN', time_executed='2022-10-24 08:31:25.617627', time_epoch_executed='1666625485.62' WHERE source_name='4FGL J1606.9+5919' and cadence='daily' and bin_id='1731'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/673198

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/673198/ft1_4FGL_J1606.9+5919_daily_bin1731.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/673198/ft2_4FGL_J1606.9+5919_daily_bin1731.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/673198/ft1_4FGL_J1606.9+5919_daily_bin1731.fits outfile=/scratch/kocevski/673198/ft1_filteredMKT_4FGL_J1606.9+5919_daily_bin1731.fits ra=241.734 dec=59.3201 rad=12.0 tmin=688003201.0 tmax=688262401.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.33
sys 0.20

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

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

Number of photons that the gtmktime cut: 599

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/673198/ft1_filtered_4FGL_J1606.9+5919_daily_bin1731.fits" evtable="EVENTS" scfile=/scratch/kocevski/673198/ft2_4FGL_J1606.9+5919_daily_bin1731.fits sctable="SC_DATA" outfile=/scratch/kocevski/673198/ltcube_688003201_688262401_4FGL_J1606.9+5919_daily_bin1731.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/673198/ft2_4FGL_J1606.9+5919_daily_bin1731.fits
.....................!
real 11.98
user 11.50
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/673198/ft1_filtered_4FGL_J1606.9+5919_daily_bin1731.fits evtable="EVENTS" scfile=/scratch/kocevski/673198/ft2_4FGL_J1606.9+5919_daily_bin1731.fits sctable="SC_DATA" expcube=/scratch/kocevski/673198/ltcube_688003201_688262401_4FGL_J1606.9+5919_daily_bin1731.fits outfile=/scratch/kocevski/673198/expmap_688003201_688262401_4FGL_J1606.9+5919_daily_bin1731.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/673198/ltcube_688003201_688262401_4FGL_J1606.9+5919_daily_bin1731.fits
.....................!
real 192.19
user 185.92
sys 5.83

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/673198/ft1_filtered_4FGL_J1606.9+5919_daily_bin1731.fits scfile=/scratch/kocevski/673198/ft2_4FGL_J1606.9+5919_daily_bin1731.fits outfile=/scratch/kocevski/673198/cmap_688003201_688262401_4FGL_J1606.9+5919_daily_bin1731.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.56
user 0.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/673198/ft1_filtered_4FGL_J1606.9+5919_daily_bin1731.fits scfile=/scratch/kocevski/673198/ft2_4FGL_J1606.9+5919_daily_bin1731.fits outfile=/scratch/kocevski/673198/cmap_HighResolution_688003201_688262401_4FGL_J1606.9+5919_daily_bin1731.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.73
user 0.39
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .24322E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    .38283E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    .12937E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    26.899       1.0000          .0000       .10000E+07
     5 'norm      '    .22760E-08   1.0000          .0000       .10000E+07
     6 'Prefactor '    .39158E-01   1.0000          .0000       .10000E+07
     7 'Prefactor '    .82911E-06   1.0000          .0000       .10000E+07
     8 'norm      '    .49341       1.0000          .0000       .10000E+07
     9 'Prefactor '    .11867E-04   1.0000          .0000       .10000E+07
    10 'Prefactor '    25.683       1.0000          .0000       .10000E+07
    11 'Prefactor '    1.2948       1.0000          .0000       .10000E+07
    12 'norm      '    7.0752       1.0000          .0000       .10000E+07
    13 'Prefactor '    6.0205       1.0000          .0000       .10000E+07
    14 'Prefactor '    22.862       1.0000          .0000       .10000E+07
    15 'norm      '    8.3772       1.0000          .0000       .10000E+07
    16 'Prefactor '    6.3804       1.0000          .0000       .10000E+07
    17 'Prefactor '    3.3993       1.0000          .0000       .10000E+07
    18 'Prefactor '    22.056       1.0000          .0000       .10000E+07
    19 'norm      '    .67554       1.0000          .0000       .10000E+07
    20 'Prefactor '    13.054       1.0000          .0000       .10000E+07
    21 'Prefactor '    3.5805       1.0000          .0000       .10000E+07
    22 'Prefactor '    .37853E-06   1.0000          .0000       .10000E+07
    23 'Prefactor '    .31752E-03   1.0000          .0000       .10000E+07
    24 'Prefactor '    .51998E-03   1.0000          .0000       .10000E+07
    25 'Normalizat'    1.1518       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .75580       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=   6445.758     FROM MIGRAD    STATUS=CONVERGED    185 CALLS     2263 TOTAL
                     EDM=   .52E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .73275E-08    6.1860       -.51254E-07** at limit **
   2  Prefactor     .43576E-07    5.0075       -.14559E-07** at limit **
   3  Prefactor     .86597E-08    7.7368       -.15428E-06** at limit **
   4  Prefactor     26.956        1.5014        .52910E-08   -.10634E-01
   5  norm           .0000        4.4444       -.55885E-07** at limit **
   6  Prefactor     .47991E-05    122.93       -.40083E-06** at limit **
   7  Prefactor      .0000        2.9412       -.25466E-08** at limit **
   8  norm          .51076        6.8200       -.52500E-08   -.67468E-04
   9  Prefactor     .68834E-08    48.089       -.25165E-06** at limit **
  10  Prefactor     26.595        64.898        .57011E-06   -.33714E-02
  11  Prefactor     1.2853        4.8639       -.66149E-07    .13272E-04
  12  norm          7.0790        2.0860       -.11716E-07    .15807E-02
  13  Prefactor     6.0961        6.0263       -.28935E-07   -.24898E-02
  14  Prefactor     22.751        5.0030        .12069E-07    .53691E-01
  15  norm          8.4176        8.4217        .15546E-07    .16854E-01
  16  Prefactor     6.3844        3.2251        .47380E-08    .85176E-03
  17  Prefactor     3.3456        5.7430       -.18297E-07   -.25555E-03
  18  Prefactor     22.156        10.909        .33599E-07    .67323E-01
  19  norm          .67575        .59835        .96428E-08    .31208E-02
  20  Prefactor     13.065        8.9337       -.25214E-07   -.42705E-01
  21  Prefactor     3.6008        3.8575       -.30920E-07   -.37651E-02
  22  Prefactor     .11102E-09    4.2763       -.91933E-08** at limit **
  23  Prefactor     .60896E-07    5.1896        .21537E-07** at limit **
  24  Prefactor     .55511E-09    23.427       -.24264E-06** at limit **
  25  Normalizat    1.1512        .19001        .17525E-05    .20714E-03
  26  Prefactor     .75571        .18436       -.10955E-05    .12496E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.32747e-09
  Prefactor  = 4.35763e-08
  Prefactor  = 8.65974e-09
  Prefactor  = 26.9561
  norm       = 0
  Prefactor  = 4.79905e-06
  Prefactor  = 0
  norm       = 0.510757
  Prefactor  = 6.88338e-09
  Prefactor  = 26.5954
  Prefactor  = 1.2853
  norm       = 7.079
  Prefactor  = 6.0961
  Prefactor  = 22.7511
  norm       = 8.41761
  Prefactor  = 6.38438
  Prefactor  = 3.34562
  Prefactor  = 22.1559
  norm       = 0.675747
  Prefactor  = 13.065
  Prefactor  = 3.60082
  Prefactor  = 1.11022e-10
  Prefactor  = 6.08957e-08
  Prefactor  = 5.55112e-10
  Normalizat = 1.15123
  Prefactor  = 0.755714
 **********
 **   18 **HESSE 
 **********

 FCN=   6445.758     FROM HESSE     STATUS=OK           512 CALLS     2775 TOTAL
                     EDM=   .24E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .73275E-08    6.2426        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .43576E-07    5.2255        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .86597E-08    7.7830        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     26.956        29.019        .19285E-03   -1.5604    
   5  norm           .0000        4.2890        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .47991E-05    153.33        .16002E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        2.9455        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .51076        6.8124        .79375E-03   -1.5694    
   9  Prefactor     .68834E-08    48.035        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     26.595        65.502        .19736E-03   -1.5605    
  11  Prefactor     1.2853        4.9606        .97192E-03   -1.5685    
  12  norm          7.0790        13.160        .37690E-03   -1.5655    
  13  Prefactor     6.0961        6.0777        .40898E-03   -1.5659    
  14  Prefactor     22.751        24.751        .20919E-03   -1.5613    
  15  norm          8.4176        8.4845        .34612E-03   -1.5650    
  16  Prefactor     6.3844        3.2333        .39712E-03   -1.5657    
  17  Prefactor     3.3456        5.7646        .54848E-03   -1.5671    
  18  Prefactor     22.156        19.155        .21299E-03   -1.5614    
  19  norm          .67575        .62808        .62717E-03   -1.5692    
  20  Prefactor     13.065        9.5852        .27699E-03   -1.5636    
  21  Prefactor     3.6008        20.717        .53382E-03   -1.5670    
  22  Prefactor     .11102E-09    4.2656        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .60896E-07    5.4794        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .55511E-09    23.468        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.1512        .16563        .36199E-01   -.88123    
  26  Prefactor     .75571        .16159        .43139E-01   -1.0138    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.35822e-06
Minuit parameter uncertainties:
  1  0.00042795
  2  0.000954261
  3  0.000519085
  4  29.0188
  5  1.9931e-06
  6  0.0542543
  7  3.23081e-06
  8  3.73068
  9  0.00114959
  10  65.5041
  11  4.96062
  12  13.1603
  13  6.07775
  14  24.7515
  15  8.48454
  16  3.23327
  17  5.7646
  18  19.1551
  19  0.628082
  20  9.58517
  21  17.2742
  22  3.97955e-05
  23  0.00115543
  24  0.00022503
  25  0.165707
  26  0.161691
Done.

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

Extracting fit parameters...

4FGL J1606.9+5919
   Spectrum: PowerLaw
329    Prefactor:  6.883e-09  1.150e-03  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.557e-01  1.617e-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.151e+00  1.657e-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: 4.98e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.77e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/673198/likelihoodResults_688003201_688262401_4FGL_J1606.9+5919_daily_bin1731.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) = 6445.76891036
delta logL = -0.0104428376335

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 1
logL (Free Index) = 6445.48426257
delta logL = 0.274204951767

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .31641E-08   1.0000          .0000       .10000E+07
     2 'Index     '    9.9993       1.0000          .0000       10.000    
     3 'Normalizat'    1.1233       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77485       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=   6445.758     FROM MIGRAD    STATUS=CONVERGED    110 CALLS      730 TOTAL
                     EDM=   .44E-13  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        29.820        .17606E-06** at limit **
   2  Index         1.3203        .11042E-01   -.78468E-07     .0000    
   3  Normalizat    1.1512        .18556       -.62634E-05   -.26038E-05
   4  Prefactor     .75571        .18284       -.31214E-05    .55176E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.32031
  Normalizat = 1.15123
  Prefactor  = 0.755715
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   6445.758     FROM HESSE     STATUS=FAILED        11 CALLS      741 TOTAL
                     EDM=   .44E-13  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        29.803        .42118E-03   -.17238E+06
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.4412        1.9330       -.78468E-07   -.24080E+08
   3  Normalizat    1.1512        1.1527       -.62634E-05   -27.393    
   4  Prefactor     .75571        1.1112       -.31214E-05   -158.09    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 4.41346e-14
Minuit parameter uncertainties:
  1  6.43962e-06
  2  1.08627
  3  1.17963
  4  1.14682
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/673198': 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) = 6445.75846752
delta logL = 9.00399754755e-11

Extracting fit parameters...

4FGL J1606.9+5919
   Spectrum: PowerLaw
329    Prefactor:  0.000e+00  6.440e-06  0.000e+00  1.000e+06 ( 1.000e-14)
330        Index:  1.320e+00  1.086e+00  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.557e-01  1.147e+00  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.151e+00  1.180e+00  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/673198/cmap_HighResolution_688003201_688262401_4FGL_J1606.9+5919_daily_bin1731.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.77e-03', job_status='DONE', photon_flux_upper_limit='4.98e-08', time_completed='2022-10-24 08:44:58.939897', job_id='673198', GAL2='0.76', fit_tolerance='1e-08', EG2='1.15', EG='1.15', time_epoch_completed='1666626298.94', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.76', dlogl='9.00e-11', ts2='0.00', photon_index_error='0.00', photon_index='2.11' WHERE bin_id='1731' AND source_name='4FGL J1606.9+5919' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Oct 24 08:44:58 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0150>
Subject: Job 673198: <4FGL_J1606.9+5919_daily_bin1731> in cluster <slac> Done

Job <4FGL_J1606.9+5919_daily_bin1731> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Oct 24 08:30:32 2022
Job was executed on host(s) <bullet0150>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Oct 24 08:30:33 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Oct 24 08:30:33 2022
Terminated at Mon Oct 24 08:44:59 2022
Results reported at Mon Oct 24 08:44:59 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1606.9+5919_daily_bin1731 241.734 59.3201 688003201 688262401 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 :                                   790.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             321.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   866 sec.
    Turnaround time :                            867 sec.

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

