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


Performing analysis on: 4FGL_J1606.9+5919_daily_bin1178
RA = 241.734, Dec = 59.3201
tmin = 544665601, tmax = 544924801
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='30268', job_status='RUN', time_executed='2021-09-13 08:21:18.653116', time_epoch_executed='1631546478.65' WHERE source_name='4FGL J1606.9+5919' and cadence='daily' and bin_id='1178'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/30268

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/30268/ft1_4FGL_J1606.9+5919_daily_bin1178.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/30268/ft2_4FGL_J1606.9+5919_daily_bin1178.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/30268/ft1_4FGL_J1606.9+5919_daily_bin1178.fits outfile=/scratch/kocevski/30268/ft1_filteredMKT_4FGL_J1606.9+5919_daily_bin1178.fits ra=241.734 dec=59.3201 rad=12.0 tmin=544665601.0 tmax=544924801.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 4.09
user 3.82
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/30268/ft1_filtered_4FGL_J1606.9+5919_daily_bin1178.fits evtable="EVENTS" scfile=/scratch/kocevski/30268/ft2_4FGL_J1606.9+5919_daily_bin1178.fits sctable="SC_DATA" expcube=/scratch/kocevski/30268/ltcube_544665601_544924801_4FGL_J1606.9+5919_daily_bin1178.fits outfile=/scratch/kocevski/30268/expmap_544665601_544924801_4FGL_J1606.9+5919_daily_bin1178.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/30268/ltcube_544665601_544924801_4FGL_J1606.9+5919_daily_bin1178.fits
.....................!
real 193.38
user 187.02
sys 5.68

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/30268/ft1_filtered_4FGL_J1606.9+5919_daily_bin1178.fits scfile=/scratch/kocevski/30268/ft2_4FGL_J1606.9+5919_daily_bin1178.fits outfile=/scratch/kocevski/30268/cmap_544665601_544924801_4FGL_J1606.9+5919_daily_bin1178.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/30268/ft1_filtered_4FGL_J1606.9+5919_daily_bin1178.fits scfile=/scratch/kocevski/30268/ft2_4FGL_J1606.9+5919_daily_bin1178.fits outfile=/scratch/kocevski/30268/cmap_HighResolution_544665601_544924801_4FGL_J1606.9+5919_daily_bin1178.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/30268/ft1_filtered_4FGL_J1606.9+5919_daily_bin1178.fits evtable="EVENTS" scfile=/scratch/kocevski/30268/ft2_4FGL_J1606.9+5919_daily_bin1178.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/30268/Model_4FGL_J1606.9+5919_daily_bin1178.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/30268/ft1_filtered_4FGL_J1606.9+5919_daily_bin1178.fits.....!
real 14.05
user 12.78
sys 1.23

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

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 71.7495397611

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 71.5476613661

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.7328       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.1743       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.5975       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.3743       1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.6328       1.0000         .10000E-03   10000.    
     6 'norm      '    6.4360       1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.2965       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.8854       1.0000         .10000E-03   10000.    
     9 'norm      '    8.9958       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.1971       1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.0699       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .14608E-01   1.0000         .10000E-03   10000.    
    13 'norm      '    1.6630       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.7785       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.9918       1.0000         .10000E-03   10000.    
    16 'norm      '    3.3847       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11559E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .44342       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.3178       1.0000         .10000E-03   10000.    
    20 'norm      '    1.2319       1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.9625       1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.6548       1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.9006       1.0000         .10000E-03   10000.    
    24 'Prefactor '    2.2423       1.0000         .10000E-03   10000.    
    25 'Prefactor '    5.1004       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.7061       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .63213E-05   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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   71.43432     FROM MIGRAD    STATUS=CONVERGED    174 CALLS      348 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.7328        1.0492         .0000         .0000    
   2  Prefactor     2.1743        1.0292         .0000         .0000    
   3  Prefactor     1.5975        1.0600         .0000         .0000    
   4  Prefactor     1.3743        1.0892         .0000         .0000    
   5  Prefactor     8.6328        1.0017         .0000         .0000    
   6  norm          6.4360        1.0030         .0000         .0000    
   7  Prefactor     7.2965        1.0024         .0000         .0000    
   8  Prefactor     3.8854        1.0085         .0000         .0000    
   9  norm          8.9958        1.0016         .0000         .0000    
  10  Prefactor     2.1971        1.0286         .0000         .0000    
  11  Prefactor     317.77        5.8358        .53738E-04    .17588E-04
  12  Prefactor     .10001E-03    .20684        .88129E-05** at limit **
  13  norm          .10000E-03    .16717        .13021E-04** at limit **
  14  Prefactor     2.7785        1.0172         .0000         .0000    
  15  Prefactor     3.9918        1.0081         .0000         .0000    
  16  norm          3.3847        1.0113         .0000         .0000    
  17  Prefactor     .10000E-03    .20571        .14448E-05** at limit **
  18  Prefactor     .10000E-03    .30457       -.98408E-05** at limit **
  19  Prefactor     3.3178        1.0118         .0000         .0000    
  20  norm          1.2319        1.1237         .0000         .0000    
  21  Prefactor     2.9625        1.0150         .0000         .0000    
  22  Prefactor     5.6548        1.0040         .0000         .0000    
  23  Prefactor     1.9006        1.0396         .0000         .0000    
  24  Prefactor     2.2423        1.0273         .0000         .0000    
  25  Prefactor     5.1004        1.0049         .0000         .0000    
  26  Normalizat    1.4136        .95651       -.20834E-04    .13390E-05
  27  Prefactor     .76508E-10    .25562       -.59606E-04** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.73282
  Prefactor  = 2.17435
  Prefactor  = 1.5975
  Prefactor  = 1.37431
  Prefactor  = 8.6328
  norm       = 6.43597
  Prefactor  = 7.29647
  Prefactor  = 3.88545
  norm       = 8.9958
  Prefactor  = 2.19707
  Prefactor  = 317.766
  Prefactor  = 0.000100008
  norm       = 0.000100001
  Prefactor  = 2.77851
  Prefactor  = 3.99176
  norm       = 3.38474
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 3.31778
  norm       = 1.23189
  Prefactor  = 2.96247
  Prefactor  = 5.65481
  Prefactor  = 1.90059
  Prefactor  = 2.24233
  Prefactor  = 5.10036
  Normalizat = 1.41362
  Prefactor  = 7.65082e-11
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   71.43432     FROM HESSE     STATUS=FAILED         9 CALLS      357 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     573.54        571.64         .0000       -1.5445    
   2  Prefactor     2.1743        1.0292         .0000       -1.5413    
   3  Prefactor     1.5975        1.0600         .0000       -1.5455    
   4  Prefactor     1.3743        1.0892         .0000       -1.5474    
   5  Prefactor     8.6328        1.0017         .0000       -1.5120    
   6  norm          6.4360        1.0030         .0000       -1.5201    
   7  Prefactor     7.2965        1.0024         .0000       -1.5168    
   8  Prefactor     3.8854        1.0085         .0000       -1.5314    
   9  norm          8.9958        1.0016         .0000       -1.5108    
  10  Prefactor     2.1971        1.0286         .0000       -1.5412    
  11  Prefactor     317.77        5.8358        .53738E-04   -1.2124    
  12  Prefactor     .10001E-03    .20684        .88129E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .16717        .13021E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.7785        1.0172         .0000       -1.5375    
  15  Prefactor     3.9918        1.0081         .0000       -1.5308    
  16  norm          3.3847        1.0113         .0000       -1.5340    
  17  Prefactor     .10000E-03    .20571        .14448E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    .30457       -.98408E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.3178        1.0118         .0000       -1.5344    
  20  norm          1.2319        1.1237         .0000       -1.5486    
  21  Prefactor     2.9625        1.0150         .0000       -1.5364    
  22  Prefactor     5.6548        1.0040         .0000       -1.5232    
  23  Prefactor     1.9006        1.0396         .0000       -1.5432    
  24  Prefactor     2.2423        1.0273         .0000       -1.5408    
  25  Prefactor     5.1004        1.0049         .0000       -1.5256    
  26  Normalizat    1.4136        .95651       -.20834E-04   -.80236    
  27  Prefactor     .76508E-10    .25562       -.59606E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.15425e-10
Minuit parameter uncertainties:
  1  1.04924
  2  1.02924
  3  1.06005
  4  1.08917
  5  1.00169
  6  1.00305
  7  1.00237
  8  1.00853
  9  1.00155
  10  1.02858
  11  5.83583
  12  8.01133e-05
  13  2.4068e-05
  14  1.01718
  15  1.00807
  16  1.01135
  17  4.90294e-06
  18  7.75415e-05
  19  1.01183
  20  1.12369
  21  1.015
  22  1.00396
  23  1.03964
  24  1.02732
  25  1.00489
  26  0.969042
  27  8.88272e-06
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 71.4343230676

Extracting fit parameters...

4FGL J1606.9+5919
   Spectrum: PowerLaw
329    Prefactor:  2.197e+00  1.029e+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

GAL_V02
   Spectrum: PowerLaw
703    Prefactor:  7.651e-11  8.883e-06  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.414e+00  9.690e-01  1.000e-02  1.000e+01 ( 1.000e+00)

calc_int error: parameter max 10000.0 is not large enough
delta logLike = 0.0

TS (Fixed Index): 0.00
Ra Dec: 241.734 59.320
Photon Flux Upper Limit: -1.00e+00 ph cm-2 s-1
Energy Flux Upper Limit: -7.57e+04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/30268/likelihoodResults_544665601_544924801_4FGL_J1606.9+5919_daily_bin1178.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): 101
logL (Free Index) = 71.4344646564
delta logL = -0.00014158879759

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 71.4344646564
delta logL = -0.00014158879759

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Index     '    2.1136       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   71.43446     FROM MIGRAD    STATUS=CONVERGED     15 CALLS       62 TOTAL
                     EDM=   .00E+00  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1    Index       2.1136        1.0170        .25173         .0000    
                               ERR DEF=  .500    
Final values: 
  Index      = 2.11365
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   71.43446     FROM HESSE     STATUS=FAILED         7 CALLS       69 TOTAL
                     EDM=   .00E+00  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1    Index       .48784        1.7168        .25173       -.61538    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 0
Minuit parameter uncertainties:
  1  1.02777
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/30268': 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): 101
logL (Free Index) = 71.4344646564
delta logL = -0.00014158879759

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
703    Prefactor:  8.233e-05  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
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.406e+00  0.000e+00  1.000e-02  1.000e+01 ( 1.000e+00) fixed


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/30268/cmap_HighResolution_544665601_544924801_4FGL_J1606.9+5919_daily_bin1178.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='-7.57e+04', job_status='DONE', photon_flux_upper_limit='-1.00e+00', time_completed='2021-09-13 08:27:01.724594', job_id='30268', GAL2='0.00', fit_tolerance='1e-08', EG2='1.41', EG='1.41', time_epoch_completed='1631546821.72', return_code2='101', ts='0.00', comment='SUCCESS', return_code='101', GAL='0.00', dlogl='-1.42e-04', ts2='0.00', photon_index_error='0.00', photon_index='2.11' WHERE bin_id='1178' AND source_name='4FGL J1606.9+5919' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 13 08:27:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0302>
Subject: Job 30268: <4FGL_J1606.9+5919_daily_bin1178> in cluster <slac> Done

Job <4FGL_J1606.9+5919_daily_bin1178> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep 13 08:20:25 2021
Job was executed on host(s) <bullet0302>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 13 08:21:03 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:21:03 2021
Terminated at Mon Sep 13 08:27:02 2021
Results reported at Mon Sep 13 08:27:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1606.9+5919_daily_bin1178 241.734 59.3201 544665601 544924801 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 :                                   338.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             472.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   358 sec.
    Turnaround time :                            397 sec.

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

