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


Performing analysis on: 4FGL_J1502.5+5552_daily_bin1716
RA = 225.626, Dec = 55.8797
tmin = 684115201, tmax = 684374401
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='155294', job_status='RUN', time_executed='2022-09-16 18:47:36.512437', time_epoch_executed='1663379256.51' WHERE source_name='4FGL J1502.5+5552' and cadence='daily' and bin_id='1716'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/155294

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/155294/ft1_4FGL_J1502.5+5552_daily_bin1716.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/155294/ft2_4FGL_J1502.5+5552_daily_bin1716.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/155294/ft1_4FGL_J1502.5+5552_daily_bin1716.fits outfile=/scratch/kocevski/155294/ft1_filteredMKT_4FGL_J1502.5+5552_daily_bin1716.fits ra=225.626 dec=55.8797 rad=12.0 tmin=684115201.0 tmax=684374401.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 4.24
user 3.90
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/155294/ft2_4FGL_J1502.5+5552_daily_bin1716.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/155294/ft1_filteredMKT_4FGL_J1502.5+5552_daily_bin1716.fits evtable="EVENTS" outfile="/scratch/kocevski/155294/ft1_filtered_4FGL_J1502.5+5552_daily_bin1716.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.53
user 0.33
sys 0.19

Number of photons that the gtmktime cut: 496

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/155294/ft1_filtered_4FGL_J1502.5+5552_daily_bin1716.fits" evtable="EVENTS" scfile=/scratch/kocevski/155294/ft2_4FGL_J1502.5+5552_daily_bin1716.fits sctable="SC_DATA" outfile=/scratch/kocevski/155294/ltcube_684115201_684374401_4FGL_J1502.5+5552_daily_bin1716.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/155294/ft2_4FGL_J1502.5+5552_daily_bin1716.fits
.....................!
real 13.93
user 13.32
sys 0.43

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/155294/ft1_filtered_4FGL_J1502.5+5552_daily_bin1716.fits evtable="EVENTS" scfile=/scratch/kocevski/155294/ft2_4FGL_J1502.5+5552_daily_bin1716.fits sctable="SC_DATA" expcube=/scratch/kocevski/155294/ltcube_684115201_684374401_4FGL_J1502.5+5552_daily_bin1716.fits outfile=/scratch/kocevski/155294/expmap_684115201_684374401_4FGL_J1502.5+5552_daily_bin1716.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/155294/ltcube_684115201_684374401_4FGL_J1502.5+5552_daily_bin1716.fits
.....................!
real 194.59
user 188.34
sys 5.52

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/155294/ft1_filtered_4FGL_J1502.5+5552_daily_bin1716.fits scfile=/scratch/kocevski/155294/ft2_4FGL_J1502.5+5552_daily_bin1716.fits outfile=/scratch/kocevski/155294/cmap_684115201_684374401_4FGL_J1502.5+5552_daily_bin1716.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.56
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/155294/ft1_filtered_4FGL_J1502.5+5552_daily_bin1716.fits scfile=/scratch/kocevski/155294/ft2_4FGL_J1502.5+5552_daily_bin1716.fits outfile=/scratch/kocevski/155294/cmap_HighResolution_684115201_684374401_4FGL_J1502.5+5552_daily_bin1716.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.40
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.9557       1.0000          .0000       .10000E+07
     2 'Prefactor '    22.466       1.0000          .0000       .10000E+07
     3 'Prefactor '    .29976E-06   1.0000          .0000       .10000E+07
     4 'Prefactor '    6.7112       1.0000          .0000       .10000E+07
     5 'Prefactor '    .36390       1.0000          .0000       .10000E+07
     6 'Prefactor '    3.0335       1.0000          .0000       .10000E+07
     7 'Prefactor '    .47795E-07   1.0000          .0000       .10000E+07
     8 'Prefactor '    .11108E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    45.460       1.0000          .0000       .10000E+07
    10 'Prefactor '    41.835       1.0000          .0000       .10000E+07
    11 'Prefactor '    .88609E-04   1.0000          .0000       .10000E+07
    12 'norm      '    .21649E-08   1.0000          .0000       .10000E+07
    13 'Prefactor '    5.9867       1.0000          .0000       .10000E+07
    14 'Prefactor '    .14241E-04   1.0000          .0000       .10000E+07
    15 'Prefactor '    12.245       1.0000          .0000       .10000E+07
    16 'norm      '    .30864E-07   1.0000          .0000       .10000E+07
    17 'Prefactor '    30.117       1.0000          .0000       .10000E+07
    18 'norm      '    .20428E-06   1.0000          .0000       .10000E+07
    19 'Prefactor '    .11077E-05   1.0000          .0000       .10000E+07
    20 'Prefactor '    13.689       1.0000          .0000       .10000E+07
    21 'norm      '    .15723E-02   1.0000          .0000       .10000E+07
    22 'Prefactor '    34.859       1.0000          .0000       .10000E+07
    23 'Prefactor '    .11595       1.0000          .0000       .10000E+07
    24 'Prefactor '    .79066E-05   1.0000          .0000       .10000E+07
    25 'Normalizat'    .86522       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .85501       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=   5393.553     FROM MIGRAD    STATUS=CONVERGED    171 CALLS     2243 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.9549        3.8015       -.76553E-07    .16040E-02
   2  Prefactor     22.431        1.0342       -.79384E-07    .18439E-02
   3  Prefactor     .12239E-05    13.654       -.31876E-05** at limit **
   4  Prefactor     6.7116        4.4572        .22547E-06    .20261E-02
   5  Prefactor     .12246        49.919       -.26428E-04** at limit **
   6  Prefactor     3.0355        2.0402       -.20437E-07    .29179E-02
   7  Prefactor     .25469E-06    18.921       -.27811E-06** at limit **
   8  Prefactor     .91599E-06    28.864       -.13066E-05** at limit **
   9  Prefactor     45.045        14.407        .41712E-05    .20672E-01
  10  Prefactor     41.611        13.267       -.38398E-05   -.22436    
  11  Prefactor     .55511E-10    7.9199       -.27340E-06** at limit **
  12  norm           .0000        .88131       -.25405E-08** at limit **
  13  Prefactor     6.0157        8.7577        .57241E-07    .19717E-02
  14  Prefactor      .0000        2.0076       -.82828E-07** at limit **
  15  Prefactor     12.207        9.1273       -.34516E-06   -.30246E-02
  16  norm           .0000        1.4107        .85844E-07** at limit **
  17  Prefactor     29.558        5.9737        .18018E-05    .65218E-01
  18  norm           .0000        .71460       -.22250E-07** at limit **
  19  Prefactor     .92759E-06    117.72       -.46029E-05** at limit **
  20  Prefactor     13.770        8.3676        .22519E-06   -.42764E-02
  21  norm          .55816E-06    11.978       -.10926E-05** at limit **
  22  Prefactor     35.287        25.345       -.84680E-05    .71032E-01
  23  Prefactor     .94369E-09    62.300        .16339E-06** at limit **
  24  Prefactor      .0000        2.4352       -.60072E-07** at limit **
  25  Normalizat    .86581        .19312        .16930E-04    .14759E-03
  26  Prefactor     .85485        .21239       -.34247E-05    .15240E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.95494
  Prefactor  = 22.431
  Prefactor  = 1.22385e-06
  Prefactor  = 6.71165
  Prefactor  = 0.122458
  Prefactor  = 3.03546
  Prefactor  = 2.54685e-07
  Prefactor  = 9.1599e-07
  Prefactor  = 45.0452
  Prefactor  = 41.6113
  Prefactor  = 5.55112e-11
  norm       = 0
  Prefactor  = 6.01569
  Prefactor  = 0
  Prefactor  = 12.2072
  norm       = 0
  Prefactor  = 29.5577
  norm       = 0
  Prefactor  = 9.27591e-07
  Prefactor  = 13.7698
  norm       = 5.58165e-07
  Prefactor  = 35.2866
  Prefactor  = 9.4369e-10
  Prefactor  = 0
  Normalizat = 0.865808
  Prefactor  = 0.854846
 **********
 **   18 **HESSE 
 **********

 FCN=   5393.553     FROM HESSE     STATUS=OK           512 CALLS     2755 TOTAL
                     EDM=   .10E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.9549        3.8091        .50693E-03   -1.5668    
   2  Prefactor     22.431        34.031        .21103E-03   -1.5613    
   3  Prefactor     .12239E-05    25.979        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.7116        4.5772        .38710E-03   -1.5656    
   5  Prefactor     .12246        31.309        .11415E-01   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.0355        2.0538        .58235E-03   -1.5673    
   7  Prefactor     .25469E-06    19.484        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .91599E-06    30.828        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     45.045        32.941        .14833E-03   -1.5574    
  10  Prefactor     41.611        20.401        .15462E-03   -1.5579    
  11  Prefactor     .55511E-10    7.9337        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm           .0000        .87039        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6.0157        8.7987        .41015E-03   -1.5659    
  14  Prefactor      .0000        2.0094        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     12.207        9.1210        .28601E-03   -1.5638    
  16  norm           .0000        1.4090        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     29.558        21.801        .18225E-03   -1.5599    
  18  norm           .0000        .71477        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .92759E-06    119.33        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     13.770        8.4505        .27046E-03   -1.5634    
  21  norm          .55816E-06    26.722        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     35.287        39.164        .16939E-03   -1.5589    
  23  Prefactor     .94369E-09    61.472        .13519E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor      .0000        2.4344        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .86581        .16427        .44456E-01   -.97672    
  26  Prefactor     .85485        .17896        .44429E-01   -.97737    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.98339e-07
Minuit parameter uncertainties:
  1  3.80911
  2  34.0316
  3  0.0112774
  4  4.57717
  5  3.91613
  6  2.05378
  7  0.00445514
  8  0.0106281
  9  32.9412
  10  20.4014
  11  4.78955e-05
  12  2.45008e-06
  13  8.79871
  14  5.54253e-06
  15  9.12104
  16  6.9231e-06
  17  21.801
  18  1.32743e-06
  19  0.0210418
  20  8.45054
  21  0.00772433
  22  39.1645
  23  0.000483529
  24  2.38215e-06
  25  0.164361
  26  0.17908
Done.

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

Extracting fit parameters...

4FGL J1502.5+5552
   Spectrum: PowerLaw
348    Prefactor:  6.016e+00  8.799e+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

GAL_V02
   Spectrum: PowerLaw
691    Prefactor:  8.548e-01  1.791e-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:  8.658e-01  1.644e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/155294/likelihoodResults_684115201_684374401_4FGL_J1502.5+5552_daily_bin1716.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) = 5393.43779201
delta logL = 0.1156802759

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5393.43217228
delta logL = 0.121300004614

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.3247       1.0000          .0000       .10000E+07
     2 'Index     '    1.9912       1.0000          .0000       10.000    
     3 'Normalizat'    .87293       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84814       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5393.432     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      280 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.3182        12.468        .65591E-04   -.36035E-03
   2  Index         1.9913        .78659        .92108E-02    .22570E-04
   3  Normalizat    .87329        .18568        .21738E-03   -.98481E-04
   4  Prefactor     .84804        .21106        .24937E-03    .13285E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.3182
  Index      = 1.99127
  Normalizat = 0.873288
  Prefactor  = 0.848039
 **********
 **   18 **HESSE 
 **********

 FCN=   5393.432     FROM HESSE     STATUS=OK            25 CALLS      305 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.3182        12.284        .26236E-05   -1.5647    
   2  Index         1.9913        .77516        .36843E-03   -.64569    
   3  Normalizat    .87329        .18584        .86950E-05   -.97405    
   4  Prefactor     .84804        .21127        .99747E-05   -.97981    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.87708e-10
Minuit parameter uncertainties:
  1  12.2837
  2  0.780114
  3  0.185978
  4  0.211469
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/155294': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5393.4321669
delta logL = 0.12130538475

Extracting fit parameters...

4FGL J1502.5+5552
   Spectrum: PowerLaw
348    Prefactor:  9.318e+00  1.228e+01  0.000e+00  1.000e+06 ( 1.000e-13)
349        Index:  1.991e+00  7.801e-01  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:  8.480e-01  2.115e-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:  8.733e-01  1.860e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.73
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/155294/cmap_HighResolution_684115201_684374401_4FGL_J1502.5+5552_daily_bin1716.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.46e-03', job_status='DONE', photon_flux_upper_limit='8.36e-08', time_completed='2022-09-16 18:59:00.853934', job_id='155294', GAL2='0.85', fit_tolerance='1e-08', EG2='0.87', EG='0.87', time_epoch_completed='1663379940.85', return_code2='0', ts='0.73', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='1.21e-01', ts2='0.98', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='1716' AND source_name='4FGL J1502.5+5552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 18:59:00 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0244>
Subject: Job 155294: <4FGL_J1502.5+5552_daily_bin1716> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1502.5+5552_daily_bin1716 225.626 55.8797 684115201 684374401 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 :                                   685.12 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             303.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   791 sec.
    Turnaround time :                            822 sec.

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

