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


Performing analysis on: 4FGL_J1508.4+7717_daily_bin756
RA = 227.102, Dec = 77.2929
tmin = 435283201, tmax = 435542401
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='77365', job_status='RUN', time_executed='2021-09-11 01:21:23.033680', time_epoch_executed='1631348483.03' WHERE source_name='4FGL J1508.4+7717' and cadence='daily' and bin_id='756'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/77365

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/77365/ft1_4FGL_J1508.4+7717_daily_bin756.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/77365/ft2_4FGL_J1508.4+7717_daily_bin756.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/77365/ft1_4FGL_J1508.4+7717_daily_bin756.fits outfile=/scratch/kocevski/77365/ft1_filteredMKT_4FGL_J1508.4+7717_daily_bin756.fits ra=227.102 dec=77.2929 rad=12.0 tmin=435283201.0 tmax=435542401.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.17
user 4.92
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/77365/ft1_filtered_4FGL_J1508.4+7717_daily_bin756.fits evtable="EVENTS" scfile=/scratch/kocevski/77365/ft2_4FGL_J1508.4+7717_daily_bin756.fits sctable="SC_DATA" expcube=/scratch/kocevski/77365/ltcube_435283201_435542401_4FGL_J1508.4+7717_daily_bin756.fits outfile=/scratch/kocevski/77365/expmap_435283201_435542401_4FGL_J1508.4+7717_daily_bin756.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/77365/ltcube_435283201_435542401_4FGL_J1508.4+7717_daily_bin756.fits
.....................!
real 191.53
user 186.29
sys 4.84

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/77365/ft1_filtered_4FGL_J1508.4+7717_daily_bin756.fits scfile=/scratch/kocevski/77365/ft2_4FGL_J1508.4+7717_daily_bin756.fits outfile=/scratch/kocevski/77365/cmap_435283201_435542401_4FGL_J1508.4+7717_daily_bin756.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.62
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/77365/ft1_filtered_4FGL_J1508.4+7717_daily_bin756.fits scfile=/scratch/kocevski/77365/ft2_4FGL_J1508.4+7717_daily_bin756.fits outfile=/scratch/kocevski/77365/cmap_HighResolution_435283201_435542401_4FGL_J1508.4+7717_daily_bin756.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.62
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    20.253       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10097E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    27.070       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.4440       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10227E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    57.729       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10358E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10164E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    23.872       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.1117       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .43587       1.0000         .10000E-03   10000.    
    22 'Prefactor '    45.814       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    1.4256       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .97603       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0610       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=   7142.375     FROM MIGRAD    STATUS=CONVERGED    647 CALLS     3155 TOTAL
                     EDM=   .66E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.3604        .85991E-07** at limit **
   2  Prefactor     .10000E-03    25.687        .94893E-06** at limit **
   3  Prefactor     20.275        38.611       -.11101E-06   -.26060E-05
   4  norm          .10000E-03    2.0124        .18576E-06** at limit **
   5  Prefactor     .10000E-03    14.402        .78632E-07** at limit **
   6  Prefactor     .10000E-03    10.494        .35507E-06** at limit **
   7  Prefactor     .10000E-03    231.69       -.21456E-05** at limit **
   8  Prefactor     27.062        20.931       -.31082E-05   -.94209E-04
   9  Prefactor     .10000E-03    5.1791        .26329E-06** at limit **
  10  Prefactor     6.4402        19.557       -.26870E-06    .12624E-05
  11  Prefactor     .10000E-03    39.479       -.19247E-07** at limit **
  12  Prefactor     57.734        47.091       -.40441E-06   -.97279E-05
  13  Prefactor     .10000E-03    33.091        .49828E-06** at limit **
  14  Prefactor     .10000E-03    111.29        .10913E-05** at limit **
  15  Prefactor     .10000E-03    4.0192        .79592E-07** at limit **
  16  Prefactor     .10000E-03    10.437        .36491E-07** at limit **
  17  norm          23.907        23.373        .30929E-06    .45486E-04
  18  Prefactor     .10000E-03    108.63        .57070E-06** at limit **
  19  Prefactor     .10000E-03    18.646        .15545E-06** at limit **
  20  norm          1.1115        1.0277       -.24260E-08   -.44800E-04
  21  Prefactor     .39788        16.140       -.26713E-05    .12966E-04
  22  Prefactor     46.028        47.130        .10064E-05   -.78259E-05
  23  Prefactor     .10000E-03    46.149        .27284E-06** at limit **
  24  norm          1.4252        .82818       -.25399E-07    .15686E-03
  25  Normalizat    .97619        .19773        .15416E-05   -.80993E-04
  26  Prefactor     1.0609        .13805       -.13565E-05    .12014E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.2749
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 27.0616
  Prefactor  = 0.0001
  Prefactor  = 6.44021
  Prefactor  = 0.0001
  Prefactor  = 57.7345
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 23.9071
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.11154
  Prefactor  = 0.397884
  Prefactor  = 46.0285
  Prefactor  = 0.0001
  norm       = 1.42518
  Normalizat = 0.976194
  Prefactor  = 1.06091
 **********
 **   18 **HESSE 
 **********

 FCN=   7142.375     FROM HESSE     STATUS=OK           452 CALLS     3607 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.3665        .17235E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    26.803        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     20.275        38.612        .89000E-04   -1.4807    
   4  norm          .10000E-03    2.0392        .11709E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    14.404        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    10.574        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    232.77        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     27.062        20.920        .76997E-04   -1.4667    
   9  Prefactor     .10000E-03    5.2160        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.4402        19.582        .15810E-03   -1.5200    
  11  Prefactor     .10000E-03    39.500        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     57.734        47.658        .52800E-04   -1.4187    
  13  Prefactor     .10000E-03    33.153        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    112.23        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.0228        .16547E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    10.437        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          23.907        23.579        .81984E-04   -1.4730    
  18  Prefactor     .10000E-03    108.72        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    18.661        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.1115        1.0033        .78525E-04   -1.5497    
  21  Prefactor     .39788        19.313        .20844E-02   -1.5582    
  22  Prefactor     46.028        51.057        .59236E-04   -1.4350    
  23  Prefactor     .10000E-03    46.246        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          1.4252        .82063        .54010E-04   -1.5469    
  25  Normalizat    .97619        .22131        .29476E-03   -.93832    
  26  Prefactor     1.0609        .15355        .20965E-03   -.90726    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.2427e-10
Minuit parameter uncertainties:
  1  9.1618e-07
  2  2.94333e-05
  3  38.6595
  4  2.37184e-06
  5  1.64426e-06
  6  1.00927e-05
  7  0.000361223
  8  20.9257
  9  1.57281e-05
  10  19.6019
  11  0.000106357
  12  47.6893
  13  0.000140792
  14  0.000184162
  15  3.67138e-07
  16  2.125e-07
  17  23.5883
  18  0.00039516
  19  8.45072e-06
  20  1.00332
  21  5.54538
  22  51.1053
  23  2.23231e-05
  24  0.820639
  25  0.221519
  26  0.153616
Done.

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

Extracting fit parameters...

4FGL J1508.4+7717
   Spectrum: PowerLaw
355    Prefactor:  1.000e-04  1.408e-04  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.061e+00  1.536e-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.762e-01  2.215e-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.33e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.82e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/77365/likelihoodResults_435283201_435542401_4FGL_J1508.4+7717_daily_bin756.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) = 7142.37484916
delta logL = -0.000143662954542

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7142.37470579
delta logL = -2.98198756354e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10479E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3645       1.0000          .0000       10.000    
     3 'Normalizat'    .97619       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0609       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=   7142.375     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      240 TOTAL
                     EDM=   .86E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.538        .90712E-02** at limit **
   2  Index         2.3417        6.0474        .50000        .64054E-05
   3  Normalizat    .97620        .37341E-02    .66639E-01   -.49970E-05
   4  Prefactor     1.0609        .27699E-02    .39309E-01   -.33142E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.34166
  Normalizat = 0.976196
  Prefactor  = 1.06091
 **********
 **   18 **HESSE 
 **********

 FCN=   7142.375     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      273 TOTAL
                     EDM=   .52E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    112.19        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3417        6.6679        .50000       -.56057    
   3  Normalizat    .97620        .92045E-02    .29476E-03   -.93832    
   4  Prefactor     1.0609        .68362E-02    .20965E-03   -.90726    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.22001e-08
Minuit parameter uncertainties:
  1  0.000507189
  2  156.697
  3  0.0092045
  4  0.00683619
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/77365': 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) = 7142.37470567
delta logL = -1.79960807145e-07

Extracting fit parameters...

4FGL J1508.4+7717
   Spectrum: PowerLaw
355    Prefactor:  1.000e-04  5.072e-04  1.000e-04  1.000e+04 ( 1.000e-14)
356        Index:  2.342e+00  1.567e+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:  1.061e+00  6.836e-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.762e-01  9.204e-03  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/77365/cmap_HighResolution_435283201_435542401_4FGL_J1508.4+7717_daily_bin756.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.82e-03', job_status='DONE', photon_flux_upper_limit='6.33e-08', time_completed='2021-09-11 01:36:49.167155', job_id='77365', GAL2='1.06', fit_tolerance='1e-08', EG2='0.98', EG='0.98', time_epoch_completed='1631349409.17', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='-1.80e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='756' AND source_name='4FGL J1508.4+7717' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 01:36:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0236>
Subject: Job 77365: <4FGL_J1508.4+7717_daily_bin756> in cluster <slac> Done

Job <4FGL_J1508.4+7717_daily_bin756> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sat Sep 11 01:21:07 2021
Job was executed on host(s) <bullet0236>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 01:21:09 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:21:09 2021
Terminated at Sat Sep 11 01:36:49 2021
Results reported at Sat Sep 11 01:36:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1508.4+7717_daily_bin756 227.102 77.2929 435283201 435542401 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 :                                   922.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             342.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   940 sec.
    Turnaround time :                            942 sec.

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

