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


Performing analysis on: 4FGL_J1657.0+6010_daily_bin1668
RA = 254.258, Dec = 60.1676
tmin = 671673601, tmax = 671932801
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='555846', job_status='RUN', time_executed='2022-04-18 03:07:41.543838', time_epoch_executed='1650276461.54' WHERE source_name='4FGL J1657.0+6010' and cadence='daily' and bin_id='1668'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/555846

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/555846/ft1_4FGL_J1657.0+6010_daily_bin1668.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/555846/ft2_4FGL_J1657.0+6010_daily_bin1668.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/555846/ft1_4FGL_J1657.0+6010_daily_bin1668.fits outfile=/scratch/kocevski/555846/ft1_filteredMKT_4FGL_J1657.0+6010_daily_bin1668.fits ra=254.258 dec=60.1676 rad=12.0 tmin=671673601.0 tmax=671932801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.63
user 3.36
sys 0.22

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

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

Number of photons that the gtmktime cut: 857

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/555846/ft1_filtered_4FGL_J1657.0+6010_daily_bin1668.fits" evtable="EVENTS" scfile=/scratch/kocevski/555846/ft2_4FGL_J1657.0+6010_daily_bin1668.fits sctable="SC_DATA" outfile=/scratch/kocevski/555846/ltcube_671673601_671932801_4FGL_J1657.0+6010_daily_bin1668.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/555846/ft2_4FGL_J1657.0+6010_daily_bin1668.fits
.....................!
real 16.26
user 15.85
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/555846/ft1_filtered_4FGL_J1657.0+6010_daily_bin1668.fits evtable="EVENTS" scfile=/scratch/kocevski/555846/ft2_4FGL_J1657.0+6010_daily_bin1668.fits sctable="SC_DATA" expcube=/scratch/kocevski/555846/ltcube_671673601_671932801_4FGL_J1657.0+6010_daily_bin1668.fits outfile=/scratch/kocevski/555846/expmap_671673601_671932801_4FGL_J1657.0+6010_daily_bin1668.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/555846/ltcube_671673601_671932801_4FGL_J1657.0+6010_daily_bin1668.fits
.....................!
real 194.50
user 188.55
sys 5.37

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/555846/ft1_filtered_4FGL_J1657.0+6010_daily_bin1668.fits scfile=/scratch/kocevski/555846/ft2_4FGL_J1657.0+6010_daily_bin1668.fits outfile=/scratch/kocevski/555846/cmap_671673601_671932801_4FGL_J1657.0+6010_daily_bin1668.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.57
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/555846/ft1_filtered_4FGL_J1657.0+6010_daily_bin1668.fits scfile=/scratch/kocevski/555846/ft2_4FGL_J1657.0+6010_daily_bin1668.fits outfile=/scratch/kocevski/555846/cmap_HighResolution_671673601_671932801_4FGL_J1657.0+6010_daily_bin1668.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.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/555846/ft1_filtered_4FGL_J1657.0+6010_daily_bin1668.fits evtable="EVENTS" scfile=/scratch/kocevski/555846/ft2_4FGL_J1657.0+6010_daily_bin1668.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/555846/Model_4FGL_J1657.0+6010_daily_bin1668.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/555846/ft1_filtered_4FGL_J1657.0+6010_daily_bin1668.fits.....................!
real 78.37
user 76.30
sys 1.34

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/555846/ft1_filtered_4FGL_J1657.0+6010_daily_bin1668.fits', '/scratch/kocevski/555846/ft2_4FGL_J1657.0+6010_daily_bin1668.fits', expMap='/scratch/kocevski/555846/expmap_671673601_671932801_4FGL_J1657.0+6010_daily_bin1668.fits', expCube='/scratch/kocevski/555846/ltcube_671673601_671932801_4FGL_J1657.0+6010_daily_bin1668.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/555846/Model_4FGL_J1657.0+6010_daily_bin1668.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/555846/ft1_filtered_4FGL_J1657.0+6010_daily_bin1668.fits
Spacecraft file(s): /scratch/kocevski/555846/ft2_4FGL_J1657.0+6010_daily_bin1668.fits
Exposure map: /scratch/kocevski/555846/expmap_671673601_671932801_4FGL_J1657.0+6010_daily_bin1668.fits
Exposure cube: /scratch/kocevski/555846/ltcube_671673601_671932801_4FGL_J1657.0+6010_daily_bin1668.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/555846/Model_4FGL_J1657.0+6010_daily_bin1668.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) = 9086.73813848

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .75717       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10729E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.4882       1.0000         .10000E-03   10000.    
     4 'norm      '    4.6007       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10381E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .27138E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    37.707       1.0000         .10000E-03   10000.    
     8 'Prefactor '    15.205       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.8652       1.0000         .10000E-03   10000.    
    10 'norm      '    10.845       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.4686       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.4328       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.6932       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.1169       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.7170       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10396E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    5.9689       1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.4347       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .11933E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    16.583       1.0000         .10000E-03   10000.    
    25 'norm      '    .41042       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10119E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    25.116       1.0000         .10000E-03   10000.    
    29 'Prefactor '    21.696       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .65019       1.0000         .10000E-03   10000.    
    31 'norm      '    13.703       1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.1336       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .96631       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=   9086.728     FROM MIGRAD    STATUS=CONVERGED    985 CALLS     4724 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .76154        1.7697       -.34735E-06   -.40485E-04
   2  Prefactor     .10000E-03    197.48       -.12818E-05** at limit **
   3  Prefactor     1.4866        5.4590       -.19824E-06    .10334E-04
   4  norm          4.6034        7.9617        .25982E-06    .23467E-04
   5  Prefactor     .10000E-03    66.605       -.10229E-05** at limit **
   6  Prefactor     .10000E-03    3.3819       -.42341E-07** at limit **
   7  norm          37.699        20.397        .17975E-06   -.22701E-05
   8  Prefactor     15.204        6.8598        .25783E-07   -.21684E-04
   9  Prefactor     3.8564        28.093        .11390E-05    .13926E-04
  10  norm          10.845        8.1468        .46230E-08    .19061E-04
  11  Prefactor     2.4667        3.2407        .31374E-07   -.32505E-05
  12  Prefactor     7.4308        8.4890        .11268E-06   -.94409E-05
  13  Prefactor     .10000E-03    9.9971       -.41868E-06** at limit **
  14  norm          .10000E-03    .23587       -.29472E-06** at limit **
  15  Prefactor     3.6896        7.0794        .62186E-06    .56187E-04
  16  Prefactor     2.0925        26.355        .48138E-05    .47687E-04
  17  Prefactor     1.7220        5.0798        .74524E-06   -.72763E-04
  18  Prefactor     .10000E-03    4.0238        .43550E-06** at limit **
  19  Prefactor     .10000E-03    1.1418       -.55583E-07** at limit **
  20  Prefactor     .10000E-03    43.563        .35291E-06** at limit **
  21  norm          5.9677        5.4684        .17644E-07    .42913E-06
  22  Prefactor     5.4359        3.6729        .14424E-07    .55148E-05
  23  Prefactor     .10000E-03    75.928       -.17458E-06** at limit **
  24  Prefactor     16.580        76.580        .66039E-06    .15986E-05
  25  norm          .41007        1.2200       -.11613E-07   -.22065E-03
  26  Prefactor     .10000E-03    10.605        .13758E-06** at limit **
  27  Prefactor     .10000E-03    5.4327        .10793E-05** at limit **
  28  Prefactor     25.110        16.629        .70222E-07    .25512E-05
  29  Prefactor     21.699        25.258       -.64115E-06    .11103E-03
  30  Prefactor     .63155E-02    100.55       -.24276E-05    .53309E-04
  31  norm          13.700        8.9579        .19290E-07   -.23170E-04
  32  Normalizat    1.1336        .18086        .60731E-06    .46698E-04
  33  Prefactor     .96660        .14288       -.85042E-06    .31227E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.761544
  Prefactor  = 0.0001
  Prefactor  = 1.48656
  norm       = 4.60343
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 37.6989
  Prefactor  = 15.2035
  Prefactor  = 3.85639
  norm       = 10.8447
  Prefactor  = 2.4667
  Prefactor  = 7.43084
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.68955
  Prefactor  = 2.09252
  Prefactor  = 1.722
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.96775
  Prefactor  = 5.43588
  Prefactor  = 0.0001
  Prefactor  = 16.5804
  norm       = 0.41007
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 25.1102
  Prefactor  = 21.6987
  Prefactor  = 0.00631554
  norm       = 13.6997
  Normalizat = 1.13363
  Prefactor  = 0.966604
 **********
 **   18 **HESSE 
 **********

 FCN=   9086.728     FROM HESSE     STATUS=OK           721 CALLS     5445 TOTAL
                     EDM=   .38E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .76154        1.6704        .18730E-02   -1.5533    
   2  Prefactor     .10000E-03    198.13        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.4866        5.2806        .35152E-03   -1.5464    
   4  norm          4.6034        7.7998        .18766E-03   -1.5279    
   5  Prefactor     .10000E-03    67.030        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    25.357        .33581E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          37.699        20.231        .65269E-04   -1.4479    
   8  Prefactor     15.204        6.8874        .10272E-03   -1.4928    
   9  Prefactor     3.8564        27.979        .20525E-03   -1.5315    
  10  norm          10.845        8.1421        .12166E-03   -1.5049    
  11  Prefactor     2.4667        3.2270        .18641E-03   -1.5394    
  12  Prefactor     7.4308        8.4800        .73554E-03   -1.5163    
  13  Prefactor     .10000E-03    10.044        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    .43064        .87471E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.6896        7.0224        .21015E-03   -1.5324    
  16  Prefactor     2.0925        26.617        .14175E-02   -1.5419    
  17  Prefactor     1.7220        5.0880        .16033E-02   -1.5446    
  18  Prefactor     .10000E-03    4.0326        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    1.1471        .99442E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    43.712        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          5.9677        5.4661        .16436E-03   -1.5219    
  22  Prefactor     5.4359        3.6690        .71967E-03   -1.5242    
  23  Prefactor     .10000E-03    76.598        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     16.580        76.385        .98354E-04   -1.4893    
  25  norm          .41007        1.3504        .17470E-02   -1.5580    
  26  Prefactor     .10000E-03    10.629        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    5.3929        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     25.110        16.621        .79931E-04   -1.4705    
  29  Prefactor     21.699        25.257        .85992E-04   -1.4776    
  30  Prefactor     .63155E-02    94.017        .32755       -1.5692    
  31  norm          13.700        8.9555        .10821E-03   -1.4968    
  32  Normalizat    1.1336        .20681        .27046E-03   -.88679    
  33  Prefactor     .96660        .16464        .24428E-03   -.93851    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.83615e-08
Minuit parameter uncertainties:
  1  1.67055
  2  0.000391824
  3  5.28229
  4  7.80147
  5  0.000163571
  6  0.000101522
  7  20.2344
  8  6.88775
  9  20.7883
  10  8.14296
  11  3.22724
  12  8.48139
  13  2.43699e-05
  14  5.77135e-06
  15  7.02393
  16  14.9337
  17  5.08931
  18  1.57878e-05
  19  1.03358e-06
  20  3.99772e-06
  21  5.46654
  22  3.66918
  23  3.39825e-05
  24  71.326
  25  1.35051
  26  8.13693e-06
  27  4.85643e-05
  28  16.6239
  29  25.2697
  30  1.53129
  31  8.9564
  32  0.20696
  33  0.164726
Done.

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

Extracting fit parameters...

4FGL J1657.0+6010
   Spectrum: PowerLaw
375    Prefactor:  1.000e-04  2.437e-05  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:  9.666e-01  1.647e-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:  1.134e+00  2.070e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/555846/likelihoodResults_671673601_671932801_4FGL_J1657.0+6010_daily_bin1668.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9086.72894236
delta logL = -0.000474516025861

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9086.72846804
delta logL = -1.9944855012e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10120E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4414       1.0000          .0000       10.000    
     3 'Normalizat'    1.1335       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96669       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.

 FCN=   9086.728     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      207 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1373.2        .90712E-02** at limit **
   2  Index         2.4350        6.3080        .50000        .55103E-05
   3  Normalizat    1.1336        .62236E-01    .61148E-01    .17931E-04
   4  Prefactor     .96660        .52449E-01    .45849E-01    .17949E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.43495
  Normalizat = 1.13363
  Prefactor  = 0.966602
 **********
 **   18 **HESSE 
 **********

 FCN=   9086.728     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      240 TOTAL
                     EDM=   .64E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1699.3        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4350        6.1727        .50000       -.53869    
   3  Normalizat    1.1336        .78546E-01    .27046E-03   -.88679    
   4  Prefactor     .96660        .66437E-01    .24428E-03   -.93851    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.39658e-09
Minuit parameter uncertainties:
  1  0.000123094
  2  57.5503
  3  0.0785544
  4  0.0664427
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/555846': 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): 102
logL (Free Index) = 9086.72846782
delta logL = 1.71494320966e-08

Extracting fit parameters...

4FGL J1657.0+6010
   Spectrum: PowerLaw
375    Prefactor:  1.000e-04  1.231e-04  1.000e-04  1.000e+04 ( 1.000e-13)
376        Index:  2.435e+00  5.755e+01  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:  9.666e-01  6.644e-02  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:  1.134e+00  7.855e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/555846/cmap_HighResolution_671673601_671932801_4FGL_J1657.0+6010_daily_bin1668.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.35e-03', job_status='DONE', photon_flux_upper_limit='5.61e-08', time_completed='2022-04-18 03:33:23.261673', job_id='555846', GAL2='0.97', fit_tolerance='1e-08', EG2='1.13', EG='1.13', time_epoch_completed='1650278003.26', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='1.71e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='1668' AND source_name='4FGL J1657.0+6010' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Apr 18 03:33:23 PDT 2022

------------------------------------------------------------
Sender: LSF System <lsf@bullet0038>
Subject: Job 555584: <4FGL_J1657.0+6010_daily_bin1668> in cluster <slac> Done

Job <4FGL_J1657.0+6010_daily_bin1668> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Apr 18 00:07:37 2022
Job was executed on host(s) <bullet0038>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Apr 18 03:00:52 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Apr 18 03:00:52 2022
Terminated at Mon Apr 18 03:26:41 2022
Results reported at Mon Apr 18 03:26:41 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1657.0+6010_daily_bin1668 254.258 60.1676 671673601 671932801 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 :                                   1530.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             334.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1549 sec.
    Turnaround time :                            11944 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0154>
Subject: Job 555846: <4FGL_J1657.0+6010_daily_bin1668> in cluster <slac> Done

Job <4FGL_J1657.0+6010_daily_bin1668> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Apr 18 00:07:50 2022
Job was executed on host(s) <bullet0154>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Apr 18 03:06:14 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Apr 18 03:06:14 2022
Terminated at Mon Apr 18 03:33:24 2022
Results reported at Mon Apr 18 03:33:24 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1657.0+6010_daily_bin1668 254.258 60.1676 671673601 671932801 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 :                                   1539.26 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             323.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1629 sec.
    Turnaround time :                            12334 sec.

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

