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


Performing analysis on: 4FGL_J1606.9+5919_daily_bin88
RA = 241.734, Dec = 59.3201
tmin = 262137601, tmax = 262396801
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='18636', job_status='RUN', time_executed='2021-09-13 07:44:13.830568', time_epoch_executed='1631544253.83' WHERE source_name='4FGL J1606.9+5919' and cadence='daily' and bin_id='88'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/18636

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/18636/ft1_4FGL_J1606.9+5919_daily_bin88.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/18636/ft2_4FGL_J1606.9+5919_daily_bin88.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/18636/ft1_4FGL_J1606.9+5919_daily_bin88.fits outfile=/scratch/kocevski/18636/ft1_filteredMKT_4FGL_J1606.9+5919_daily_bin88.fits ra=241.734 dec=59.3201 rad=12.0 tmin=262137601.0 tmax=262396801.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.42
user 1.24
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/18636/ft2_4FGL_J1606.9+5919_daily_bin88.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/18636/ft1_filteredMKT_4FGL_J1606.9+5919_daily_bin88.fits evtable="EVENTS" outfile="/scratch/kocevski/18636/ft1_filtered_4FGL_J1606.9+5919_daily_bin88.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.52
user 0.36
sys 0.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/18636/ft1_filtered_4FGL_J1606.9+5919_daily_bin88.fits evtable="EVENTS" scfile=/scratch/kocevski/18636/ft2_4FGL_J1606.9+5919_daily_bin88.fits sctable="SC_DATA" expcube=/scratch/kocevski/18636/ltcube_262137601_262396801_4FGL_J1606.9+5919_daily_bin88.fits outfile=/scratch/kocevski/18636/expmap_262137601_262396801_4FGL_J1606.9+5919_daily_bin88.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/18636/ltcube_262137601_262396801_4FGL_J1606.9+5919_daily_bin88.fits
.....................!
real 192.18
user 186.56
sys 5.04

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/18636/ft1_filtered_4FGL_J1606.9+5919_daily_bin88.fits scfile=/scratch/kocevski/18636/ft2_4FGL_J1606.9+5919_daily_bin88.fits outfile=/scratch/kocevski/18636/cmap_262137601_262396801_4FGL_J1606.9+5919_daily_bin88.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.57
user 0.39
sys 0.17

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

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/18636/ft1_filtered_4FGL_J1606.9+5919_daily_bin88.fits', '/scratch/kocevski/18636/ft2_4FGL_J1606.9+5919_daily_bin88.fits', expMap='/scratch/kocevski/18636/expmap_262137601_262396801_4FGL_J1606.9+5919_daily_bin88.fits', expCube='/scratch/kocevski/18636/ltcube_262137601_262396801_4FGL_J1606.9+5919_daily_bin88.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/18636/Model_4FGL_J1606.9+5919_daily_bin88.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/18636/ft1_filtered_4FGL_J1606.9+5919_daily_bin88.fits
Spacecraft file(s): /scratch/kocevski/18636/ft2_4FGL_J1606.9+5919_daily_bin88.fits
Exposure map: /scratch/kocevski/18636/expmap_262137601_262396801_4FGL_J1606.9+5919_daily_bin88.fits
Exposure cube: /scratch/kocevski/18636/ltcube_262137601_262396801_4FGL_J1606.9+5919_daily_bin88.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/18636/Model_4FGL_J1606.9+5919_daily_bin88.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 4939.15225059

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.850       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    17.018       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10197E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    68.600       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .16853E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .42845E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    9.0635       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.4183       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.9770       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    34.988       1.0000         .10000E-03   10000.    
    20 'norm      '    .63408E-01   1.0000         .10000E-03   10000.    
    21 'Prefactor '    11.426       1.0000         .10000E-03   10000.    
    22 'Prefactor '    11.819       1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.2322       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    12.944       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .92469       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.1185       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=   4939.137     FROM MIGRAD    STATUS=CONVERGED    652 CALLS     3738 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.0419       -.21804E-07** at limit **
   2  Prefactor     .10000E-03    4.3988       -.11182E-06** at limit **
   3  Prefactor     .10000E-03    4.3193       -.15859E-06** at limit **
   4  Prefactor     10.851        20.471       -.31749E-06    .33232E-05
   5  Prefactor     .10000E-03    15.363       -.29931E-07** at limit **
   6  norm          17.018        5.5805       -.21837E-07    .19847E-04
   7  Prefactor     .10000E-03    40.876       -.37442E-07** at limit **
   8  Prefactor     .10000E-03    4.4095       -.25712E-07** at limit **
   9  norm          .10000E-03    4.2901        .57634E-07** at limit **
  10  Prefactor     68.604        49.661        .29551E-07    .18049E-04
  11  Prefactor     .10000E-03    107.18       -.47095E-06** at limit **
  12  Prefactor     .10001E-03    5.4246       -.76850E-06** at limit **
  13  norm          9.0745        19.907        .29732E-06    .57283E-04
  14  Prefactor     2.4186        9.0107        .79976E-07    .27974E-04
  15  Prefactor     .10000E-03    18.567       -.73184E-07** at limit **
  16  norm          .10000E-03    3.3363       -.22926E-07** at limit **
  17  Prefactor     2.9777        3.3375        .22207E-07    .71151E-04
  18  Prefactor     .10000E-03    5.5467       -.30526E-07** at limit **
  19  Prefactor     34.995        28.354       -.16645E-06   -.20464E-04
  20  norm          .63490E-01    1.0384        .33324E-06   -.77459E-03
  21  Prefactor     11.429        13.108        .98100E-07   -.82783E-04
  22  Prefactor     11.820        23.762        .30163E-06   -.47610E-04
  23  Prefactor     3.1618        23.239        .52452E-05    .67805E-04
  24  Prefactor     .10000E-03    9.6228        .37942E-06** at limit **
  25  Prefactor     13.507        465.50       -.26557E-04   -.14194E-05
  26  Normalizat    .92480        .21426        .21649E-05    .44321E-04
  27  Prefactor     1.1184        .20512       -.14202E-05    .92245E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.8513
  Prefactor  = 0.0001
  norm       = 17.0181
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 68.6044
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  norm       = 9.07446
  Prefactor  = 2.41861
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.9777
  Prefactor  = 0.0001
  Prefactor  = 34.995
  norm       = 0.0634896
  Prefactor  = 11.4285
  Prefactor  = 11.8205
  Prefactor  = 3.1618
  Prefactor  = 0.0001
  Prefactor  = 13.5072
  Normalizat = 0.924803
  Prefactor  = 1.1184
 **********
 **   18 **HESSE 
 **********

 FCN=   4939.137     FROM HESSE     STATUS=OK           488 CALLS     4226 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.0426        .15413E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.4133        .14397E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.3434        .14267E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     10.851        20.490        .12163E-03   -1.5049    
   5  Prefactor     .10000E-03    15.371        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          17.018        5.5798        .91052E-04   -1.4883    
   7  Prefactor     .10000E-03    40.882        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.4356        .14411E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    4.3027        .14209E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     68.604        49.670        .48462E-04   -1.4050    
  11  Prefactor     .10000E-03    107.51        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10001E-03    26.976        .29639E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          9.0745        19.614        .13313E-03   -1.5105    
  14  Prefactor     2.4186        9.1283        .13161E-02   -1.5397    
  15  Prefactor     .10000E-03    18.581        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    3.3390        .12537E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.9777        3.3289        .13144E-03   -1.5363    
  18  Prefactor     .10000E-03    5.5595        .16165E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     34.995        28.339        .67750E-04   -1.4524    
  20  norm          .63490E-01    2.4808        .11474E-02   -1.5658    
  21  Prefactor     11.429        12.928        .11852E-03   -1.5032    
  22  Prefactor     11.820        23.667        .11653E-03   -1.5020    
  23  Prefactor     3.1618        23.860        .22531E-03   -1.5352    
  24  Prefactor     .10000E-03    9.6590        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     13.507        486.91        .11134E-03   -1.4973    
  26  Normalizat    .92480        .23974        .26488E-03   -.95594    
  27  Prefactor     1.1184        .23163        .23973E-03   -.88881    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.4441e-10
Minuit parameter uncertainties:
  1  1.55808e-06
  2  5.97833e-06
  3  1.03303e-05
  4  20.5033
  5  5.35802e-06
  6  5.57993
  7  2.70631e-05
  8  3.30528e-06
  9  2.08831e-06
  10  49.6999
  11  3.31595e-05
  12  0.00078683
  13  19.6281
  14  9.13357
  15  1.03528e-05
  16  2.88243e-06
  17  3.3291
  18  2.24115e-06
  19  28.35
  20  0.793156
  21  12.9315
  22  23.6854
  23  17.3805
  24  1.71945e-06
  25  163.654
  26  0.240018
  27  0.231838
Done.

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

Extracting fit parameters...

4FGL J1606.9+5919
   Spectrum: PowerLaw
329    Prefactor:  6.860e+01  4.970e+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:  1.118e+00  2.318e-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:  9.248e-01  2.400e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.10
Ra Dec: 241.734 59.320
Photon Index (Fixed Index): 2.11 +/- 0.00
Photon Flux (Fixed Index): 4.87e-08 +/- 3.53e-08
Energy Flux (Fixed Index): 2.60e-05 +/- 1.88e-05

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) = 4938.82137473
delta logL = 0.31595140623

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4938.81467876
delta logL = 0.322647380348

Fit tolerance = 1e-08

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

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

 FCN=   4938.815     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      281 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     30.534        388.11        .18108E-02   -.28279E-03
   2  Index         2.6682        2.6283        .10134       -.33478E-04
   3  Normalizat    .88355        .99405E-01    .44707E-01   -.29718E-03
   4  Prefactor     1.1431        .74810E-01    .53692E-01   -.41436E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 30.5336
  Index      = 2.66821
  Normalizat = 0.883546
  Prefactor  = 1.14311
 **********
 **   18 **HESSE 
 **********

 FCN=   4938.815     FROM HESSE     STATUS=OK            27 CALLS      308 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     30.534        61.190        .72432E-04   -1.4602    
   2  Index         2.6682        .96539        .37142E-02   -.48517    
   3  Normalizat    .88355        .24255        .27013E-03   -.97041    
   4  Prefactor     1.1431        .23239        .23739E-03   -.88100    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.71283e-10
Minuit parameter uncertainties:
  1  61.3162
  2  0.973222
  3  0.242847
  4  0.232599
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/18636': 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) = 4938.81466409
delta logL = 0.32266204674

Extracting fit parameters...

4FGL J1606.9+5919
   Spectrum: PowerLaw
329    Prefactor:  3.053e+01  6.132e+01  1.000e-04  1.000e+04 ( 1.000e-14)
330        Index:  2.668e+00  9.732e-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:  1.143e+00  2.326e-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.835e-01  2.428e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.78
Ra Dec: 241.734 59.320
Photon Index (Free Index): 2.67 +/- 0.97
Photon Flux (Free Index): 8.34e-08 +/- 7.19e-08
Energy Flux (Free Index): 2.06e-05 +/- 1.38e-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/18636/cmap_HighResolution_262137601_262396801_4FGL_J1606.9+5919_daily_bin88.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.87e-08', energy_flux2='2.06e-05', photon_flux_error='3.53e-08', dlogl='3.23e-01', energy_flux='2.60e-05', photon_flux2='8.34e-08', job_status='DONE', time_completed='2021-09-13 07:56:06.192301', photon_index_error2='0.97', photon_index2='2.67', ts='4.10', fit_tolerance='1e-08', GAL='1.12', photon_index_error='0.00', energy_flux_error2='1.38e-05', EG='0.92', time_epoch_completed='1631544966.19', return_code='0', job_id='18636', GAL2='1.14', EG2='0.88', return_code2='0', energy_flux_error='1.88e-05', photon_flux_error2='7.19e-08', ts2='4.78', photon_index='2.11' WHERE bin_id='88' AND source_name='4FGL J1606.9+5919' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 13 07:56:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0191>
Subject: Job 18636: <4FGL_J1606.9+5919_daily_bin88> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1606.9+5919_daily_bin88 241.734 59.3201 262137601 262396801 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 :                                   711.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             275.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   852 sec.
    Turnaround time :                            933 sec.

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

