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


Performing analysis on: 4FGL_J1657.0+6010_weekly_bin730
RA = 254.258, Dec = 60.1676
tmin = 680486401, tmax = 681091201
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='659585', job_status='RUN', time_executed='2022-08-02 02:21:01.098589', time_epoch_executed='1659432061.1' WHERE source_name='4FGL J1657.0+6010' and cadence='weekly' and bin_id='730'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/659585

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/659585/ft1_4FGL_J1657.0+6010_weekly_bin730.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/659585/ft2_4FGL_J1657.0+6010_weekly_bin730.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/659585/ft1_4FGL_J1657.0+6010_weekly_bin730.fits outfile=/scratch/kocevski/659585/ft1_filteredMKT_4FGL_J1657.0+6010_weekly_bin730.fits ra=254.258 dec=60.1676 rad=12.0 tmin=680486401.0 tmax=681091201.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 6.28
user 5.99
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/659585/ft2_4FGL_J1657.0+6010_weekly_bin730.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/659585/ft1_filteredMKT_4FGL_J1657.0+6010_weekly_bin730.fits evtable="EVENTS" outfile="/scratch/kocevski/659585/ft1_filtered_4FGL_J1657.0+6010_weekly_bin730.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.55
user 0.39
sys 0.16

Number of photons that the gtmktime cut: 3522

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/659585/ft1_filtered_4FGL_J1657.0+6010_weekly_bin730.fits evtable="EVENTS" scfile=/scratch/kocevski/659585/ft2_4FGL_J1657.0+6010_weekly_bin730.fits sctable="SC_DATA" expcube=/scratch/kocevski/659585/ltcube_680486401_681091201_4FGL_J1657.0+6010_weekly_bin730.fits outfile=/scratch/kocevski/659585/expmap_680486401_681091201_4FGL_J1657.0+6010_weekly_bin730.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/659585/ltcube_680486401_681091201_4FGL_J1657.0+6010_weekly_bin730.fits
.....................!
real 193.14
user 187.40
sys 4.85

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/659585/ft1_filtered_4FGL_J1657.0+6010_weekly_bin730.fits scfile=/scratch/kocevski/659585/ft2_4FGL_J1657.0+6010_weekly_bin730.fits outfile=/scratch/kocevski/659585/cmap_680486401_681091201_4FGL_J1657.0+6010_weekly_bin730.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.59
user 0.42
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/659585/ft1_filtered_4FGL_J1657.0+6010_weekly_bin730.fits scfile=/scratch/kocevski/659585/ft2_4FGL_J1657.0+6010_weekly_bin730.fits outfile=/scratch/kocevski/659585/cmap_HighResolution_680486401_681091201_4FGL_J1657.0+6010_weekly_bin730.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.59
user 0.43
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.5512       1.0000         .10000E-03   10000.    
     2 'Prefactor '    18.539       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.3962       1.0000         .10000E-03   10000.    
     4 'norm      '    4.7959       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.2132       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11678E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    15.514       1.0000         .10000E-03   10000.    
    10 'norm      '    18.335       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.0223       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10095E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.6671       1.0000         .10000E-03   10000.    
    14 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.6736       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .16424       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10119E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .54075       1.0000         .10000E-03   10000.    
    20 'Prefactor '    14.586       1.0000         .10000E-03   10000.    
    21 'norm      '    6.5528       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .84682       1.0000         .10000E-03   10000.    
    23 'Prefactor '    9.5503       1.0000         .10000E-03   10000.    
    24 'Prefactor '    29.898       1.0000         .10000E-03   10000.    
    25 'norm      '    4.3413       1.0000         .10000E-03   10000.    
    26 'Prefactor '    7.1574       1.0000         .10000E-03   10000.    
    27 'Prefactor '    1.7495       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10352E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    8.4183       1.0000         .10000E-03   10000.    
    32 'Normalizat'    .89515       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.0788       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   37406.80     FROM MIGRAD    STATUS=CONVERGED    881 CALLS     4028 TOTAL
                     EDM=   .25E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.5512        .75937         .0000       -.89392E-04
   2  Prefactor     18.539        28.281         .0000        .18769E-03
   3  Prefactor     4.3965        3.4309         .0000        .12814E-02
   4  norm          4.7959        2.9023         .0000        .18782E-01
   5  Prefactor     3.2135        8.1750         .0000        .24422E-03
   6  Prefactor     .10000E-03    .99544         .0000    ** at limit **
   7  norm          .10000E-03    4.4554         .0000    ** at limit **
   8  Prefactor     .10000E-03    .85430         .0000    ** at limit **
   9  Prefactor     15.513        13.090         .0000        .11036E-02
  10  norm          18.335        4.0110         .0000       -.15682E-03
  11  Prefactor     3.0224        1.1873         .0000        .10580E-02
  12  Prefactor     .10000E-03    1.0480         .0000    ** at limit **
  13  Prefactor     2.6674        4.1823         .0000        .19465E-01
  14  norm          .10000E-03    .61833E-01     .0000    ** at limit **
  15  Prefactor     5.6728        3.1756         .0000        .29582E-01
  16  Prefactor     .17772        1.1829         .0000        .20225E-02
  17  Prefactor     .10000E-03    .93106         .0000    ** at limit **
  18  Prefactor     .10000E-03    1.4843         .0000    ** at limit **
  19  Prefactor     .54071        .60086         .0000       -.10305E-02
  20  Prefactor     14.584        16.029         .0000        .11921E-02
  21  norm          6.5535        3.2369         .0000        .10459E-02
  22  Prefactor     .84616        1.6698         .0000        .66613E-02
  23  Prefactor     9.5517        12.808         .0000       -.53099E-03
  24  Prefactor     29.898        25.367         .0000       -.31368E-03
  25  norm          4.3412        1.0731         .0000        .65682E-04
  26  Prefactor     7.1573        6.2190         .0000        .96399E-04
  27  Prefactor     1.7505        4.5292         .0000        .16267E-02
  28  Prefactor     .10000E-03    3.5192         .0000    ** at limit **
  29  Prefactor     .10000E-03    9.3011         .0000    ** at limit **
  30  Prefactor     .10000E-03    13.544         .0000    ** at limit **
  31  norm          8.4182        3.6550         .0000        .64720E-03
  32  Normalizat    .89515        .82593E-01     .0000        .86545E-04
  33  Prefactor     1.0788        .67164E-01     .0000        .19192E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.55125
  Prefactor  = 18.5392
  Prefactor  = 4.39648
  norm       = 4.79587
  Prefactor  = 3.21346
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 15.5131
  norm       = 18.3349
  Prefactor  = 3.02239
  Prefactor  = 0.0001
  Prefactor  = 2.66735
  norm       = 0.0001
  Prefactor  = 5.67282
  Prefactor  = 0.177722
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.540712
  Prefactor  = 14.5841
  norm       = 6.55354
  Prefactor  = 0.846165
  Prefactor  = 9.55168
  Prefactor  = 29.8984
  norm       = 4.3412
  Prefactor  = 7.15731
  Prefactor  = 1.75052
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 8.41817
  Normalizat = 0.895149
  Prefactor  = 1.07881
 **********
 **   18 **HESSE 
 **********

 FCN=   37406.80     FROM HESSE     STATUS=OK           719 CALLS     4747 TOTAL
                     EDM=   .30E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.5512        .75831        .11350E-03   -1.5459    
   2  Prefactor     18.539        28.267        .93021E-04   -1.4847    
   3  Prefactor     4.3965        3.4084        .19208E-03   -1.5289    
   4  norm          4.7959        2.8842        .91855E-03   -1.5270    
   5  Prefactor     3.2135        8.1539        .22601E-03   -1.5349    
   6  Prefactor     .10000E-03    1.0169        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    4.5112        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    .97833        .54021E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     15.513        12.982        .10169E-03   -1.4920    
  10  norm          18.335        4.0090        .93537E-04   -1.4851    
  11  Prefactor     3.0224        1.1809        .12699E-03   -1.5360    
  12  Prefactor     .10000E-03    5.7506        .38012E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.6674        4.1657        .12478E-02   -1.5381    
  14  norm          .10000E-03    .10103        .90253E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     5.6728        3.1299        .84321E-03   -1.5232    
  16  Prefactor     .17772        9.2376        .39505E-02   -1.5624    
  17  Prefactor     .10000E-03    .95007        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    1.5135        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .54071        .59102        .15362E-03   -1.5561    
  20  Prefactor     14.584        15.982        .10487E-03   -1.4944    
  21  norm          6.5535        3.1890        .15677E-03   -1.5196    
  22  Prefactor     .84616        1.6044        .31967E-03   -1.5524    
  23  Prefactor     9.5517        12.722        .12968E-03   -1.5090    
  24  Prefactor     29.898        25.360        .73274E-04   -1.4614    
  25  norm          4.3412        1.0721        .96651E-04   -1.5291    
  26  Prefactor     7.1573        6.2171        .14994E-03   -1.5173    
  27  Prefactor     1.7505        4.5224        .31700E-03   -1.5443    
  28  Prefactor     .10000E-03    3.5537        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    9.6831        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    13.552        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          8.4182        3.6533        .13817E-03   -1.5128    
  32  Normalizat    .89515        .94686E-01    .27828E-03   -.96631    
  33  Prefactor     1.0788        .77658E-01    .22121E-03   -.90147    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.00242e-07
Minuit parameter uncertainties:
  1  0.758314
  2  28.2878
  3  3.40858
  4  2.88423
  5  8.15667
  6  2.01978e-06
  7  1.91055e-06
  8  9.91333e-05
  9  12.984
  10  4.00904
  11  1.18096
  12  2.75477e-05
  13  4.16619
  14  2.13431e-07
  15  3.12997
  16  2.5623
  17  2.31848e-06
  18  3.12687e-07
  19  0.591024
  20  15.9866
  21  3.18904
  22  1.60451
  23  12.7259
  24  25.3695
  25  1.07211
  26  6.21768
  27  4.52328
  28  1.87171e-06
  29  0.000240058
  30  1.75717e-05
  31  3.65341
  32  0.0947033
  33  0.0776659
Done.

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

Extracting fit parameters...

4FGL J1657.0+6010
   Spectrum: PowerLaw
375    Prefactor:  2.667e+00  4.166e+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

GAL_V02
   Spectrum: PowerLaw
719    Prefactor:  1.079e+00  7.767e-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:  8.951e-01  9.470e-02  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/659585/likelihoodResults_680486401_681091201_4FGL_J1657.0+6010_weekly_bin730.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) = 37406.5697997
delta logL = 0.225332770598

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 37406.564804
delta logL = 0.230328479061

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.2199       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6156       1.0000          .0000       10.000    
     3 'Normalizat'    .89943       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0766       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   37406.56     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      285 TOTAL
                     EDM=   .47E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.2167        4.4111        .22576E-03    .14100E-04
   2  Index         1.6156        .81119        .18827E-01   -.31487E-04
   3  Normalizat    .89940        .87458E-01    .27766E-03   -.55685E-05
   4  Prefactor     1.0766        .75979E-01    .22139E-03   -.90379E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.21674
  Index      = 1.61562
  Normalizat = 0.899401
  Prefactor  = 1.07664
 **********
 **   18 **HESSE 
 **********

 FCN=   37406.56     FROM HESSE     STATUS=OK            25 CALLS      310 TOTAL
                     EDM=   .27E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.2167        4.5899        .90304E-05   -1.5349    
   2  Index         1.6156        .84499        .75309E-03   -.74351    
   3  Normalizat    .89940        .87544E-01    .11106E-04   -.96481    
   4  Prefactor     1.0766        .76052E-01    .88556E-05   -.90217    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.67039e-13
Minuit parameter uncertainties:
  1  4.59039
  2  0.852591
  3  0.0875575
  4  0.0760599
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/659585': 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) = 37406.5648036
delta logL = 0.230328884682

Extracting fit parameters...

4FGL J1657.0+6010
   Spectrum: PowerLaw
375    Prefactor:  3.217e+00  4.590e+00  1.000e-04  1.000e+04 ( 1.000e-13)
376        Index:  1.616e+00  8.526e-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:  1.077e+00  7.606e-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:  8.994e-01  8.756e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.03
Ra Dec: 254.258 60.168
Photon Index (Free Index): 1.62 +/- 0.85
Photon Flux (Free Index): 2.10e-09 +/- 3.84e-09
Energy Flux (Free Index): 4.51e-06 +/- 8.83e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/659585/cmap_HighResolution_680486401_681091201_4FGL_J1657.0+6010_weekly_bin730.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.96e-03', comment='SUCCESS', energy_flux2='4.51e-06', dlogl='2.30e-01', photon_flux2='2.10e-09', job_status='DONE', time_completed='2022-08-02 03:43:08.923055', photon_index_error2='0.85', photon_index2='1.62', ts='0.58', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', photon_flux_upper_limit='2.52e-08', energy_flux_error2='8.83e-06', EG='0.90', time_epoch_completed='1659436988.92', return_code='0', job_id='659585', GAL2='1.08', EG2='0.90', return_code2='0', photon_flux_error2='3.84e-09', ts2='1.03', photon_index='2.45' WHERE bin_id='730' AND source_name='4FGL J1657.0+6010' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Aug  2 03:43:08 PDT 2022



------------------------------------------------------------
Sender: LSF System <lsf@bullet0221>
Subject: Job 659583: <4FGL_J1657.0+6010_weekly_bin730> in cluster <slac> Done

Job <4FGL_J1657.0+6010_weekly_bin730> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Aug  2 00:06:49 2022
Job was executed on host(s) <bullet0221>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug  2 02:19:39 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug  2 02:19:39 2022
Terminated at Tue Aug  2 03:42:54 2022
Results reported at Tue Aug  2 03:42:54 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1657.0+6010_weekly_bin730 254.258 60.1676 680486401 681091201 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 :                                   4905.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             378.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   4995 sec.
    Turnaround time :                            12965 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0187>
Subject: Job 659585: <4FGL_J1657.0+6010_weekly_bin730> in cluster <slac> Done

Job <4FGL_J1657.0+6010_weekly_bin730> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Aug  2 00:06:49 2022
Job was executed on host(s) <bullet0187>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug  2 02:20:35 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug  2 02:20:35 2022
Terminated at Tue Aug  2 03:43:09 2022
Results reported at Tue Aug  2 03:43:09 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1657.0+6010_weekly_bin730 254.258 60.1676 680486401 681091201 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 :                                   4917.00 sec.
    Max Memory :                                 1259 MB
    Average Memory :                             379.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   4954 sec.
    Turnaround time :                            12980 sec.

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

