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


Performing analysis on: 4FGL_J1628.6+7706_monthly_bin169
RA = 247.154, Dec = 77.1099
tmin = 675043201, tmax = 677635201
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='178953', job_status='RUN', time_executed='2022-06-23 02:34:07.773847', time_epoch_executed='1655976847.77' WHERE source_name='4FGL J1628.6+7706' and cadence='monthly' and bin_id='169'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/178953

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

Retrieving the FT1 file...

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

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

Retrieving 456 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/178953/ft1_4FGL_J1628.6+7706_monthly_bin169.fits


Retrieving the FT1 file...

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

Retrieving 456 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/178953/ft2_4FGL_J1628.6+7706_monthly_bin169.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/178953/ft1_4FGL_J1628.6+7706_monthly_bin169.fits outfile=/scratch/kocevski/178953/ft1_filteredMKT_4FGL_J1628.6+7706_monthly_bin169.fits ra=247.154 dec=77.1099 rad=12.0 tmin=675043201.0 tmax=677635201.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 27.85
user 26.96
sys 0.74

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/178953/ft2_4FGL_J1628.6+7706_monthly_bin169.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/178953/ft2_4FGL_J1628.6+7706_monthly_bin169.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/178953/ft1_filteredMKT_4FGL_J1628.6+7706_monthly_bin169.fits evtable="EVENTS" outfile="/scratch/kocevski/178953/ft1_filtered_4FGL_J1628.6+7706_monthly_bin169.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.86
user 0.66
sys 0.19

Number of photons that the gtmktime cut: 13311

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/178953/ft1_filtered_4FGL_J1628.6+7706_monthly_bin169.fits" evtable="EVENTS" scfile=/scratch/kocevski/178953/ft2_4FGL_J1628.6+7706_monthly_bin169.fits sctable="SC_DATA" outfile=/scratch/kocevski/178953/ltcube_675043201_677635201_4FGL_J1628.6+7706_monthly_bin169.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/178953/ft2_4FGL_J1628.6+7706_monthly_bin169.fits
.....................!
real 133.81
user 132.74
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/178953/ft1_filtered_4FGL_J1628.6+7706_monthly_bin169.fits evtable="EVENTS" scfile=/scratch/kocevski/178953/ft2_4FGL_J1628.6+7706_monthly_bin169.fits sctable="SC_DATA" expcube=/scratch/kocevski/178953/ltcube_675043201_677635201_4FGL_J1628.6+7706_monthly_bin169.fits outfile=/scratch/kocevski/178953/expmap_675043201_677635201_4FGL_J1628.6+7706_monthly_bin169.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/178953/ltcube_675043201_677635201_4FGL_J1628.6+7706_monthly_bin169.fits
.....................!
real 193.71
user 187.03
sys 5.47

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

Setting source of interest to:
4FGL J1628.6+7706 @ 247.154 77.1099

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/178953/ft1_filtered_4FGL_J1628.6+7706_monthly_bin169.fits scfile=/scratch/kocevski/178953/ft2_4FGL_J1628.6+7706_monthly_bin169.fits outfile=/scratch/kocevski/178953/cmap_675043201_677635201_4FGL_J1628.6+7706_monthly_bin169.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=247.154 yref=77.1099 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.81
user 0.62
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/178953/ft1_filtered_4FGL_J1628.6+7706_monthly_bin169.fits scfile=/scratch/kocevski/178953/ft2_4FGL_J1628.6+7706_monthly_bin169.fits outfile=/scratch/kocevski/178953/cmap_HighResolution_675043201_677635201_4FGL_J1628.6+7706_monthly_bin169.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=247.154 yref=77.1099 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.81
user 0.63
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/178953/ft1_filtered_4FGL_J1628.6+7706_monthly_bin169.fits evtable="EVENTS" scfile=/scratch/kocevski/178953/ft2_4FGL_J1628.6+7706_monthly_bin169.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/178953/Model_4FGL_J1628.6+7706_monthly_bin169.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/178953/ft1_filtered_4FGL_J1628.6+7706_monthly_bin169.fits.....................!
real 1383.80
user 1378.63
sys 1.38

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/178953/ft1_filtered_4FGL_J1628.6+7706_monthly_bin169.fits', '/scratch/kocevski/178953/ft2_4FGL_J1628.6+7706_monthly_bin169.fits', expMap='/scratch/kocevski/178953/expmap_675043201_677635201_4FGL_J1628.6+7706_monthly_bin169.fits', expCube='/scratch/kocevski/178953/ltcube_675043201_677635201_4FGL_J1628.6+7706_monthly_bin169.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/178953/Model_4FGL_J1628.6+7706_monthly_bin169.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1628.6+7706'

4FGL J1628.6+7706
   Spectrum: LogParabola
377         norm:  7.623e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
378        alpha:  1.958e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
379         beta:  9.152e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
380           Eb:  1.177e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/178953/ft1_filtered_4FGL_J1628.6+7706_monthly_bin169.fits
Spacecraft file(s): /scratch/kocevski/178953/ft2_4FGL_J1628.6+7706_monthly_bin169.fits
Exposure map: /scratch/kocevski/178953/expmap_675043201_677635201_4FGL_J1628.6+7706_monthly_bin169.fits
Exposure cube: /scratch/kocevski/178953/ltcube_675043201_677635201_4FGL_J1628.6+7706_monthly_bin169.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/178953/Model_4FGL_J1628.6+7706_monthly_bin169.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) = 139381.934176

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1237       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.5569       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .92802       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10134E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.0904       1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.974       1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.421       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .39000       1.0000         .10000E-03   10000.    
    11 'norm      '    2.5441       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11909E-02   1.0000         .10000E-03   10000.    
    14 'norm      '    .84334E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11132E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .12827       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.1057       1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.1844       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.8243       1.0000         .10000E-03   10000.    
    20 'norm      '    3.0448       1.0000         .10000E-03   10000.    
    21 'norm      '    7.5336       1.0000         .10000E-03   10000.    
    22 'norm      '    4.6960       1.0000         .10000E-03   10000.    
    23 'Prefactor '    5.0969       1.0000         .10000E-03   10000.    
    24 'Prefactor '    14.925       1.0000         .10000E-03   10000.    
    25 'norm      '    2.1442       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .89607       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0771       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6790E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   139381.9     FROM MIGRAD    STATUS=CONVERGED    659 CALLS     2945 TOTAL
                     EDM=   .22E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1237        .51937         .0000        .51578E-02
   2  Prefactor     2.5562        5.8560         .0000        .15057E-01
   3  Prefactor     .92844        2.4736         .0000        .23177    
   4  Prefactor     .10000E-03    .27376         .0000    ** at limit **
   5  Prefactor     .10000E-03    1.2024         .0000    ** at limit **
   6  Prefactor     .10000E-03    3.7228         .0000    ** at limit **
   7  Prefactor     1.0894        4.3498         .0000        .64824E-01
   8  Prefactor     11.973        6.3385         .0000       -.20725E-02
   9  Prefactor     12.420        10.264         .0000       -.78560E-03
  10  Prefactor     .38520        1.1364         .0000        .29404E-02
  11  norm          2.5440        1.9519         .0000        .23209E-01
  12  Prefactor     .10000E-03    5.0273         .0000    ** at limit **
  13  Prefactor     .10000E-03    1.1206         .0000    ** at limit **
  14  norm          .84433E-01    .10793         .0000        .85870E-01
  15  Prefactor     .10000E-03    .21225         .0000    ** at limit **
  16  Prefactor     .12814        .20593         .0000        .15524E-01
  17  Prefactor     1.1057        2.4284         .0000        .91412E-02
  18  Prefactor     9.1832        5.8751         .0000       -.20947E-02
  19  Prefactor     1.8228        9.0476         .0000       -.43999E-03
  20  norm          3.0448        .56394         .0000        .61751E-02
  21  norm          7.5335        .30217         .0000       -.43831E-02
  22  norm          4.6960        1.0674         .0000        .35036E-02
  23  Prefactor     5.0970        1.9700         .0000        .34453E-02
  24  Prefactor     14.924        13.071         .0000        .22205E-03
  25  norm          2.1442        .67658         .0000        .10541E-01
  26  Normalizat    .89610        .42673E-01     .0000        .10774E-02
  27  Prefactor     1.0771        .28044E-01     .0000        .25192E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 1.12374
  Prefactor  = 2.55623
  Prefactor  = 0.928436
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 1.08939
  Prefactor  = 11.9728
  Prefactor  = 12.42
  Prefactor  = 0.385199
  norm       = 2.54401
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0844331
  Prefactor  = 0.0001
  Prefactor  = 0.128145
  Prefactor  = 1.10569
  Prefactor  = 9.18323
  Prefactor  = 1.82277
  norm       = 3.04483
  norm       = 7.53353
  norm       = 4.69597
  Prefactor  = 5.09696
  Prefactor  = 14.9243
  norm       = 2.14421
  Normalizat = 0.896105
  Prefactor  = 1.07712
 **********
 **   18 **HESSE 
 **********

 FCN=   139381.9     FROM HESSE     STATUS=OK           518 CALLS     3463 TOTAL
                     EDM=   .73E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1237        .51245        .17784E-03   -1.5496    
   2  Prefactor     2.5562        5.8537        .12766E-02   -1.5388    
   3  Prefactor     .92844        2.5085        .25818E-02   -1.5515    
   4  Prefactor     .10000E-03    2.6128        .37353E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    1.2284        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.7521        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.0894        4.4383        .22907E-02   -1.5499    
   8  Prefactor     11.973        6.3407        .11577E-03   -1.5016    
   9  Prefactor     12.420        10.263        .11366E-03   -1.5003    
  10  Prefactor     .38520        1.1430        .10750       -1.5584    
  11  norm          2.5440        1.9469        .12801E-02   -1.5389    
  12  Prefactor     .10000E-03    5.0307        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.1665        .13992       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .84433E-01    .10064        .12209E-03   -1.5650    
  15  Prefactor     .10000E-03    1.1770        .32514E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .12814        .44108        .18942E-02   -1.5636    
  17  Prefactor     1.1057        2.3321        .45048E-03   -1.5498    
  18  Prefactor     9.1832        5.7622        .13225E-03   -1.5102    
  19  Prefactor     1.8228        9.0966        .30910E-03   -1.5438    
  20  norm          3.0448        .56233        .11443E-03   -1.5359    
  21  norm          7.5335        .30173        .38446E-04   -1.5159    
  22  norm          4.6960        1.0637        .18570E-04   -1.5275    
  23  Prefactor     5.0970        1.9624        .17809E-03   -1.5256    
  24  Prefactor     14.924        13.077        .10368E-03   -1.4935    
  25  norm          2.1442        .67481        .16697E-03   -1.5415    
  26  Normalizat    .89610        .47083E-01    .30588E-03   -.96597    
  27  Prefactor     1.0771        .31775E-01    .19499E-03   -.90201    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.28376e-07
Minuit parameter uncertainties:
  1  0.512456
  2  5.85505
  3  2.50882
  4  1.9044e-05
  5  3.50151e-05
  6  9.0849e-05
  7  4.3981
  8  6.34104
  9  10.2648
  10  1.14306
  11  1.94695
  12  9.86386e-05
  13  6.87495e-06
  14  0.100643
  15  4.26879e-05
  16  0.441088
  17  2.33231
  18  5.76254
  19  8.14573
  20  0.562327
  21  0.301729
  22  1.06368
  23  1.96245
  24  13.0796
  25  0.674817
  26  0.0470855
  27  0.0317757
Done.

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

Extracting fit parameters...

4FGL J1628.6+7706
   Spectrum: LogParabola
377         norm:  2.544e+00  1.947e+00  1.000e-04  1.000e+04 ( 1.000e-13)
378        alpha:  1.958e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
379         beta:  9.152e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
380           Eb:  1.177e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
676    Prefactor:  1.077e+00  3.178e-02  0.000e+00  1.000e+01 ( 1.000e+00)
677        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
678        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
675   Normalization:  8.961e-01  4.709e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.97
Ra Dec: 247.154 77.110
Photon Index (Fixed Index): 1.96 +/- 0.00
Photon Flux (Fixed Index): 2.54e-09 +/- 1.95e-09
Energy Flux (Fixed Index): 1.74e-06 +/- 1.33e-06

TS (Fixed Index): 3.97
Ra Dec: 247.154 77.110
Photon Flux Upper Limit: 7.32e-09 ph cm-2 s-1
Energy Flux Upper Limit: 5.02e-06 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/178953/likelihoodResults_675043201_677635201_4FGL_J1628.6+7706_monthly_bin169.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) = 139381.475799
delta logL = 0.395333833585

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 139381.399819
delta logL = 0.471313594899

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.7137       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.3394       1.0000          .0000       5.0000    
     3 'Normalizat'    .89711       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0772       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6790E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   139381.4     FROM MIGRAD    STATUS=CONVERGED     65 CALLS      221 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.7121        1.3921         .0000        .59626E-02
   2  alpha         1.3392        .39231         .0000       -.74570E-03
   3  Normalizat    .89710        .39381E-01     .0000        .40772E-03
   4  Prefactor     1.0772        .27399E-01     .0000        .25748E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.71211
  alpha      = 1.33917
  Normalizat = 0.897099
  Prefactor  = 1.07722
 **********
 **   18 **HESSE 
 **********

 FCN=   139381.4     FROM HESSE     STATUS=OK            33 CALLS      254 TOTAL
                     EDM=   .86E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.7121        1.7834        .16052E-02   -1.5446    
   2  alpha         1.3392        .57271        .64885E-01   -.48288    
   3  Normalizat    .89710        .44463E-01    .30573E-03   -.96562    
   4  Prefactor     1.0772        .30991E-01    .19499E-03   -.90198    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.56423e-10
Minuit parameter uncertainties:
  1  1.78348
  2  0.579301
  3  0.044465
  4  0.0309915
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/178953': 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) = 139381.399818
delta logL = 0.471314162278

Extracting fit parameters...

4FGL J1628.6+7706
   Spectrum: LogParabola
377         norm:  1.712e+00  1.783e+00  1.000e-04  1.000e+04 ( 1.000e-13)
378        alpha:  1.339e+00  5.793e-01  0.000e+00  5.000e+00 ( 1.000e+00)
379         beta:  9.152e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
380           Eb:  1.177e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
676    Prefactor:  1.077e+00  3.099e-02  0.000e+00  1.000e+01 ( 1.000e+00)
677        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
678        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
675   Normalization:  8.971e-01  4.446e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.91
Ra Dec: 247.154 77.110
Photon Index (Free Index): 1.34 +/- 0.58
Photon Flux (Free Index): 9.70e-10 +/- 1.16e-09
Energy Flux (Free Index): 2.91e-06 +/- 3.06e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  2.220e+00 [aplpy.core]
Saving /scratch/kocevski/178953/cmap_HighResolution_675043201_677635201_4FGL_J1628.6+7706_monthly_bin169.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.02e-06', comment='SUCCESS', photon_flux='2.54e-09', energy_flux2='2.91e-06', photon_flux_error='1.95e-09', dlogl='4.71e-01', energy_flux='1.74e-06', photon_flux2='9.70e-10', job_status='DONE', time_completed='2022-06-23 06:07:43.779196', photon_index_error2='0.58', photon_index2='1.34', ts='3.97', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', photon_flux_upper_limit='7.32e-09', energy_flux_error2='3.06e-06', EG='0.90', time_epoch_completed='1655989663.78', return_code='0', job_id='178953', GAL2='1.08', EG2='0.90', return_code2='0', energy_flux_error='1.33e-06', photon_flux_error2='1.16e-09', ts2='4.91', photon_index='1.96' WHERE bin_id='169' AND source_name='4FGL J1628.6+7706' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Thu Jun 23 06:07:43 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0073>
Subject: Job 178953: <4FGL_J1628.6+7706_monthly_bin169> in cluster <slac> Done

Job <4FGL_J1628.6+7706_monthly_bin169> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Thu Jun 23 02:25:33 2022
Job was executed on host(s) <bullet0073>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Jun 23 02:32:47 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Jun 23 02:32:47 2022
Terminated at Thu Jun 23 06:07:45 2022
Results reported at Thu Jun 23 06:07:45 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1628.6+7706_monthly_bin169 247.154 77.1099 675043201 677635201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1628.6+7706 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   12762.00 sec.
    Max Memory :                                 791 MB
    Average Memory :                             522.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   12898 sec.
    Turnaround time :                            13332 sec.

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

