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


Performing analysis on: 4FGL_J1506.6+0813_daily_bin430
RA = 226.674, Dec = 8.2256
tmin = 350784001, tmax = 351043201
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='55817', job_status='RUN', time_executed='2021-09-11 00:23:44.869074', time_epoch_executed='1631345024.87' WHERE source_name='4FGL J1506.6+0813' and cadence='daily' and bin_id='430'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/55817

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/55817/ft1_4FGL_J1506.6+0813_daily_bin430.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/55817/ft2_4FGL_J1506.6+0813_daily_bin430.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/55817/ft1_4FGL_J1506.6+0813_daily_bin430.fits outfile=/scratch/kocevski/55817/ft1_filteredMKT_4FGL_J1506.6+0813_daily_bin430.fits ra=226.674 dec=8.2256 rad=12.0 tmin=350784001.0 tmax=351043201.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.38
user 3.14
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/55817/ft1_filtered_4FGL_J1506.6+0813_daily_bin430.fits evtable="EVENTS" scfile=/scratch/kocevski/55817/ft2_4FGL_J1506.6+0813_daily_bin430.fits sctable="SC_DATA" expcube=/scratch/kocevski/55817/ltcube_350784001_351043201_4FGL_J1506.6+0813_daily_bin430.fits outfile=/scratch/kocevski/55817/expmap_350784001_351043201_4FGL_J1506.6+0813_daily_bin430.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/55817/ltcube_350784001_351043201_4FGL_J1506.6+0813_daily_bin430.fits
.....................!
real 191.14
user 185.60
sys 5.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/55817/ft1_filtered_4FGL_J1506.6+0813_daily_bin430.fits scfile=/scratch/kocevski/55817/ft2_4FGL_J1506.6+0813_daily_bin430.fits outfile=/scratch/kocevski/55817/cmap_350784001_351043201_4FGL_J1506.6+0813_daily_bin430.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.35
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/55817/ft1_filtered_4FGL_J1506.6+0813_daily_bin430.fits scfile=/scratch/kocevski/55817/ft2_4FGL_J1506.6+0813_daily_bin430.fits outfile=/scratch/kocevski/55817/cmap_HighResolution_350784001_351043201_4FGL_J1506.6+0813_daily_bin430.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.58
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    41.537       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .15221       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11250E-01   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10198E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10170E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.286       1.0000         .10000E-03   10000.    
    11 'norm      '    .36435       1.0000         .10000E-03   10000.    
    12 'norm      '    4.4795       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    87.356       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.7601       1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.9690       1.0000         .10000E-03   10000.    
    21 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .71937       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1606       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=   7316.315     FROM MIGRAD    STATUS=CONVERGED    578 CALLS     2739 TOTAL
                     EDM=   .39E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.190       -.91127E-06** at limit **
   2  norm          .10000E-03    14.184       -.11330E-06** at limit **
   3  Prefactor     41.549        57.462        .97247E-05    .10961E-04
   4  Prefactor     .10000E-03    24.296        .68004E-07** at limit **
   5  norm          .10002E-03    13.341       -.76465E-06** at limit **
   6  Prefactor     .10000E-03    6.3727       -.41980E-07** at limit **
   7  Prefactor     .10000E-03    15.983       -.39726E-06** at limit **
   8  Prefactor     .10000E-03    16.552        .23626E-06** at limit **
   9  Prefactor     .10000E-03    16.804       -.95927E-07** at limit **
  10  Prefactor     10.280        30.976       -.73678E-07   -.63586E-05
  11  norm          .36420        .19577       -.22044E-07   -.97410E-03
  12  norm          4.4793        2.5633       -.17142E-06   -.29536E-03
  13  norm          .10000E-03    3.4370        .49954E-07** at limit **
  14  norm          .10000E-03    18.320        .46761E-06** at limit **
  15  norm          .10000E-03    4.2042        .37469E-07** at limit **
  16  Prefactor     87.335        57.871       -.13795E-04    .59740E-06
  17  Prefactor     .10000E-03    12.167        .84574E-06** at limit **
  18  Prefactor     .10000E-03    6.9361        .49191E-07** at limit **
  19  Prefactor     7.7589        4.8228       -.16917E-06   -.20017E-03
  20  Prefactor     8.9613        28.469        .34599E-05   -.14453E-04
  21  norm          .10000E-03    1.2798       -.22292E-07** at limit **
  22  Prefactor     .10000E-03    17.978       -.50211E-06** at limit **
  23  Normalizat    .71948        .22472        .15945E-05    .29935E-04
  24  Prefactor     1.1606        .12332       -.26791E-06    .17356E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 41.5492
  Prefactor  = 0.0001
  norm       = 0.000100019
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.28
  norm       = 0.364203
  norm       = 4.47932
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 87.335
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.75894
  Prefactor  = 8.96127
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.719475
  Prefactor  = 1.16059
 **********
 **   18 **HESSE 
 **********

 FCN=   7316.315     FROM HESSE     STATUS=OK           399 CALLS     3138 TOTAL
                     EDM=   .83E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.207        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    14.207        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     41.549        57.511        .62198E-04   -1.4418    
   4  Prefactor     .10000E-03    24.338        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10002E-03    17.610        .92274E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.3794        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    104.54        .64051E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    16.735        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    16.880        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     10.280        30.945        .12493E-03   -1.5067    
  11  norm          .36420        .19065        .25839E-04   -1.5587    
  12  norm          4.4793        2.5597        .97675E-04   -1.5285    
  13  norm          .10000E-03    3.4479        .15485E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    18.323        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    4.3481        .34196E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     87.335        57.929        .42986E-04   -1.3836    
  17  Prefactor     .10000E-03    12.171        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    6.9426        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     7.7589        4.8221        .14141E-03   -1.5151    
  20  Prefactor     8.9613        28.415        .13383E-03   -1.5109    
  21  norm          .10000E-03    1.2855        .94459E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    17.986        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .71948        .25249        .37116E-03   -1.0313    
  24  Prefactor     1.1606        .14157        .17336E-03   -.87553    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.31816e-11
Minuit parameter uncertainties:
  1  1.13644e-05
  2  1.75202e-05
  3  57.5878
  4  2.9542e-05
  5  0.00116139
  6  1.87763e-06
  7  0.000152084
  8  2.62432e-06
  9  1.94474e-05
  10  30.9929
  11  0.190651
  12  2.55973
  13  2.97452e-07
  14  6.31257e-06
  15  5.70175e-07
  16  57.9668
  17  1.78609e-06
  18  7.81706e-06
  19  4.82236
  20  28.4583
  21  3.21631e-06
  22  3.4535e-06
  23  0.252896
  24  0.141613
Done.

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

Extracting fit parameters...

4FGL J1506.6+0813
   Spectrum: LogParabola
225         norm:  1.000e-04  2.975e-07  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.161e+00  1.416e-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:  7.195e-01  2.529e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/55817/likelihoodResults_350784001_351043201_4FGL_J1506.6+0813_daily_bin430.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7316.31607484
delta logL = -0.00137451086357

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7316.31470009
delta logL = 2.39900145971e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10453E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6355       1.0000          .0000       5.0000    
     3 'Normalizat'    .71946       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1606       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=   7316.315     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      239 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10001E-03    5.9990        .16599E-02** at limit **
   2  alpha         1.6796        3.3398        .50000       -.58436E-04
   3  Normalizat    .71947        .23865        .37116E-03   -.25800E-03
   4  Prefactor     1.1606        .13976        .17336E-03   -.71806E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100014
  alpha      = 1.67963
  Normalizat = 0.719471
  Prefactor  = 1.16059
 **********
 **   18 **HESSE 
 **********

 FCN=   7316.315     FROM HESSE     STATUS=OK            29 CALLS      268 TOTAL
                     EDM=   .66E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10001E-03    4.0227        .33197E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.6796        3.3071        .50000       -.33434    
   3  Normalizat    .71947        .23883        .14846E-04   -1.0313    
   4  Prefactor     1.1606        .13987        .69346E-05   -.87553    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.59889e-09
Minuit parameter uncertainties:
  1  0.0004704
  2  2.37824
  3  0.239179
  4  0.139911
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/55817': 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) = 7316.31469842
delta logL = 1.91277104022e-06

Extracting fit parameters...

4FGL J1506.6+0813
   Spectrum: LogParabola
225         norm:  1.000e-04  4.704e-04  1.000e-04  1.000e+04 ( 1.000e-13)
226        alpha:  1.680e+00  2.378e+00  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.161e+00  1.399e-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:  7.195e-01  2.392e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 226.674 8.226

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/55817/cmap_HighResolution_350784001_351043201_4FGL_J1506.6+0813_daily_bin430.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.28e-05', job_status='DONE', photon_flux_upper_limit='3.18e-08', time_completed='2021-09-11 00:35:12.169543', job_id='55817', GAL2='1.16', fit_tolerance='1e-08', EG2='0.72', EG='0.72', time_epoch_completed='1631345712.17', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.16', dlogl='1.91e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.60' WHERE bin_id='430' AND source_name='4FGL J1506.6+0813' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 00:35:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0250>
Subject: Job 55817: <4FGL_J1506.6+0813_daily_bin430> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1506.6+0813_daily_bin430 226.674 8.2256 350784001 351043201 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 :                                   679.34 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             294.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   820 sec.
    Turnaround time :                            821 sec.

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

