/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 72 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 = 7446
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1606.9+5919_daily_bin3
RA = 241.734, Dec = 59.3201
tmin = 240105601, tmax = 240364801
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='17138', job_status='RUN', time_executed='2021-09-13 07:37:15.928859', time_epoch_executed='1631543835.93' WHERE source_name='4FGL J1606.9+5919' and cadence='daily' and bin_id='3'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/17138

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/17138/ft1_4FGL_J1606.9+5919_daily_bin3.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/17138/ft2_4FGL_J1606.9+5919_daily_bin3.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/17138/ft1_4FGL_J1606.9+5919_daily_bin3.fits outfile=/scratch/kocevski/17138/ft1_filteredMKT_4FGL_J1606.9+5919_daily_bin3.fits ra=241.734 dec=59.3201 rad=12.0 tmin=240105601.0 tmax=240364801.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 1.46
user 1.27
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/17138/ft1_filtered_4FGL_J1606.9+5919_daily_bin3.fits" evtable="EVENTS" scfile=/scratch/kocevski/17138/ft2_4FGL_J1606.9+5919_daily_bin3.fits sctable="SC_DATA" outfile=/scratch/kocevski/17138/ltcube_240105601_240364801_4FGL_J1606.9+5919_daily_bin3.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/17138/ft2_4FGL_J1606.9+5919_daily_bin3.fits
.....................!
real 14.42
user 14.01
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/17138/ft1_filtered_4FGL_J1606.9+5919_daily_bin3.fits evtable="EVENTS" scfile=/scratch/kocevski/17138/ft2_4FGL_J1606.9+5919_daily_bin3.fits sctable="SC_DATA" expcube=/scratch/kocevski/17138/ltcube_240105601_240364801_4FGL_J1606.9+5919_daily_bin3.fits outfile=/scratch/kocevski/17138/expmap_240105601_240364801_4FGL_J1606.9+5919_daily_bin3.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/17138/ltcube_240105601_240364801_4FGL_J1606.9+5919_daily_bin3.fits
.....................!
real 191.94
user 186.67
sys 4.72

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/17138/ft1_filtered_4FGL_J1606.9+5919_daily_bin3.fits scfile=/scratch/kocevski/17138/ft2_4FGL_J1606.9+5919_daily_bin3.fits outfile=/scratch/kocevski/17138/cmap_240105601_240364801_4FGL_J1606.9+5919_daily_bin3.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.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/17138/ft1_filtered_4FGL_J1606.9+5919_daily_bin3.fits scfile=/scratch/kocevski/17138/ft2_4FGL_J1606.9+5919_daily_bin3.fits outfile=/scratch/kocevski/17138/cmap_HighResolution_240105601_240364801_4FGL_J1606.9+5919_daily_bin3.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.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.9052       1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.4794       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    2.1621       1.0000         .10000E-03   10000.    
     7 'Prefactor '    24.142       1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.7882       1.0000         .10000E-03   10000.    
     9 'norm      '    16.760       1.0000         .10000E-03   10000.    
    10 'Prefactor '    29.680       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.2604       1.0000         .10000E-03   10000.    
    13 'norm      '    12.816       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    14.477       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.9943       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .93047       1.0000         .10000E-03   10000.    
    21 'Prefactor '    13.019       1.0000         .10000E-03   10000.    
    22 'Prefactor '    12.668       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    4.8234       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.1273       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .78418       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=   6246.225     FROM MIGRAD    STATUS=CONVERGED    623 CALLS     3251 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.9057        12.764        .14506E-06   -.11538E-04
   2  Prefactor     4.4795        7.1363        .30723E-05   -.61360E-03
   3  Prefactor     .10000E-03    4.6062       -.16384E-06** at limit **
   4  Prefactor     .10000E-03    7.5560       -.17115E-06** at limit **
   5  Prefactor     .10000E-03    14.814        .13849E-05** at limit **
   6  norm          2.1627        2.1249        .22313E-06    .80978E-04
   7  Prefactor     24.090        58.302       -.16957E-04   -.40537E-03
   8  Prefactor     9.7882        8.4854       -.74999E-07   -.22058E-04
   9  norm          16.760        9.1276       -.47473E-07   -.25312E-04
  10  Prefactor     29.680        35.851        .44422E-06    .14022E-05
  11  Prefactor     .10000E-03    53.153       -.38330E-06** at limit **
  12  Prefactor     5.2580        6.2286        .41391E-05   -.12603E-02
  13  norm          12.816        14.866       -.10253E-05   -.21278E-04
  14  Prefactor     .10000E-03    3.8779        .11483E-06** at limit **
  15  Prefactor     14.477        37.415        .68454E-06    .94299E-05
  16  norm          .10000E-03    5.2840        .13246E-06** at limit **
  17  Prefactor     .10000E-03    1.4052       -.23686E-07** at limit **
  18  Prefactor     2.9941        8.1705        .31140E-06   -.57029E-04
  19  Prefactor     .10000E-03    9.0588        .53651E-06** at limit **
  20  norm          .93039        .71936        .61679E-08   -.36726E-04
  21  Prefactor     13.021        9.0790        .15435E-06   -.28037E-04
  22  Prefactor     12.668        18.577        .83297E-07   -.68627E-05
  23  Prefactor     .10000E-03    1.6442        .53177E-07** at limit **
  24  Prefactor     4.8238        7.0863        .26990E-06   -.38058E-04
  25  Prefactor     .10000E-03    13.638       -.15493E-05** at limit **
  26  Normalizat    1.1272        .17376       -.58900E-06   -.41089E-04
  27  Prefactor     .78423        .16434       -.36724E-06   -.40477E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.90569
  Prefactor  = 4.47953
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 2.16273
  Prefactor  = 24.0904
  Prefactor  = 9.78819
  norm       = 16.7601
  Prefactor  = 29.68
  Prefactor  = 0.0001
  Prefactor  = 5.25795
  norm       = 12.8156
  Prefactor  = 0.0001
  Prefactor  = 14.4771
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.99407
  Prefactor  = 0.0001
  norm       = 0.930386
  Prefactor  = 13.0205
  Prefactor  = 12.6684
  Prefactor  = 0.0001
  Prefactor  = 4.82379
  Prefactor  = 0.000100001
  Normalizat = 1.12723
  Prefactor  = 0.784228
 **********
 **   18 **HESSE 
 **********

 FCN=   6246.225     FROM HESSE     STATUS=OK           492 CALLS     3743 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.9057        12.758        .15268E-03   -1.5182    
   2  Prefactor     4.4795        7.2416        .95121E-03   -1.5285    
   3  Prefactor     .10000E-03    4.6603        .16555E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.5777        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    14.881        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          2.1627        2.1201        .11025E-03   -1.5414    
   7  Prefactor     24.090        63.595        .81526E-04   -1.4726    
   8  Prefactor     9.7882        8.4848        .12808E-03   -1.5082    
   9  norm          16.760        9.1326        .97832E-04   -1.4889    
  10  Prefactor     29.680        35.846        .73543E-04   -1.4618    
  11  Prefactor     .10000E-03    53.238        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.2580        6.4993        .87625E-03   -1.5249    
  13  norm          12.816        14.866        .11189E-03   -1.4992    
  14  Prefactor     .10000E-03    3.9496        .15191E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     14.477        37.242        .10527E-03   -1.4947    
  16  norm          .10000E-03    5.3144        .17736E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    1.4335        .91452E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.9941        8.1609        .23459E-03   -1.5362    
  19  Prefactor     .10000E-03    9.1093        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .93039        .72425        .52822E-04   -1.5515    
  21  Prefactor     13.021        9.0444        .11101E-03   -1.4986    
  22  Prefactor     12.668        18.598        .11254E-03   -1.4996    
  23  Prefactor     .10000E-03    1.6508        .98949E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     4.8238        7.0847        .18317E-03   -1.5269    
  25  Prefactor     .10000E-03    13.690        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.1272        .20049        .22739E-03   -.88882    
  27  Prefactor     .78423        .18871        .25543E-03   -1.0031    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.78904e-09
Minuit parameter uncertainties:
  1  12.7634
  2  7.24305
  3  2.00453e-05
  4  1.09582e-05
  5  0.000209961
  6  2.12013
  7  63.7743
  8  8.48587
  9  9.13331
  10  35.8715
  11  0.00015608
  12  6.50017
  13  14.8699
  14  4.94997e-07
  15  37.302
  16  1.04916e-05
  17  4.22424e-06
  18  8.16389
  19  5.10991e-05
  20  0.724256
  21  9.04532
  22  18.6065
  23  9.37305e-07
  24  7.08594
  25  0.000223372
  26  0.20063
  27  0.188868
Done.

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

Extracting fit parameters...

4FGL J1606.9+5919
   Spectrum: PowerLaw
329    Prefactor:  2.968e+01  3.587e+01  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:  7.842e-01  1.889e-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.127e+00  2.006e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.13
Ra Dec: 241.734 59.320
Photon Index (Fixed Index): 2.11 +/- 0.00
Photon Flux (Fixed Index): 2.11e-08 +/- 2.55e-08
Energy Flux (Fixed Index): 1.12e-05 +/- 1.36e-05

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

Saving results to:
/scratch/kocevski/17138/likelihoodResults_240105601_240364801_4FGL_J1606.9+5919_daily_bin3.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) = 6246.12775368
delta logL = 0.0975493532587

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6246.11950728
delta logL = 0.105795756912

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.775       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4761       1.0000          .0000       10.000    
     3 'Normalizat'    1.1155       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79042       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=   6246.120     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      309 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.773        39.274        .92435E-04   -.16259E-03
   2  Index         2.4762        .95662        .54552E-02   -.98631E-04
   3  Normalizat    1.1153        .19696        .22838E-03   -.16823E-03
   4  Prefactor     .79067        .18648        .25445E-03   -.14932E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.773
  Index      = 2.47618
  Normalizat = 1.11525
  Prefactor  = 0.790669
 **********
 **   18 **HESSE 
 **********

 FCN=   6246.120     FROM HESSE     STATUS=OK            25 CALLS      334 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.773        33.407        .36974E-05   -1.4841    
   2  Index         2.4762        .81448        .21821E-03   -.52911    
   3  Normalizat    1.1153        .19664        .45676E-04   -.89264    
   4  Prefactor     .79067        .18633        .10178E-04   -1.0007    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.9345e-10
Minuit parameter uncertainties:
  1  33.44
  2  0.819392
  3  0.196766
  4  0.186475
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/17138': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6246.11950634
delta logL = 0.10579669258

Extracting fit parameters...

4FGL J1606.9+5919
   Spectrum: PowerLaw
329    Prefactor:  1.877e+01  3.344e+01  1.000e-04  1.000e+04 ( 1.000e-14)
330        Index:  2.476e+00  8.194e-01  0.000e+00  1.000e+01 (-1.000e+00)
331        Scale:  2.350e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
703    Prefactor:  7.907e-01  1.865e-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.115e+00  1.968e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.35
Ra Dec: 241.734 59.320
Photon Index (Free Index): 2.48 +/- 0.82
Photon Flux (Free Index): 3.16e-08 +/- 3.85e-08
Energy Flux (Free Index): 9.43e-06 +/- 1.05e-05

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/17138/cmap_HighResolution_240105601_240364801_4FGL_J1606.9+5919_daily_bin3.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.29e-03', comment='SUCCESS', photon_flux='2.11e-08', energy_flux2='9.43e-06', photon_flux_error='2.55e-08', dlogl='1.06e-01', energy_flux='1.12e-05', photon_flux2='3.16e-08', job_status='DONE', time_completed='2021-09-13 07:51:57.728715', photon_index_error2='0.82', photon_index2='2.48', ts='1.13', fit_tolerance='1e-08', GAL='0.78', photon_index_error='0.00', photon_flux_upper_limit='8.31e-08', energy_flux_error2='1.05e-05', EG='1.13', time_epoch_completed='1631544717.73', return_code='0', job_id='17138', GAL2='0.79', EG2='1.12', return_code2='0', energy_flux_error='1.36e-05', photon_flux_error2='3.85e-08', ts2='1.35', photon_index='2.11' WHERE bin_id='3' AND source_name='4FGL J1606.9+5919' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 13 07:51:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0239>
Subject: Job 17138: <4FGL_J1606.9+5919_daily_bin3> in cluster <slac> Done

Job <4FGL_J1606.9+5919_daily_bin3> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep 13 07:35:21 2021
Job was executed on host(s) <bullet0239>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 13 07:35:54 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep 13 07:35:54 2021
Terminated at Mon Sep 13 07:51:58 2021
Results reported at Mon Sep 13 07:51:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1606.9+5919_daily_bin3 241.734 59.3201 240105601 240364801 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 :                                   879.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             347.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   964 sec.
    Turnaround time :                            997 sec.

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

