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


Performing analysis on: 4FGL_J1604.6+5714_daily_bin1746
RA = 241.158, Dec = 57.2381
tmin = 691891201, tmax = 692150401
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='731200', job_status='RUN', time_executed='2022-12-08 01:10:45.913631', time_epoch_executed='1670490645.91' WHERE source_name='4FGL J1604.6+5714' and cadence='daily' and bin_id='1746'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/731200

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/731200/ft1_4FGL_J1604.6+5714_daily_bin1746.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/731200/ft2_4FGL_J1604.6+5714_daily_bin1746.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/731200/ft1_4FGL_J1604.6+5714_daily_bin1746.fits outfile=/scratch/kocevski/731200/ft1_filteredMKT_4FGL_J1604.6+5714_daily_bin1746.fits ra=241.158 dec=57.2381 rad=12.0 tmin=691891201.0 tmax=692150401.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.75
user 4.51
sys 0.23

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

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

Number of photons that the gtmktime cut: 739

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/731200/ft1_filtered_4FGL_J1604.6+5714_daily_bin1746.fits" evtable="EVENTS" scfile=/scratch/kocevski/731200/ft2_4FGL_J1604.6+5714_daily_bin1746.fits sctable="SC_DATA" outfile=/scratch/kocevski/731200/ltcube_691891201_692150401_4FGL_J1604.6+5714_daily_bin1746.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/731200/ft2_4FGL_J1604.6+5714_daily_bin1746.fits
.....................!
real 11.88
user 11.51
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/731200/ft1_filtered_4FGL_J1604.6+5714_daily_bin1746.fits evtable="EVENTS" scfile=/scratch/kocevski/731200/ft2_4FGL_J1604.6+5714_daily_bin1746.fits sctable="SC_DATA" expcube=/scratch/kocevski/731200/ltcube_691891201_692150401_4FGL_J1604.6+5714_daily_bin1746.fits outfile=/scratch/kocevski/731200/expmap_691891201_692150401_4FGL_J1604.6+5714_daily_bin1746.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/731200/ltcube_691891201_692150401_4FGL_J1604.6+5714_daily_bin1746.fits
.....................!
real 190.98
user 185.98
sys 4.65

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/731200/ft1_filtered_4FGL_J1604.6+5714_daily_bin1746.fits scfile=/scratch/kocevski/731200/ft2_4FGL_J1604.6+5714_daily_bin1746.fits outfile=/scratch/kocevski/731200/cmap_691891201_692150401_4FGL_J1604.6+5714_daily_bin1746.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/731200/ft1_filtered_4FGL_J1604.6+5714_daily_bin1746.fits scfile=/scratch/kocevski/731200/ft2_4FGL_J1604.6+5714_daily_bin1746.fits outfile=/scratch/kocevski/731200/cmap_HighResolution_691891201_692150401_4FGL_J1604.6+5714_daily_bin1746.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.54
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    29.786       1.0000          .0000       .10000E+07
     2 'Prefactor '    .20589E-05   1.0000          .0000       .10000E+07
     3 'norm      '    1.5378       1.0000          .0000       .10000E+07
     4 'Prefactor '    15.589       1.0000          .0000       .10000E+07
     5 'Prefactor '    12.813       1.0000          .0000       .10000E+07
     6 'Prefactor '    29.583       1.0000          .0000       .10000E+07
     7 'norm      '    .31770E-05   1.0000          .0000       .10000E+07
     8 'Prefactor '    22.980       1.0000          .0000       .10000E+07
     9 'Prefactor '    .47775E-05   1.0000          .0000       .10000E+07
    10 'norm      '    .32829E-05   1.0000          .0000       .10000E+07
    11 'Prefactor '    3.9696       1.0000          .0000       .10000E+07
    12 'Prefactor '    24.064       1.0000          .0000       .10000E+07
    13 'Prefactor '    .79203E-04   1.0000          .0000       .10000E+07
    14 'Prefactor '    12.473       1.0000          .0000       .10000E+07
    15 'Prefactor '    .59963E-06   1.0000          .0000       .10000E+07
    16 'norm      '    15.845       1.0000          .0000       .10000E+07
    17 'Prefactor '    .63391E-04   1.0000          .0000       .10000E+07
    18 'Prefactor '    6.7935       1.0000          .0000       .10000E+07
    19 'norm      '    .28033E-06   1.0000          .0000       .10000E+07
    20 'Prefactor '    3.0523       1.0000          .0000       .10000E+07
    21 'Prefactor '    5.6983       1.0000          .0000       .10000E+07
    22 'Prefactor '    14.580       1.0000          .0000       .10000E+07
    23 'Prefactor '    .45797E-04   1.0000          .0000       .10000E+07
    24 'Prefactor '    .59757       1.0000          .0000       .10000E+07
    25 'Prefactor '    .18092E-04   1.0000          .0000       .10000E+07
    26 'Prefactor '    14.871       1.0000          .0000       .10000E+07
    27 'Normalizat'    .95422       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .97180       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=   7994.751     FROM MIGRAD    STATUS=CONVERGED    145 CALLS     2603 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     29.738        7.3123       -.31631E-07   -.11944    
   2  Prefactor     .61062E-09    17.621        .36335E-06** at limit **
   3  norm          1.5377        1.3418        .11867E-07    .21712E-02
   4  Prefactor     15.600        10.550        .94110E-08    .29049E-01
   5  Prefactor     12.812        6.0040       -.89664E-08   -.18851E-01
   6  Prefactor     29.669        10.395        .42975E-07    .93287E-01
   7  norm          .22204E-09    2.6891        .13803E-07** at limit **
   8  Prefactor     22.884        2.4879       -.13881E-07   -.13352E-01
   9  Prefactor     .16653E-09    2.5504       -.10813E-06** at limit **
  10  norm          .33307E-09    1.5488       -.61782E-07** at limit **
  11  Prefactor     3.9357        2.2025       -.14258E-07    .62525E-02
  12  Prefactor     24.405        28.605        .15038E-06   -.14619E-02
  13  Prefactor     .11102E-09    4.2338       -.61432E-07** at limit **
  14  Prefactor     12.463        16.708        .74138E-07   -.53694E-01
  15  Prefactor     .23037E-07    1.1023       -.57749E-07** at limit **
  16  norm          15.836        6.5524       -.10158E-07    .12219E-01
  17  Prefactor     .55511E-10    2.9483       -.40121E-07** at limit **
  18  Prefactor     6.7890        5.7120        .44738E-08    .86812E-04
  19  norm          .27978E-07    1.0710       -.30640E-07** at limit **
  20  Prefactor     3.0513        2.3269       -.52452E-07   -.10959E-01
  21  Prefactor     5.7056        5.3515        .16340E-07   -.25578E-03
  22  Prefactor     14.575        4.1935        .24887E-07   -.46663E-01
  23  Prefactor     .55511E-10    3.8466       -.35712E-07** at limit **
  24  Prefactor     .65279        7.5910        .15682E-06   -.19649E-01
  25  Prefactor      .0000        2.2140       -.52395E-07** at limit **
  26  Prefactor     14.187        55.208       -.37379E-06    .12641E-02
  27  Normalizat    .95404        .17286       -.61197E-06   -.41323E-03
  28  Prefactor     .97194        .17170       -.54893E-06   -.43456E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 29.7384
  Prefactor  = 6.10623e-10
  norm       = 1.53769
  Prefactor  = 15.6003
  Prefactor  = 12.8123
  Prefactor  = 29.6691
  norm       = 2.22045e-10
  Prefactor  = 22.8842
  Prefactor  = 1.66533e-10
  norm       = 3.33067e-10
  Prefactor  = 3.93568
  Prefactor  = 24.4052
  Prefactor  = 1.11022e-10
  Prefactor  = 12.4629
  Prefactor  = 2.30371e-08
  norm       = 15.8361
  Prefactor  = 5.55112e-11
  Prefactor  = 6.78902
  norm       = 2.79776e-08
  Prefactor  = 3.0513
  Prefactor  = 5.70556
  Prefactor  = 14.5745
  Prefactor  = 5.55112e-11
  Prefactor  = 0.652793
  Prefactor  = 0
  Prefactor  = 14.187
  Normalizat = 0.95404
  Prefactor  = 0.971938
 **********
 **   18 **HESSE 
 **********

 FCN=   7994.751     FROM HESSE     STATUS=OK           579 CALLS     3182 TOTAL
                     EDM=   .79E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     29.738        28.615        .18326E-03   -1.5599    
   2  Prefactor     .61062E-09    17.539        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.5377        1.3530        .85971E-03   -1.5683    
   4  Prefactor     15.600        12.673        .25341E-03   -1.5629    
   5  Prefactor     12.812        9.1950        .27959E-03   -1.5636    
   6  Prefactor     29.669        23.352        .18389E-03   -1.5599    
   7  norm          .22204E-09    2.6624        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     22.884        62.306        .20866E-03   -1.5612    
   9  Prefactor     .16653E-09    2.5548        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .33307E-09    1.5540        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.9357        31.863        .50601E-03   -1.5668    
  12  Prefactor     24.405        63.681        .20390E-03   -1.5609    
  13  Prefactor     .11102E-09    4.2542        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     12.463        19.866        .28338E-03   -1.5637    
  15  Prefactor     .23037E-07    2.1261        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          15.836        14.236        .25135E-03   -1.5628    
  17  Prefactor     .55511E-10    2.9231        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     6.7890        5.8411        .38472E-03   -1.5656    
  19  norm          .27978E-07    2.0657        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     3.0513        2.3390        .58044E-03   -1.5673    
  21  Prefactor     5.7056        5.3552        .42055E-03   -1.5660    
  22  Prefactor     14.575        16.383        .26205E-03   -1.5632    
  23  Prefactor     .55511E-10    3.8426        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .65279        27.123        .69446E-03   -1.5692    
  25  Prefactor      .0000        2.2140        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     14.187        101.61        .25947E-03   -1.5633    
  27  Normalizat    .95404        .15465        .45591E-01   -.94586    
  28  Prefactor     .97194        .14668        .45914E-01   -.93671    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.87939e-07
Minuit parameter uncertainties:
  1  28.6148
  2  0.000206723
  3  1.35302
  4  12.6726
  5  9.19499
  6  23.3521
  7  4.75e-05
  8  62.3076
  9  4.08672e-05
  10  4.36374e-05
  11  22.397
  12  63.6828
  13  4.84393e-05
  14  19.8663
  15  0.000442373
  16  14.2356
  17  2.11635e-05
  18  5.8411
  19  0.000480759
  20  2.33896
  21  5.35521
  22  16.3834
  23  2.76822e-05
  24  8.41565
  25  4.72605e-06
  26  75.9366
  27  0.154725
  28  0.146736
Done.

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

Extracting fit parameters...

4FGL J1604.6+5714
   Spectrum: LogParabola
320         norm:  3.331e-10  4.364e-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.719e-01  1.467e-01  0.000e+00  1.000e+01 ( 1.000e+00)
705        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
706        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
703   Normalization:  9.540e-01  1.547e-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.43e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.12e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/731200/likelihoodResults_691891201_692150401_4FGL_J1604.6+5714_daily_bin1746.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) = 7994.75184711
delta logL = -0.00120039988542

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7994.75064783
delta logL = -1.12058569357e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .78310E-06   1.0000          .0000       .10000E+07
     2 'alpha     '    1.3161       1.0000          .0000       5.0000    
     3 'Normalizat'    .95383       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97214       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=   7994.751     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      257 TOTAL
                     EDM=   .60E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .22204E-09    1.0919        .42118E-03** at limit **
   2  alpha         3.6930        3.6992        .49442        .27593E-10
   3  Normalizat    .95404        .14324        .45586E-01   -.62850E-03
   4  Prefactor     .97194        .14485        .45918E-01   -.74075E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.22045e-10
  alpha      = 3.69301
  Normalizat = 0.954041
  Prefactor  = 0.971937
 **********
 **   18 **HESSE 
 **********

 FCN=   7994.751     FROM HESSE     STATUS=OK            25 CALLS      282 TOTAL
                     EDM=   .62E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .22204E-09    1.1046        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         3.6930        3.6987        .50000        .49747    
   3  Normalizat    .95404        .16813        .23793E-03   -.94586    
   4  Prefactor     .97194        .17010        .23745E-03   -.93671    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.24243e-10
Minuit parameter uncertainties:
  1  3.1855e-05
  2  2.19725
  3  0.168224
  4  0.170192
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/731200': 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) = 7994.75064671
delta logL = -1.32786226459e-10

Extracting fit parameters...

4FGL J1604.6+5714
   Spectrum: LogParabola
320         norm:  2.220e-10  3.186e-05  0.000e+00  1.000e+06 ( 1.000e-12)
321        alpha:  3.693e+00  2.197e+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.719e-01  1.702e-01  0.000e+00  1.000e+01 ( 1.000e+00)
705        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
706        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
703   Normalization:  9.540e-01  1.682e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/731200/cmap_HighResolution_691891201_692150401_4FGL_J1604.6+5714_daily_bin1746.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.12e-05', job_status='DONE', photon_flux_upper_limit='3.43e-08', time_completed='2022-12-08 01:26:59.251607', job_id='731200', GAL2='0.97', fit_tolerance='1e-08', EG2='0.95', EG='0.95', time_epoch_completed='1670491619.25', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='-1.33e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.35' WHERE bin_id='1746' AND source_name='4FGL J1604.6+5714' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Dec  8 01:26:59 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0101>
Subject: Job 731200: <4FGL_J1604.6+5714_daily_bin1746> in cluster <slac> Done

Job <4FGL_J1604.6+5714_daily_bin1746> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Dec  8 01:10:21 2022
Job was executed on host(s) <bullet0101>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Dec  8 01:10:21 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Dec  8 01:10:21 2022
Terminated at Thu Dec  8 01:27:00 2022
Results reported at Thu Dec  8 01:27:00 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1604.6+5714_daily_bin1746 241.158 57.2381 691891201 692150401 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 :                                   975.07 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             352.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   998 sec.
    Turnaround time :                            999 sec.

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

