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


Performing analysis on: 4FGL_J1630.7+5221_daily_bin1694
RA = 247.682, Dec = 52.3543
tmin = 678412801, tmax = 678672001
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='640740', job_status='RUN', time_executed='2022-07-05 03:54:38.681210', time_epoch_executed='1657018478.68' WHERE source_name='4FGL J1630.7+5221' and cadence='daily' and bin_id='1694'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/640740

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/640740/ft1_4FGL_J1630.7+5221_daily_bin1694.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/640740/ft2_4FGL_J1630.7+5221_daily_bin1694.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/640740/ft1_4FGL_J1630.7+5221_daily_bin1694.fits outfile=/scratch/kocevski/640740/ft1_filteredMKT_4FGL_J1630.7+5221_daily_bin1694.fits ra=247.682 dec=52.3543 rad=12.0 tmin=678412801.0 tmax=678672001.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.75
user 3.49
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/640740/ft2_4FGL_J1630.7+5221_daily_bin1694.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/640740/ft2_4FGL_J1630.7+5221_daily_bin1694.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/640740/ft1_filteredMKT_4FGL_J1630.7+5221_daily_bin1694.fits evtable="EVENTS" outfile="/scratch/kocevski/640740/ft1_filtered_4FGL_J1630.7+5221_daily_bin1694.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.56
user 0.38
sys 0.17

Number of photons that the gtmktime cut: 707

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/640740/ft1_filtered_4FGL_J1630.7+5221_daily_bin1694.fits" evtable="EVENTS" scfile=/scratch/kocevski/640740/ft2_4FGL_J1630.7+5221_daily_bin1694.fits sctable="SC_DATA" outfile=/scratch/kocevski/640740/ltcube_678412801_678672001_4FGL_J1630.7+5221_daily_bin1694.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/640740/ft2_4FGL_J1630.7+5221_daily_bin1694.fits
.....................!
real 15.38
user 14.89
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/640740/ft1_filtered_4FGL_J1630.7+5221_daily_bin1694.fits evtable="EVENTS" scfile=/scratch/kocevski/640740/ft2_4FGL_J1630.7+5221_daily_bin1694.fits sctable="SC_DATA" expcube=/scratch/kocevski/640740/ltcube_678412801_678672001_4FGL_J1630.7+5221_daily_bin1694.fits outfile=/scratch/kocevski/640740/expmap_678412801_678672001_4FGL_J1630.7+5221_daily_bin1694.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/640740/ltcube_678412801_678672001_4FGL_J1630.7+5221_daily_bin1694.fits
.....................!
real 195.20
user 189.46
sys 5.08

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

Setting source of interest to:
4FGL J1630.7+5221 @ 247.682 52.3543

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/640740/ft1_filtered_4FGL_J1630.7+5221_daily_bin1694.fits scfile=/scratch/kocevski/640740/ft2_4FGL_J1630.7+5221_daily_bin1694.fits outfile=/scratch/kocevski/640740/cmap_678412801_678672001_4FGL_J1630.7+5221_daily_bin1694.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.682 yref=52.3543 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.58
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/640740/ft1_filtered_4FGL_J1630.7+5221_daily_bin1694.fits scfile=/scratch/kocevski/640740/ft2_4FGL_J1630.7+5221_daily_bin1694.fits outfile=/scratch/kocevski/640740/cmap_HighResolution_678412801_678672001_4FGL_J1630.7+5221_daily_bin1694.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.682 yref=52.3543 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.41
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/640740/ft1_filtered_4FGL_J1630.7+5221_daily_bin1694.fits evtable="EVENTS" scfile=/scratch/kocevski/640740/ft2_4FGL_J1630.7+5221_daily_bin1694.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/640740/Model_4FGL_J1630.7+5221_daily_bin1694.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/640740/ft1_filtered_4FGL_J1630.7+5221_daily_bin1694.fits.....................!
real 59.90
user 58.48
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/640740/ft1_filtered_4FGL_J1630.7+5221_daily_bin1694.fits', '/scratch/kocevski/640740/ft2_4FGL_J1630.7+5221_daily_bin1694.fits', expMap='/scratch/kocevski/640740/expmap_678412801_678672001_4FGL_J1630.7+5221_daily_bin1694.fits', expCube='/scratch/kocevski/640740/ltcube_678412801_678672001_4FGL_J1630.7+5221_daily_bin1694.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/640740/Model_4FGL_J1630.7+5221_daily_bin1694.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1630.7+5221'

4FGL J1630.7+5221
   Spectrum: LogParabola
317         norm:  9.141e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
318        alpha:  1.947e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
319         beta:  6.119e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
320           Eb:  1.176e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/640740/ft1_filtered_4FGL_J1630.7+5221_daily_bin1694.fits
Spacecraft file(s): /scratch/kocevski/640740/ft2_4FGL_J1630.7+5221_daily_bin1694.fits
Exposure map: /scratch/kocevski/640740/expmap_678412801_678672001_4FGL_J1630.7+5221_daily_bin1694.fits
Exposure cube: /scratch/kocevski/640740/ltcube_678412801_678672001_4FGL_J1630.7+5221_daily_bin1694.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/640740/Model_4FGL_J1630.7+5221_daily_bin1694.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) = 7526.79828884

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.0517       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .95762       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.1282       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .51889E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.6750       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.8599       1.0000         .10000E-03   10000.    
    14 'norm      '    35.904       1.0000         .10000E-03   10000.    
    15 'norm      '    7.0993       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .19024E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    14.148       1.0000         .10000E-03   10000.    
    19 'Prefactor '    17.428       1.0000         .10000E-03   10000.    
    20 'norm      '    .10043E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .81702       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .13891E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    8.5348       1.0000         .10000E-03   10000.    
    25 'norm      '    1.0563       1.0000         .10000E-03   10000.    
    26 'Prefactor '    7.9082       1.0000         .10000E-03   10000.    
    27 'Prefactor '    19.668       1.0000         .10000E-03   10000.    
    28 'norm      '    .10098E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    2.3389       1.0000         .10000E-03   10000.    
    30 'Prefactor '    34.605       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.0503       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .92745       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7010E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7526.781     FROM MIGRAD    STATUS=CONVERGED    904 CALLS     4682 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.0527        2.4924        .19848E-07   -.71398E-04
   2  Prefactor     .10000E-03    2.5217       -.71532E-08** at limit **
   3  norm          .96889        5.4158        .12270E-05   -.13405E-03
   4  Prefactor     3.0678        56.710        .33119E-06   -.39568E-04
   5  Prefactor     .10000E-03    33.567       -.22802E-07** at limit **
   6  Prefactor     .10000E-03    4.0045        .17626E-06** at limit **
   7  Prefactor     .10000E-03    11.947        .16365E-06** at limit **
   8  Prefactor     .94758E-01    5.8977       -.16992E-05    .85534E-03
   9  Prefactor     1.6754        1.9642        .91087E-07   -.42123E-04
  10  norm          .10000E-03    5.0388       -.37023E-08** at limit **
  11  norm          .10000E-03    5.2021       -.11974E-06** at limit **
  12  Prefactor     .10000E-03    .96198        .43904E-07** at limit **
  13  Prefactor     2.8615        4.9060        .69356E-06    .11974E-03
  14  norm          35.880        36.088        .10056E-06   -.10627E-03
  15  norm          7.1004        6.0946        .71526E-07    .65879E-05
  16  Prefactor     .10000E-03    1.5815        .98192E-07** at limit **
  17  Prefactor     .10001E-03    1.2968        .70393E-06** at limit **
  18  Prefactor     14.149        11.013        .57624E-07   -.86088E-05
  19  Prefactor     17.433        14.439        .18793E-06    .55424E-04
  20  norm          .10000E-03    .37329        .11538E-06** at limit **
  21  Prefactor     .10000E-03    3.3173       -.76212E-08** at limit **
  22  norm          .81684        .76540        .88676E-07   -.20401E-03
  23  Prefactor     .10000E-03    4.8949       -.38546E-05** at limit **
  24  Prefactor     8.5370        7.3787        .24966E-06    .11778E-03
  25  norm          1.0569        1.8708        .57122E-06    .19988E-03
  26  Prefactor     7.9094        3.9299       -.14347E-06   -.16132E-03
  27  Prefactor     19.604        47.853        .15106E-05   -.38993E-06
  28  norm          .10000E-03    6.4519       -.52560E-06** at limit **
  29  Prefactor     2.3300        5.2012        .20241E-05    .29470E-03
  30  Prefactor     34.629        63.941       -.30758E-05   -.22842E-05
  31  Prefactor     .10000E-03    27.135        .71846E-07** at limit **
  32  Normalizat    1.0499        .16391       -.73600E-06   -.14871E-03
  33  Prefactor     .92764        .15413       -.69499E-06   -.16646E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.05266
  Prefactor  = 0.0001
  norm       = 0.968889
  Prefactor  = 3.06779
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0947582
  Prefactor  = 1.67539
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.86151
  norm       = 35.8798
  norm       = 7.10042
  Prefactor  = 0.0001
  Prefactor  = 0.000100012
  Prefactor  = 14.1487
  Prefactor  = 17.4332
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.816839
  Prefactor  = 0.000100001
  Prefactor  = 8.53698
  norm       = 1.05693
  Prefactor  = 7.90942
  Prefactor  = 19.6038
  norm       = 0.0001
  Prefactor  = 2.33002
  Prefactor  = 34.6286
  Prefactor  = 0.0001
  Normalizat = 1.04986
  Prefactor  = 0.927642
 **********
 **   18 **HESSE 
 **********

 FCN=   7526.781     FROM HESSE     STATUS=OK           713 CALLS     5395 TOTAL
                     EDM=   .48E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.0527        2.4929        .10417E-03   -1.5305    
   2  Prefactor     .10000E-03    2.5268        .13443E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .96889        10.258        .35257E-02   -1.5511    
   4  Prefactor     3.0678        55.331        .22922E-03   -1.5358    
   5  Prefactor     .10000E-03    33.597        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.0834        .16950E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    11.990        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .94758E-01    5.6866        .49851E-01   -1.5646    
   9  Prefactor     1.6754        1.9524        .12765E-03   -1.5449    
  10  norm          .10000E-03    5.0404        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    5.2055        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    .96633        .83084E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.8615        4.8896        .23871E-03   -1.5370    
  14  norm          35.880        35.849        .66882E-04   -1.4509    
  15  norm          7.1004        6.0940        .15055E-03   -1.5175    
  16  Prefactor     .10000E-03    1.6307        .21266E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10001E-03    6.4336        .18038E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     14.149        10.999        .10649E-03   -1.4955    
  19  Prefactor     17.433        14.438        .95939E-04   -1.4873    
  20  norm          .10000E-03    .70203        .10207E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    3.3482        .15407E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .81684        .72840        .69774E-03   -1.5527    
  23  Prefactor     .10000E-03    4.8816        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     8.5370        7.3833        .13721E-03   -1.5124    
  25  norm          1.0569        1.8449        .14859E-03   -1.5502    
  26  Prefactor     7.9094        3.9242        .11625E-03   -1.5145    
  27  Prefactor     19.604        47.733        .90314E-04   -1.4822    
  28  norm          .10000E-03    6.7307        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     2.3300        5.1638        .24993E-03   -1.5403    
  30  Prefactor     34.629        63.087        .68123E-04   -1.4530    
  31  Prefactor     .10000E-03    27.142        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.0499        .18924        .23796E-03   -.91378    
  33  Prefactor     .92764        .17897        .24344E-03   -.95182    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.82504e-08
Minuit parameter uncertainties:
  1  2.493
  2  1.48947e-06
  3  6.30639
  4  26.0848
  5  1.40919e-05
  6  1.86937e-05
  7  2.78035e-05
  8  1.4675
  9  1.95251
  10  2.70178e-06
  11  1.06078e-05
  12  1.88293e-06
  13  4.89031
  14  35.8704
  15  6.09457
  16  5.9783e-06
  17  0.000562536
  18  11.0002
  19  14.4412
  20  6.05709e-07
  21  6.04118e-06
  22  0.728408
  23  0.000125723
  24  7.38407
  25  1.845
  26  3.92429
  27  47.8258
  28  4.89386e-05
  29  5.16479
  30  63.2089
  31  3.58067e-05
  32  0.189365
  33  0.179082
Done.

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

Extracting fit parameters...

4FGL J1630.7+5221
   Spectrum: LogParabola
317         norm:  1.000e-04  2.702e-06  1.000e-04  1.000e+04 ( 1.000e-13)
318        alpha:  1.947e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
319         beta:  6.119e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
320           Eb:  1.176e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
698    Prefactor:  9.276e-01  1.791e-01  0.000e+00  1.000e+01 ( 1.000e+00)
699        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
700        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
697   Normalization:  1.050e+00  1.894e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 247.682 52.354
Photon Flux Upper Limit: 2.93e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.10e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/640740/likelihoodResults_678412801_678672001_4FGL_J1630.7+5221_daily_bin1694.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) = 7526.78172777
delta logL = -0.000941214343584

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7526.78078655
delta logL = 4.09636413679e-09

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7526.781     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      234 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    386.48        .18142E-02** at limit **
   2  alpha         1.8511        3.1368        .50000       -.66848E-08
   3  Normalizat    1.0499        .37029E-01    .23796E-03    .47154E-04
   4  Prefactor     .92764        .36016E-01    .24344E-03    .47260E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.85114
  Normalizat = 1.04986
  Prefactor  = 0.927643
 **********
 **   18 **HESSE 
 **********

 FCN=   7526.781     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      263 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1163.3        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.8511        2.7768        .50000       -.26255    
   3  Normalizat    1.0499        .13638        .95185E-05   -.91378    
   4  Prefactor     .92764        .13265        .97376E-05   -.95182    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.34546e-10
Minuit parameter uncertainties:
  1  0.000117309
  2  3337.9
  3  0.136428
  4  0.132693
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/640740': 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) = 7526.7807865
delta logL = 6.30561771686e-08

Extracting fit parameters...

4FGL J1630.7+5221
   Spectrum: LogParabola
317         norm:  1.000e-04  1.173e-04  1.000e-04  1.000e+04 ( 1.000e-13)
318        alpha:  1.851e+00  3.338e+03  0.000e+00  5.000e+00 ( 1.000e+00)
319         beta:  6.119e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
320           Eb:  1.176e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
698    Prefactor:  9.276e-01  1.327e-01  0.000e+00  1.000e+01 ( 1.000e+00)
699        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
700        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
697   Normalization:  1.050e+00  1.364e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 247.682 52.354

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/640740/cmap_HighResolution_678412801_678672001_4FGL_J1630.7+5221_daily_bin1694.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.10e-05', job_status='DONE', photon_flux_upper_limit='2.93e-08', time_completed='2022-07-05 04:16:11.410120', job_id='640740', GAL2='0.93', fit_tolerance='1e-08', EG2='1.05', EG='1.05', time_epoch_completed='1657019771.41', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='6.31e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.95' WHERE bin_id='1694' AND source_name='4FGL J1630.7+5221' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Jul  5 04:16:11 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0047>
Subject: Job 640636: <4FGL_J1630.7+5221_daily_bin1694> in cluster <slac> Done

Job <4FGL_J1630.7+5221_daily_bin1694> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Tue Jul  5 00:06:51 2022
Job was executed on host(s) <bullet0047>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jul  5 03:52:33 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jul  5 03:52:33 2022
Terminated at Tue Jul  5 04:14:24 2022
Results reported at Tue Jul  5 04:14:24 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1630.7+5221_daily_bin1694 247.682 52.3543 678412801 678672001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1630.7+5221 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   1287.00 sec.
    Max Memory :                                 618 MB
    Average Memory :                             312.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1311 sec.
    Turnaround time :                            14853 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0065>
Subject: Job 640740: <4FGL_J1630.7+5221_daily_bin1694> in cluster <slac> Done

Job <4FGL_J1630.7+5221_daily_bin1694> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Tue Jul  5 00:06:57 2022
Job was executed on host(s) <bullet0065>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jul  5 03:53:58 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jul  5 03:53:58 2022
Terminated at Tue Jul  5 04:16:12 2022
Results reported at Tue Jul  5 04:16:12 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1630.7+5221_daily_bin1694 247.682 52.3543 678412801 678672001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1630.7+5221 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   1291.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             305.49 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1333 sec.
    Turnaround time :                            14955 sec.

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

