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


Performing analysis on: 4FGL_J1502.5+5552_daily_bin1779
RA = 225.626, Dec = 55.8797
tmin = 700444801, tmax = 700704001
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='29250', job_status='RUN', time_executed='2023-03-17 01:50:42.812245', time_epoch_executed='1679043042.81' WHERE source_name='4FGL J1502.5+5552' and cadence='daily' and bin_id='1779'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/29250

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/29250/ft1_4FGL_J1502.5+5552_daily_bin1779.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/29250/ft2_4FGL_J1502.5+5552_daily_bin1779.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/29250/ft1_4FGL_J1502.5+5552_daily_bin1779.fits outfile=/scratch/kocevski/29250/ft1_filteredMKT_4FGL_J1502.5+5552_daily_bin1779.fits ra=225.626 dec=55.8797 rad=12.0 tmin=700444801.0 tmax=700704001.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 5.37
user 5.13
sys 0.21

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

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

Number of photons that the gtmktime cut: 526

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/29250/ft1_filtered_4FGL_J1502.5+5552_daily_bin1779.fits" evtable="EVENTS" scfile=/scratch/kocevski/29250/ft2_4FGL_J1502.5+5552_daily_bin1779.fits sctable="SC_DATA" outfile=/scratch/kocevski/29250/ltcube_700444801_700704001_4FGL_J1502.5+5552_daily_bin1779.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/29250/ft2_4FGL_J1502.5+5552_daily_bin1779.fits
.....................!
real 11.58
user 11.24
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/29250/ft1_filtered_4FGL_J1502.5+5552_daily_bin1779.fits evtable="EVENTS" scfile=/scratch/kocevski/29250/ft2_4FGL_J1502.5+5552_daily_bin1779.fits sctable="SC_DATA" expcube=/scratch/kocevski/29250/ltcube_700444801_700704001_4FGL_J1502.5+5552_daily_bin1779.fits outfile=/scratch/kocevski/29250/expmap_700444801_700704001_4FGL_J1502.5+5552_daily_bin1779.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/29250/ltcube_700444801_700704001_4FGL_J1502.5+5552_daily_bin1779.fits
.....................!
real 191.78
user 186.98
sys 4.49

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/29250/ft1_filtered_4FGL_J1502.5+5552_daily_bin1779.fits scfile=/scratch/kocevski/29250/ft2_4FGL_J1502.5+5552_daily_bin1779.fits outfile=/scratch/kocevski/29250/cmap_700444801_700704001_4FGL_J1502.5+5552_daily_bin1779.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.53
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/29250/ft1_filtered_4FGL_J1502.5+5552_daily_bin1779.fits scfile=/scratch/kocevski/29250/ft2_4FGL_J1502.5+5552_daily_bin1779.fits outfile=/scratch/kocevski/29250/cmap_HighResolution_700444801_700704001_4FGL_J1502.5+5552_daily_bin1779.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.53
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.4690       1.0000          .0000       .10000E+07
     2 'Prefactor '    72.494       1.0000          .0000       .10000E+07
     3 'Prefactor '    .62329E-04   1.0000          .0000       .10000E+07
     4 'Prefactor '    2.2371       1.0000          .0000       .10000E+07
     5 'Prefactor '    68.042       1.0000          .0000       .10000E+07
     6 'Prefactor '    .29176E-04   1.0000          .0000       .10000E+07
     7 'Prefactor '    11.927       1.0000          .0000       .10000E+07
     8 'Prefactor '    .13264E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    .26190E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    12.233       1.0000          .0000       .10000E+07
    11 'Prefactor '    .66097E-03   1.0000          .0000       .10000E+07
    12 'norm      '    3.3118       1.0000          .0000       .10000E+07
    13 'Prefactor '    .10168E-02   1.0000          .0000       .10000E+07
    14 'Prefactor '    3.1004       1.0000          .0000       .10000E+07
    15 'Prefactor '    .90260E-03   1.0000          .0000       .10000E+07
    16 'norm      '    7.5096       1.0000          .0000       .10000E+07
    17 'Prefactor '    .88818E-08   1.0000          .0000       .10000E+07
    18 'norm      '    2.3586       1.0000          .0000       .10000E+07
    19 'Prefactor '    6.0756       1.0000          .0000       .10000E+07
    20 'Prefactor '    .61363E-03   1.0000          .0000       .10000E+07
    21 'norm      '    .71220E-03   1.0000          .0000       .10000E+07
    22 'Prefactor '    78.041       1.0000          .0000       .10000E+07
    23 'Prefactor '    .12356E-01   1.0000          .0000       .10000E+07
    24 'Prefactor '    .20049E-03   1.0000          .0000       .10000E+07
    25 'Normalizat'    1.3049       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .39056       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=   5808.821     FROM MIGRAD    STATUS=CONVERGED    181 CALLS     2257 TOTAL
                     EDM=   .57E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.4658        2.8646       -.13649E-07   -.31181E-03
   2  Prefactor     74.477        36.348       -.69243E-07   -.43290E-01
   3  Prefactor     .17303E-06    20.463        .26817E-06** at limit **
   4  Prefactor     2.1504        4.8460       -.28904E-07   -.11075E-02
   5  Prefactor     71.528        27.906       -.60720E-07    .15526    
   6  Prefactor     .55511E-10    1.4654        .10514E-06** at limit **
   7  Prefactor     11.934        3.5479       -.14655E-07   -.20894E-01
   8  Prefactor     .22365E-06    17.738        .25041E-06** at limit **
   9  Prefactor     .57176E-08    10.029        .12744E-06** at limit **
  10  Prefactor     12.180        1.2862        .55763E-08    .14520E-03
  11  Prefactor     .97145E-08    7.4419        .27290E-07** at limit **
  12  norm          3.3117        1.8104        .36832E-08    .76599E-03
  13  Prefactor     .55511E-10    3.4196        .30939E-07** at limit **
  14  Prefactor     3.0440        6.8374        .78238E-07    .61511E-03
  15  Prefactor     .12912E-06    14.577       -.27093E-07** at limit **
  16  norm          7.5261        4.1646       -.23431E-07   -.89316E-03
  17  Prefactor     .33307E-09    7.2614        .49331E-09** at limit **
  18  norm          2.3812        2.3448        .47696E-07    .23294E-02
  19  Prefactor     4.3867        39.882        .19922E-06    .32829E-01
  20  Prefactor     .16653E-09    3.1533        .13167E-06** at limit **
  21  norm          .55511E-10    5.7434       -.15896E-06** at limit **
  22  Prefactor     77.774        12.142       -.20381E-07    .14297    
  23  Prefactor     .58129E-05    69.462        .45248E-07** at limit **
  24  Prefactor     .41633E-08    9.0229        .14059E-06** at limit **
  25  Normalizat    1.3024        .18817       -.96861E-06   -.28375E-04
  26  Prefactor     .39220        .19884        .15179E-05    .67867E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.46577
  Prefactor  = 74.4766
  Prefactor  = 1.73028e-07
  Prefactor  = 2.15042
  Prefactor  = 71.5283
  Prefactor  = 5.55112e-11
  Prefactor  = 11.9343
  Prefactor  = 2.23654e-07
  Prefactor  = 5.71765e-09
  Prefactor  = 12.1801
  Prefactor  = 9.71445e-09
  norm       = 3.31169
  Prefactor  = 5.55112e-11
  Prefactor  = 3.04397
  Prefactor  = 1.29119e-07
  norm       = 7.52609
  Prefactor  = 3.33067e-10
  norm       = 2.38125
  Prefactor  = 4.38667
  Prefactor  = 1.66533e-10
  norm       = 5.55112e-11
  Prefactor  = 77.7741
  Prefactor  = 5.81285e-06
  Prefactor  = 4.16334e-09
  Normalizat = 1.30243
  Prefactor  = 0.392199
 **********
 **   18 **HESSE 
 **********

 FCN=   5808.821     FROM HESSE     STATUS=OK           504 CALLS     2761 TOTAL
                     EDM=   .20E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.4658        2.9080        .88645E-03   -1.5684    
   2  Prefactor     74.477        55.113        .11746E-03   -1.5535    
   3  Prefactor     .17303E-06    20.575        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.1504        5.0032        .68694E-03   -1.5679    
   5  Prefactor     71.528        47.721        .12124E-03   -1.5539    
   6  Prefactor     .55511E-10    1.4604        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     11.934        14.647        .28982E-03   -1.5639    
   8  Prefactor     .22365E-06    17.912        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .57176E-08    10.382        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     12.180        14.059        .28616E-03   -1.5638    
  11  Prefactor     .97145E-08    7.4937        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.3117        1.8284        .55603E-03   -1.5672    
  13  Prefactor     .55511E-10    3.4241        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.0440        6.8714        .57567E-03   -1.5673    
  15  Prefactor     .12912E-06    14.386        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          7.5261        4.1678        .36573E-03   -1.5653    
  17  Prefactor     .33307E-09    7.2675        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.3812        2.4063        .66706E-03   -1.5677    
  19  Prefactor     4.3867        148.78        .40709E-03   -1.5666    
  20  Prefactor     .16653E-09    3.1550        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .55511E-10    5.7254        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     77.774        38.489        .11320E-03   -1.5532    
  23  Prefactor     .58129E-05    81.716        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .41633E-08    9.0067        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.3024        .17252        .32717E-01   -.83494    
  26  Prefactor     .39220        .18248        .78419E-01   -1.1721    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.00248e-06
Minuit parameter uncertainties:
  1  2.90796
  2  55.1138
  3  0.00377362
  4  5.00324
  5  47.7209
  6  1.91767e-05
  7  14.6474
  8  0.00400327
  9  0.000486962
  10  14.0594
  11  0.000538856
  12  1.82838
  13  3.17236e-05
  14  6.87147
  15  0.00272585
  16  4.16779
  17  9.43451e-05
  18  2.40625
  19  51.095
  20  4.67867e-05
  21  3.36393e-05
  22  38.4895
  23  0.0435898
  24  0.000387101
  25  0.172596
  26  0.18275
Done.

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

Extracting fit parameters...

4FGL J1502.5+5552
   Spectrum: PowerLaw
348    Prefactor:  5.551e-11  3.172e-05  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:  3.922e-01  1.828e-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.302e+00  1.726e-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.61e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.56e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/29250/likelihoodResults_700444801_700704001_4FGL_J1502.5+5552_daily_bin1779.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) = 5808.8213839
delta logL = -0.000472447213724

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5808.8209183
delta logL = -6.84851147525e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .79936E-07   1.0000          .0000       .10000E+07
     2 'Index     '    1.6442       1.0000          .0000       10.000    
     3 'Normalizat'    1.3027       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .39162       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   5808.821     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      279 TOTAL
                     EDM=   .12E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        4.8252        .42118E-03** at limit **
   2  Index         2.0651        1.1322        .35140E-04     .0000    
   3  Normalizat    1.3024        1.0787       -.73935E-05   -.14580E-03
   4  Prefactor     .39220        .72239       -.65070E-05   -.74737E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.06512
  Normalizat = 1.30243
  Prefactor  = 0.392199
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   5808.821     FROM HESSE     STATUS=FAILED         9 CALLS      288 TOTAL
                     EDM=   .12E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        4.8252        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .46245        1.7198        .35140E-04   -.62732    
   3  Normalizat    1.3024        1.0787       -.73935E-05   -.83494    
   4  Prefactor     .39220        .72239       -.65070E-05   -1.1721    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.22272e-11
Minuit parameter uncertainties:
  1  1.76714e-06
  2  1.14753
  3  1.09824
  4  0.740193
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/29250': 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) = 5808.82091145
delta logL = 3.63797880709e-12

Extracting fit parameters...

4FGL J1502.5+5552
   Spectrum: PowerLaw
348    Prefactor:  0.000e+00  1.767e-06  0.000e+00  1.000e+06 ( 1.000e-13)
349        Index:  2.065e+00  1.148e+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:  3.922e-01  7.402e-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.302e+00  1.098e+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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/29250/cmap_HighResolution_700444801_700704001_4FGL_J1502.5+5552_daily_bin1779.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.56e-03', job_status='DONE', photon_flux_upper_limit='4.61e-08', time_completed='2023-03-17 02:02:20.701685', job_id='29250', GAL2='0.39', fit_tolerance='1e-08', EG2='1.30', EG='1.30', time_epoch_completed='1679043740.7', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.39', dlogl='3.64e-12', ts2='0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='1779' AND source_name='4FGL J1502.5+5552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Mar 17 02:02:20 PDT 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0008>
Subject: Job 29250: <4FGL_J1502.5+5552_daily_bin1779> in cluster <slac> Done

Job <4FGL_J1502.5+5552_daily_bin1779> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Mar 17 01:50:23 2023
Job was executed on host(s) <bullet0008>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Mar 17 01:50:24 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Mar 17 01:50:24 2023
Terminated at Fri Mar 17 02:02:21 2023
Results reported at Fri Mar 17 02:02:21 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1502.5+5552_daily_bin1779 225.626 55.8797 700444801 700704001 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 :                                   700.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             321.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   717 sec.
    Turnaround time :                            718 sec.

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

