/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 219 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 = 7745
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1606.9+5919_daily_bin658
RA = 241.734, Dec = 59.3201
tmin = 409881601, tmax = 410140801
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='24461', job_status='RUN', time_executed='2021-09-13 08:05:38.068383', time_epoch_executed='1631545538.07' WHERE source_name='4FGL J1606.9+5919' and cadence='daily' and bin_id='658'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/24461

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/24461/ft1_4FGL_J1606.9+5919_daily_bin658.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/24461/ft2_4FGL_J1606.9+5919_daily_bin658.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/24461/ft1_4FGL_J1606.9+5919_daily_bin658.fits outfile=/scratch/kocevski/24461/ft1_filteredMKT_4FGL_J1606.9+5919_daily_bin658.fits ra=241.734 dec=59.3201 rad=12.0 tmin=409881601.0 tmax=410140801.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 6.25
user 5.96
sys 0.27

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/24461/ft1_filtered_4FGL_J1606.9+5919_daily_bin658.fits" evtable="EVENTS" scfile=/scratch/kocevski/24461/ft2_4FGL_J1606.9+5919_daily_bin658.fits sctable="SC_DATA" outfile=/scratch/kocevski/24461/ltcube_409881601_410140801_4FGL_J1606.9+5919_daily_bin658.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/24461/ft2_4FGL_J1606.9+5919_daily_bin658.fits
.....................!
real 13.57
user 13.21
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/24461/ft1_filtered_4FGL_J1606.9+5919_daily_bin658.fits evtable="EVENTS" scfile=/scratch/kocevski/24461/ft2_4FGL_J1606.9+5919_daily_bin658.fits sctable="SC_DATA" expcube=/scratch/kocevski/24461/ltcube_409881601_410140801_4FGL_J1606.9+5919_daily_bin658.fits outfile=/scratch/kocevski/24461/expmap_409881601_410140801_4FGL_J1606.9+5919_daily_bin658.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/24461/ltcube_409881601_410140801_4FGL_J1606.9+5919_daily_bin658.fits
.....................!
real 191.32
user 186.03
sys 4.36

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/24461/ft1_filtered_4FGL_J1606.9+5919_daily_bin658.fits scfile=/scratch/kocevski/24461/ft2_4FGL_J1606.9+5919_daily_bin658.fits outfile=/scratch/kocevski/24461/cmap_409881601_410140801_4FGL_J1606.9+5919_daily_bin658.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/24461/ft1_filtered_4FGL_J1606.9+5919_daily_bin658.fits scfile=/scratch/kocevski/24461/ft2_4FGL_J1606.9+5919_daily_bin658.fits outfile=/scratch/kocevski/24461/cmap_HighResolution_409881601_410140801_4FGL_J1606.9+5919_daily_bin658.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.55
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10388E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11774E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    11.840       1.0000         .10000E-03   10000.    
     7 'Prefactor '    455.21       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    27.542       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10166E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    17.156       1.0000         .10000E-03   10000.    
    13 'norm      '    .11044E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    38.566       1.0000         .10000E-03   10000.    
    15 'Prefactor '    39.787       1.0000         .10000E-03   10000.    
    16 'norm      '    15.402       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .16469E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.1694       1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.3790       1.0000         .10000E-03   10000.    
    20 'norm      '    1.7128       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .39950E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    16.260       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .47535       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.4131       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2751.495     FROM MIGRAD    STATUS=CONVERGED    647 CALLS     3301 TOTAL
                     EDM=   .45E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    33.605        .13564E-05** at limit **
   2  Prefactor     .10512E-03    25.167       -.17763E-05** at limit **
   3  Prefactor     .10000E-03    5.2481        .78368E-07** at limit **
   4  Prefactor     .10000E-03    30.013       -.30709E-05** at limit **
   5  Prefactor     .10000E-03    69.743       -.17554E-05** at limit **
   6  norm          11.840        7.9431        .19904E-07   -.29281E-04
   7  Prefactor     454.63        443.79        .37240E-06   -.28557E-04
   8  Prefactor     .10000E-03    20.633       -.13299E-06** at limit **
   9  norm          27.545        25.054       -.64554E-07   -.13022E-04
  10  Prefactor     .10000E-03    48.257       -.36022E-06** at limit **
  11  Prefactor     .10000E-03    72.651        .23608E-06** at limit **
  12  Prefactor     17.144        20.546        .58477E-06   -.10306E-04
  13  norm          .10000E-03    38.109        .47131E-06** at limit **
  14  Prefactor     38.558        24.864        .33820E-06   -.20101E-05
  15  Prefactor     39.765        53.935        .12353E-05   -.13973E-04
  16  norm          15.402        14.187        .40051E-06   -.21233E-04
  17  Prefactor     .10000E-03    11.497        .26342E-05** at limit **
  18  Prefactor     9.1090        34.278        .14834E-05   -.24071E-04
  19  Prefactor     9.3682        23.022        .68039E-06    .28731E-05
  20  norm          1.7135        1.0669        .58789E-07   -.20193E-03
  21  Prefactor     .10000E-03    7.2895        .52476E-06** at limit **
  22  Prefactor     .10000E-03    20.746        .27874E-06** at limit **
  23  Prefactor     .10000E-03    3.1137        .17680E-06** at limit **
  24  Prefactor     16.255        15.007        .34991E-06   -.20129E-05
  25  Prefactor     .10000E-03    24.611        .11678E-06** at limit **
  26  Normalizat    .47572        .29543        .90475E-06   -.82938E-04
  27  Prefactor     1.4132        .28699       -.34457E-05   -.11786E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000105119
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 11.84
  Prefactor  = 454.629
  Prefactor  = 0.0001
  norm       = 27.545
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.1439
  norm       = 0.0001
  Prefactor  = 38.5585
  Prefactor  = 39.765
  norm       = 15.4018
  Prefactor  = 0.0001
  Prefactor  = 9.10899
  Prefactor  = 9.36819
  norm       = 1.71346
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.2551
  Prefactor  = 0.0001
  Normalizat = 0.475724
  Prefactor  = 1.41324
 **********
 **   18 **HESSE 
 **********

 FCN=   2751.495     FROM HESSE     STATUS=OK           492 CALLS     3793 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    35.159        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10512E-03    35.208        .66335E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.2542        .11734E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    29.656        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    69.850        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          11.840        7.9447        .11573E-03   -1.5020    
   7  Prefactor     454.63        447.17        .95949E-04   -1.1411    
   8  Prefactor     .10000E-03    20.651        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          27.545        25.034        .76337E-04   -1.4658    
  10  Prefactor     .10000E-03    48.263        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    72.653        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     17.144        20.539        .96695E-04   -1.4880    
  13  norm          .10000E-03    38.139        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     38.558        24.869        .64541E-04   -1.4465    
  15  Prefactor     39.765        53.991        .63546E-04   -1.4446    
  16  norm          15.402        14.161        .10205E-03   -1.4923    
  17  Prefactor     .10000E-03    11.630        .17291E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     9.1090        33.899        .13235E-03   -1.5104    
  19  Prefactor     9.3682        23.010        .13086E-03   -1.5096    
  20  norm          1.7135        1.0563        .39577E-04   -1.5446    
  21  Prefactor     .10000E-03    15.089        .27300E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    20.795        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    3.1202        .90420E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     16.255        15.009        .99326E-04   -1.4901    
  25  Prefactor     .10000E-03    24.613        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .47572        .32866        .34793E-03   -1.1355    
  27  Prefactor     1.4132        .31267        .21305E-03   -.79999    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.39078e-09
Minuit parameter uncertainties:
  1  0.000228579
  2  0.0268656
  3  1.23678e-05
  4  8.3927e-05
  5  5.81015e-06
  6  7.94536
  7  450.676
  8  4.35861e-06
  9  25.0432
  10  8.90345e-05
  11  7.1648e-05
  12  20.5475
  13  6.797e-05
  14  24.8753
  15  54.0574
  16  14.1644
  17  0.000111181
  18  33.9709
  19  23.0318
  20  1.05628
  21  7.19684e-06
  22  3.47019e-05
  23  5.7487e-06
  24  15.0126
  25  1.70106e-05
  26  0.330006
  27  0.313094
Done.

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

Extracting fit parameters...

4FGL J1606.9+5919
   Spectrum: PowerLaw
329    Prefactor:  1.000e-04  8.903e-05  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.413e+00  3.131e-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:  4.757e-01  3.300e-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: 1.99e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.51e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/24461/likelihoodResults_409881601_410140801_4FGL_J1606.9+5919_daily_bin658.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) = 2751.49544776
delta logL = -7.61723631513e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2751.49537406
delta logL = -2.46550916927e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .24565E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3087       1.0000          .0000       10.000    
     3 'Normalizat'    .47567       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4133       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2751.495     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      280 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10323E-03    19.295        .18142E-01** at limit **
   2  Index         2.2281        8.7016        .50000        .87753E-05
   3  Normalizat    .47573        .44107E-02    .34789E-03    .21268E-03
   4  Prefactor     1.4132        .44786E-02    .21305E-03    .15306E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103229
  Index      = 2.22813
  Normalizat = 0.47573
  Prefactor  = 1.41324
 **********
 **   18 **HESSE 
 **********

 FCN=   2751.495     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      309 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10323E-03    130.40        .32543E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2281        8.8511        .50000       -.58761    
   3  Normalizat    .47573        .11519E-01    .13916E-04   -1.1355    
   4  Prefactor     1.4132        .11697E-01    .42610E-04   -.79999    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.13964e-09
Minuit parameter uncertainties:
  1  0.0411277
  2  253.178
  3  0.0115192
  4  0.0116967
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/24461': 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) = 2751.49537184
delta logL = -2.44876900979e-07

Extracting fit parameters...

4FGL J1606.9+5919
   Spectrum: PowerLaw
329    Prefactor:  1.032e-04  4.113e-02  1.000e-04  1.000e+04 ( 1.000e-14)
330        Index:  2.228e+00  2.532e+02  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.413e+00  1.170e-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:  4.757e-01  1.152e-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/24461/cmap_HighResolution_409881601_410140801_4FGL_J1606.9+5919_daily_bin658.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.51e-02', job_status='DONE', photon_flux_upper_limit='1.99e-07', time_completed='2021-09-13 08:15:30.545836', job_id='24461', GAL2='1.41', fit_tolerance='1e-08', EG2='0.48', EG='0.48', time_epoch_completed='1631546130.55', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.41', dlogl='-2.45e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.11' WHERE bin_id='658' AND source_name='4FGL J1606.9+5919' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 13 08:15:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0010>
Subject: Job 24461: <4FGL_J1606.9+5919_daily_bin658> in cluster <slac> Done

Job <4FGL_J1606.9+5919_daily_bin658> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Mon Sep 13 08:00:37 2021
Job was executed on host(s) <bullet0010>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 13 08:01:48 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep 13 08:01:48 2021
Terminated at Mon Sep 13 08:15:31 2021
Results reported at Mon Sep 13 08:15:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1606.9+5919_daily_bin658 241.734 59.3201 409881601 410140801 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 :                                   591.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             270.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   822 sec.
    Turnaround time :                            894 sec.

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

