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


Performing analysis on: 4FGL_J1606.9+5919_daily_bin89
RA = 241.734, Dec = 59.3201
tmin = 262396801, tmax = 262656001
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='18638', job_status='RUN', time_executed='2021-09-13 07:45:05.092084', time_epoch_executed='1631544305.09' WHERE source_name='4FGL J1606.9+5919' and cadence='daily' and bin_id='89'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/18638

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/18638/ft1_4FGL_J1606.9+5919_daily_bin89.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/18638/ft2_4FGL_J1606.9+5919_daily_bin89.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/18638/ft1_4FGL_J1606.9+5919_daily_bin89.fits outfile=/scratch/kocevski/18638/ft1_filteredMKT_4FGL_J1606.9+5919_daily_bin89.fits ra=241.734 dec=59.3201 rad=12.0 tmin=262396801.0 tmax=262656001.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.23
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/18638/ft1_filtered_4FGL_J1606.9+5919_daily_bin89.fits" evtable="EVENTS" scfile=/scratch/kocevski/18638/ft2_4FGL_J1606.9+5919_daily_bin89.fits sctable="SC_DATA" outfile=/scratch/kocevski/18638/ltcube_262396801_262656001_4FGL_J1606.9+5919_daily_bin89.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/18638/ft2_4FGL_J1606.9+5919_daily_bin89.fits
.....................!
real 14.80
user 14.40
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/18638/ft1_filtered_4FGL_J1606.9+5919_daily_bin89.fits evtable="EVENTS" scfile=/scratch/kocevski/18638/ft2_4FGL_J1606.9+5919_daily_bin89.fits sctable="SC_DATA" expcube=/scratch/kocevski/18638/ltcube_262396801_262656001_4FGL_J1606.9+5919_daily_bin89.fits outfile=/scratch/kocevski/18638/expmap_262396801_262656001_4FGL_J1606.9+5919_daily_bin89.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/18638/ltcube_262396801_262656001_4FGL_J1606.9+5919_daily_bin89.fits
.....................!
real 191.77
user 185.87
sys 5.28

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

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

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/18638/ft1_filtered_4FGL_J1606.9+5919_daily_bin89.fits scfile=/scratch/kocevski/18638/ft2_4FGL_J1606.9+5919_daily_bin89.fits outfile=/scratch/kocevski/18638/cmap_HighResolution_262396801_262656001_4FGL_J1606.9+5919_daily_bin89.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.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    3.7880       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    26.335       1.0000         .10000E-03   10000.    
     6 'norm      '    12.943       1.0000         .10000E-03   10000.    
     7 'Prefactor '    81.805       1.0000         .10000E-03   10000.    
     8 'Prefactor '    22.513       1.0000         .10000E-03   10000.    
     9 'norm      '    13.461       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    35.856       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .18289E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.8231       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.8108       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.5750       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    39.652       1.0000         .10000E-03   10000.    
    20 'norm      '    2.0311       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    19.537       1.0000         .10000E-03   10000.    
    23 'Prefactor '    7.9203       1.0000         .10000E-03   10000.    
    24 'Prefactor '    19.074       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.9871       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .76475E-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.

 FCN=   4934.974     FROM MIGRAD    STATUS=CONVERGED     76 CALLS     2743 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    5.1207       -.17507E-04** at limit **
   2  Prefactor     3.7860        1.0162       -.78346E-07   -.21251E-05
   3  Prefactor     .10002E-03    4.6348        .14544E-04** at limit **
   4  Prefactor     .10003E-03    7.7845        .16420E-04** at limit **
   5  Prefactor     26.332        1.0681       -.29555E-06    .11761E-02
   6  norm          12.942        1.0017       -.31355E-07   -.13600E-03
   7  Prefactor     81.794        2.4087       -.10946E-05    .15583E-01
   8  Prefactor     22.511        1.0099       -.13018E-06    .48507E-03
   9  norm          13.460        1.0118        .37773E-07    .43134E-04
  10  Prefactor     .10101E-03    23.895        .99867E-05** at limit **
  11  Prefactor     35.854        1.0991       -.33830E-06    .20786E-02
  12  Prefactor     .10003E-03    11.253       -.88519E-05** at limit **
  13  norm          .10230E-03    42.665       -.23238E-04** at limit **
  14  Prefactor     6.8223        1.0032        .33285E-07    .26648E-05
  15  Prefactor     2.8063        1.2853       -.19969E-05    .87624E-03
  16  norm          .10000E-03    5.0672       -.18921E-05** at limit **
  17  Prefactor     3.5747        2.8737       -.39824E-07   -.10140E-03
  18  Prefactor     .10000E-03    2.8476        .49631E-06** at limit **
  19  Prefactor     39.650        1.0309       -.13568E-06    .66964E-03
  20  norm          2.0310        .89264       -.78899E-07   -.57973E-03
  21  Prefactor     .10001E-03    2.6672       -.45525E-05** at limit **
  22  Prefactor     19.534        1.0320       -.17523E-06    .35330E-03
  23  Prefactor     7.9199        1.0056       -.24126E-07   -.10011E-04
  24  Prefactor     19.069        1.0259        .28135E-07   -.25211E-03
  25  Prefactor     .10520E-03    17.024        .11025E-04** at limit **
  26  Normalizat    1.9869        .11815        .86834E-06   -.11397E-03
  27  Prefactor     .17533E-08    6.8154       -.62363E-05** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100014
  Prefactor  = 3.78599
  Prefactor  = 0.000100024
  Prefactor  = 0.00010003
  Prefactor  = 26.3322
  norm       = 12.9422
  Prefactor  = 81.7936
  Prefactor  = 22.5108
  norm       = 13.4602
  Prefactor  = 0.000101011
  Prefactor  = 35.8538
  Prefactor  = 0.000100028
  norm       = 0.000102295
  Prefactor  = 6.82233
  Prefactor  = 2.80629
  norm       = 0.0001
  Prefactor  = 3.57468
  Prefactor  = 0.0001
  Prefactor  = 39.6496
  norm       = 2.03098
  Prefactor  = 0.000100011
  Prefactor  = 19.5345
  Prefactor  = 7.91985
  Prefactor  = 19.0692
  Prefactor  = 0.000105196
  Normalizat = 1.9869
  Prefactor  = 1.75331e-09
 **********
 **   18 **HESSE 
 **********

 FCN=   4934.974     FROM HESSE     STATUS=OK           556 CALLS     3299 TOTAL
                     EDM=   .74E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    6.6058        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.7860        13.678        .51852E-02   -1.5319    
   3  Prefactor     .10002E-03    5.6807        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10003E-03    8.0148        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     26.332        28.837        .19516E-02   -1.4681    
   6  norm          12.942        5.6232        .27834E-02   -1.4988    
   7  Prefactor     81.794        152.19        .11102E-02   -1.3897    
   8  Prefactor     22.511        18.810        .21105E-02   -1.4759    
   9  norm          13.460        15.227        .27293E-02   -1.4974    
  10  Prefactor     .10101E-03    27.279        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     35.854        62.532        .16732E-02   -1.4510    
  12  Prefactor     .10003E-03    11.065        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10230E-03    55.485        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.8223        6.2005        .38400E-02   -1.5186    
  15  Prefactor     2.8063        128.90        .60657E-02   -1.5373    
  16  norm          .10000E-03    5.0605        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.5747        2.8785        .53434E-02   -1.5330    
  18  Prefactor     .10000E-03    2.8476        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     39.650        21.197        .15914E-02   -1.4448    
  20  norm          2.0310        .93377        .72566E-02   -1.5423    
  21  Prefactor     .10001E-03    6.0027        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     19.534        19.532        .22654E-02   -1.4824    
  23  Prefactor     7.9199        7.9069        .35618E-02   -1.5145    
  24  Prefactor     19.069        13.995        .22927E-02   -1.4834    
  25  Prefactor     .10520E-03    39.626        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.9869        .19926        .45838E-01   -.64879    
  27  Prefactor     .17533E-08    .24658        .21291       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.44435e-06
Minuit parameter uncertainties:
  1  0.000613701
  2  13.6891
  3  0.000732789
  4  0.000981942
  5  28.8524
  6  5.62344
  7  152.922
  8  18.8154
  9  15.2317
  10  0.0105102
  11  62.6463
  12  0.00110734
  13  0.0225908
  14  6.2011
  15  38.1252
  16  6.4715e-05
  17  2.87863
  18  1.68425e-05
  19  21.2007
  20  0.933775
  21  0.0005151
  22  19.5385
  23  7.90795
  24  13.9977
  25  0.0287176
  26  0.199343
  27  4.17577e-05
Done.

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

Extracting fit parameters...

4FGL J1606.9+5919
   Spectrum: PowerLaw
329    Prefactor:  1.010e-04  1.051e-02  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.753e-09  4.176e-05  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.987e+00  1.993e-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: 7.69e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.82e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/18638/likelihoodResults_262396801_262656001_4FGL_J1606.9+5919_daily_bin89.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) = 4934.97369294
delta logL = -0.000175534678419

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4934.97351889
delta logL = -1.48584967974e-06

Fit tolerance = 1e-08

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

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

 FCN=   4934.974     FROM MIGRAD    STATUS=CONVERGED     71 CALLS      298 TOTAL
                     EDM=   .83E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.517        .90712E-02** at limit **
   2  Index         2.3030        6.1187        .50000        .71434E-05
   3  Normalizat    1.9869        .39428E-02    .45838E-01    .33816E-03
   4  Prefactor     .79091E-10    .10237E-03    .21300    ** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Index      = 2.30299
  Normalizat = 1.9869
  Prefactor  = 7.90912e-11
 **********
 **   18 **HESSE 
 **********

 FCN=   4934.974     FROM HESSE     STATUS=NOT POSDEF    39 CALLS      337 TOTAL
                     EDM=   .59E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    95.971        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3030        7.6091        .50000       -.56973    
   3  Normalizat    1.9869        .10547E-01    .20258E-03   -.64879    
   4  Prefactor     .79091E-10    .13925E-02    .15066       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.92601e-08
Minuit parameter uncertainties:
  1  0.00086846
  2  154.099
  3  0.0105472
  4  6.63737e-07
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/18638': 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) = 4934.97351764
delta logL = -2.29105353355e-07

Extracting fit parameters...

4FGL J1606.9+5919
   Spectrum: PowerLaw
329    Prefactor:  1.000e-04  8.685e-04  1.000e-04  1.000e+04 ( 1.000e-14)
330        Index:  2.303e+00  1.541e+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:  7.909e-11  6.637e-07  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.987e+00  1.055e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 241.734 59.320

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/18638/cmap_HighResolution_262396801_262656001_4FGL_J1606.9+5919_daily_bin89.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.82e-03', job_status='DONE', photon_flux_upper_limit='7.69e-08', time_completed='2021-09-13 07:57:05.496832', job_id='18638', GAL2='0.00', fit_tolerance='1e-08', EG2='1.99', EG='1.99', time_epoch_completed='1631545025.5', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.00', dlogl='-2.29e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.11' WHERE bin_id='89' AND source_name='4FGL J1606.9+5919' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 13 07:57:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0203>
Subject: Job 18638: <4FGL_J1606.9+5919_daily_bin89> in cluster <slac> Done

Job <4FGL_J1606.9+5919_daily_bin89> 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) <bullet0203>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 13 07:41:57 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:57 2021
Terminated at Mon Sep 13 07:57:06 2021
Results reported at Mon Sep 13 07:57:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1606.9+5919_daily_bin89 241.734 59.3201 262396801 262656001 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 :                                   719.05 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             289.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   908 sec.
    Turnaround time :                            993 sec.

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

