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


Performing analysis on: 4FGL_J1502.5+5552_daily_bin1668
RA = 225.626, Dec = 55.8797
tmin = 671673601, tmax = 671932801
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='555588', job_status='RUN', time_executed='2022-04-18 03:04:52.751457', time_epoch_executed='1650276292.75' WHERE source_name='4FGL J1502.5+5552' and cadence='daily' and bin_id='1668'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/555588

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/555588/ft1_4FGL_J1502.5+5552_daily_bin1668.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/555588/ft2_4FGL_J1502.5+5552_daily_bin1668.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/555588/ft1_4FGL_J1502.5+5552_daily_bin1668.fits outfile=/scratch/kocevski/555588/ft1_filteredMKT_4FGL_J1502.5+5552_daily_bin1668.fits ra=225.626 dec=55.8797 rad=12.0 tmin=671673601.0 tmax=671932801.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.34
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/555588/ft2_4FGL_J1502.5+5552_daily_bin1668.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/555588/ft2_4FGL_J1502.5+5552_daily_bin1668.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/555588/ft1_filteredMKT_4FGL_J1502.5+5552_daily_bin1668.fits evtable="EVENTS" outfile="/scratch/kocevski/555588/ft1_filtered_4FGL_J1502.5+5552_daily_bin1668.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.52
user 0.34
sys 0.15

Number of photons that the gtmktime cut: 615

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/555588/ft1_filtered_4FGL_J1502.5+5552_daily_bin1668.fits" evtable="EVENTS" scfile=/scratch/kocevski/555588/ft2_4FGL_J1502.5+5552_daily_bin1668.fits sctable="SC_DATA" outfile=/scratch/kocevski/555588/ltcube_671673601_671932801_4FGL_J1502.5+5552_daily_bin1668.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/555588/ft2_4FGL_J1502.5+5552_daily_bin1668.fits
.....................!
real 14.98
user 14.48
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/555588/ft1_filtered_4FGL_J1502.5+5552_daily_bin1668.fits evtable="EVENTS" scfile=/scratch/kocevski/555588/ft2_4FGL_J1502.5+5552_daily_bin1668.fits sctable="SC_DATA" expcube=/scratch/kocevski/555588/ltcube_671673601_671932801_4FGL_J1502.5+5552_daily_bin1668.fits outfile=/scratch/kocevski/555588/expmap_671673601_671932801_4FGL_J1502.5+5552_daily_bin1668.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/555588/ltcube_671673601_671932801_4FGL_J1502.5+5552_daily_bin1668.fits
.....................!
real 192.90
user 186.30
sys 5.77

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

Setting source of interest to:
4FGL J1502.5+5552 @ 225.626 55.8797

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/555588/ft1_filtered_4FGL_J1502.5+5552_daily_bin1668.fits scfile=/scratch/kocevski/555588/ft2_4FGL_J1502.5+5552_daily_bin1668.fits outfile=/scratch/kocevski/555588/cmap_671673601_671932801_4FGL_J1502.5+5552_daily_bin1668.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=225.626 yref=55.8797 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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/555588/ft1_filtered_4FGL_J1502.5+5552_daily_bin1668.fits scfile=/scratch/kocevski/555588/ft2_4FGL_J1502.5+5552_daily_bin1668.fits outfile=/scratch/kocevski/555588/cmap_HighResolution_671673601_671932801_4FGL_J1502.5+5552_daily_bin1668.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=225.626 yref=55.8797 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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/555588/ft1_filtered_4FGL_J1502.5+5552_daily_bin1668.fits evtable="EVENTS" scfile=/scratch/kocevski/555588/ft2_4FGL_J1502.5+5552_daily_bin1668.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/555588/Model_4FGL_J1502.5+5552_daily_bin1668.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/555588/ft1_filtered_4FGL_J1502.5+5552_daily_bin1668.fits.....................!
real 54.45
user 52.37
sys 1.49

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/555588/ft1_filtered_4FGL_J1502.5+5552_daily_bin1668.fits', '/scratch/kocevski/555588/ft2_4FGL_J1502.5+5552_daily_bin1668.fits', expMap='/scratch/kocevski/555588/expmap_671673601_671932801_4FGL_J1502.5+5552_daily_bin1668.fits', expCube='/scratch/kocevski/555588/ltcube_671673601_671932801_4FGL_J1502.5+5552_daily_bin1668.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/555588/Model_4FGL_J1502.5+5552_daily_bin1668.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1502.5+5552'

4FGL J1502.5+5552
   Spectrum: PowerLaw
348    Prefactor:  2.174e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
349        Index:  2.411e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
350        Scale:  1.250e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/555588/ft1_filtered_4FGL_J1502.5+5552_daily_bin1668.fits
Spacecraft file(s): /scratch/kocevski/555588/ft2_4FGL_J1502.5+5552_daily_bin1668.fits
Exposure map: /scratch/kocevski/555588/expmap_671673601_671932801_4FGL_J1502.5+5552_daily_bin1668.fits
Exposure cube: /scratch/kocevski/555588/ltcube_671673601_671932801_4FGL_J1502.5+5552_daily_bin1668.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/555588/Model_4FGL_J1502.5+5552_daily_bin1668.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) = 6643.59928448

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    79.340       1.0000         .10000E-03   10000.    
     2 'norm      '    .14343E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .49597E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11607E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    38.019       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10225E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.8884       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.457       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10200E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.8680       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.9578       1.0000         .10000E-03   10000.    
    20 'Prefactor '    18.572       1.0000         .10000E-03   10000.    
    21 'norm      '    1.3171       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .11030E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    23.456       1.0000         .10000E-03   10000.    
    24 'norm      '    .95496       1.0000         .10000E-03   10000.    
    25 'Prefactor '    15.705       1.0000         .10000E-03   10000.    
    26 'Prefactor '    1.4130       1.0000         .10000E-03   10000.    
    27 'norm      '    9.3575       1.0000         .10000E-03   10000.    
    28 'Prefactor '    7.4601       1.0000         .10000E-03   10000.    
    29 'Prefactor '    11.535       1.0000         .10000E-03   10000.    
    30 'Prefactor '    5.2667       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .95648       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .94331       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6940E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6643.585     FROM MIGRAD    STATUS=CONVERGED    873 CALLS     4421 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     79.364        50.304        .93347E-07    .28809E-04
   2  norm          .10001E-03    392.09       -.42700E-05** at limit **
   3  norm          .10000E-03    2.1219        .69049E-07** at limit **
   4  Prefactor     .10001E-03    261.84        .20523E-05** at limit **
   5  Prefactor     38.023        36.393        .28161E-07   -.46544E-05
   6  Prefactor     .10000E-03    13.936        .27667E-07** at limit **
   7  Prefactor     .10000E-03    1.6691        .20056E-08** at limit **
   8  Prefactor     .10000E-03    44.954        .11602E-06** at limit **
   9  Prefactor     2.8894        2.6092        .42035E-07   -.77909E-04
  10  Prefactor     .10000E-03    17.179        .69921E-07** at limit **
  11  Prefactor     10.451        23.985        .21880E-06   -.11800E-04
  12  Prefactor     .10000E-03    16.065       -.52151E-07** at limit **
  13  Prefactor     .10000E-03    11.639       -.20641E-07** at limit **
  14  Prefactor     .10000E-03    35.689       -.27897E-07** at limit **
  15  Prefactor     .10000E-03    6.1483        .13668E-07** at limit **
  16  Prefactor     .10000E-03    22.321       -.55980E-07** at limit **
  17  norm          1.8681        1.1009        .58171E-09    .65663E-04
  18  Prefactor     .10000E-03    3.7002        .18333E-07** at limit **
  19  Prefactor     9.9580        5.9882        .69124E-07   -.49508E-04
  20  Prefactor     18.574        7.9968        .33265E-07   -.43328E-04
  21  norm          1.3170        1.7872        .22478E-07   -.12301E-04
  22  Prefactor     .10005E-03    13.160       -.25706E-07** at limit **
  23  Prefactor     23.463        22.802       -.19961E-06    .40082E-04
  24  norm          .95417        1.8000        .12876E-05    .21835E-03
  25  Prefactor     15.732        121.65       -.49060E-05    .56706E-06
  26  Prefactor     1.4125        6.3119        .17144E-05   -.23878E-03
  27  norm          9.3590        9.6938       -.51247E-06   -.12825E-03
  28  Prefactor     7.4594        60.287       -.14668E-06   -.18916E-04
  29  Prefactor     11.510        85.082       -.38920E-06   -.18215E-04
  30  Prefactor     5.2671        7.4027        .88538E-07   -.11601E-03
  31  Normalizat    .95625        .16451       -.62695E-06    .13925E-04
  32  Prefactor     .94363        .17586        .10503E-06   -.42331E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 79.3638
  norm       = 0.000100011
  norm       = 0.0001
  Prefactor  = 0.00010001
  Prefactor  = 38.0235
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.88942
  Prefactor  = 0.0001
  Prefactor  = 10.4508
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.86807
  Prefactor  = 0.0001
  Prefactor  = 9.95803
  Prefactor  = 18.5736
  norm       = 1.31697
  Prefactor  = 0.000100052
  Prefactor  = 23.4635
  norm       = 0.95417
  Prefactor  = 15.7321
  Prefactor  = 1.4125
  norm       = 9.359
  Prefactor  = 7.45945
  Prefactor  = 11.5103
  Prefactor  = 5.26705
  Normalizat = 0.956248
  Prefactor  = 0.943633
 **********
 **   18 **HESSE 
 **********

 FCN=   6643.585     FROM HESSE     STATUS=OK           663 CALLS     5084 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     79.364        49.365        .45087E-04   -1.3924    
   2  norm          .10001E-03    395.75        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    22.360        .22059E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10001E-03    262.26        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     38.023        36.364        .65002E-04   -1.4474    
   6  Prefactor     .10000E-03    13.951        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1.6778        .10283E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    45.503        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.8894        2.5761        .10801E-03   -1.5368    
  10  Prefactor     .10000E-03    17.254        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     10.451        23.868        .12390E-03   -1.5061    
  12  Prefactor     .10000E-03    16.069        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    11.646        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    36.702        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    6.1552        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    22.873        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.8681        1.1048        .63725E-04   -1.5435    
  18  Prefactor     .10000E-03    3.7395        .15303E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     9.9580        5.9801        .12698E-03   -1.5077    
  20  Prefactor     18.574        8.0117        .92937E-04   -1.4846    
  21  norm          1.3170        1.7629        .12372E-03   -1.5478    
  22  Prefactor     .10005E-03    117.86        .54693E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     23.463        22.111        .82706E-04   -1.4739    
  24  norm          .95417        1.7769        .15994E-02   -1.5513    
  25  Prefactor     15.732        121.75        .10106E-03   -1.4914    
  26  Prefactor     1.4125        5.7413        .33780E-03   -1.5470    
  27  norm          9.3590        9.4396        .13101E-03   -1.5096    
  28  Prefactor     7.4594        59.623        .14684E-03   -1.5162    
  29  Prefactor     11.510        84.769        .11795E-03   -1.5029    
  30  Prefactor     5.2671        7.3796        .17514E-03   -1.5249    
  31  Normalizat    .95625        .19523        .22711E-03   -.94511    
  32  Prefactor     .94363        .20949        .25791E-03   -.94633    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.76031e-10
Minuit parameter uncertainties:
  1  49.3906
  2  0.00426166
  3  3.25346e-05
  4  0.00329083
  5  36.3856
  6  1.465e-05
  7  8.8578e-07
  8  9.77537e-05
  9  2.57619
  10  2.49742e-05
  11  23.8896
  12  1.75594e-05
  13  7.27932e-06
  14  5.42099e-05
  15  3.01769e-06
  16  3.20647e-05
  17  1.10481
  18  1.12747e-07
  19  5.98045
  20  8.01217
  21  1.76296
  22  0.00497012
  23  22.1188
  24  1.77698
  25  87.7783
  26  5.69624
  27  9.44106
  28  42.2358
  29  62.5975
  30  7.38084
  31  0.195376
  32  0.20967
Done.

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

Extracting fit parameters...

4FGL J1502.5+5552
   Spectrum: PowerLaw
348    Prefactor:  1.000e-04  1.127e-07  1.000e-04  1.000e+04 ( 1.000e-13)
349        Index:  2.411e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
350        Scale:  1.250e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
691    Prefactor:  9.436e-01  2.097e-01  0.000e+00  1.000e+01 ( 1.000e+00)
692        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
693        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
690   Normalization:  9.562e-01  1.954e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 225.626 55.880
Photon Flux Upper Limit: 4.20e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.25e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/555588/likelihoodResults_671673601_671932801_4FGL_J1502.5+5552_daily_bin1668.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) = 6643.58640478
delta logL = -0.0012729596956

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6643.58513236
delta logL = -5.44721842743e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11100E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3683       1.0000          .0000       10.000    
     3 'Normalizat'    .95635       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94353       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6940E+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=   6643.585     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      242 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10292E-03    2.4040        .16478E-01** at limit **
   2  Index         2.2876        5.1409        .50000        .74062E-04
   3  Normalizat    .95625        .27417E-02    .22711E-03    .65127E-04
   4  Prefactor     .94363        .31116E-02    .25791E-03   -.23539E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102923
  Index      = 2.2876
  Normalizat = 0.956248
  Prefactor  = 0.943633
 **********
 **   18 **HESSE 
 **********

 FCN=   6643.585     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      271 TOTAL
                     EDM=   .60E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10292E-03    118.29        .33572E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2876        5.2146        .50000       -.57339    
   3  Normalizat    .95625        .19439E-01    .90842E-05   -.94511    
   4  Prefactor     .94363        .22062E-01    .10316E-04   -.94633    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.01615e-08
Minuit parameter uncertainties:
  1  0.0372611
  2  237.969
  3  0.0194395
  4  0.0220621
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/555588': 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) = 6643.58512961
delta logL = 2.206692443e-06

Extracting fit parameters...

4FGL J1502.5+5552
   Spectrum: PowerLaw
348    Prefactor:  1.029e-04  3.726e-02  1.000e-04  1.000e+04 ( 1.000e-13)
349        Index:  2.288e+00  2.380e+02  0.000e+00  1.000e+01 (-1.000e+00)
350        Scale:  1.250e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
691    Prefactor:  9.436e-01  2.206e-02  0.000e+00  1.000e+01 ( 1.000e+00)
692        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
693        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
690   Normalization:  9.562e-01  1.944e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 225.626 55.880

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/555588/cmap_HighResolution_671673601_671932801_4FGL_J1502.5+5552_daily_bin1668.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.25e-03', job_status='DONE', photon_flux_upper_limit='4.20e-08', time_completed='2022-04-18 03:23:45.538200', job_id='555588', GAL2='0.94', fit_tolerance='1e-08', EG2='0.96', EG='0.96', time_epoch_completed='1650277425.54', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='2.21e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='1668' AND source_name='4FGL J1502.5+5552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Apr 18 03:23:45 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0072>
Subject: Job 555307: <4FGL_J1502.5+5552_daily_bin1668> in cluster <slac> Done

Job <4FGL_J1502.5+5552_daily_bin1668> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Apr 18 00:07:23 2022
Job was executed on host(s) <bullet0072>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Apr 18 02:57:14 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Apr 18 02:57:14 2022
Terminated at Mon Apr 18 03:20:11 2022
Results reported at Mon Apr 18 03:20:11 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1502.5+5552_daily_bin1668 225.626 55.8797 671673601 671932801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1502.5+5552 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   1135.46 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             297.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1378 sec.
    Turnaround time :                            11568 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0157>
Subject: Job 555588: <4FGL_J1502.5+5552_daily_bin1668> in cluster <slac> Done

Job <4FGL_J1502.5+5552_daily_bin1668> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Apr 18 00:07:37 2022
Job was executed on host(s) <bullet0157>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Apr 18 03:00:53 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Apr 18 03:00:53 2022
Terminated at Mon Apr 18 03:23:45 2022
Results reported at Mon Apr 18 03:23:45 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1502.5+5552_daily_bin1668 225.626 55.8797 671673601 671932801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1502.5+5552 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   1131.92 sec.
    Max Memory :                                 643 MB
    Average Memory :                             270.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   2930 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   1372 sec.
    Turnaround time :                            11768 sec.

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

