/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 6 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 = 7460
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1508.4+7717_daily_bin696
RA = 227.102, Dec = 77.2929
tmin = 419731201, tmax = 419990401
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='76084', job_status='RUN', time_executed='2021-09-11 01:17:00.926866', time_epoch_executed='1631348220.93' WHERE source_name='4FGL J1508.4+7717' and cadence='daily' and bin_id='696'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/76084

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/76084/ft1_4FGL_J1508.4+7717_daily_bin696.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/76084/ft2_4FGL_J1508.4+7717_daily_bin696.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/76084/ft1_4FGL_J1508.4+7717_daily_bin696.fits outfile=/scratch/kocevski/76084/ft1_filteredMKT_4FGL_J1508.4+7717_daily_bin696.fits ra=227.102 dec=77.2929 rad=12.0 tmin=419731201.0 tmax=419990401.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 5.94
user 5.60
sys 0.29

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/76084/ft1_filtered_4FGL_J1508.4+7717_daily_bin696.fits" evtable="EVENTS" scfile=/scratch/kocevski/76084/ft2_4FGL_J1508.4+7717_daily_bin696.fits sctable="SC_DATA" outfile=/scratch/kocevski/76084/ltcube_419731201_419990401_4FGL_J1508.4+7717_daily_bin696.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/76084/ft2_4FGL_J1508.4+7717_daily_bin696.fits
.....................!
real 12.83
user 12.40
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/76084/ft1_filtered_4FGL_J1508.4+7717_daily_bin696.fits evtable="EVENTS" scfile=/scratch/kocevski/76084/ft2_4FGL_J1508.4+7717_daily_bin696.fits sctable="SC_DATA" expcube=/scratch/kocevski/76084/ltcube_419731201_419990401_4FGL_J1508.4+7717_daily_bin696.fits outfile=/scratch/kocevski/76084/expmap_419731201_419990401_4FGL_J1508.4+7717_daily_bin696.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/76084/ltcube_419731201_419990401_4FGL_J1508.4+7717_daily_bin696.fits
.....................!
real 190.32
user 185.18
sys 4.73

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/76084/ft1_filtered_4FGL_J1508.4+7717_daily_bin696.fits scfile=/scratch/kocevski/76084/ft2_4FGL_J1508.4+7717_daily_bin696.fits outfile=/scratch/kocevski/76084/cmap_419731201_419990401_4FGL_J1508.4+7717_daily_bin696.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.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/76084/ft1_filtered_4FGL_J1508.4+7717_daily_bin696.fits scfile=/scratch/kocevski/76084/ft2_4FGL_J1508.4+7717_daily_bin696.fits outfile=/scratch/kocevski/76084/cmap_HighResolution_419731201_419990401_4FGL_J1508.4+7717_daily_bin696.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.54
user 0.37
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/76084/ft1_filtered_4FGL_J1508.4+7717_daily_bin696.fits', '/scratch/kocevski/76084/ft2_4FGL_J1508.4+7717_daily_bin696.fits', expMap='/scratch/kocevski/76084/expmap_419731201_419990401_4FGL_J1508.4+7717_daily_bin696.fits', expCube='/scratch/kocevski/76084/ltcube_419731201_419990401_4FGL_J1508.4+7717_daily_bin696.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/76084/Model_4FGL_J1508.4+7717_daily_bin696.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/76084/ft1_filtered_4FGL_J1508.4+7717_daily_bin696.fits
Spacecraft file(s): /scratch/kocevski/76084/ft2_4FGL_J1508.4+7717_daily_bin696.fits
Exposure map: /scratch/kocevski/76084/expmap_419731201_419990401_4FGL_J1508.4+7717_daily_bin696.fits
Exposure cube: /scratch/kocevski/76084/ltcube_419731201_419990401_4FGL_J1508.4+7717_daily_bin696.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/76084/Model_4FGL_J1508.4+7717_daily_bin696.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) = 3896.31772626

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10297E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    23.953       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    46.761       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .25126E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .16967E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    112.66       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.4959       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .12277E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10367E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10163E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    30.674       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10386E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10070E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .13762E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10345E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10029E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.7036       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .33143E-02   1.0000         .10000E-03   10000.    
    24 'norm      '    .22816       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .99896       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .94062       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3896.281     FROM MIGRAD    STATUS=CONVERGED    597 CALLS     3071 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.038       -.13760E-06** at limit **
   2  Prefactor     23.944        12.502        .23017E-06   -.27959E-05
   3  Prefactor     .10000E-03    19.229       -.18531E-05** at limit **
   4  norm          .10000E-03    4.3333       -.62773E-07** at limit **
   5  Prefactor     46.759        60.075        .77414E-06    .38145E-05
   6  Prefactor     .10000E-03    72.238        .15886E-06** at limit **
   7  Prefactor     .10000E-03    74.640       -.37273E-05** at limit **
   8  Prefactor     112.59        57.685        .40408E-05    .58481E-04
   9  Prefactor     1.5236        34.391        .12266E-04   -.59637E-04
  10  Prefactor     .10000E-03    32.926       -.14189E-05** at limit **
  11  Prefactor     .10000E-03    70.948       -.28038E-06** at limit **
  12  Prefactor     .10000E-03    14.029        .15219E-06** at limit **
  13  Prefactor     .10000E-03    25.745        .23015E-05** at limit **
  14  Prefactor     .10000E-03    28.849       -.11176E-05** at limit **
  15  Prefactor     30.694        35.617       -.58387E-06   -.15306E-04
  16  Prefactor     .10000E-03    63.796        .30357E-05** at limit **
  17  norm          .10000E-03    19.995        .17084E-05** at limit **
  18  Prefactor     .10000E-03    122.32       -.77712E-05** at limit **
  19  Prefactor     .10000E-03    42.038        .34432E-05** at limit **
  20  norm          .10000E-03    .50920       -.63515E-08** at limit **
  21  Prefactor     2.7052        3.6960        .31511E-06    .25410E-04
  22  Prefactor     .10000E-03    30.161       -.18481E-05** at limit **
  23  Prefactor     .10000E-03    536.96        .56102E-04** at limit **
  24  norm          .22690        .66857        .14274E-06    .57657E-04
  25  Normalizat    .99892        .24162       -.24279E-05   -.10150E-03
  26  Prefactor     .94080        .15668       -.45105E-07   -.28936E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 23.9442
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 46.7587
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 112.591
  Prefactor  = 1.52362
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 30.6941
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.70518
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.226897
  Normalizat = 0.998917
  Prefactor  = 0.940804
 **********
 **   18 **HESSE 
 **********

 FCN=   3896.281     FROM HESSE     STATUS=OK           446 CALLS     3517 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.279        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     23.944        12.434        .81845E-04   -1.4729    
   3  Prefactor     .10000E-03    19.232        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    4.4927        .25226E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     46.759        60.088        .58635E-04   -1.4339    
   6  Prefactor     .10000E-03    75.447        .42926E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    74.949        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     112.59        58.361        .18950E-03   -1.3582    
   9  Prefactor     1.5236        35.017        .17514E-02   -1.5461    
  10  Prefactor     .10000E-03    33.169        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    70.986        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    14.030        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    25.759        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    28.853        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     30.694        35.675        .72344E-04   -1.4599    
  16  Prefactor     .10000E-03    63.814        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    20.103        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    122.35        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    42.092        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    .51420        .43493E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     2.7052        3.6700        .13245E-03   -1.5379    
  22  Prefactor     .10000E-03    30.222        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    540.22        .39436E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .22690        .65862        .82816E-04   -1.5613    
  25  Normalizat    .99892        .27436        .27516E-03   -.93067    
  26  Prefactor     .94080        .17859        .19746E-03   -.94730    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.11909e-10
Minuit parameter uncertainties:
  1  6.14423e-06
  2  12.4356
  3  2.32011e-05
  4  1.51573e-07
  5  60.1664
  6  0.000138554
  7  0.000545081
  8  58.3905
  9  14.6179
  10  3.64956e-05
  11  1.98676e-05
  12  3.95348e-06
  13  3.65836e-05
  14  1.31932e-05
  15  35.7002
  16  0.000104332
  17  2.24348e-05
  18  0.000237726
  19  7.78487e-05
  20  4.27275e-07
  21  3.67033
  22  2.38084e-05
  23  2.77888e-05
  24  0.658644
  25  0.27475
  26  0.178704
Done.

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

Extracting fit parameters...

4FGL J1508.4+7717
   Spectrum: PowerLaw
355    Prefactor:  1.000e-04  3.658e-05  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:  9.408e-01  1.787e-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.989e-01  2.747e-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: 6.87e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.22e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/76084/likelihoodResults_419731201_419990401_4FGL_J1508.4+7717_daily_bin696.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) = 3896.28139461
delta logL = -0.000184483812973

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3896.28121291
delta logL = -2.77933804682e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14876E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5395       1.0000          .0000       10.000    
     3 'Normalizat'    .99888       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94082       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3896.281     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      266 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10707E-03    2.9601        .18142E-01** at limit **
   2  Index         2.4032        5.1874        .50000        .16792E-04
   3  Normalizat    .99892        .23607E-02    .27515E-03    .21540E-03
   4  Prefactor     .94080        .16581E-02    .19747E-03   -.48781E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000107071
  Index      = 2.40324
  Normalizat = 0.99892
  Prefactor  = 0.940802
 **********
 **   18 **HESSE 
 **********

 FCN=   3896.281     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      295 TOTAL
                     EDM=   .64E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10707E-03    93.786        .26721E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4032        6.2002        .50000       -.54609    
   3  Normalizat    .99892        .13350E-01    .55031E-04   -.93067    
   4  Prefactor     .94080        .93764E-02    .39493E-04   -.94730    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.40065e-09
Minuit parameter uncertainties:
  1  0.0515856
  2  353.533
  3  0.0133497
  4  0.00937646
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/76084': 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) = 3896.28121097
delta logL = -8.37796051201e-07

Extracting fit parameters...

4FGL J1508.4+7717
   Spectrum: PowerLaw
355    Prefactor:  1.071e-04  5.159e-02  1.000e-04  1.000e+04 ( 1.000e-14)
356        Index:  2.403e+00  3.535e+02  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:  9.408e-01  9.376e-03  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.989e-01  1.335e-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/76084/cmap_HighResolution_419731201_419990401_4FGL_J1508.4+7717_daily_bin696.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.22e-03', job_status='DONE', photon_flux_upper_limit='6.87e-08', time_completed='2021-09-11 01:28:16.191483', job_id='76084', GAL2='0.94', fit_tolerance='1e-08', EG2='1.00', EG='1.00', time_epoch_completed='1631348896.19', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='-8.38e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='696' AND source_name='4FGL J1508.4+7717' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 01:28:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0233>
Subject: Job 76084: <4FGL_J1508.4+7717_daily_bin696> in cluster <slac> Done

Job <4FGL_J1508.4+7717_daily_bin696> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep 11 01:16:43 2021
Job was executed on host(s) <bullet0233>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 01:16:44 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:16:44 2021
Terminated at Sat Sep 11 01:28:16 2021
Results reported at Sat Sep 11 01:28:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1508.4+7717_daily_bin696 227.102 77.2929 419731201 419990401 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 :                                   663.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             290.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   692 sec.
    Turnaround time :                            693 sec.

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

