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


Performing analysis on: 4FGL_J1506.6+0813_daily_bin231
RA = 226.674, Dec = 8.2256
tmin = 299203201, tmax = 299462401
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='54372', job_status='RUN', time_executed='2021-09-11 00:19:15.848868', time_epoch_executed='1631344755.85' WHERE source_name='4FGL J1506.6+0813' and cadence='daily' and bin_id='231'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/54372

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/54372/ft1_4FGL_J1506.6+0813_daily_bin231.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/54372/ft2_4FGL_J1506.6+0813_daily_bin231.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/54372/ft1_4FGL_J1506.6+0813_daily_bin231.fits outfile=/scratch/kocevski/54372/ft1_filteredMKT_4FGL_J1506.6+0813_daily_bin231.fits ra=226.674 dec=8.2256 rad=12.0 tmin=299203201.0 tmax=299462401.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.18
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/54372/ft1_filtered_4FGL_J1506.6+0813_daily_bin231.fits" evtable="EVENTS" scfile=/scratch/kocevski/54372/ft2_4FGL_J1506.6+0813_daily_bin231.fits sctable="SC_DATA" outfile=/scratch/kocevski/54372/ltcube_299203201_299462401_4FGL_J1506.6+0813_daily_bin231.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/54372/ft2_4FGL_J1506.6+0813_daily_bin231.fits
.....................!
real 11.46
user 11.12
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/54372/ft1_filtered_4FGL_J1506.6+0813_daily_bin231.fits evtable="EVENTS" scfile=/scratch/kocevski/54372/ft2_4FGL_J1506.6+0813_daily_bin231.fits sctable="SC_DATA" expcube=/scratch/kocevski/54372/ltcube_299203201_299462401_4FGL_J1506.6+0813_daily_bin231.fits outfile=/scratch/kocevski/54372/expmap_299203201_299462401_4FGL_J1506.6+0813_daily_bin231.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/54372/ltcube_299203201_299462401_4FGL_J1506.6+0813_daily_bin231.fits
.....................!
real 190.62
user 185.11
sys 5.19

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/54372/ft1_filtered_4FGL_J1506.6+0813_daily_bin231.fits scfile=/scratch/kocevski/54372/ft2_4FGL_J1506.6+0813_daily_bin231.fits outfile=/scratch/kocevski/54372/cmap_299203201_299462401_4FGL_J1506.6+0813_daily_bin231.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=226.674 yref=8.2256 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.14

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

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

This is gtbin version HEAD
real 0.53
user 0.39
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    23.096       1.0000         .10000E-03   10000.    
     3 'Prefactor '    79.756       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.4487       1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.018       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .41329       1.0000         .10000E-03   10000.    
    12 'norm      '    .67884       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    24.372       1.0000         .10000E-03   10000.    
    15 'norm      '    3.9002       1.0000         .10000E-03   10000.    
    16 'Prefactor '    23.697       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    44.434       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.4090       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .65744       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .23108E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .98141       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0988       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=   7088.707     FROM MIGRAD    STATUS=CONVERGED    556 CALLS     2757 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.3193       -.45813E-06** at limit **
   2  norm          23.095        28.730        .11639E-05    .34990E-05
   3  Prefactor     79.737        73.824       -.13380E-04    .17337E-04
   4  Prefactor     .10000E-03    9.8380       -.21694E-05** at limit **
   5  norm          .10000E-03    6.3871        .10385E-06** at limit **
   6  Prefactor     .10000E-03    14.307        .14867E-04** at limit **
   7  Prefactor     7.4507        19.648       -.66950E-05   -.12739E-04
   8  Prefactor     11.018        15.829       -.25848E-05    .63745E-05
   9  Prefactor     .10000E-03    14.702       -.14092E-04** at limit **
  10  Prefactor     .10000E-03    40.082        .59392E-06** at limit **
  11  norm          .41328        .17120        .50113E-08    .65872E-03
  12  norm          .67963        2.1518       -.14449E-05   -.16586E-02
  13  norm          .10000E-03    1.8085       -.22846E-07** at limit **
  14  norm          24.372        42.873       -.37272E-06   -.55223E-06
  15  norm          3.9000        3.2592        .49838E-07    .15550E-03
  16  Prefactor     23.697        46.570       -.15650E-05   -.60874E-04
  17  Prefactor     .10000E-03    9.6736       -.28701E-05** at limit **
  18  Prefactor     44.434        31.115       -.12372E-05    .22941E-04
  19  Prefactor     2.4090        3.5394       -.56002E-06   -.63384E-03
  20  Prefactor     .10000E-03    9.1064        .41867E-05** at limit **
  21  norm          .65256        2.8779       -.14771E-05   -.46639E-03
  22  Prefactor     .10013E-03    33.743       -.10662E-05** at limit **
  23  Normalizat    .98135        .22810        .38574E-05    .10291E-03
  24  Prefactor     1.0988        .12478        .55183E-07    .42484E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 23.0951
  Prefactor  = 79.7366
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.45069
  Prefactor  = 11.0175
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.413279
  norm       = 0.679628
  norm       = 0.0001
  norm       = 24.3716
  norm       = 3.89998
  Prefactor  = 23.6973
  Prefactor  = 0.0001
  Prefactor  = 44.434
  Prefactor  = 2.40903
  Prefactor  = 0.0001
  norm       = 0.652559
  Prefactor  = 0.000100128
  Normalizat = 0.981351
  Prefactor  = 1.09881
 **********
 **   18 **HESSE 
 **********

 FCN=   7088.707     FROM HESSE     STATUS=OK           409 CALLS     3166 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.3211        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          23.095        28.712        .83349E-04   -1.4746    
   3  Prefactor     79.737        73.699        .44970E-04   -1.3920    
   4  Prefactor     .10000E-03    9.8352        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    6.3944        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    14.091        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     7.4507        19.697        .14695E-03   -1.5162    
   8  Prefactor     11.018        15.876        .12070E-03   -1.5044    
   9  Prefactor     .10000E-03    14.541        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    40.213        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .41328        .17051        .21369E-04   -1.5579    
  12  norm          .67963        2.1790        .20835E-03   -1.5543    
  13  norm          .10000E-03    1.8096        .11058E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          24.372        42.886        .81141E-04   -1.4720    
  15  norm          3.9000        3.2506        .13365E-03   -1.5313    
  16  Prefactor     23.697        46.639        .41143E-03   -1.4734    
  17  Prefactor     .10000E-03    9.6678        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     44.434        31.186        .60145E-04   -1.4374    
  19  Prefactor     2.4090        3.5422        .18552E-03   -1.5398    
  20  Prefactor     .10000E-03    9.0961        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .65256        5.6115        .27535E-02   -1.5546    
  22  Prefactor     .10013E-03    33.358        .17107       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .98135        .26474        .33715E-03   -.93658    
  24  Prefactor     1.0988        .14607        .18490E-03   -.89505    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.91556e-09
Minuit parameter uncertainties:
  1  1.70469e-06
  2  28.7288
  3  73.7841
  4  1.06223e-05
  5  8.92016e-06
  6  2.54749e-05
  7  19.7146
  8  15.8821
  9  1.92882e-06
  10  9.884e-06
  11  0.170506
  12  2.17928
  13  1.98539e-07
  14  42.9406
  15  3.25075
  16  46.7107
  17  1.857e-06
  18  31.197
  19  3.54249
  20  8.58276e-07
  21  3.82736
  22  0.00413926
  23  0.26509
  24  0.146125
Done.

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

Extracting fit parameters...

4FGL J1506.6+0813
   Spectrum: LogParabola
225         norm:  1.000e-04  1.985e-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.099e+00  1.461e-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:  9.814e-01  2.651e-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: 2.10e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.81e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/54372/likelihoodResults_299203201_299462401_4FGL_J1506.6+0813_daily_bin231.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7088.70945337
delta logL = -0.00236583888363

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7088.70708757
delta logL = -4.53828761238e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5918       1.0000          .0000       5.0000    
     3 'Normalizat'    .98135       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0988       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=   7088.707     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      228 TOTAL
                     EDM=   .33E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    8.2095        .11072E-02** at limit **
   2  alpha         1.3995        4.1240        .18102        .21541E-07
   3  Normalizat    .98135        .24661        .33715E-03    .15983E-04
   4  Prefactor     1.0988        .14328        .18490E-03    .32895E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.39951
  Normalizat = 0.981353
  Prefactor  = 1.09881
 **********
 **   18 **HESSE 
 **********

 FCN=   7088.707     FROM HESSE     STATUS=OK            23 CALLS      251 TOTAL
                     EDM=   .47E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.8546        .22145E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.3995        4.0462        .72408E-02   -.45582    
   3  Normalizat    .98135        .24680        .13486E-04   -.93658    
   4  Prefactor     1.0988        .14339        .36980E-04   -.89505    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.68269e-12
Minuit parameter uncertainties:
  1  4.20703e-06
  2  166.158
  3  0.247091
  4  0.143442
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/54372': 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) = 7088.70708686
delta logL = 6.68203028908e-07

Extracting fit parameters...

4FGL J1506.6+0813
   Spectrum: LogParabola
225         norm:  1.000e-04  4.207e-06  1.000e-04  1.000e+04 ( 1.000e-13)
226        alpha:  1.400e+00  1.662e+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:  1.099e+00  1.434e-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:  9.814e-01  2.471e-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/54372/cmap_HighResolution_299203201_299462401_4FGL_J1506.6+0813_daily_bin231.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.81e-05', job_status='DONE', photon_flux_upper_limit='2.10e-08', time_completed='2021-09-11 00:30:23.891258', job_id='54372', GAL2='1.10', fit_tolerance='1e-08', EG2='0.98', EG='0.98', time_epoch_completed='1631345423.89', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='6.68e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.60' WHERE bin_id='231' AND source_name='4FGL J1506.6+0813' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 00:30:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0182>
Subject: Job 54372: <4FGL_J1506.6+0813_daily_bin231> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1506.6+0813_daily_bin231 226.674 8.2256 299203201 299462401 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 :                                   666.26 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             288.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   833 sec.
    Turnaround time :                            835 sec.

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

