aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 32 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).
nnumber of points = 7326
number of fields = 31
RA_SUN column already exists. File will not be modified.Done.


Performing analysis on: 4FGL_J1604.6+5714_daily_bin1667
RA = 241.158, Dec = 57.2381
tmin = 671414401, tmax = 671673601
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='478258', job_status='RUN', time_executed='2022-04-15 03:30:41.428622', time_epoch_executed='1650018641.43' WHERE source_name='4FGL J1604.6+5714' and cadence='daily' and bin_id='1667'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/478258

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/478258/ft1_4FGL_J1604.6+5714_daily_bin1667.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/478258/ft2_4FGL_J1604.6+5714_daily_bin1667.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/478258/ft1_4FGL_J1604.6+5714_daily_bin1667.fits outfile=/scratch/kocevski/478258/ft1_filteredMKT_4FGL_J1604.6+5714_daily_bin1667.fits ra=241.158 dec=57.2381 rad=12.0 tmin=671414401.0 tmax=671673601.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.52
user 3.31
sys 0.20

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

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

Number of photons that the gtmktime cut: 624

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/478258/ft1_filtered_4FGL_J1604.6+5714_daily_bin1667.fits evtable="EVENTS" scfile=/scratch/kocevski/478258/ft2_4FGL_J1604.6+5714_daily_bin1667.fits sctable="SC_DATA" expcube=/scratch/kocevski/478258/ltcube_671414401_671673601_4FGL_J1604.6+5714_daily_bin1667.fits outfile=/scratch/kocevski/478258/expmap_671414401_671673601_4FGL_J1604.6+5714_daily_bin1667.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/478258/ltcube_671414401_671673601_4FGL_J1604.6+5714_daily_bin1667.fits
.....................!
real 193.39
user 188.55
sys 4.44

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/478258/ft1_filtered_4FGL_J1604.6+5714_daily_bin1667.fits scfile=/scratch/kocevski/478258/ft2_4FGL_J1604.6+5714_daily_bin1667.fits outfile=/scratch/kocevski/478258/cmap_671414401_671673601_4FGL_J1604.6+5714_daily_bin1667.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.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/478258/ft1_filtered_4FGL_J1604.6+5714_daily_bin1667.fits scfile=/scratch/kocevski/478258/ft2_4FGL_J1604.6+5714_daily_bin1667.fits outfile=/scratch/kocevski/478258/cmap_HighResolution_671414401_671673601_4FGL_J1604.6+5714_daily_bin1667.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.57
user 0.37
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    64.668       1.0000         .10000E-03   10000.    
     2 'Prefactor '    29.948       1.0000         .10000E-03   10000.    
     3 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.9831       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .17746       1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.9984       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10168E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.4332       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .45120E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    17.536       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .57942E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.6964       1.0000         .10000E-03   10000.    
    17 'norm      '    46.124       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .13021E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.937       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.3587       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10095E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    4.4949       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10191E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    2.0676       1.0000         .10000E-03   10000.    
    27 'Prefactor '    30.263       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .68181       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.1467       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=   6779.473     FROM MIGRAD    STATUS=CONVERGED    751 CALLS     3769 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     64.677        48.796        .62165E-05    .69664E-05
   2  Prefactor     29.950        20.597        .20606E-05    .37948E-04
   3  norm          .10000E-03    .75217        .24730E-07** at limit **
   4  Prefactor     7.0025        7.8681       -.37901E-05   -.10158E-03
   5  Prefactor     .13182        3.2155        .84640E-07    .39646E-03
   6  Prefactor     7.9942        12.767       -.81071E-06    .79571E-04
   7  Prefactor     .10000E-03    13.378        .14789E-06** at limit **
   8  norm          3.4282        2.3490        .21149E-06    .21077E-02
   9  Prefactor     .10005E-03    400.29       -.28121E-03** at limit **
  10  Prefactor     .10000E-03    1.8557       -.58446E-07** at limit **
  11  norm          .10000E-03    2.1938       -.12824E-06** at limit **
  12  Prefactor     17.527        26.161        .12535E-04    .10872E-03
  13  Prefactor     .10000E-03    42.525        .30342E-05** at limit **
  14  Prefactor     .31618E-01    3.9394       -.22513E-05    .71039E-03
  15  Prefactor     .10000E-03    9.7607        .25537E-06** at limit **
  16  Prefactor     2.6965        5.6304        .61854E-05   -.53852E-03
  17  norm          46.125        21.880        .12583E-05   -.48629E-05
  18  Prefactor     .10000E-03    2.2261       -.13436E-06** at limit **
  19  Prefactor     11.937        6.9376       -.28657E-05   -.80216E-05
  20  norm          .10000E-03    2.5980        .60298E-07** at limit **
  21  Prefactor     2.3601        2.8703       -.54607E-06   -.55759E-03
  22  Prefactor     .10000E-03    7.9595        .13168E-06** at limit **
  23  Prefactor     .10000E-03    5.0435        .17609E-06** at limit **
  24  Prefactor     4.4950        7.4133       -.30026E-05   -.19229E-03
  25  Prefactor     .10000E-03    4.1238        .14551E-08** at limit **
  26  Prefactor     2.0696        4.7450       -.61386E-06   -.62505E-03
  27  Prefactor     30.270        33.649        .21697E-05    .92973E-05
  28  Normalizat    .68193        .16711        .87039E-06    .84705E-03
  29  Prefactor     1.1464        .16314       -.36529E-06    .92248E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 64.677
  Prefactor  = 29.9495
  norm       = 0.0001
  Prefactor  = 7.00252
  Prefactor  = 0.131818
  Prefactor  = 7.99424
  Prefactor  = 0.0001
  norm       = 3.42824
  Prefactor  = 0.000100049
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 17.5271
  Prefactor  = 0.0001
  Prefactor  = 0.0316181
  Prefactor  = 0.0001
  Prefactor  = 2.69655
  norm       = 46.1247
  Prefactor  = 0.0001
  Prefactor  = 11.9369
  norm       = 0.0001
  Prefactor  = 2.3601
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.49501
  Prefactor  = 0.0001
  Prefactor  = 2.06958
  Prefactor  = 30.2698
  Normalizat = 0.681929
  Prefactor  = 1.14642
 **********
 **   18 **HESSE 
 **********

 FCN=   6779.473     FROM HESSE     STATUS=OK           563 CALLS     4332 TOTAL
                     EDM=   .78E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     64.677        48.782        .24952E-03   -1.4098    
   2  Prefactor     29.950        20.589        .73213E-04   -1.4613    
   3  norm          .10000E-03    1.1834        .13897E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.0025        8.1053        .15181E-03   -1.5179    
   5  Prefactor     .13182        50.005        .26636E-02   -1.5635    
   6  Prefactor     7.9942        12.759        .14177E-03   -1.5142    
   7  Prefactor     .10000E-03    13.386        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.4282        2.3472        .10087E-03   -1.5338    
   9  Prefactor     .10005E-03    401.60        .19341E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.8611        .10953E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    2.2188        .11906E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     17.527        26.172        .95642E-04   -1.4870    
  13  Prefactor     .10000E-03    42.564        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .31618E-01    4.0079        .50580E-01   -1.5672    
  15  Prefactor     .10000E-03    9.7791        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.6965        5.5586        .24809E-03   -1.5380    
  17  norm          46.125        21.848        .59037E-04   -1.4349    
  18  Prefactor     .10000E-03    4.2536        .23633E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     11.937        6.9694        .11595E-03   -1.5017    
  20  norm          .10000E-03    2.6079        .12958E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     2.3601        2.8393        .14578E-03   -1.5401    
  22  Prefactor     .10000E-03    8.0587        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    5.0507        .18058E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     4.4950        7.4164        .18991E-03   -1.5284    
  25  Prefactor     .10000E-03    4.2066        .16306E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     2.0696        4.7237        .26306E-03   -1.5420    
  27  Prefactor     30.270        33.617        .72832E-04   -1.4607    
  28  Normalizat    .68193        .19316        .26395E-03   -1.0461    
  29  Prefactor     1.1464        .18944        .21456E-03   -.87996    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.80804e-09
Minuit parameter uncertainties:
  1  48.8122
  2  20.5944
  3  1.42019e-06
  4  8.10657
  5  5.13721
  6  12.7629
  7  1.20195e-05
  8  2.34724
  9  0.00889175
  10  5.77903e-06
  11  1.6173e-05
  12  26.1888
  13  0.000220131
  14  0.710886
  15  4.60592e-06
  16  5.55969
  17  21.8522
  18  2.78766e-05
  19  6.9699
  20  1.02848e-05
  21  2.83949
  22  7.92988e-07
  23  1.23086e-05
  24  7.41789
  25  6.91573e-06
  26  4.72459
  27  33.6381
  28  0.193351
  29  0.189553
DDone.

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

Extracting fit parameters...

4FGL J1604.6+5714
   Spectrum: LogParabola
320         norm:  1.000e-04  1.617e-05  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.146e+00  1.896e-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.819e-01  1.934e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 241.158 57.238
Photon Flux Upper Limit: 3.80e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.24e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/478211/likelihoodResults_671414401_671673601_4FGL_J1604.6+5714_daily_bin1667.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) = 6779.47533817
delta logL = -0.0021398942954

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6779.47319828
delta logL = -1.06629158836e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3540       1.0000          .0000       5.0000    
     3 'Normalizat'    .68194       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1464       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=   6779.473     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      226 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    5.0335        .11919E-02** at limit **
   2  alpha         2.6719        3.5913        .16496        .23087E-07
   3  Normalizat    .68193        .18046        .26395E-03   -.23323E-03
   4  Prefactor     1.1464        .18693        .21456E-03   -.28817E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.6719
  Normalizat = 0.681926
  Prefactor  = 1.14642
 **********
 **   18 **HESSE 
 **********

 FCN=   6779.473     FROM HESSE     STATUS=OK            23 CALLS      249 TOTAL
                     EDM=   .78E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.3025        .23837E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.6719        3.7229        .65985E-02    .68815E-01
   3  Normalizat    .68193        .18063        .10558E-04   -1.0461    
   4  Prefactor     1.1464        .18711        .42912E-04   -.87996    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.75156e-11
Minuit parameter uncertainties:
  1  1.42547e-05
  2  255.891
  3  0.180791
  4  0.187213
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/478211': 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) = 6779.47319746
delta logL = 8.14121449366e-07

Extracting fit parameters...

4FGL J1604.6+5714
   Spectrum: LogParabola
320         norm:  1.000e-04  1.425e-05  1.000e-04  1.000e+04 ( 1.000e-12)
321        alpha:  2.672e+00  2.559e+02  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.146e+00  1.872e-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.819e-01  1.808e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 241.158 57.238

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/478211/cmap_HighResolution_671414401_671673601_4FGL_J1604.6+5714_daily_bin1667.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.24e-05', job_status='DONE', photon_flux_upper_limit='3.80e-08', time_completed='2022-04-15 03:47:38.678605', job_id='478211', GAL2='1.15', fit_tolerance='1e-08', EG2='0.68', EG='0.68', time_epoch_completed='1650019658.68', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.15', dlogl='8.14e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.35' WHERE bin_id='1667' AND source_name='4FGL J1604.6+5714' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Apr 15 03:47:38 PDT 2022

-----------------------------------------------------------
Sender: LSF System <lsf@bullet0202>
Subject: Job 478258: <4FGL_J1604.6+5714_daily_bin1667> in cluster <slac> Done

Job <4FGL_J1604.6+5714_daily_bin1667> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Apr 15 00:07:43 2022
Job was executed on host(s) <bullet0202>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Apr 15 03:30:22 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Apr 15 03:30:22 2022
Terminated at Fri Apr 15 03:47:34 2022
Results reported at Fri Apr 15 03:47:34 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1604.6+5714_daily_bin1667 241.158 57.2381 671414401 671673601 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 :                                   1012.20 sec.
    Max Memory :                                 618 MB
    Average Memory :                             315.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1031 sec.
    Turnaround time :                            13191 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0103>
Subject: Job 478211: <4FGL_J1604.6+5714_daily_bin1667> in cluster <slac> Done

Job <4FGL_J1604.6+5714_daily_bin1667> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Apr 15 00:07:39 2022
Job was executed on host(s) <bullet0103>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Apr 15 03:30:03 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Apr 15 03:30:03 2022
Terminated at Fri Apr 15 03:47:39 2022
Results reported at Fri Apr 15 03:47:39 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1604.6+5714_daily_bin1667 241.158 57.2381 671414401 671673601 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 :                                   1015.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             307.53 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1055 sec.
    Turnaround time :                            13200 sec.

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

