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


Performing analysis on: 4FGL_J1606.9+5919_daily_bin1559
RA = 241.734, Dec = 59.3201
tmin = 643420801, tmax = 643680001
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='33093', job_status='RUN', time_executed='2021-09-13 08:30:54.965724', time_epoch_executed='1631547054.97' WHERE source_name='4FGL J1606.9+5919' and cadence='daily' and bin_id='1559'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/33093

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/33093/ft1_4FGL_J1606.9+5919_daily_bin1559.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/33093/ft2_4FGL_J1606.9+5919_daily_bin1559.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/33093/ft1_4FGL_J1606.9+5919_daily_bin1559.fits outfile=/scratch/kocevski/33093/ft1_filteredMKT_4FGL_J1606.9+5919_daily_bin1559.fits ra=241.734 dec=59.3201 rad=12.0 tmin=643420801.0 tmax=643680001.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 3.52
user 3.26
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/33093/ft1_filtered_4FGL_J1606.9+5919_daily_bin1559.fits evtable="EVENTS" scfile=/scratch/kocevski/33093/ft2_4FGL_J1606.9+5919_daily_bin1559.fits sctable="SC_DATA" expcube=/scratch/kocevski/33093/ltcube_643420801_643680001_4FGL_J1606.9+5919_daily_bin1559.fits outfile=/scratch/kocevski/33093/expmap_643420801_643680001_4FGL_J1606.9+5919_daily_bin1559.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/33093/ltcube_643420801_643680001_4FGL_J1606.9+5919_daily_bin1559.fits
.....................!
real 191.99
user 186.79
sys 4.77

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/33093/ft1_filtered_4FGL_J1606.9+5919_daily_bin1559.fits scfile=/scratch/kocevski/33093/ft2_4FGL_J1606.9+5919_daily_bin1559.fits outfile=/scratch/kocevski/33093/cmap_643420801_643680001_4FGL_J1606.9+5919_daily_bin1559.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.56
user 0.40
sys 0.14

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

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

This is gtbin version HEAD
real 0.56
user 0.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10116E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.2704       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.1848       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10663E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.1234       1.0000         .10000E-03   10000.    
     6 'norm      '    4.0198       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.7288       1.0000         .10000E-03   10000.    
     9 'norm      '    6.1205       1.0000         .10000E-03   10000.    
    10 'Prefactor '    18.819       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.6318       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10139E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.0019       1.0000         .10000E-03   10000.    
    15 'Prefactor '    29.535       1.0000         .10000E-03   10000.    
    16 'norm      '    .10064E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.7716       1.0000         .10000E-03   10000.    
    18 'Prefactor '    11.852       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    8.6029       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.6647       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .19823E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    5.0507       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .67937       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0682       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=   6307.882     FROM MIGRAD    STATUS=CONVERGED    669 CALLS     3288 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.3715       -.89441E-07** at limit **
   2  Prefactor     3.2711        8.8974        .23213E-05   -.23700E-03
   3  Prefactor     3.1787        8.9446        .13445E-05   -.30956E-03
   4  Prefactor     .10000E-03    10.850       -.31373E-06** at limit **
   5  Prefactor     9.1277        18.504       -.18683E-06   -.79571E-05
   6  norm          4.0195        2.4004        .33055E-06    .22548E-03
   7  Prefactor     .10000E-03    34.315       -.51677E-05** at limit **
   8  Prefactor     4.7268        7.2255        .61851E-05   -.18395E-04
   9  norm          6.1191        6.3402        .22274E-05    .12017E-03
  10  Prefactor     18.837        37.484       -.77837E-04   -.29424E-05
  11  Prefactor     1.1308        952.07       -.25105E-03    .14742E-04
  12  Prefactor     .10000E-03    4.0130        .90916E-06** at limit **
  13  norm          .10000E-03    7.6928        .21847E-07** at limit **
  14  Prefactor     8.9996        5.7883        .93903E-06    .49548E-04
  15  Prefactor     29.505        32.668        .47401E-04   -.33350E-04
  16  norm          .10000E-03    2.8196       -.31541E-07** at limit **
  17  Prefactor     2.7703        3.4135       -.40174E-06   -.37329E-03
  18  Prefactor     11.853        11.900        .33803E-06    .17374E-04
  19  Prefactor     .10000E-03    4.5228       -.57404E-07** at limit **
  20  norm          8.6003        1.4521       -.86840E-06    .14559E-02
  21  Prefactor     1.6632        8.1309        .16726E-05   -.67452E-03
  22  Prefactor     .10000E-03    71.177       -.81105E-05** at limit **
  23  Prefactor     5.0490        5.4615       -.15555E-05   -.40129E-03
  24  Prefactor     .10000E-03    2.2170        .17526E-07** at limit **
  25  Prefactor     .10000E-03    37.541        .75987E-05** at limit **
  26  Normalizat    .67964        .16962        .82208E-05    .20514E-03
  27  Prefactor     1.0680        .16036       -.15011E-05    .68932E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 3.27111
  Prefactor  = 3.1787
  Prefactor  = 0.0001
  Prefactor  = 9.12767
  norm       = 4.0195
  Prefactor  = 0.0001
  Prefactor  = 4.72676
  norm       = 6.11914
  Prefactor  = 18.8367
  Prefactor  = 1.13077
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 8.99963
  Prefactor  = 29.5047
  norm       = 0.0001
  Prefactor  = 2.77034
  Prefactor  = 11.8532
  Prefactor  = 0.0001
  norm       = 8.60032
  Prefactor  = 1.66318
  Prefactor  = 0.0001
  Prefactor  = 5.04896
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.679638
  Prefactor  = 1.06802
 **********
 **   18 **HESSE 
 **********

 FCN=   6307.882     FROM HESSE     STATUS=OK           492 CALLS     3780 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.3778        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.2711        8.7532        .22392E-03   -1.5346    
   3  Prefactor     3.1787        8.8586        .22707E-03   -1.5351    
   4  Prefactor     .10000E-03    10.925        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     9.1277        18.494        .13269E-03   -1.5104    
   6  norm          4.0195        2.4004        .92241E-04   -1.5307    
   7  Prefactor     .10000E-03    34.336        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.7268        7.1942        .18504E-03   -1.5273    
   9  norm          6.1191        6.3148        .16228E-03   -1.5213    
  10  Prefactor     18.837        37.574        .92327E-04   -1.4840    
  11  Prefactor     1.1308        1003.3        .33100E-02   -1.5495    
  12  Prefactor     .10000E-03    4.0742        .15503E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    7.7031        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     8.9996        5.7933        .13359E-03   -1.5108    
  15  Prefactor     29.505        32.625        .36861E-03   -1.4621    
  16  norm          .10000E-03    2.8272        .13022E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.7703        3.3938        .15292E-03   -1.5375    
  18  Prefactor     11.853        11.868        .11636E-03   -1.5019    
  19  Prefactor     .10000E-03    4.5267        .16495E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          8.6003        1.4395        .35789E-04   -1.5121    
  21  Prefactor     1.6632        7.9726        .32687E-03   -1.5450    
  22  Prefactor     .10000E-03    72.195        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     5.0490        5.4549        .17892E-03   -1.5259    
  24  Prefactor     .10000E-03    2.2201        .11547E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    37.585        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .67964        .19629        .27333E-03   -1.0470    
  27  Prefactor     1.0680        .18648        .22308E-03   -.90495    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.82711e-09
Minuit parameter uncertainties:
  1  2.23544e-05
  2  8.75658
  3  8.86223
  4  8.58509e-05
  5  18.5055
  6  2.40049
  7  3.73714e-05
  8  7.19549
  9  6.31548
  10  37.621
  11  68.5448
  12  0.000180729
  13  5.627e-06
  14  5.7937
  15  32.6447
  16  7.91492e-06
  17  3.39404
  18  11.8704
  19  9.15575e-07
  20  1.43954
  21  7.28418
  22  0.000291225
  23  5.45547
  24  2.54866e-06
  25  2.27829e-05
  26  0.196494
  27  0.186593
Done.

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

Extracting fit parameters...

4FGL J1606.9+5919
   Spectrum: PowerLaw
329    Prefactor:  1.884e+01  3.762e+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.068e+00  1.866e-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:  6.796e-01  1.965e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/33093/likelihoodResults_643420801_643680001_4FGL_J1606.9+5919_daily_bin1559.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) = 6307.67976761
delta logL = 0.202480081283

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6307.6629912
delta logL = 0.219256485208

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.6314       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8134       1.0000          .0000       10.000    
     3 'Normalizat'    .65942       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0789       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6307.663     FROM MIGRAD    STATUS=CONVERGED    108 CALLS      316 TOTAL
                     EDM=   .80E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.5747        570.18        .72583E-03   -.14910E-03
   2  Index         2.8162        6.1449        .61988E-02   -.27281E-04
   3  Normalizat    .65951        .19665        .27705E-03   -.20189E-04
   4  Prefactor     1.0788        .19189        .22203E-03   -.57554E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.57467
  Index      = 2.81619
  Normalizat = 0.65951
  Prefactor  = 1.07878
 **********
 **   18 **HESSE 
 **********

 FCN=   6307.663     FROM HESSE     STATUS=OK            25 CALLS      341 TOTAL
                     EDM=   .41E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.5747        22.429        .29033E-04   -1.5157    
   2  Index         2.8162        1.1888        .24795E-03   -.45200    
   3  Normalizat    .65951        .18510        .11082E-04   -1.0551    
   4  Prefactor     1.0788        .18382        .88810E-05   -.90148    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.0824e-11
Minuit parameter uncertainties:
  1  22.4542
  2  1.20313
  3  0.18527
  4  0.183932
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/33093': 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) = 6307.66298762
delta logL = 0.219260067911

Extracting fit parameters...

4FGL J1606.9+5919
   Spectrum: PowerLaw
329    Prefactor:  7.575e+00  2.245e+01  1.000e-04  1.000e+04 ( 1.000e-14)
330        Index:  2.816e+00  1.203e+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.079e+00  1.839e-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:  6.595e-01  1.853e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.31
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/33093/cmap_HighResolution_643420801_643680001_4FGL_J1606.9+5919_daily_bin1559.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.65e-03', job_status='DONE', photon_flux_upper_limit='7.47e-08', time_completed='2021-09-13 08:46:01.679070', job_id='33093', GAL2='1.08', fit_tolerance='1e-08', EG2='0.66', EG='0.68', time_epoch_completed='1631547961.68', return_code2='0', ts='0.31', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='2.19e-01', ts2='0.76', photon_index_error='0.00', photon_index='2.11' WHERE bin_id='1559' AND source_name='4FGL J1606.9+5919' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 13 08:46:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0119>
Subject: Job 33093: <4FGL_J1606.9+5919_daily_bin1559> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1606.9+5919_daily_bin1559 241.734 59.3201 643420801 643680001 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 :                                   903.09 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             353.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   920 sec.
    Turnaround time :                            939 sec.

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

