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


Performing analysis on: 4FGL_J1604.6+5714_daily_bin964
RA = 241.158, Dec = 57.2381
tmin = 489196801, tmax = 489456001
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='11648', job_status='RUN', time_executed='2021-09-13 07:15:57.720285', time_epoch_executed='1631542557.72' WHERE source_name='4FGL J1604.6+5714' and cadence='daily' and bin_id='964'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/11648

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/11648/ft1_4FGL_J1604.6+5714_daily_bin964.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/11648/ft2_4FGL_J1604.6+5714_daily_bin964.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/11648/ft1_4FGL_J1604.6+5714_daily_bin964.fits outfile=/scratch/kocevski/11648/ft1_filteredMKT_4FGL_J1604.6+5714_daily_bin964.fits ra=241.158 dec=57.2381 rad=12.0 tmin=489196801.0 tmax=489456001.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 5.10
user 4.77
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/11648/ft2_4FGL_J1604.6+5714_daily_bin964.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/11648/ft1_filteredMKT_4FGL_J1604.6+5714_daily_bin964.fits evtable="EVENTS" outfile="/scratch/kocevski/11648/ft1_filtered_4FGL_J1604.6+5714_daily_bin964.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.56
user 0.34
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/11648/ft1_filtered_4FGL_J1604.6+5714_daily_bin964.fits evtable="EVENTS" scfile=/scratch/kocevski/11648/ft2_4FGL_J1604.6+5714_daily_bin964.fits sctable="SC_DATA" expcube=/scratch/kocevski/11648/ltcube_489196801_489456001_4FGL_J1604.6+5714_daily_bin964.fits outfile=/scratch/kocevski/11648/expmap_489196801_489456001_4FGL_J1604.6+5714_daily_bin964.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/11648/ltcube_489196801_489456001_4FGL_J1604.6+5714_daily_bin964.fits
.....................!
real 190.98
user 186.03
sys 4.55

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/11648/ft1_filtered_4FGL_J1604.6+5714_daily_bin964.fits scfile=/scratch/kocevski/11648/ft2_4FGL_J1604.6+5714_daily_bin964.fits outfile=/scratch/kocevski/11648/cmap_489196801_489456001_4FGL_J1604.6+5714_daily_bin964.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.58
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/11648/ft1_filtered_4FGL_J1604.6+5714_daily_bin964.fits scfile=/scratch/kocevski/11648/ft2_4FGL_J1604.6+5714_daily_bin964.fits outfile=/scratch/kocevski/11648/cmap_HighResolution_489196801_489456001_4FGL_J1604.6+5714_daily_bin964.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.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    4.7423       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11223E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.041       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.8062       1.0000         .10000E-03   10000.    
     8 'norm      '    .93103       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10300E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    22.598       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    20.995       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .92827       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .19882E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    7.1103       1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.4489       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .28073E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    10.569       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .84157E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    10.603       1.0000         .10000E-03   10000.    
    25 'Prefactor '    6.7836       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    6.8790       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .96963       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .95901       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=   6901.120     FROM MIGRAD    STATUS=CONVERGED    745 CALLS     3714 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.305       -.77211E-06** at limit **
   2  Prefactor     .10000E-03    4.3327       -.71883E-08** at limit **
   3  norm          4.7424        1.9181       -.90593E-08    .28797E-04
   4  Prefactor     .10000E-03    5.4612       -.99377E-07** at limit **
   5  Prefactor     .10000E-03    5.1900        .24030E-05** at limit **
   6  Prefactor     10.045        11.927       -.74230E-08    .57787E-04
   7  Prefactor     3.8113        12.850       -.16445E-06    .30982E-04
   8  norm          .93461        2.7119       -.70605E-06    .36103E-03
   9  Prefactor     .10001E-03    154.26        .25624E-05** at limit **
  10  Prefactor     .10000E-03    6.1059        .30614E-08** at limit **
  11  norm          22.598        9.3924        .10582E-07    .13314E-03
  12  Prefactor     .10000E-03    30.293        .12286E-05** at limit **
  13  Prefactor     20.950        59.072        .64742E-05    .27488E-03
  14  Prefactor     .92512        3.5861       -.13547E-05   -.28432E-04
  15  Prefactor     .10000E-03    11.985        .18744E-05** at limit **
  16  Prefactor     .10000E-03    3.9353       -.50571E-06** at limit **
  17  norm          7.0968        13.721       -.84642E-06    .35272E-04
  18  Prefactor     6.4469        4.3384        .28877E-07    .34886E-03
  19  Prefactor     .10002E-03    3.9325        .22343E-05** at limit **
  20  norm          .10000E-03    2.0561        .64775E-07** at limit **
  21  Prefactor     .10000E-03    1.7264        .17774E-07** at limit **
  22  Prefactor     10.564        10.490       -.21481E-06    .28079E-04
  23  Prefactor     .10001E-03    55.209        .18142E-04** at limit **
  24  Prefactor     10.606        7.5644       -.63796E-06    .45687E-03
  25  Prefactor     6.7846        5.4044        .24128E-06    .10666E-03
  26  Prefactor     .10000E-03    3.8174       -.47379E-07** at limit **
  27  Prefactor     6.8932        53.254       -.20709E-05   -.43386E-04
  28  Normalizat    .96963        .16244        .10048E-05    .42493E-03
  29  Prefactor     .95903        .15851       -.99767E-07    .31088E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.74238
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 10.0446
  Prefactor  = 3.81125
  norm       = 0.934613
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  norm       = 22.5976
  Prefactor  = 0.000100001
  Prefactor  = 20.9505
  Prefactor  = 0.925122
  Prefactor  = 0.000100002
  Prefactor  = 0.000100001
  norm       = 7.09682
  Prefactor  = 6.44686
  Prefactor  = 0.000100022
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.5641
  Prefactor  = 0.000100009
  Prefactor  = 10.6056
  Prefactor  = 6.78459
  Prefactor  = 0.0001
  Prefactor  = 6.89316
  Normalizat = 0.96963
  Prefactor  = 0.959035
 **********
 **   18 **HESSE 
 **********

 FCN=   6901.120     FROM HESSE     STATUS=OK           557 CALLS     4271 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.330        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.3358        .16888E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          4.7424        1.9182        .71180E-04   -1.5272    
   4  Prefactor     .10000E-03    5.5382        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    26.295        .32850E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     10.045        11.911        .12645E-03   -1.5074    
   7  Prefactor     3.8113        12.822        .20690E-03   -1.5317    
   8  norm          .93461        2.7186        .21977E-03   -1.5515    
   9  Prefactor     .10001E-03    155.22        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.1530        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          22.598        9.3864        .84260E-04   -1.4757    
  12  Prefactor     .10000E-03    30.431        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     20.950        61.038        .87415E-04   -1.4792    
  14  Prefactor     .92512        3.5656        .30275E-03   -1.5516    
  15  Prefactor     .10000E-03    12.223        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    10.914        .31159E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          7.0968        13.606        .15044E-03   -1.5175    
  18  Prefactor     6.4469        4.3336        .13732E-03   -1.5200    
  19  Prefactor     .10002E-03    20.518        .27317E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    2.0607        .11632E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    1.7546        .10644E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     10.564        10.481        .12324E-03   -1.5058    
  23  Prefactor     .10001E-03    59.149        .50300E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     10.606        7.5635        .61522E-03   -1.5057    
  25  Prefactor     6.7846        5.3695        .15405E-03   -1.5187    
  26  Prefactor     .10000E-03    3.8472        .15849E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     6.8932        53.227        .15297E-03   -1.5183    
  28  Normalizat    .96963        .18507        .23628E-03   -.94055    
  29  Prefactor     .95903        .18553        .24116E-03   -.94108    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.21333e-09
Minuit parameter uncertainties:
  1  0.000139339
  2  9.88656e-09
  3  1.91824
  4  1.08335e-05
  5  0.000284911
  6  11.9134
  7  12.831
  8  2.719
  9  0.00189208
  10  8.11648e-06
  11  9.38698
  12  0.000326818
  13  61.2206
  14  3.56643
  15  0.000307741
  16  0.000209927
  17  13.6119
  18  4.3338
  19  0.00133173
  20  5.53655e-06
  21  1.47259e-06
  22  10.4826
  23  0.00145856
  24  7.56415
  25  5.36986
  26  3.3906e-06
  27  38.3564
  28  0.185188
  29  0.185656
Done.

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

Extracting fit parameters...

4FGL J1604.6+5714
   Spectrum: LogParabola
320         norm:  2.260e+01  9.387e+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:  9.590e-01  1.857e-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.696e-01  1.852e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 16.04
Ra Dec: 241.158 57.238
Photon Index (Fixed Index): 2.35 +/- 0.00
Photon Flux (Fixed Index): 9.50e-08 +/- 3.94e-08
Energy Flux (Fixed Index): 3.11e-05 +/- 1.29e-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) = 6900.86259458
delta logL = 0.257343161961

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6900.84219231
delta logL = 0.277745434257

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    20.918       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6592       1.0000          .0000       5.0000    
     3 'Normalizat'    .93197       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98186       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=   6900.842     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      266 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          20.919        9.0764        .87574E-04   -.62663E-03
   2  alpha         2.6593        .41958        .10091E-01   -.10900E-03
   3  Normalizat    .93198        .18903        .24024E-03    .50539E-04
   4  Prefactor     .98185        .18596        .23858E-03    .81865E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 20.9186
  alpha      = 2.65931
  Normalizat = 0.931981
  Prefactor  = 0.981854
 **********
 **   18 **HESSE 
 **********

 FCN=   6900.842     FROM HESSE     STATUS=OK            25 CALLS      291 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          20.919        8.8897        .35030E-05   -1.4793    
   2  alpha         2.6593        .41050        .40362E-03    .63766E-01
   3  Normalizat    .93198        .18921        .96098E-05   -.95345    
   4  Prefactor     .98185        .18611        .95432E-05   -.93337    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.13387e-10
Minuit parameter uncertainties:
  1  8.89024
  2  0.412374
  3  0.18934
  4  0.18623
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/11648': 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) = 6900.84219222
delta logL = 0.277745526764

Extracting fit parameters...

4FGL J1604.6+5714
   Spectrum: LogParabola
320         norm:  2.092e+01  8.890e+00  1.000e-04  1.000e+04 ( 1.000e-12)
321        alpha:  2.659e+00  4.124e-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:  9.819e-01  1.862e-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.320e-01  1.893e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 16.65
Ra Dec: 241.158 57.238
Photon Index (Free Index): 2.66 +/- 0.41
Photon Flux (Free Index): 1.23e-07 +/- 5.62e-08
Energy Flux (Free Index): 3.06e-05 +/- 1.15e-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/11648/cmap_HighResolution_489196801_489456001_4FGL_J1604.6+5714_daily_bin964.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.50e-08', energy_flux2='3.06e-05', photon_flux_error='3.94e-08', dlogl='2.78e-01', energy_flux='3.11e-05', photon_flux2='1.23e-07', job_status='DONE', time_completed='2021-09-13 07:30:56.821905', photon_index_error2='0.41', photon_index2='2.66', ts='16.04', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', energy_flux_error2='1.15e-05', EG='0.97', time_epoch_completed='1631543456.82', return_code='0', job_id='11648', GAL2='0.98', EG2='0.93', return_code2='0', energy_flux_error='1.29e-05', photon_flux_error2='5.62e-08', ts2='16.65', photon_index='2.35' WHERE bin_id='964' AND source_name='4FGL J1604.6+5714' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 13 07:30:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0055>
Subject: Job 11648: <4FGL_J1604.6+5714_daily_bin964> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1604.6+5714_daily_bin964 241.158 57.2381 489196801 489456001 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 :                                   894.09 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             355.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   919 sec.
    Turnaround time :                            937 sec.

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

