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


Performing analysis on: 4FGL_J1508.4+7717_daily_bin1754
RA = 227.102, Dec = 77.2929
tmin = 693964801, tmax = 694224001
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='646277', job_status='RUN', time_executed='2023-01-01 01:21:24.186906', time_epoch_executed='1672564884.19' WHERE source_name='4FGL J1508.4+7717' and cadence='daily' and bin_id='1754'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/646277

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/646277/ft1_4FGL_J1508.4+7717_daily_bin1754.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/646277/ft2_4FGL_J1508.4+7717_daily_bin1754.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/646277/ft1_4FGL_J1508.4+7717_daily_bin1754.fits outfile=/scratch/kocevski/646277/ft1_filteredMKT_4FGL_J1508.4+7717_daily_bin1754.fits ra=227.102 dec=77.2929 rad=12.0 tmin=693964801.0 tmax=694224001.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 3.94
user 3.68
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/646277/ft2_4FGL_J1508.4+7717_daily_bin1754.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/646277/ft2_4FGL_J1508.4+7717_daily_bin1754.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/646277/ft1_filteredMKT_4FGL_J1508.4+7717_daily_bin1754.fits evtable="EVENTS" outfile="/scratch/kocevski/646277/ft1_filtered_4FGL_J1508.4+7717_daily_bin1754.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.52
user 0.34
sys 0.18

Number of photons that the gtmktime cut: 967

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/646277/ft1_filtered_4FGL_J1508.4+7717_daily_bin1754.fits" evtable="EVENTS" scfile=/scratch/kocevski/646277/ft2_4FGL_J1508.4+7717_daily_bin1754.fits sctable="SC_DATA" outfile=/scratch/kocevski/646277/ltcube_693964801_694224001_4FGL_J1508.4+7717_daily_bin1754.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/646277/ft2_4FGL_J1508.4+7717_daily_bin1754.fits
.....................!
real 13.68
user 13.32
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/646277/ft1_filtered_4FGL_J1508.4+7717_daily_bin1754.fits evtable="EVENTS" scfile=/scratch/kocevski/646277/ft2_4FGL_J1508.4+7717_daily_bin1754.fits sctable="SC_DATA" expcube=/scratch/kocevski/646277/ltcube_693964801_694224001_4FGL_J1508.4+7717_daily_bin1754.fits outfile=/scratch/kocevski/646277/expmap_693964801_694224001_4FGL_J1508.4+7717_daily_bin1754.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/646277/ltcube_693964801_694224001_4FGL_J1508.4+7717_daily_bin1754.fits
.....................!
real 192.05
user 186.38
sys 5.31

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 215 point sources and 0 extended sources

Setting source of interest to:
4FGL J1508.4+7717 @ 227.102 77.2929

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/646277/ft1_filtered_4FGL_J1508.4+7717_daily_bin1754.fits scfile=/scratch/kocevski/646277/ft2_4FGL_J1508.4+7717_daily_bin1754.fits outfile=/scratch/kocevski/646277/cmap_693964801_694224001_4FGL_J1508.4+7717_daily_bin1754.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=227.102 yref=77.2929 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.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/646277/ft1_filtered_4FGL_J1508.4+7717_daily_bin1754.fits scfile=/scratch/kocevski/646277/ft2_4FGL_J1508.4+7717_daily_bin1754.fits outfile=/scratch/kocevski/646277/cmap_HighResolution_693964801_694224001_4FGL_J1508.4+7717_daily_bin1754.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=227.102 yref=77.2929 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.60
user 0.41
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/646277/ft1_filtered_4FGL_J1508.4+7717_daily_bin1754.fits evtable="EVENTS" scfile=/scratch/kocevski/646277/ft2_4FGL_J1508.4+7717_daily_bin1754.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/646277/Model_4FGL_J1508.4+7717_daily_bin1754.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/646277/ft1_filtered_4FGL_J1508.4+7717_daily_bin1754.fits.....................!
real 110.10
user 108.41
sys 1.31

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/646277/ft1_filtered_4FGL_J1508.4+7717_daily_bin1754.fits', '/scratch/kocevski/646277/ft2_4FGL_J1508.4+7717_daily_bin1754.fits', expMap='/scratch/kocevski/646277/expmap_693964801_694224001_4FGL_J1508.4+7717_daily_bin1754.fits', expCube='/scratch/kocevski/646277/ltcube_693964801_694224001_4FGL_J1508.4+7717_daily_bin1754.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/646277/Model_4FGL_J1508.4+7717_daily_bin1754.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1508.4+7717'

4FGL J1508.4+7717
   Spectrum: PowerLaw
355    Prefactor:  4.602e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
356        Index:  2.179e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
357        Scale:  1.992e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/646277/ft1_filtered_4FGL_J1508.4+7717_daily_bin1754.fits
Spacecraft file(s): /scratch/kocevski/646277/ft2_4FGL_J1508.4+7717_daily_bin1754.fits
Exposure map: /scratch/kocevski/646277/expmap_693964801_694224001_4FGL_J1508.4+7717_daily_bin1754.fits
Exposure cube: /scratch/kocevski/646277/ltcube_693964801_694224001_4FGL_J1508.4+7717_daily_bin1754.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/646277/Model_4FGL_J1508.4+7717_daily_bin1754.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 10284.4866211

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .92420E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    35.008       1.0000          .0000       .10000E+07
     3 'Prefactor '    .18592E-02   1.0000          .0000       .10000E+07
     4 'norm      '    1.1661       1.0000          .0000       .10000E+07
     5 'Prefactor '    .32879E-06   1.0000          .0000       .10000E+07
     6 'Prefactor '    .15549E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    .73130E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    .22106E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    .30648E-04   1.0000          .0000       .10000E+07
    10 'Prefactor '    .26343E-02   1.0000          .0000       .10000E+07
    11 'Prefactor '    .79044E-01   1.0000          .0000       .10000E+07
    12 'Prefactor '    12.886       1.0000          .0000       .10000E+07
    13 'Prefactor '    .42434E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    .55615       1.0000          .0000       .10000E+07
    15 'norm      '    2.1595       1.0000          .0000       .10000E+07
    16 'Prefactor '    .30186E-02   1.0000          .0000       .10000E+07
    17 'Prefactor '    .26231E-02   1.0000          .0000       .10000E+07
    18 'norm      '    .58926       1.0000          .0000       .10000E+07
    19 'Prefactor '    .97475       1.0000          .0000       .10000E+07
    20 'Prefactor '    .55894E-02   1.0000          .0000       .10000E+07
    21 'Prefactor '    .57282E-03   1.0000          .0000       .10000E+07
    22 'norm      '    1.3695       1.0000          .0000       .10000E+07
    23 'Normalizat'    .96236       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0626       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6850E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10284.27     FROM MIGRAD    STATUS=CONVERGED    210 CALLS     1617 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10284E-05    27.030        .27394E-06** at limit **
   2  Prefactor     34.963        13.600        .10702E-07    .53203E-03
   3  Prefactor     .12212E-08    41.582        .38720E-07** at limit **
   4  norm          1.1672        3.0193        .45939E-07   -.69169E-04
   5  Prefactor     .55511E-10    9.5404       -.14018E-06** at limit **
   6  Prefactor      .0000        8.3806       -.30166E-06** at limit **
   7  Prefactor      .0000        14.079       -.10300E-06** at limit **
   8  Prefactor      .0000        10.408       -.33907E-07** at limit **
   9  Prefactor      .0000        3.0460        .10190E-07** at limit **
  10  Prefactor     .11957E-06    380.55        .98667E-06** at limit **
  11  Prefactor      .0000        48.544       -.66902E-06** at limit **
  12  Prefactor     13.722        16.717       -.14577E-06    .48176E-01
  13  Prefactor     .64948E-08    18.665        .20166E-06** at limit **
  14  Prefactor     .23344E-05    372.09       -.19007E-06** at limit **
  15  norm          1.9367        11.259        .95621E-08   -.53498E-04
  16  Prefactor     .57954E-07    42.245        .32804E-07** at limit **
  17  Prefactor     .12368E-06    22.509        .12874E-07** at limit **
  18  norm          .58961        .58711        .95020E-08   -.17855E-03
  19  Prefactor     .98230        2.0864        .65358E-07   -.60811E-04
  20  Prefactor     .16653E-09    11.138       -.12485E-06** at limit **
  21  Prefactor     .61695E-06    23.527       -.10556E-06** at limit **
  22  norm          1.3695        .61596        .45544E-08   -.21469E-03
  23  Normalizat    .96220        .15514       -.22373E-05   -.17189E-05
  24  Prefactor     1.0627        .11777        .99862E-06   -.85606E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.0284e-06
  Prefactor  = 34.9631
  Prefactor  = 1.22125e-09
  norm       = 1.16722
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 1.19571e-07
  Prefactor  = 0
  Prefactor  = 13.7216
  Prefactor  = 6.4948e-09
  Prefactor  = 2.33435e-06
  norm       = 1.93668
  Prefactor  = 5.79536e-08
  Prefactor  = 1.23679e-07
  norm       = 0.589606
  Prefactor  = 0.982302
  Prefactor  = 1.66533e-10
  Prefactor  = 6.16951e-07
  norm       = 1.36949
  Normalizat = 0.962199
  Prefactor  = 1.06273
 **********
 **   18 **HESSE 
 **********

 FCN=   10284.27     FROM HESSE     STATUS=OK           439 CALLS     2056 TOTAL
                     EDM=   .88E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10284E-05    31.474        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     34.963        14.000        .16903E-03   -1.5590    
   3  Prefactor     .12212E-08    84.311        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.1672        3.1246        .10642E-02   -1.5686    
   5  Prefactor     .55511E-10    9.5482        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        8.3737        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        14.092        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        10.399        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor      .0000        3.0484        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .11957E-06    380.60        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor      .0000        46.912        .14530E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     13.722        29.885        .27879E-03   -1.5634    
  13  Prefactor     .64948E-08    18.709        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .23344E-05    367.98        .73251E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.9367        11.341        .70069E-03   -1.5680    
  16  Prefactor     .57954E-07    83.585        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .12368E-06    23.079        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .58961        .59827        .70196E-03   -1.5693    
  19  Prefactor     .98230        2.1024        .42870E-03   -1.5688    
  20  Prefactor     .16653E-09    11.136        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .61695E-06    26.351        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.3695        .62602        .93147E-03   -1.5685    
  23  Normalizat    .96220        .13914        .45694E-01   -.94308    
  24  Prefactor     1.0627        .10475        .39225E-01   -.90667    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.77284e-07
Minuit parameter uncertainties:
  1  0.0113787
  2  14.0001
  3  0.000638745
  4  3.1246
  5  5.46524e-05
  6  2.41113e-05
  7  6.34516e-06
  8  7.48551e-06
  9  1.99744e-06
  10  0.0134929
  11  6.81457e-06
  12  29.8854
  13  0.000697436
  14  0.0586212
  15  9.37324
  16  0.00440093
  17  0.00337899
  18  0.598275
  19  2.10241
  20  8.18244e-05
  21  0.00806414
  22  0.626023
  23  0.139197
  24  0.10477
Done.

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

Extracting fit parameters...

4FGL J1508.4+7717
   Spectrum: PowerLaw
355    Prefactor:  1.372e+01  2.989e+01  0.000e+00  1.000e+06 ( 1.000e-14)
356        Index:  2.179e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
357        Scale:  1.992e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
682    Prefactor:  1.063e+00  1.048e-01  0.000e+00  1.000e+01 ( 1.000e+00)
683        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
684        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
681   Normalization:  9.622e-01  1.392e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.28
Ra Dec: 227.102 77.293
Photon Flux Upper Limit: 5.55e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.22e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/646277/likelihoodResults_693964801_694224001_4FGL_J1508.4+7717_daily_bin1754.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) = 10284.0282668
delta logL = 0.244442262372

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10284.0134191
delta logL = 0.259289954467

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .31073       1.0000          .0000       .10000E+07
     2 'Index     '    4.2388       1.0000          .0000       10.000    
     3 'Normalizat'    .92661       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0802       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6850E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10284.01     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      331 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .31090        5.2305        .10066E-02    .37964E-01
   2  Index         4.2392        2.0246        .10888        .26154E-03
   3  Normalizat    .92661        .26585E-01    .45241E-01    .24702E-04
   4  Prefactor     1.0802        .20285E-01    .38393E-01    .90060E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.310898
  Index      = 4.23925
  Normalizat = 0.926614
  Prefactor  = 1.08016
 **********
 **   18 **HESSE 
 **********

 FCN=   10284.01     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      364 TOTAL
                     EDM=   .17E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .31090        21.383        .65572E-05   -1.5697    
   2  Index         4.2392        7.0728        .60514E-02   -.15274    
   3  Normalizat    .92661        .12214        .27960E-03   -.95531    
   4  Prefactor     1.0802        .91480E-01    .19824E-03   -.90103    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.73403e-06
Minuit parameter uncertainties:
  1  5.15673
  2  6.04991
  3  0.122173
  4  0.0914932
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/646277': 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) = 10284.0134179
delta logL = 0.259291154982

Extracting fit parameters...

4FGL J1508.4+7717
   Spectrum: PowerLaw
355    Prefactor:  3.109e-01  5.157e+00  0.000e+00  1.000e+06 ( 1.000e-14)
356        Index:  4.239e+00  6.050e+00  0.000e+00  1.000e+01 (-1.000e+00)
357        Scale:  1.992e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
682    Prefactor:  1.080e+00  9.149e-02  0.000e+00  1.000e+01 ( 1.000e+00)
683        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
684        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
681   Normalization:  9.266e-01  1.222e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.28
Ra Dec: 227.102 77.293

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/646277/cmap_HighResolution_693964801_694224001_4FGL_J1508.4+7717_daily_bin1754.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.22e-03', job_status='DONE', photon_flux_upper_limit='5.55e-08', time_completed='2023-01-01 01:36:37.614917', job_id='646277', GAL2='1.08', fit_tolerance='1e-08', EG2='0.93', EG='0.96', time_epoch_completed='1672565797.61', return_code2='102', ts='0.28', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='2.59e-01', ts2='0.85', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='1754' AND source_name='4FGL J1508.4+7717' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Jan  1 01:36:37 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0249>
Subject: Job 646277: <4FGL_J1508.4+7717_daily_bin1754> in cluster <slac> Done

Job <4FGL_J1508.4+7717_daily_bin1754> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Jan  1 01:20:18 2023
Job was executed on host(s) <bullet0249>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jan  1 01:21:11 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Jan  1 01:21:11 2023
Terminated at Sun Jan  1 01:36:38 2023
Results reported at Sun Jan  1 01:36:38 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1508.4+7717_daily_bin1754 227.102 77.2929 693964801 694224001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1508.4+7717 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   913.21 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             356.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   927 sec.
    Turnaround time :                            980 sec.

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

