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 49 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 make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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


Performing analysis on: 4FGL_J1606.9+5919_daily_bin1668
RA = 241.734, Dec = 59.3201
tmin = 671673601, tmax = 671932801
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='555748', job_status='RUN', time_executed='2022-04-18 03:05:05.145076', time_epoch_executed='1650276305.15' WHERE source_name='4FGL J1606.9+5919' and cadence='daily' and bin_id='1668'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/555748

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/555748/ft1_4FGL_J1606.9+5919_daily_bin1668.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/555748/ft2_4FGL_J1606.9+5919_daily_bin1668.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/555748/ft1_4FGL_J1606.9+5919_daily_bin1668.fits outfile=/scratch/kocevski/555748/ft1_filteredMKT_4FGL_J1606.9+5919_daily_bin1668.fits ra=241.734 dec=59.3201 rad=12.0 tmin=671673601.0 tmax=671932801.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.37
sys 0.21

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

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

Number of photons that the gtmktime cut: 703

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/555748/ft1_filtered_4FGL_J1606.9+5919_daily_bin1668.fits evtable="EVENTS" scfile=/scratch/kocevski/555748/ft2_4FGL_J1606.9+5919_daily_bin1668.fits sctable="SC_DATA" expcube=/scratch/kocevski/555748/ltcube_671673601_671932801_4FGL_J1606.9+5919_daily_bin1668.fits outfile=/scratch/kocevski/555748/expmap_671673601_671932801_4FGL_J1606.9+5919_daily_bin1668.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/555748/ltcube_671673601_671932801_4FGL_J1606.9+5919_daily_bin1668.fits
.....................!
real 194.04
user 187.99
sys 5.44

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/555748/ft1_filtered_4FGL_J1606.9+5919_daily_bin1668.fits scfile=/scratch/kocevski/555748/ft2_4FGL_J1606.9+5919_daily_bin1668.fits outfile=/scratch/kocevski/555748/cmap_671673601_671932801_4FGL_J1606.9+5919_daily_bin1668.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.58
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/555748/ft1_filtered_4FGL_J1606.9+5919_daily_bin1668.fits scfile=/scratch/kocevski/555748/ft2_4FGL_J1606.9+5919_daily_bin1668.fits outfile=/scratch/kocevski/555748/cmap_HighResolution_671673601_671932801_4FGL_J1606.9+5919_daily_bin1668.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.57
user 0.40
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/555748/ft1_filtered_4FGL_J1606.9+5919_daily_bin1668.fits', '/scratch/kocevski/555748/ft2_4FGL_J1606.9+5919_daily_bin1668.fits', expMap='/scratch/kocevski/555748/expmap_671673601_671932801_4FGL_J1606.9+5919_daily_bin1668.fits', expCube='/scratch/kocevski/555748/ltcube_671673601_671932801_4FGL_J1606.9+5919_daily_bin1668.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/555748/Model_4FGL_J1606.9+5919_daily_bin1668.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  1.000e-04  1.000e+04 ( 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/555748/ft1_filtered_4FGL_J1606.9+5919_daily_bin1668.fits
Spacecraft file(s): /scratch/kocevski/555748/ft2_4FGL_J1606.9+5919_daily_bin1668.fits
Exposure map: /scratch/kocevski/555748/expmap_671673601_671932801_4FGL_J1606.9+5919_daily_bin1668.fits
Exposure cube: /scratch/kocevski/555748/ltcube_671673601_671932801_4FGL_J1606.9+5919_daily_bin1668.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/555748/Model_4FGL_J1606.9+5919_daily_bin1668.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) = 7576.52170826

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    19.197       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.5880       1.0000         .10000E-03   10000.    
     5 'Prefactor '    22.308       1.0000         .10000E-03   10000.    
     6 'norm      '    .91137       1.0000         .10000E-03   10000.    
     7 'Prefactor '    17.955       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.5875       1.0000         .10000E-03   10000.    
     9 'norm      '    7.3222       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .20615       1.0000         .10000E-03   10000.    
    11 'Prefactor '    21.953       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .87437E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    40.110       1.0000         .10000E-03   10000.    
    14 'Prefactor '    18.035       1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.4556       1.0000         .10000E-03   10000.    
    16 'norm      '    13.393       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.6191       1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.7554       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10071E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.6594       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.6237       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .87481       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0295       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=   7576.488     FROM MIGRAD    STATUS=CONVERGED    113 CALLS     2888 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.9900       -.47468E-05** at limit **
   2  Prefactor     .10000E-03    3.7622        .38957E-05** at limit **
   3  Prefactor     19.200        2.4590        .11025E-05   -.20401E-02
   4  Prefactor     6.5918        1.4995        .12187E-06    .10482E-02
   5  Prefactor     22.301        4.2997        .36645E-05   -.19863E-02
   6  norm          .90808        1.7231       -.35910E-05    .82121E-05
   7  Prefactor     18.003        4.3404        .40808E-05   -.31934E-02
   8  Prefactor     1.5861        5.3386       -.13713E-05    .41849E-03
   9  norm          7.3294        7.2299        .59367E-05   -.28940E-02
  10  Prefactor     .10000E-03    1047.5       -.13319E-03** at limit **
  11  Prefactor     21.973        1.9396       -.26862E-06    .10144E-02
  12  Prefactor     .10258E-03    36.850        .47835E-04** at limit **
  13  norm          40.113        3.9910       -.27086E-05    .15325E-02
  14  Prefactor     18.039        3.8919        .37525E-05    .16478E-01
  15  Prefactor     6.4305        13.028        .21877E-04   -.37247E-02
  16  norm          13.394        1.1127        .18606E-06   -.11594E-02
  17  Prefactor     3.6190        3.4676       -.12914E-05   -.22363E-04
  18  Prefactor     8.7535        1.1297       -.16193E-06    .17850E-03
  19  Prefactor     .10000E-03    15.642       -.24718E-05** at limit **
  20  norm          .10000E-03    .39408        .15755E-05** at limit **
  21  Prefactor     6.6589        1.3654       -.20127E-06   -.16020E-02
  22  Prefactor     .10000E-03    10.109       -.60681E-05** at limit **
  23  Prefactor     4.6239        5.5806        .58635E-05    .14622E-02
  24  Prefactor     .10000E-03    6.2163       -.76892E-05** at limit **
  25  Prefactor     .10005E-03    49.945       -.96947E-05** at limit **
  26  Normalizat    .87439        .18973       -.87531E-05    .55016E-04
  27  Prefactor     1.0300        .18051        .10995E-04    .68586E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.2002
  Prefactor  = 6.59175
  Prefactor  = 22.3013
  norm       = 0.908075
  Prefactor  = 18.0033
  Prefactor  = 1.5861
  norm       = 7.32937
  Prefactor  = 0.000100001
  Prefactor  = 21.9731
  Prefactor  = 0.000102576
  norm       = 40.1131
  Prefactor  = 18.0388
  Prefactor  = 6.43051
  norm       = 13.3936
  Prefactor  = 3.61904
  Prefactor  = 8.75348
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 6.65892
  Prefactor  = 0.0001
  Prefactor  = 4.62393
  Prefactor  = 0.0001
  Prefactor  = 0.000100051
  Normalizat = 0.87439
  Prefactor  = 1.03002
 **********
 **   18 **HESSE 
 **********

 FCN=   7576.488     FROM HESSE     STATUS=OK           568 CALLS     3456 TOTAL
                     EDM=   .73E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.9860        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.7228        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     19.200        8.1595        .22853E-02   -1.4831    
   4  Prefactor     6.5918        17.097        .39087E-02   -1.5194    
   5  Prefactor     22.301        23.141        .21202E-02   -1.4763    
   6  norm          .90808        2.0931        .35936E-01   -1.5517    
   7  Prefactor     18.003        116.83        .23630E-02   -1.4859    
   8  Prefactor     1.5861        5.8184        .84219E-02   -1.5456    
   9  norm          7.3294        8.9558        .37056E-02   -1.5166    
  10  Prefactor     .10000E-03    41.070        .13767       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     21.973        58.221        .21372E-02   -1.4770    
  12  Prefactor     .10258E-03    2.4522        .74309E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          40.113        20.992        .15823E-02   -1.4440    
  14  Prefactor     18.039        7.2408        .23578E-02   -1.4858    
  15  Prefactor     6.4305        22.161        .39490E-02   -1.5201    
  16  norm          13.394        8.7997        .27362E-02   -1.4976    
  17  Prefactor     3.6190        3.5243        .53095E-02   -1.5327    
  18  Prefactor     8.7535        9.0005        .33866E-02   -1.5116    
  19  Prefactor     .10000E-03    15.501        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    .24653        .22516E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     6.6589        7.5290        .38874E-02   -1.5192    
  22  Prefactor     .10000E-03    10.088        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     4.6239        5.7065        .46795E-02   -1.5278    
  24  Prefactor     .10000E-03    6.1611        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10005E-03    50.932        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .87439        .17577        .44579E-01   -.97366    
  27  Prefactor     1.0300        .15677        .41296E-01   -.91735    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.25803e-07
Minuit parameter uncertainties:
  1  3.53242e-05
  2  3.45945e-06
  3  8.15997
  4  17.1095
  5  23.1506
  6  2.09328
  7  91.988
  8  5.82049
  9  8.95744
  10  0.00044677
  11  58.3718
  12  0.00502658
  13  20.9955
  14  7.24115
  15  22.1897
  16  8.80055
  17  3.52446
  18  9.00189
  19  0.000136069
  20  7.90662e-07
  21  7.53003
  22  5.38925e-05
  23  5.70717
  24  5.70254e-06
  25  0.00321897
  26  0.175882
  27  0.156844
Done.

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

Extracting fit parameters...

4FGL J1606.9+5919
   Spectrum: PowerLaw
329    Prefactor:  1.000e-04  4.468e-04  1.000e-04  1.000e+04 ( 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.030e+00  1.568e-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:  8.744e-01  1.759e-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.62e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.01e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/555748/likelihoodResults_671673601_671932801_4FGL_J1606.9+5919_daily_bin1668.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) = 7576.48753841
delta logL = -4.3939353418e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7576.48753841
delta logL = -4.39208815806e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96365E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1137       1.0000          .0000       10.000    
     3 'Normalizat'    .87439       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0300       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=   7574.953     FROM MIGRAD    STATUS=CONVERGED    223 CALLS      401 TOTAL
                     EDM=   .37E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .10771E-02   -.22329E-06** at limit **
   2  Index         7.0333        .22131       -.34458E-05    .29469E-03
   3  Normalizat    .76753        .18638        .67385E-05    .74002E-03
   4  Prefactor     1.1017        .18295       -.83917E-05    .65341E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 7.0333
  Normalizat = 0.767526
  Prefactor  = 1.10168
 **********
 **   18 **HESSE 
 **********

 FCN=   7574.953     FROM HESSE     STATUS=NOT POSDEF    41 CALLS      442 TOTAL
                     EDM=   .39E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .19310E-02    .31930E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         7.0333        1.5736        .86976E-01    .41880    
   3  Normalizat    .76753        .39028E-01    .44573E-01   -1.0128    
   4  Prefactor     1.1017        .37776E-01    .41257E-01   -.89413    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.88227e-08
Minuit parameter uncertainties:
  1  1.21632e-08
  2  1.60647
  3  0.0390298
  4  0.0377773
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/555748': 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) = 7574.95270226
delta logL = 1.53483175705

Extracting fit parameters...

4FGL J1606.9+5919
   Spectrum: PowerLaw
329    Prefactor:  1.000e-04  1.216e-08  1.000e-04  1.000e+04 ( 1.000e-14)
330        Index:  7.033e+00  1.606e+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:  1.102e+00  3.778e-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:  7.675e-01  3.903e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.35
Ra Dec: 241.734 59.320
Photon Index (Free Index): 7.03 +/- 1.61
Photon Flux (Free Index): 7.40e-08 +/- 3.50e-07
Energy Flux (Free Index): 8.83e-06 +/- 4.15e-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/555748/cmap_HighResolution_671673601_671932801_4FGL_J1606.9+5919_daily_bin1668.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.01e-03', comment='SUCCESS', energy_flux2='8.83e-06', dlogl='1.53e+00', photon_flux2='7.40e-08', job_status='DONE', time_completed='2022-04-18 03:21:54.488468', photon_index_error2='1.61', photon_index2='7.03', ts='-0.00', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='6.62e-08', energy_flux_error2='4.15e-05', EG='0.87', time_epoch_completed='1650277314.49', return_code='0', job_id='555748', GAL2='1.10', EG2='0.77', return_code2='102', photon_flux_error2='3.50e-07', ts2='3.35', photon_index='2.11' WHERE bin_id='1668' AND source_name='4FGL J1606.9+5919' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Apr 18 03:21:54 PDT 2022



------------------------------------------------------------
Sender: LSF System <lsf@bullet0173>
Subject: Job 555454: <4FGL_J1606.9+5919_daily_bin1668> in cluster <slac> Done

Job <4FGL_J1606.9+5919_daily_bin1668> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Apr 18 00:07:31 2022
Job was executed on host(s) <bullet0173>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Apr 18 02:58:56 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Apr 18 02:58:56 2022
Terminated at Mon Apr 18 03:19:36 2022
Results reported at Mon Apr 18 03:19:36 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1606.9+5919_daily_bin1668 241.734 59.3201 671673601 671932801 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 :                                   991.10 sec.
    Max Memory :                                 618 MB
    Average Memory :                             261.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1240 sec.
    Turnaround time :                            11525 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0267>
Subject: Job 555748: <4FGL_J1606.9+5919_daily_bin1668> in cluster <slac> Done

Job <4FGL_J1606.9+5919_daily_bin1668> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Apr 18 00:07:44 2022
Job was executed on host(s) <bullet0267>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Apr 18 03:04:06 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Apr 18 03:04:06 2022
Terminated at Mon Apr 18 03:21:55 2022
Results reported at Mon Apr 18 03:21:55 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1606.9+5919_daily_bin1668 241.734 59.3201 671673601 671932801 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 :                                   1008.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             315.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1068 sec.
    Turnaround time :                            11651 sec.

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

