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


Performing analysis on: 4FGL_J1502.5+5552_daily_bin1774
RA = 225.626, Dec = 55.8797
tmin = 699148801, tmax = 699408001
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='685386', job_status='RUN', time_executed='2023-03-02 00:57:38.241626', time_epoch_executed='1677747458.24' WHERE source_name='4FGL J1502.5+5552' and cadence='daily' and bin_id='1774'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/685386

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/685386/ft1_4FGL_J1502.5+5552_daily_bin1774.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/685386/ft2_4FGL_J1502.5+5552_daily_bin1774.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/685386/ft1_4FGL_J1502.5+5552_daily_bin1774.fits outfile=/scratch/kocevski/685386/ft1_filteredMKT_4FGL_J1502.5+5552_daily_bin1774.fits ra=225.626 dec=55.8797 rad=12.0 tmin=699148801.0 tmax=699408001.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 2.80
user 2.60
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/685386/ft2_4FGL_J1502.5+5552_daily_bin1774.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/685386/ft1_filteredMKT_4FGL_J1502.5+5552_daily_bin1774.fits evtable="EVENTS" outfile="/scratch/kocevski/685386/ft1_filtered_4FGL_J1502.5+5552_daily_bin1774.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.51
user 0.35
sys 0.13

Number of photons that the gtmktime cut: 728

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/685386/ft1_filtered_4FGL_J1502.5+5552_daily_bin1774.fits" evtable="EVENTS" scfile=/scratch/kocevski/685386/ft2_4FGL_J1502.5+5552_daily_bin1774.fits sctable="SC_DATA" outfile=/scratch/kocevski/685386/ltcube_699148801_699408001_4FGL_J1502.5+5552_daily_bin1774.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/685386/ft2_4FGL_J1502.5+5552_daily_bin1774.fits
.....................!
real 12.61
user 12.24
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/685386/ft1_filtered_4FGL_J1502.5+5552_daily_bin1774.fits evtable="EVENTS" scfile=/scratch/kocevski/685386/ft2_4FGL_J1502.5+5552_daily_bin1774.fits sctable="SC_DATA" expcube=/scratch/kocevski/685386/ltcube_699148801_699408001_4FGL_J1502.5+5552_daily_bin1774.fits outfile=/scratch/kocevski/685386/expmap_699148801_699408001_4FGL_J1502.5+5552_daily_bin1774.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/685386/ltcube_699148801_699408001_4FGL_J1502.5+5552_daily_bin1774.fits
.....................!
real 190.13
user 185.24
sys 4.46

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/685386/ft1_filtered_4FGL_J1502.5+5552_daily_bin1774.fits scfile=/scratch/kocevski/685386/ft2_4FGL_J1502.5+5552_daily_bin1774.fits outfile=/scratch/kocevski/685386/cmap_699148801_699408001_4FGL_J1502.5+5552_daily_bin1774.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.54
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/685386/ft1_filtered_4FGL_J1502.5+5552_daily_bin1774.fits scfile=/scratch/kocevski/685386/ft2_4FGL_J1502.5+5552_daily_bin1774.fits outfile=/scratch/kocevski/685386/cmap_HighResolution_699148801_699408001_4FGL_J1502.5+5552_daily_bin1774.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.55
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.0519       1.0000          .0000       .10000E+07
     2 'Prefactor '    .26594E-04   1.0000          .0000       .10000E+07
     3 'Prefactor '    .74213E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    .27256E-07   1.0000          .0000       .10000E+07
     5 'Prefactor '    19.940       1.0000          .0000       .10000E+07
     6 'Prefactor '    .87874       1.0000          .0000       .10000E+07
     7 'Prefactor '    7.0005       1.0000          .0000       .10000E+07
     8 'Prefactor '    .28514       1.0000          .0000       .10000E+07
     9 'Prefactor '    .50254E-04   1.0000          .0000       .10000E+07
    10 'Prefactor '    11.273       1.0000          .0000       .10000E+07
    11 'Prefactor '    .45142E-03   1.0000          .0000       .10000E+07
    12 'norm      '    5.5112       1.0000          .0000       .10000E+07
    13 'Prefactor '    .96499E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    .62228E-07   1.0000          .0000       .10000E+07
    15 'Prefactor '    9.9017       1.0000          .0000       .10000E+07
    16 'norm      '    3.1506       1.0000          .0000       .10000E+07
    17 'Prefactor '    .66294E-02   1.0000          .0000       .10000E+07
    18 'norm      '    .57375       1.0000          .0000       .10000E+07
    19 'Prefactor '    .11197       1.0000          .0000       .10000E+07
    20 'Prefactor '    .30536E-03   1.0000          .0000       .10000E+07
    21 'norm      '    .53144E-05   1.0000          .0000       .10000E+07
    22 'Prefactor '    2.0794       1.0000          .0000       .10000E+07
    23 'Prefactor '    .18614E-03   1.0000          .0000       .10000E+07
    24 'Prefactor '    1.1469       1.0000          .0000       .10000E+07
    25 'Normalizat'    .96946       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.2171       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=   7936.301     FROM MIGRAD    STATUS=CONVERGED    160 CALLS     2248 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.0527        2.3457       -.16711E-06   -.22862E-02
   2  Prefactor     .38747E-07    89.061        .12687E-05** at limit **
   3  Prefactor     .79114E-06    8.6321        .79388E-07** at limit **
   4  Prefactor      .0000        1.4442       -.96199E-08** at limit **
   5  Prefactor     19.937        1.2437       -.11707E-07    .18245E-01
   6  Prefactor     .88002        1.3193        .16097E-07   -.50835E-03
   7  Prefactor     7.0042        1.0713       -.25226E-09   -.14658E-02
   8  Prefactor     .16150E-04    20.293        .40766E-06** at limit **
   9  Prefactor     .20173E-06    8.0207        .20812E-06** at limit **
  10  Prefactor     11.310        1.0410       -.45354E-08    .16386E-02
  11  Prefactor     .51326E-06    6.3816       -.24996E-06** at limit **
  12  norm          5.5126        1.9651        .30523E-08   -.12951E-02
  13  Prefactor     .15521E-06    6.6543       -.35910E-06** at limit **
  14  Prefactor      .0000        1.9116        .83283E-07** at limit **
  15  Prefactor     9.8729        7.3874       -.80663E-07   -.51680E-03
  16  norm          3.1528        3.3316        .19037E-07    .11337E-03
  17  Prefactor     .19960E-05    8.6845       -.59151E-07** at limit **
  18  norm          .59993        2.3220        .41471E-06    .12186E-02
  19  Prefactor     .13651E-05    48.000       -.54834E-06** at limit **
  20  Prefactor     .44409E-09    4.9086       -.17801E-06** at limit **
  21  norm           .0000        2.3072       -.57721E-07** at limit **
  22  Prefactor     2.1102        1.5527       -.32688E-07    .39191E-02
  23  Prefactor     .94313E-07    24.078        .23008E-06** at limit **
  24  Prefactor     1.2022        6.8295        .48087E-06    .33289E-03
  25  Normalizat    .96958        .18440       -.48157E-06   -.91119E-04
  26  Prefactor     1.2167        .20677       -.28073E-05   -.96784E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.05272
  Prefactor  = 3.87468e-08
  Prefactor  = 7.91145e-07
  Prefactor  = 0
  Prefactor  = 19.9369
  Prefactor  = 0.880018
  Prefactor  = 7.00423
  Prefactor  = 1.61497e-05
  Prefactor  = 2.01728e-07
  Prefactor  = 11.3098
  Prefactor  = 5.13256e-07
  norm       = 5.51259
  Prefactor  = 1.55209e-07
  Prefactor  = 0
  Prefactor  = 9.87286
  norm       = 3.15285
  Prefactor  = 1.99601e-06
  norm       = 0.599934
  Prefactor  = 1.36513e-06
  Prefactor  = 4.44089e-10
  norm       = 0
  Prefactor  = 2.11025
  Prefactor  = 9.43134e-08
  Prefactor  = 1.20225
  Normalizat = 0.969579
  Prefactor  = 1.21666
 **********
 **   18 **HESSE 
 **********

 FCN=   7936.301     FROM HESSE     STATUS=OK           506 CALLS     2754 TOTAL
                     EDM=   .54E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.0527        2.3541        .72135E-03   -1.5679    
   2  Prefactor     .38747E-07    88.976        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .79114E-06    16.056        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor      .0000        1.4529        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     19.937        27.996        .22402E-03   -1.5619    
   6  Prefactor     .88002        1.3556        .47241E-03   -1.5689    
   7  Prefactor     7.0042        16.168        .37892E-03   -1.5655    
   8  Prefactor     .16150E-04    83.610        .10422E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .20173E-06    8.4457        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     11.310        17.147        .29813E-03   -1.5641    
  11  Prefactor     .51326E-06    7.4126        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          5.5126        1.9894        .42775E-03   -1.5661    
  13  Prefactor     .15521E-06    6.9544        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor      .0000        1.9126        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     9.8729        7.3736        .31820E-03   -1.5645    
  16  norm          3.1528        3.3253        .57081E-03   -1.5672    
  17  Prefactor     .19960E-05    16.773        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .59993        2.3279        .71612E-03   -1.5692    
  19  Prefactor     .13651E-05    50.560        .13618E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .44409E-09    4.8564        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm           .0000        2.3122        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     2.1102        36.850        .71589E-03   -1.5679    
  23  Prefactor     .94313E-07    24.285        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     1.2022        6.8218        .10820E-02   -1.5686    
  25  Normalizat    .96958        .15344        .45783E-01   -.94057    
  26  Prefactor     1.2167        .17054        .56342E-01   -.85820    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.43921e-07
Minuit parameter uncertainties:
  1  2.35414
  2  0.00371354
  3  0.00712802
  4  2.2576e-06
  5  27.9964
  6  1.35564
  7  16.1686
  8  0.0734932
  9  0.00261072
  10  17.1471
  11  0.00390111
  12  1.98937
  13  0.00207799
  14  9.80807e-07
  15  7.37358
  16  3.32529
  17  0.0115724
  18  2.32795
  19  0.0166159
  20  9.39868e-05
  21  1.11355e-05
  22  17.6367
  23  0.00302655
  24  5.72766
  25  0.153511
  26  0.170616
Done.

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

Extracting fit parameters...

4FGL J1502.5+5552
   Spectrum: PowerLaw
348    Prefactor:  1.552e-07  2.078e-03  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:  1.217e+00  1.706e-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.696e-01  1.535e-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: 5.65e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.37e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/685386/likelihoodResults_699148801_699408001_4FGL_J1502.5+5552_daily_bin1774.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) = 7936.37386395
delta logL = -0.0727090676646

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7936.30115673
delta logL = -1.84611872101e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .62516E-05   1.0000          .0000       .10000E+07
     2 'Index     '    .95947       1.0000          .0000       10.000    
     3 'Normalizat'    .96953       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2167       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=   7936.301     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      196 TOTAL
                     EDM=   .16E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        5.1386        .77141E-06** at limit **
   2  Index         1.6879        2.6819        .62963E-04     .0000    
   3  Normalizat    .96958        .17966       -.60154E-05   -.54382E-04
   4  Prefactor     1.2167        .20465        .51469E-05   -.42618E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.68795
  Normalizat = 0.969579
  Prefactor  = 1.21666
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   7936.301     FROM HESSE     STATUS=FAILED        11 CALLS      207 TOTAL
                     EDM=   .16E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        5.1361        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .28086        1.7478        .62963E-04   -.72403    
   3  Normalizat    .96958        1.3012       -.60154E-05   -.94057    
   4  Prefactor     1.2167        1.0978        .51469E-05   -.85820    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.62477e-12
Minuit parameter uncertainties:
  1  6.77535e-06
  2  1.71398
  3  1.34775
  4  1.11954
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/685386': 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): 101
logL (Free Index) = 7936.30115487
delta logL = 1.11340341391e-08

Extracting fit parameters...

4FGL J1502.5+5552
   Spectrum: PowerLaw
348    Prefactor:  0.000e+00  6.775e-06  0.000e+00  1.000e+06 ( 1.000e-13)
349        Index:  1.688e+00  1.714e+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:  1.217e+00  1.120e+00  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.696e-01  1.348e+00  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/685386/cmap_HighResolution_699148801_699408001_4FGL_J1502.5+5552_daily_bin1774.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.37e-03', job_status='DONE', photon_flux_upper_limit='5.65e-08', time_completed='2023-03-02 01:11:27.566304', job_id='685386', GAL2='1.22', fit_tolerance='1e-08', EG2='0.97', EG='0.97', time_epoch_completed='1677748287.57', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.22', dlogl='1.11e-08', ts2='0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='1774' AND source_name='4FGL J1502.5+5552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Mar  2 01:11:27 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0009>
Subject: Job 685386: <4FGL_J1502.5+5552_daily_bin1774> in cluster <slac> Done

Job <4FGL_J1502.5+5552_daily_bin1774> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Mar  2 00:55:18 2023
Job was executed on host(s) <bullet0009>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Mar  2 00:55:19 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Mar  2 00:55:19 2023
Terminated at Thu Mar  2 01:11:28 2023
Results reported at Thu Mar  2 01:11:28 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1502.5+5552_daily_bin1774 225.626 55.8797 699148801 699408001 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 :                                   831.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             330.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   968 sec.
    Turnaround time :                            970 sec.

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

