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


Performing analysis on: 4FGL_J1606.9+5919_daily_bin32
RA = 241.734, Dec = 59.3201
tmin = 247622401, tmax = 247881601
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='18550', job_status='RUN', time_executed='2021-09-13 07:40:58.137903', time_epoch_executed='1631544058.14' WHERE source_name='4FGL J1606.9+5919' and cadence='daily' and bin_id='32'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/18550

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/18550/ft1_4FGL_J1606.9+5919_daily_bin32.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/18550/ft2_4FGL_J1606.9+5919_daily_bin32.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/18550/ft1_4FGL_J1606.9+5919_daily_bin32.fits outfile=/scratch/kocevski/18550/ft1_filteredMKT_4FGL_J1606.9+5919_daily_bin32.fits ra=241.734 dec=59.3201 rad=12.0 tmin=247622401.0 tmax=247881601.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.43
user 1.24
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/18550/ft2_4FGL_J1606.9+5919_daily_bin32.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/18550/ft1_filteredMKT_4FGL_J1606.9+5919_daily_bin32.fits evtable="EVENTS" outfile="/scratch/kocevski/18550/ft1_filtered_4FGL_J1606.9+5919_daily_bin32.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.34
sys 0.13

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/18550/ft1_filtered_4FGL_J1606.9+5919_daily_bin32.fits evtable="EVENTS" scfile=/scratch/kocevski/18550/ft2_4FGL_J1606.9+5919_daily_bin32.fits sctable="SC_DATA" expcube=/scratch/kocevski/18550/ltcube_247622401_247881601_4FGL_J1606.9+5919_daily_bin32.fits outfile=/scratch/kocevski/18550/expmap_247622401_247881601_4FGL_J1606.9+5919_daily_bin32.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/18550/ltcube_247622401_247881601_4FGL_J1606.9+5919_daily_bin32.fits
.....................!
real 192.81
user 187.44
sys 4.70

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/18550/ft1_filtered_4FGL_J1606.9+5919_daily_bin32.fits scfile=/scratch/kocevski/18550/ft2_4FGL_J1606.9+5919_daily_bin32.fits outfile=/scratch/kocevski/18550/cmap_247622401_247881601_4FGL_J1606.9+5919_daily_bin32.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=241.734 yref=59.3201 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/18550/ft1_filtered_4FGL_J1606.9+5919_daily_bin32.fits scfile=/scratch/kocevski/18550/ft2_4FGL_J1606.9+5919_daily_bin32.fits outfile=/scratch/kocevski/18550/cmap_HighResolution_247622401_247881601_4FGL_J1606.9+5919_daily_bin32.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=241.734 yref=59.3201 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    33.277       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .12014E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.3412       1.0000         .10000E-03   10000.    
     5 'Prefactor '    54.529       1.0000         .10000E-03   10000.    
     6 'norm      '    .10111E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    90.585       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10140E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    16.828       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    41.261       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    34.857       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.5165       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.3434       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    16.907       1.0000         .10000E-03   10000.    
    19 'Prefactor '    53.655       1.0000         .10000E-03   10000.    
    20 'norm      '    .10201E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10271E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    6.7557       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .12528E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0042       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .95988       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=   6566.271     FROM MIGRAD    STATUS=CONVERGED    646 CALLS     3345 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.9777        .72792E-06** at limit **
   2  Prefactor     33.283        13.447        .52670E-06    .56343E-03
   3  Prefactor     .10000E-03    6.1378       -.18763E-06** at limit **
   4  Prefactor     8.3417        9.8567        .80048E-07   -.62181E-04
   5  Prefactor     54.530        34.526        .59885E-07   -.55107E-04
   6  norm          .10000E-03    1.6103       -.26096E-06** at limit **
   7  Prefactor     90.579        86.120        .78786E-06   -.39881E-04
   8  Prefactor     .10000E-03    4.9130        .85668E-07** at limit **
   9  norm          16.828        8.5868       -.51423E-07   -.30791E-03
  10  Prefactor     .10000E-03    9.8310        .10777E-05** at limit **
  11  Prefactor     41.253        53.819        .19790E-05    .25045E-04
  12  Prefactor     .10000E-03    5.4043       -.26339E-06** at limit **
  13  norm          34.853        22.290        .15014E-06    .54965E-04
  14  Prefactor     2.5167        9.1984        .53793E-06   -.67750E-04
  15  Prefactor     .10000E-03    12.268       -.39398E-06** at limit **
  16  norm          2.3414        4.6838        .42569E-05   -.69445E-04
  17  Prefactor     .10000E-03    1.8351        .24834E-06** at limit **
  18  Prefactor     16.907        11.870        .11496E-06   -.37890E-04
  19  Prefactor     53.652        30.873       -.49122E-06   -.35958E-03
  20  norm          .10443E-03    1.2170        .33484E-05** at limit **
  21  Prefactor     .10004E-03    21.814       -.15993E-04** at limit **
  22  Prefactor     .10000E-03    8.7498       -.37341E-06** at limit **
  23  Prefactor     6.7376        8.9264       -.67873E-06   -.72522E-03
  24  Prefactor     .10000E-03    3.1008       -.36800E-07** at limit **
  25  Prefactor     .10000E-03    129.07        .11151E-05** at limit **
  26  Normalizat    1.0043        .18601        .98822E-06   -.45232E-03
  27  Prefactor     .95973        .16810       -.28037E-05   -.90820E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 33.2835
  Prefactor  = 0.0001
  Prefactor  = 8.34167
  Prefactor  = 54.5299
  norm       = 0.0001
  Prefactor  = 90.5787
  Prefactor  = 0.0001
  norm       = 16.8282
  Prefactor  = 0.0001
  Prefactor  = 41.2527
  Prefactor  = 0.0001
  norm       = 34.8525
  Prefactor  = 2.51675
  Prefactor  = 0.0001
  norm       = 2.34141
  Prefactor  = 0.0001
  Prefactor  = 16.907
  Prefactor  = 53.6519
  norm       = 0.000104428
  Prefactor  = 0.000100043
  Prefactor  = 0.0001
  Prefactor  = 6.73758
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Normalizat = 1.00429
  Prefactor  = 0.959733
 **********
 **   18 **HESSE 
 **********

 FCN=   6566.271     FROM HESSE     STATUS=OK           484 CALLS     3829 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.9858        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     33.283        13.528        .69464E-04   -1.4553    
   3  Prefactor     .10000E-03    6.1852        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     8.3417        9.8535        .13881E-03   -1.5130    
   5  Prefactor     54.530        34.518        .54319E-04   -1.4230    
   6  norm          .10000E-03    1.6474        .10033E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     90.579        86.248        .42220E-04   -1.3802    
   8  Prefactor     .10000E-03    4.9321        .17520E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          16.828        8.6010        .97634E-04   -1.4887    
  10  Prefactor     .10000E-03    9.8273        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     41.253        53.922        .62405E-04   -1.4423    
  12  Prefactor     .10000E-03    5.4877        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          34.853        22.272        .67876E-04   -1.4527    
  14  Prefactor     2.5167        9.1165        .25755E-03   -1.5391    
  15  Prefactor     .10000E-03    12.269        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.3414        8.2569        .13391E-02   -1.5402    
  17  Prefactor     .10000E-03    1.8718        .10723E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     16.907        11.862        .97405E-04   -1.4885    
  19  Prefactor     53.652        30.697        .54757E-04   -1.4242    
  20  norm          .10443E-03    .59897        .16196E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10004E-03    26.738        .33478E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    8.7521        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     6.7376        8.9024        .15437E-03   -1.5189    
  24  Prefactor     .10000E-03    3.1054        .13932E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    129.05        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.0043        .21937        .25076E-03   -.92887    
  27  Prefactor     .95973        .19868        .24898E-03   -.94084    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.03482e-09
Minuit parameter uncertainties:
  1  1.36212e-05
  2  13.5292
  3  3.69064e-05
  4  9.85542
  5  34.531
  6  2.65265e-05
  7  86.3675
  8  4.69796e-06
  9  8.6016
  10  1.81504e-06
  11  53.9856
  12  2.05765e-05
  13  22.2776
  14  9.12153
  15  1.46755e-05
  16  8.26087
  17  2.82147e-05
  18  11.8639
  19  30.706
  20  0.00325726
  21  0.0021372
  22  8.25945e-06
  23  8.90415
  24  4.64311e-06
  25  0.000710532
  26  0.219566
  27  0.198827
Done.

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

Extracting fit parameters...

4FGL J1606.9+5919
   Spectrum: PowerLaw
329    Prefactor:  1.000e-04  1.815e-06  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:  9.597e-01  1.988e-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.004e+00  2.196e-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: 3.71e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.81e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/18550/likelihoodResults_247622401_247881601_4FGL_J1606.9+5919_daily_bin32.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) = 6566.2717254
delta logL = -0.000474419309285

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6566.27125188
delta logL = -8.97546669876e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12325E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0808       1.0000          .0000       10.000    
     3 'Normalizat'    1.0043       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95973       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=   6566.271     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      240 TOTAL
                     EDM=   .75E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10344E-03    4.3990        .18142E-01** at limit **
   2  Index         1.9922        6.9845        .50000        .23430E-04
   3  Normalizat    1.0043        .26059E-02    .25076E-03    .55311E-05
   4  Prefactor     .95974        .25486E-02    .24898E-03   -.12146E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103442
  Index      = 1.99218
  Normalizat = 1.00428
  Prefactor  = 0.95974
 **********
 **   18 **HESSE 
 **********

 FCN=   6566.271     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      269 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10344E-03    60.349        .26964E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9922        5.0513        .50000       -.64546    
   3  Normalizat    1.0043        .97022E-02    .10030E-04   -.92887    
   4  Prefactor     .95974        .94887E-02    .99592E-05   -.94084    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.02542e-08
Minuit parameter uncertainties:
  1  0.028853
  2  225.761
  3  0.00970222
  4  0.0094887
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/18550': 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) = 6566.27125034
delta logL = 6.37566699879e-07

Extracting fit parameters...

4FGL J1606.9+5919
   Spectrum: PowerLaw
329    Prefactor:  1.034e-04  2.885e-02  1.000e-04  1.000e+04 ( 1.000e-14)
330        Index:  1.992e+00  2.258e+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:  9.597e-01  9.489e-03  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.004e+00  9.702e-03  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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/18550/cmap_HighResolution_247622401_247881601_4FGL_J1606.9+5919_daily_bin32.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.81e-03', job_status='DONE', photon_flux_upper_limit='3.71e-08', time_completed='2021-09-13 07:56:13.608905', job_id='18550', GAL2='0.96', fit_tolerance='1e-08', EG2='1.00', EG='1.00', time_epoch_completed='1631544973.61', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='6.38e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.11' WHERE bin_id='32' AND source_name='4FGL J1606.9+5919' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 13 07:56:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0091>
Subject: Job 18550: <4FGL_J1606.9+5919_daily_bin32> in cluster <slac> Done

Job <4FGL_J1606.9+5919_daily_bin32> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Mon Sep 13 07:40:27 2021
Job was executed on host(s) <bullet0091>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 13 07:40:43 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:40:43 2021
Terminated at Mon Sep 13 07:56:14 2021
Results reported at Mon Sep 13 07:56:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1606.9+5919_daily_bin32 241.734 59.3201 247622401 247881601 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 :                                   911.47 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             345.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   930 sec.
    Turnaround time :                            947 sec.

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

