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


Performing analysis on: 4FGL_J1506.6+0813_daily_bin133
RA = 226.674, Dec = 8.2256
tmin = 273801601, tmax = 274060801
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='54224', job_status='RUN', time_executed='2021-09-11 00:20:18.296996', time_epoch_executed='1631344818.3' WHERE source_name='4FGL J1506.6+0813' and cadence='daily' and bin_id='133'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/54224

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/54224/ft1_4FGL_J1506.6+0813_daily_bin133.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/54224/ft2_4FGL_J1506.6+0813_daily_bin133.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/54224/ft1_4FGL_J1506.6+0813_daily_bin133.fits outfile=/scratch/kocevski/54224/ft1_filteredMKT_4FGL_J1506.6+0813_daily_bin133.fits ra=226.674 dec=8.2256 rad=12.0 tmin=273801601.0 tmax=274060801.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.61
user 3.39
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/54224/ft2_4FGL_J1506.6+0813_daily_bin133.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/54224/ft1_filteredMKT_4FGL_J1506.6+0813_daily_bin133.fits evtable="EVENTS" outfile="/scratch/kocevski/54224/ft1_filtered_4FGL_J1506.6+0813_daily_bin133.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/54224/ft1_filtered_4FGL_J1506.6+0813_daily_bin133.fits" evtable="EVENTS" scfile=/scratch/kocevski/54224/ft2_4FGL_J1506.6+0813_daily_bin133.fits sctable="SC_DATA" outfile=/scratch/kocevski/54224/ltcube_273801601_274060801_4FGL_J1506.6+0813_daily_bin133.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/54224/ft2_4FGL_J1506.6+0813_daily_bin133.fits
.....................!
real 12.00
user 11.64
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/54224/ft1_filtered_4FGL_J1506.6+0813_daily_bin133.fits evtable="EVENTS" scfile=/scratch/kocevski/54224/ft2_4FGL_J1506.6+0813_daily_bin133.fits sctable="SC_DATA" expcube=/scratch/kocevski/54224/ltcube_273801601_274060801_4FGL_J1506.6+0813_daily_bin133.fits outfile=/scratch/kocevski/54224/expmap_273801601_274060801_4FGL_J1506.6+0813_daily_bin133.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/54224/ltcube_273801601_274060801_4FGL_J1506.6+0813_daily_bin133.fits
.....................!
real 189.83
user 185.04
sys 4.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/54224/ft1_filtered_4FGL_J1506.6+0813_daily_bin133.fits scfile=/scratch/kocevski/54224/ft2_4FGL_J1506.6+0813_daily_bin133.fits outfile=/scratch/kocevski/54224/cmap_273801601_274060801_4FGL_J1506.6+0813_daily_bin133.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/54224/ft1_filtered_4FGL_J1506.6+0813_daily_bin133.fits scfile=/scratch/kocevski/54224/ft2_4FGL_J1506.6+0813_daily_bin133.fits outfile=/scratch/kocevski/54224/cmap_HighResolution_273801601_274060801_4FGL_J1506.6+0813_daily_bin133.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/54224/ft1_filtered_4FGL_J1506.6+0813_daily_bin133.fits evtable="EVENTS" scfile=/scratch/kocevski/54224/ft2_4FGL_J1506.6+0813_daily_bin133.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/54224/Model_4FGL_J1506.6+0813_daily_bin133.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/54224/ft1_filtered_4FGL_J1506.6+0813_daily_bin133.fits.....................!
real 64.96
user 63.55
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    21.053       1.0000         .10000E-03   10000.    
     3 'Prefactor '    48.525       1.0000         .10000E-03   10000.    
     4 'Prefactor '    40.730       1.0000         .10000E-03   10000.    
     5 'norm      '    .14163E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.2572       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    20.052       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.3044       1.0000         .10000E-03   10000.    
    12 'norm      '    2.6610       1.0000         .10000E-03   10000.    
    13 'norm      '    .16118E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    14.221       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    14.769       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .94059       1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.7393       1.0000         .10000E-03   10000.    
    21 'norm      '    1.2053       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.4220       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .76466       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=   8754.576     FROM MIGRAD    STATUS=CONVERGED    539 CALLS     2744 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.041        .87496E-05** at limit **
   2  norm          21.055        19.827       -.14421E-06    .50377E-05
   3  Prefactor     48.463        57.405       -.59174E-04    .18880E-04
   4  Prefactor     40.726        28.481        .72984E-06    .18342E-03
   5  norm          .10000E-03    13.985       -.71780E-05** at limit **
   6  Prefactor     4.1850        40.680        .88402E-05   -.31948E-04
   7  Prefactor     .10000E-03    11.325       -.47114E-05** at limit **
   8  Prefactor     .10000E-03    13.318       -.23600E-05** at limit **
   9  Prefactor     20.078        22.246        .17904E-05   -.13254E-04
  10  Prefactor     .10000E-03    18.038        .64506E-05** at limit **
  11  norm          1.3045        .24681       -.44282E-07    .12557E-02
  12  norm          2.6611        1.6639       -.93755E-07   -.84527E-04
  13  norm          .10000E-03    3.4447       -.94219E-07** at limit **
  14  norm          .10000E-03    13.121        .11259E-05** at limit **
  15  norm          .10000E-03    1.4825       -.90683E-08** at limit **
  16  Prefactor     14.220        39.645       -.28671E-05   -.59661E-06
  17  Prefactor     .10000E-03    9.3933       -.58647E-07** at limit **
  18  Prefactor     14.758        25.732       -.25693E-05    .70511E-05
  19  Prefactor     .93910        2.5574       -.15940E-05   -.16950E-02
  20  Prefactor     6.7387        12.012       -.17176E-06   -.80528E-05
  21  norm          1.2041        2.6831       -.97963E-06   -.13008E-02
  22  Prefactor     .10000E-03    23.956       -.82695E-05** at limit **
  23  Normalizat    1.4215        .20424        .39980E-05   -.51990E-04
  24  Prefactor     .76497        .10506        .10085E-06    .35140E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 21.0545
  Prefactor  = 48.4627
  Prefactor  = 40.7259
  norm       = 0.0001
  Prefactor  = 4.18496
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.0777
  Prefactor  = 0.0001
  norm       = 1.30451
  norm       = 2.66114
  norm       = 0.000100001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 14.2204
  Prefactor  = 0.0001
  Prefactor  = 14.7578
  Prefactor  = 0.939101
  Prefactor  = 6.73866
  norm       = 1.20407
  Prefactor  = 0.0001
  Normalizat = 1.42146
  Prefactor  = 0.764973
 **********
 **   18 **HESSE 
 **********

 FCN=   8754.576     FROM HESSE     STATUS=OK           397 CALLS     3141 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.056        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          21.055        19.828        .87295E-04   -1.4790    
   3  Prefactor     48.463        57.329        .57565E-04   -1.4315    
   4  Prefactor     40.726        28.458        .62809E-04   -1.4431    
   5  norm          .10000E-03    13.998        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.1850        40.307        .19528E-03   -1.5299    
   7  Prefactor     .10000E-03    11.362        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    13.404        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     20.078        22.158        .89445E-04   -1.4812    
  10  Prefactor     .10000E-03    18.046        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.3045        .24705        .19162E-04   -1.5480    
  12  norm          2.6611        1.6613        .91743E-04   -1.5382    
  13  norm          .10000E-03    30.792        .33757E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    13.121        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.5092        .11119E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     14.220        39.652        .10621E-03   -1.4954    
  17  Prefactor     .10000E-03    9.3995        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     14.758        25.789        .10422E-03   -1.4939    
  19  Prefactor     .93910        2.5186        .23791E-03   -1.5514    
  20  Prefactor     6.7387        11.994        .15456E-03   -1.5189    
  21  norm          1.2041        2.6528        .22113E-03   -1.5489    
  22  Prefactor     .10000E-03    23.966        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.4215        .24395        .29696E-03   -.80010    
  24  Prefactor     .76497        .12488        .20789E-03   -1.0103    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.64964e-09
Minuit parameter uncertainties:
  1  1.73257e-05
  2  19.834
  3  57.3945
  4  28.4674
  5  6.28405e-05
  6  25.9983
  7  1.07753e-05
  8  0.000108681
  9  22.1672
  10  5.46457e-05
  11  0.247053
  12  1.66137
  13  0.000293826
  14  2.76712e-06
  15  3.62433e-06
  16  39.7256
  17  7.81497e-06
  18  25.8082
  19  2.51885
  20  11.9986
  21  2.65309
  22  1.68015e-05
  23  0.244145
  24  0.12493
Done.

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

Extracting fit parameters...

4FGL J1506.6+0813
   Spectrum: LogParabola
225         norm:  1.000e-04  2.938e-04  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.650e-01  1.249e-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.421e+00  2.441e-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.92e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.69e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/54224/likelihoodResults_273801601_274060801_4FGL_J1506.6+0813_daily_bin133.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) = 8754.57650279
delta logL = -0.000150328525706

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8754.34868822
delta logL = 0.227664236112

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .33952E-02   1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3696       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78183       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=   8754.349     FROM MIGRAD    STATUS=CONVERGED    104 CALLS      372 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .34144E-02    .56894E-02    .75147E-04    .10432    
   2  alpha         5.0000        3.2967        .50000    ** at limit **
   3  Normalizat    1.3692        .24752        .30135E-03   -.74999E-04
   4  Prefactor     .78193        .12698        .20578E-03   -.12364E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.00341437
  alpha      = 5
  Normalizat = 1.36925
  Prefactor  = 0.781927
 **********
 **   18 **HESSE 
 **********

 FCN=   8754.349     FROM HESSE     STATUS=OK            31 CALLS      403 TOTAL
                     EDM=   .82E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .34144E-02    .55256E-02    .15029E-04   -1.5696    
   2  alpha         5.0000        3.2602        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.3692        .24847        .12054E-04   -.81522    
   4  Prefactor     .78193        .12728        .82313E-05   -1.0040    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.22977e-12
Minuit parameter uncertainties:
  1  0.00552559
  2  6.71197e-07
  3  0.248693
  4  0.127328
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/54224': 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) = 8754.34867945
delta logL = 0.227673006337

Extracting fit parameters...

4FGL J1506.6+0813
   Spectrum: LogParabola
225         norm:  3.414e-03  5.526e-03  1.000e-04  1.000e+04 ( 1.000e-13)
226        alpha:  5.000e+00  6.712e-07  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.819e-01  1.273e-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.369e+00  2.487e-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/54224/cmap_HighResolution_273801601_274060801_4FGL_J1506.6+0813_daily_bin133.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.69e-05', job_status='DONE', photon_flux_upper_limit='2.92e-08', time_completed='2021-09-11 00:32:52.598496', job_id='54224', GAL2='0.78', fit_tolerance='1e-08', EG2='1.37', EG='1.42', time_epoch_completed='1631345572.6', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.76', dlogl='2.28e-01', ts2='0.50', photon_index_error='0.00', photon_index='1.60' WHERE bin_id='133' AND source_name='4FGL J1506.6+0813' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 00:32:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0233>
Subject: Job 54224: <4FGL_J1506.6+0813_daily_bin133> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1506.6+0813_daily_bin133 226.674 8.2256 273801601 274060801 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 :                                   752.21 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             283.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   991 sec.
    Turnaround time :                            994 sec.

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

