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


Performing analysis on: 4FGL_J1502.5+5552_daily_bin1773
RA = 225.626, Dec = 55.8797
tmin = 698889601, tmax = 699148801
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='794153', job_status='RUN', time_executed='2023-02-27 09:56:39.316961', time_epoch_executed='1677520599.32' WHERE source_name='4FGL J1502.5+5552' and cadence='daily' and bin_id='1773'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/794153

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/794153/ft1_4FGL_J1502.5+5552_daily_bin1773.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/794153/ft2_4FGL_J1502.5+5552_daily_bin1773.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/794153/ft1_4FGL_J1502.5+5552_daily_bin1773.fits outfile=/scratch/kocevski/794153/ft1_filteredMKT_4FGL_J1502.5+5552_daily_bin1773.fits ra=225.626 dec=55.8797 rad=12.0 tmin=698889601.0 tmax=699148801.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.98
user 2.75
sys 0.20

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

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

Number of photons that the gtmktime cut: 798

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/794153/ft1_filtered_4FGL_J1502.5+5552_daily_bin1773.fits" evtable="EVENTS" scfile=/scratch/kocevski/794153/ft2_4FGL_J1502.5+5552_daily_bin1773.fits sctable="SC_DATA" outfile=/scratch/kocevski/794153/ltcube_698889601_699148801_4FGL_J1502.5+5552_daily_bin1773.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/794153/ft2_4FGL_J1502.5+5552_daily_bin1773.fits
.....................!
real 15.54
user 15.01
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/794153/ft1_filtered_4FGL_J1502.5+5552_daily_bin1773.fits evtable="EVENTS" scfile=/scratch/kocevski/794153/ft2_4FGL_J1502.5+5552_daily_bin1773.fits sctable="SC_DATA" expcube=/scratch/kocevski/794153/ltcube_698889601_699148801_4FGL_J1502.5+5552_daily_bin1773.fits outfile=/scratch/kocevski/794153/expmap_698889601_699148801_4FGL_J1502.5+5552_daily_bin1773.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/794153/ltcube_698889601_699148801_4FGL_J1502.5+5552_daily_bin1773.fits
.....................!
real 192.01
user 186.01
sys 5.62

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/794153/ft1_filtered_4FGL_J1502.5+5552_daily_bin1773.fits scfile=/scratch/kocevski/794153/ft2_4FGL_J1502.5+5552_daily_bin1773.fits outfile=/scratch/kocevski/794153/cmap_698889601_699148801_4FGL_J1502.5+5552_daily_bin1773.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.57
user 0.38
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .57640E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    54.671       1.0000          .0000       .10000E+07
     3 'Prefactor '    .35927E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    2.0555       1.0000          .0000       .10000E+07
     5 'Prefactor '    9.6569       1.0000          .0000       .10000E+07
     6 'Prefactor '    .31031E-07   1.0000          .0000       .10000E+07
     7 'Prefactor '    .82685E-04   1.0000          .0000       .10000E+07
     8 'Prefactor '    .13223E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    12.496       1.0000          .0000       .10000E+07
    10 'Prefactor '    10.053       1.0000          .0000       .10000E+07
    11 'Prefactor '    7.2105       1.0000          .0000       .10000E+07
    12 'norm      '    5.4692       1.0000          .0000       .10000E+07
    13 'Prefactor '    .26419E-04   1.0000          .0000       .10000E+07
    14 'Prefactor '    3.8920       1.0000          .0000       .10000E+07
    15 'Prefactor '    .12746E-03   1.0000          .0000       .10000E+07
    16 'norm      '    2.1546       1.0000          .0000       .10000E+07
    17 'Prefactor '    .11267E-04   1.0000          .0000       .10000E+07
    18 'norm      '    1.4015       1.0000          .0000       .10000E+07
    19 'Prefactor '    .16143E-01   1.0000          .0000       .10000E+07
    20 'Prefactor '    4.2416       1.0000          .0000       .10000E+07
    21 'norm      '    .41025E-02   1.0000          .0000       .10000E+07
    22 'Prefactor '    .48463E-02   1.0000          .0000       .10000E+07
    23 'Prefactor '    .19754E-02   1.0000          .0000       .10000E+07
    24 'Prefactor '    .72010E-04   1.0000          .0000       .10000E+07
    25 'Normalizat'    1.1107       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0190       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=   8662.746     FROM MIGRAD    STATUS=CONVERGED    164 CALLS     1770 TOTAL
                     EDM=   .93E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .19196E-05    11.741       -.41519E-06** at limit **
   2  Prefactor     53.698        18.315       -.84411E-07    .15104    
   3  Prefactor     .53735E-05    26.797        .71201E-07** at limit **
   4  Prefactor     2.0695        3.2227        .61062E-07    .22891E-03
   5  Prefactor     8.9646        5.3929        .57129E-07    .55265E-03
   6  Prefactor      .0000        1.0156       -.32106E-06** at limit **
   7  Prefactor     .59852E-06    17.924        .58448E-07** at limit **
   8  Prefactor     .39413E-08    19.320       -.22460E-06** at limit **
   9  Prefactor     12.934        3.9303       -.29560E-07   -.34489E-02
  10  Prefactor     9.8877        14.025        .22199E-06    .38079E-01
  11  Prefactor     7.4748        8.9491       -.41856E-07    .78004E-01
  12  norm          5.4719        1.8214       -.11626E-06   -.48766E-02
  13  Prefactor     .22204E-09    3.2025       -.30984E-06** at limit **
  14  Prefactor     3.8669        4.2781        .21121E-07    .29872E-03
  15  Prefactor     .22204E-09    3.3416       -.33139E-06** at limit **
  16  norm          2.1554        2.2684       -.28467E-07   -.36114E-03
  17  Prefactor     .49682E-07    13.612       -.48837E-07** at limit **
  18  norm          1.4012        1.3695        .29162E-07    .43457E-03
  19  Prefactor      .0000        27.725        .24340E-06** at limit **
  20  Prefactor     4.2012        4.4668        .52959E-07    .91780E-03
  21  norm          .24980E-08    6.2432        .70874E-07** at limit **
  22  Prefactor     .21055E-06    32.856       -.14251E-06** at limit **
  23  Prefactor     .40190E-07    16.981       -.30348E-06** at limit **
  24  Prefactor      .0000        1.8406        .79237E-07** at limit **
  25  Normalizat    1.1115        .17024        .28536E-05   -.27895E-05
  26  Prefactor     1.0185        .19200       -.36511E-05   -.24187E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.91958e-06
  Prefactor  = 53.6975
  Prefactor  = 5.37353e-06
  Prefactor  = 2.06953
  Prefactor  = 8.9646
  Prefactor  = 0
  Prefactor  = 5.98521e-07
  Prefactor  = 3.94129e-09
  Prefactor  = 12.9338
  Prefactor  = 9.88774
  Prefactor  = 7.47478
  norm       = 5.47189
  Prefactor  = 2.22045e-10
  Prefactor  = 3.86688
  Prefactor  = 2.22045e-10
  norm       = 2.15543
  Prefactor  = 4.96825e-08
  norm       = 1.40118
  Prefactor  = 0
  Prefactor  = 4.2012
  norm       = 2.498e-09
  Prefactor  = 2.10554e-07
  Prefactor  = 4.01901e-08
  Prefactor  = 0
  Normalizat = 1.11153
  Prefactor  = 1.01853
 **********
 **   18 **HESSE 
 **********

 FCN=   8662.746     FROM HESSE     STATUS=OK           510 CALLS     2280 TOTAL
                     EDM=   .13E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .19196E-05    2.6511        .53751E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     53.698        44.514        .13525E-03   -1.5561    
   3  Prefactor     .53735E-05    54.372        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.0695        3.2755        .72062E-03   -1.5679    
   5  Prefactor     8.9646        27.802        .32223E-03   -1.5648    
   6  Prefactor      .0000        1.0145        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .59852E-06    32.699        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .39413E-08    28.443        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     12.934        29.316        .28312E-03   -1.5636    
  10  Prefactor     9.8877        14.934        .31578E-03   -1.5645    
  11  Prefactor     7.4748        16.333        .37331E-03   -1.5653    
  12  norm          5.4719        1.8237        .42941E-03   -1.5661    
  13  Prefactor     .22204E-09    3.2016        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.8669        4.2880        .51120E-03   -1.5669    
  15  Prefactor     .22204E-09    3.3322        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.1554        2.2837        .70161E-03   -1.5679    
  17  Prefactor     .49682E-07    13.765        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.4012        1.3571        .91605E-03   -1.5684    
  19  Prefactor      .0000        27.656        .17305E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.2012        4.4792        .48901E-03   -1.5667    
  21  norm          .24980E-08    6.2173        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .21055E-06    58.590        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .40190E-07    19.294        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor      .0000        1.8344        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.1115        .14761        .37580E-01   -.89382    
  26  Prefactor     1.0185        .16464        .42244E-01   -.92114    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.25903e-06
Minuit parameter uncertainties:
  1  0.00451177
  2  44.514
  3  0.0341865
  4  3.2755
  5  27.8023
  6  5.54067e-06
  7  0.00884789
  8  0.000667668
  9  29.3168
  10  14.9344
  11  16.3327
  12  1.82369
  13  5.16337e-05
  14  4.28796
  15  5.49533e-05
  16  2.28375
  17  0.00165361
  18  1.35705
  19  4.46397e-05
  20  4.4792
  21  0.000247984
  22  0.0070244
  23  0.00176157
  24  1.19134e-05
  25  0.147666
  26  0.164717
Done.

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

Extracting fit parameters...

4FGL J1502.5+5552
   Spectrum: PowerLaw
348    Prefactor:  2.220e-10  5.163e-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:  1.019e+00  1.647e-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.112e+00  1.477e-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: 3.92e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.03e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/794153/likelihoodResults_698889601_699148801_4FGL_J1502.5+5552_daily_bin1773.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) = 8662.74618571
delta logL = -0.000409037760619

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8662.74577689
delta logL = -2.11100996239e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .28438E-06   1.0000          .0000       .10000E+07
     2 'Index     '    .72470       1.0000          .0000       10.000    
     3 'Normalizat'    1.1115       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0185       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=   8662.746     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      250 TOTAL
                     EDM=   .31E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11102E-09    .20304E-01    .42118E-03** at limit **
   2  Index         2.5374        7.7087        .42729        .53213E-10
   3  Normalizat    1.1115        .28278E-03    .37549E-01   -.24675E-03
   4  Prefactor     1.0185        .31978E-03    .42294E-01   -.22056E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.11022e-10
  Index      = 2.53741
  Normalizat = 1.11153
  Prefactor  = 1.01853
 **********
 **   18 **HESSE 
 **********

 FCN=   8662.746     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      281 TOTAL
                     EDM=   .13E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11102E-09    .96892E-01    .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5374        6.1033        .50000       -.51498    
   3  Normalizat    1.1115        .61663E-03    .22555E-03   -.89382    
   4  Prefactor     1.0185        .69718E-03    .26386E-03   -.92114    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.25218e-12
Minuit parameter uncertainties:
  1  5.83151e-06
  2  15836.8
  3  0.000616631
  4  0.000697181
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/794153': 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) = 8662.74577667
delta logL = -7.27595761418e-12

Extracting fit parameters...

4FGL J1502.5+5552
   Spectrum: PowerLaw
348    Prefactor:  1.110e-10  5.832e-06  0.000e+00  1.000e+06 ( 1.000e-13)
349        Index:  2.537e+00  1.584e+04  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.019e+00  6.972e-04  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.112e+00  6.166e-04  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/794153/cmap_HighResolution_698889601_699148801_4FGL_J1502.5+5552_daily_bin1773.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.03e-03', job_status='DONE', photon_flux_upper_limit='3.92e-08', time_completed='2023-02-27 10:10:21.292056', job_id='794153', GAL2='1.02', fit_tolerance='1e-08', EG2='1.11', EG='1.11', time_epoch_completed='1677521421.29', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='-7.28e-12', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='1773' AND source_name='4FGL J1502.5+5552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Feb 27 10:10:21 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0161>
Subject: Job 794153: <4FGL_J1502.5+5552_daily_bin1773> in cluster <slac> Done

Job <4FGL_J1502.5+5552_daily_bin1773> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Mon Feb 27 09:55:15 2023
Job was executed on host(s) <bullet0161>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Feb 27 09:55:17 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Feb 27 09:55:17 2023
Terminated at Mon Feb 27 10:10:22 2023
Results reported at Mon Feb 27 10:10:22 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1502.5+5552_daily_bin1773 225.626 55.8797 698889601 699148801 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 :                                   823.29 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             312.53 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   904 sec.
    Turnaround time :                            907 sec.

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

