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


Performing analysis on: 4FGL_J1606.9+5919_daily_bin75
RA = 241.734, Dec = 59.3201
tmin = 258768001, tmax = 259027201
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='18615', job_status='RUN', time_executed='2021-09-13 07:43:36.456868', time_epoch_executed='1631544216.46' WHERE source_name='4FGL J1606.9+5919' and cadence='daily' and bin_id='75'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/18615

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

Retrieving the FT1 file...

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

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

Retrieving 31 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/18615/ft1_4FGL_J1606.9+5919_daily_bin75.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/18615/ft2_4FGL_J1606.9+5919_daily_bin75.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/18615/ft1_4FGL_J1606.9+5919_daily_bin75.fits outfile=/scratch/kocevski/18615/ft1_filteredMKT_4FGL_J1606.9+5919_daily_bin75.fits ra=241.734 dec=59.3201 rad=12.0 tmin=258768001.0 tmax=259027201.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.13
user 0.96
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/18615/ft1_filtered_4FGL_J1606.9+5919_daily_bin75.fits" evtable="EVENTS" scfile=/scratch/kocevski/18615/ft2_4FGL_J1606.9+5919_daily_bin75.fits sctable="SC_DATA" outfile=/scratch/kocevski/18615/ltcube_258768001_259027201_4FGL_J1606.9+5919_daily_bin75.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/18615/ft2_4FGL_J1606.9+5919_daily_bin75.fits
.....................!
real 11.01
user 10.46
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/18615/ft1_filtered_4FGL_J1606.9+5919_daily_bin75.fits evtable="EVENTS" scfile=/scratch/kocevski/18615/ft2_4FGL_J1606.9+5919_daily_bin75.fits sctable="SC_DATA" expcube=/scratch/kocevski/18615/ltcube_258768001_259027201_4FGL_J1606.9+5919_daily_bin75.fits outfile=/scratch/kocevski/18615/expmap_258768001_259027201_4FGL_J1606.9+5919_daily_bin75.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/18615/ltcube_258768001_259027201_4FGL_J1606.9+5919_daily_bin75.fits
.....................!
real 199.47
user 188.79
sys 4.99

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/18615/ft1_filtered_4FGL_J1606.9+5919_daily_bin75.fits scfile=/scratch/kocevski/18615/ft2_4FGL_J1606.9+5919_daily_bin75.fits outfile=/scratch/kocevski/18615/cmap_258768001_259027201_4FGL_J1606.9+5919_daily_bin75.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.76
user 0.38
sys 0.17

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

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

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    14.945       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    20.597       1.0000         .10000E-03   10000.    
     9 'norm      '    10.609       1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.2246       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.5568       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .51530       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.6396       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    4.5361       1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.8673       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    19.970       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .52352       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.4584       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=   4922.299     FROM MIGRAD    STATUS=CONVERGED    643 CALLS     3269 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.679        .23652E-06** at limit **
   2  Prefactor     .10000E-03    4.2462        .42349E-07** at limit **
   3  Prefactor     .10000E-03    1.8274        .16306E-07** at limit **
   4  Prefactor     .10000E-03    22.117       -.30835E-06** at limit **
   5  Prefactor     .10000E-03    21.757       -.69611E-05** at limit **
   6  norm          14.945        5.3274       -.85838E-06    .43026E-04
   7  Prefactor     .10000E-03    98.680       -.20221E-04** at limit **
   8  Prefactor     20.598        16.275        .16905E-05   -.92222E-04
   9  norm          10.607        14.439       -.65250E-05   -.21201E-03
  10  Prefactor     9.2686        78.235        .94809E-04    .30226E-04
  11  Prefactor     .10000E-03    33.944       -.25042E-04** at limit **
  12  Prefactor     .10000E-03    2.0296        .24672E-07** at limit **
  13  norm          .10000E-03    6.9307        .54235E-07** at limit **
  14  Prefactor     8.5567        9.0515       -.14594E-06   -.14090E-03
  15  Prefactor     .10000E-03    56.799        .63489E-05** at limit **
  16  norm          .46390        11.664       -.29544E-05    .19338E-03
  17  Prefactor     2.6393        3.2579        .27109E-07   -.39548E-03
  18  Prefactor     .10000E-03    25.058        .11611E-04** at limit **
  19  Prefactor     .10000E-03    8.4604       -.78511E-07** at limit **
  20  norm          4.5358        1.4506       -.17884E-07   -.23398E-03
  21  Prefactor     9.8723        11.672        .11132E-05    .12661E-03
  22  Prefactor     .10000E-03    26.471        .10564E-04** at limit **
  23  Prefactor     19.971        9.8153       -.14443E-06   -.78426E-04
  24  Prefactor     .10000E-03    4.9649        .69062E-07** at limit **
  25  Prefactor     .10000E-03    64.802        .23340E-04** at limit **
  26  Normalizat    .52341        .22021       -.54301E-05    .42326E-04
  27  Prefactor     1.4586        .21553        .81938E-06   -.86825E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 14.9446
  Prefactor  = 0.0001
  Prefactor  = 20.5979
  norm       = 10.6066
  Prefactor  = 9.26856
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 8.55669
  Prefactor  = 0.0001
  norm       = 0.463902
  Prefactor  = 2.63926
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.5358
  Prefactor  = 9.87229
  Prefactor  = 0.0001
  Prefactor  = 19.971
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.523413
  Prefactor  = 1.45857
 **********
 **   18 **HESSE 
 **********

 FCN=   4922.299     FROM HESSE     STATUS=OK           486 CALLS     3755 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.690        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.2685        .14119E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.8286        .92621E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    22.259        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    21.765        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          14.945        5.3254        .92517E-04   -1.4935    
   7  Prefactor     .10000E-03    98.840        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     20.598        16.271        .88253E-04   -1.4800    
   9  norm          10.607        14.433        .12301E-03   -1.5056    
  10  Prefactor     9.2686        78.211        .13196E-03   -1.5099    
  11  Prefactor     .10000E-03    33.909        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.0334        .97603E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    6.9330        .18040E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     8.5567        9.0456        .13704E-03   -1.5123    
  15  Prefactor     .10000E-03    56.937        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .46390        71.427        .43585E-02   -1.5572    
  17  Prefactor     2.6393        3.2440        .13603E-03   -1.5383    
  18  Prefactor     .10000E-03    26.183        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    8.4741        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          4.5358        1.4522        .44026E-04   -1.5282    
  21  Prefactor     9.8723        11.593        .12757E-03   -1.5079    
  22  Prefactor     .10000E-03    26.613        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     19.971        9.7989        .89627E-04   -1.4814    
  24  Prefactor     .10000E-03    4.9771        .15262E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    64.826        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .52341        .25088        .34512E-03   -1.1134    
  27  Prefactor     1.4586        .25047        .22172E-03   -.78707    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.77261e-09
Minuit parameter uncertainties:
  1  1.34492e-05
  2  6.2967e-06
  3  1.88821e-06
  4  9.93567e-05
  5  2.55266e-05
  6  5.32558
  7  8.01883e-05
  8  16.275
  9  14.4375
  10  53.9433
  11  3.1519e-05
  12  3.90718e-06
  13  3.09163e-06
  14  9.04709
  15  3.08855e-05
  16  11.5254
  17  3.24417
  18  0.000179441
  19  5.54595e-06
  20  1.45226
  21  11.596
  22  2.81087e-05
  23  9.79967
  24  9.68467e-06
  25  6.14316e-05
  26  0.251427
  27  0.250681
Done.

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

Extracting fit parameters...

4FGL J1606.9+5919
   Spectrum: PowerLaw
329    Prefactor:  9.269e+00  5.394e+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.459e+00  2.507e-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:  5.234e-01  2.514e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/18615/likelihoodResults_258768001_259027201_4FGL_J1606.9+5919_daily_bin75.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) = 4921.45114825
delta logL = 0.848125519173

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4921.44239724
delta logL = 0.856876524033

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.9107       1.0000         .10000E-03   10000.    
     2 'Index     '    3.6716       1.0000          .0000       10.000    
     3 'Normalizat'    .43251       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.5132       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=   4921.442     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      246 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.9052        28.639        .75186E-02    .34268E-03
   2  Index         3.6726        2.1264        .92076E-01    .13124E-03
   3  Normalizat    .43252        .55173E-01    .85089E-01    .21799E-04
   4  Prefactor     1.5131        .56000E-01    .49308E-01   -.26822E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.90516
  Index      = 3.67261
  Normalizat = 0.432524
  Prefactor  = 1.51315
 **********
 **   18 **HESSE 
 **********

 FCN=   4921.442     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      279 TOTAL
                     EDM=   .31E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.9052        62.340        .76286E-04   -1.5432    
   2  Index         3.6726        3.6584        .32514E-02   -.26870    
   3  Normalizat    .43252        .22336        .37692E-03   -1.1565    
   4  Prefactor     1.5131        .22591        .21796E-03   -.77172    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.07077e-07
Minuit parameter uncertainties:
  1  21.8203
  2  4.1536
  3  0.223824
  4  0.226064
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/18615': 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) = 4921.44239684
delta logL = 0.85687692771

Extracting fit parameters...

4FGL J1606.9+5919
   Spectrum: PowerLaw
329    Prefactor:  1.905e+00  2.182e+01  1.000e-04  1.000e+04 ( 1.000e-14)
330        Index:  3.673e+00  4.154e+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:  1.513e+00  2.261e-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:  4.325e-01  2.238e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.89
Ra Dec: 241.734 59.320
Photon Index (Free Index): 3.67 +/- 4.15
Photon Flux (Free Index): 7.76e-08 +/- 6.51e-08
Energy Flux (Free Index): 1.24e-05 +/- 1.42e-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/18615/cmap_HighResolution_258768001_259027201_4FGL_J1606.9+5919_daily_bin75.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.54e-03', comment='SUCCESS', energy_flux2='1.24e-05', dlogl='8.57e-01', photon_flux2='7.76e-08', job_status='DONE', time_completed='2021-09-13 07:56:24.114769', photon_index_error2='4.15', photon_index2='3.67', ts='0.04', fit_tolerance='1e-08', GAL='1.46', photon_index_error='0.00', photon_flux_upper_limit='9.96e-08', energy_flux_error2='1.42e-05', EG='0.52', time_epoch_completed='1631544984.11', return_code='0', job_id='18615', GAL2='1.51', EG2='0.43', return_code2='102', photon_flux_error2='6.51e-08', ts2='1.89', photon_index='2.11' WHERE bin_id='75' AND source_name='4FGL J1606.9+5919' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 13 07:56:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0124>
Subject: Job 18615: <4FGL_J1606.9+5919_daily_bin75> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1606.9+5919_daily_bin75 241.734 59.3201 258768001 259027201 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 :                                   753.14 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             299.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   888 sec.
    Turnaround time :                            953 sec.

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

