/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 197 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 = 7420
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1506.1+3731_daily_bin95
RA = 226.535, Dec = 37.5183
tmin = 263952001, tmax = 264211201
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='38284', job_status='RUN', time_executed='2021-09-10 23:24:54.175716', time_epoch_executed='1631341494.18' WHERE source_name='4FGL J1506.1+3731' and cadence='daily' and bin_id='95'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/38284

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/38284/ft1_4FGL_J1506.1+3731_daily_bin95.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/38284/ft2_4FGL_J1506.1+3731_daily_bin95.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/38284/ft1_4FGL_J1506.1+3731_daily_bin95.fits outfile=/scratch/kocevski/38284/ft1_filteredMKT_4FGL_J1506.1+3731_daily_bin95.fits ra=226.535 dec=37.5183 rad=12.0 tmin=263952001.0 tmax=264211201.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 1.69
user 1.52
sys 0.15

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/38284/ft2_4FGL_J1506.1+3731_daily_bin95.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/38284/ft2_4FGL_J1506.1+3731_daily_bin95.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/38284/ft1_filteredMKT_4FGL_J1506.1+3731_daily_bin95.fits evtable="EVENTS" outfile="/scratch/kocevski/38284/ft1_filtered_4FGL_J1506.1+3731_daily_bin95.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.50
user 0.35
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/38284/ft1_filtered_4FGL_J1506.1+3731_daily_bin95.fits" evtable="EVENTS" scfile=/scratch/kocevski/38284/ft2_4FGL_J1506.1+3731_daily_bin95.fits sctable="SC_DATA" outfile=/scratch/kocevski/38284/ltcube_263952001_264211201_4FGL_J1506.1+3731_daily_bin95.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/38284/ft2_4FGL_J1506.1+3731_daily_bin95.fits
.....................!
real 12.11
user 11.72
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/38284/ft1_filtered_4FGL_J1506.1+3731_daily_bin95.fits evtable="EVENTS" scfile=/scratch/kocevski/38284/ft2_4FGL_J1506.1+3731_daily_bin95.fits sctable="SC_DATA" expcube=/scratch/kocevski/38284/ltcube_263952001_264211201_4FGL_J1506.1+3731_daily_bin95.fits outfile=/scratch/kocevski/38284/expmap_263952001_264211201_4FGL_J1506.1+3731_daily_bin95.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/38284/ltcube_263952001_264211201_4FGL_J1506.1+3731_daily_bin95.fits
.....................!
real 190.71
user 185.99
sys 4.36

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 188 point sources and 0 extended sources

Setting source of interest to:
4FGL J1506.1+3731 @ 226.535 37.5183

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/38284/ft1_filtered_4FGL_J1506.1+3731_daily_bin95.fits scfile=/scratch/kocevski/38284/ft2_4FGL_J1506.1+3731_daily_bin95.fits outfile=/scratch/kocevski/38284/cmap_263952001_264211201_4FGL_J1506.1+3731_daily_bin95.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.535 yref=37.5183 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/38284/ft1_filtered_4FGL_J1506.1+3731_daily_bin95.fits scfile=/scratch/kocevski/38284/ft2_4FGL_J1506.1+3731_daily_bin95.fits outfile=/scratch/kocevski/38284/cmap_HighResolution_263952001_264211201_4FGL_J1506.1+3731_daily_bin95.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.535 yref=37.5183 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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/38284/ft1_filtered_4FGL_J1506.1+3731_daily_bin95.fits evtable="EVENTS" scfile=/scratch/kocevski/38284/ft2_4FGL_J1506.1+3731_daily_bin95.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/38284/Model_4FGL_J1506.1+3731_daily_bin95.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/38284/ft1_filtered_4FGL_J1506.1+3731_daily_bin95.fits....................!
real 57.18
user 55.95
sys 1.12

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/38284/ft1_filtered_4FGL_J1506.1+3731_daily_bin95.fits', '/scratch/kocevski/38284/ft2_4FGL_J1506.1+3731_daily_bin95.fits', expMap='/scratch/kocevski/38284/expmap_263952001_264211201_4FGL_J1506.1+3731_daily_bin95.fits', expCube='/scratch/kocevski/38284/ltcube_263952001_264211201_4FGL_J1506.1+3731_daily_bin95.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/38284/Model_4FGL_J1506.1+3731_daily_bin95.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1506.1+3731'

4FGL J1506.1+3731
   Spectrum: LogParabola
279         norm:  2.445e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
280        alpha:  2.398e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
281         beta:  1.019e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
282           Eb:  4.312e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/38284/ft1_filtered_4FGL_J1506.1+3731_daily_bin95.fits
Spacecraft file(s): /scratch/kocevski/38284/ft2_4FGL_J1506.1+3731_daily_bin95.fits
Exposure map: /scratch/kocevski/38284/expmap_263952001_264211201_4FGL_J1506.1+3731_daily_bin95.fits
Exposure cube: /scratch/kocevski/38284/ltcube_263952001_264211201_4FGL_J1506.1+3731_daily_bin95.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/38284/Model_4FGL_J1506.1+3731_daily_bin95.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 7356.57511202

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.0260       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.3486       1.0000         .10000E-03   10000.    
     6 'norm      '    .10035E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    26.122       1.0000         .10000E-03   10000.    
     8 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .17683E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10372E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    6.4384       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .50530       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.0199       1.0000         .10000E-03   10000.    
    15 'norm      '    3.5224       1.0000         .10000E-03   10000.    
    16 'norm      '    3.0388       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .22863E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10146E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.3914       1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.0985       1.0000         .10000E-03   10000.    
    21 'Prefactor '    22.539       1.0000         .10000E-03   10000.    
    22 'norm      '    12.256       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    19.190       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .12603E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.3164       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .59284       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7356.431     FROM MIGRAD    STATUS=CONVERGED    708 CALLS     3156 TOTAL
                     EDM=   .45E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.0381       -.16939E-06** at limit **
   2  norm          .10000E-03    2.1683       -.26381E-07** at limit **
   3  Prefactor     .10000E-03    22.512        .14312E-05** at limit **
   4  Prefactor     4.0229        16.774        .15283E-05   -.26480E-04
   5  Prefactor     4.3472        4.0195       -.42309E-06    .22560E-04
   6  norm          .10000E-03    5.8229        .10749E-05** at limit **
   7  Prefactor     26.108        20.889       -.88484E-05    .18544E-05
   8  norm          .10000E-03    4.8046       -.65459E-06** at limit **
   9  Prefactor     .10000E-03    29.080        .61669E-06** at limit **
  10  Prefactor     .10000E-03    15.792       -.66199E-05** at limit **
  11  norm          6.4389        7.3815       -.14661E-06    .97008E-05
  12  Prefactor     .10000E-03    4.5216        .25861E-06** at limit **
  13  Prefactor     .50542        1.3007        .40691E-07   -.50029E-03
  14  Prefactor     2.0196        4.8004       -.93687E-07   -.24136E-03
  15  norm          3.5226        1.7149       -.85606E-07    .22689E-04
  16  norm          3.0327        3.0558        .68023E-07   -.24583E-05
  17  Prefactor     .10000E-03    13.520        .39689E-06** at limit **
  18  Prefactor     .10000E-03    24.100        .40661E-05** at limit **
  19  Prefactor     4.3943        10.014       -.30108E-06   -.38946E-04
  20  Prefactor     9.0863        10.291        .15590E-06    .26904E-05
  21  Prefactor     22.520        13.330       -.87288E-06   -.94760E-05
  22  norm          12.257        1.8886        .35826E-07    .56779E-04
  23  Prefactor     .10000E-03    2.8738        .43531E-07** at limit **
  24  Prefactor     19.177        21.377       -.91096E-05    .66919E-06
  25  Prefactor     .10000E-03    12.972        .43065E-05** at limit **
  26  norm          .10000E-03    20.111       -.22555E-05** at limit **
  27  Prefactor     .10000E-03    7.1653       -.98215E-06** at limit **
  28  Normalizat    1.3162        .17058        .12739E-05   -.57658E-04
  29  Prefactor     .59299        .15704        .33158E-06    .79999E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.02295
  Prefactor  = 4.34721
  norm       = 0.0001
  Prefactor  = 26.1077
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.43895
  Prefactor  = 0.0001
  Prefactor  = 0.505421
  Prefactor  = 2.0196
  norm       = 3.52259
  norm       = 3.03273
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.39429
  Prefactor  = 9.08634
  Prefactor  = 22.5203
  norm       = 12.2567
  Prefactor  = 0.0001
  Prefactor  = 19.1774
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.31625
  Prefactor  = 0.592986
 **********
 **   18 **HESSE 
 **********

 FCN=   7356.431     FROM HESSE     STATUS=OK           551 CALLS     3707 TOTAL
                     EDM=   .82E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.0409        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    2.1940        .12326E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    22.499        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.0229        16.893        .10049E-02   -1.5307    
   5  Prefactor     4.3472        4.0331        .15742E-03   -1.5291    
   6  norm          .10000E-03    5.8279        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     26.108        20.917        .78379E-04   -1.4686    
   8  norm          .10000E-03    4.8627        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    29.170        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    15.828        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          6.4389        7.3778        .15817E-03   -1.5200    
  12  Prefactor     .10000E-03    4.5305        .17809E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .50542        9.0273        .22585E-02   -1.5566    
  14  Prefactor     2.0196        4.9865        .14502E-02   -1.5424    
  15  norm          3.5226        1.7894        .73803E-04   -1.5333    
  16  norm          3.0327        3.0363        .14109E-03   -1.5360    
  17  Prefactor     .10000E-03    13.809        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    24.105        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     4.3943        10.055        .96095E-03   -1.5289    
  20  Prefactor     9.0863        10.283        .13287E-03   -1.5105    
  21  Prefactor     22.520        13.306        .84370E-04   -1.4758    
  22  norm          12.257        1.8901        .43784E-04   -1.5008    
  23  Prefactor     .10000E-03    2.8780        .14192E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     19.177        21.396        .91430E-04   -1.4832    
  25  Prefactor     .10000E-03    13.023        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    20.678        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    7.1726        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.3162        .20349        .22607E-03   -.83083    
  29  Prefactor     .59299        .18446        .31299E-03   -1.0788    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.18607e-10
Minuit parameter uncertainties:
  1  3.51836e-06
  2  3.40011e-06
  3  9.93044e-05
  4  16.4954
  5  4.03335
  6  5.3232e-06
  7  20.9229
  8  9.8169e-07
  9  5.60455e-05
  10  9.9086e-06
  11  7.37885
  12  2.11842e-06
  13  4.27237
  14  4.98755
  15  1.78945
  16  3.03647
  17  6.03944e-05
  18  6.35271e-06
  19  10.059
  20  10.2847
  21  13.3079
  22  1.89007
  23  6.78542e-06
  24  21.4042
  25  1.68401e-05
  26  5.15338e-05
  27  3.23839e-06
  28  0.203611
  29  0.184647
Done.

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

Extracting fit parameters...

4FGL J1506.1+3731
   Spectrum: LogParabola
279         norm:  3.523e+00  1.789e+00  1.000e-04  1.000e+04 ( 1.000e-11)
280        alpha:  2.398e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
281         beta:  1.019e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
282           Eb:  4.312e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
602    Prefactor:  5.930e-01  1.846e-01  0.000e+00  1.000e+01 ( 1.000e+00)
603        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
604        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
601   Normalization:  1.316e+00  2.036e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.40
Ra Dec: 226.535 37.518
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 7.56e-08 +/- 3.84e-08
Energy Flux (Fixed Index): 2.21e-05 +/- 1.12e-05

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) = 7356.28536079
delta logL = 0.1451805513

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7356.2824863
delta logL = 0.148055042102

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.3086       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6561       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3031       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .60168       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7356.282     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      237 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.3088        32.918        .55641E-02    .40875E-03
   2  alpha         2.6558        3.5782        .33191        .54465E-04
   3  Normalizat    1.3028        .93088E-01    .51340E-01   -.17871E-03
   4  Prefactor     .60195        .10531        .70230E-01   -.26523E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.30878
  alpha      = 2.65584
  Normalizat = 1.30283
  Prefactor  = 0.601947
 **********
 **   18 **HESSE 
 **********

 FCN=   7356.282     FROM HESSE     STATUS=OK            31 CALLS      268 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.3088        1.7036        .69062E-04   -1.5344    
   2  alpha         2.6558        .49059        .13742E-01    .62378E-01
   3  Normalizat    1.3028        .18703        .22698E-03   -.83482    
   4  Prefactor     .60195        .17881        .31086E-03   -1.0750    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.44604e-10
Minuit parameter uncertainties:
  1  1.70366
  2  0.493806
  3  0.187126
  4  0.178981
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/38284': 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) = 7356.28248497
delta logL = 0.1480563716

Extracting fit parameters...

4FGL J1506.1+3731
   Spectrum: LogParabola
279         norm:  3.309e+00  1.704e+00  1.000e-04  1.000e+04 ( 1.000e-11)
280        alpha:  2.656e+00  4.938e-01  0.000e+00  5.000e+00 ( 1.000e+00)
281         beta:  1.019e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
282           Eb:  4.312e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
602    Prefactor:  6.019e-01  1.790e-01  0.000e+00  1.000e+01 ( 1.000e+00)
603        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
604        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
601   Normalization:  1.303e+00  1.871e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.66
Ra Dec: 226.535 37.518
Photon Index (Free Index): 2.66 +/- 0.49
Photon Flux (Free Index): 8.69e-08 +/- 4.37e-08
Energy Flux (Free Index): 2.10e-05 +/- 1.01e-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/38284/cmap_HighResolution_263952001_264211201_4FGL_J1506.1+3731_daily_bin95.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.56e-08', energy_flux2='2.10e-05', photon_flux_error='3.84e-08', dlogl='1.48e-01', energy_flux='2.21e-05', photon_flux2='8.69e-08', job_status='DONE', time_completed='2021-09-10 23:37:11.077696', photon_index_error2='0.49', photon_index2='2.66', ts='7.40', fit_tolerance='1e-08', GAL='0.59', photon_index_error='0.00', energy_flux_error2='1.01e-05', EG='1.32', time_epoch_completed='1631342231.08', return_code='0', job_id='38284', GAL2='0.60', EG2='1.30', return_code2='0', energy_flux_error='1.12e-05', photon_flux_error2='4.37e-08', ts2='7.66', photon_index='2.40' WHERE bin_id='95' AND source_name='4FGL J1506.1+3731' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 23:37:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0089>
Subject: Job 38284: <4FGL_J1506.1+3731_daily_bin95> in cluster <slac> Done

Job <4FGL_J1506.1+3731_daily_bin95> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Sep 10 23:21:27 2021
Job was executed on host(s) <bullet0089>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 23:21:28 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 10 23:21:28 2021
Terminated at Fri Sep 10 23:37:11 2021
Results reported at Fri Sep 10 23:37:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1506.1+3731_daily_bin95 226.535 37.5183 263952001 264211201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1506.1+3731 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   734.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             247.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   943 sec.
    Turnaround time :                            944 sec.

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

