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 192 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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


Performing analysis on: 4FGL_J1502.5+5552_daily_bin1709
RA = 225.626, Dec = 55.8797
tmin = 682300801, tmax = 682560001
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='155284', job_status='RUN', time_executed='2022-09-16 18:49:05.839758', time_epoch_executed='1663379345.84' WHERE source_name='4FGL J1502.5+5552' and cadence='daily' and bin_id='1709'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/155284

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/155284/ft1_4FGL_J1502.5+5552_daily_bin1709.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/155284/ft2_4FGL_J1502.5+5552_daily_bin1709.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/155284/ft1_4FGL_J1502.5+5552_daily_bin1709.fits outfile=/scratch/kocevski/155284/ft1_filteredMKT_4FGL_J1502.5+5552_daily_bin1709.fits ra=225.626 dec=55.8797 rad=12.0 tmin=682300801.0 tmax=682560001.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.86
user 3.60
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/155284/ft2_4FGL_J1502.5+5552_daily_bin1709.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/155284/ft1_filteredMKT_4FGL_J1502.5+5552_daily_bin1709.fits evtable="EVENTS" outfile="/scratch/kocevski/155284/ft1_filtered_4FGL_J1502.5+5552_daily_bin1709.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.54
user 0.36
sys 0.17

Number of photons that the gtmktime cut: 613

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/155284/ft1_filtered_4FGL_J1502.5+5552_daily_bin1709.fits" evtable="EVENTS" scfile=/scratch/kocevski/155284/ft2_4FGL_J1502.5+5552_daily_bin1709.fits sctable="SC_DATA" outfile=/scratch/kocevski/155284/ltcube_682300801_682560001_4FGL_J1502.5+5552_daily_bin1709.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/155284/ft2_4FGL_J1502.5+5552_daily_bin1709.fits
.....................!
real 19.30
user 18.40
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/155284/ft1_filtered_4FGL_J1502.5+5552_daily_bin1709.fits evtable="EVENTS" scfile=/scratch/kocevski/155284/ft2_4FGL_J1502.5+5552_daily_bin1709.fits sctable="SC_DATA" expcube=/scratch/kocevski/155284/ltcube_682300801_682560001_4FGL_J1502.5+5552_daily_bin1709.fits outfile=/scratch/kocevski/155284/expmap_682300801_682560001_4FGL_J1502.5+5552_daily_bin1709.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/155284/ltcube_682300801_682560001_4FGL_J1502.5+5552_daily_bin1709.fits
.....................!
real 192.46
user 186.00
sys 6.03

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/155284/ft1_filtered_4FGL_J1502.5+5552_daily_bin1709.fits scfile=/scratch/kocevski/155284/ft2_4FGL_J1502.5+5552_daily_bin1709.fits outfile=/scratch/kocevski/155284/cmap_682300801_682560001_4FGL_J1502.5+5552_daily_bin1709.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.58
user 0.41
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/155284/ft1_filtered_4FGL_J1502.5+5552_daily_bin1709.fits scfile=/scratch/kocevski/155284/ft2_4FGL_J1502.5+5552_daily_bin1709.fits outfile=/scratch/kocevski/155284/cmap_HighResolution_682300801_682560001_4FGL_J1502.5+5552_daily_bin1709.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.60
user 0.39
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/155284/ft1_filtered_4FGL_J1502.5+5552_daily_bin1709.fits', '/scratch/kocevski/155284/ft2_4FGL_J1502.5+5552_daily_bin1709.fits', expMap='/scratch/kocevski/155284/expmap_682300801_682560001_4FGL_J1502.5+5552_daily_bin1709.fits', expCube='/scratch/kocevski/155284/ltcube_682300801_682560001_4FGL_J1502.5+5552_daily_bin1709.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/155284/Model_4FGL_J1502.5+5552_daily_bin1709.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  0.000e+00  1.000e+06 ( 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/155284/ft1_filtered_4FGL_J1502.5+5552_daily_bin1709.fits
Spacecraft file(s): /scratch/kocevski/155284/ft2_4FGL_J1502.5+5552_daily_bin1709.fits
Exposure map: /scratch/kocevski/155284/expmap_682300801_682560001_4FGL_J1502.5+5552_daily_bin1709.fits
Exposure cube: /scratch/kocevski/155284/ltcube_682300801_682560001_4FGL_J1502.5+5552_daily_bin1709.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/155284/Model_4FGL_J1502.5+5552_daily_bin1709.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) = 6681.06010838

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.8709       1.0000          .0000       .10000E+07
     2 'Prefactor '    .64932E-01   1.0000          .0000       .10000E+07
     3 'Prefactor '    .42230E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    2.6934       1.0000          .0000       .10000E+07
     5 'Prefactor '    29.528       1.0000          .0000       .10000E+07
     6 'Prefactor '    5.1000       1.0000          .0000       .10000E+07
     7 'Prefactor '    26.323       1.0000          .0000       .10000E+07
     8 'Prefactor '    .21273E-04   1.0000          .0000       .10000E+07
     9 'Prefactor '    26.172       1.0000          .0000       .10000E+07
    10 'Prefactor '    9.5364       1.0000          .0000       .10000E+07
    11 'Prefactor '    .24162E-02   1.0000          .0000       .10000E+07
    12 'norm      '    1.2308       1.0000          .0000       .10000E+07
    13 'Prefactor '    1.6220       1.0000          .0000       .10000E+07
    14 'Prefactor '    2.9692       1.0000          .0000       .10000E+07
    15 'Prefactor '    24.709       1.0000          .0000       .10000E+07
    16 'norm      '    .90693       1.0000          .0000       .10000E+07
    17 'Prefactor '    .25339E-02   1.0000          .0000       .10000E+07
    18 'norm      '    7.1798       1.0000          .0000       .10000E+07
    19 'Prefactor '    .21101E-02   1.0000          .0000       .10000E+07
    20 'Prefactor '    .32037E-05   1.0000          .0000       .10000E+07
    21 'norm      '    .25378E-03   1.0000          .0000       .10000E+07
    22 'Prefactor '    .71813E-03   1.0000          .0000       .10000E+07
    23 'Prefactor '    10.489       1.0000          .0000       .10000E+07
    24 'Prefactor '    10.727       1.0000          .0000       .10000E+07
    25 'Normalizat'    1.1884       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .71567       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6940E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6681.035     FROM MIGRAD    STATUS=CONVERGED    181 CALLS     2232 TOTAL
                     EDM=   .24E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.9200        4.4988        .24073E-07   -.19160E-03
   2  Prefactor      .0000        16.659        .73685E-07** at limit **
   3  Prefactor      .0000        8.8130       -.34907E-07** at limit **
   4  Prefactor     2.6928        3.9030       -.36311E-07   -.34082E-04
   5  Prefactor     29.914        2.1677       -.18192E-07    .26699E-02
   6  Prefactor     5.0898        2.8228        .51857E-07    .32089E-03
   7  Prefactor     26.535        1.9246       -.31495E-08   -.34243E-01
   8  Prefactor     .23315E-08    32.556        .39351E-06** at limit **
   9  Prefactor     25.978        1.3214        .29331E-08   -.14002E-02
  10  Prefactor     9.5383        1.1482       -.96844E-08    .11206E-03
  11  Prefactor     .55511E-10    8.0780       -.95145E-08** at limit **
  12  norm          1.2322        1.4301       -.73645E-08    .47074E-04
  13  Prefactor     1.6298        15.066        .89187E-06    .92281E-04
  14  Prefactor     2.9340        4.9599       -.58178E-07    .18479E-03
  15  Prefactor     24.717        9.8603       -.28082E-07   -.17353E-03
  16  norm          .90180        2.5690        .24114E-07    .57782E-04
  17  Prefactor     .55511E-10    7.9785        .11723E-06** at limit **
  18  norm          7.1773        2.8744       -.18686E-07    .54960E-04
  19  Prefactor     .38858E-09    26.992        .68658E-07** at limit **
  20  Prefactor      .0000        2.1356       -.68531E-07** at limit **
  21  norm           .0000        3.7076        .41219E-07** at limit **
  22  Prefactor     .33307E-09    72.768       -.84287E-06** at limit **
  23  Prefactor     15.910        84.346       -.12234E-05    .18874E-04
  24  Prefactor     10.481        10.533        .14162E-06   -.41449E-03
  25  Normalizat    1.1875        .19599       -.56425E-06   -.11940E-04
  26  Prefactor     .71579        .21050       -.16180E-05   -.37049E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 9.92004
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 2.69283
  Prefactor  = 29.9142
  Prefactor  = 5.08978
  Prefactor  = 26.5345
  Prefactor  = 2.33147e-09
  Prefactor  = 25.9781
  Prefactor  = 9.53827
  Prefactor  = 5.55112e-11
  norm       = 1.23219
  Prefactor  = 1.62981
  Prefactor  = 2.93401
  Prefactor  = 24.7167
  norm       = 0.901804
  Prefactor  = 5.55112e-11
  norm       = 7.17732
  Prefactor  = 3.88578e-10
  Prefactor  = 0
  norm       = 0
  Prefactor  = 3.33067e-10
  Prefactor  = 15.9098
  Prefactor  = 10.4814
  Normalizat = 1.18747
  Prefactor  = 0.715794
 **********
 **   18 **HESSE 
 **********

 FCN=   6681.035     FROM HESSE     STATUS=OK           514 CALLS     2746 TOTAL
                     EDM=   .42E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.9200        4.5006        .31870E-03   -1.5645    
   2  Prefactor      .0000        16.646        .14989E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor      .0000        8.8079        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.6928        3.9477        .62051E-03   -1.5675    
   5  Prefactor     29.914        27.605        .18406E-03   -1.5599    
   6  Prefactor     5.0898        3.0580        .44497E-03   -1.5663    
   7  Prefactor     26.535        28.862        .19495E-03   -1.5605    
   8  Prefactor     .23315E-08    32.745        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     25.978        24.842        .19551E-03   -1.5606    
  10  Prefactor     9.5383        15.946        .32427E-03   -1.5646    
  11  Prefactor     .55511E-10    8.0728        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.2322        1.4701        .10132E-02   -1.5686    
  13  Prefactor     1.6298        15.531        .83060E-03   -1.5682    
  14  Prefactor     2.9340        4.9662        .58900E-03   -1.5674    
  15  Prefactor     24.717        9.9605        .20122E-03   -1.5609    
  16  norm          .90180        2.5752        .45282E-03   -1.5689    
  17  Prefactor     .55511E-10    7.9738        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          7.1773        2.8757        .37411E-03   -1.5654    
  19  Prefactor     .38858E-09    27.022        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor      .0000        2.1369        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm           .0000        3.7114        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .33307E-09    72.458        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     15.910        84.539        .30912E-03   -1.5628    
  24  Prefactor     10.481        10.596        .30566E-03   -1.5643    
  25  Normalizat    1.1875        .16893        .35183E-01   -.86991    
  26  Prefactor     .71579        .18157        .68034E-01   -1.0291    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.24876e-08
Minuit parameter uncertainties:
  1  4.50061
  2  1.15766e-06
  3  5.91126e-06
  4  3.94773
  5  27.6052
  6  3.05804
  7  28.8621
  8  0.000552268
  9  24.842
  10  15.9462
  11  3.96173e-05
  12  1.47009
  13  10.0624
  14  4.96623
  15  9.96054
  16  2.57517
  17  4.45982e-05
  18  2.87569
  19  0.000204463
  20  8.11327e-07
  21  3.81312e-06
  22  0.000321342
  23  73.3501
  24  10.5959
  25  0.169003
  26  0.181718
Done.

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

Extracting fit parameters...

4FGL J1502.5+5552
   Spectrum: PowerLaw
348    Prefactor:  1.630e+00  1.006e+01  0.000e+00  1.000e+06 ( 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:  7.158e-01  1.817e-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:  1.187e+00  1.690e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/155284/likelihoodResults_682300801_682560001_4FGL_J1502.5+5552_daily_bin1709.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6681.03375438
delta logL = 0.00168469063465

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6681.03333317
delta logL = 0.00210590019014

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.9345       1.0000          .0000       .10000E+07
     2 'Index     '    2.2803       1.0000          .0000       10.000    
     3 'Normalizat'    1.1884       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71531       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.

 FCN=   6681.033     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      247 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.9471        127.27        .74635E-03    .28818E-02
   2  Index         2.2670        1.1128        .50000       -.44526E-05
   3  Normalizat    1.1881        .12070E-01    .35183E-01   -.72726E-04
   4  Prefactor     .71520        .13262E-01    .68058E-01   -.41292E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.94709
  Index      = 2.26701
  Normalizat = 1.18813
  Prefactor  = 0.715204
 **********
 **   18 **HESSE 
 **********

 FCN=   6681.033     FROM HESSE     STATUS=OK            31 CALLS      278 TOTAL
                     EDM=   .32E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.9471        16.062        .29854E-04   -1.5680    
   2  Index         2.2670        2.0293        .71011E-02   -.57830    
   3  Normalizat    1.1881        .18839        .21885E-03   -.86970    
   4  Prefactor     .71520        .20624        .30115E-03   -1.0293    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.19977e-11
Minuit parameter uncertainties:
  1  11.1846
  2  2.11856
  3  0.188499
  4  0.206461
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/155284': 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) = 6681.03330377
delta logL = 0.00213529766552

Extracting fit parameters...

4FGL J1502.5+5552
   Spectrum: PowerLaw
348    Prefactor:  1.947e+00  1.118e+01  0.000e+00  1.000e+06 ( 1.000e-13)
349        Index:  2.267e+00  2.119e+00  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:  7.152e-01  2.065e-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:  1.188e+00  1.885e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.03
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/155284/cmap_HighResolution_682300801_682560001_4FGL_J1502.5+5552_daily_bin1709.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.11e-03', job_status='DONE', photon_flux_upper_limit='7.90e-08', time_completed='2022-09-16 19:01:57.059723', job_id='155284', GAL2='0.72', fit_tolerance='1e-08', EG2='1.19', EG='1.19', time_epoch_completed='1663380117.06', return_code2='0', ts='0.03', comment='SUCCESS', return_code='0', GAL='0.72', dlogl='2.14e-03', ts2='0.04', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='1709' AND source_name='4FGL J1502.5+5552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 19:01:57 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0227>
Subject: Job 155284: <4FGL_J1502.5+5552_daily_bin1709> in cluster <slac> Done

Job <4FGL_J1502.5+5552_daily_bin1709> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Sep 16 18:45:18 2022
Job was executed on host(s) <bullet0227>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 18:45:44 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 18:45:44 2022
Terminated at Fri Sep 16 19:01:57 2022
Results reported at Fri Sep 16 19:01:57 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1502.5+5552_daily_bin1709 225.626 55.8797 682300801 682560001 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 :                                   772.48 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             316.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   973 sec.
    Turnaround time :                            999 sec.

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

