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


Performing analysis on: 4FGL_J1649.4+5235_daily_bin1667
RA = 252.364, Dec = 52.5901
tmin = 671414401, tmax = 671673601
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='478332', job_status='RUN', time_executed='2022-04-15 03:32:24.984809', time_epoch_executed='1650018744.98' WHERE source_name='4FGL J1649.4+5235' and cadence='daily' and bin_id='1667'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/478332

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/478332/ft1_4FGL_J1649.4+5235_daily_bin1667.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/478332/ft2_4FGL_J1649.4+5235_daily_bin1667.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/478332/ft1_4FGL_J1649.4+5235_daily_bin1667.fits outfile=/scratch/kocevski/478332/ft1_filteredMKT_4FGL_J1649.4+5235_daily_bin1667.fits ra=252.364 dec=52.5901 rad=12.0 tmin=671414401.0 tmax=671673601.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.55
user 3.31
sys 0.20

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

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

Number of photons that the gtmktime cut: 740

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/478332/ft1_filtered_4FGL_J1649.4+5235_daily_bin1667.fits" evtable="EVENTS" scfile=/scratch/kocevski/478332/ft2_4FGL_J1649.4+5235_daily_bin1667.fits sctable="SC_DATA" outfile=/scratch/kocevski/478332/ltcube_671414401_671673601_4FGL_J1649.4+5235_daily_bin1667.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/478332/ft2_4FGL_J1649.4+5235_daily_bin1667.fits
.....................!
real 13.89
user 13.45
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/478332/ft1_filtered_4FGL_J1649.4+5235_daily_bin1667.fits evtable="EVENTS" scfile=/scratch/kocevski/478332/ft2_4FGL_J1649.4+5235_daily_bin1667.fits sctable="SC_DATA" expcube=/scratch/kocevski/478332/ltcube_671414401_671673601_4FGL_J1649.4+5235_daily_bin1667.fits outfile=/scratch/kocevski/478332/expmap_671414401_671673601_4FGL_J1649.4+5235_daily_bin1667.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/478332/ltcube_671414401_671673601_4FGL_J1649.4+5235_daily_bin1667.fits
.....................!
real 194.50
user 186.55
sys 5.42

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/478332/ft1_filtered_4FGL_J1649.4+5235_daily_bin1667.fits scfile=/scratch/kocevski/478332/ft2_4FGL_J1649.4+5235_daily_bin1667.fits outfile=/scratch/kocevski/478332/cmap_671414401_671673601_4FGL_J1649.4+5235_daily_bin1667.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.58
user 0.40
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/478332/ft1_filtered_4FGL_J1649.4+5235_daily_bin1667.fits scfile=/scratch/kocevski/478332/ft2_4FGL_J1649.4+5235_daily_bin1667.fits outfile=/scratch/kocevski/478332/cmap_HighResolution_671414401_671673601_4FGL_J1649.4+5235_daily_bin1667.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.58
user 0.40
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/478332/ft1_filtered_4FGL_J1649.4+5235_daily_bin1667.fits evtable="EVENTS" scfile=/scratch/kocevski/478332/ft2_4FGL_J1649.4+5235_daily_bin1667.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/478332/Model_4FGL_J1649.4+5235_daily_bin1667.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/478332/ft1_filtered_4FGL_J1649.4+5235_daily_bin1667.fits....................!
real 64.69
user 62.67
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/478332/ft1_filtered_4FGL_J1649.4+5235_daily_bin1667.fits', '/scratch/kocevski/478332/ft2_4FGL_J1649.4+5235_daily_bin1667.fits', expMap='/scratch/kocevski/478332/expmap_671414401_671673601_4FGL_J1649.4+5235_daily_bin1667.fits', expCube='/scratch/kocevski/478332/ltcube_671414401_671673601_4FGL_J1649.4+5235_daily_bin1667.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/478332/Model_4FGL_J1649.4+5235_daily_bin1667.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/478332/ft1_filtered_4FGL_J1649.4+5235_daily_bin1667.fits
Spacecraft file(s): /scratch/kocevski/478332/ft2_4FGL_J1649.4+5235_daily_bin1667.fits
Exposure map: /scratch/kocevski/478332/expmap_671414401_671673601_4FGL_J1649.4+5235_daily_bin1667.fits
Exposure cube: /scratch/kocevski/478332/ltcube_671414401_671673601_4FGL_J1649.4+5235_daily_bin1667.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/478332/Model_4FGL_J1649.4+5235_daily_bin1667.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) = 7885.58108821

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.730       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .20234E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .69540       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    43.238       1.0000         .10000E-03   10000.    
    10 'norm      '    1.8834       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .13283E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.8617       1.0000         .10000E-03   10000.    
    13 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.8190       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .98201       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .13075E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .28550       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.0590       1.0000         .10000E-03   10000.    
    24 'norm      '    6.0840       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    25.102       1.0000         .10000E-03   10000.    
    27 'norm      '    2.8657       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10099E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .18623E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    20.179       1.0000         .10000E-03   10000.    
    33 'Prefactor '    3.1650       1.0000         .10000E-03   10000.    
    34 'Prefactor '    26.895       1.0000         .10000E-03   10000.    
    35 'Normalizat'    .92136       1.0000         .10000E-01   10.000    
    36 'Prefactor '    1.0860       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=   7885.555     FROM MIGRAD    STATUS=CONVERGED   1064 CALLS     5433 TOTAL
                     EDM=   .47E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.6398        .16117E-07** at limit **
   2  norm          .10000E-03    1.8112        .45337E-07** at limit **
   3  Prefactor     10.729        22.586       -.39996E-06    .77984E-05
   4  Prefactor     .10000E-03    29.660        .91375E-06** at limit **
   5  Prefactor     .10000E-03    2.8832       -.84115E-06** at limit **
   6  Prefactor     .10000E-03    7.2154       -.11370E-05** at limit **
   7  Prefactor     .70146        7.3926       -.69738E-05   -.13310E-03
   8  Prefactor     .10000E-03    1.5550        .56018E-07** at limit **
   9  norm          43.237        21.074        .59810E-06   -.12777E-03
  10  norm          1.8825        5.0227        .15174E-05   -.44150E-03
  11  Prefactor     .10000E-03    2.2206        .20972E-05** at limit **
  12  Prefactor     8.8609        6.4340        .56984E-07   -.33795E-03
  13  norm          .10000E-03    17.989       -.35627E-05** at limit **
  14  norm          .10000E-03    2.7808        .63448E-07** at limit **
  15  Prefactor     1.8198        2.7904       -.61829E-07   -.34360E-03
  16  Prefactor     .10000E-03    .62688        .17667E-07** at limit **
  17  Prefactor     .10000E-03    5.9801        .42526E-06** at limit **
  18  Prefactor     .10000E-03    4.4004        .96908E-07** at limit **
  19  norm          .98215        .81227       -.19806E-06   -.15253E-02
  20  Prefactor     .10000E-03    7.1364       -.44848E-05** at limit **
  21  norm          .28538        .55163       -.25939E-06   -.15390E-02
  22  Prefactor     .10000E-03    3.0588        .17760E-06** at limit **
  23  Prefactor     2.0595        4.8023       -.80772E-06    .13440E-05
  24  norm          6.0848        2.0836       -.14897E-06   -.57952E-03
  25  Prefactor     .10000E-03    1.3083       -.31749E-07** at limit **
  26  Prefactor     25.101        28.967       -.14542E-06    .13516E-04
  27  norm          2.8655        3.7826        .60040E-06   -.11272E-03
  28  Prefactor     .10000E-03    86.487       -.19713E-05** at limit **
  29  Prefactor     .10000E-03    2.9790        .74922E-07** at limit **
  30  Prefactor     .10000E-03    17.392       -.84844E-06** at limit **
  31  Prefactor     .10000E-03    273.97        .62319E-05** at limit **
  32  Prefactor     20.175        38.324        .20518E-06    .99010E-05
  33  Prefactor     3.1648        11.913        .65487E-06   -.17106E-03
  34  Prefactor     26.894        19.749       -.11546E-06   -.16696E-04
  35  Normalizat    .92145        .17923       -.15198E-06   -.39157E-03
  36  Prefactor     1.0860        .15238       -.44457E-06   -.57086E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 10.7286
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.701465
  Prefactor  = 0.0001
  norm       = 43.2368
  norm       = 1.88248
  Prefactor  = 0.0001
  Prefactor  = 8.86088
  norm       = 0.000100001
  norm       = 0.0001
  Prefactor  = 1.81984
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.982154
  Prefactor  = 0.000100002
  norm       = 0.285385
  Prefactor  = 0.0001
  Prefactor  = 2.05953
  norm       = 6.08477
  Prefactor  = 0.0001
  Prefactor  = 25.1013
  norm       = 2.86554
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.1753
  Prefactor  = 3.16476
  Prefactor  = 26.8939
  Normalizat = 0.921445
  Prefactor  = 1.08601
 **********
 **   18 **HESSE 
 **********

 FCN=   7885.555     FROM HESSE     STATUS=OK           815 CALLS     6248 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.6434        .11105E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    1.8259        .11669E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     10.729        22.566        .12231E-03   -1.5053    
   4  Prefactor     .10000E-03    29.676        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.7771        .28639E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.1964        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .70146        9.5584        .26970E-02   -1.5540    
   8  Prefactor     .10000E-03    1.5692        .10813E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          43.237        21.020        .60968E-04   -1.4392    
  10  norm          1.8825        11.662        .15165E-02   -1.5434    
  11  Prefactor     .10000E-03    12.607        .23000E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     8.8609        6.5712        .67323E-03   -1.5113    
  13  norm          .10000E-03    17.781        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    2.7914        .14462E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.8198        2.7311        .16983E-03   -1.5438    
  16  Prefactor     .10000E-03    .62939        .68653E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    6.0346        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.4058        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .98215        .76635        .66991E-03   -1.5510    
  20  Prefactor     .10000E-03    15.589        .34388E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .28538        .48170        .87411E-03   -1.5601    
  22  Prefactor     .10000E-03    3.1036        .15160E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     2.0595        4.7720        .28702E-03   -1.5421    
  24  norm          6.0848        2.0578        .70214E-04   -1.5215    
  25  Prefactor     .10000E-03    1.3274        .99158E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     25.101        28.943        .79953E-04   -1.4706    
  27  norm          2.8655        3.7692        .19048E-03   -1.5369    
  28  Prefactor     .10000E-03    86.558        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    3.0855        .29902E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    17.383        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    277.43        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     20.175        38.227        .89163E-04   -1.4809    
  33  Prefactor     3.1648        12.627        .11391E-02   -1.5352    
  34  Prefactor     26.894        19.715        .77248E-04   -1.4670    
  35  Normalizat    .92145        .20271        .27079E-03   -.95711    
  36  Prefactor     1.0860        .17712        .22684E-03   -.89915    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.08461e-08
Minuit parameter uncertainties:
  1  3.16093e-06
  2  6.10463e-06
  3  22.584
  4  4.73736e-05
  5  5.0918e-05
  6  5.09409e-05
  7  5.1794
  8  4.77144e-06
  9  21.0237
  10  9.37333
  11  5.8742e-05
  12  6.57178
  13  0.000208178
  14  6.82102e-06
  15  2.7313
  16  2.08029e-06
  17  3.85085e-06
  18  1.07698e-05
  19  0.766358
  20  0.000370104
  21  0.481705
  22  3.17436e-05
  23  4.77289
  24  2.05786
  25  1.1056e-06
  26  28.959
  27  3.76948
  28  0.000231871
  29  1.89833e-06
  30  6.09429e-05
  31  5.04511e-05
  32  38.2736
  33  12.6376
  34  19.7201
  35  0.202877
  36  0.177215
Done.

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

Extracting fit parameters...

4FGL J1649.4+5235
   Spectrum: PowerLaw
368    Prefactor:  1.000e-04  3.851e-06  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:  1.086e+00  1.772e-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:  9.214e-01  2.029e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/478332/likelihoodResults_671414401_671673601_4FGL_J1649.4+5235_daily_bin1667.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7885.5554627
delta logL = -0.000789772307144

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7885.55467288
delta logL = 5.69925759919e-08

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7885.551     FROM MIGRAD    STATUS=CONVERGED    164 CALLS      312 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .78473E-01    2.7773        .23357E-01   -.20344E-02
   2  Index         3.4891        .49129        .50000        .92719E-05
   3  Normalizat    .91726        .88471E-02    .27079E-03   -.24375E-03
   4  Prefactor     1.0877        .80160E-02    .22684E-03   -.53095E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0784732
  Index      = 3.48911
  Normalizat = 0.917263
  Prefactor  = 1.08772
 **********
 **   18 **HESSE 
 **********

 FCN=   7885.551     FROM HESSE     STATUS=OK            31 CALLS      343 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .78473E-01    2.7692        .13175E-02   -1.5764    
   2  Index         3.4891        3.5450        .40816E-02   -.30698    
   3  Normalizat    .91726        .19754        .10832E-04   -.95856    
   4  Prefactor     1.0877        .17511        .45368E-04   -.89860    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.78302e-10
Minuit parameter uncertainties:
  1  0.931784
  2  3.99744
  3  0.197695
  4  0.175207
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/478332': 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) = 7885.55057333
delta logL = 0.00409959865738

Extracting fit parameters...

4FGL J1649.4+5235
   Spectrum: PowerLaw
368    Prefactor:  7.847e-02  9.318e-01  1.000e-04  1.000e+04 ( 1.000e-13)
369        Index:  3.489e+00  3.997e+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:  1.088e+00  1.752e-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:  9.173e-01  1.977e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 252.364 52.590

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/478332/cmap_HighResolution_671414401_671673601_4FGL_J1649.4+5235_daily_bin1667.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.66e-03', job_status='DONE', photon_flux_upper_limit='4.84e-08', time_completed='2022-04-15 03:57:52.298033', job_id='478332', GAL2='1.09', fit_tolerance='1e-08', EG2='0.92', EG='0.92', time_epoch_completed='1650020272.3', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.09', dlogl='4.10e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.08' WHERE bin_id='1667' AND source_name='4FGL J1649.4+5235' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Apr 15 03:57:52 PDT 2022



------------------------------------------------------------
Sender: LSF System <lsf@bullet0167>
Subject: Job 478362: <4FGL_J1649.4+5235_daily_bin1667> in cluster <slac> Done

Job <4FGL_J1649.4+5235_daily_bin1667> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Apr 15 00:07:47 2022
Job was executed on host(s) <bullet0167>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Apr 15 03:31:01 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Apr 15 03:31:01 2022
Terminated at Fri Apr 15 03:57:39 2022
Results reported at Fri Apr 15 03:57:39 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1649.4+5235_daily_bin1667 252.364 52.5901 671414401 671673601 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 :                                   1511.37 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             327.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1597 sec.
    Turnaround time :                            13792 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0264>
Subject: Job 478332: <4FGL_J1649.4+5235_daily_bin1667> in cluster <slac> Done

Job <4FGL_J1649.4+5235_daily_bin1667> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Apr 15 00:07:45 2022
Job was executed on host(s) <bullet0264>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Apr 15 03:30:52 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Apr 15 03:30:52 2022
Terminated at Fri Apr 15 03:57:53 2022
Results reported at Fri Apr 15 03:57:53 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1649.4+5235_daily_bin1667 252.364 52.5901 671414401 671673601 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 :                                   1514.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             317.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1620 sec.
    Turnaround time :                            13808 sec.

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

