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


Performing analysis on: 4FGL_J1506.6+0813_daily_bin343
RA = 226.674, Dec = 8.2256
tmin = 328233601, tmax = 328492801
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='55674', job_status='RUN', time_executed='2021-09-11 00:24:34.222268', time_epoch_executed='1631345074.22' WHERE source_name='4FGL J1506.6+0813' and cadence='daily' and bin_id='343'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/55674

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/55674/ft1_4FGL_J1506.6+0813_daily_bin343.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/55674/ft2_4FGL_J1506.6+0813_daily_bin343.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/55674/ft1_4FGL_J1506.6+0813_daily_bin343.fits outfile=/scratch/kocevski/55674/ft1_filteredMKT_4FGL_J1506.6+0813_daily_bin343.fits ra=226.674 dec=8.2256 rad=12.0 tmin=328233601.0 tmax=328492801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.94
user 3.68
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/55674/ft2_4FGL_J1506.6+0813_daily_bin343.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/55674/ft1_filteredMKT_4FGL_J1506.6+0813_daily_bin343.fits evtable="EVENTS" outfile="/scratch/kocevski/55674/ft1_filtered_4FGL_J1506.6+0813_daily_bin343.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.49
user 0.31
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/55674/ft1_filtered_4FGL_J1506.6+0813_daily_bin343.fits" evtable="EVENTS" scfile=/scratch/kocevski/55674/ft2_4FGL_J1506.6+0813_daily_bin343.fits sctable="SC_DATA" outfile=/scratch/kocevski/55674/ltcube_328233601_328492801_4FGL_J1506.6+0813_daily_bin343.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/55674/ft2_4FGL_J1506.6+0813_daily_bin343.fits
.....................!
real 12.05
user 11.68
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/55674/ft1_filtered_4FGL_J1506.6+0813_daily_bin343.fits evtable="EVENTS" scfile=/scratch/kocevski/55674/ft2_4FGL_J1506.6+0813_daily_bin343.fits sctable="SC_DATA" expcube=/scratch/kocevski/55674/ltcube_328233601_328492801_4FGL_J1506.6+0813_daily_bin343.fits outfile=/scratch/kocevski/55674/expmap_328233601_328492801_4FGL_J1506.6+0813_daily_bin343.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/55674/ltcube_328233601_328492801_4FGL_J1506.6+0813_daily_bin343.fits
.....................!
real 193.08
user 186.04
sys 5.14

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/55674/ft1_filtered_4FGL_J1506.6+0813_daily_bin343.fits scfile=/scratch/kocevski/55674/ft2_4FGL_J1506.6+0813_daily_bin343.fits outfile=/scratch/kocevski/55674/cmap_328233601_328492801_4FGL_J1506.6+0813_daily_bin343.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.56
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/55674/ft1_filtered_4FGL_J1506.6+0813_daily_bin343.fits scfile=/scratch/kocevski/55674/ft2_4FGL_J1506.6+0813_daily_bin343.fits outfile=/scratch/kocevski/55674/cmap_HighResolution_328233601_328492801_4FGL_J1506.6+0813_daily_bin343.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.54
user 0.37
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/55674/ft1_filtered_4FGL_J1506.6+0813_daily_bin343.fits', '/scratch/kocevski/55674/ft2_4FGL_J1506.6+0813_daily_bin343.fits', expMap='/scratch/kocevski/55674/expmap_328233601_328492801_4FGL_J1506.6+0813_daily_bin343.fits', expCube='/scratch/kocevski/55674/ltcube_328233601_328492801_4FGL_J1506.6+0813_daily_bin343.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/55674/Model_4FGL_J1506.6+0813_daily_bin343.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/55674/ft1_filtered_4FGL_J1506.6+0813_daily_bin343.fits
Spacecraft file(s): /scratch/kocevski/55674/ft2_4FGL_J1506.6+0813_daily_bin343.fits
Exposure map: /scratch/kocevski/55674/expmap_328233601_328492801_4FGL_J1506.6+0813_daily_bin343.fits
Exposure cube: /scratch/kocevski/55674/ltcube_328233601_328492801_4FGL_J1506.6+0813_daily_bin343.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/55674/Model_4FGL_J1506.6+0813_daily_bin343.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) = 7015.15203538

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.013       1.0000         .10000E-03   10000.    
     2 'norm      '    4.9728       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10149E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.8633       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    31.115       1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.074       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      '    .81763       1.0000         .10000E-03   10000.    
    12 'norm      '    2.2951       1.0000         .10000E-03   10000.    
    13 'norm      '    4.3585       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.7513       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .53125E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.9352       1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.9328       1.0000         .10000E-03   10000.    
    21 'norm      '    3.8966       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2679       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .88455       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=   7015.139     FROM MIGRAD    STATUS=CONVERGED    525 CALLS     2696 TOTAL
                     EDM=   .93E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.015        26.210        .77859E-06    .84395E-06
   2  norm          4.9733        13.158       -.43150E-06   -.52327E-04
   3  Prefactor     .10000E-03    91.712        .75028E-05** at limit **
   4  Prefactor     .10000E-03    21.547       -.44864E-05** at limit **
   5  norm          2.8642        11.002       -.10073E-05   -.94430E-04
   6  Prefactor     .10000E-03    7.3171        .19516E-07** at limit **
   7  Prefactor     31.117        25.461        .43251E-06    .24821E-04
   8  Prefactor     11.079        18.389       -.19548E-05   -.34636E-04
   9  Prefactor     .10000E-03    23.814        .20392E-05** at limit **
  10  Prefactor     .10000E-03    18.753        .23616E-05** at limit **
  11  norm          .81764        .23953       -.10858E-07    .57189E-03
  12  norm          2.2937        2.9801       -.13299E-06   -.13057E-03
  13  norm          4.3586        4.4568        .60265E-06    .18408E-03
  14  norm          .10000E-03    17.675        .39108E-05** at limit **
  15  norm          1.7502        3.9104       -.45443E-06   -.46687E-03
  16  Prefactor     .10000E-03    16.479       -.29464E-05** at limit **
  17  Prefactor     .10005E-03    273.99       -.14260E-03** at limit **
  18  Prefactor     .10000E-03    23.797        .15671E-05** at limit **
  19  Prefactor     1.9340        4.5639       -.84431E-06   -.68187E-03
  20  Prefactor     8.9324        20.139        .11717E-06    .92288E-05
  21  norm          3.8968        3.7023       -.99366E-07   -.17721E-03
  22  Prefactor     .10000E-03    22.792       -.28624E-05** at limit **
  23  Normalizat    1.2678        .23161        .51479E-06    .45317E-03
  24  Prefactor     .88451        .12103        .60120E-06    .81184E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.0151
  norm       = 4.97328
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.8642
  Prefactor  = 0.0001
  Prefactor  = 31.1173
  Prefactor  = 11.0789
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.817642
  norm       = 2.29368
  norm       = 4.35862
  norm       = 0.0001
  norm       = 1.75022
  Prefactor  = 0.0001
  Prefactor  = 0.000100054
  Prefactor  = 0.0001
  Prefactor  = 1.93395
  Prefactor  = 8.93238
  norm       = 3.89681
  Prefactor  = 0.0001
  Normalizat = 1.26782
  Prefactor  = 0.884511
 **********
 **   18 **HESSE 
 **********

 FCN=   7015.139     FROM HESSE     STATUS=OK           397 CALLS     3093 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.015        26.251        .85371E-04   -1.4769    
   2  norm          4.9733        13.146        .18034E-03   -1.5262    
   3  Prefactor     .10000E-03    91.955        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    21.548        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.8642        10.967        .24024E-03   -1.5369    
   6  Prefactor     .10000E-03    7.3218        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     31.117        25.498        .71830E-04   -1.4592    
   8  Prefactor     11.079        18.487        .12039E-03   -1.5042    
   9  Prefactor     .10000E-03    23.916        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    18.760        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .81764        .23915        .21004E-04   -1.5527    
  12  norm          2.2937        2.9549        .14933E-03   -1.5405    
  13  norm          4.3586        4.4635        .17453E-03   -1.5290    
  14  norm          .10000E-03    17.677        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.7502        3.8703        .23221E-03   -1.5443    
  16  Prefactor     .10000E-03    16.488        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10005E-03    269.93        .42254E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    23.846        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.9340        4.5649        .26131E-03   -1.5430    
  20  Prefactor     8.9324        20.124        .13411E-03   -1.5110    
  21  norm          3.8968        3.6970        .15146E-03   -1.5313    
  22  Prefactor     .10000E-03    22.799        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.2678        .27948        .31442E-03   -.84532    
  24  Prefactor     .88451        .14607        .19912E-03   -.96684    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.84033e-09
Minuit parameter uncertainties:
  1  26.2651
  2  13.1538
  3  7.79845e-05
  4  3.53944e-05
  5  10.9751
  6  1.10689e-06
  7  25.5069
  8  18.4966
  9  1.39365e-05
  10  5.67577e-06
  11  0.239149
  12  2.95508
  13  4.46384
  14  1.46101e-06
  15  3.87087
  16  3.353e-06
  17  0.00770208
  18  2.03191e-05
  19  4.56569
  20  20.1394
  21  3.69724
  22  3.04953e-06
  23  0.279816
  24  0.146131
Done.

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

Extracting fit parameters...

4FGL J1506.6+0813
   Spectrum: LogParabola
225         norm:  4.359e+00  4.464e+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.845e-01  1.461e-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.268e+00  2.798e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.09
Ra Dec: 226.674 8.226
Photon Index (Fixed Index): 1.60 +/- 0.00
Photon Flux (Fixed Index): 8.79e-09 +/- 9.00e-09
Energy Flux (Fixed Index): 2.01e-05 +/- 2.06e-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) = 7015.0713265
delta logL = 0.067802064912

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7015.07101896
delta logL = 0.0681096077333

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.4438       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.3250       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2684       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88494       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=   7015.071     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      195 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.4438        258.46        .47756E-02   -.83057E-03
   2  alpha         1.3250        4.3189        .49257       -.38546E-04
   3  Normalizat    1.2684        .19047        .71049E-01    .61028E-05
   4  Prefactor     .88496        .83932E-01    .44813E-01    .92306E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 4.44376
  alpha      = 1.32501
  Normalizat = 1.26837
  Prefactor  = 0.88496
 **********
 **   18 **HESSE 
 **********

 FCN=   7015.071     FROM HESSE     STATUS=OK            33 CALLS      228 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.4438        4.6055        .17738E-03   -1.5286    
   2  alpha         1.3250        .71784        .22176E-01   -.48928    
   3  Normalizat    1.2684        .26203        .31438E-03   -.84516    
   4  Prefactor     .88496        .14243        .19908E-03   -.96669    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.177e-10
Minuit parameter uncertainties:
  1  4.60591
  2  0.731148
  3  0.262303
  4  0.142489
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/55674': 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) = 7015.07101895
delta logL = 0.0681096162471

Extracting fit parameters...

4FGL J1506.6+0813
   Spectrum: LogParabola
225         norm:  4.444e+00  4.606e+00  1.000e-04  1.000e+04 ( 1.000e-13)
226        alpha:  1.325e+00  7.311e-01  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.850e-01  1.425e-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.268e+00  2.623e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.23
Ra Dec: 226.674 8.226
Photon Index (Free Index): 1.33 +/- 0.73
Photon Flux (Free Index): 6.62e-09 +/- 8.26e-09
Energy Flux (Free Index): 3.02e-05 +/- 4.61e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/55674/cmap_HighResolution_328233601_328492801_4FGL_J1506.6+0813_daily_bin343.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.79e-09', energy_flux2='3.02e-05', photon_flux_error='9.00e-09', dlogl='6.81e-02', energy_flux='2.01e-05', photon_flux2='6.62e-09', job_status='DONE', time_completed='2021-09-11 00:34:33.486940', photon_index_error2='0.73', photon_index2='1.33', ts='4.09', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', energy_flux_error2='4.61e-05', EG='1.27', time_epoch_completed='1631345673.49', return_code='0', job_id='55674', GAL2='0.88', EG2='1.27', return_code2='0', energy_flux_error='2.06e-05', photon_flux_error2='8.26e-09', ts2='4.23', photon_index='1.60' WHERE bin_id='343' AND source_name='4FGL J1506.6+0813' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 00:34:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0104>
Subject: Job 55674: <4FGL_J1506.6+0813_daily_bin343> in cluster <slac> Done

Job <4FGL_J1506.6+0813_daily_bin343> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep 11 00:21:18 2021
Job was executed on host(s) <bullet0104>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 00:21:21 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:21:21 2021
Terminated at Sat Sep 11 00:34:34 2021
Results reported at Sat Sep 11 00:34:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1506.6+0813_daily_bin343 226.674 8.2256 328233601 328492801 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 :                                   596.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             231.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   792 sec.
    Turnaround time :                            796 sec.

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

