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


Performing analysis on: 4FGL_J1604.6+5714_daily_bin1170
RA = 241.158, Dec = 57.2381
tmin = 542592001, tmax = 542851201
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='13131', job_status='RUN', time_executed='2021-09-13 07:24:55.185477', time_epoch_executed='1631543095.19' WHERE source_name='4FGL J1604.6+5714' and cadence='daily' and bin_id='1170'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/13131

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/13131/ft1_4FGL_J1604.6+5714_daily_bin1170.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/13131/ft2_4FGL_J1604.6+5714_daily_bin1170.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/13131/ft1_4FGL_J1604.6+5714_daily_bin1170.fits outfile=/scratch/kocevski/13131/ft1_filteredMKT_4FGL_J1604.6+5714_daily_bin1170.fits ra=241.158 dec=57.2381 rad=12.0 tmin=542592001.0 tmax=542851201.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 6.82
user 6.50
sys 0.27

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/13131/ft2_4FGL_J1604.6+5714_daily_bin1170.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/13131/ft1_filteredMKT_4FGL_J1604.6+5714_daily_bin1170.fits evtable="EVENTS" outfile="/scratch/kocevski/13131/ft1_filtered_4FGL_J1604.6+5714_daily_bin1170.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.51
user 0.32
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/13131/ft1_filtered_4FGL_J1604.6+5714_daily_bin1170.fits" evtable="EVENTS" scfile=/scratch/kocevski/13131/ft2_4FGL_J1604.6+5714_daily_bin1170.fits sctable="SC_DATA" outfile=/scratch/kocevski/13131/ltcube_542592001_542851201_4FGL_J1604.6+5714_daily_bin1170.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/13131/ft2_4FGL_J1604.6+5714_daily_bin1170.fits
.....................!
real 14.82
user 14.42
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/13131/ft1_filtered_4FGL_J1604.6+5714_daily_bin1170.fits evtable="EVENTS" scfile=/scratch/kocevski/13131/ft2_4FGL_J1604.6+5714_daily_bin1170.fits sctable="SC_DATA" expcube=/scratch/kocevski/13131/ltcube_542592001_542851201_4FGL_J1604.6+5714_daily_bin1170.fits outfile=/scratch/kocevski/13131/expmap_542592001_542851201_4FGL_J1604.6+5714_daily_bin1170.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/13131/ltcube_542592001_542851201_4FGL_J1604.6+5714_daily_bin1170.fits
.....................!
real 192.33
user 186.60
sys 5.16

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/13131/ft1_filtered_4FGL_J1604.6+5714_daily_bin1170.fits scfile=/scratch/kocevski/13131/ft2_4FGL_J1604.6+5714_daily_bin1170.fits outfile=/scratch/kocevski/13131/cmap_542592001_542851201_4FGL_J1604.6+5714_daily_bin1170.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.57
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/13131/ft1_filtered_4FGL_J1604.6+5714_daily_bin1170.fits scfile=/scratch/kocevski/13131/ft2_4FGL_J1604.6+5714_daily_bin1170.fits outfile=/scratch/kocevski/13131/cmap_HighResolution_542592001_542851201_4FGL_J1604.6+5714_daily_bin1170.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.58
user 0.38
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/13131/ft1_filtered_4FGL_J1604.6+5714_daily_bin1170.fits', '/scratch/kocevski/13131/ft2_4FGL_J1604.6+5714_daily_bin1170.fits', expMap='/scratch/kocevski/13131/expmap_542592001_542851201_4FGL_J1604.6+5714_daily_bin1170.fits', expCube='/scratch/kocevski/13131/ltcube_542592001_542851201_4FGL_J1604.6+5714_daily_bin1170.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/13131/Model_4FGL_J1604.6+5714_daily_bin1170.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/13131/ft1_filtered_4FGL_J1604.6+5714_daily_bin1170.fits
Spacecraft file(s): /scratch/kocevski/13131/ft2_4FGL_J1604.6+5714_daily_bin1170.fits
Exposure map: /scratch/kocevski/13131/expmap_542592001_542851201_4FGL_J1604.6+5714_daily_bin1170.fits
Exposure cube: /scratch/kocevski/13131/ltcube_542592001_542851201_4FGL_J1604.6+5714_daily_bin1170.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/13131/Model_4FGL_J1604.6+5714_daily_bin1170.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) = 3323.85405804

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .25613E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10098E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    146.94       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10255E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    5.0924       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10189E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.891       1.0000         .10000E-03   10000.    
    11 'norm      '    18.647       1.0000         .10000E-03   10000.    
    12 'Prefactor '    31.265       1.0000         .10000E-03   10000.    
    13 'Prefactor '    70.386       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.7707       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .20416E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    25.098       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .13784E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.3819       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.1523       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .28463E-02   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10318E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    5.8611       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .40238E-01   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    50.706       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.3282       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .59184       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=   3323.843     FROM MIGRAD    STATUS=CONVERGED    759 CALLS     3746 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    69.339        .22491E-05** at limit **
   2  Prefactor     .10000E-03    22.378        .27081E-06** at limit **
   3  norm          .10000E-03    1.2383        .40916E-06** at limit **
   4  Prefactor     .10000E-03    5.4021        .38782E-06** at limit **
   5  Prefactor     .10000E-03    12.214        .12240E-05** at limit **
   6  Prefactor     146.99        83.282       -.20517E-05   -.20907E-03
   7  Prefactor     .10001E-03    75.854       -.36636E-05** at limit **
   8  norm          5.0917        4.0012       -.28121E-07   -.10671E-03
   9  Prefactor     .10000E-03    26.500       -.46551E-06** at limit **
  10  Prefactor     10.886        9.6563       -.56519E-07   -.72669E-04
  11  norm          18.649        12.795       -.11878E-06   -.12368E-03
  12  Prefactor     31.273        60.016       -.27468E-06   -.11060E-04
  13  Prefactor     70.428        88.363       -.31254E-05   -.23271E-03
  14  Prefactor     .10000E-03    5.9956       -.15414E-06** at limit **
  15  Prefactor     3.7494        79.808       -.73390E-06   -.46185E-04
  16  Prefactor     .10002E-03    6.3122        .38378E-06** at limit **
  17  norm          25.090        23.767       -.13401E-05   -.37192E-03
  18  Prefactor     .10000E-03    7.9534        .17601E-05** at limit **
  19  Prefactor     7.3800        8.0143       -.41240E-06   -.17099E-03
  20  norm          .10000E-03    5.2221        .66974E-06** at limit **
  21  Prefactor     1.1537        3.3922       -.61028E-06   -.44191E-03
  22  Prefactor     .10001E-03    71.372       -.15243E-04** at limit **
  23  Prefactor     .10000E-03    8.5168        .26192E-06** at limit **
  24  Prefactor     5.8536        10.497        .57643E-06    .57927E-04
  25  Prefactor     .10408E-03    18.052        .52403E-05** at limit **
  26  Prefactor     .10000E-03    3.2101        .64203E-07** at limit **
  27  Prefactor     50.855        81.758        .22038E-05   -.24515E-04
  28  Normalizat    1.3283        .28226        .38737E-05   -.78567E-03
  29  Prefactor     .59208        .25212       -.76758E-05   -.36107E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 146.994
  Prefactor  = 0.000100005
  norm       = 5.09168
  Prefactor  = 0.0001
  Prefactor  = 10.8865
  norm       = 18.6488
  Prefactor  = 31.2725
  Prefactor  = 70.4281
  Prefactor  = 0.0001
  Prefactor  = 3.74942
  Prefactor  = 0.000100023
  norm       = 25.0902
  Prefactor  = 0.000100001
  Prefactor  = 7.38004
  norm       = 0.0001
  Prefactor  = 1.15374
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 5.85357
  Prefactor  = 0.000104083
  Prefactor  = 0.0001
  Prefactor  = 50.8552
  Normalizat = 1.32833
  Prefactor  = 0.592075
 **********
 **   18 **HESSE 
 **********

 FCN=   3323.843     FROM HESSE     STATUS=OK           555 CALLS     4301 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    69.552        .21455E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    22.384        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    1.2517        .62750E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.4088        .13091E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    12.366        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     146.99        83.311        .16622E-03   -1.3277    
   7  Prefactor     .10001E-03    76.061        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          5.0917        3.9978        .98470E-04   -1.5257    
   9  Prefactor     .10000E-03    26.512        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     10.886        9.6577        .12140E-03   -1.5048    
  11  norm          18.649        12.787        .92751E-04   -1.4844    
  12  Prefactor     31.273        60.039        .71659E-04   -1.4589    
  13  Prefactor     70.428        88.472        .47848E-04   -1.4028    
  14  Prefactor     .10000E-03    5.9957        .13736E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.7494        79.559        .20790E-03   -1.5321    
  16  Prefactor     .10002E-03    11.931        .24697E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          25.090        23.808        .79960E-04   -1.4706    
  18  Prefactor     .10000E-03    8.3639        .31840E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     7.3800        8.0121        .14762E-03   -1.5165    
  20  norm          .10000E-03    5.2516        .12885E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.1537        3.3358        .17115E-03   -1.5493    
  22  Prefactor     .10001E-03    76.724        .34731E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    8.5361        .16439E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     5.8536        10.496        .16588E-03   -1.5224    
  25  Prefactor     .10408E-03    14.446        .49151E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    3.2120        .10089E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     50.855        93.639        .28160E-03   -1.4280    
  28  Normalizat    1.3283        .30050        .21628E-03   -.82725    
  29  Prefactor     .59208        .26583        .29612E-03   -1.0792    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.45426e-09
Minuit parameter uncertainties:
  1  0.000884782
  2  8.98901e-05
  3  1.30435e-05
  4  2.41137e-05
  5  5.12301e-05
  6  83.3774
  7  0.00125974
  8  3.99802
  9  0.000141088
  10  9.65906
  11  12.7893
  12  60.1555
  13  88.6375
  14  2.55651e-06
  15  34.5947
  16  0.00105313
  17  23.8171
  18  0.000166007
  19  8.01322
  20  4.96883e-05
  21  3.33633
  22  0.00142807
  23  3.44426e-06
  24  10.4988
  25  0.0153635
  26  2.95347e-07
  27  93.9113
  28  0.300894
  29  0.266399
Done.

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

Extracting fit parameters...

4FGL J1604.6+5714
   Spectrum: LogParabola
320         norm:  1.865e+01  1.279e+01  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:  5.921e-01  2.664e-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:  1.328e+00  3.009e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.25
Ra Dec: 241.158 57.238
Photon Index (Fixed Index): 2.35 +/- 0.00
Photon Flux (Fixed Index): 7.84e-08 +/- 5.37e-08
Energy Flux (Fixed Index): 2.57e-05 +/- 1.76e-05

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) = 3323.66133757
delta logL = 0.181568567583

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3323.65214483
delta logL = 0.190761313778

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    15.762       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7601       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2870       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .61936       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3323.652     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      308 TOTAL
                     EDM=   .82E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          15.765        12.045        .10088E-03    .30990E-04
   2  alpha         2.7601        .70662        .10491E-01    .10351E-03
   3  Normalizat    1.2867        .28685        .21898E-03    .59304E-04
   4  Prefactor     .61966        .26652        .29001E-03   -.17483E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 15.765
  alpha      = 2.76008
  Normalizat = 1.28666
  Prefactor  = 0.619664
 **********
 **   18 **HESSE 
 **********

 FCN=   3323.652     FROM HESSE     STATUS=OK            25 CALLS      333 TOTAL
                     EDM=   .45E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          15.765        11.677        .40353E-05   -1.4914    
   2  alpha         2.7601        .68495        .20982E-02    .10422    
   3  Normalizat    1.2867        .28691        .43796E-04   -.83965    
   4  Prefactor     .61966        .26658        .11601E-04   -1.0676    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.47562e-11
Minuit parameter uncertainties:
  1  11.6782
  2  0.69392
  3  0.287268
  4  0.267123
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/13131': 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) = 3323.65214408
delta logL = 0.190762059179

Extracting fit parameters...

4FGL J1604.6+5714
   Spectrum: LogParabola
320         norm:  1.577e+01  1.168e+01  1.000e-04  1.000e+04 ( 1.000e-12)
321        alpha:  2.760e+00  6.939e-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:  6.197e-01  2.671e-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:  1.287e+00  2.873e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.74
Ra Dec: 241.158 57.238
Photon Index (Free Index): 2.76 +/- 0.69
Photon Flux (Free Index): 1.04e-07 +/- 6.89e-08
Energy Flux (Free Index): 2.42e-05 +/- 1.40e-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/13131/cmap_HighResolution_542592001_542851201_4FGL_J1604.6+5714_daily_bin1170.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.84e-08', energy_flux2='2.42e-05', photon_flux_error='5.37e-08', dlogl='1.91e-01', energy_flux='2.57e-05', photon_flux2='1.04e-07', job_status='DONE', time_completed='2021-09-13 07:35:33.543619', photon_index_error2='0.69', photon_index2='2.76', ts='5.25', fit_tolerance='1e-08', GAL='0.59', photon_index_error='0.00', energy_flux_error2='1.40e-05', EG='1.33', time_epoch_completed='1631543733.54', return_code='0', job_id='13131', GAL2='0.62', EG2='1.29', return_code2='0', energy_flux_error='1.76e-05', photon_flux_error2='6.89e-08', ts2='5.74', photon_index='2.35' WHERE bin_id='1170' AND source_name='4FGL J1604.6+5714' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 13 07:35:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0209>
Subject: Job 13131: <4FGL_J1604.6+5714_daily_bin1170> in cluster <slac> Done

Job <4FGL_J1604.6+5714_daily_bin1170> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Sep 13 07:20:33 2021
Job was executed on host(s) <bullet0209>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 13 07:22:32 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:22:32 2021
Terminated at Mon Sep 13 07:35:34 2021
Results reported at Mon Sep 13 07:35:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1604.6+5714_daily_bin1170 241.158 57.2381 542592001 542851201 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 :                                   631.27 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             282.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   781 sec.
    Turnaround time :                            901 sec.

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

