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


Performing analysis on: 4FGL_J1506.6+0813_daily_bin253
RA = 226.674, Dec = 8.2256
tmin = 304905601, tmax = 305164801
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='54404', job_status='RUN', time_executed='2021-09-11 00:20:35.788497', time_epoch_executed='1631344835.79' WHERE source_name='4FGL J1506.6+0813' and cadence='daily' and bin_id='253'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/54404

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/54404/ft1_4FGL_J1506.6+0813_daily_bin253.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/54404/ft2_4FGL_J1506.6+0813_daily_bin253.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/54404/ft1_4FGL_J1506.6+0813_daily_bin253.fits outfile=/scratch/kocevski/54404/ft1_filteredMKT_4FGL_J1506.6+0813_daily_bin253.fits ra=226.674 dec=8.2256 rad=12.0 tmin=304905601.0 tmax=305164801.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.49
user 3.25
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/54404/ft1_filtered_4FGL_J1506.6+0813_daily_bin253.fits" evtable="EVENTS" scfile=/scratch/kocevski/54404/ft2_4FGL_J1506.6+0813_daily_bin253.fits sctable="SC_DATA" outfile=/scratch/kocevski/54404/ltcube_304905601_305164801_4FGL_J1506.6+0813_daily_bin253.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/54404/ft2_4FGL_J1506.6+0813_daily_bin253.fits
.....................!
real 11.99
user 11.59
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/54404/ft1_filtered_4FGL_J1506.6+0813_daily_bin253.fits evtable="EVENTS" scfile=/scratch/kocevski/54404/ft2_4FGL_J1506.6+0813_daily_bin253.fits sctable="SC_DATA" expcube=/scratch/kocevski/54404/ltcube_304905601_305164801_4FGL_J1506.6+0813_daily_bin253.fits outfile=/scratch/kocevski/54404/expmap_304905601_305164801_4FGL_J1506.6+0813_daily_bin253.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/54404/ltcube_304905601_305164801_4FGL_J1506.6+0813_daily_bin253.fits
.....................!
real 192.46
user 186.71
sys 5.37

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/54404/ft1_filtered_4FGL_J1506.6+0813_daily_bin253.fits scfile=/scratch/kocevski/54404/ft2_4FGL_J1506.6+0813_daily_bin253.fits outfile=/scratch/kocevski/54404/cmap_304905601_305164801_4FGL_J1506.6+0813_daily_bin253.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/54404/ft1_filtered_4FGL_J1506.6+0813_daily_bin253.fits scfile=/scratch/kocevski/54404/ft2_4FGL_J1506.6+0813_daily_bin253.fits outfile=/scratch/kocevski/54404/cmap_HighResolution_304905601_305164801_4FGL_J1506.6+0813_daily_bin253.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=226.674 yref=8.2256 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.5429       1.0000         .10000E-03   10000.    
     2 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.247       1.0000         .10000E-03   10000.    
     5 'norm      '    .58226E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .67911       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10848E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .32592       1.0000         .10000E-03   10000.    
    12 'norm      '    .72499       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      '    5.9291       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    25.683       1.0000         .10000E-03   10000.    
    18 'Prefactor '    28.323       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.5193       1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.9052       1.0000         .10000E-03   10000.    
    21 'norm      '    2.5751       1.0000         .10000E-03   10000.    
    22 'Prefactor '    22.505       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2989       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .97792       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=   7815.452     FROM MIGRAD    STATUS=CONVERGED    570 CALLS     2806 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.5193        27.223        .46356E-06    .33608E-04
   2  norm          .10000E-03    8.7815       -.23119E-07** at limit **
   3  Prefactor     .10000E-03    35.333       -.76200E-06** at limit **
   4  Prefactor     11.269        21.265        .22406E-05    .44797E-03
   5  norm          .11332E-03    18.918       -.48920E-05** at limit **
   6  Prefactor     .10000E-03    8.8853       -.53462E-08** at limit **
   7  Prefactor     .10000E-03    13.578       -.31761E-06** at limit **
   8  Prefactor     .10000E-03    30.625        .25511E-05** at limit **
   9  Prefactor     .65873        20.503        .52624E-06   -.86201E-04
  10  Prefactor     .10004E-03    167.78        .91381E-05** at limit **
  11  norm          .32592        .16043        .91973E-08    .50963E-03
  12  norm          .72378        1.3614        .69614E-06    .16087E-02
  13  norm          .10000E-03    1.4656       -.80524E-09** at limit **
  14  norm          .10000E-03    28.877       -.13900E-05** at limit **
  15  norm          5.9291        3.3868       -.19995E-06   -.27412E-03
  16  Prefactor     .10000E-03    13.755        .26037E-06** at limit **
  17  Prefactor     25.676        29.679       -.62668E-07   -.15507E-05
  18  Prefactor     28.323        35.320       -.39403E-07    .27942E-05
  19  Prefactor     3.5188        3.9290        .20951E-06    .12467E-03
  20  Prefactor     9.9003        24.484       -.36065E-06    .27626E-05
  21  norm          2.5753        4.2075        .69779E-06    .28384E-03
  22  Prefactor     22.504        30.441       -.44105E-07    .16848E-05
  23  Normalizat    1.2987        .21740        .51031E-06    .19744E-03
  24  Prefactor     .97807        .11823       -.24926E-06    .32820E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.51926
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.2686
  norm       = 0.00011332
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.658734
  Prefactor  = 0.000100043
  norm       = 0.325924
  norm       = 0.723776
  norm       = 0.0001
  norm       = 0.000100001
  norm       = 5.92909
  Prefactor  = 0.0001
  Prefactor  = 25.6761
  Prefactor  = 28.3229
  Prefactor  = 3.5188
  Prefactor  = 9.90027
  norm       = 2.57526
  Prefactor  = 22.5037
  Normalizat = 1.29869
  Prefactor  = 0.978071
 **********
 **   18 **HESSE 
 **********

 FCN=   7815.452     FROM HESSE     STATUS=OK           411 CALLS     3217 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.5193        27.304        .17065E-03   -1.5238    
   2  norm          .10000E-03    8.7852        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    35.381        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     11.269        22.171        .11946E-03   -1.5036    
   5  norm          .11332E-03    11.419        .93214E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    8.8951        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    13.644        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    30.987        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .65873        193.82        .75282E-02   -1.5546    
  10  Prefactor     .10004E-03    169.77        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .32592        .15944        .23772E-04   -1.5594    
  12  norm          .72378        1.2456        .14737E-02   -1.5538    
  13  norm          .10000E-03    1.4658        .10452E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    28.950        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          5.9291        3.3914        .59724E-03   -1.5221    
  16  Prefactor     .10000E-03    13.759        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     25.676        29.688        .79046E-04   -1.4694    
  18  Prefactor     28.323        35.477        .75279E-04   -1.4643    
  19  Prefactor     3.5188        3.9195        .17737E-03   -1.5333    
  20  Prefactor     9.9003        24.444        .12732E-03   -1.5079    
  21  norm          2.5753        4.1686        .21721E-03   -1.5387    
  22  Prefactor     22.504        30.439        .84434E-04   -1.4759    
  23  Normalizat    1.2987        .25926        .30998E-03   -.83605    
  24  Prefactor     .97807        .14201        .19671E-03   -.93464    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.22701e-09
Minuit parameter uncertainties:
  1  24.5697
  2  2.76136e-06
  3  0.00021165
  4  22.1876
  5  0.0246707
  6  2.87023e-06
  7  5.32336e-05
  8  0.000600311
  9  22.6714
  10  0.00539705
  11  0.159445
  12  1.24569
  13  1.273e-07
  14  0.000362813
  15  3.39155
  16  4.54484e-05
  17  29.7047
  18  35.5037
  19  3.91977
  20  24.4682
  21  4.16905
  22  30.46
  23  0.259519
  24  0.142065
Done.

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

Extracting fit parameters...

4FGL J1506.6+0813
   Spectrum: LogParabola
225         norm:  1.000e-04  1.273e-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:  9.781e-01  1.421e-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.299e+00  2.595e-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: 1.76e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.02e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/54404/likelihoodResults_304905601_305164801_4FGL_J1506.6+0813_daily_bin253.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) = 7815.45180718
delta logL = -2.45963838097e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7815.45180445
delta logL = 2.76431819657e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5730       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2987       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97811       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=   7815.452     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      247 TOTAL
                     EDM=   .29E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    69.908        .10537E-01** at limit **
   2  alpha         1.2934        2.9958        .18186        .12190E-07
   3  Normalizat    1.2987        .37553E-01    .30998E-03   -.10929E-03
   4  Prefactor     .97807        .21158E-01    .19671E-03   -.15074E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.29345
  Normalizat = 1.29869
  Prefactor  = 0.978071
 **********
 **   18 **HESSE 
 **********

 FCN=   7815.452     FROM HESSE     STATUS=OK            23 CALLS      270 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.5828        .10853E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.2934        3.7815        .72744E-02   -.50365    
   3  Normalizat    1.2987        .24596        .12399E-04   -.83605    
   4  Prefactor     .97807        .13866        .39342E-04   -.93464    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.62106e-11
Minuit parameter uncertainties:
  1  2.02186e-06
  2  135.216
  3  0.246187
  4  0.138706
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/54404': 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) = 7815.45180226
delta logL = 2.4685932658e-06

Extracting fit parameters...

4FGL J1506.6+0813
   Spectrum: LogParabola
225         norm:  1.000e-04  2.022e-06  1.000e-04  1.000e+04 ( 1.000e-13)
226        alpha:  1.293e+00  1.352e+02  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:  9.781e-01  1.387e-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.299e+00  2.462e-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/54404/cmap_HighResolution_304905601_305164801_4FGL_J1506.6+0813_daily_bin253.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.02e-05', job_status='DONE', photon_flux_upper_limit='1.76e-08', time_completed='2021-09-11 00:32:32.781323', job_id='54404', GAL2='0.98', fit_tolerance='1e-08', EG2='1.30', EG='1.30', time_epoch_completed='1631345552.78', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='2.47e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.60' WHERE bin_id='253' AND source_name='4FGL J1506.6+0813' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 00:32:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0094>
Subject: Job 54404: <4FGL_J1506.6+0813_daily_bin253> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1506.6+0813_daily_bin253 226.674 8.2256 304905601 305164801 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 :                                   715.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             274.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   960 sec.
    Turnaround time :                            961 sec.

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

