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


Performing analysis on: 4FGL_J1506.6+0813_daily_bin450
RA = 226.674, Dec = 8.2256
tmin = 355968001, tmax = 356227201
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='55849', job_status='RUN', time_executed='2021-09-11 00:24:04.539269', time_epoch_executed='1631345044.54' WHERE source_name='4FGL J1506.6+0813' and cadence='daily' and bin_id='450'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/55849

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/55849/ft1_4FGL_J1506.6+0813_daily_bin450.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/55849/ft2_4FGL_J1506.6+0813_daily_bin450.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/55849/ft1_4FGL_J1506.6+0813_daily_bin450.fits outfile=/scratch/kocevski/55849/ft1_filteredMKT_4FGL_J1506.6+0813_daily_bin450.fits ra=226.674 dec=8.2256 rad=12.0 tmin=355968001.0 tmax=356227201.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.17
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/55849/ft1_filtered_4FGL_J1506.6+0813_daily_bin450.fits evtable="EVENTS" scfile=/scratch/kocevski/55849/ft2_4FGL_J1506.6+0813_daily_bin450.fits sctable="SC_DATA" expcube=/scratch/kocevski/55849/ltcube_355968001_356227201_4FGL_J1506.6+0813_daily_bin450.fits outfile=/scratch/kocevski/55849/expmap_355968001_356227201_4FGL_J1506.6+0813_daily_bin450.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/55849/ltcube_355968001_356227201_4FGL_J1506.6+0813_daily_bin450.fits
.....................!
real 190.02
user 185.35
sys 4.22

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/55849/ft1_filtered_4FGL_J1506.6+0813_daily_bin450.fits scfile=/scratch/kocevski/55849/ft2_4FGL_J1506.6+0813_daily_bin450.fits outfile=/scratch/kocevski/55849/cmap_355968001_356227201_4FGL_J1506.6+0813_daily_bin450.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/55849/ft1_filtered_4FGL_J1506.6+0813_daily_bin450.fits scfile=/scratch/kocevski/55849/ft2_4FGL_J1506.6+0813_daily_bin450.fits outfile=/scratch/kocevski/55849/cmap_HighResolution_355968001_356227201_4FGL_J1506.6+0813_daily_bin450.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/55849/ft1_filtered_4FGL_J1506.6+0813_daily_bin450.fits evtable="EVENTS" scfile=/scratch/kocevski/55849/ft2_4FGL_J1506.6+0813_daily_bin450.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/55849/Model_4FGL_J1506.6+0813_daily_bin450.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/55849/ft1_filtered_4FGL_J1506.6+0813_daily_bin450.fits.....................!
real 60.91
user 59.61
sys 1.12

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .34209E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10091E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.1363       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11894E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.416       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10237E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10240E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .15989       1.0000         .10000E-03   10000.    
    12 'norm      '    .81374E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10041E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    8.7220       1.0000         .10000E-03   10000.    
    16 'Prefactor '    15.159       1.0000         .10000E-03   10000.    
    17 'Prefactor '    14.542       1.0000         .10000E-03   10000.    
    18 'Prefactor '    27.207       1.0000         .10000E-03   10000.    
    19 'Prefactor '    15.535       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10210E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2.0652       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.5038       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .78780       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=   7643.028     FROM MIGRAD    STATUS=CONVERGED    963 CALLS     3143 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.635        .18142E-02** at limit **
   2  norm          .10015E-03    19.226        .12084    ** at limit **
   3  Prefactor     .10000E-03    50.796        .18142E-02** at limit **
   4  Prefactor     .10000E-03    6.8014        .18142E-02** at limit **
   5  norm          .10000E-03    4.4602        .18025E-02** at limit **
   6  Prefactor     7.1489        18.898        .15016E-03   -.70865E-04
   7  Prefactor     .10000E-03    60.242        .18142E-02** at limit **
   8  Prefactor     11.424        16.867        .11857E-03   -.19061E-03
   9  Prefactor     .10000E-03    12.200        .18142E-02** at limit **
  10  Prefactor     .10000E-03    68.182        .18142E-02** at limit **
  11  norm          .15980        .16470        .36260E-03    .10744E-02
  12  norm          .10009E-03    26.445        .16097E-02** at limit **
  13  norm          .10000E-03    4.7669        .18142E-02** at limit **
  14  norm          .10000E-03    32.719        .18142E-02** at limit **
  15  norm          8.7159        5.0775        .13573E-03    .17213E-03
  16  Prefactor     15.160        47.465        .10287E-03   -.14919E-04
  17  Prefactor     14.539        23.612        .10503E-03    .86593E-06
  18  Prefactor     27.219        40.798        .76804E-04   -.20723E-04
  19  Prefactor     15.535        6.1198        .10162E-03   -.47771E-04
  20  Prefactor     .10000E-03    13.986        .18142E-02** at limit **
  21  norm          2.0638        3.1087        .18417E-03   -.22513E-03
  22  Prefactor     .10000E-03    37.198        .18142E-02** at limit **
  23  Normalizat    1.5033        .26562        .29517E-03   -.20161E-03
  24  Prefactor     .78797        .13801        .20909E-03   -.68725E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.000100147
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 7.14891
  Prefactor  = 0.000100001
  Prefactor  = 11.4237
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.159795
  norm       = 0.000100086
  norm       = 0.0001
  norm       = 0.0001
  norm       = 8.71593
  Prefactor  = 15.16
  Prefactor  = 14.5394
  Prefactor  = 27.2195
  Prefactor  = 15.5354
  Prefactor  = 0.0001
  norm       = 2.06381
  Prefactor  = 0.0001
  Normalizat = 1.50333
  Prefactor  = 0.787972
 **********
 **   18 **HESSE 
 **********

 FCN=   7643.028     FROM HESSE     STATUS=OK           385 CALLS     3528 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.635        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10015E-03    18.887        .12264       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    50.807        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.8015        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    4.4603        .36050E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.1489        18.897        .60064E-05   -1.5173    
   7  Prefactor     .10000E-03    60.296        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     11.424        16.866        .47428E-05   -1.5032    
   9  Prefactor     .10000E-03    12.201        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    68.197        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .15980        .16456        .14504E-04   -1.5628    
  12  norm          .10009E-03    26.929        .32193E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    4.7682        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    32.720        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          8.7159        5.0723        .54290E-05   -1.5117    
  16  Prefactor     15.160        47.460        .41148E-05   -1.4929    
  17  Prefactor     14.539        23.612        .42012E-05   -1.4945    
  18  Prefactor     27.219        40.794        .30722E-05   -1.4664    
  19  Prefactor     15.535        6.1197        .40647E-05   -1.4919    
  20  Prefactor     .10000E-03    13.986        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.0638        3.1086        .73666E-05   -1.5421    
  22  Prefactor     .10000E-03    37.201        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.5033        .26570        .59034E-04   -.77685    
  24  Prefactor     .78797        .13814        .83637E-05   -1.0017    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.46935e-09
Minuit parameter uncertainties:
  1  3.46044e-05
  2  0.00333358
  3  5.98715e-05
  4  4.66884e-07
  5  1.12203e-06
  6  18.9129
  7  0.000363277
  8  16.8734
  9  2.91066e-05
  10  3.53299e-05
  11  0.164564
  12  0.00304853
  13  1.34181e-05
  14  1.70287e-05
  15  5.07259
  16  47.578
  17  23.627
  18  40.8359
  19  6.1199
  20  1.55862e-06
  21  3.10881
  22  0.000115539
  23  0.26595
  24  0.138204
Done.

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

Extracting fit parameters...

4FGL J1506.6+0813
   Spectrum: LogParabola
225         norm:  1.000e-04  1.342e-05  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:  7.880e-01  1.382e-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.503e+00  2.660e-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.52e-08 ph cm-2 s-1
Energy Flux Upper Limit: 8.05e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/55849/likelihoodResults_355968001_356227201_4FGL_J1506.6+0813_daily_bin450.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) = 7643.02921349
delta logL = -0.000998543657261

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7643.02821403
delta logL = 9.07182766241e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10401E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6525       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5033       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78799       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=   7643.028     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      237 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10003E-03    9.9241        .18142E-02** at limit **
   2  alpha         1.7202        3.3596        .50000       -.60539E-04
   3  Normalizat    1.5033        .25111        .29517E-03    .13150E-03
   4  Prefactor     .78797        .13469        .20909E-03    .33753E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100025
  alpha      = 1.72025
  Normalizat = 1.50333
  Prefactor  = 0.787972
 **********
 **   18 **HESSE 
 **********

 FCN=   7643.028     FROM HESSE     STATUS=OK            29 CALLS      266 TOTAL
                     EDM=   .68E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10003E-03    6.7069        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.7202        3.3223        .50000       -.31719    
   3  Normalizat    1.5033        .25132        .59034E-04   -.77685    
   4  Prefactor     .78797        .13480        .41819E-04   -1.0017    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.77448e-09
Minuit parameter uncertainties:
  1  0.00082339
  2  2.39192
  3  0.251529
  4  0.134858
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/55849': 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) = 7643.028212
delta logL = 2.9446928238e-06

Extracting fit parameters...

4FGL J1506.6+0813
   Spectrum: LogParabola
225         norm:  1.000e-04  8.234e-04  1.000e-04  1.000e+04 ( 1.000e-13)
226        alpha:  1.720e+00  2.392e+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:  7.880e-01  1.349e-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.503e+00  2.515e-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/55849/cmap_HighResolution_355968001_356227201_4FGL_J1506.6+0813_daily_bin450.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.05e-05', job_status='DONE', photon_flux_upper_limit='3.52e-08', time_completed='2021-09-11 00:35:56.125539', job_id='55849', GAL2='0.79', fit_tolerance='1e-08', EG2='1.50', EG='1.50', time_epoch_completed='1631345756.13', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.79', dlogl='2.94e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.60' WHERE bin_id='450' AND source_name='4FGL J1506.6+0813' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 00:35:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0263>
Subject: Job 55849: <4FGL_J1506.6+0813_daily_bin450> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1506.6+0813_daily_bin450 226.674 8.2256 355968001 356227201 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 :                                   707.23 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             296.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   861 sec.
    Turnaround time :                            863 sec.

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

