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


Performing analysis on: 4FGL_J1604.6+5714_daily_bin1060
RA = 241.158, Dec = 57.2381
tmin = 514080001, tmax = 514339201
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='11789', job_status='RUN', time_executed='2021-09-13 07:19:18.589782', time_epoch_executed='1631542758.59' WHERE source_name='4FGL J1604.6+5714' and cadence='daily' and bin_id='1060'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/11789

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/11789/ft1_4FGL_J1604.6+5714_daily_bin1060.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/11789/ft2_4FGL_J1604.6+5714_daily_bin1060.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/11789/ft1_4FGL_J1604.6+5714_daily_bin1060.fits outfile=/scratch/kocevski/11789/ft1_filteredMKT_4FGL_J1604.6+5714_daily_bin1060.fits ra=241.158 dec=57.2381 rad=12.0 tmin=514080001.0 tmax=514339201.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.09
user 2.81
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/11789/ft2_4FGL_J1604.6+5714_daily_bin1060.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/11789/ft2_4FGL_J1604.6+5714_daily_bin1060.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/11789/ft1_filteredMKT_4FGL_J1604.6+5714_daily_bin1060.fits evtable="EVENTS" outfile="/scratch/kocevski/11789/ft1_filtered_4FGL_J1604.6+5714_daily_bin1060.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.47
user 0.30
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/11789/ft1_filtered_4FGL_J1604.6+5714_daily_bin1060.fits" evtable="EVENTS" scfile=/scratch/kocevski/11789/ft2_4FGL_J1604.6+5714_daily_bin1060.fits sctable="SC_DATA" outfile=/scratch/kocevski/11789/ltcube_514080001_514339201_4FGL_J1604.6+5714_daily_bin1060.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/11789/ft2_4FGL_J1604.6+5714_daily_bin1060.fits
.....................!
real 12.04
user 11.57
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/11789/ft1_filtered_4FGL_J1604.6+5714_daily_bin1060.fits evtable="EVENTS" scfile=/scratch/kocevski/11789/ft2_4FGL_J1604.6+5714_daily_bin1060.fits sctable="SC_DATA" expcube=/scratch/kocevski/11789/ltcube_514080001_514339201_4FGL_J1604.6+5714_daily_bin1060.fits outfile=/scratch/kocevski/11789/expmap_514080001_514339201_4FGL_J1604.6+5714_daily_bin1060.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/11789/ltcube_514080001_514339201_4FGL_J1604.6+5714_daily_bin1060.fits
.....................!
real 158.89
user 152.40
sys 4.29

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 J1604.6+5714 @ 241.158 57.2381

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/11789/ft1_filtered_4FGL_J1604.6+5714_daily_bin1060.fits scfile=/scratch/kocevski/11789/ft2_4FGL_J1604.6+5714_daily_bin1060.fits outfile=/scratch/kocevski/11789/cmap_514080001_514339201_4FGL_J1604.6+5714_daily_bin1060.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.158 yref=57.2381 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.49
user 0.32
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/11789/ft1_filtered_4FGL_J1604.6+5714_daily_bin1060.fits scfile=/scratch/kocevski/11789/ft2_4FGL_J1604.6+5714_daily_bin1060.fits outfile=/scratch/kocevski/11789/cmap_HighResolution_514080001_514339201_4FGL_J1604.6+5714_daily_bin1060.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.158 yref=57.2381 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.50
user 0.35
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/11789/ft1_filtered_4FGL_J1604.6+5714_daily_bin1060.fits evtable="EVENTS" scfile=/scratch/kocevski/11789/ft2_4FGL_J1604.6+5714_daily_bin1060.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/11789/Model_4FGL_J1604.6+5714_daily_bin1060.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/11789/ft1_filtered_4FGL_J1604.6+5714_daily_bin1060.fits.....................!
real 51.64
user 50.08
sys 1.06

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/11789/ft1_filtered_4FGL_J1604.6+5714_daily_bin1060.fits', '/scratch/kocevski/11789/ft2_4FGL_J1604.6+5714_daily_bin1060.fits', expMap='/scratch/kocevski/11789/expmap_514080001_514339201_4FGL_J1604.6+5714_daily_bin1060.fits', expCube='/scratch/kocevski/11789/ltcube_514080001_514339201_4FGL_J1604.6+5714_daily_bin1060.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/11789/Model_4FGL_J1604.6+5714_daily_bin1060.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1604.6+5714'

4FGL J1604.6+5714
   Spectrum: LogParabola
320         norm:  8.996e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
321        alpha:  2.348e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
322         beta:  7.626e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
323           Eb:  5.868e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/11789/ft1_filtered_4FGL_J1604.6+5714_daily_bin1060.fits
Spacecraft file(s): /scratch/kocevski/11789/ft2_4FGL_J1604.6+5714_daily_bin1060.fits
Exposure map: /scratch/kocevski/11789/expmap_514080001_514339201_4FGL_J1604.6+5714_daily_bin1060.fits
Exposure cube: /scratch/kocevski/11789/ltcube_514080001_514339201_4FGL_J1604.6+5714_daily_bin1060.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/11789/Model_4FGL_J1604.6+5714_daily_bin1060.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) = 7790.1254923

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .33293       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    40.584       1.0000         .10000E-03   10000.    
     8 'norm      '    8.3386       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10379E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    13.830       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.0792       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.8992       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .57412E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.1508       1.0000         .10000E-03   10000.    
    17 'norm      '    9.8568       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .71115E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .92593       1.0000         .10000E-03   10000.    
    22 'Prefactor '    8.9013       1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.2548       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    1.4343       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .98970       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.1232       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7070E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7789.974     FROM MIGRAD    STATUS=CONVERGED    734 CALLS     3184 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.161       -.18128E-06** at limit **
   2  Prefactor     .10000E-03    6.4122       -.49510E-06** at limit **
   3  norm          .33268        1.2628       -.87908E-07   -.42397E-04
   4  Prefactor     .10000E-03    5.3827       -.19573E-06** at limit **
   5  Prefactor     .10000E-03    7.3802        .26177E-06** at limit **
   6  Prefactor     .10000E-03    5.2317        .16730E-06** at limit **
   7  Prefactor     40.581        23.171       -.28242E-07    .15978E-04
   8  norm          8.3384        2.9961       -.15921E-06    .64777E-03
   9  Prefactor     .10000E-03    75.578       -.11687E-04** at limit **
  10  Prefactor     .10000E-03    5.1681        .21376E-06** at limit **
  11  norm          13.830        7.2159        .81725E-07   -.25059E-04
  12  Prefactor     3.0799        29.084       -.30496E-06    .14288E-04
  13  Prefactor     .10000E-03    36.313        .20129E-05** at limit **
  14  Prefactor     3.9055        4.7458        .33874E-05    .18370E-03
  15  Prefactor     .10000E-03    109.03       -.27437E-04** at limit **
  16  Prefactor     4.1509        4.8592        .20325E-06   -.14640E-05
  17  norm          9.8575        16.675       -.11539E-07    .14238E-04
  18  Prefactor     .10000E-03    3.4948       -.29625E-06** at limit **
  19  Prefactor     .10000E-03    2.9221       -.48272E-07** at limit **
  20  norm          .10000E-03    3.2092       -.31725E-07** at limit **
  21  Prefactor     .92894        3.0041        .99274E-07   -.82187E-04
  22  Prefactor     8.8972        11.258        .73233E-07    .69967E-04
  23  Prefactor     4.2574        17.526       -.71219E-06    .66814E-04
  24  Prefactor     .10000E-03    3.2672       -.12810E-06** at limit **
  25  Prefactor     .10000E-03    4.6535       -.25965E-06** at limit **
  26  Prefactor     1.4352        3.0058        .16343E-05   -.15283E-03
  27  Prefactor     .10000E-03    37.721       -.12531E-05** at limit **
  28  Normalizat    .99006        .15970        .94455E-06    .35998E-03
  29  Prefactor     1.1230        .16184       -.42447E-07    .34247E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.332685
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 40.5812
  norm       = 8.33843
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 13.8302
  Prefactor  = 3.07989
  Prefactor  = 0.0001
  Prefactor  = 3.90548
  Prefactor  = 0.000100004
  Prefactor  = 4.15095
  norm       = 9.85753
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  norm       = 0.0001
  Prefactor  = 0.928935
  Prefactor  = 8.89725
  Prefactor  = 4.2574
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.43518
  Prefactor  = 0.0001
  Normalizat = 0.990059
  Prefactor  = 1.12302
 **********
 **   18 **HESSE 
 **********

 FCN=   7789.974     FROM HESSE     STATUS=OK           551 CALLS     3735 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.162        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6.4313        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .33268        1.2537        .18732E-03   -1.5593    
   4  Prefactor     .10000E-03    5.4506        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.6211        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.2488        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     40.581        23.168        .62922E-04   -1.4433    
   8  norm          8.3384        2.9957        .88499E-04   -1.5130    
   9  Prefactor     .10000E-03    75.580        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.2150        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          13.830        7.1920        .10771E-03   -1.4964    
  12  Prefactor     3.0799        29.032        .23114E-03   -1.5357    
  13  Prefactor     .10000E-03    36.343        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.9055        4.7560        .20433E-03   -1.5313    
  15  Prefactor     .10000E-03    115.60        .68019E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.1509        4.8453        .19784E-03   -1.5300    
  17  norm          9.8575        16.653        .12763E-03   -1.5080    
  18  Prefactor     .10000E-03    3.6128        .32173E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    11.504        .28301E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    3.2251        .15438E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .92894        2.9819        .25514E-03   -1.5515    
  22  Prefactor     8.8972        11.170        .13434E-03   -1.5111    
  23  Prefactor     4.2574        17.321        .19534E-03   -1.5295    
  24  Prefactor     .10000E-03    3.2887        .15578E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    4.7480        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     1.4352        7.2163        .18026E-02   -1.5468    
  27  Prefactor     .10000E-03    37.770        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .99006        .18924        .24782E-03   -.93364    
  29  Prefactor     1.1230        .19520        .24133E-03   -.88734    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.3783e-10
Minuit parameter uncertainties:
  1  3.80115e-06
  2  3.60717e-06
  3  1.25384
  4  7.14783e-06
  5  2.76542e-05
  6  4.21117e-07
  7  23.1734
  8  2.99572
  9  0.000323866
  10  1.51768e-05
  11  7.19244
  12  18.9236
  13  4.96024e-05
  14  4.75646
  15  0.00143942
  16  4.84573
  17  16.6607
  18  4.1129e-07
  19  0.000352557
  20  1.24877e-06
  21  2.98241
  22  11.1731
  23  17.1831
  24  8.44057e-07
  25  1.76414e-06
  26  6.43737
  27  3.12503e-05
  28  0.189364
  29  0.195322
Done.

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

Extracting fit parameters...

4FGL J1604.6+5714
   Spectrum: LogParabola
320         norm:  1.383e+01  7.192e+00  1.000e-04  1.000e+04 ( 1.000e-12)
321        alpha:  2.348e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
322         beta:  7.626e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
323           Eb:  5.868e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
704    Prefactor:  1.123e+00  1.953e-01  0.000e+00  1.000e+01 ( 1.000e+00)
705        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
706        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
703   Normalization:  9.901e-01  1.894e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.63
Ra Dec: 241.158 57.238
Photon Index (Fixed Index): 2.35 +/- 0.00
Photon Flux (Fixed Index): 5.81e-08 +/- 3.02e-08
Energy Flux (Fixed Index): 1.90e-05 +/- 9.90e-06

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) = 7789.90282471
delta logL = 0.0715975106204

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7789.89940246
delta logL = 0.075019767738

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    14.646       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1706       1.0000          .0000       5.0000    
     3 'Normalizat'    .99944       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1163       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7070E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7789.899     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      265 TOTAL
                     EDM=   .76E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          14.637        202.57        .26164E-02    .49608E-04
   2  alpha         2.1700        3.1826        .34640        .10159E-04
   3  Normalizat    .99982        .15151        .46160E-01    .13779E-04
   4  Prefactor     1.1160        .15650        .54721E-01    .83486E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 14.6371
  alpha      = 2.17003
  Normalizat = 0.999817
  Prefactor  = 1.11604
 **********
 **   18 **HESSE 
 **********

 FCN=   7789.899     FROM HESSE     STATUS=OK            33 CALLS      298 TOTAL
                     EDM=   .12E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          14.637        7.7668        .10466E-03   -1.4943    
   2  alpha         2.1700        .45142        .13412E-01   -.13238    
   3  Normalizat    .99982        .18820        .24676E-03   -.93037    
   4  Prefactor     1.1160        .19285        .24195E-03   -.88955    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.17375e-13
Minuit parameter uncertainties:
  1  7.76728
  2  0.45395
  3  0.188327
  4  0.192969
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/11789': 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) = 7789.89939876
delta logL = 0.075023458362

Extracting fit parameters...

4FGL J1604.6+5714
   Spectrum: LogParabola
320         norm:  1.464e+01  7.767e+00  1.000e-04  1.000e+04 ( 1.000e-12)
321        alpha:  2.170e+00  4.540e-01  0.000e+00  5.000e+00 ( 1.000e+00)
322         beta:  7.626e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
323           Eb:  5.868e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
704    Prefactor:  1.116e+00  1.930e-01  0.000e+00  1.000e+01 ( 1.000e+00)
705        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
706        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
703   Normalization:  9.998e-01  1.883e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.76
Ra Dec: 241.158 57.238
Photon Index (Free Index): 2.17 +/- 0.45
Photon Flux (Free Index): 5.19e-08 +/- 3.19e-08
Energy Flux (Free Index): 2.11e-05 +/- 1.27e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/11789/cmap_HighResolution_514080001_514339201_4FGL_J1604.6+5714_daily_bin1060.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.81e-08', energy_flux2='2.11e-05', photon_flux_error='3.02e-08', dlogl='7.50e-02', energy_flux='1.90e-05', photon_flux2='5.19e-08', job_status='DONE', time_completed='2021-09-13 07:31:51.532445', photon_index_error2='0.45', photon_index2='2.17', ts='6.63', fit_tolerance='1e-08', GAL='1.12', photon_index_error='0.00', energy_flux_error2='1.27e-05', EG='0.99', time_epoch_completed='1631543511.53', return_code='0', job_id='11789', GAL2='1.12', EG2='1.00', return_code2='0', energy_flux_error='9.90e-06', photon_flux_error2='3.19e-08', ts2='6.76', photon_index='2.35' WHERE bin_id='1060' AND source_name='4FGL J1604.6+5714' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 13 07:31:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0086>
Subject: Job 11789: <4FGL_J1604.6+5714_daily_bin1060> in cluster <slac> Done

Job <4FGL_J1604.6+5714_daily_bin1060> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep 13 07:15:31 2021
Job was executed on host(s) <bullet0086>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 13 07:19:08 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:19:08 2021
Terminated at Mon Sep 13 07:31:52 2021
Results reported at Mon Sep 13 07:31:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1604.6+5714_daily_bin1060 241.158 57.2381 514080001 514339201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1604.6+5714 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   742.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             346.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   763 sec.
    Turnaround time :                            981 sec.

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

