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 76 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_bin1759
RA = 225.626, Dec = 55.8797
tmin = 695260801, tmax = 695520001
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='561243', job_status='RUN', time_executed='2023-01-16 01:23:04.591194', time_epoch_executed='1673860984.59' WHERE source_name='4FGL J1502.5+5552' and cadence='daily' and bin_id='1759'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/561243

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/561243/ft1_4FGL_J1502.5+5552_daily_bin1759.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/561243/ft2_4FGL_J1502.5+5552_daily_bin1759.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/561243/ft1_4FGL_J1502.5+5552_daily_bin1759.fits outfile=/scratch/kocevski/561243/ft1_filteredMKT_4FGL_J1502.5+5552_daily_bin1759.fits ra=225.626 dec=55.8797 rad=12.0 tmin=695260801.0 tmax=695520001.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.30
user 2.09
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/561243/ft2_4FGL_J1502.5+5552_daily_bin1759.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/561243/ft1_filteredMKT_4FGL_J1502.5+5552_daily_bin1759.fits evtable="EVENTS" outfile="/scratch/kocevski/561243/ft1_filtered_4FGL_J1502.5+5552_daily_bin1759.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.44
user 0.28
sys 0.15

Number of photons that the gtmktime cut: 854

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/561243/ft1_filtered_4FGL_J1502.5+5552_daily_bin1759.fits" evtable="EVENTS" scfile=/scratch/kocevski/561243/ft2_4FGL_J1502.5+5552_daily_bin1759.fits sctable="SC_DATA" outfile=/scratch/kocevski/561243/ltcube_695260801_695520001_4FGL_J1502.5+5552_daily_bin1759.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/561243/ft2_4FGL_J1502.5+5552_daily_bin1759.fits
.....................!
real 14.27
user 13.82
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/561243/ft1_filtered_4FGL_J1502.5+5552_daily_bin1759.fits evtable="EVENTS" scfile=/scratch/kocevski/561243/ft2_4FGL_J1502.5+5552_daily_bin1759.fits sctable="SC_DATA" expcube=/scratch/kocevski/561243/ltcube_695260801_695520001_4FGL_J1502.5+5552_daily_bin1759.fits outfile=/scratch/kocevski/561243/expmap_695260801_695520001_4FGL_J1502.5+5552_daily_bin1759.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/561243/ltcube_695260801_695520001_4FGL_J1502.5+5552_daily_bin1759.fits
.....................!
real 157.14
user 152.23
sys 4.35

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/561243/ft1_filtered_4FGL_J1502.5+5552_daily_bin1759.fits scfile=/scratch/kocevski/561243/ft2_4FGL_J1502.5+5552_daily_bin1759.fits outfile=/scratch/kocevski/561243/cmap_695260801_695520001_4FGL_J1502.5+5552_daily_bin1759.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.49
user 0.33
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/561243/ft1_filtered_4FGL_J1502.5+5552_daily_bin1759.fits scfile=/scratch/kocevski/561243/ft2_4FGL_J1502.5+5552_daily_bin1759.fits outfile=/scratch/kocevski/561243/cmap_HighResolution_695260801_695520001_4FGL_J1502.5+5552_daily_bin1759.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.48
user 0.32
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10769E-07   1.0000          .0000       .10000E+07
     2 'Prefactor '    .14667       1.0000          .0000       .10000E+07
     3 'Prefactor '    25.270       1.0000          .0000       .10000E+07
     4 'Prefactor '    .11105E-04   1.0000          .0000       .10000E+07
     5 'Prefactor '    7.0674       1.0000          .0000       .10000E+07
     6 'Prefactor '    4.4637       1.0000          .0000       .10000E+07
     7 'Prefactor '    .93046E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    .14505E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    67.571       1.0000          .0000       .10000E+07
    10 'Prefactor '    10.539       1.0000          .0000       .10000E+07
    11 'Prefactor '    .60814       1.0000          .0000       .10000E+07
    12 'norm      '    2.3131       1.0000          .0000       .10000E+07
    13 'Prefactor '    .12244E-02   1.0000          .0000       .10000E+07
    14 'Prefactor '    5.1449       1.0000          .0000       .10000E+07
    15 'Prefactor '    1.5804       1.0000          .0000       .10000E+07
    16 'norm      '    3.5675       1.0000          .0000       .10000E+07
    17 'Prefactor '    .11963E-02   1.0000          .0000       .10000E+07
    18 'norm      '    .90816E-07   1.0000          .0000       .10000E+07
    19 'Prefactor '    .95465E-03   1.0000          .0000       .10000E+07
    20 'Prefactor '    4.2854       1.0000          .0000       .10000E+07
    21 'norm      '    .57447       1.0000          .0000       .10000E+07
    22 'Prefactor '    .21402E-02   1.0000          .0000       .10000E+07
    23 'Prefactor '    .27640E-03   1.0000          .0000       .10000E+07
    24 'Prefactor '    11.384       1.0000          .0000       .10000E+07
    25 'Normalizat'    1.3266       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .77540       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=   9192.348     FROM MIGRAD    STATUS=CONVERGED    158 CALLS     2248 TOTAL
                     EDM=   .37E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        .78463       -.19827E-07** at limit **
   2  Prefactor     .44409E-09    41.513        .48205E-06** at limit **
   3  Prefactor     25.890        30.966       -.84526E-07    .18593E-01
   4  Prefactor      .0000        3.4966        .24711E-06** at limit **
   5  Prefactor     7.0509        2.8033        .24344E-07   -.46192E-02
   6  Prefactor     4.4612        2.5514        .85056E-08   -.97641E-05
   7  Prefactor     .49960E-09    10.545       -.69293E-09** at limit **
   8  Prefactor     .22143E-06    8.4181        .71512E-07** at limit **
   9  Prefactor     67.876        20.129       -.36013E-07   -.75370E-01
  10  Prefactor     10.569        6.8593        .54081E-07   -.62312E-01
  11  Prefactor     .62244        1.1895       -.38793E-07   -.19760E-02
  12  norm          2.3128        1.4508        .26103E-07    .12414E-02
  13  Prefactor     .24425E-08    16.224        .59882E-06** at limit **
  14  Prefactor     5.1317        4.8063        .85660E-07    .72926E-03
  15  Prefactor     1.6001        4.7686        .11716E-07   -.34601E-03
  16  norm          3.5723        3.4593       -.82097E-07   -.94289E-03
  17  Prefactor     .11102E-09    5.8216        .19229E-06** at limit **
  18  norm           .0000        .48144        .80985E-07** at limit **
  19  Prefactor     .34434E-06    17.570       -.21390E-06** at limit **
  20  Prefactor     4.2728        6.2101        .14428E-06    .92517E-02
  21  norm          .61004        11.213       -.15516E-06   -.14922E-01
  22  Prefactor     .14283E-06    11.339        .34238E-06** at limit **
  23  Prefactor     .19912E-06    7.9790       -.12052E-06** at limit **
  24  Prefactor     11.345        6.7038       -.12311E-07   -.12241E-02
  25  Normalizat    1.3262        .16767       -.16900E-05   -.32952E-04
  26  Prefactor     .77540        .18138        .12652E-05   -.11239E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  Prefactor  = 4.44089e-10
  Prefactor  = 25.89
  Prefactor  = 0
  Prefactor  = 7.0509
  Prefactor  = 4.46122
  Prefactor  = 4.996e-10
  Prefactor  = 2.21434e-07
  Prefactor  = 67.8756
  Prefactor  = 10.5688
  Prefactor  = 0.622444
  norm       = 2.31281
  Prefactor  = 2.44249e-09
  Prefactor  = 5.13174
  Prefactor  = 1.60014
  norm       = 3.57226
  Prefactor  = 1.11022e-10
  norm       = 0
  Prefactor  = 3.44336e-07
  Prefactor  = 4.27279
  norm       = 0.610039
  Prefactor  = 1.4283e-07
  Prefactor  = 1.99118e-07
  Prefactor  = 11.3448
  Normalizat = 1.32623
  Prefactor  = 0.775403
 **********
 **   18 **HESSE 
 **********

 FCN=   9192.348     FROM HESSE     STATUS=OK           512 CALLS     2760 TOTAL
                     EDM=   .18E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        .78433        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .44409E-09    40.984        .12814E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     25.890        35.743        .19897E-03   -1.5606    
   4  Prefactor      .0000        3.4797        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.0509        20.290        .37711E-03   -1.5655    
   6  Prefactor     4.4612        2.5525        .47636E-03   -1.5666    
   7  Prefactor     .49960E-09    10.564        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .22143E-06    21.783        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     67.876        40.243        .12166E-03   -1.5543    
  10  Prefactor     10.569        14.995        .30838E-03   -1.5643    
  11  Prefactor     .62244        79.513        .68502E-03   -1.5692    
  12  norm          2.3128        1.4602        .67428E-03   -1.5678    
  13  Prefactor     .24425E-08    17.063        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.1317        4.8217        .44299E-03   -1.5663    
  15  Prefactor     1.6001        4.7957        .84452E-03   -1.5683    
  16  norm          3.5723        3.4692        .53483E-03   -1.5670    
  17  Prefactor     .11102E-09    5.8045        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm           .0000        .48019        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .34434E-06    25.869        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.2728        6.8643        .48643E-03   -1.5667    
  21  norm          .61004        14.675        .71547E-03   -1.5692    
  22  Prefactor     .14283E-06    19.540        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .19912E-06    23.989        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     11.345        6.7084        .29667E-03   -1.5641    
  25  Normalizat    1.3262        .14185        .48245E-01   -.82787    
  26  Prefactor     .77540        .15310        .67416E-01   -1.0064    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.8339e-06
Minuit parameter uncertainties:
  1  5.51906e-07
  2  0.000265851
  3  35.7431
  4  1.52489e-05
  5  20.2898
  6  2.55253
  7  0.000148049
  8  0.00439226
  9  40.243
  10  14.9949
  11  14.0703
  12  1.46022
  13  0.000408382
  14  4.82173
  15  4.79567
  16  3.46917
  17  4.79409e-05
  18  1.56213e-06
  19  0.00596905
  20  6.86436
  21  5.98417
  22  0.00334109
  23  0.00437087
  24  6.7084
  25  0.141888
  26  0.153179
Done.

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

Extracting fit parameters...

4FGL J1502.5+5552
   Spectrum: PowerLaw
348    Prefactor:  2.442e-09  4.084e-04  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.754e-01  1.532e-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.326e+00  1.419e-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.45e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.21e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/561243/likelihoodResults_695260801_695520001_4FGL_J1502.5+5552_daily_bin1759.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) = 9192.38359305
delta logL = -0.0353459310863

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9192.34824815
delta logL = -1.02962439996e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10706E-04   1.0000          .0000       .10000E+07
     2 'Index     '    1.7047       1.0000          .0000       10.000    
     3 'Normalizat'    1.3261       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77558       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=   9192.348     FROM MIGRAD    STATUS=CONVERGED     42 CALLS      219 TOTAL
                     EDM=   .46E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        13.419        .42118E-03** at limit **
   2  Index         1.8280        1.0616        .73966E-05     .0000    
   3  Normalizat    1.3262        1.0742       -.77813E-07   -.39019E-04
   4  Prefactor     .77540        1.1246        .37615E-05    .97777E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.82799
  Normalizat = 1.32623
  Prefactor  = 0.775403
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   9192.348     FROM HESSE     STATUS=FAILED         9 CALLS      228 TOTAL
                     EDM=   .46E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        13.419        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .34483        1.6052        .73966E-05   -.68723    
   3  Normalizat    1.3262        1.0742       -.77813E-07   -.82787    
   4  Prefactor     .77540        1.1246        .37615E-05   -1.0064    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 4.55459e-12
Minuit parameter uncertainties:
  1  2.93853e-05
  2  1.07542
  3  1.09318
  4  1.16068
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/561243': 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) = 9192.34824712
delta logL = 6.73026079312e-11

Extracting fit parameters...

4FGL J1502.5+5552
   Spectrum: PowerLaw
348    Prefactor:  0.000e+00  2.939e-05  0.000e+00  1.000e+06 ( 1.000e-13)
349        Index:  1.828e+00  1.075e+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.754e-01  1.161e+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:  1.326e+00  1.093e+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/561243/cmap_HighResolution_695260801_695520001_4FGL_J1502.5+5552_daily_bin1759.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.21e-03', job_status='DONE', photon_flux_upper_limit='5.45e-08', time_completed='2023-01-16 01:35:54.081891', job_id='561243', GAL2='0.78', fit_tolerance='1e-08', EG2='1.33', EG='1.33', time_epoch_completed='1673861754.08', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='6.73e-11', ts2='0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='1759' AND source_name='4FGL J1502.5+5552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Jan 16 01:35:54 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0033>
Subject: Job 561243: <4FGL_J1502.5+5552_daily_bin1759> in cluster <slac> Done

Job <4FGL_J1502.5+5552_daily_bin1759> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Jan 16 01:20:25 2023
Job was executed on host(s) <bullet0033>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Jan 16 01:21:40 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Jan 16 01:21:40 2023
Terminated at Mon Jan 16 01:35:54 2023
Results reported at Mon Jan 16 01:35:54 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1502.5+5552_daily_bin1759 225.626 55.8797 695260801 695520001 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 :                                   769.45 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             329.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   854 sec.
    Turnaround time :                            929 sec.

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

