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 96 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_J1502.5+5552_daily_bin1694
RA = 225.626, Dec = 55.8797
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='640509', job_status='RUN', time_executed='2022-07-05 03:52:31.096974', time_epoch_executed='1657018351.1' WHERE source_name='4FGL J1502.5+5552' and cadence='daily' and bin_id='1694'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/640509

Creating custom pfile directory:
/scratch/kocevski/640509/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/640509/ft1_4FGL_J1502.5+5552_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/640509/ft2_4FGL_J1502.5+5552_daily_bin1694.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/640509/ft1_4FGL_J1502.5+5552_daily_bin1694.fits outfile=/scratch/kocevski/640509/ft1_filteredMKT_4FGL_J1502.5+5552_daily_bin1694.fits ra=225.626 dec=55.8797 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.72
user 3.48
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/640509/ft2_4FGL_J1502.5+5552_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/640509/ft1_filteredMKT_4FGL_J1502.5+5552_daily_bin1694.fits evtable="EVENTS" outfile="/scratch/kocevski/640509/ft1_filtered_4FGL_J1502.5+5552_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.53
user 0.36
sys 0.16

Number of photons that the gtmktime cut: 590

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/640509/ft1_filtered_4FGL_J1502.5+5552_daily_bin1694.fits" evtable="EVENTS" scfile=/scratch/kocevski/640509/ft2_4FGL_J1502.5+5552_daily_bin1694.fits sctable="SC_DATA" outfile=/scratch/kocevski/640509/ltcube_678412801_678672001_4FGL_J1502.5+5552_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/640509/ft2_4FGL_J1502.5+5552_daily_bin1694.fits
.....................!
real 15.74
user 15.34
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/640509/ft1_filtered_4FGL_J1502.5+5552_daily_bin1694.fits evtable="EVENTS" scfile=/scratch/kocevski/640509/ft2_4FGL_J1502.5+5552_daily_bin1694.fits sctable="SC_DATA" expcube=/scratch/kocevski/640509/ltcube_678412801_678672001_4FGL_J1502.5+5552_daily_bin1694.fits outfile=/scratch/kocevski/640509/expmap_678412801_678672001_4FGL_J1502.5+5552_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/640509/ltcube_678412801_678672001_4FGL_J1502.5+5552_daily_bin1694.fits
.....................!
real 191.45
user 185.94
sys 5.11

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/640509/ft1_filtered_4FGL_J1502.5+5552_daily_bin1694.fits scfile=/scratch/kocevski/640509/ft2_4FGL_J1502.5+5552_daily_bin1694.fits outfile=/scratch/kocevski/640509/cmap_678412801_678672001_4FGL_J1502.5+5552_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=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/640509/ft1_filtered_4FGL_J1502.5+5552_daily_bin1694.fits scfile=/scratch/kocevski/640509/ft2_4FGL_J1502.5+5552_daily_bin1694.fits outfile=/scratch/kocevski/640509/cmap_HighResolution_678412801_678672001_4FGL_J1502.5+5552_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=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.37
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/640509/ft1_filtered_4FGL_J1502.5+5552_daily_bin1694.fits evtable="EVENTS" scfile=/scratch/kocevski/640509/ft2_4FGL_J1502.5+5552_daily_bin1694.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/640509/Model_4FGL_J1502.5+5552_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/640509/ft1_filtered_4FGL_J1502.5+5552_daily_bin1694.fits.....................!
real 51.35
user 49.97
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/640509/ft1_filtered_4FGL_J1502.5+5552_daily_bin1694.fits', '/scratch/kocevski/640509/ft2_4FGL_J1502.5+5552_daily_bin1694.fits', expMap='/scratch/kocevski/640509/expmap_678412801_678672001_4FGL_J1502.5+5552_daily_bin1694.fits', expCube='/scratch/kocevski/640509/ltcube_678412801_678672001_4FGL_J1502.5+5552_daily_bin1694.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/640509/Model_4FGL_J1502.5+5552_daily_bin1694.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/640509/ft1_filtered_4FGL_J1502.5+5552_daily_bin1694.fits
Spacecraft file(s): /scratch/kocevski/640509/ft2_4FGL_J1502.5+5552_daily_bin1694.fits
Exposure map: /scratch/kocevski/640509/expmap_678412801_678672001_4FGL_J1502.5+5552_daily_bin1694.fits
Exposure cube: /scratch/kocevski/640509/ltcube_678412801_678672001_4FGL_J1502.5+5552_daily_bin1694.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/640509/Model_4FGL_J1502.5+5552_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) = 6447.8142862

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.5251       1.0000         .10000E-03   10000.    
     2 'norm      '    50.880       1.0000         .10000E-03   10000.    
     3 'norm      '    .27194E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.9522       1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.8478       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.2271       1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.9073       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .70313       1.0000         .10000E-03   10000.    
    12 'Prefactor '    19.992       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.4287       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.3859       1.0000         .10000E-03   10000.    
    17 'norm      '    .92242       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.0259       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    11.274       1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.7922       1.0000         .10000E-03   10000.    
    24 'norm      '    4.6511       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10107E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    2.5713       1.0000         .10000E-03   10000.    
    28 'Prefactor '    6.5395       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .11998E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .93374       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .89348       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=   6447.740     FROM MIGRAD    STATUS=CONVERGED    866 CALLS     4420 TOTAL
                     EDM=   .83E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.5253        40.566       -.41131E-06   -.20623E-04
   2  norm          50.855        67.819       -.18193E-04   -.99418E-04
   3  norm          .10000E-03    2.0623        .31937E-06** at limit **
   4  Prefactor     .10000E-03    161.42        .10904E-06** at limit **
   5  Prefactor     .10000E-03    16.781       -.30992E-06** at limit **
   6  Prefactor     .10000E-03    15.395        .24465E-06** at limit **
   7  Prefactor     4.9523        3.9909        .39235E-07   -.80704E-05
   8  Prefactor     8.8476        18.539        .93397E-07   -.46005E-05
   9  Prefactor     6.2243        3.7076       -.15868E-07   -.24926E-03
  10  Prefactor     7.9013        22.601        .36793E-06   -.20450E-04
  11  Prefactor     .70303        25.265        .16328E-06   -.23655E-04
  12  Prefactor     19.987        46.037       -.40479E-05   -.20752E-04
  13  Prefactor     .10000E-03    28.018        .14509E-06** at limit **
  14  Prefactor     3.4283        6.8081       -.18238E-05   -.10713E-03
  15  Prefactor     .10000E-03    5.2722       -.55529E-08** at limit **
  16  Prefactor     4.3867        9.7329       -.29367E-07   -.25943E-04
  17  norm          .92220        .97015        .26757E-07    .44755E-04
  18  Prefactor     .10000E-03    3.6707       -.13733E-06** at limit **
  19  Prefactor     .10000E-03    1.6856        .71778E-08** at limit **
  20  Prefactor     3.0259        2.5221        .69341E-06   -.28379E-02
  21  norm          .10000E-03    1.0724        .22573E-08** at limit **
  22  Prefactor     11.272        16.886       -.13936E-06   -.20560E-03
  23  Prefactor     4.7927        47.220        .58625E-06   -.13575E-03
  24  norm          4.6508        2.6175       -.35571E-07   -.18877E-04
  25  Prefactor     .10000E-03    62.202        .43705E-06** at limit **
  26  Prefactor     .10000E-03    2.7665        .26941E-08** at limit **
  27  norm          2.5623        6.5438       -.38306E-06   -.14007E-03
  28  Prefactor     6.5081        28.081        .16236E-05    .56022E-05
  29  Prefactor     .10000E-03    37.745       -.21219E-05** at limit **
  30  Prefactor     .10001E-03    4.3886        .23460E-06** at limit **
  31  Normalizat    .93347        .15290       -.38491E-06   -.70600E-04
  32  Prefactor     .89375        .16881        .77465E-06   -.10716E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.52533
  norm       = 50.8552
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.95228
  Prefactor  = 8.84759
  Prefactor  = 6.22434
  Prefactor  = 7.90132
  Prefactor  = 0.703031
  Prefactor  = 19.9873
  Prefactor  = 0.0001
  Prefactor  = 3.42827
  Prefactor  = 0.0001
  Prefactor  = 4.38671
  norm       = 0.922198
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.02588
  norm       = 0.0001
  Prefactor  = 11.2723
  Prefactor  = 4.79266
  norm       = 4.65083
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.56226
  Prefactor  = 6.50808
  Prefactor  = 0.0001
  Prefactor  = 0.000100011
  Normalizat = 0.933469
  Prefactor  = 0.89375
 **********
 **   18 **HESSE 
 **********

 FCN=   6447.740     FROM HESSE     STATUS=OK           669 CALLS     5089 TOTAL
                     EDM=   .68E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.5253        40.017        .13729E-03   -1.5124    
   2  norm          50.855        68.144        .28112E-03   -1.4280    
   3  norm          .10000E-03    6.8875        .21681E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    161.42        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    16.786        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    15.414        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.9523        3.9880        .13926E-03   -1.5263    
   8  Prefactor     8.8476        18.543        .13475E-03   -1.5113    
   9  Prefactor     6.2243        3.9991        .92907E-04   -1.5209    
  10  Prefactor     7.9013        22.439        .14259E-03   -1.5146    
  11  Prefactor     .70303        276.69        .61764E-02   -1.5540    
  12  Prefactor     19.987        45.976        .89577E-04   -1.4814    
  13  Prefactor     .10000E-03    28.075        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.4283        6.7865        .21845E-03   -1.5338    
  15  Prefactor     .10000E-03    5.2783        .18007E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.3867        9.6947        .19231E-03   -1.5289    
  17  norm          .92220        .92300        .78154E-03   -1.5516    
  18  Prefactor     .10000E-03    3.6949        .15023E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    1.6956        .10178E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     3.0259        5.3137        .11653E-02   -1.5360    
  21  norm          .10000E-03    1.0796        .81200E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     11.272        16.619        .59657E-03   -1.5036    
  23  Prefactor     4.7927        46.559        .91891E-03   -1.5270    
  24  norm          4.6508        2.6165        .93902E-04   -1.5277    
  25  Prefactor     .10000E-03    62.290        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    2.7741        .13032E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          2.5623        6.4960        .25455E-03   -1.5388    
  28  Prefactor     6.5081        27.729        .15693E-03   -1.5198    
  29  Prefactor     .10000E-03    37.790        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10001E-03    35.629        .32147E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .93347        .18542        .21350E-03   -.95294    
  32  Prefactor     .89375        .20349        .24811E-03   -.96360    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.76918e-08
Minuit parameter uncertainties:
  1  36.9812
  2  68.2483
  3  9.81174e-05
  4  3.02553e-07
  5  3.00249e-06
  6  1.18603e-05
  7  3.98824
  8  18.5545
  9  3.99929
  10  22.4625
  11  28.0235
  12  46.0573
  13  1.32075e-05
  14  6.78806
  15  1.13316e-06
  16  9.6982
  17  0.923015
  18  2.74678e-06
  19  2.47513e-07
  20  5.31452
  21  2.85559e-07
  22  16.6255
  23  29.906
  24  2.61653
  25  3.28347e-07
  26  1.22348e-07
  27  6.49782
  28  26.8881
  29  6.82223e-05
  30  0.00124881
  31  0.185545
  32  0.20366
Done.

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

Extracting fit parameters...

4FGL J1502.5+5552
   Spectrum: PowerLaw
348    Prefactor:  1.000e-04  2.747e-06  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:  8.937e-01  2.037e-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.335e-01  1.855e-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.48e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.47e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/640509/likelihoodResults_678412801_678672001_4FGL_J1502.5+5552_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): 102
logL (Free Index) = 6447.74144898
delta logL = -0.00128928076356

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6447.7401619
delta logL = -2.19451248995e-06

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 'Index     '    2.3946       1.0000          .0000       10.000    
     3 'Normalizat'    .93336       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89367       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=   6447.740     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      232 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10114E-03    46.414        .15183E-02** at limit **
   2  Index         2.3364        5.1917        .50000        .31624E-04
   3  Normalizat    .93347        .12345E-01    .21350E-03   -.31402E-03
   4  Prefactor     .89375        .14145E-01    .24811E-03   -.12193E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101145
  Index      = 2.3364
  Normalizat = 0.933467
  Prefactor  = 0.893752
 **********
 **   18 **HESSE 
 **********

 FCN=   6447.740     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      261 TOTAL
                     EDM=   .77E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10114E-03    197.13        .30366E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3364        8.7862        .50000       -.56181    
   3  Normalizat    .93347        .26732E-01    .42701E-04   -.95294    
   4  Prefactor     .89375        .30623E-01    .99242E-05   -.96360    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.71762e-08
Minuit parameter uncertainties:
  1  0.0301459
  2  548.494
  3  0.0267329
  4  0.030624
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/640509': 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) = 6447.74015924
delta logL = 4.58962858829e-07

Extracting fit parameters...

4FGL J1502.5+5552
   Spectrum: PowerLaw
348    Prefactor:  1.011e-04  3.015e-02  1.000e-04  1.000e+04 ( 1.000e-13)
349        Index:  2.336e+00  5.485e+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:  8.938e-01  3.062e-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.335e-01  2.673e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/640509/cmap_HighResolution_678412801_678672001_4FGL_J1502.5+5552_daily_bin1694.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.47e-03', job_status='DONE', photon_flux_upper_limit='4.48e-08', time_completed='2022-07-05 04:10:48.233298', job_id='640509', GAL2='0.89', fit_tolerance='1e-08', EG2='0.93', EG='0.93', time_epoch_completed='1657019448.23', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='4.59e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='1694' AND source_name='4FGL J1502.5+5552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Jul  5 04:10:48 PDT 2022




------------------------------------------------------------
Sender: LSF System <lsf@bullet0236>
Subject: Job 640449: <4FGL_J1502.5+5552_daily_bin1694> in cluster <slac> Done

Job <4FGL_J1502.5+5552_daily_bin1694> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Tue Jul  5 00:06:42 2022
Job was executed on host(s) <bullet0236>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jul  5 03:49:54 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:49:54 2022
Terminated at Tue Jul  5 04:10:17 2022
Results reported at Tue Jul  5 04:10:17 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1502.5+5552_daily_bin1694 225.626 55.8797 678412801 678672001 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 :                                   1102.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             304.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1222 sec.
    Turnaround time :                            14615 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0268>
Subject: Job 640509: <4FGL_J1502.5+5552_daily_bin1694> in cluster <slac> Done

Job <4FGL_J1502.5+5552_daily_bin1694> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Tue Jul  5 00:06:45 2022
Job was executed on host(s) <bullet0268>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jul  5 03:50:45 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:50:45 2022
Terminated at Tue Jul  5 04:10:49 2022
Results reported at Tue Jul  5 04:10:49 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1502.5+5552_daily_bin1694 225.626 55.8797 678412801 678672001 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 :                                   1099.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             337.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1203 sec.
    Turnaround time :                            14644 sec.

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

