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 48 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_J1657.0+6010_daily_bin1692
RA = 254.258, Dec = 60.1676
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='406101', job_status='RUN', time_executed='2022-06-29 04:51:59.952909', time_epoch_executed='1656503519.95' WHERE source_name='4FGL J1657.0+6010' and cadence='daily' and bin_id='1692'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/406101

Creating custom pfile directory:
/scratch/kocevski/406101/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/406101/ft1_4FGL_J1657.0+6010_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/406101/ft2_4FGL_J1657.0+6010_daily_bin1692.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/406101/ft1_4FGL_J1657.0+6010_daily_bin1692.fits outfile=/scratch/kocevski/406101/ft1_filteredMKT_4FGL_J1657.0+6010_daily_bin1692.fits ra=254.258 dec=60.1676 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.55
user 4.27
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/406101/ft2_4FGL_J1657.0+6010_daily_bin1692.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/406101/ft2_4FGL_J1657.0+6010_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/406101/ft1_filteredMKT_4FGL_J1657.0+6010_daily_bin1692.fits evtable="EVENTS" outfile="/scratch/kocevski/406101/ft1_filtered_4FGL_J1657.0+6010_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.50
user 0.34
sys 0.15

Number of photons that the gtmktime cut: 935

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/406101/ft1_filtered_4FGL_J1657.0+6010_daily_bin1692.fits" evtable="EVENTS" scfile=/scratch/kocevski/406101/ft2_4FGL_J1657.0+6010_daily_bin1692.fits sctable="SC_DATA" outfile=/scratch/kocevski/406101/ltcube_677894401_678153601_4FGL_J1657.0+6010_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/406101/ft2_4FGL_J1657.0+6010_daily_bin1692.fits
.....................!
real 13.85
user 13.37
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/406101/ft1_filtered_4FGL_J1657.0+6010_daily_bin1692.fits evtable="EVENTS" scfile=/scratch/kocevski/406101/ft2_4FGL_J1657.0+6010_daily_bin1692.fits sctable="SC_DATA" expcube=/scratch/kocevski/406101/ltcube_677894401_678153601_4FGL_J1657.0+6010_daily_bin1692.fits outfile=/scratch/kocevski/406101/expmap_677894401_678153601_4FGL_J1657.0+6010_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/406101/ltcube_677894401_678153601_4FGL_J1657.0+6010_daily_bin1692.fits
.....................!
real 192.49
user 186.17
sys 5.18

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 222 point sources and 0 extended sources

Setting source of interest to:
4FGL J1657.0+6010 @ 254.258 60.1676

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/406101/ft1_filtered_4FGL_J1657.0+6010_daily_bin1692.fits scfile=/scratch/kocevski/406101/ft2_4FGL_J1657.0+6010_daily_bin1692.fits outfile=/scratch/kocevski/406101/cmap_677894401_678153601_4FGL_J1657.0+6010_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=254.258 yref=60.1676 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.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/406101/ft1_filtered_4FGL_J1657.0+6010_daily_bin1692.fits scfile=/scratch/kocevski/406101/ft2_4FGL_J1657.0+6010_daily_bin1692.fits outfile=/scratch/kocevski/406101/cmap_HighResolution_677894401_678153601_4FGL_J1657.0+6010_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=254.258 yref=60.1676 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.56
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/406101/ft1_filtered_4FGL_J1657.0+6010_daily_bin1692.fits evtable="EVENTS" scfile=/scratch/kocevski/406101/ft2_4FGL_J1657.0+6010_daily_bin1692.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/406101/Model_4FGL_J1657.0+6010_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/406101/ft1_filtered_4FGL_J1657.0+6010_daily_bin1692.fits.....................!
real 86.68
user 82.99
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/406101/ft1_filtered_4FGL_J1657.0+6010_daily_bin1692.fits', '/scratch/kocevski/406101/ft2_4FGL_J1657.0+6010_daily_bin1692.fits', expMap='/scratch/kocevski/406101/expmap_677894401_678153601_4FGL_J1657.0+6010_daily_bin1692.fits', expCube='/scratch/kocevski/406101/ltcube_677894401_678153601_4FGL_J1657.0+6010_daily_bin1692.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/406101/Model_4FGL_J1657.0+6010_daily_bin1692.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1657.0+6010'

4FGL J1657.0+6010
   Spectrum: PowerLaw
375    Prefactor:  3.318e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
376        Index:  2.448e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
377        Scale:  9.922e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/406101/ft1_filtered_4FGL_J1657.0+6010_daily_bin1692.fits
Spacecraft file(s): /scratch/kocevski/406101/ft2_4FGL_J1657.0+6010_daily_bin1692.fits
Exposure map: /scratch/kocevski/406101/expmap_677894401_678153601_4FGL_J1657.0+6010_daily_bin1692.fits
Exposure cube: /scratch/kocevski/406101/ltcube_677894401_678153601_4FGL_J1657.0+6010_daily_bin1692.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/406101/Model_4FGL_J1657.0+6010_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) = 9938.46368215

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.9429       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10357E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.1814       1.0000         .10000E-03   10000.    
     4 'norm      '    6.4682       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.9268       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    18.933       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .30433E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.454       1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.8243       1.0000         .10000E-03   10000.    
    14 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    13.681       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .87746E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11284E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.3522       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    24.529       1.0000         .10000E-03   10000.    
    21 'norm      '    4.5156       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .84494       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    1.5900       1.0000         .10000E-03   10000.    
    26 'Prefactor '    27.002       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    4.7630       1.0000         .10000E-03   10000.    
    32 'Normalizat'    .79530       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.2778       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7220E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9938.321     FROM MIGRAD    STATUS=CONVERGED    909 CALLS     4685 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.9431        2.3329        .81730E-07    .40804E-04
   2  Prefactor     .10000E-03    196.55       -.27417E-05** at limit **
   3  Prefactor     5.1820        8.9421        .55812E-06    .74786E-04
   4  norm          6.4696        8.8940        .48884E-06    .83927E-04
   5  Prefactor     .10000E-03    13.379        .66969E-07** at limit **
   6  Prefactor     2.9258        5.6606        .24260E-05    .21456E-03
   7  norm          .10000E-03    6.9284        .20758E-06** at limit **
   8  Prefactor     .10000E-03    4.3957       -.23872E-06** at limit **
   9  Prefactor     .10000E-03    7.3561       -.24372E-06** at limit **
  10  norm          18.933        7.9869        .29549E-08   -.19569E-03
  11  Prefactor     .10000E-03    1.0605        .21487E-07** at limit **
  12  Prefactor     12.451        11.982        .36972E-06    .83418E-04
  13  Prefactor     6.8238        11.583       -.68789E-06   -.20786E-03
  14  norm          .10000E-03    .20433        .32684E-07** at limit **
  15  Prefactor     13.682        7.2573        .25985E-06   -.12621E-03
  16  Prefactor     .10001E-03    4.4954        .35368E-05** at limit **
  17  Prefactor     .10000E-03    4.8347        .46983E-05** at limit **
  18  Prefactor     1.3554        9.6602        .11277E-04   -.15362E-03
  19  Prefactor     .10000E-03    1.3930       -.35794E-06** at limit **
  20  Prefactor     24.461        53.308       -.57709E-05   -.89755E-04
  21  norm          4.5004        9.4856        .31396E-05    .48482E-03
  22  Prefactor     .85339        4.1062       -.13726E-05   -.31134E-03
  23  Prefactor     .10000E-03    24.752       -.14581E-05** at limit **
  24  Prefactor     .10001E-03    29.157        .32438E-05** at limit **
  25  norm          1.5903        2.1079        .12429E-06   -.36054E-05
  26  Prefactor     26.999        17.631        .18695E-06    .17441E-04
  27  Prefactor     .10000E-03    2.5315        .10150E-06** at limit **
  28  Prefactor     .10000E-03    5.1534       -.10178E-06** at limit **
  29  Prefactor     .10000E-03    7.5689       -.54434E-07** at limit **
  30  Prefactor     .10000E-03    39.086       -.17367E-05** at limit **
  31  norm          4.7628        4.6733        .23561E-06    .44491E-04
  32  Normalizat    .79520        .16080       -.14226E-05   -.41452E-05
  33  Prefactor     1.2778        .13262        .51272E-07   -.85354E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.94314
  Prefactor  = 0.000100001
  Prefactor  = 5.18196
  norm       = 6.46957
  Prefactor  = 0.0001
  Prefactor  = 2.92577
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 18.9333
  Prefactor  = 0.0001
  Prefactor  = 12.4514
  Prefactor  = 6.82381
  norm       = 0.0001
  Prefactor  = 13.6817
  Prefactor  = 0.000100015
  Prefactor  = 0.000100001
  Prefactor  = 1.3554
  Prefactor  = 0.0001
  Prefactor  = 24.4606
  norm       = 4.50036
  Prefactor  = 0.853393
  Prefactor  = 0.000100002
  Prefactor  = 0.000100007
  norm       = 1.59026
  Prefactor  = 26.9992
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 4.76281
  Normalizat = 0.795204
  Prefactor  = 1.27783
 **********
 **   18 **HESSE 
 **********

 FCN=   9938.321     FROM HESSE     STATUS=OK           699 CALLS     5384 TOTAL
                     EDM=   .52E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.9431        2.3202        .16007E-03   -1.5429    
   2  Prefactor     .10000E-03    198.44        .20739E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.1820        8.8397        .88303E-03   -1.5253    
   4  norm          6.4696        8.8122        .78902E-03   -1.5199    
   5  Prefactor     .10000E-03    13.400        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.9258        5.6703        .11872E-02   -1.5366    
   7  norm          .10000E-03    6.9360        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.4806        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    7.3592        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          18.933        7.9870        .92049E-04   -1.4837    
  11  Prefactor     .10000E-03    4.7781        .19678E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     12.451        11.870        .11351E-03   -1.5002    
  13  Prefactor     6.8238        11.584        .15359E-03   -1.5185    
  14  norm          .10000E-03    .36567        .86328E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     13.682        7.1716        .10829E-03   -1.4968    
  16  Prefactor     .10001E-03    30.416        .36900E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.7040        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.3554        9.9224        .18806E-02   -1.5475    
  19  Prefactor     .10000E-03    1.4191        .11494E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     24.461        53.560        .80881E-04   -1.4718    
  21  norm          4.5004        9.1011        .18946E-03   -1.5284    
  22  Prefactor     .85339        6.9923        .30902E-02   -1.5523    
  23  Prefactor     .10000E-03    24.817        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10001E-03    29.266        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          1.5903        2.0896        .16073E-03   -1.5456    
  26  Prefactor     26.999        17.631        .77094E-04   -1.4668    
  27  Prefactor     .10000E-03    2.5396        .15488E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    5.1662        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    7.5778        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    39.123        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          4.7628        4.6704        .92179E-03   -1.5271    
  32  Normalizat    .79520        .18644        .30841E-03   -1.0025    
  33  Prefactor     1.2778        .15578        .21754E-03   -.83969    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.20398e-08
Minuit parameter uncertainties:
  1  2.3203
  2  0.000995329
  3  8.84188
  4  8.81397
  5  2.45625e-05
  6  5.67132
  7  2.48954e-05
  8  8.7485e-06
  9  2.91291e-05
  10  7.98745
  11  2.33109e-07
  12  11.8721
  13  11.5879
  14  3.01487e-06
  15  7.17208
  16  0.00133147
  17  0.000142115
  18  7.33599
  19  1.71686e-05
  20  53.6653
  21  9.10392
  22  4.88605
  23  0.000405609
  24  0.000881496
  25  2.08971
  26  17.634
  27  5.6824e-06
  28  9.31101e-06
  29  1.00659e-05
  30  0.000585885
  31  4.67074
  32  0.186586
  33  0.155833
Done.

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

Extracting fit parameters...

4FGL J1657.0+6010
   Spectrum: PowerLaw
375    Prefactor:  6.824e+00  1.159e+01  1.000e-04  1.000e+04 ( 1.000e-13)
376        Index:  2.448e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
377        Scale:  9.922e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
719    Prefactor:  1.278e+00  1.558e-01  0.000e+00  1.000e+01 ( 1.000e+00)
720        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
721        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
718   Normalization:  7.952e-01  1.866e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.48
Ra Dec: 254.258 60.168
Photon Flux Upper Limit: 6.83e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.30e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/406101/likelihoodResults_677894401_678153601_4FGL_J1657.0+6010_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) = 9938.31655806
delta logL = 0.00475954534704

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9938.31478269
delta logL = 0.0065349136803

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.6138       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3248       1.0000          .0000       10.000    
     3 'Normalizat'    .79685       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2769       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7220E+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=   9938.315     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      247 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.6146        14.731        .14534E-03   -.17491E-03
   2  Index         2.3242        1.0957        .14613E-01   -.67911E-04
   3  Normalizat    .79688        .17549        .30810E-03    .38353E-03
   4  Prefactor     1.2768        .15325        .21761E-03    .49025E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.61465
  Index      = 2.3242
  Normalizat = 0.796876
  Prefactor  = 1.27684
 **********
 **   18 **HESSE 
 **********

 FCN=   9938.315     FROM HESSE     STATUS=OK            25 CALLS      272 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.6146        14.040        .58134E-05   -1.5156    
   2  Index         2.3242        1.0456        .58453E-03   -.56470    
   3  Normalizat    .79688        .17555        .12324E-04   -1.0018    
   4  Prefactor     1.2768        .15331        .43522E-04   -.83998    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.28883e-10
Minuit parameter uncertainties:
  1  14.046
  2  1.05662
  3  0.175676
  4  0.15336
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/406101': 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) = 9938.3147825
delta logL = 0.00653510198936

Extracting fit parameters...

4FGL J1657.0+6010
   Spectrum: PowerLaw
375    Prefactor:  7.615e+00  1.405e+01  1.000e-04  1.000e+04 ( 1.000e-13)
376        Index:  2.324e+00  1.057e+00  0.000e+00  1.000e+01 (-1.000e+00)
377        Scale:  9.922e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
719    Prefactor:  1.277e+00  1.534e-01  0.000e+00  1.000e+01 ( 1.000e+00)
720        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
721        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
718   Normalization:  7.969e-01  1.757e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.48
Ra Dec: 254.258 60.168

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/406101/cmap_HighResolution_677894401_678153601_4FGL_J1657.0+6010_daily_bin1692.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.30e-03', job_status='DONE', photon_flux_upper_limit='6.83e-08', time_completed='2022-06-29 05:19:17.578076', job_id='406101', GAL2='1.28', fit_tolerance='1e-08', EG2='0.80', EG='0.80', time_epoch_completed='1656505157.58', return_code2='0', ts='0.48', comment='SUCCESS', return_code='0', GAL='1.28', dlogl='6.54e-03', ts2='0.49', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='1692' AND source_name='4FGL J1657.0+6010' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Jun 29 05:19:17 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0155>
Subject: Job 406100: <4FGL_J1657.0+6010_daily_bin1692> in cluster <slac> Done

Job <4FGL_J1657.0+6010_daily_bin1692> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Jun 29 00:07:26 2022
Job was executed on host(s) <bullet0155>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jun 29 04:50:52 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:52 2022
Terminated at Wed Jun 29 05:18:54 2022
Results reported at Wed Jun 29 05:18:54 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1657.0+6010_daily_bin1692 254.258 60.1676 677894401 678153601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1657.0+6010 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   1632.00 sec.
    Max Memory :                                 619 MB
    Average Memory :                             319.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1682 sec.
    Turnaround time :                            18688 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0270>
Subject: Job 406101: <4FGL_J1657.0+6010_daily_bin1692> in cluster <slac> Done

Job <4FGL_J1657.0+6010_daily_bin1692> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Jun 29 00:07:26 2022
Job was executed on host(s) <bullet0270>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jun 29 04:50:55 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:55 2022
Terminated at Wed Jun 29 05:19:18 2022
Results reported at Wed Jun 29 05:19:18 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1657.0+6010_daily_bin1692 254.258 60.1676 677894401 678153601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1657.0+6010 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   1634.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             325.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1704 sec.
    Turnaround time :                            18712 sec.

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

