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


Performing analysis on: 4FGL_J1604.6+5714_daily_bin676
RA = 241.158, Dec = 57.2381
tmin = 414547201, tmax = 414806401
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='7614', job_status='RUN', time_executed='2021-09-13 07:01:21.219552', time_epoch_executed='1631541681.22' WHERE source_name='4FGL J1604.6+5714' and cadence='daily' and bin_id='676'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/7614

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/7614/ft1_4FGL_J1604.6+5714_daily_bin676.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/7614/ft2_4FGL_J1604.6+5714_daily_bin676.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/7614/ft1_4FGL_J1604.6+5714_daily_bin676.fits outfile=/scratch/kocevski/7614/ft1_filteredMKT_4FGL_J1604.6+5714_daily_bin676.fits ra=241.158 dec=57.2381 rad=12.0 tmin=414547201.0 tmax=414806401.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.92
user 5.64
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/7614/ft1_filtered_4FGL_J1604.6+5714_daily_bin676.fits" evtable="EVENTS" scfile=/scratch/kocevski/7614/ft2_4FGL_J1604.6+5714_daily_bin676.fits sctable="SC_DATA" outfile=/scratch/kocevski/7614/ltcube_414547201_414806401_4FGL_J1604.6+5714_daily_bin676.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/7614/ft2_4FGL_J1604.6+5714_daily_bin676.fits
.....................!
real 14.40
user 14.03
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/7614/ft1_filtered_4FGL_J1604.6+5714_daily_bin676.fits evtable="EVENTS" scfile=/scratch/kocevski/7614/ft2_4FGL_J1604.6+5714_daily_bin676.fits sctable="SC_DATA" expcube=/scratch/kocevski/7614/ltcube_414547201_414806401_4FGL_J1604.6+5714_daily_bin676.fits outfile=/scratch/kocevski/7614/expmap_414547201_414806401_4FGL_J1604.6+5714_daily_bin676.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/7614/ltcube_414547201_414806401_4FGL_J1604.6+5714_daily_bin676.fits
.....................!
real 193.71
user 188.96
sys 4.17

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/7614/ft1_filtered_4FGL_J1604.6+5714_daily_bin676.fits scfile=/scratch/kocevski/7614/ft2_4FGL_J1604.6+5714_daily_bin676.fits outfile=/scratch/kocevski/7614/cmap_414547201_414806401_4FGL_J1604.6+5714_daily_bin676.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/7614/ft1_filtered_4FGL_J1604.6+5714_daily_bin676.fits scfile=/scratch/kocevski/7614/ft2_4FGL_J1604.6+5714_daily_bin676.fits outfile=/scratch/kocevski/7614/cmap_HighResolution_414547201_414806401_4FGL_J1604.6+5714_daily_bin676.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.56
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.923       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .16300E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    24.516       1.0000         .10000E-03   10000.    
     8 'norm      '    1.9483       1.0000         .10000E-03   10000.    
     9 'Prefactor '    34.011       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    21.338       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .12029E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.9482       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    35.146       1.0000         .10000E-03   10000.    
    17 'norm      '    13.331       1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.769       1.0000         .10000E-03   10000.    
    19 'Prefactor '    13.489       1.0000         .10000E-03   10000.    
    20 'norm      '    14.931       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .20164E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    29.905       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    10.855       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .80487       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0912       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=   2340.149     FROM MIGRAD    STATUS=CONVERGED    715 CALLS     4233 TOTAL
                     EDM=   .70E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    94.116        .26173E-05** at limit **
   2  Prefactor     .10000E-03    8.3986        .62644E-07** at limit **
   3  norm          .10000E-03    2.4859        .15963E-06** at limit **
   4  Prefactor     .10000E-03    22.656        .92109E-07** at limit **
   5  Prefactor     11.931        19.254       -.64456E-06   -.31077E-04
   6  Prefactor     .10000E-03    86.169        .10303E-04** at limit **
   7  Prefactor     24.514        34.146       -.64766E-06   -.61704E-04
   8  norm          1.9424        16.055        .17927E-05   -.81611E-04
   9  Prefactor     34.330        1209.1       -.14355E-04   -.45499E-05
  10  Prefactor     .10000E-03    35.444        .11972E-05** at limit **
  11  norm          21.332        36.579       -.77556E-06   -.34805E-04
  12  Prefactor     .10000E-03    159.45       -.36728E-05** at limit **
  13  Prefactor     .10000E-03    131.89        .55152E-07** at limit **
  14  Prefactor     1.9458        11.410        .89105E-06    .36627E-05
  15  Prefactor     .10000E-03    42.333       -.15081E-05** at limit **
  16  Prefactor     35.159        29.933       -.34826E-06   -.46587E-04
  17  norm          13.326        36.981        .40270E-06   -.12904E-04
  18  Prefactor     10.772        10.548        .11522E-06   -.98794E-04
  19  Prefactor     13.490        13.724       -.81697E-07   -.14053E-04
  20  norm          14.928        17.270        .14250E-06   -.27927E-04
  21  Prefactor     .10000E-03    5.5938       -.31676E-06** at limit **
  22  Prefactor     .10000E-03    11.864        .33106E-08** at limit **
  23  Prefactor     29.911        37.192        .55436E-07   -.54170E-05
  24  Prefactor     .10000E-03    6.7585        .19422E-06** at limit **
  25  Prefactor     10.856        11.439       -.10665E-07   -.38043E-05
  26  Prefactor     .10000E-03    19.316        .21846E-06** at limit **
  27  Prefactor     .10000E-03    62.262       -.12293E-05** at limit **
  28  Normalizat    .80418        .40879        .65423E-05   -.12175E-03
  29  Prefactor     1.0918        .36122       -.61266E-05   -.11502E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.9314
  Prefactor  = 0.0001
  Prefactor  = 24.5142
  norm       = 1.94241
  Prefactor  = 34.3299
  Prefactor  = 0.0001
  norm       = 21.3319
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.9458
  Prefactor  = 0.0001
  Prefactor  = 35.159
  norm       = 13.3258
  Prefactor  = 10.7715
  Prefactor  = 13.4897
  norm       = 14.9281
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 29.9111
  Prefactor  = 0.0001
  Prefactor  = 10.8557
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.804176
  Prefactor  = 1.09184
 **********
 **   18 **HESSE 
 **********

 FCN=   2340.149     FROM HESSE     STATUS=OK           553 CALLS     4786 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    94.490        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    8.4045        .13694E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    2.5426        .74516E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    22.701        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     11.931        19.234        .11601E-03   -1.5017    
   6  Prefactor     .10000E-03    85.211        .34952E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     24.514        33.583        .80902E-04   -1.4717    
   8  norm          1.9424        16.122        .29734E-03   -1.5429    
   9  Prefactor     34.330        1206.3        .34356E-03   -1.4535    
  10  Prefactor     .10000E-03    35.594        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          21.332        36.527        .86710E-04   -1.4784    
  12  Prefactor     .10000E-03    159.70        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    131.92        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.9458        11.331        .29735E-03   -1.5429    
  15  Prefactor     .10000E-03    42.545        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     35.159        29.810        .67598E-04   -1.4521    
  17  norm          13.326        36.946        .10970E-03   -1.4978    
  18  Prefactor     10.772        10.277        .12209E-03   -1.5051    
  19  Prefactor     13.490        13.717        .10906E-03   -1.4973    
  20  norm          14.928        17.261        .10365E-03   -1.4935    
  21  Prefactor     .10000E-03    22.817        .20946E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    11.889        .16275E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     29.911        37.167        .73265E-04   -1.4614    
  24  Prefactor     .10000E-03    6.7824        .12286E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     10.856        11.428        .12160E-03   -1.5049    
  26  Prefactor     .10000E-03    19.529        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    62.256        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .80418        .40772        .28100E-03   -.99914    
  29  Prefactor     1.0918        .36142        .23868E-03   -.89728    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.31988e-10
Minuit parameter uncertainties:
  1  0.000291883
  2  4.30637e-06
  3  1.28693e-05
  4  5.72489e-05
  5  19.2441
  6  0.000102688
  7  33.6092
  8  11.196
  9  416.437
  10  0.000102167
  11  36.5654
  12  0.000461378
  13  3.98711e-05
  14  9.39368
  15  0.000201521
  16  29.8225
  17  37.009
  18  10.2788
  19  13.7205
  20  17.2672
  21  0.000141571
  22  1.35116e-05
  23  37.1958
  24  1.23164e-05
  25  11.43
  26  6.19689e-05
  27  5.44353e-05
  28  0.409281
  29  0.362231
Done.

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

Extracting fit parameters...

4FGL J1604.6+5714
   Spectrum: LogParabola
320         norm:  2.133e+01  3.657e+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:  1.092e+00  3.622e-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:  8.042e-01  4.093e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.50
Ra Dec: 241.158 57.238
Photon Flux Upper Limit: 5.05e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.65e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/7614/likelihoodResults_414547201_414806401_4FGL_J1604.6+5714_daily_bin676.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2339.45039492
delta logL = 0.698600949022

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2339.43381211
delta logL = 0.715183756172

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.4648       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.9999       1.0000          .0000       5.0000    
     3 'Normalizat'    .68250       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1738       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=   2339.434     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      329 TOTAL
                     EDM=   .70E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.4652        6.8510        .65120E-02   -.11856E-03
   2  alpha         5.0000        4.8740        .46269    ** at limit **
   3  Normalizat    .68242        .30548        .68274E-01   -.37915E-05
   4  Prefactor     1.1737        .29042        .52283E-01   -.79125E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.46517
  alpha      = 5
  Normalizat = 0.682421
  Prefactor  = 1.17368
 **********
 **   18 **HESSE 
 **********

 FCN=   2339.434     FROM HESSE     STATUS=OK            35 CALLS      364 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.4652        2.8221        .63932E-04   -1.5394    
   2  alpha         5.0000        3.5819        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .68242        .37315        .30213E-03   -1.0459    
   4  Prefactor     1.1737        .35271        .23115E-03   -.87145    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.23245e-11
Minuit parameter uncertainties:
  1  2.82222
  2  3.75911e-05
  3  0.374551
  4  0.353421
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/7614': 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) = 2339.43380587
delta logL = 0.715189997156

Extracting fit parameters...

4FGL J1604.6+5714
   Spectrum: LogParabola
320         norm:  2.465e+00  2.822e+00  1.000e-04  1.000e+04 ( 1.000e-12)
321        alpha:  5.000e+00  3.759e-05  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.174e+00  3.534e-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:  6.824e-01  3.746e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.11
Ra Dec: 241.158 57.238
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 3.60e-07 +/- 4.10e-07
Energy Flux (Free Index): 4.87e-05 +/- 5.56e-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/7614/cmap_HighResolution_414547201_414806401_4FGL_J1604.6+5714_daily_bin676.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.65e-04', comment='SUCCESS', energy_flux2='4.87e-05', dlogl='7.15e-01', photon_flux2='3.60e-07', job_status='DONE', time_completed='2021-09-13 07:11:25.287134', photon_index_error2='0.00', photon_index2='5.00', ts='0.50', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', photon_flux_upper_limit='5.05e-07', energy_flux_error2='5.56e-05', EG='0.80', time_epoch_completed='1631542285.29', return_code='0', job_id='7614', GAL2='1.17', EG2='0.68', return_code2='0', photon_flux_error2='4.10e-07', ts2='2.11', photon_index='2.35' WHERE bin_id='676' AND source_name='4FGL J1604.6+5714' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 13 07:11:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0065>
Subject: Job 7614: <4FGL_J1604.6+5714_daily_bin676> in cluster <slac> Done

Job <4FGL_J1604.6+5714_daily_bin676> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Mon Sep 13 07:00:25 2021
Job was executed on host(s) <bullet0065>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 13 07:01: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:01:08 2021
Terminated at Mon Sep 13 07:11:26 2021
Results reported at Mon Sep 13 07:11:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1604.6+5714_daily_bin676 241.158 57.2381 414547201 414806401 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 :                                   600.17 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             349.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   617 sec.
    Turnaround time :                            661 sec.

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

