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


Performing analysis on: 4FGL_J1606.9+5919_daily_bin728
RA = 241.734, Dec = 59.3201
tmin = 428025601, tmax = 428284801
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='24569', job_status='RUN', time_executed='2021-09-13 08:03:03.160956', time_epoch_executed='1631545383.16' WHERE source_name='4FGL J1606.9+5919' and cadence='daily' and bin_id='728'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/24569

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/24569/ft1_4FGL_J1606.9+5919_daily_bin728.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/24569/ft2_4FGL_J1606.9+5919_daily_bin728.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/24569/ft1_4FGL_J1606.9+5919_daily_bin728.fits outfile=/scratch/kocevski/24569/ft1_filteredMKT_4FGL_J1606.9+5919_daily_bin728.fits ra=241.734 dec=59.3201 rad=12.0 tmin=428025601.0 tmax=428284801.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 5.61
user 5.36
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/24569/ft2_4FGL_J1606.9+5919_daily_bin728.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/24569/ft1_filteredMKT_4FGL_J1606.9+5919_daily_bin728.fits evtable="EVENTS" outfile="/scratch/kocevski/24569/ft1_filtered_4FGL_J1606.9+5919_daily_bin728.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.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/24569/ft1_filtered_4FGL_J1606.9+5919_daily_bin728.fits" evtable="EVENTS" scfile=/scratch/kocevski/24569/ft2_4FGL_J1606.9+5919_daily_bin728.fits sctable="SC_DATA" outfile=/scratch/kocevski/24569/ltcube_428025601_428284801_4FGL_J1606.9+5919_daily_bin728.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/24569/ft2_4FGL_J1606.9+5919_daily_bin728.fits
.....................!
real 13.86
user 13.48
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/24569/ft1_filtered_4FGL_J1606.9+5919_daily_bin728.fits evtable="EVENTS" scfile=/scratch/kocevski/24569/ft2_4FGL_J1606.9+5919_daily_bin728.fits sctable="SC_DATA" expcube=/scratch/kocevski/24569/ltcube_428025601_428284801_4FGL_J1606.9+5919_daily_bin728.fits outfile=/scratch/kocevski/24569/expmap_428025601_428284801_4FGL_J1606.9+5919_daily_bin728.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/24569/ltcube_428025601_428284801_4FGL_J1606.9+5919_daily_bin728.fits
.....................!
real 192.14
user 185.51
sys 6.04

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 221 point sources and 0 extended sources

Setting source of interest to:
4FGL J1606.9+5919 @ 241.734 59.3201

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/24569/ft1_filtered_4FGL_J1606.9+5919_daily_bin728.fits scfile=/scratch/kocevski/24569/ft2_4FGL_J1606.9+5919_daily_bin728.fits outfile=/scratch/kocevski/24569/cmap_428025601_428284801_4FGL_J1606.9+5919_daily_bin728.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.54
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/24569/ft1_filtered_4FGL_J1606.9+5919_daily_bin728.fits scfile=/scratch/kocevski/24569/ft2_4FGL_J1606.9+5919_daily_bin728.fits outfile=/scratch/kocevski/24569/cmap_HighResolution_428025601_428284801_4FGL_J1606.9+5919_daily_bin728.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/24569/ft1_filtered_4FGL_J1606.9+5919_daily_bin728.fits evtable="EVENTS" scfile=/scratch/kocevski/24569/ft2_4FGL_J1606.9+5919_daily_bin728.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/24569/Model_4FGL_J1606.9+5919_daily_bin728.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/24569/ft1_filtered_4FGL_J1606.9+5919_daily_bin728.fits......................!
real 35.58
user 34.33
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.2467       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10118E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    63.427       1.0000         .10000E-03   10000.    
     6 'norm      '    3.7066       1.0000         .10000E-03   10000.    
     7 'Prefactor '    58.147       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.9419       1.0000         .10000E-03   10000.    
     9 'norm      '    17.539       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    12.696       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.2623       1.0000         .10000E-03   10000.    
    16 'norm      '    12.078       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    12.735       1.0000         .10000E-03   10000.    
    20 'norm      '    3.0989       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    12.585       1.0000         .10000E-03   10000.    
    23 'Prefactor '    27.964       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10425E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .97408       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .68978       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=   3424.667     FROM MIGRAD    STATUS=CONVERGED    652 CALLS     3234 TOTAL
                     EDM=   .36E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.561        .47065E-07** at limit **
   2  Prefactor     .10000E-03    3.2664       -.10059E-06** at limit **
   3  Prefactor     6.2463        6.9445        .20249E-05   -.64388E-03
   4  Prefactor     .10000E-03    7.9602        .81827E-07** at limit **
   5  Prefactor     63.442        38.830        .75551E-06    .10564E-03
   6  norm          3.7062        3.4101        .16880E-07   -.22540E-04
   7  Prefactor     58.145        93.230       -.45947E-06   -.11545E-04
   8  Prefactor     3.9424        10.608        .25215E-06   -.29048E-04
   9  norm          17.537        14.534       -.12199E-06   -.28198E-04
  10  Prefactor     .10000E-03    88.097       -.19530E-06** at limit **
  11  Prefactor     .10000E-03    39.740        .27263E-06** at limit **
  12  Prefactor     .10000E-03    4.0912        .34539E-07** at limit **
  13  norm          12.696        19.213        .32526E-07    .48873E-06
  14  Prefactor     .10000E-03    11.118        .43749E-07** at limit **
  15  Prefactor     2.2223        185.85       -.15435E-04   -.67727E-04
  16  norm          12.077        14.824        .37976E-06    .51956E-04
  17  Prefactor     .10000E-03    3.0354        .41906E-07** at limit **
  18  Prefactor     .10000E-03    13.280        .53979E-07** at limit **
  19  Prefactor     12.736        29.836       -.49502E-07   -.15301E-04
  20  norm          3.0990        1.5099        .21044E-06    .17758E-03
  21  Prefactor     .10000E-03    4.3495       -.15618E-07** at limit **
  22  Prefactor     12.578        37.035       -.17706E-05   -.40413E-05
  23  Prefactor     27.933        14.857       -.26991E-06   -.15989E-03
  24  Prefactor     .10000E-03    25.826       -.68773E-07** at limit **
  25  Prefactor     .10000E-03    188.70        .21044E-05** at limit **
  26  Normalizat    .97409        .21848       -.77361E-06    .57520E-04
  27  Prefactor     .68976        .20924        .50565E-06    .14472E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.24633
  Prefactor  = 0.0001
  Prefactor  = 63.4416
  norm       = 3.70619
  Prefactor  = 58.1448
  Prefactor  = 3.94244
  norm       = 17.5371
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 12.6964
  Prefactor  = 0.0001
  Prefactor  = 2.22226
  norm       = 12.0775
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.7361
  norm       = 3.09902
  Prefactor  = 0.0001
  Prefactor  = 12.5781
  Prefactor  = 27.9332
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Normalizat = 0.974094
  Prefactor  = 0.689763
 **********
 **   18 **HESSE 
 **********

 FCN=   3424.667     FROM HESSE     STATUS=OK           486 CALLS     3720 TOTAL
                     EDM=   .93E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.579        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.2723        .10333E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.2463        7.4508        .80306E-03   -1.5208    
   4  Prefactor     .10000E-03    7.9771        .16117E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     63.442        38.918        .50387E-04   -1.4113    
   6  norm          3.7062        3.4019        .98119E-04   -1.5323    
   7  Prefactor     58.145        93.481        .52611E-04   -1.4181    
   8  Prefactor     3.9424        10.570        .20318E-03   -1.5311    
   9  norm          17.537        14.564        .95636E-04   -1.4870    
  10  Prefactor     .10000E-03    88.709        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    39.767        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.1248        .11558E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          12.696        19.214        .11242E-03   -1.4995    
  14  Prefactor     .10000E-03    11.239        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.2223        218.36        .27310E-03   -1.5410    
  16  norm          12.077        14.828        .11527E-03   -1.5013    
  17  Prefactor     .10000E-03    3.0636        .99558E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    13.326        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     12.736        29.826        .11225E-03   -1.4994    
  20  norm          3.0990        1.5534        .39184E-04   -1.5356    
  21  Prefactor     .10000E-03    4.3578        .11915E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     12.578        37.864        .11292E-03   -1.4999    
  23  Prefactor     27.933        14.921        .75760E-04   -1.4650    
  24  Prefactor     .10000E-03    26.323        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    189.65        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .97409        .25850        .22295E-03   -.93903    
  27  Prefactor     .68976        .24579        .25327E-03   -1.0393    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.26017e-10
Minuit parameter uncertainties:
  1  1.45239e-06
  2  7.99004e-06
  3  7.45195
  4  9.56997e-06
  5  38.9333
  6  3.40211
  7  93.7177
  8  10.5748
  9  14.5669
  10  6.44168e-05
  11  5.35997e-05
  12  4.59217e-07
  13  19.2228
  14  4.91141e-06
  15  44.2227
  16  14.8321
  17  8.64217e-07
  18  1.0602e-06
  19  29.8605
  20  1.55347
  21  5.33033e-06
  22  37.9366
  23  14.9232
  24  3.08034e-05
  25  0.00124887
  26  0.258835
  27  0.246176
Done.

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

Extracting fit parameters...

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

EG_v02
   Spectrum: FileFunction
702   Normalization:  9.741e-01  2.588e-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.52e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.20e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/24569/likelihoodResults_428025601_428284801_4FGL_J1606.9+5919_daily_bin728.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) = 3424.66678897
delta logL = -5.35956091881e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3424.66673544
delta logL = -6.34017851553e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0704       1.0000          .0000       10.000    
     3 'Normalizat'    .97410       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .68977       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=   3424.667     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      234 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    2034.2        .90712E-02** at limit **
   2  Index         2.1233        7.9807        .50000       -.62015E-05
   3  Normalizat    .97409        .26417E-01    .45842E-01   -.17413E-03
   4  Prefactor     .68977        .25772E-01    .42265E-01    .15161E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100011
  Index      = 2.12329
  Normalizat = 0.974087
  Prefactor  = 0.689771
 **********
 **   18 **HESSE 
 **********

 FCN=   3424.667     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      265 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    7076.2        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1233        6.0011        .50000       -.61302    
   3  Normalizat    .97409        .40886E-01    .22295E-03   -.93904    
   4  Prefactor     .68977        .39887E-01    .25326E-03   -1.0393    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.16503e-09
Minuit parameter uncertainties:
  1  0.0146285
  2  30.5146
  3  0.0408869
  4  0.0398887
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/24569': 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) = 3424.66673536
delta logL = 1.38625182444e-08

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
703    Prefactor:  6.898e-01  3.989e-02  0.000e+00  1.000e+01 ( 1.000e+00)
704        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
705        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
702   Normalization:  9.741e-01  4.089e-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/24569/cmap_HighResolution_428025601_428284801_4FGL_J1606.9+5919_daily_bin728.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.20e-03', job_status='DONE', photon_flux_upper_limit='9.52e-08', time_completed='2021-09-13 08:13:49.382277', job_id='24569', GAL2='0.69', fit_tolerance='1e-08', EG2='0.97', EG='0.97', time_epoch_completed='1631546029.38', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.69', dlogl='1.39e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.11' WHERE bin_id='728' AND source_name='4FGL J1606.9+5919' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 13 08:13:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0024>
Subject: Job 24569: <4FGL_J1606.9+5919_daily_bin728> in cluster <slac> Done

Job <4FGL_J1606.9+5919_daily_bin728> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Mon Sep 13 08:00:44 2021
Job was executed on host(s) <bullet0024>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 13 08:02:48 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:02:48 2021
Terminated at Mon Sep 13 08:13:51 2021
Results reported at Mon Sep 13 08:13:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1606.9+5919_daily_bin728 241.734 59.3201 428025601 428284801 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 :                                   642.05 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             312.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   662 sec.
    Turnaround time :                            787 sec.

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

