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 58 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_J1649.4+5235_daily_bin1694
RA = 252.364, Dec = 52.5901
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='640783', job_status='RUN', time_executed='2022-07-05 03:55:44.695928', time_epoch_executed='1657018544.7' WHERE source_name='4FGL J1649.4+5235' and cadence='daily' and bin_id='1694'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/640783

Creating custom pfile directory:
/scratch/kocevski/640783/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/640783/ft1_4FGL_J1649.4+5235_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/640783/ft2_4FGL_J1649.4+5235_daily_bin1694.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/640783/ft1_4FGL_J1649.4+5235_daily_bin1694.fits outfile=/scratch/kocevski/640783/ft1_filteredMKT_4FGL_J1649.4+5235_daily_bin1694.fits ra=252.364 dec=52.5901 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.71
user 3.45
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/640783/ft2_4FGL_J1649.4+5235_daily_bin1694.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/640783/ft2_4FGL_J1649.4+5235_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/640783/ft1_filteredMKT_4FGL_J1649.4+5235_daily_bin1694.fits evtable="EVENTS" outfile="/scratch/kocevski/640783/ft1_filtered_4FGL_J1649.4+5235_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.54
user 0.34
sys 0.17

Number of photons that the gtmktime cut: 740

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/640783/ft1_filtered_4FGL_J1649.4+5235_daily_bin1694.fits" evtable="EVENTS" scfile=/scratch/kocevski/640783/ft2_4FGL_J1649.4+5235_daily_bin1694.fits sctable="SC_DATA" outfile=/scratch/kocevski/640783/ltcube_678412801_678672001_4FGL_J1649.4+5235_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/640783/ft2_4FGL_J1649.4+5235_daily_bin1694.fits
.....................!
real 15.05
user 14.61
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/640783/ft1_filtered_4FGL_J1649.4+5235_daily_bin1694.fits evtable="EVENTS" scfile=/scratch/kocevski/640783/ft2_4FGL_J1649.4+5235_daily_bin1694.fits sctable="SC_DATA" expcube=/scratch/kocevski/640783/ltcube_678412801_678672001_4FGL_J1649.4+5235_daily_bin1694.fits outfile=/scratch/kocevski/640783/expmap_678412801_678672001_4FGL_J1649.4+5235_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/640783/ltcube_678412801_678672001_4FGL_J1649.4+5235_daily_bin1694.fits
.....................!
real 193.93
user 187.80
sys 5.52

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

Setting source of interest to:
4FGL J1649.4+5235 @ 252.364 52.5901

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/640783/ft1_filtered_4FGL_J1649.4+5235_daily_bin1694.fits scfile=/scratch/kocevski/640783/ft2_4FGL_J1649.4+5235_daily_bin1694.fits outfile=/scratch/kocevski/640783/cmap_678412801_678672001_4FGL_J1649.4+5235_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=252.364 yref=52.5901 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.60
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/640783/ft1_filtered_4FGL_J1649.4+5235_daily_bin1694.fits scfile=/scratch/kocevski/640783/ft2_4FGL_J1649.4+5235_daily_bin1694.fits outfile=/scratch/kocevski/640783/cmap_HighResolution_678412801_678672001_4FGL_J1649.4+5235_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=252.364 yref=52.5901 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/640783/ft1_filtered_4FGL_J1649.4+5235_daily_bin1694.fits evtable="EVENTS" scfile=/scratch/kocevski/640783/ft2_4FGL_J1649.4+5235_daily_bin1694.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/640783/Model_4FGL_J1649.4+5235_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/640783/ft1_filtered_4FGL_J1649.4+5235_daily_bin1694.fits....................!
real 65.08
user 62.51
sys 1.62

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/640783/ft1_filtered_4FGL_J1649.4+5235_daily_bin1694.fits', '/scratch/kocevski/640783/ft2_4FGL_J1649.4+5235_daily_bin1694.fits', expMap='/scratch/kocevski/640783/expmap_678412801_678672001_4FGL_J1649.4+5235_daily_bin1694.fits', expCube='/scratch/kocevski/640783/ltcube_678412801_678672001_4FGL_J1649.4+5235_daily_bin1694.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/640783/Model_4FGL_J1649.4+5235_daily_bin1694.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1649.4+5235'

4FGL J1649.4+5235
   Spectrum: PowerLaw
368    Prefactor:  5.175e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
369        Index:  2.084e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
370        Scale:  1.469e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/640783/ft1_filtered_4FGL_J1649.4+5235_daily_bin1694.fits
Spacecraft file(s): /scratch/kocevski/640783/ft2_4FGL_J1649.4+5235_daily_bin1694.fits
Exposure map: /scratch/kocevski/640783/expmap_678412801_678672001_4FGL_J1649.4+5235_daily_bin1694.fits
Exposure cube: /scratch/kocevski/640783/ltcube_678412801_678672001_4FGL_J1649.4+5235_daily_bin1694.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/640783/Model_4FGL_J1649.4+5235_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) = 7833.44628113

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .26702       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.0135       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .24057E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.8941       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.4313       1.0000         .10000E-03   10000.    
    13 'norm      '    24.308       1.0000         .10000E-03   10000.    
    14 'norm      '    7.1652       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .16212E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    13.012       1.0000         .10000E-03   10000.    
    18 'Prefactor '    16.382       1.0000         .10000E-03   10000.    
    19 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .84070       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .26042E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    8.2003       1.0000         .10000E-03   10000.    
    24 'norm      '    .18477       1.0000         .10000E-03   10000.    
    25 'Prefactor '    7.6891       1.0000         .10000E-03   10000.    
    26 'Prefactor '    14.841       1.0000         .10000E-03   10000.    
    27 'norm      '    .10088E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    1.6041       1.0000         .10000E-03   10000.    
    30 'Prefactor '    28.985       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    21.267       1.0000         .10000E-03   10000.    
    33 'Prefactor '    .10155E-03   1.0000         .10000E-03   10000.    
    34 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    35 'Normalizat'    1.0704       1.0000         .10000E-01   10.000    
    36 'Prefactor '    .95750       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7120E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7833.312     FROM MIGRAD    STATUS=CONVERGED   1082 CALLS     5481 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.4318       -.75344E-08** at limit **
   2  norm          .30831        5.6218       -.54455E-06    .91828E-04
   3  Prefactor     .87567        24.813        .11685E-05   -.68022E-04
   4  Prefactor     .10000E-03    30.464       -.12737E-05** at limit **
   5  Prefactor     .10000E-03    3.4454       -.85263E-07** at limit **
   6  Prefactor     .10000E-03    10.002       -.25316E-06** at limit **
   7  Prefactor     .10001E-03    4.0700        .90245E-06** at limit **
   8  Prefactor     2.8939        2.8622        .63675E-07   -.31933E-04
   9  norm          .10000E-03    4.8120       -.95006E-06** at limit **
  10  norm          .10000E-03    5.0599        .77866E-06** at limit **
  11  Prefactor     .10000E-03    .91692        .18690E-07** at limit **
  12  Prefactor     2.4308        4.7391        .63399E-06   -.18688E-03
  13  norm          24.301        28.347        .10953E-05    .19692E-03
  14  norm          7.1660        6.0439        .11002E-06   -.46583E-04
  15  Prefactor     .10000E-03    1.4422        .21236E-07** at limit **
  16  Prefactor     .10000E-03    1.1687       -.40635E-07** at limit **
  17  Prefactor     13.017        10.830        .15650E-07   -.20711E-03
  18  Prefactor     16.378        14.178       -.13686E-07   -.19100E-03
  19  norm          .10000E-03    .34528        .48829E-07** at limit **
  20  Prefactor     .10000E-03    3.4867        .17008E-06** at limit **
  21  norm          .84072        .76440        .83765E-07   -.69240E-04
  22  Prefactor     .10007E-03    3.5590        .15330E-05** at limit **
  23  Prefactor     8.2074        7.0947        .17116E-05   -.60631E-03
  24  norm          .18291        .76094        .42753E-07   -.18157E-03
  25  Prefactor     7.6888        3.8696       -.37455E-07   -.11351E-03
  26  Prefactor     15.000        46.255        .91262E-06   -.12460E-03
  27  norm          .10000E-03    4.5002        .26914E-06** at limit **
  28  Prefactor     .10000E-03    13.970        .61748E-06** at limit **
  29  Prefactor     1.6020        4.8963        .19505E-05   -.95209E-04
  30  Prefactor     28.980        61.693       -.31828E-05   -.79270E-04
  31  Prefactor     .10001E-03    21.920        .27825E-05** at limit **
  32  Prefactor     21.259        26.655        .14446E-05    .24539E-03
  33  Prefactor     .10001E-03    19.156       -.32102E-05** at limit **
  34  Prefactor     .10000E-03    3.7500       -.53375E-07** at limit **
  35  Normalizat    1.0704        .16920       -.96080E-06   -.57139E-03
  36  Prefactor     .95756        .14565       -.42357E-06   -.53131E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.308305
  Prefactor  = 0.875673
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 2.89385
  norm       = 0.000100001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 2.43076
  norm       = 24.3011
  norm       = 7.16596
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.0173
  Prefactor  = 16.3779
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.840723
  Prefactor  = 0.000100075
  Prefactor  = 8.2074
  norm       = 0.18291
  Prefactor  = 7.68881
  Prefactor  = 15
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.60204
  Prefactor  = 28.9799
  Prefactor  = 0.000100008
  Prefactor  = 21.2591
  Prefactor  = 0.00010001
  Prefactor  = 0.0001
  Normalizat = 1.07038
  Prefactor  = 0.957563
 **********
 **   18 **HESSE 
 **********

 FCN=   7833.312     FROM HESSE     STATUS=OK           815 CALLS     6296 TOTAL
                     EDM=   .91E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.4373        .13470E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .30831        31.734        .37046E-02   -1.5597    
   3  Prefactor     .87567        182.11        .79987E-02   -1.5521    
   4  Prefactor     .10000E-03    30.657        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.4989        .16035E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    10.034        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10001E-03    21.532        .33293E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.8939        2.8583        .14427E-03   -1.5368    
   9  norm          .10000E-03    4.9074        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    5.1236        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    .92065        .82750E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.4308        4.7351        .25600E-03   -1.5396    
  13  norm          24.301        28.436        .81247E-04   -1.4722    
  14  norm          7.1660        6.0418        .14985E-03   -1.5173    
  15  Prefactor     .10000E-03    1.4815        .20721E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    6.0703        .18325E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     13.017        10.837        .11104E-03   -1.4986    
  18  Prefactor     16.378        14.111        .98956E-04   -1.4898    
  19  norm          .10000E-03    .60640        .10042E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    3.5262        .16124E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .84072        .72872        .69476E-03   -1.5525    
  22  Prefactor     .10007E-03    11.422        .26601E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     8.2074        7.3347        .70001E-03   -1.5135    
  24  norm          .18291        3.1948        .14270E-02   -1.5622    
  25  Prefactor     7.6888        3.8612        .11846E-03   -1.5153    
  26  Prefactor     15.000        42.204        .10397E-03   -1.4933    
  27  norm          .10000E-03    4.6263        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    14.003        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     1.6020        4.8619        .28748E-03   -1.5455    
  30  Prefactor     28.980        60.388        .74417E-04   -1.4631    
  31  Prefactor     .10001E-03    22.779        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     21.259        26.952        .86855E-04   -1.4785    
  33  Prefactor     .10001E-03    20.249        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Prefactor     .10000E-03    3.7522        .16739E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  35  Normalizat    1.0704        .19111        .24628E-03   -.90709    
  36  Prefactor     .95756        .16887        .23410E-03   -.94158    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.10805e-08
Minuit parameter uncertainties:
  1  3.96078e-06
  2  6.25816
  3  25.3333
  4  0.000459513
  5  9.51684e-06
  6  5.12001e-05
  7  0.000759333
  8  2.8584
  9  0.000136072
  10  0.000111129
  11  1.20751e-06
  12  4.73578
  13  28.4515
  14  6.04228
  15  3.46668e-06
  16  8.52901e-05
  17  10.8383
  18  14.1138
  19  3.51926e-06
  20  2.32267e-05
  21  0.728727
  22  0.00184718
  23  7.3355
  24  1.52854
  25  3.86128
  26  42.2884
  27  2.71962e-05
  28  0.000132571
  29  4.86312
  30  60.5157
  31  0.000860652
  32  26.9674
  33  0.00089676
  34  5.91862e-06
  35  0.191233
  36  0.168962
Done.

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

Extracting fit parameters...

4FGL J1649.4+5235
   Spectrum: PowerLaw
368    Prefactor:  1.302e+01  1.084e+01  1.000e-04  1.000e+04 ( 1.000e-13)
369        Index:  2.084e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
370        Scale:  1.469e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
709    Prefactor:  9.576e-01  1.690e-01  0.000e+00  1.000e+01 ( 1.000e+00)
710        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
711        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
708   Normalization:  1.070e+00  1.912e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.99
Ra Dec: 252.364 52.590
Photon Index (Fixed Index): 2.08 +/- 0.00
Photon Flux (Fixed Index): 3.25e-08 +/- 2.70e-08
Energy Flux (Fixed Index): 1.85e-05 +/- 1.54e-05

TS (Fixed Index): 1.99
Ra Dec: 252.364 52.590
Photon Flux Upper Limit: 8.90e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.72e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/640783/likelihoodResults_678412801_678672001_4FGL_J1649.4+5235_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) = 7832.54239549
delta logL = 0.769310102418

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7832.52358055
delta logL = 0.788125046945

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.0536       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9982       1.0000          .0000       10.000    
     3 'Normalizat'    1.0242       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98396       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7120E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7832.524     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      258 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.0549        41.173        .50067E-02    .43625E-03
   2  Index         2.9981        2.3008        .12179        .18122E-03
   3  Normalizat    1.0242        .52410E-01    .42797E-01   -.16017E-05
   4  Prefactor     .98396        .44600E-01    .46066E-01    .55457E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.05488
  Index      = 2.99812
  Normalizat = 1.02422
  Prefactor  = 0.983956
 **********
 **   18 **HESSE 
 **********

 FCN=   7832.524     FROM HESSE     STATUS=OK            33 CALLS      291 TOTAL
                     EDM=   .26E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.0549        43.986        .10535E-03   -1.5305    
   2  Index         2.9981        2.9152        .43061E-02   -.41193    
   3  Normalizat    1.0242        .20781        .25098E-03   -.92223    
   4  Prefactor     .98396        .18647        .23124E-03   -.93266    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.63497e-07
Minuit parameter uncertainties:
  1  26.735
  2  3.15977
  3  0.207976
  4  0.186596
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/640783': 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) = 7832.52358047
delta logL = 0.788125127376

Extracting fit parameters...

4FGL J1649.4+5235
   Spectrum: PowerLaw
368    Prefactor:  4.055e+00  2.673e+01  1.000e-04  1.000e+04 ( 1.000e-13)
369        Index:  2.998e+00  3.160e+00  0.000e+00  1.000e+01 (-1.000e+00)
370        Scale:  1.469e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
709    Prefactor:  9.840e-01  1.866e-01  0.000e+00  1.000e+01 ( 1.000e+00)
710        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
711        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
708   Normalization:  1.024e+00  2.080e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.60
Ra Dec: 252.364 52.590
Photon Index (Free Index): 3.00 +/- 3.16
Photon Flux (Free Index): 6.41e-08 +/- 4.58e-08
Energy Flux (Free Index): 1.28e-05 +/- 1.75e-05

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/640783/cmap_HighResolution_678412801_678672001_4FGL_J1649.4+5235_daily_bin1694.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.72e-03', comment='SUCCESS', photon_flux='3.25e-08', energy_flux2='1.28e-05', photon_flux_error='2.70e-08', dlogl='7.88e-01', energy_flux='1.85e-05', photon_flux2='6.41e-08', job_status='DONE', time_completed='2022-07-05 04:21:21.131307', photon_index_error2='3.16', photon_index2='3.00', ts='1.99', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', photon_flux_upper_limit='8.90e-08', energy_flux_error2='1.75e-05', EG='1.07', time_epoch_completed='1657020081.13', return_code='0', job_id='640783', GAL2='0.98', EG2='1.02', return_code2='0', energy_flux_error='1.54e-05', photon_flux_error2='4.58e-08', ts2='3.60', photon_index='2.08' WHERE bin_id='1694' AND source_name='4FGL J1649.4+5235' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Jul  5 04:21:21 PDT 2022



------------------------------------------------------------
Sender: LSF System <lsf@bullet0052>
Subject: Job 640673: <4FGL_J1649.4+5235_daily_bin1694> in cluster <slac> Done

Job <4FGL_J1649.4+5235_daily_bin1694> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Tue Jul  5 00:06:54 2022
Job was executed on host(s) <bullet0052>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jul  5 03:53:05 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:05 2022
Terminated at Tue Jul  5 04:19:31 2022
Results reported at Tue Jul  5 04:19:31 2022

Your job looked like:

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

Successfully completed.

Resource usage summary:

    CPU time :                                   1521.35 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             327.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1586 sec.
    Turnaround time :                            15157 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0263>
Subject: Job 640783: <4FGL_J1649.4+5235_daily_bin1694> in cluster <slac> Done

Job <4FGL_J1649.4+5235_daily_bin1694> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Tue Jul  5 00:06:59 2022
Job was executed on host(s) <bullet0263>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jul  5 03:54:28 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:54:28 2022
Terminated at Tue Jul  5 04:21:22 2022
Results reported at Tue Jul  5 04:21:22 2022

Your job looked like:

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

Successfully completed.

Resource usage summary:

    CPU time :                                   1528.24 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             339.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1614 sec.
    Turnaround time :                            15263 sec.

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

