/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 1 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 make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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 = 7388
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1508.4+7717_daily_bin293
RA = 227.102, Dec = 77.2929
tmin = 315273601, tmax = 315532801
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='74244', job_status='RUN', time_executed='2021-09-11 01:11:56.565791', time_epoch_executed='1631347916.57' WHERE source_name='4FGL J1508.4+7717' and cadence='daily' and bin_id='293'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/74244

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/74244/ft1_4FGL_J1508.4+7717_daily_bin293.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/74244/ft2_4FGL_J1508.4+7717_daily_bin293.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/74244/ft1_4FGL_J1508.4+7717_daily_bin293.fits outfile=/scratch/kocevski/74244/ft1_filteredMKT_4FGL_J1508.4+7717_daily_bin293.fits ra=227.102 dec=77.2929 rad=12.0 tmin=315273601.0 tmax=315532801.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.71
user 3.46
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/74244/ft2_4FGL_J1508.4+7717_daily_bin293.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/74244/ft1_filteredMKT_4FGL_J1508.4+7717_daily_bin293.fits evtable="EVENTS" outfile="/scratch/kocevski/74244/ft1_filtered_4FGL_J1508.4+7717_daily_bin293.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.48
user 0.32
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/74244/ft1_filtered_4FGL_J1508.4+7717_daily_bin293.fits evtable="EVENTS" scfile=/scratch/kocevski/74244/ft2_4FGL_J1508.4+7717_daily_bin293.fits sctable="SC_DATA" expcube=/scratch/kocevski/74244/ltcube_315273601_315532801_4FGL_J1508.4+7717_daily_bin293.fits outfile=/scratch/kocevski/74244/expmap_315273601_315532801_4FGL_J1508.4+7717_daily_bin293.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/74244/ltcube_315273601_315532801_4FGL_J1508.4+7717_daily_bin293.fits
.....................!
real 191.01
user 185.56
sys 4.95

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/74244/ft1_filtered_4FGL_J1508.4+7717_daily_bin293.fits scfile=/scratch/kocevski/74244/ft2_4FGL_J1508.4+7717_daily_bin293.fits outfile=/scratch/kocevski/74244/cmap_315273601_315532801_4FGL_J1508.4+7717_daily_bin293.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.75
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/74244/ft1_filtered_4FGL_J1508.4+7717_daily_bin293.fits scfile=/scratch/kocevski/74244/ft2_4FGL_J1508.4+7717_daily_bin293.fits outfile=/scratch/kocevski/74244/cmap_HighResolution_315273601_315532801_4FGL_J1508.4+7717_daily_bin293.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.55
user 0.38
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/74244/ft1_filtered_4FGL_J1508.4+7717_daily_bin293.fits', '/scratch/kocevski/74244/ft2_4FGL_J1508.4+7717_daily_bin293.fits', expMap='/scratch/kocevski/74244/expmap_315273601_315532801_4FGL_J1508.4+7717_daily_bin293.fits', expCube='/scratch/kocevski/74244/ltcube_315273601_315532801_4FGL_J1508.4+7717_daily_bin293.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/74244/Model_4FGL_J1508.4+7717_daily_bin293.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  1.000e-04  1.000e+04 ( 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/74244/ft1_filtered_4FGL_J1508.4+7717_daily_bin293.fits
Spacecraft file(s): /scratch/kocevski/74244/ft2_4FGL_J1508.4+7717_daily_bin293.fits
Exposure map: /scratch/kocevski/74244/expmap_315273601_315532801_4FGL_J1508.4+7717_daily_bin293.fits
Exposure cube: /scratch/kocevski/74244/ltcube_315273601_315532801_4FGL_J1508.4+7717_daily_bin293.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/74244/Model_4FGL_J1508.4+7717_daily_bin293.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) = 6051.96043978

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    33.841       1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.138       1.0000         .10000E-03   10000.    
     3 'Prefactor '    14.850       1.0000         .10000E-03   10000.    
     4 'norm      '    .10056E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10218E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10364E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10652       1.0000         .10000E-03   10000.    
     8 'Prefactor '    19.647       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11089E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10316E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .14858E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10235E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    25.239       1.0000         .10000E-03   10000.    
    16 'Prefactor '    25.157       1.0000         .10000E-03   10000.    
    17 'norm      '    .10411E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.8094       1.0000         .10000E-03   10000.    
    19 'Prefactor '    35.922       1.0000         .10000E-03   10000.    
    20 'norm      '    1.9046       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .70152       1.0000         .10000E-03   10000.    
    22 'Prefactor '    8.9166       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .33798       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .89638       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0601       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=   6051.944     FROM MIGRAD    STATUS=CONVERGED    147 CALLS     2649 TOTAL
                     EDM=   .61E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     33.839        4.2276        .28419E-07    .14983E-03
   2  Prefactor     10.140        10.534        .13041E-05    .99751E-04
   3  Prefactor     14.865        2.0123        .32570E-06    .21484E-03
   4  norm          .10000E-03    1.4943        .87912E-06** at limit **
   5  Prefactor     .10000E-03    18.083       -.16821E-05** at limit **
   6  Prefactor     .10000E-03    7.4235       -.88515E-06** at limit **
   7  Prefactor     .10019E-03    1926.5       -.70269E-04** at limit **
   8  Prefactor     19.647        14.175       -.68126E-05    .14212E-02
   9  Prefactor     .10000E-03    8.3687       -.15672E-05** at limit **
  10  Prefactor     .10000E-03    13.484       -.26144E-06** at limit **
  11  Prefactor     .10198E-03    272.41       -.19258E-04** at limit **
  12  Prefactor     .10000E-03    11.012       -.42235E-06** at limit **
  13  Prefactor     .10009E-03    47.899       -.27111E-05** at limit **
  14  Prefactor     .10006E-03    49.483       -.84619E-05** at limit **
  15  Prefactor     25.255        13.763        .61779E-05    .18742E-02
  16  Prefactor     25.123        8.0956       -.58352E-06    .29591E-02
  17  norm          .10000E-03    9.7637        .20438E-06** at limit **
  18  Prefactor     3.8690        9.3166        .38958E-05   -.44259E-03
  19  Prefactor     35.850        13.267       -.14848E-05    .15505E-02
  20  norm          1.9057        1.2882       -.19964E-06   -.86083E-04
  21  Prefactor     .70230        2.4965       -.37910E-06   -.15177E-04
  22  Prefactor     8.9160        14.728        .60936E-06    .97085E-03
  23  Prefactor     .10000E-03    131.99       -.62901E-05** at limit **
  24  norm          .33824        .61785        .34769E-06    .64805E-05
  25  Normalizat    .89608        .20464       -.64838E-05    .11523E-04
  26  Prefactor     1.0601        .15431        .38873E-05    .34128E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 33.8393
  Prefactor  = 10.1397
  Prefactor  = 14.8651
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100194
  Prefactor  = 19.6469
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000101982
  Prefactor  = 0.0001
  Prefactor  = 0.000100089
  Prefactor  = 0.000100058
  Prefactor  = 25.2546
  Prefactor  = 25.1228
  norm       = 0.0001
  Prefactor  = 3.869
  Prefactor  = 35.8499
  norm       = 1.90572
  Prefactor  = 0.702299
  Prefactor  = 8.91602
  Prefactor  = 0.000100004
  norm       = 0.338242
  Normalizat = 0.89608
  Prefactor  = 1.0601
 **********
 **   18 **HESSE 
 **********

 FCN=   6051.944     FROM HESSE     STATUS=OK           512 CALLS     3161 TOTAL
                     EDM=   .16E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     33.839        18.591        .17221E-02   -1.4544    
   2  Prefactor     10.140        12.749        .31461E-02   -1.5071    
   3  Prefactor     14.865        82.455        .25984E-02   -1.4937    
   4  norm          .10000E-03    1.4893        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    18.078        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.4024        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10019E-03    45.533        .14249       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     19.647        21.217        .22590E-02   -1.4821    
   9  Prefactor     .10000E-03    8.2638        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    13.444        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10198E-03    323.14        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    11.002        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10009E-03    96.302        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10006E-03    95.389        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     25.255        19.197        .19934E-02   -1.4702    
  16  Prefactor     25.123        35.232        .19967E-02   -1.4705    
  17  norm          .10000E-03    9.7524        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.8690        1056.7        .51701E-02   -1.5315    
  19  Prefactor     35.850        38.285        .16717E-02   -1.4510    
  20  norm          1.9057        1.3374        .75327E-02   -1.5432    
  21  Prefactor     .70230        2.5395        .12068E-01   -1.5540    
  22  Prefactor     8.9160        15.555        .33557E-02   -1.5111    
  23  Prefactor     .10000E-03    131.60        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .33824        .61927        .10590E-02   -1.5592    
  25  Normalizat    .89608        .18844        .44855E-01   -.96598    
  26  Prefactor     1.0601        .13719        .39350E-01   -.90752    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.55149e-07
Minuit parameter uncertainties:
  1  18.5939
  2  12.7523
  3  70.1688
  4  1.13012e-06
  5  1.79919e-05
  6  1.97214e-06
  7  0.00595495
  8  21.2249
  9  1.24004e-05
  10  1.20511e-06
  11  0.0508934
  12  5.46887e-06
  13  0.00586253
  14  0.00470999
  15  19.2012
  16  35.2608
  17  8.49119e-07
  18  130.272
  19  38.3113
  20  1.33745
  21  2.53991
  22  15.5621
  23  0.00142282
  24  0.619285
  25  0.188582
  26  0.137232
Done.

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

Extracting fit parameters...

4FGL J1508.4+7717
   Spectrum: PowerLaw
355    Prefactor:  1.001e-04  5.863e-03  1.000e-04  1.000e+04 ( 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.060e+00  1.372e-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:  8.961e-01  1.886e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/74244/likelihoodResults_315273601_315532801_4FGL_J1508.4+7717_daily_bin293.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) = 6051.94362112
delta logL = -4.90819111292e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6051.94357197
delta logL = 7.13716872269e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2208       1.0000          .0000       10.000    
     3 'Normalizat'    .89608       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0601       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=   6051.944     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      246 TOTAL
                     EDM=   .76E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10020E-03    6505.6        .90712E-02** at limit **
   2  Index         2.3202        8.8152        .50000       -.94570E-05
   3  Normalizat    .89608        .20514E-01    .44851E-01    .23318E-04
   4  Prefactor     1.0601        .15584E-01    .39352E-01    .20158E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100198
  Index      = 2.32019
  Normalizat = 0.896081
  Prefactor  = 1.0601
 **********
 **   18 **HESSE 
 **********

 FCN=   6051.944     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      279 TOTAL
                     EDM=   .85E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10020E-03    8583.8        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3202        6.1507        .50000       -.56565    
   3  Normalizat    .89608        .36825E-01    .28104E-03   -.96598    
   4  Prefactor     1.0601        .27989E-01    .19694E-03   -.90752    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.48987e-08
Minuit parameter uncertainties:
  1  0.0899111
  2  31.1314
  3  0.0368262
  4  0.0279897
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/74244': 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) = 6051.94357177
delta logL = 2.6795987651e-07

Extracting fit parameters...

4FGL J1508.4+7717
   Spectrum: PowerLaw
355    Prefactor:  1.002e-04  8.991e-02  1.000e-04  1.000e+04 ( 1.000e-14)
356        Index:  2.320e+00  3.113e+01  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.060e+00  2.799e-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:  8.961e-01  3.683e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 227.102 77.293

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/74244/cmap_HighResolution_315273601_315532801_4FGL_J1508.4+7717_daily_bin293.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.66e-03', job_status='DONE', photon_flux_upper_limit='7.45e-08', time_completed='2021-09-11 01:25:27.643336', job_id='74244', GAL2='1.06', fit_tolerance='1e-08', EG2='0.90', EG='0.90', time_epoch_completed='1631348727.64', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='2.68e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='293' AND source_name='4FGL J1508.4+7717' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 01:25:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0109>
Subject: Job 74244: <4FGL_J1508.4+7717_daily_bin293> in cluster <slac> Done

Job <4FGL_J1508.4+7717_daily_bin293> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep 11 01:11:45 2021
Job was executed on host(s) <bullet0109>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 01:11:46 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 11 01:11:46 2021
Terminated at Sat Sep 11 01:25:28 2021
Results reported at Sat Sep 11 01:25:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1508.4+7717_daily_bin293 227.102 77.2929 315273601 315532801 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 :                                   803.40 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             332.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   821 sec.
    Turnaround time :                            823 sec.

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

