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


Performing analysis on: 4FGL_J1506.6+0813_daily_bin606
RA = 226.674, Dec = 8.2256
tmin = 396403201, tmax = 396662401
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='57180', job_status='RUN', time_executed='2021-09-11 00:28:28.002325', time_epoch_executed='1631345308.0' WHERE source_name='4FGL J1506.6+0813' and cadence='daily' and bin_id='606'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/57180

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/57180/ft1_4FGL_J1506.6+0813_daily_bin606.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/57180/ft2_4FGL_J1506.6+0813_daily_bin606.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/57180/ft1_4FGL_J1506.6+0813_daily_bin606.fits outfile=/scratch/kocevski/57180/ft1_filteredMKT_4FGL_J1506.6+0813_daily_bin606.fits ra=226.674 dec=8.2256 rad=12.0 tmin=396403201.0 tmax=396662401.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 4.55
user 4.32
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/57180/ft2_4FGL_J1506.6+0813_daily_bin606.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/57180/ft1_filteredMKT_4FGL_J1506.6+0813_daily_bin606.fits evtable="EVENTS" outfile="/scratch/kocevski/57180/ft1_filtered_4FGL_J1506.6+0813_daily_bin606.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/57180/ft1_filtered_4FGL_J1506.6+0813_daily_bin606.fits" evtable="EVENTS" scfile=/scratch/kocevski/57180/ft2_4FGL_J1506.6+0813_daily_bin606.fits sctable="SC_DATA" outfile=/scratch/kocevski/57180/ltcube_396403201_396662401_4FGL_J1506.6+0813_daily_bin606.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/57180/ft2_4FGL_J1506.6+0813_daily_bin606.fits
.....................!
real 11.61
user 11.25
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/57180/ft1_filtered_4FGL_J1506.6+0813_daily_bin606.fits evtable="EVENTS" scfile=/scratch/kocevski/57180/ft2_4FGL_J1506.6+0813_daily_bin606.fits sctable="SC_DATA" expcube=/scratch/kocevski/57180/ltcube_396403201_396662401_4FGL_J1506.6+0813_daily_bin606.fits outfile=/scratch/kocevski/57180/expmap_396403201_396662401_4FGL_J1506.6+0813_daily_bin606.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/57180/ltcube_396403201_396662401_4FGL_J1506.6+0813_daily_bin606.fits
.....................!
real 189.84
user 185.40
sys 4.12

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/57180/ft1_filtered_4FGL_J1506.6+0813_daily_bin606.fits scfile=/scratch/kocevski/57180/ft2_4FGL_J1506.6+0813_daily_bin606.fits outfile=/scratch/kocevski/57180/cmap_396403201_396662401_4FGL_J1506.6+0813_daily_bin606.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.52
user 0.38
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.844       1.0000         .10000E-03   10000.    
     2 'norm      '    .83167E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .13428E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10203E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10073E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.2997       1.0000         .10000E-03   10000.    
     7 'Prefactor '    43.275       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10107E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.2921       1.0000         .10000E-03   10000.    
    11 'norm      '    .12300       1.0000         .10000E-03   10000.    
    12 'norm      '    .91454       1.0000         .10000E-03   10000.    
    13 'norm      '    3.5060       1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.2403       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    42.090       1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.1978       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    6.7335       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .51825       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.3490       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=   7048.086     FROM MIGRAD    STATUS=CONVERGED    578 CALLS     2761 TOTAL
                     EDM=   .50E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.756        28.682        .41401E-04    .24699E-03
   2  norm          .10532E-03    15.782       -.75501E-05** at limit **
   3  Prefactor     .10000E-03    116.45       -.34994E-04** at limit **
   4  Prefactor     .10000E-03    59.492        .25347E-04** at limit **
   5  norm          .10000E-03    26.343       -.15140E-04** at limit **
   6  Prefactor     3.2921        27.787        .82646E-05   -.86639E-04
   7  Prefactor     43.273        24.648        .39719E-05    .27970E-04
   8  Prefactor     .10000E-03    21.761        .12607E-05** at limit **
   9  Prefactor     .10000E-03    27.270        .17247E-04** at limit **
  10  Prefactor     8.3049        31.181       -.71681E-05   -.39654E-04
  11  norm          .12287        .16303        .83128E-07   -.17485E-02
  12  norm          .91222        2.0321        .39708E-06   -.84194E-03
  13  norm          3.5061        3.5705        .15408E-06    .27530E-03
  14  norm          .10000E-03    40.420       -.34460E-05** at limit **
  15  norm          3.2403        3.4545        .18685E-06   -.18743E-03
  16  Prefactor     .10000E-03    65.834       -.18499E-04** at limit **
  17  Prefactor     .10000E-03    16.134        .12590E-06** at limit **
  18  Prefactor     42.062        36.068        .17580E-04    .44129E-04
  19  Prefactor     5.1957        4.5453        .39800E-06   -.14493E-03
  20  Prefactor     .10000E-03    8.1702        .20440E-07** at limit **
  21  norm          6.7324        4.5894        .18656E-06   -.17594E-04
  22  Prefactor     .10000E-03    37.182       -.30331E-05** at limit **
  23  Normalizat    .51845        .26600       -.21313E-04    .19330E-04
  24  Prefactor     1.3490        .14386        .35965E-05    .90199E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.7556
  norm       = 0.000105323
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.29213
  Prefactor  = 43.2726
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 8.30493
  norm       = 0.122869
  norm       = 0.912218
  norm       = 3.50606
  norm       = 0.0001
  norm       = 3.24029
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 42.062
  Prefactor  = 5.19568
  Prefactor  = 0.0001
  norm       = 6.73243
  Prefactor  = 0.0001
  Normalizat = 0.518452
  Prefactor  = 1.34903
 **********
 **   18 **HESSE 
 **********

 FCN=   7048.086     FROM HESSE     STATUS=OK           409 CALLS     3170 TOTAL
                     EDM=   .96E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.756        28.956        .11640E-03   -1.5022    
   2  norm          .10532E-03    17.130        .11695       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    116.47        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    59.980        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    26.601        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.2921        27.413        .22288E-03   -1.5345    
   7  Prefactor     43.273        24.571        .60941E-04   -1.4391    
   8  Prefactor     .10000E-03    22.259        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    27.436        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     8.3049        31.138        .13922E-03   -1.5132    
  11  norm          .12287        .15004        .35952E-03   -1.5638    
  12  norm          .91222        1.9783        .16573E-03   -1.5517    
  13  norm          3.5061        3.5781        .15628E-03   -1.5333    
  14  norm          .10000E-03    40.527        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.2403        3.4311        .15436E-03   -1.5348    
  16  Prefactor     .10000E-03    66.199        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    16.145        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     42.062        35.846        .61790E-04   -1.4410    
  19  Prefactor     5.1957        4.5413        .16060E-03   -1.5252    
  20  Prefactor     .10000E-03    8.1737        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          6.7324        4.5920        .14377E-03   -1.5189    
  22  Prefactor     .10000E-03    37.217        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .51845        .27345        .44151E-03   -1.1157    
  24  Prefactor     1.3490        .15353        .17091E-03   -.81861    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.645e-10
Minuit parameter uncertainties:
  1  28.991
  2  0.0191039
  3  0.000615706
  4  0.00016725
  5  7.79509e-05
  6  19.0111
  7  24.5768
  8  0.000265849
  9  7.96317e-05
  10  31.1989
  11  0.150038
  12  1.97842
  13  3.57827
  14  2.25399e-05
  15  3.43135
  16  0.000127531
  17  3.81822e-05
  18  35.8644
  19  4.54163
  20  6.86613e-06
  21  4.59227
  22  6.64775e-05
  23  0.274163
  24  0.153583
Done.

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

Extracting fit parameters...

4FGL J1506.6+0813
   Spectrum: LogParabola
225         norm:  3.506e+00  3.578e+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:  1.349e+00  1.536e-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:  5.185e-01  2.742e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.57
Ra Dec: 226.674 8.226
Photon Index (Fixed Index): 1.60 +/- 0.00
Photon Flux (Fixed Index): 7.07e-09 +/- 7.21e-09
Energy Flux (Fixed Index): 1.62e-05 +/- 1.65e-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) = 7047.66709358
delta logL = 0.41848130482

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7047.65408886
delta logL = 0.431486019934

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.9133       1.0000         .10000E-03   10000.    
     2 'alpha     '    .86561       1.0000          .0000       5.0000    
     3 'Normalizat'    .52119       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3487       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=   7047.654     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      201 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.9107        2.9445        .59508E-02   -.32144E-03
   2  alpha         .86548        .63781        .50000       -.18853E-04
   3  Normalizat    .52117        .23179        .99378E-01    .53514E-04
   4  Prefactor     1.3487        .13979        .31810E-01    .15032E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.91066
  alpha      = 0.865479
  Normalizat = 0.52117
  Prefactor  = 1.34875
 **********
 **   18 **HESSE 
 **********

 FCN=   7047.654     FROM HESSE     STATUS=OK            33 CALLS      234 TOTAL
                     EDM=   .86E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.9107        3.4175        .14151E-03   -1.5367    
   2  alpha         .86548        .70801        .28177E-01   -.71261    
   3  Normalizat    .52117        .24650        .44041E-03   -1.1144    
   4  Prefactor     1.3487        .14920        .17092E-03   -.81869    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.57034e-10
Minuit parameter uncertainties:
  1  3.41773
  2  0.725682
  3  0.24702
  4  0.14925
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/57180': 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) = 7047.65408853
delta logL = 0.431486353115

Extracting fit parameters...

4FGL J1506.6+0813
   Spectrum: LogParabola
225         norm:  2.911e+00  3.418e+00  1.000e-04  1.000e+04 ( 1.000e-13)
226        alpha:  8.655e-01  7.257e-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:  1.349e+00  1.493e-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:  5.212e-01  2.470e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.44
Ra Dec: 226.674 8.226
Photon Index (Free Index): 0.87 +/- 0.73
Photon Flux (Free Index): 3.95e-09 +/- 4.16e-09
Energy Flux (Free Index): 5.08e-05 +/- 7.66e-05

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/57180/cmap_HighResolution_396403201_396662401_4FGL_J1506.6+0813_daily_bin606.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.07e-09', energy_flux2='5.08e-05', photon_flux_error='7.21e-09', dlogl='4.31e-01', energy_flux='1.62e-05', photon_flux2='3.95e-09', job_status='DONE', time_completed='2021-09-11 00:38:23.306498', photon_index_error2='0.73', photon_index2='0.87', ts='5.57', fit_tolerance='1e-08', GAL='1.35', photon_index_error='0.00', energy_flux_error2='7.66e-05', EG='0.52', time_epoch_completed='1631345903.31', return_code='0', job_id='57180', GAL2='1.35', EG2='0.52', return_code2='0', energy_flux_error='1.65e-05', photon_flux_error2='4.16e-09', ts2='6.44', photon_index='1.60' WHERE bin_id='606' AND source_name='4FGL J1506.6+0813' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 00:38:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0259>
Subject: Job 57180: <4FGL_J1506.6+0813_daily_bin606> in cluster <slac> Done

Job <4FGL_J1506.6+0813_daily_bin606> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep 11 00:26:04 2021
Job was executed on host(s) <bullet0259>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 00:26:05 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:26:05 2021
Terminated at Sat Sep 11 00:38:24 2021
Results reported at Sat Sep 11 00:38:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1506.6+0813_daily_bin606 226.674 8.2256 396403201 396662401 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 :                                   593.16 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             321.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   738 sec.
    Turnaround time :                            740 sec.

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

