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


Performing analysis on: 4FGL_J1506.6+0813_daily_bin959
RA = 226.674, Dec = 8.2256
tmin = 487900801, tmax = 488160001
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='58765', job_status='RUN', time_executed='2021-09-11 00:34:57.531788', time_epoch_executed='1631345697.53' WHERE source_name='4FGL J1506.6+0813' and cadence='daily' and bin_id='959'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/58765

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/58765/ft1_4FGL_J1506.6+0813_daily_bin959.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/58765/ft2_4FGL_J1506.6+0813_daily_bin959.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/58765/ft1_4FGL_J1506.6+0813_daily_bin959.fits outfile=/scratch/kocevski/58765/ft1_filteredMKT_4FGL_J1506.6+0813_daily_bin959.fits ra=226.674 dec=8.2256 rad=12.0 tmin=487900801.0 tmax=488160001.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 6.06
user 5.80
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/58765/ft2_4FGL_J1506.6+0813_daily_bin959.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/58765/ft2_4FGL_J1506.6+0813_daily_bin959.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/58765/ft1_filteredMKT_4FGL_J1506.6+0813_daily_bin959.fits evtable="EVENTS" outfile="/scratch/kocevski/58765/ft1_filtered_4FGL_J1506.6+0813_daily_bin959.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.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/58765/ft1_filtered_4FGL_J1506.6+0813_daily_bin959.fits" evtable="EVENTS" scfile=/scratch/kocevski/58765/ft2_4FGL_J1506.6+0813_daily_bin959.fits sctable="SC_DATA" outfile=/scratch/kocevski/58765/ltcube_487900801_488160001_4FGL_J1506.6+0813_daily_bin959.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/58765/ft2_4FGL_J1506.6+0813_daily_bin959.fits
.....................!
real 11.69
user 11.37
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/58765/ft1_filtered_4FGL_J1506.6+0813_daily_bin959.fits evtable="EVENTS" scfile=/scratch/kocevski/58765/ft2_4FGL_J1506.6+0813_daily_bin959.fits sctable="SC_DATA" expcube=/scratch/kocevski/58765/ltcube_487900801_488160001_4FGL_J1506.6+0813_daily_bin959.fits outfile=/scratch/kocevski/58765/expmap_487900801_488160001_4FGL_J1506.6+0813_daily_bin959.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/58765/ltcube_487900801_488160001_4FGL_J1506.6+0813_daily_bin959.fits
.....................!
real 191.16
user 186.26
sys 4.56

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

Setting source of interest to:
4FGL J1506.6+0813 @ 226.674 8.2256

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/58765/ft1_filtered_4FGL_J1506.6+0813_daily_bin959.fits scfile=/scratch/kocevski/58765/ft2_4FGL_J1506.6+0813_daily_bin959.fits outfile=/scratch/kocevski/58765/cmap_487900801_488160001_4FGL_J1506.6+0813_daily_bin959.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=226.674 yref=8.2256 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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/58765/ft1_filtered_4FGL_J1506.6+0813_daily_bin959.fits scfile=/scratch/kocevski/58765/ft2_4FGL_J1506.6+0813_daily_bin959.fits outfile=/scratch/kocevski/58765/cmap_HighResolution_487900801_488160001_4FGL_J1506.6+0813_daily_bin959.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=226.674 yref=8.2256 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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/58765/ft1_filtered_4FGL_J1506.6+0813_daily_bin959.fits evtable="EVENTS" scfile=/scratch/kocevski/58765/ft2_4FGL_J1506.6+0813_daily_bin959.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/58765/Model_4FGL_J1506.6+0813_daily_bin959.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/58765/ft1_filtered_4FGL_J1506.6+0813_daily_bin959.fits.....................!
real 84.45
user 82.90
sys 1.31

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/58765/ft1_filtered_4FGL_J1506.6+0813_daily_bin959.fits', '/scratch/kocevski/58765/ft2_4FGL_J1506.6+0813_daily_bin959.fits', expMap='/scratch/kocevski/58765/expmap_487900801_488160001_4FGL_J1506.6+0813_daily_bin959.fits', expCube='/scratch/kocevski/58765/ltcube_487900801_488160001_4FGL_J1506.6+0813_daily_bin959.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/58765/Model_4FGL_J1506.6+0813_daily_bin959.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1506.6+0813'

4FGL J1506.6+0813
   Spectrum: LogParabola
225         norm:  1.295e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
226        alpha:  1.597e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
227         beta:  1.103e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
228           Eb:  2.755e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/58765/ft1_filtered_4FGL_J1506.6+0813_daily_bin959.fits
Spacecraft file(s): /scratch/kocevski/58765/ft2_4FGL_J1506.6+0813_daily_bin959.fits
Exposure map: /scratch/kocevski/58765/expmap_487900801_488160001_4FGL_J1506.6+0813_daily_bin959.fits
Exposure cube: /scratch/kocevski/58765/ltcube_487900801_488160001_4FGL_J1506.6+0813_daily_bin959.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/58765/Model_4FGL_J1506.6+0813_daily_bin959.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) = 12047.5400038

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10151E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    14.752       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    15.577       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.0542       1.0000         .10000E-03   10000.    
    12 'norm      '    2.8051       1.0000         .10000E-03   10000.    
    13 'norm      '    6.1993       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.5647       1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.796       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.7006       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .64629       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.6951       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .80286       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4960E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   12047.51     FROM MIGRAD    STATUS=CONVERGED    523 CALLS     2286 TOTAL
                     EDM=   .69E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.317       -.18227E-04** at limit **
   2  norm          14.746        19.174       -.29678E-05    .38752E-04
   3  Prefactor     .10000E-03    21.942       -.27146E-05** at limit **
   4  Prefactor     .10000E-03    6.6791       -.96542E-06** at limit **
   5  norm          .10000E-03    3.9898        .23272E-07** at limit **
   6  Prefactor     .10000E-03    13.911        .11339E-05** at limit **
   7  Prefactor     15.576        16.778       -.40314E-06   -.87867E-05
   8  Prefactor     .10000E-03    4.9547       -.53326E-06** at limit **
   9  Prefactor     .10000E-03    14.180       -.22802E-05** at limit **
  10  Prefactor     .10000E-03    23.467        .61772E-05** at limit **
  11  norm          1.0542        .20034       -.22134E-08    .10760E-05
  12  norm          2.8052        1.5725       -.50563E-07   -.57938E-03
  13  norm          6.1992        4.1862       -.98572E-07    .21826E-03
  14  norm          .10000E-03    13.823        .34517E-05** at limit **
  15  norm          3.5643        2.7090       -.11458E-06   -.53012E-03
  16  Prefactor     11.798        40.309        .43046E-05    .16244E-05
  17  Prefactor     .10000E-03    24.982        .13745E-04** at limit **
  18  Prefactor     .10000E-03    39.424       -.11044E-04** at limit **
  19  Prefactor     3.7005        2.9651       -.22340E-06   -.83195E-03
  20  Prefactor     .10000E-03    5.4483        .10773E-05** at limit **
  21  norm          .64598        1.5095       -.68185E-06   -.16877E-02
  22  Prefactor     .10000E-03    13.548        .79401E-05** at limit **
  23  Normalizat    1.6951        .18093        .23519E-06    .14264E-03
  24  Prefactor     .80289        .95549E-01    .98500E-07    .10553E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 14.7457
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.5759
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.05423
  norm       = 2.8052
  norm       = 6.19923
  norm       = 0.0001
  norm       = 3.56434
  Prefactor  = 11.7985
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.70046
  Prefactor  = 0.0001
  norm       = 0.645984
  Prefactor  = 0.0001
  Normalizat = 1.69509
  Prefactor  = 0.802889
 **********
 **   18 **HESSE 
 **********

 FCN=   12047.51     FROM HESSE     STATUS=OK           395 CALLS     2681 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    16.118        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          14.746        19.157        .10428E-03   -1.4940    
   3  Prefactor     .10000E-03    21.961        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.6821        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    3.9949        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    13.979        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     15.576        16.805        .10148E-03   -1.4918    
   8  Prefactor     .10000E-03    4.9662        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    14.236        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    23.492        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.0542        .20045        .20386E-04   -1.5503    
  12  norm          2.8052        1.5679        .98212E-04   -1.5373    
  13  norm          6.1992        4.1888        .16123E-03   -1.5210    
  14  norm          .10000E-03    13.817        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.5643        2.7057        .15133E-03   -1.5330    
  16  Prefactor     11.798        40.296        .11664E-03   -1.5021    
  17  Prefactor     .10000E-03    24.946        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    39.774        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.7005        2.9678        .16176E-03   -1.5323    
  20  Prefactor     .10000E-03    5.4537        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .64598        1.6682        .20225E-02   -1.5547    
  22  Prefactor     .10000E-03    13.522        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.6951        .21553        .29493E-03   -.72435    
  24  Prefactor     .80289        .11372        .21660E-03   -.99622    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.15058e-09
Minuit parameter uncertainties:
  1  3.01239e-05
  2  19.1653
  3  3.97165e-06
  4  1.13815e-06
  5  7.1011e-07
  6  5.82188e-06
  7  16.8099
  8  1.17163e-06
  9  6.16935e-06
  10  1.10302e-05
  11  0.200455
  12  1.56796
  13  4.18901
  14  1.35636e-06
  15  2.70584
  16  40.3892
  17  2.70217e-05
  18  2.07475e-05
  19  2.96793
  20  3.23217e-06
  21  1.66836
  22  2.98727e-07
  23  0.21565
  24  0.113754
Done.

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

Extracting fit parameters...

4FGL J1506.6+0813
   Spectrum: LogParabola
225         norm:  6.199e+00  4.189e+00  1.000e-04  1.000e+04 ( 1.000e-13)
226        alpha:  1.597e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
227         beta:  1.103e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
228           Eb:  2.755e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
493    Prefactor:  8.029e-01  1.138e-01  0.000e+00  1.000e+01 ( 1.000e+00)
494        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
495        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
492   Normalization:  1.695e+00  2.157e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 27.09
Ra Dec: 226.674 8.226
Photon Index (Fixed Index): 1.60 +/- 0.00
Photon Flux (Fixed Index): 1.25e-08 +/- 8.45e-09
Energy Flux (Fixed Index): 2.86e-05 +/- 1.93e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 12044.8957555
delta logL = 2.61231236412

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 12043.6539259
delta logL = 3.8541419155

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .91892       1.0000         .10000E-03   10000.    
     2 'alpha     '    .92074E-05   1.0000          .0000       5.0000    
     3 'Normalizat'    1.6949       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80640       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4960E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   12043.65     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      238 TOTAL
                     EDM=   .91E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .91977        1.0597        .12876E-01   -.88223E-03
   2  alpha         .24369E-12    .92165        .46267    ** at limit **
   3  Normalizat    1.6953        .17718        .66679E-01    .14154E-05
   4  Prefactor     .80626        .94551E-01    .43801E-01    .16442E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.919774
  alpha      = 2.43694e-13
  Normalizat = 1.69531
  Prefactor  = 0.806255
 **********
 **   18 **HESSE 
 **********

 FCN=   12043.65     FROM HESSE     STATUS=OK            37 CALLS      275 TOTAL
                     EDM=   .18E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .91977        .86742        .67379E-03   -1.5516    
   2  alpha         .24369E-12    .49952        .50000       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.6953        .21029        .29493E-03   -.72429    
   4  Prefactor     .80626        .11226        .21623E-03   -.99498    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.8054e-12
Minuit parameter uncertainties:
  1  0.867434
  2  7.10075e-07
  3  0.210399
  4  0.112289
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/58765': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 12043.6539206
delta logL = 3.85414727934

Extracting fit parameters...

4FGL J1506.6+0813
   Spectrum: LogParabola
225         norm:  9.198e-01  8.674e-01  1.000e-04  1.000e+04 ( 1.000e-13)
226        alpha:  2.437e-13  7.101e-07  0.000e+00  5.000e+00 ( 1.000e+00)
227         beta:  1.103e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
228           Eb:  2.755e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
493    Prefactor:  8.063e-01  1.123e-01  0.000e+00  1.000e+01 ( 1.000e+00)
494        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
495        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
492   Normalization:  1.695e+00  2.104e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 34.80
Ra Dec: 226.674 8.226
Photon Index (Free Index): 0.00 +/- 0.00
Photon Flux (Free Index): 4.29e-09 +/- 4.05e-09
Energy Flux (Free Index): 1.64e-04 +/- 1.54e-04

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/58765/cmap_HighResolution_487900801_488160001_4FGL_J1506.6+0813_daily_bin959.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.25e-08', energy_flux2='1.64e-04', photon_flux_error='8.45e-09', dlogl='3.85e+00', energy_flux='2.86e-05', photon_flux2='4.29e-09', job_status='DONE', time_completed='2021-09-11 00:47:50.064399', photon_index_error2='0.00', photon_index2='0.00', ts='27.09', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', energy_flux_error2='1.54e-04', EG='1.70', time_epoch_completed='1631346470.06', return_code='0', job_id='58765', GAL2='0.81', EG2='1.70', return_code2='0', energy_flux_error='1.93e-05', photon_flux_error2='4.05e-09', ts2='34.80', photon_index='1.60' WHERE bin_id='959' AND source_name='4FGL J1506.6+0813' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 00:47:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0209>
Subject: Job 58765: <4FGL_J1506.6+0813_daily_bin959> in cluster <slac> Done

Job <4FGL_J1506.6+0813_daily_bin959> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Sep 11 00:31:26 2021
Job was executed on host(s) <bullet0209>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 00:31:28 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 11 00:31:28 2021
Terminated at Sat Sep 11 00:47:50 2021
Results reported at Sat Sep 11 00:47:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1506.6+0813_daily_bin959 226.674 8.2256 487900801 488160001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1506.6+0813 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   764.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             256.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   982 sec.
    Turnaround time :                            984 sec.

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

