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 41 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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


Performing analysis on: 4FGL_J1604.6+5714_daily_bin1766
RA = 241.158, Dec = 57.2381
tmin = 697075201, tmax = 697334401
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='852431', job_status='RUN', time_executed='2023-02-06 01:02:15.454825', time_epoch_executed='1675674135.45' WHERE source_name='4FGL J1604.6+5714' and cadence='daily' and bin_id='1766'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/852431

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/852431/ft1_4FGL_J1604.6+5714_daily_bin1766.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/852431/ft2_4FGL_J1604.6+5714_daily_bin1766.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/852431/ft1_4FGL_J1604.6+5714_daily_bin1766.fits outfile=/scratch/kocevski/852431/ft1_filteredMKT_4FGL_J1604.6+5714_daily_bin1766.fits ra=241.158 dec=57.2381 rad=12.0 tmin=697075201.0 tmax=697334401.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.89
user 3.54
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/852431/ft2_4FGL_J1604.6+5714_daily_bin1766.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/852431/ft1_filteredMKT_4FGL_J1604.6+5714_daily_bin1766.fits evtable="EVENTS" outfile="/scratch/kocevski/852431/ft1_filtered_4FGL_J1604.6+5714_daily_bin1766.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.53
user 0.35
sys 0.14

Number of photons that the gtmktime cut: 615

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/852431/ft1_filtered_4FGL_J1604.6+5714_daily_bin1766.fits" evtable="EVENTS" scfile=/scratch/kocevski/852431/ft2_4FGL_J1604.6+5714_daily_bin1766.fits sctable="SC_DATA" outfile=/scratch/kocevski/852431/ltcube_697075201_697334401_4FGL_J1604.6+5714_daily_bin1766.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/852431/ft2_4FGL_J1604.6+5714_daily_bin1766.fits
.....................!
real 16.58
user 16.09
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/852431/ft1_filtered_4FGL_J1604.6+5714_daily_bin1766.fits evtable="EVENTS" scfile=/scratch/kocevski/852431/ft2_4FGL_J1604.6+5714_daily_bin1766.fits sctable="SC_DATA" expcube=/scratch/kocevski/852431/ltcube_697075201_697334401_4FGL_J1604.6+5714_daily_bin1766.fits outfile=/scratch/kocevski/852431/expmap_697075201_697334401_4FGL_J1604.6+5714_daily_bin1766.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/852431/ltcube_697075201_697334401_4FGL_J1604.6+5714_daily_bin1766.fits
.....................!
real 193.26
user 187.43
sys 4.41

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/852431/ft1_filtered_4FGL_J1604.6+5714_daily_bin1766.fits scfile=/scratch/kocevski/852431/ft2_4FGL_J1604.6+5714_daily_bin1766.fits outfile=/scratch/kocevski/852431/cmap_697075201_697334401_4FGL_J1604.6+5714_daily_bin1766.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.60
user 0.40
sys 0.15

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

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/852431/ft1_filtered_4FGL_J1604.6+5714_daily_bin1766.fits', '/scratch/kocevski/852431/ft2_4FGL_J1604.6+5714_daily_bin1766.fits', expMap='/scratch/kocevski/852431/expmap_697075201_697334401_4FGL_J1604.6+5714_daily_bin1766.fits', expCube='/scratch/kocevski/852431/ltcube_697075201_697334401_4FGL_J1604.6+5714_daily_bin1766.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/852431/Model_4FGL_J1604.6+5714_daily_bin1766.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  0.000e+00  1.000e+06 ( 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 -5.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/852431/ft1_filtered_4FGL_J1604.6+5714_daily_bin1766.fits
Spacecraft file(s): /scratch/kocevski/852431/ft2_4FGL_J1604.6+5714_daily_bin1766.fits
Exposure map: /scratch/kocevski/852431/expmap_697075201_697334401_4FGL_J1604.6+5714_daily_bin1766.fits
Exposure cube: /scratch/kocevski/852431/ltcube_697075201_697334401_4FGL_J1604.6+5714_daily_bin1766.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/852431/Model_4FGL_J1604.6+5714_daily_bin1766.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) = 6618.71957127

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11733E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    10.503       1.0000          .0000       .10000E+07
     3 'norm      '    5.8484       1.0000          .0000       .10000E+07
     4 'Prefactor '    6.0057       1.0000          .0000       .10000E+07
     5 'Prefactor '    2.3017       1.0000          .0000       .10000E+07
     6 'Prefactor '    12.457       1.0000          .0000       .10000E+07
     7 'norm      '    .91188E-05   1.0000          .0000       .10000E+07
     8 'Prefactor '    .36400E-01   1.0000          .0000       .10000E+07
     9 'Prefactor '    2.8175       1.0000          .0000       .10000E+07
    10 'norm      '    .70431E-05   1.0000          .0000       .10000E+07
    11 'Prefactor '    .92863E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    38.970       1.0000          .0000       .10000E+07
    13 'Prefactor '    4.4785       1.0000          .0000       .10000E+07
    14 'Prefactor '    9.6890       1.0000          .0000       .10000E+07
    15 'Prefactor '    7.0164       1.0000          .0000       .10000E+07
    16 'norm      '    13.044       1.0000          .0000       .10000E+07
    17 'Prefactor '    .11645E-04   1.0000          .0000       .10000E+07
    18 'Prefactor '    3.5846       1.0000          .0000       .10000E+07
    19 'norm      '    8.0234       1.0000          .0000       .10000E+07
    20 'Prefactor '    5.5256       1.0000          .0000       .10000E+07
    21 'Prefactor '    .42474E-05   1.0000          .0000       .10000E+07
    22 'Prefactor '    21.774       1.0000          .0000       .10000E+07
    23 'Prefactor '    .11373E-05   1.0000          .0000       .10000E+07
    24 'Prefactor '    .72874       1.0000          .0000       .10000E+07
    25 'Prefactor '    1.5544       1.0000          .0000       .10000E+07
    26 'Prefactor '    43.398       1.0000          .0000       .10000E+07
    27 'Normalizat'    .87856       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .95237       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7070E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6618.677     FROM MIGRAD    STATUS=CONVERGED    193 CALLS     2533 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .72720E-08    13.950        .71422E-07** at limit **
   2  Prefactor     10.564        12.825       -.50488E-07    .98156E-02
   3  norm          5.8466        2.1412       -.62027E-08   -.11734E-02
   4  Prefactor     6.0042        8.3612       -.22770E-06   -.29061E-02
   5  Prefactor     2.3079        5.9181        .13655E-06    .35936E-03
   6  Prefactor     12.165        28.111       -.73905E-07    .25299E-01
   7  norm          .55511E-10    1.8110        .84674E-07** at limit **
   8  Prefactor     .12744E-04    2.0273       -.27112E-07** at limit **
   9  Prefactor     2.7877        5.0630        .43502E-07    .72012E-03
  10  norm          .55511E-10    3.8001       -.14882E-06** at limit **
  11  Prefactor     .50515E-08    12.085       -.12501E-06** at limit **
  12  Prefactor     37.148        41.300        .26719E-07   -.42409E-02
  13  Prefactor     4.5448        4.3378       -.84562E-07    .89116E-03
  14  Prefactor     9.6340        2.9881       -.43480E-08   -.57728E-01
  15  Prefactor     7.0527        6.0348        .77558E-07    .34468E-02
  16  norm          13.040        1.4103        .28645E-08   -.17805E-01
  17  Prefactor     .55511E-10    2.2055       -.83896E-07** at limit **
  18  Prefactor     3.5879        6.3095       -.59405E-07    .25714E-02
  19  norm          8.0206        6.1324        .18645E-07    .20472E-02
  20  Prefactor     5.5243        3.1905       -.54613E-08    .25719E-03
  21  Prefactor     .61062E-09    9.9206        .12924E-06** at limit **
  22  Prefactor     21.888        4.1902        .15604E-08   -.14034    
  23  Prefactor     .55511E-10    4.1996       -.32015E-07** at limit **
  24  Prefactor     .23137        19.050       -.50010E-06** at limit **
  25  Prefactor     1.5635        5.7433       -.70632E-07   -.77723E-03
  26  Prefactor     49.861        72.392        .58842E-06    .19663E-01
  27  Normalizat    .87895        .19123        .15840E-06    .99018E-04
  28  Prefactor     .95230        .18749        .75427E-06    .10937E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.27196e-09
  Prefactor  = 10.5642
  norm       = 5.84657
  Prefactor  = 6.00422
  Prefactor  = 2.30791
  Prefactor  = 12.165
  norm       = 5.55112e-11
  Prefactor  = 1.2744e-05
  Prefactor  = 2.78768
  norm       = 5.55112e-11
  Prefactor  = 5.05151e-09
  Prefactor  = 37.1476
  Prefactor  = 4.54481
  Prefactor  = 9.63401
  Prefactor  = 7.05265
  norm       = 13.0404
  Prefactor  = 5.55112e-11
  Prefactor  = 3.58792
  norm       = 8.02059
  Prefactor  = 5.52427
  Prefactor  = 6.10623e-10
  Prefactor  = 21.888
  Prefactor  = 5.55112e-11
  Prefactor  = 0.231373
  Prefactor  = 1.56354
  Prefactor  = 49.8607
  Normalizat = 0.878948
  Prefactor  = 0.952303
 **********
 **   18 **HESSE 
 **********

 FCN=   6618.677     FROM HESSE     STATUS=OK           585 CALLS     3118 TOTAL
                     EDM=   .15E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .72720E-08    14.033        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     10.564        12.849        .30892E-03   -1.5643    
   3  norm          5.8466        2.1372        .41504E-03   -1.5660    
   4  Prefactor     6.0042        8.4697        .40949E-03   -1.5659    
   5  Prefactor     2.3079        5.9863        .67614E-03   -1.5678    
   6  Prefactor     12.165        28.956        .28356E-03   -1.5638    
   7  norm          .55511E-10    1.8005        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .12744E-04    158.19        .16130E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.7877        5.0830        .60569E-03   -1.5675    
  10  norm          .55511E-10    3.7933        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .50515E-08    12.158        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     37.148        41.568        .16021E-03   -1.5586    
  13  Prefactor     4.5448        4.6399        .47554E-03   -1.5665    
  14  Prefactor     9.6340        18.908        .32169E-03   -1.5646    
  15  Prefactor     7.0527        6.1701        .37849E-03   -1.5655    
  16  norm          13.040        16.575        .27709E-03   -1.5636    
  17  Prefactor     .55511E-10    2.1997        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.5879        6.3838        .53350E-03   -1.5670    
  19  norm          8.0206        6.1487        .35373E-03   -1.5651    
  20  Prefactor     5.5243        3.1949        .42718E-03   -1.5661    
  21  Prefactor     .61062E-09    9.8835        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     21.888        19.175        .21436E-03   -1.5614    
  23  Prefactor     .55511E-10    4.1840        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .23137        8.9380        .58406E-02   -1.5698    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     1.5635        5.8393        .85367E-03   -1.5683    
  26  Prefactor     49.861        71.943        .15181E-03   -1.5567    
  27  Normalizat    .87895        .16361        .44627E-01   -.97204    
  28  Prefactor     .95230        .15912        .45669E-01   -.94337    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.53669e-06
Minuit parameter uncertainties:
  1  0.000639612
  2  12.8488
  3  2.13717
  4  8.46973
  5  5.98631
  6  28.9567
  7  1.62088e-05
  8  0.0898027
  9  5.08303
  10  2.59931e-05
  11  0.000495641
  12  41.5681
  13  4.6399
  14  18.9085
  15  6.17009
  16  16.575
  17  1.64835e-05
  18  6.3838
  19  6.14874
  20  3.19494
  21  0.000155016
  22  19.1748
  23  2.49588e-05
  24  2.87612
  25  5.83934
  26  71.9447
  27  0.163703
  28  0.159202
Done.

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

Extracting fit parameters...

4FGL J1604.6+5714
   Spectrum: LogParabola
320         norm:  5.551e-11  2.599e-05  0.000e+00  1.000e+06 ( 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 -5.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.523e-01  1.592e-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.789e-01  1.637e-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: 5.22e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.71e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/852431/likelihoodResults_697075201_697334401_4FGL_J1604.6+5714_daily_bin1766.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): 102
logL (Free Index) = 6618.67702166
delta logL = -8.08595414128e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6618.67694093
delta logL = -1.32581590151e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .18208E-07   1.0000          .0000       .10000E+07
     2 'alpha     '    .68862       1.0000          .0000       5.0000    
     3 'Normalizat'    .87903       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95222       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   6618.677     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      248 TOTAL
                     EDM=   .89E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        1.2516        .42118E-03** at limit **
   2  alpha         4.0121        1.1554       -.18275E-04     .0000    
   3  Normalizat    .87895        1.2152        .32975E-04   -.34765E-03
   4  Prefactor     .95230        1.2944       -.16537E-04   -.24487E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  alpha      = 4.01215
  Normalizat = 0.878946
  Prefactor  = 0.952304
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   6618.677     FROM HESSE     STATUS=FAILED         7 CALLS      255 TOTAL
                     EDM=   .89E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        1.2516        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.8478        1.1554       -.18275E-04    .64959    
   3  Normalizat    .87895        1.2152        .32975E-04   -.97204    
   4  Prefactor     .95230        1.2944       -.16537E-04   -.94337    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 8.89299e-11
Minuit parameter uncertainties:
  1  3.8465e-06
  2  1.23263
  3  1.25654
  4  1.34048
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/852431': 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): 101
logL (Free Index) = 6618.6769408
delta logL = -5.18411980011e-11

Extracting fit parameters...

4FGL J1604.6+5714
   Spectrum: LogParabola
320         norm:  0.000e+00  3.847e-06  0.000e+00  1.000e+06 ( 1.000e-12)
321        alpha:  4.012e+00  1.233e+00  0.000e+00  5.000e+00 ( 1.000e+00)
322         beta:  7.626e-02  0.000e+00 -5.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.523e-01  1.340e+00  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.789e-01  1.257e+00  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/852431/cmap_HighResolution_697075201_697334401_4FGL_J1604.6+5714_daily_bin1766.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.71e-05', job_status='DONE', photon_flux_upper_limit='5.22e-08', time_completed='2023-02-06 01:16:08.314359', job_id='852431', GAL2='0.95', fit_tolerance='1e-08', EG2='0.88', EG='0.88', time_epoch_completed='1675674968.31', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='-5.18e-11', ts2='0.00', photon_index_error='0.00', photon_index='2.35' WHERE bin_id='1766' AND source_name='4FGL J1604.6+5714' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Feb  6 01:16:08 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0207>
Subject: Job 852431: <4FGL_J1604.6+5714_daily_bin1766> in cluster <slac> Done

Job <4FGL_J1604.6+5714_daily_bin1766> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Feb  6 01:00:28 2023
Job was executed on host(s) <bullet0207>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Feb  6 01:01:22 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Feb  6 01:01:22 2023
Terminated at Mon Feb  6 01:16:09 2023
Results reported at Mon Feb  6 01:16:09 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1604.6+5714_daily_bin1766 241.158 57.2381 697075201 697334401 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 :                                   833.15 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             345.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   886 sec.
    Turnaround time :                            941 sec.

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

