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


Performing analysis on: 4FGL_J1604.6+5714_daily_bin1692
RA = 241.158, Dec = 57.2381
tmin = 677894401, tmax = 678153601
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='405954', job_status='RUN', time_executed='2022-06-29 04:51:43.635000', time_epoch_executed='1656503503.64' WHERE source_name='4FGL J1604.6+5714' and cadence='daily' and bin_id='1692'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/405954

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/405954/ft1_4FGL_J1604.6+5714_daily_bin1692.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/405954/ft2_4FGL_J1604.6+5714_daily_bin1692.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/405954/ft1_4FGL_J1604.6+5714_daily_bin1692.fits outfile=/scratch/kocevski/405954/ft1_filteredMKT_4FGL_J1604.6+5714_daily_bin1692.fits ra=241.158 dec=57.2381 rad=12.0 tmin=677894401.0 tmax=678153601.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 4.54
user 4.27
sys 0.25

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

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

Number of photons that the gtmktime cut: 807

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/405954/ft1_filtered_4FGL_J1604.6+5714_daily_bin1692.fits" evtable="EVENTS" scfile=/scratch/kocevski/405954/ft2_4FGL_J1604.6+5714_daily_bin1692.fits sctable="SC_DATA" outfile=/scratch/kocevski/405954/ltcube_677894401_678153601_4FGL_J1604.6+5714_daily_bin1692.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/405954/ft2_4FGL_J1604.6+5714_daily_bin1692.fits
.....................!
real 14.35
user 13.77
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/405954/ft1_filtered_4FGL_J1604.6+5714_daily_bin1692.fits evtable="EVENTS" scfile=/scratch/kocevski/405954/ft2_4FGL_J1604.6+5714_daily_bin1692.fits sctable="SC_DATA" expcube=/scratch/kocevski/405954/ltcube_677894401_678153601_4FGL_J1604.6+5714_daily_bin1692.fits outfile=/scratch/kocevski/405954/expmap_677894401_678153601_4FGL_J1604.6+5714_daily_bin1692.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/405954/ltcube_677894401_678153601_4FGL_J1604.6+5714_daily_bin1692.fits
.....................!
real 192.74
user 186.55
sys 5.75

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/405954/ft1_filtered_4FGL_J1604.6+5714_daily_bin1692.fits scfile=/scratch/kocevski/405954/ft2_4FGL_J1604.6+5714_daily_bin1692.fits outfile=/scratch/kocevski/405954/cmap_677894401_678153601_4FGL_J1604.6+5714_daily_bin1692.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.56
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/405954/ft1_filtered_4FGL_J1604.6+5714_daily_bin1692.fits scfile=/scratch/kocevski/405954/ft2_4FGL_J1604.6+5714_daily_bin1692.fits outfile=/scratch/kocevski/405954/cmap_HighResolution_677894401_678153601_4FGL_J1604.6+5714_daily_bin1692.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.62
user 0.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    29.946       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    3.2029       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    28.364       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.9467       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.6184       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10440E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.9655       1.0000         .10000E-03   10000.    
    11 'norm      '    5.6544       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10207E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    16.611       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.1331       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.3327       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    18.194       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10451E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    10.704       1.0000         .10000E-03   10000.    
    23 'Prefactor '    5.7866       1.0000         .10000E-03   10000.    
    24 'Prefactor '    9.9443       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    1.8539       1.0000         .10000E-03   10000.    
    27 'Prefactor '    9.1835       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .81046       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.3169       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8656.079     FROM MIGRAD    STATUS=CONVERGED    729 CALLS     3706 TOTAL
                     EDM=   .67E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     29.948        36.905         .0000       -.47075E-03
   2  Prefactor     .10000E-03    5.7875         .0000    ** at limit **
   3  norm          3.2030        1.8094         .0000        .13900E-02
   4  Prefactor     .10000E-03    9.8929         .0000    ** at limit **
   5  Prefactor     28.368        10.461         .0000       -.14949E-02
   6  Prefactor     4.9467        15.162         .0000        .15297E-03
   7  Prefactor     .10000E-03    17.397         .0000    ** at limit **
   8  norm          1.6175        2.1792         .0000        .95770E-03
   9  Prefactor     .10001E-03    114.49         .0000    ** at limit **
  10  Prefactor     4.9665        8.8458         .0000        .59217E-02
  11  norm          5.6543        8.7707         .0000        .66214E-02
  12  Prefactor     .10000E-03    12.549         .0000    ** at limit **
  13  Prefactor     .10000E-03    43.462         .0000    ** at limit **
  14  Prefactor     .10000E-03    2.1033         .0000    ** at limit **
  15  Prefactor     16.609        19.995         .0000        .36788E-03
  16  Prefactor     2.1342        5.5072         .0000        .21532E-01
  17  norm          .10000E-03    6.7750         .0000    ** at limit **
  18  Prefactor     3.3332        2.7723         .0000        .46117E-03
  19  Prefactor     .10000E-03    3.7053         .0000    ** at limit **
  20  norm          18.194        7.8521         .0000       -.18714E-03
  21  Prefactor     .10000E-03    1.4802         .0000    ** at limit **
  22  Prefactor     10.706        11.725         .0000       -.62734E-03
  23  Prefactor     5.7865        11.194         .0000        .19803E-02
  24  Prefactor     9.9444        6.7643         .0000        .23761E-02
  25  Prefactor     .10000E-03    3.8339         .0000    ** at limit **
  26  Prefactor     1.8534        8.0452         .0000        .13218E-01
  27  Prefactor     9.1823        75.317         .0000        .14622E-03
  28  Normalizat    .81033        .16636         .0000       -.32642E-03
  29  Prefactor     1.3169        .15882         .0000       -.32779E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 29.9477
  Prefactor  = 0.0001
  norm       = 3.20305
  Prefactor  = 0.0001
  Prefactor  = 28.3685
  Prefactor  = 4.94669
  Prefactor  = 0.0001
  norm       = 1.6175
  Prefactor  = 0.000100007
  Prefactor  = 4.96646
  norm       = 5.65432
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 16.609
  Prefactor  = 2.13424
  norm       = 0.0001
  Prefactor  = 3.33322
  Prefactor  = 0.0001
  norm       = 18.1938
  Prefactor  = 0.0001
  Prefactor  = 10.7063
  Prefactor  = 5.78655
  Prefactor  = 9.94445
  Prefactor  = 0.0001
  Prefactor  = 1.85342
  Prefactor  = 9.18234
  Normalizat = 0.810329
  Prefactor  = 1.31695
 **********
 **   18 **HESSE 
 **********

 FCN=   8656.079     FROM HESSE     STATUS=OK           553 CALLS     4259 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     29.948        36.923        .73216E-04   -1.4613    
   2  Prefactor     .10000E-03    5.7907        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.2030        1.8079        .91390E-04   -1.5350    
   4  Prefactor     .10000E-03    9.9548        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     28.368        10.561        .75225E-04   -1.4642    
   6  Prefactor     4.9467        15.175        .18083E-03   -1.5263    
   7  Prefactor     .10000E-03    17.478        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.6175        2.1581        .15324E-03   -1.5454    
   9  Prefactor     .10001E-03    114.96        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.9665        8.7219        .90239E-03   -1.5262    
  11  norm          5.6543        8.6639        .84466E-03   -1.5232    
  12  Prefactor     .10000E-03    12.566        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    43.508        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.1054        .13152E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     16.609        19.968        .49136E-03   -1.4893    
  16  Prefactor     2.1342        5.4936        .14113E-02   -1.5416    
  17  norm          .10000E-03    6.7818        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.3332        2.7638        .13675E-03   -1.5343    
  19  Prefactor     .10000E-03    3.7627        .17475E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          18.194        7.8499        .93899E-04   -1.4855    
  21  Prefactor     .10000E-03    4.0945        .21721E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     10.706        11.656        .12246E-03   -1.5053    
  23  Prefactor     5.7865        11.180        .83481E-03   -1.5227    
  24  Prefactor     9.9444        6.7617        .63535E-03   -1.5077    
  25  Prefactor     .10000E-03    3.8659        .17655E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     1.8534        7.9468        .15307E-02   -1.5436    
  27  Prefactor     9.1823        73.376        .13225E-03   -1.5102    
  28  Normalizat    .81033        .19977        .28464E-03   -.99687    
  29  Prefactor     1.3169        .19198        .23432E-03   -.82804    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.36307e-09
Minuit parameter uncertainties:
  1  36.9515
  2  6.8473e-06
  3  1.80798
  4  0.000117156
  5  10.5613
  6  15.1866
  7  1.60133e-06
  8  2.15817
  9  0.00181697
  10  8.72411
  11  8.66577
  12  1.8691e-05
  13  0.000328161
  14  2.19264e-08
  15  19.9761
  16  5.49488
  17  4.73279e-05
  18  2.76387
  19  1.20627e-05
  20  7.85033
  21  3.2238e-06
  22  11.6588
  23  11.1837
  24  6.76224
  25  3.98451e-07
  26  7.67711
  27  52.0015
  28  0.199956
  29  0.192084
Done.

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

Extracting fit parameters...

4FGL J1604.6+5714
   Spectrum: LogParabola
320         norm:  5.654e+00  8.666e+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:  1.317e+00  1.921e-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.103e-01  2.000e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/405954/likelihoodResults_677894401_678153601_4FGL_J1604.6+5714_daily_bin1692.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) = 8655.60340202
delta logL = 0.475888678639

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8655.6026187
delta logL = 0.476671999699

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.2218       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.1921       1.0000          .0000       5.0000    
     3 'Normalizat'    .77594       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3389       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=   8655.603     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      240 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.2291        76.248        .49030E-02    .83421E-03
   2  alpha         3.1916        4.0241        .43347        .76697E-04
   3  Normalizat    .77593        .48592E-01    .65619E-01    .38118E-04
   4  Prefactor     1.3388        .49000E-01    .52623E-01    .21892E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.2291
  alpha      = 3.19156
  Normalizat = 0.775935
  Prefactor  = 1.33885
 **********
 **   18 **HESSE 
 **********

 FCN=   8655.603     FROM HESSE     STATUS=OK            33 CALLS      273 TOTAL
                     EDM=   .59E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.2291        6.5567        .15041E-03   -1.5297    
   2  alpha         3.1916        1.0792        .18828E-01    .28028    
   3  Normalizat    .77593        .18753        .29030E-03   -1.0097    
   4  Prefactor     1.3388        .18871        .23265E-03   -.82159    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.93597e-11
Minuit parameter uncertainties:
  1  6.55779
  2  1.11923
  3  0.187682
  4  0.188803
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/405954': 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) = 8655.60261762
delta logL = 0.476673078907

Extracting fit parameters...

4FGL J1604.6+5714
   Spectrum: LogParabola
320         norm:  4.229e+00  6.558e+00  1.000e-04  1.000e+04 ( 1.000e-12)
321        alpha:  3.192e+00  1.119e+00  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.339e+00  1.888e-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:  7.759e-01  1.877e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.81
Ra Dec: 241.158 57.238
Photon Index (Free Index): 3.19 +/- 1.12
Photon Flux (Free Index): 4.74e-08 +/- 4.04e-08
Energy Flux (Free Index): 8.98e-06 +/- 7.98e-06

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/405954/cmap_HighResolution_677894401_678153601_4FGL_J1604.6+5714_daily_bin1692.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.77e-05', comment='SUCCESS', energy_flux2='8.98e-06', dlogl='4.77e-01', photon_flux2='4.74e-08', job_status='DONE', time_completed='2022-06-29 05:11:58.416885', photon_index_error2='1.12', photon_index2='3.19', ts='0.79', fit_tolerance='1e-08', GAL='1.32', photon_index_error='0.00', photon_flux_upper_limit='8.46e-08', energy_flux_error2='7.98e-06', EG='0.81', time_epoch_completed='1656504718.42', return_code='0', job_id='405954', GAL2='1.34', EG2='0.78', return_code2='0', photon_flux_error2='4.04e-08', ts2='1.81', photon_index='2.35' WHERE bin_id='1692' AND source_name='4FGL J1604.6+5714' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Jun 29 05:11:58 PDT 2022

='405955', GAL2='1.34', EG2='0.78', return_code2='0', photon_flux_error2='4.04e-08', ts2='1.81', photon_index='2.35' WHERE bin_id='1692' AND source_name='4FGL J1604.6+5714' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Jun 29 05:11:27 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0252>
Subject: Job 405955: <4FGL_J1604.6+5714_daily_bin1692> in cluster <slac> Done

Job <4FGL_J1604.6+5714_daily_bin1692> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Jun 29 00:07:18 2022
Job was executed on host(s) <bullet0252>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jun 29 04:50:00 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Jun 29 04:50:00 2022
Terminated at Wed Jun 29 05:11:28 2022
Results reported at Wed Jun 29 05:11:28 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1604.6+5714_daily_bin1692 241.158 57.2381 677894401 678153601 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 :                                   1235.00 sec.
    Max Memory :                                 618 MB
    Average Memory :                             307.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1287 sec.
    Turnaround time :                            18250 sec.

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


------------------------------------------------------------
Sender: LSF System <scs@bullet0181>
Subject: Job 405954: <4FGL_J1604.6+5714_daily_bin1692> in cluster <slac> Done

Job <4FGL_J1604.6+5714_daily_bin1692> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Jun 29 00:07:18 2022
Job was executed on host(s) <bullet0181>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jun 29 04:49:59 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Jun 29 04:49:59 2022
Terminated at Wed Jun 29 05:11:59 2022
Results reported at Wed Jun 29 05:11:59 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1604.6+5714_daily_bin1692 241.158 57.2381 677894401 678153601 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 :                                   1216.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             332.05 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1319 sec.
    Turnaround time :                            18281 sec.

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

