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


Performing analysis on: 4FGL_J1606.9+5919_daily_bin36
RA = 241.734, Dec = 59.3201
tmin = 248659201, tmax = 248918401
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='18556', job_status='RUN', time_executed='2021-09-13 07:42:57.741598', time_epoch_executed='1631544177.74' WHERE source_name='4FGL J1606.9+5919' and cadence='daily' and bin_id='36'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/18556

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/18556/ft1_4FGL_J1606.9+5919_daily_bin36.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/18556/ft2_4FGL_J1606.9+5919_daily_bin36.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/18556/ft1_4FGL_J1606.9+5919_daily_bin36.fits outfile=/scratch/kocevski/18556/ft1_filteredMKT_4FGL_J1606.9+5919_daily_bin36.fits ra=241.734 dec=59.3201 rad=12.0 tmin=248659201.0 tmax=248918401.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/18556/ft2_4FGL_J1606.9+5919_daily_bin36.fits

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/18556/ft1_filtered_4FGL_J1606.9+5919_daily_bin36.fits evtable="EVENTS" scfile=/scratch/kocevski/18556/ft2_4FGL_J1606.9+5919_daily_bin36.fits sctable="SC_DATA" expcube=/scratch/kocevski/18556/ltcube_248659201_248918401_4FGL_J1606.9+5919_daily_bin36.fits outfile=/scratch/kocevski/18556/expmap_248659201_248918401_4FGL_J1606.9+5919_daily_bin36.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/18556/ltcube_248659201_248918401_4FGL_J1606.9+5919_daily_bin36.fits
.....................!
real 192.38
user 185.58
sys 5.39

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/18556/ft1_filtered_4FGL_J1606.9+5919_daily_bin36.fits scfile=/scratch/kocevski/18556/ft2_4FGL_J1606.9+5919_daily_bin36.fits outfile=/scratch/kocevski/18556/cmap_248659201_248918401_4FGL_J1606.9+5919_daily_bin36.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.39
sys 0.14

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

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .42397       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .17136E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    20.872       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.2533       1.0000         .10000E-03   10000.    
     6 'norm      '    .52918       1.0000         .10000E-03   10000.    
     7 'Prefactor '    104.94       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    8.4228       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .63475       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.7473       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    18.404       1.0000         .10000E-03   10000.    
    20 'norm      '    .10038E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.6818       1.0000         .10000E-03   10000.    
    22 'Prefactor '    25.906       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    10.319       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.2183       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .86180       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=   4857.160     FROM MIGRAD    STATUS=CONVERGED    672 CALLS     3383 TOTAL
                     EDM=   .73E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .62048        92.793       -.23284E-04    .17464E-03
   2  Prefactor     .10003E-03    12.078       -.74500E-05** at limit **
   3  Prefactor     20.869        12.928       -.17138E-06   -.82477E-04
   4  Prefactor     .10000E-03    15.199        .93874E-06** at limit **
   5  Prefactor     8.2290        60.660        .10771E-05    .32647E-04
   6  norm          .53168        3.2652       -.18460E-05   -.52900E-04
   7  Prefactor     104.90        146.98        .47123E-05    .57681E-04
   8  Prefactor     .10000E-03    2.9447       -.50019E-07** at limit **
   9  norm          .10000E-03    9.2501       -.11497E-06** at limit **
  10  Prefactor     .10000E-03    170.40        .75452E-05** at limit **
  11  Prefactor     .10000E-03    82.407       -.35033E-05** at limit **
  12  Prefactor     .10000E-03    2.0726       -.68943E-07** at limit **
  13  norm          8.4267        19.023       -.25745E-05    .16149E-03
  14  Prefactor     .62641        4.7901       -.50679E-06    .10902E-04
  15  Prefactor     .10000E-03    44.852        .16687E-05** at limit **
  16  norm          .10000E-03    5.3669       -.22266E-06** at limit **
  17  Prefactor     5.7502        5.2957       -.20337E-06    .15344E-03
  18  Prefactor     .10000E-03    8.7563       -.14759E-06** at limit **
  19  Prefactor     18.402        19.520        .73201E-07    .35149E-04
  20  norm          .10000E-03    .41623       -.26392E-06** at limit **
  21  Prefactor     6.6804        10.226       -.70138E-07    .21662E-03
  22  Prefactor     25.894        25.710        .56881E-06    .19520E-03
  23  Prefactor     .10000E-03    2.1921       -.14154E-06** at limit **
  24  Prefactor     10.320        7.9500       -.10548E-06    .43337E-04
  25  Prefactor     .10000E-03    26.999       -.14846E-05** at limit **
  26  Normalizat    1.2181        .21311        .11730E-05    .19495E-03
  27  Prefactor     .86180        .19210        .10414E-05    .20014E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.620483
  Prefactor  = 0.000100035
  Prefactor  = 20.8689
  Prefactor  = 0.000100001
  Prefactor  = 8.22897
  norm       = 0.531682
  Prefactor  = 104.896
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 8.42667
  Prefactor  = 0.626407
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 5.75023
  Prefactor  = 0.0001
  Prefactor  = 18.4023
  norm       = 0.0001
  Prefactor  = 6.68043
  Prefactor  = 25.8941
  Prefactor  = 0.0001
  Prefactor  = 10.3203
  Prefactor  = 0.0001
  Normalizat = 1.21811
  Prefactor  = 0.861796
 **********
 **   18 **HESSE 
 **********

 FCN=   4857.160     FROM HESSE     STATUS=OK           492 CALLS     3875 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .62048        140.11        .61136E-02   -1.5550    
   2  Prefactor     .10003E-03    20.679        .32578E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     20.869        12.794        .87672E-04   -1.4794    
   4  Prefactor     .10000E-03    15.191        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     8.2290        60.959        .13955E-03   -1.5134    
   6  norm          .53168        3.2141        .23739E-03   -1.5562    
   7  Prefactor     104.90        146.74        .19627E-03   -1.3656    
   8  Prefactor     .10000E-03    2.9469        .11680E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    9.3591        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    171.67        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    82.971        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.0756        .97980E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          8.4267        18.924        .69065E-03   -1.5127    
  14  Prefactor     .62641        16.308        .28550E-02   -1.5550    
  15  Prefactor     .10000E-03    45.058        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    5.3941        .15771E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.7502        5.2958        .14551E-03   -1.5228    
  18  Prefactor     .10000E-03    8.7771        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     18.402        19.495        .93362E-04   -1.4850    
  20  norm          .10000E-03    .51447        .83883E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     6.6804        10.106        .15523E-03   -1.5191    
  22  Prefactor     25.894        25.072        .78705E-04   -1.4690    
  23  Prefactor     .10000E-03    2.1978        .10078E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     10.320        7.9504        .12473E-03   -1.5065    
  25  Prefactor     .10000E-03    27.077        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.2181        .25380        .23758E-03   -.86045    
  27  Prefactor     .86180        .22887        .25814E-03   -.97489    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.54457e-09
Minuit parameter uncertainties:
  1  18.6909
  2  0.00169152
  3  12.7959
  4  0.000227631
  5  44.8582
  6  2.61443
  7  147.254
  8  6.61132e-06
  9  8.46991e-05
  10  0.00019417
  11  0.000476289
  12  5.4452e-07
  13  18.9379
  14  6.39368
  15  0.000146902
  16  2.26855e-05
  17  5.29621
  18  5.78257e-06
  19  19.5016
  20  9.14899e-06
  21  10.1085
  22  25.0825
  23  4.7903e-06
  24  7.95118
  25  0.000152638
  26  0.254055
  27  0.229127
Done.

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

Extracting fit parameters...

4FGL J1606.9+5919
   Spectrum: PowerLaw
329    Prefactor:  1.000e-04  1.942e-04  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:  8.618e-01  2.291e-01  0.000e+00  1.000e+01 ( 1.000e+00)
704        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
705        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
702   Normalization:  1.218e+00  2.541e-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: 9.54e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.22e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/18556/likelihoodResults_248659201_248918401_4FGL_J1606.9+5919_daily_bin36.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) = 4857.16046687
delta logL = -2.76179989669e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4855.54783125
delta logL = 1.61260799717

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .98677       1.0000         .10000E-03   10000.    
     2 'Index     '    4.0823       1.0000          .0000       10.000    
     3 'Normalizat'    1.0664       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94833       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=   4855.548     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      426 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .98684        9.7435        .93921E-02    .17315E-02
   2  Index         4.0825        1.9145        .68452E-01    .14874E-03
   3  Normalizat    1.0663        .59822E-01    .56826E-01    .75844E-05
   4  Prefactor     .94842        .55431E-01    .45618E-01    .92682E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.986841
  Index      = 4.08247
  Normalizat = 1.06634
  Prefactor  = 0.948416
 **********
 **   18 **HESSE 
 **********

 FCN=   4855.548     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      459 TOTAL
                     EDM=   .13E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .98684        19.098        .42288E-04   -1.5509    
   2  Index         4.0825        2.9585        .27075E-02   -.18455    
   3  Normalizat    1.0663        .22866        .25129E-03   -.90840    
   4  Prefactor     .94842        .20891        .24724E-03   -.94469    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.28414e-07
Minuit parameter uncertainties:
  1  8.68524
  2  3.17474
  3  0.228869
  4  0.209085
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/18556': 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) = 4855.54783074
delta logL = 1.61260850961

Extracting fit parameters...

4FGL J1606.9+5919
   Spectrum: PowerLaw
329    Prefactor:  9.868e-01  8.685e+00  1.000e-04  1.000e+04 ( 1.000e-14)
330        Index:  4.082e+00  3.175e+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:  9.484e-01  2.091e-01  0.000e+00  1.000e+01 ( 1.000e+00)
704        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
705        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
702   Normalization:  1.066e+00  2.289e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.50
Ra Dec: 241.734 59.320
Photon Index (Free Index): 4.08 +/- 3.17
Photon Flux (Free Index): 1.27e-07 +/- 8.56e-08
Energy Flux (Free Index): 1.88e-05 +/- 1.31e-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/18556/cmap_HighResolution_248659201_248918401_4FGL_J1606.9+5919_daily_bin36.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.22e-03', comment='SUCCESS', energy_flux2='1.88e-05', dlogl='1.61e+00', photon_flux2='1.27e-07', job_status='DONE', time_completed='2021-09-13 07:55:57.390284', photon_index_error2='3.17', photon_index2='4.08', ts='-0.00', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', photon_flux_upper_limit='9.54e-08', energy_flux_error2='1.31e-05', EG='1.22', time_epoch_completed='1631544957.39', return_code='0', job_id='18556', GAL2='0.95', EG2='1.07', return_code2='102', photon_flux_error2='8.56e-08', ts2='3.50', photon_index='2.11' WHERE bin_id='36' AND source_name='4FGL J1606.9+5919' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 13 07:55:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0089>
Subject: Job 18556: <4FGL_J1606.9+5919_daily_bin36> in cluster <slac> Done

Job <4FGL_J1606.9+5919_daily_bin36> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Mon Sep 13 07:40:27 2021
Job was executed on host(s) <bullet0089>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 13 07:40:51 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep 13 07:40:51 2021
Terminated at Mon Sep 13 07:55:58 2021
Results reported at Mon Sep 13 07:55:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1606.9+5919_daily_bin36 241.734 59.3201 248659201 248918401 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 :                                   772.40 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             312.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   906 sec.
    Turnaround time :                            931 sec.

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

