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


Performing analysis on: 4FGL_J1606.9+5919_daily_bin18
RA = 241.734, Dec = 59.3201
tmin = 243993601, tmax = 244252801
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='18528', job_status='RUN', time_executed='2021-09-13 07:42:28.871364', time_epoch_executed='1631544148.87' WHERE source_name='4FGL J1606.9+5919' and cadence='daily' and bin_id='18'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/18528

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/18528/ft1_4FGL_J1606.9+5919_daily_bin18.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/18528/ft2_4FGL_J1606.9+5919_daily_bin18.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/18528/ft1_4FGL_J1606.9+5919_daily_bin18.fits outfile=/scratch/kocevski/18528/ft1_filteredMKT_4FGL_J1606.9+5919_daily_bin18.fits ra=241.734 dec=59.3201 rad=12.0 tmin=243993601.0 tmax=244252801.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.43
user 1.23
sys 0.17

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/18528/ft1_filtered_4FGL_J1606.9+5919_daily_bin18.fits evtable="EVENTS" scfile=/scratch/kocevski/18528/ft2_4FGL_J1606.9+5919_daily_bin18.fits sctable="SC_DATA" expcube=/scratch/kocevski/18528/ltcube_243993601_244252801_4FGL_J1606.9+5919_daily_bin18.fits outfile=/scratch/kocevski/18528/expmap_243993601_244252801_4FGL_J1606.9+5919_daily_bin18.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/18528/ltcube_243993601_244252801_4FGL_J1606.9+5919_daily_bin18.fits
.....................!
real 190.19
user 185.28
sys 4.47

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/18528/ft1_filtered_4FGL_J1606.9+5919_daily_bin18.fits scfile=/scratch/kocevski/18528/ft2_4FGL_J1606.9+5919_daily_bin18.fits outfile=/scratch/kocevski/18528/cmap_243993601_244252801_4FGL_J1606.9+5919_daily_bin18.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.57
user 0.38
sys 0.14

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

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

This is gtbin version HEAD
real 0.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    19.072       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10174E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    14.571       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10265E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    116.58       1.0000         .10000E-03   10000.    
     8 'Prefactor '    35.305       1.0000         .10000E-03   10000.    
     9 'norm      '    .10102E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    30.723       1.0000         .10000E-03   10000.    
    11 'Prefactor '    104.20       1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.6149       1.0000         .10000E-03   10000.    
    13 'norm      '    17.222       1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.1044       1.0000         .10000E-03   10000.    
    15 'Prefactor '    19.594       1.0000         .10000E-03   10000.    
    16 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.6449       1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.954       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .18181       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10778E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    15.105       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .95025       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .97571       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=   4646.878     FROM MIGRAD    STATUS=CONVERGED    616 CALLS     3286 TOTAL
                     EDM=   .37E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.336       -.15806E-07** at limit **
   2  Prefactor     19.069        15.070       -.11810E-06    .75246E-05
   3  Prefactor     .10000E-03    11.685       -.41343E-07** at limit **
   4  Prefactor     14.573        18.489        .59703E-06    .25782E-04
   5  Prefactor     .10000E-03    16.472       -.18496E-06** at limit **
   6  norm          .10000E-03    5.7885       -.33606E-05** at limit **
   7  Prefactor     116.44        165.78        .84702E-06    .24334E-04
   8  Prefactor     35.308        15.871       -.74635E-07    .28834E-04
   9  norm          .10000E-03    8.7254        .12121E-07** at limit **
  10  Prefactor     30.720        40.578        .24419E-07    .96288E-05
  11  Prefactor     104.28        85.046       -.15469E-07    .41699E-04
  12  Prefactor     6.6127        9.1064        .26775E-06    .10149E-04
  13  norm          17.236        28.650       -.43781E-06    .11938E-04
  14  Prefactor     6.1037        6.9285        .29365E-07    .63157E-05
  15  Prefactor     19.583        41.010        .48181E-06   -.76314E-05
  16  norm          .10000E-03    8.6407       -.64908E-07** at limit **
  17  Prefactor     3.6448        3.2307        .51327E-06    .64786E-04
  18  Prefactor     10.953        11.560       -.75251E-07   -.54589E-05
  19  Prefactor     .10000E-03    10.927        .60714E-07** at limit **
  20  norm          .18152        .57357       -.45727E-07   -.17920E-03
  21  Prefactor     .10000E-03    7.2210        .21553E-06** at limit **
  22  Prefactor     .10000E-03    15.574       -.20089E-08** at limit **
  23  Prefactor     .10000E-03    3.2285        .41729E-07** at limit **
  24  Prefactor     15.105        10.770        .52091E-06    .17274E-04
  25  Prefactor     .10000E-03    21.534        .26514E-07** at limit **
  26  Normalizat    .95044        .22102        .14204E-05    .41144E-04
  27  Prefactor     .97550        .20309       -.13105E-05    .11233E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 19.0693
  Prefactor  = 0.0001
  Prefactor  = 14.5728
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 116.442
  Prefactor  = 35.3076
  norm       = 0.0001
  Prefactor  = 30.7201
  Prefactor  = 104.282
  Prefactor  = 6.61268
  norm       = 17.2357
  Prefactor  = 6.10367
  Prefactor  = 19.5828
  norm       = 0.0001
  Prefactor  = 3.6448
  Prefactor  = 10.9534
  Prefactor  = 0.0001
  norm       = 0.181516
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.1046
  Prefactor  = 0.0001
  Normalizat = 0.950436
  Prefactor  = 0.9755
 **********
 **   18 **HESSE 
 **********

 FCN=   4646.878     FROM HESSE     STATUS=OK           494 CALLS     3780 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.349        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     19.069        15.080        .91712E-04   -1.4834    
   3  Prefactor     .10000E-03    11.824        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     14.573        18.510        .52463E-03   -1.4944    
   5  Prefactor     .10000E-03    16.477        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    5.8845        .31569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     116.44        166.30        .18632E-03   -1.3546    
   8  Prefactor     35.308        15.860        .67445E-04   -1.4519    
   9  norm          .10000E-03    8.7589        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     30.720        40.567        .72286E-04   -1.4599    
  11  Prefactor     104.28        84.864        .19696E-03   -1.3662    
  12  Prefactor     6.6127        9.0835        .15603E-03   -1.5194    
  13  norm          17.236        28.576        .96512E-04   -1.4877    
  14  Prefactor     6.1037        6.9287        .16250E-03   -1.5214    
  15  Prefactor     19.583        40.106        .90483E-04   -1.4823    
  16  norm          .10000E-03    8.7040        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.6448        3.2283        .55680E-03   -1.5326    
  18  Prefactor     10.953        11.552        .12105E-03   -1.5046    
  19  Prefactor     .10000E-03    10.951        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .18152        .55310        .83997E-04   -1.5623    
  21  Prefactor     .10000E-03    21.593        .34448E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    15.640        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    3.2532        .11955E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     15.105        10.761        .51528E-03   -1.4930    
  25  Prefactor     .10000E-03    21.540        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .95044        .25320        .26154E-03   -.94710    
  27  Prefactor     .97550        .23308        .24542E-03   -.93551    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.16362e-10
Minuit parameter uncertainties:
  1  2.5263e-06
  2  15.0833
  3  7.91547e-06
  4  18.5175
  5  9.57221e-06
  6  4.56806e-06
  7  166.976
  8  15.862
  9  4.94861e-07
  10  40.6038
  11  84.9629
  12  9.08542
  13  28.5985
  14  6.92957
  15  40.161
  16  5.51152e-06
  17  3.22845
  18  11.5541
  19  3.35557e-07
  20  0.553117
  21  0.000298841
  22  4.60539e-06
  23  3.96578e-06
  24  10.7627
  25  1.26158e-06
  26  0.253521
  27  0.233317
Done.

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

Extracting fit parameters...

4FGL J1606.9+5919
   Spectrum: PowerLaw
329    Prefactor:  3.072e+01  4.060e+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:  9.755e-01  2.333e-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.504e-01  2.535e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.93
Ra Dec: 241.734 59.320
Photon Flux Upper Limit: 1.01e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.68e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/18528/likelihoodResults_243993601_244252801_4FGL_J1606.9+5919_daily_bin18.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): 0
logL (Free Index) = 4646.84472387
delta logL = 0.0333843477902

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4646.84213453
delta logL = 0.0359736864411

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4646.842     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      293 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     39.102        57.834        .64102E-04   -.87613E-04
   2  Index         1.9005        .79627        .76463E-02   -.76768E-04
   3  Normalizat    .95433        .23868        .26108E-03    .13673E-03
   4  Prefactor     .97345        .22748        .24564E-03    .16279E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 39.1018
  Index      = 1.90046
  Normalizat = 0.954326
  Prefactor  = 0.97345
 **********
 **   18 **HESSE 
 **********

 FCN=   4646.842     FROM HESSE     STATUS=OK            25 CALLS      318 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     39.102        56.502        .12820E-04   -1.4457    
   2  Index         1.9005        .77823        .30585E-03   -.66863    
   3  Normalizat    .95433        .23886        .10443E-04   -.94577    
   4  Prefactor     .97345        .22767        .49129E-04   -.93620    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.80551e-10
Minuit parameter uncertainties:
  1  56.5794
  2  0.783426
  3  0.239131
  4  0.227898
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/18528': 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): 0
logL (Free Index) = 4646.84213452
delta logL = 0.0359736898763

Extracting fit parameters...

4FGL J1606.9+5919
   Spectrum: PowerLaw
329    Prefactor:  3.910e+01  5.658e+01  1.000e-04  1.000e+04 ( 1.000e-14)
330        Index:  1.900e+00  7.834e-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:  9.734e-01  2.279e-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.543e-01  2.391e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.00
Ra Dec: 241.734 59.320
Photon Index (Free Index): 1.90 +/- 0.78
Photon Flux (Free Index): 1.75e-08 +/- 2.88e-08
Energy Flux (Free Index): 1.57e-05 +/- 2.74e-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/18528/cmap_HighResolution_243993601_244252801_4FGL_J1606.9+5919_daily_bin18.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.68e-03', comment='SUCCESS', energy_flux2='1.57e-05', dlogl='3.60e-02', photon_flux2='1.75e-08', job_status='DONE', time_completed='2021-09-13 07:54:30.620310', photon_index_error2='0.78', photon_index2='1.90', ts='0.93', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='1.01e-07', energy_flux_error2='2.74e-05', EG='0.95', time_epoch_completed='1631544870.62', return_code='0', job_id='18528', GAL2='0.97', EG2='0.95', return_code2='0', photon_flux_error2='2.88e-08', ts2='1.00', photon_index='2.11' WHERE bin_id='18' AND source_name='4FGL J1606.9+5919' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 13 07:54:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0278>
Subject: Job 18528: <4FGL_J1606.9+5919_daily_bin18> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1606.9+5919_daily_bin18 241.734 59.3201 243993601 244252801 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 :                                   721.35 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             299.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   843 sec.
    Turnaround time :                            846 sec.

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

