/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 1 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7260
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1506.6+0813_daily_bin338
RA = 226.674, Dec = 8.2256
tmin = 326937601, tmax = 327196801
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='55667', job_status='RUN', time_executed='2021-09-11 00:21:28.962380', time_epoch_executed='1631344888.96' WHERE source_name='4FGL J1506.6+0813' and cadence='daily' and bin_id='338'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/55667

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/55667/ft1_4FGL_J1506.6+0813_daily_bin338.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/55667/ft2_4FGL_J1506.6+0813_daily_bin338.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/55667/ft1_4FGL_J1506.6+0813_daily_bin338.fits outfile=/scratch/kocevski/55667/ft1_filteredMKT_4FGL_J1506.6+0813_daily_bin338.fits ra=226.674 dec=8.2256 rad=12.0 tmin=326937601.0 tmax=327196801.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.29
user 3.08
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/55667/ft1_filtered_4FGL_J1506.6+0813_daily_bin338.fits" evtable="EVENTS" scfile=/scratch/kocevski/55667/ft2_4FGL_J1506.6+0813_daily_bin338.fits sctable="SC_DATA" outfile=/scratch/kocevski/55667/ltcube_326937601_327196801_4FGL_J1506.6+0813_daily_bin338.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/55667/ft2_4FGL_J1506.6+0813_daily_bin338.fits
.....................!
real 11.74
user 11.32
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/55667/ft1_filtered_4FGL_J1506.6+0813_daily_bin338.fits evtable="EVENTS" scfile=/scratch/kocevski/55667/ft2_4FGL_J1506.6+0813_daily_bin338.fits sctable="SC_DATA" expcube=/scratch/kocevski/55667/ltcube_326937601_327196801_4FGL_J1506.6+0813_daily_bin338.fits outfile=/scratch/kocevski/55667/expmap_326937601_327196801_4FGL_J1506.6+0813_daily_bin338.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/55667/ltcube_326937601_327196801_4FGL_J1506.6+0813_daily_bin338.fits
.....................!
real 191.80
user 186.54
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 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/55667/ft1_filtered_4FGL_J1506.6+0813_daily_bin338.fits scfile=/scratch/kocevski/55667/ft2_4FGL_J1506.6+0813_daily_bin338.fits outfile=/scratch/kocevski/55667/cmap_326937601_327196801_4FGL_J1506.6+0813_daily_bin338.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.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/55667/ft1_filtered_4FGL_J1506.6+0813_daily_bin338.fits scfile=/scratch/kocevski/55667/ft2_4FGL_J1506.6+0813_daily_bin338.fits outfile=/scratch/kocevski/55667/cmap_HighResolution_326937601_327196801_4FGL_J1506.6+0813_daily_bin338.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.542       1.0000         .10000E-03   10000.    
     2 'norm      '    .10131E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10237E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10112E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    5.0531       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.9789       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .16817E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    21.842       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11065E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.4208       1.0000         .10000E-03   10000.    
    12 'norm      '    .97900       1.0000         .10000E-03   10000.    
    13 'norm      '    3.6311       1.0000         .10000E-03   10000.    
    14 'norm      '    40.679       1.0000         .10000E-03   10000.    
    15 'norm      '    6.1680       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .77471E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    29.407       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10138E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .16640       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10145E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .14995E-02   1.0000         .10000E-03   10000.    
    22 'Prefactor '    47.258       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1149       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .85022       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=   6405.919     FROM MIGRAD    STATUS=CONVERGED    578 CALLS     2759 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.527        29.463        .43913E-06    .61943E-04
   2  norm          .10000E-03    7.3802        .22342E-07** at limit **
   3  Prefactor     .10000E-03    46.186       -.14644E-05** at limit **
   4  Prefactor     .10000E-03    15.225       -.10896E-05** at limit **
   5  norm          5.0587        14.422        .71778E-05    .63521E-04
   6  Prefactor     .10000E-03    25.692       -.67836E-06** at limit **
   7  Prefactor     8.9778        14.405       -.20190E-07   -.40954E-04
   8  Prefactor     .10113E-03    8.4831        .27065E-05** at limit **
   9  Prefactor     21.808        20.357        .53385E-06    .37204E-04
  10  Prefactor     .10002E-03    36.988        .29580E-05** at limit **
  11  norm          1.4207        .26838        .60377E-08   -.16538E-02
  12  norm          .97873        2.2911        .76741E-06    .44189E-04
  13  norm          3.6317        5.3545        .15095E-06   -.72331E-05
  14  norm          40.693        53.798        .99070E-06    .10368E-03
  15  norm          6.1688        4.3324       -.38688E-07   -.85333E-04
  16  Prefactor     .10001E-03    266.42       -.28643E-05** at limit **
  17  Prefactor     29.413        42.718        .23626E-06   -.91171E-05
  18  Prefactor     .10001E-03    48.854       -.25606E-05** at limit **
  19  Prefactor     .17445        1.8758        .24537E-06   -.21047E-03
  20  Prefactor     .10000E-03    16.991        .53617E-06** at limit **
  21  norm          .10003E-03    2.1908        .70508E-06** at limit **
  22  Prefactor     47.260        61.880        .46694E-06   -.20117E-04
  23  Normalizat    1.1150        .21720       -.12269E-05   -.30681E-03
  24  Prefactor     .85016        .12001       -.35316E-06   -.45531E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.5268
  norm       = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 0.000100002
  norm       = 5.05871
  Prefactor  = 0.000100001
  Prefactor  = 8.97776
  Prefactor  = 0.000101135
  Prefactor  = 21.8082
  Prefactor  = 0.000100018
  norm       = 1.42071
  norm       = 0.97873
  norm       = 3.63171
  norm       = 40.6926
  norm       = 6.16875
  Prefactor  = 0.000100013
  Prefactor  = 29.4128
  Prefactor  = 0.000100013
  Prefactor  = 0.174446
  Prefactor  = 0.000100001
  norm       = 0.000100031
  Prefactor  = 47.2599
  Normalizat = 1.11495
  Prefactor  = 0.850158
 **********
 **   18 **HESSE 
 **********

 FCN=   6405.919     FROM HESSE     STATUS=OK           399 CALLS     3158 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.527        29.553        .88373E-04   -1.4802    
   2  norm          .10000E-03    7.3814        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    46.349        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    15.351        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          5.0587        14.539        .89438E-03   -1.5258    
   6  Prefactor     .10000E-03    26.064        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     8.9778        14.405        .13376E-03   -1.5109    
   8  Prefactor     .10113E-03    70.005        .39368E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     21.808        20.307        .85704E-04   -1.4774    
  10  Prefactor     .10002E-03    37.552        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.4207        .26927        .17105E-04   -1.5470    
  12  norm          .97873        2.2700        .17228E-03   -1.5510    
  13  norm          3.6317        5.3460        .21201E-03   -1.5327    
  14  norm          40.693        53.885        .62848E-04   -1.4431    
  15  norm          6.1688        4.3217        .13311E-03   -1.5211    
  16  Prefactor     .10001E-03    272.14        .18532E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     29.413        42.680        .73882E-04   -1.4623    
  18  Prefactor     .10001E-03    49.458        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .17445        12.160        .21037E-02   -1.5624    
  20  Prefactor     .10000E-03    17.077        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10003E-03    17.355        .22292E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     47.260        61.713        .58328E-04   -1.4332    
  23  Normalizat    1.1150        .25788        .30220E-03   -.89273    
  24  Prefactor     .85016        .14389        .19249E-03   -.97905    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.79722e-08
Minuit parameter uncertainties:
  1  29.5744
  2  1.68569e-06
  3  0.000957453
  4  0.000312477
  5  14.5493
  6  0.000358054
  7  14.411
  8  0.0178454
  9  20.3133
  10  0.00162603
  11  0.269269
  12  2.27019
  13  5.34673
  14  53.9499
  15  4.32196
  16  0.00384304
  17  42.7247
  18  0.00161513
  19  2.91273
  20  0.00020588
  21  0.00146532
  22  61.7964
  23  0.258169
  24  0.143955
Done.

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

Extracting fit parameters...

4FGL J1506.6+0813
   Spectrum: LogParabola
225         norm:  3.632e+00  5.347e+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.502e-01  1.440e-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.115e+00  2.582e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.83
Ra Dec: 226.674 8.226
Photon Flux Upper Limit: 4.26e-08 ph cm-2 s-1
Energy Flux Upper Limit: 9.76e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/55667/likelihoodResults_326937601_327196801_4FGL_J1506.6+0813_daily_bin338.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): 0
logL (Free Index) = 6405.15968925
delta logL = 0.759279783861

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6405.15570427
delta logL = 0.763264758623

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.7251       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7746       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0887       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85456       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6405.156     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      285 TOTAL
                     EDM=   .89E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.7249        3.9697        .95409E-04   -.65274E-03
   2  alpha         2.7749        1.1016        .11625E-01   -.44339E-04
   3  Normalizat    1.0886        .25188        .30494E-03   -.61478E-04
   4  Prefactor     .85464        .14112        .19177E-03   -.16722E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.72489
  alpha      = 2.77488
  Normalizat = 1.08858
  Prefactor  = 0.854645
 **********
 **   18 **HESSE 
 **********

 FCN=   6405.156     FROM HESSE     STATUS=OK            25 CALLS      310 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.7249        3.0696        .38164E-05   -1.5445    
   2  alpha         2.7749        .86333        .46499E-03    .11017    
   3  Normalizat    1.0886        .25066        .12197E-04   -.90119    
   4  Prefactor     .85464        .14091        .38354E-04   -.97744    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.3548e-10
Minuit parameter uncertainties:
  1  3.06986
  2  0.881721
  3  0.250932
  4  0.140968
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/55667': 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) = 6405.1557038
delta logL = 0.763265234707

Extracting fit parameters...

4FGL J1506.6+0813
   Spectrum: LogParabola
225         norm:  1.725e+00  3.070e+00  1.000e-04  1.000e+04 ( 1.000e-13)
226        alpha:  2.775e+00  8.817e-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.546e-01  1.410e-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.089e+00  2.509e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.36
Ra Dec: 226.674 8.226
Photon Index (Free Index): 2.77 +/- 0.88
Photon Flux (Free Index): 4.21e-08 +/- 5.08e-08
Energy Flux (Free Index): 1.26e-05 +/- 1.19e-05

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/55667/cmap_HighResolution_326937601_327196801_4FGL_J1506.6+0813_daily_bin338.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.76e-05', comment='SUCCESS', energy_flux2='1.26e-05', dlogl='7.63e-01', photon_flux2='4.21e-08', job_status='DONE', time_completed='2021-09-11 00:32:09.099851', photon_index_error2='0.88', photon_index2='2.77', ts='0.83', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', photon_flux_upper_limit='4.26e-08', energy_flux_error2='1.19e-05', EG='1.11', time_epoch_completed='1631345529.1', return_code='0', job_id='55667', GAL2='0.85', EG2='1.09', return_code2='0', photon_flux_error2='5.08e-08', ts2='2.36', photon_index='1.60' WHERE bin_id='338' AND source_name='4FGL J1506.6+0813' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 00:32:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0057>
Subject: Job 55667: <4FGL_J1506.6+0813_daily_bin338> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1506.6+0813_daily_bin338 226.674 8.2256 326937601 327196801 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 :                                   637.22 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             313.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   650 sec.
    Turnaround time :                            652 sec.

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

