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


Performing analysis on: 4FGL_J1506.6+0813_daily_bin428
RA = 226.674, Dec = 8.2256
tmin = 350265601, tmax = 350524801
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='55814', job_status='RUN', time_executed='2021-09-11 00:23:40.468556', time_epoch_executed='1631345020.47' WHERE source_name='4FGL J1506.6+0813' and cadence='daily' and bin_id='428'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/55814

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/55814/ft1_4FGL_J1506.6+0813_daily_bin428.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/55814/ft2_4FGL_J1506.6+0813_daily_bin428.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/55814/ft1_4FGL_J1506.6+0813_daily_bin428.fits outfile=/scratch/kocevski/55814/ft1_filteredMKT_4FGL_J1506.6+0813_daily_bin428.fits ra=226.674 dec=8.2256 rad=12.0 tmin=350265601.0 tmax=350524801.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.33
user 3.09
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/55814/ft2_4FGL_J1506.6+0813_daily_bin428.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/55814/ft1_filteredMKT_4FGL_J1506.6+0813_daily_bin428.fits evtable="EVENTS" outfile="/scratch/kocevski/55814/ft1_filtered_4FGL_J1506.6+0813_daily_bin428.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.51
user 0.33
sys 0.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/55814/ft1_filtered_4FGL_J1506.6+0813_daily_bin428.fits evtable="EVENTS" scfile=/scratch/kocevski/55814/ft2_4FGL_J1506.6+0813_daily_bin428.fits sctable="SC_DATA" expcube=/scratch/kocevski/55814/ltcube_350265601_350524801_4FGL_J1506.6+0813_daily_bin428.fits outfile=/scratch/kocevski/55814/expmap_350265601_350524801_4FGL_J1506.6+0813_daily_bin428.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/55814/ltcube_350265601_350524801_4FGL_J1506.6+0813_daily_bin428.fits
.....................!
real 192.60
user 187.36
sys 4.76

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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/55814/ft1_filtered_4FGL_J1506.6+0813_daily_bin428.fits scfile=/scratch/kocevski/55814/ft2_4FGL_J1506.6+0813_daily_bin428.fits outfile=/scratch/kocevski/55814/cmap_HighResolution_350265601_350524801_4FGL_J1506.6+0813_daily_bin428.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.55
user 0.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.351       1.0000         .10000E-03   10000.    
     2 'norm      '    .12645E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.698       1.0000         .10000E-03   10000.    
     4 'Prefactor '    28.098       1.0000         .10000E-03   10000.    
     5 'norm      '    .10072E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.9390       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.3786       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.4781       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .14584E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    4.9045       1.0000         .10000E-03   10000.    
    13 'norm      '    5.9263       1.0000         .10000E-03   10000.    
    14 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.1696       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .33429E-01   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2284       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0554       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=   7318.236     FROM MIGRAD    STATUS=CONVERGED    580 CALLS     2759 TOTAL
                     EDM=   .65E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.335        24.074       -.17738E-06    .86551E-05
   2  norm          .10000E-03    37.634       -.47734E-06** at limit **
   3  Prefactor     11.846        58.560        .10281E-04    .60058E-04
   4  Prefactor     28.095        25.168       -.63168E-06   -.70415E-05
   5  norm          .10000E-03    8.8496       -.11982E-06** at limit **
   6  Prefactor     2.9390        42.172       -.29095E-06    .14648E-05
   7  Prefactor     3.3730        18.423        .31685E-06   -.37657E-06
   8  Prefactor     .10000E-03    11.563       -.32396E-06** at limit **
   9  Prefactor     8.4826        22.754        .89914E-07    .21190E-04
  10  Prefactor     .10000E-03    84.486       -.19382E-05** at limit **
  11  norm          .10000E-03    .81844E-01    .13312E-06** at limit **
  12  norm          4.9030        2.7458       -.10150E-06    .36226E-04
  13  norm          5.9241        6.8185       -.10349E-05   -.42413E-03
  14  norm          .10000E-03    14.338       -.54101E-07** at limit **
  15  norm          .10000E-03    .99908       -.43401E-07** at limit **
  16  Prefactor     .10000E-03    18.092        .48294E-06** at limit **
  17  Prefactor     .10000E-03    20.232       -.90079E-07** at limit **
  18  Prefactor     1.0059        276.99        .61490E-05    .31305E-04
  19  Prefactor     .25261E-02    2.6320       -.11557E-05** at limit **
  20  Prefactor     .10000E-03    7.7709       -.13649E-07** at limit **
  21  norm          .10000E-03    1.0568       -.24693E-07** at limit **
  22  Prefactor     .10000E-03    19.155       -.53773E-06** at limit **
  23  Normalizat    1.2287        .25137        .41433E-05    .24927E-03
  24  Prefactor     1.0555        .13184       -.16972E-05    .63954E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.335
  norm       = 0.0001
  Prefactor  = 11.8464
  Prefactor  = 28.0946
  norm       = 0.0001
  Prefactor  = 2.93899
  Prefactor  = 3.37299
  Prefactor  = 0.0001
  Prefactor  = 8.48261
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 4.90299
  norm       = 5.92415
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.00588
  Prefactor  = 0.00252613
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.22867
  Prefactor  = 1.05549
 **********
 **   18 **HESSE 
 **********

 FCN=   7318.236     FROM HESSE     STATUS=OK           405 CALLS     3164 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.335        24.065        .10573E-03   -1.4951    
   2  norm          .10000E-03    38.155        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     11.846        58.941        .11712E-03   -1.5019    
   4  Prefactor     28.095        25.166        .75579E-04   -1.4647    
   5  norm          .10000E-03    8.8591        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.9390        41.422        .23692E-03   -1.5365    
   7  Prefactor     3.3730        18.370        .22014E-03   -1.5341    
   8  Prefactor     .10000E-03    11.679        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     8.4826        22.579        .13768E-03   -1.5125    
  10  Prefactor     .10000E-03    85.487        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .12528        .45394E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          4.9030        2.7450        .99978E-04   -1.5265    
  13  norm          5.9241        6.9606        .82477E-03   -1.5221    
  14  norm          .10000E-03    14.338        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.0014        .83504E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    18.099        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    20.277        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.0059        277.55        .85618E-02   -1.5507    
  19  Prefactor     .25261E-02    4.8483        .38795E-01   -1.5698    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    7.7745        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    1.0601        .85889E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    19.169        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.2287        .27539        .31179E-03   -.85722    
  24  Prefactor     1.0555        .14732        .19019E-03   -.90902    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.62216e-09
Minuit parameter uncertainties:
  1  24.0814
  2  0.00012958
  3  52.9318
  4  25.1757
  5  9.44475e-06
  6  22.0851
  7  15.7505
  8  4.28546e-05
  9  22.6021
  10  0.00033546
  11  3.72711e-06
  12  2.74509
  13  6.96159
  14  2.55234e-06
  15  7.46577e-07
  16  1.74706e-05
  17  7.47916e-06
  18  33.5738
  19  0.216929
  20  2.72194e-07
  21  2.97855e-07
  22  2.83439e-05
  23  0.275716
  24  0.147375
Done.

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

Extracting fit parameters...

4FGL J1506.6+0813
   Spectrum: LogParabola
225         norm:  5.924e+00  6.962e+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

GAL_V02
   Spectrum: PowerLaw
493    Prefactor:  1.055e+00  1.474e-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.229e+00  2.757e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.20
Ra Dec: 226.674 8.226
Photon Index (Fixed Index): 1.60 +/- 0.00
Photon Flux (Fixed Index): 1.19e-08 +/- 1.40e-08
Energy Flux (Fixed Index): 2.73e-05 +/- 3.21e-05

TS (Fixed Index): 1.20
Ra Dec: 226.674 8.226
Photon Flux Upper Limit: 4.97e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.14e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/55814/likelihoodResults_350265601_350524801_4FGL_J1506.6+0813_daily_bin428.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) = 7314.80913217
delta logL = 3.42658592519

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7314.61881456
delta logL = 3.61690353574

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .13866E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    4.9998       1.0000          .0000       5.0000    
     3 'Normalizat'    .94386       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1619       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=   7314.619     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      441 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .13852E-01    .62872E-02    .38629E-05   -.68013E-02
   2  alpha         5.0000        .14584        .50000    ** at limit **
   3  Normalizat    .94395        .27647        .34889E-03   -.39168E-04
   4  Prefactor     1.1619        .15213        .18216E-03    .95486E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0138518
  alpha      = 5
  Normalizat = 0.943953
  Prefactor  = 1.16189
 **********
 **   18 **HESSE 
 **********

 FCN=   7314.619     FROM HESSE     STATUS=OK            31 CALLS      472 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .13852E-01    .62800E-02    .15452E-06   -1.5685    
   2  alpha         5.0000        .14551        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .94395        .27682        .13955E-04   -.94932    
   4  Prefactor     1.1619        .15231        .72865E-05   -.87512    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.01953e-11
Minuit parameter uncertainties:
  1  0.00628004
  2  2.60703e-05
  3  0.27724
  4  0.152365
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/55814': 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) = 7314.61880122
delta logL = 3.61691687839

Extracting fit parameters...

4FGL J1506.6+0813
   Spectrum: LogParabola
225         norm:  1.385e-02  6.280e-03  1.000e-04  1.000e+04 ( 1.000e-13)
226        alpha:  5.000e+00  2.607e-05  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.162e+00  1.524e-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.440e-01  2.772e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.39
Ra Dec: 226.674 8.226
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 1.97e-07 +/- 8.89e-08
Energy Flux (Free Index): 2.78e-05 +/- 1.26e-05

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/55814/cmap_HighResolution_350265601_350524801_4FGL_J1506.6+0813_daily_bin428.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.14e-04', comment='SUCCESS', photon_flux='1.19e-08', energy_flux2='2.78e-05', photon_flux_error='1.40e-08', dlogl='3.62e+00', energy_flux='2.73e-05', photon_flux2='1.97e-07', job_status='DONE', time_completed='2021-09-11 00:35:25.623490', photon_index_error2='0.00', photon_index2='5.00', ts='1.20', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', photon_flux_upper_limit='4.97e-08', energy_flux_error2='1.26e-05', EG='1.23', time_epoch_completed='1631345725.62', return_code='0', job_id='55814', GAL2='1.16', EG2='0.94', return_code2='0', energy_flux_error='3.21e-05', photon_flux_error2='8.89e-08', ts2='9.39', photon_index='1.60' WHERE bin_id='428' AND source_name='4FGL J1506.6+0813' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 00:35:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0088>
Subject: Job 55814: <4FGL_J1506.6+0813_daily_bin428> in cluster <slac> Done

Job <4FGL_J1506.6+0813_daily_bin428> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep 11 00:21:30 2021
Job was executed on host(s) <bullet0088>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 00:21:32 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 11 00:21:32 2021
Terminated at Sat Sep 11 00:35:26 2021
Results reported at Sat Sep 11 00:35:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1506.6+0813_daily_bin428 226.674 8.2256 350265601 350524801 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 :                                   700.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             295.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   833 sec.
    Turnaround time :                            836 sec.

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

