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


Performing analysis on: 4FGL_J1506.1+3731_daily_bin13
RA = 226.535, Dec = 37.5183
tmin = 242697601, tmax = 242956801
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='38166', job_status='RUN', time_executed='2021-09-10 23:24:09.952757', time_epoch_executed='1631341449.95' WHERE source_name='4FGL J1506.1+3731' and cadence='daily' and bin_id='13'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/38166

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/38166/ft1_4FGL_J1506.1+3731_daily_bin13.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/38166/ft2_4FGL_J1506.1+3731_daily_bin13.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/38166/ft1_4FGL_J1506.1+3731_daily_bin13.fits outfile=/scratch/kocevski/38166/ft1_filteredMKT_4FGL_J1506.1+3731_daily_bin13.fits ra=226.535 dec=37.5183 rad=12.0 tmin=242697601.0 tmax=242956801.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.43
user 1.26
sys 0.16

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/38166/ft1_filtered_4FGL_J1506.1+3731_daily_bin13.fits evtable="EVENTS" scfile=/scratch/kocevski/38166/ft2_4FGL_J1506.1+3731_daily_bin13.fits sctable="SC_DATA" expcube=/scratch/kocevski/38166/ltcube_242697601_242956801_4FGL_J1506.1+3731_daily_bin13.fits outfile=/scratch/kocevski/38166/expmap_242697601_242956801_4FGL_J1506.1+3731_daily_bin13.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/38166/ltcube_242697601_242956801_4FGL_J1506.1+3731_daily_bin13.fits
.....................!
real 190.07
user 185.36
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/38166/ft1_filtered_4FGL_J1506.1+3731_daily_bin13.fits scfile=/scratch/kocevski/38166/ft2_4FGL_J1506.1+3731_daily_bin13.fits outfile=/scratch/kocevski/38166/cmap_242697601_242956801_4FGL_J1506.1+3731_daily_bin13.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.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/38166/ft1_filtered_4FGL_J1506.1+3731_daily_bin13.fits scfile=/scratch/kocevski/38166/ft2_4FGL_J1506.1+3731_daily_bin13.fits outfile=/scratch/kocevski/38166/cmap_HighResolution_242697601_242956801_4FGL_J1506.1+3731_daily_bin13.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.36
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/38166/ft1_filtered_4FGL_J1506.1+3731_daily_bin13.fits', '/scratch/kocevski/38166/ft2_4FGL_J1506.1+3731_daily_bin13.fits', expMap='/scratch/kocevski/38166/expmap_242697601_242956801_4FGL_J1506.1+3731_daily_bin13.fits', expCube='/scratch/kocevski/38166/ltcube_242697601_242956801_4FGL_J1506.1+3731_daily_bin13.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/38166/Model_4FGL_J1506.1+3731_daily_bin13.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/38166/ft1_filtered_4FGL_J1506.1+3731_daily_bin13.fits
Spacecraft file(s): /scratch/kocevski/38166/ft2_4FGL_J1506.1+3731_daily_bin13.fits
Exposure map: /scratch/kocevski/38166/expmap_242697601_242956801_4FGL_J1506.1+3731_daily_bin13.fits
Exposure cube: /scratch/kocevski/38166/ltcube_242697601_242956801_4FGL_J1506.1+3731_daily_bin13.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/38166/Model_4FGL_J1506.1+3731_daily_bin13.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) = 7835.19831754

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.2315       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.4359       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    29.083       1.0000         .10000E-03   10000.    
     8 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    30.164       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.0197       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.938       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.2530       1.0000         .10000E-03   10000.    
    16 'norm      '    .10091E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10279E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.1458       1.0000         .10000E-03   10000.    
    20 'Prefactor '    30.609       1.0000         .10000E-03   10000.    
    21 'Prefactor '    12.412       1.0000         .10000E-03   10000.    
    22 'norm      '    13.948       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .40946E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .38903E-02   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    8.3841       1.0000         .10000E-03   10000.    
    27 'Prefactor '    3.0451       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .80327       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.1248       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=   7835.161     FROM MIGRAD    STATUS=CONVERGED    730 CALLS     3748 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    20.513        .34102E-05** at limit **
   2  norm          .10000E-03    1.1804       -.57528E-07** at limit **
   3  Prefactor     9.2281        11.719        .30022E-07   -.87709E-04
   4  Prefactor     .10000E-03    14.996        .67535E-07** at limit **
   5  Prefactor     4.4360        3.9097        .19170E-07   -.13916E-03
   6  norm          .10000E-03    5.3445       -.29371E-08** at limit **
   7  Prefactor     29.095        22.917       -.12076E-07   -.47191E-04
   8  norm          .10000E-03    2.8783        .70771E-07** at limit **
   9  Prefactor     30.137        30.833       -.80032E-05   -.34234E-03
  10  Prefactor     2.0234        123.88        .44899E-05   -.13578E-06
  11  norm          .10000E-03    2.5739        .24816E-07** at limit **
  12  Prefactor     10.935        12.151        .18212E-06   -.28154E-03
  13  Prefactor     .10000E-03    2.9969       -.12109E-06** at limit **
  14  Prefactor     .10000E-03    3.1305       -.69692E-08** at limit **
  15  norm          2.2530        1.4541        .25082E-07   -.10432E-03
  16  norm          .10000E-03    2.2530        .22417E-07** at limit **
  17  Prefactor     .10000E-03    9.0739       -.63741E-06** at limit **
  18  Prefactor     .10000E-03    25.020       -.95158E-05** at limit **
  19  Prefactor     3.1444        4.3645        .14035E-05   -.18622E-02
  20  Prefactor     30.617        23.881       -.34520E-06   -.32637E-04
  21  Prefactor     12.406        12.920       -.38350E-07   -.12686E-04
  22  norm          13.949        1.9858       -.59741E-07   -.32508E-02
  23  Prefactor     .10004E-03    4.7709        .24648E-05** at limit **
  24  Prefactor     .10000E-03    11.590       -.67650E-06** at limit **
  25  Prefactor     .10000E-03    28.542        .53959E-05** at limit **
  26  norm          8.3911        10.016       -.43873E-08   -.13128E-03
  27  Prefactor     3.0409        18.898        .24763E-05    .20420E-04
  28  Normalizat    .80327        .16930        .62815E-07   -.24986E-03
  29  Prefactor     1.1248        .16003       -.12318E-06   -.24263E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 9.2281
  Prefactor  = 0.0001
  Prefactor  = 4.43595
  norm       = 0.0001
  Prefactor  = 29.0955
  norm       = 0.0001
  Prefactor  = 30.1369
  Prefactor  = 2.02336
  norm       = 0.0001
  Prefactor  = 10.9347
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.253
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 3.14442
  Prefactor  = 30.6171
  Prefactor  = 12.4061
  norm       = 13.9492
  Prefactor  = 0.000100041
  Prefactor  = 0.000100003
  Prefactor  = 0.000100001
  norm       = 8.39111
  Prefactor  = 3.04094
  Normalizat = 0.803268
  Prefactor  = 1.12478
 **********
 **   18 **HESSE 
 **********

 FCN=   7835.161     FROM HESSE     STATUS=OK           555 CALLS     4303 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    20.666        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    1.1879        .93881E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     9.2281        11.687        .13191E-03   -1.5100    
   4  Prefactor     .10000E-03    15.043        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.4360        3.9224        .15504E-03   -1.5287    
   6  norm          .10000E-03    5.3525        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     29.095        22.975        .74292E-04   -1.4629    
   8  norm          .10000E-03    2.9067        .14661E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     30.137        31.212        .72951E-04   -1.4609    
  10  Prefactor     2.0234        123.86        .29121E-03   -1.5423    
  11  norm          .10000E-03    2.5758        .13868E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     10.935        12.225        .60571E-03   -1.5046    
  13  Prefactor     .10000E-03    3.0219        .14951E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.1555        .15291E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.2530        1.4505        .81531E-04   -1.5408    
  16  norm          .10000E-03    4.2888        .25105E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    9.1621        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    25.277        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.1444        8.2445        .11427E-02   -1.5353    
  20  Prefactor     30.617        23.823        .72421E-04   -1.4601    
  21  Prefactor     12.406        12.721        .11370E-03   -1.5003    
  22  norm          13.949        1.9248        .43206E-04   -1.4961    
  23  Prefactor     .10004E-03    12.121        .34691E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    147.03        .57952E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    28.796        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          8.3911        9.9945        .13845E-03   -1.5129    
  27  Prefactor     3.0409        18.928        .23251E-03   -1.5359    
  28  Normalizat    .80327        .20342        .28166E-03   -.99948    
  29  Prefactor     1.1248        .19427        .24646E-03   -.88679    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.14514e-08
Minuit parameter uncertainties:
  1  0.000203829
  2  5.67924e-07
  3  11.6904
  4  2.82095e-05
  5  3.92266
  6  2.53979e-06
  7  22.9818
  8  1.33472e-05
  9  31.2291
  10  31.73
  11  1.05047e-06
  12  12.228
  13  6.72765e-07
  14  2.94612e-07
  15  1.45056
  16  2.03157e-05
  17  1.18555e-05
  18  0.000646343
  19  8.24748
  20  23.8303
  21  12.7243
  22  1.92476
  23  0.00140782
  24  0.00138726
  25  0.000348752
  26  9.99652
  27  15.1805
  28  0.203609
  29  0.194392
Done.

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

Extracting fit parameters...

4FGL J1506.1+3731
   Spectrum: LogParabola
279         norm:  2.253e+00  1.451e+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:  1.125e+00  1.944e-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:  8.033e-01  2.036e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.25
Ra Dec: 226.535 37.518
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 4.83e-08 +/- 3.11e-08
Energy Flux (Fixed Index): 1.41e-05 +/- 9.09e-06

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) = 7835.01507312
delta logL = 0.145741288873

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7835.00503788
delta logL = 0.155776528605

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.0504       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0416       1.0000          .0000       5.0000    
     3 'Normalizat'    .81981       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1149       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=   7835.005     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      212 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.0500        1.4494        .72174E-02    .55406E-03
   2  alpha         2.0416        .50167        .42062       -.45084E-04
   3  Normalizat    .81989        .15551        .63094E-01   -.66673E-04
   4  Prefactor     1.1148        .15828        .55960E-01    .23842E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.05
  alpha      = 2.04156
  Normalizat = 0.819893
  Prefactor  = 1.11484
 **********
 **   18 **HESSE 
 **********

 FCN=   7835.005     FROM HESSE     STATUS=OK            31 CALLS      243 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.0500        1.5248        .82436E-04   -1.5422    
   2  alpha         2.0416        .61827        .16807E-01   -.18442    
   3  Normalizat    .81989        .18579        .27909E-03   -.99335    
   4  Prefactor     1.1148        .18840        .24743E-03   -.88994    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.92564e-10
Minuit parameter uncertainties:
  1  1.52485
  2  0.624988
  3  0.185934
  4  0.188515
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/38166': 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) = 7835.00503772
delta logL = 0.155776689755

Extracting fit parameters...

4FGL J1506.1+3731
   Spectrum: LogParabola
279         norm:  2.050e+00  1.525e+00  1.000e-04  1.000e+04 ( 1.000e-11)
280        alpha:  2.042e+00  6.250e-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:  1.115e+00  1.885e-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:  8.199e-01  1.859e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.55
Ra Dec: 226.535 37.518
Photon Index (Free Index): 2.04 +/- 0.62
Photon Flux (Free Index): 3.50e-08 +/- 3.27e-08
Energy Flux (Free Index): 1.51e-05 +/- 1.06e-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/38166/cmap_HighResolution_242697601_242956801_4FGL_J1506.1+3731_daily_bin13.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.83e-08', energy_flux2='1.51e-05', photon_flux_error='3.11e-08', dlogl='1.56e-01', energy_flux='1.41e-05', photon_flux2='3.50e-08', job_status='DONE', time_completed='2021-09-10 23:37:52.735586', photon_index_error2='0.62', photon_index2='2.04', ts='6.25', fit_tolerance='1e-08', GAL='1.12', photon_index_error='0.00', energy_flux_error2='1.06e-05', EG='0.80', time_epoch_completed='1631342272.74', return_code='0', job_id='38166', GAL2='1.11', EG2='0.82', return_code2='0', energy_flux_error='9.09e-06', photon_flux_error2='3.27e-08', ts2='6.55', photon_index='2.40' WHERE bin_id='13' AND source_name='4FGL J1506.1+3731' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 23:37:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0286>
Subject: Job 38166: <4FGL_J1506.1+3731_daily_bin13> in cluster <slac> Done

Job <4FGL_J1506.1+3731_daily_bin13> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Sep 10 23:21:18 2021
Job was executed on host(s) <bullet0286>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 23:21:19 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:19 2021
Terminated at Fri Sep 10 23:37:53 2021
Results reported at Fri Sep 10 23:37:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1506.1+3731_daily_bin13 226.535 37.5183 242697601 242956801 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 :                                   820.33 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             291.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   993 sec.
    Turnaround time :                            995 sec.

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

