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


Performing analysis on: 4FGL_J1604.6+5714_daily_bin1328
RA = 241.158, Dec = 57.2381
tmin = 583545601, tmax = 583804801
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='15792', job_status='RUN', time_executed='2021-09-13 07:31:44.440721', time_epoch_executed='1631543504.44' WHERE source_name='4FGL J1604.6+5714' and cadence='daily' and bin_id='1328'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/15792

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/15792/ft1_4FGL_J1604.6+5714_daily_bin1328.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/15792/ft2_4FGL_J1604.6+5714_daily_bin1328.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/15792/ft1_4FGL_J1604.6+5714_daily_bin1328.fits outfile=/scratch/kocevski/15792/ft1_filteredMKT_4FGL_J1604.6+5714_daily_bin1328.fits ra=241.158 dec=57.2381 rad=12.0 tmin=583545601.0 tmax=583804801.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.51
user 3.29
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/15792/ft1_filtered_4FGL_J1604.6+5714_daily_bin1328.fits" evtable="EVENTS" scfile=/scratch/kocevski/15792/ft2_4FGL_J1604.6+5714_daily_bin1328.fits sctable="SC_DATA" outfile=/scratch/kocevski/15792/ltcube_583545601_583804801_4FGL_J1604.6+5714_daily_bin1328.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/15792/ft2_4FGL_J1604.6+5714_daily_bin1328.fits
.....................!
real 14.18
user 13.75
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/15792/ft1_filtered_4FGL_J1604.6+5714_daily_bin1328.fits evtable="EVENTS" scfile=/scratch/kocevski/15792/ft2_4FGL_J1604.6+5714_daily_bin1328.fits sctable="SC_DATA" expcube=/scratch/kocevski/15792/ltcube_583545601_583804801_4FGL_J1604.6+5714_daily_bin1328.fits outfile=/scratch/kocevski/15792/expmap_583545601_583804801_4FGL_J1604.6+5714_daily_bin1328.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/15792/ltcube_583545601_583804801_4FGL_J1604.6+5714_daily_bin1328.fits
.....................!
real 192.03
user 186.06
sys 5.38

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/15792/ft1_filtered_4FGL_J1604.6+5714_daily_bin1328.fits scfile=/scratch/kocevski/15792/ft2_4FGL_J1604.6+5714_daily_bin1328.fits outfile=/scratch/kocevski/15792/cmap_583545601_583804801_4FGL_J1604.6+5714_daily_bin1328.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.54
user 0.37
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.0825       1.0000         .10000E-03   10000.    
     3 'norm      '    2.5659       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .69272       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10306E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    21.712       1.0000         .10000E-03   10000.    
     8 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    95.236       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    17.204       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    65.435       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .13647E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    11.906       1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.9762       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.0261       1.0000         .10000E-03   10000.    
    20 'norm      '    13.139       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    15.669       1.0000         .10000E-03   10000.    
    23 'Prefactor '    14.743       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    5.8523       1.0000         .10000E-03   10000.    
    26 'Prefactor '    12.406       1.0000         .10000E-03   10000.    
    27 'Prefactor '    3.2145       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.2176       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .84476       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=   6313.488     FROM MIGRAD    STATUS=CONVERGED    721 CALLS     3689 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    22.482        .70989E-06** at limit **
   2  Prefactor     6.0824        8.6002        .13058E-06   -.47433E-05
   3  norm          2.5660        1.9084        .10791E-06   -.10276E-03
   4  Prefactor     .70059        7.2843        .98539E-06   -.13304E-04
   5  Prefactor     .10000E-03    3.3739        .46474E-07** at limit **
   6  Prefactor     .10000E-03    6.8698        .83369E-07** at limit **
   7  Prefactor     21.708        23.458        .19696E-06   -.22608E-04
   8  norm          .10000E-03    .75806        .40747E-07** at limit **
   9  Prefactor     95.231        80.843        .23269E-06   -.35824E-04
  10  Prefactor     .10000E-03    3.8699        .89390E-07** at limit **
  11  norm          17.200        8.1565       -.91400E-07   -.15894E-03
  12  Prefactor     .10000E-03    66.067        .31949E-05** at limit **
  13  Prefactor     65.434        59.470        .46287E-06   -.36483E-04
  14  Prefactor     .10000E-03    8.5726        .10393E-05** at limit **
  15  Prefactor     .10000E-03    29.994       -.16182E-05** at limit **
  16  Prefactor     .10000E-03    4.0302        .37774E-06** at limit **
  17  norm          11.906        13.961       -.13349E-06   -.52458E-04
  18  Prefactor     5.9765        4.6020        .17608E-06   -.11539E-03
  19  Prefactor     3.0268        5.7532        .12903E-04   -.24741E-03
  20  norm          13.139        12.693        .16759E-05   -.14355E-04
  21  Prefactor     .10000E-03    1.6771        .65176E-07** at limit **
  22  Prefactor     15.670        12.352       -.26718E-06   -.78631E-04
  23  Prefactor     14.744        22.962       -.14562E-05    .16781E-05
  24  Prefactor     .10000E-03    9.1104       -.42820E-06** at limit **
  25  Prefactor     5.8590        11.519       -.10038E-05    .71680E-03
  26  Prefactor     12.409        11.461        .87859E-06    .29641E-03
  27  Prefactor     2.9109        693.51       -.12061E-03   -.36042E-04
  28  Normalizat    1.2175        .18724       -.47035E-05    .39961E-04
  29  Prefactor     .84478        .18382        .22112E-05   -.26661E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 6.08238
  norm       = 2.56601
  Prefactor  = 0.700594
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.7079
  norm       = 0.0001
  Prefactor  = 95.2306
  Prefactor  = 0.0001
  norm       = 17.1998
  Prefactor  = 0.0001
  Prefactor  = 65.4338
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 11.906
  Prefactor  = 5.97645
  Prefactor  = 3.02678
  norm       = 13.1388
  Prefactor  = 0.0001
  Prefactor  = 15.6697
  Prefactor  = 14.7438
  Prefactor  = 0.0001
  Prefactor  = 5.85904
  Prefactor  = 12.4089
  Prefactor  = 2.91091
  Normalizat = 1.21746
  Prefactor  = 0.844777
 **********
 **   18 **HESSE 
 **********

 FCN=   6313.488     FROM HESSE     STATUS=OK           559 CALLS     4248 TOTAL
                     EDM=   .44E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    22.500        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.0824        8.5955        .16279E-03   -1.5215    
   3  norm          2.5660        1.9022        .91678E-04   -1.5388    
   4  Prefactor     .70059        21.849        .40395E-02   -1.5541    
   5  Prefactor     .10000E-03    3.3860        .14240E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.8898        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     21.708        23.454        .85961E-04   -1.4776    
   8  norm          .10000E-03    .76100        .67549E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     95.231        80.928        .41185E-04   -1.3753    
  10  Prefactor     .10000E-03    3.8821        .15253E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          17.200        8.1633        .96562E-04   -1.4878    
  12  Prefactor     .10000E-03    66.903        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     65.434        59.172        .49613E-04   -1.4088    
  14  Prefactor     .10000E-03    8.8805        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    30.283        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    10.362        .30388E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          11.906        13.883        .11610E-03   -1.5018    
  18  Prefactor     5.9765        4.6011        .14424E-03   -1.5219    
  19  Prefactor     3.0268        5.8934        .11664E-02   -1.5360    
  20  norm          13.139        12.684        .55252E-03   -1.4983    
  21  Prefactor     .10000E-03    1.6988        .10040E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     15.670        12.350        .10118E-03   -1.4916    
  23  Prefactor     14.744        22.905        .10431E-03   -1.4940    
  24  Prefactor     .10000E-03    9.3367        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     5.8590        11.663        .16601E-03   -1.5224    
  26  Prefactor     12.409        11.434        .11373E-03   -1.5003    
  27  Prefactor     2.9109        811.88        .22596E-02   -1.5367    
  28  Normalizat    1.2175        .22098        .23234E-03   -.86065    
  29  Prefactor     .84478        .21775        .27352E-03   -.98098    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.3626e-08
Minuit parameter uncertainties:
  1  5.94021e-05
  2  8.5972
  3  1.90227
  4  7.82746
  5  1.26705e-05
  6  1.5683e-05
  7  23.4642
  8  1.72294e-06
  9  81.0224
  10  3.10143e-06
  11  8.1638
  12  0.000305696
  13  59.2253
  14  7.01012e-05
  15  6.47944e-05
  16  7.20931e-05
  17  13.8868
  18  4.60142
  19  5.89449
  20  12.6862
  21  4.33665e-06
  22  12.3519
  23  22.9183
  24  1.11852e-05
  25  11.6677
  26  11.4364
  27  98.607
  28  0.221147
  29  0.217971
Done.

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

Extracting fit parameters...

4FGL J1604.6+5714
   Spectrum: LogParabola
320         norm:  1.720e+01  8.164e+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:  8.448e-01  2.180e-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.217e+00  2.211e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 12.58
Ra Dec: 241.158 57.238
Photon Index (Fixed Index): 2.35 +/- 0.00
Photon Flux (Fixed Index): 7.23e-08 +/- 3.43e-08
Energy Flux (Fixed Index): 2.37e-05 +/- 1.12e-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) = 6313.02330439
delta logL = 0.464422612021

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6313.00714167
delta logL = 0.48058533923

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    17.573       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9092       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2451       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82777       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=   6313.007     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      206 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          17.573        9.3483        .23886E-02   -.96539E-03
   2  alpha         1.9093        .40837        .30535       -.16242E-04
   3  Normalizat    1.2452        .18055        .52056E-01    .45839E-05
   4  Prefactor     .82777        .18038        .44078E-01    .18197E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 17.5726
  alpha      = 1.9093
  Normalizat = 1.24515
  Prefactor  = 0.82777
 **********
 **   18 **HESSE 
 **********

 FCN=   6313.007     FROM HESSE     STATUS=OK            31 CALLS      237 TOTAL
                     EDM=   .70E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          17.573        9.0949        .95544E-04   -1.4869    
   2  alpha         1.9093        .43747        .12220E-01   -.23854    
   3  Normalizat    1.2452        .21533        .23016E-03   -.85219    
   4  Prefactor     .82777        .21463        .27601E-03   -.98713    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.97964e-10
Minuit parameter uncertainties:
  1  9.09562
  2  0.439874
  3  0.215479
  4  0.214848
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/15792': 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) = 6313.00714165
delta logL = 0.48058535356

Extracting fit parameters...

4FGL J1604.6+5714
   Spectrum: LogParabola
320         norm:  1.757e+01  9.096e+00  1.000e-04  1.000e+04 ( 1.000e-12)
321        alpha:  1.909e+00  4.399e-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:  8.278e-01  2.148e-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.245e+00  2.155e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 13.52
Ra Dec: 241.158 57.238
Photon Index (Free Index): 1.91 +/- 0.44
Photon Flux (Free Index): 5.06e-08 +/- 3.35e-08
Energy Flux (Free Index): 3.13e-05 +/- 1.99e-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/15792/cmap_HighResolution_583545601_583804801_4FGL_J1604.6+5714_daily_bin1328.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.23e-08', energy_flux2='3.13e-05', photon_flux_error='3.43e-08', dlogl='4.81e-01', energy_flux='2.37e-05', photon_flux2='5.06e-08', job_status='DONE', time_completed='2021-09-13 07:46:35.084798', photon_index_error2='0.44', photon_index2='1.91', ts='12.58', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', energy_flux_error2='1.99e-05', EG='1.22', time_epoch_completed='1631544395.08', return_code='0', job_id='15792', GAL2='0.83', EG2='1.25', return_code2='0', energy_flux_error='1.12e-05', photon_flux_error2='3.35e-08', ts2='13.52', photon_index='2.35' WHERE bin_id='1328' AND source_name='4FGL J1604.6+5714' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 13 07:46:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0152>
Subject: Job 15792: <4FGL_J1604.6+5714_daily_bin1328> in cluster <slac> Done

Job <4FGL_J1604.6+5714_daily_bin1328> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Mon Sep 13 07:31:18 2021
Job was executed on host(s) <bullet0152>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 13 07:31:25 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:31:25 2021
Terminated at Mon Sep 13 07:46:35 2021
Results reported at Mon Sep 13 07:46:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1604.6+5714_daily_bin1328 241.158 57.2381 583545601 583804801 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 :                                   884.21 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             323.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   910 sec.
    Turnaround time :                            917 sec.

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

