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


Performing analysis on: 4FGL_J1506.1+3731_daily_bin56
RA = 226.535, Dec = 37.5183
tmin = 253843201, tmax = 254102401
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='38229', job_status='RUN', time_executed='2021-09-10 23:24:10.097775', time_epoch_executed='1631341450.1' WHERE source_name='4FGL J1506.1+3731' and cadence='daily' and bin_id='56'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/38229

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/38229/ft1_4FGL_J1506.1+3731_daily_bin56.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/38229/ft2_4FGL_J1506.1+3731_daily_bin56.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/38229/ft1_4FGL_J1506.1+3731_daily_bin56.fits outfile=/scratch/kocevski/38229/ft1_filteredMKT_4FGL_J1506.1+3731_daily_bin56.fits ra=226.535 dec=37.5183 rad=12.0 tmin=253843201.0 tmax=254102401.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.47
user 1.28
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/38229/ft1_filtered_4FGL_J1506.1+3731_daily_bin56.fits" evtable="EVENTS" scfile=/scratch/kocevski/38229/ft2_4FGL_J1506.1+3731_daily_bin56.fits sctable="SC_DATA" outfile=/scratch/kocevski/38229/ltcube_253843201_254102401_4FGL_J1506.1+3731_daily_bin56.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/38229/ft2_4FGL_J1506.1+3731_daily_bin56.fits
.....................!
real 12.72
user 12.36
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/38229/ft1_filtered_4FGL_J1506.1+3731_daily_bin56.fits evtable="EVENTS" scfile=/scratch/kocevski/38229/ft2_4FGL_J1506.1+3731_daily_bin56.fits sctable="SC_DATA" expcube=/scratch/kocevski/38229/ltcube_253843201_254102401_4FGL_J1506.1+3731_daily_bin56.fits outfile=/scratch/kocevski/38229/expmap_253843201_254102401_4FGL_J1506.1+3731_daily_bin56.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/38229/ltcube_253843201_254102401_4FGL_J1506.1+3731_daily_bin56.fits
.....................!
real 190.10
user 185.53
sys 4.17

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/38229/ft1_filtered_4FGL_J1506.1+3731_daily_bin56.fits scfile=/scratch/kocevski/38229/ft2_4FGL_J1506.1+3731_daily_bin56.fits outfile=/scratch/kocevski/38229/cmap_253843201_254102401_4FGL_J1506.1+3731_daily_bin56.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/38229/ft1_filtered_4FGL_J1506.1+3731_daily_bin56.fits scfile=/scratch/kocevski/38229/ft2_4FGL_J1506.1+3731_daily_bin56.fits outfile=/scratch/kocevski/38229/cmap_HighResolution_253843201_254102401_4FGL_J1506.1+3731_daily_bin56.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.56
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.3348       1.0000         .10000E-03   10000.    
     2 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    30.510       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    19.250       1.0000         .10000E-03   10000.    
     8 'norm      '    5.9558       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.418       1.0000         .10000E-03   10000.    
    11 'norm      '    5.8930       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.9045       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.8343       1.0000         .10000E-03   10000.    
    15 'norm      '    3.8956       1.0000         .10000E-03   10000.    
    16 'norm      '    .49422       1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.006       1.0000         .10000E-03   10000.    
    18 'Prefactor '    13.390       1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.3121       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.3575       1.0000         .10000E-03   10000.    
    22 'norm      '    9.2313       1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.9047       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .99015       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .75789       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=   5688.859     FROM MIGRAD    STATUS=CONVERGED    694 CALLS     3728 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.3323        15.280        .16202E-06   -.19453E-04
   2  norm          .10000E-03    2.2560        .14579E-06** at limit **
   3  Prefactor     30.508        17.444        .12644E-06   -.63652E-04
   4  Prefactor     .10000E-03    30.814        .57259E-06** at limit **
   5  Prefactor     .10000E-03    .82113        .35815E-07** at limit **
   6  norm          .10000E-03    17.844        .20270E-06** at limit **
   7  Prefactor     19.245        21.122       -.12875E-07   -.11625E-04
   8  norm          5.9552        5.5393        .57779E-07   -.23519E-04
   9  Prefactor     .10000E-03    33.341        .10022E-06** at limit **
  10  Prefactor     13.413        33.820       -.55654E-07    .85612E-06
  11  norm          5.8929        6.5235       -.66494E-06    .28444E-03
  12  Prefactor     2.9036        10.582        .71657E-06   -.25655E-04
  13  Prefactor     .10000E-03    3.5285        .60540E-07** at limit **
  14  Prefactor     9.8355        7.5319       -.34673E-06   -.14620E-03
  15  norm          3.8957        1.7104       -.32345E-07    .20206E-03
  16  norm          .49506        7.6328        .32607E-05   -.25746E-03
  17  Prefactor     10.024        16.112       -.36134E-05   -.32144E-03
  18  Prefactor     13.274        118.52       -.15624E-05   -.23574E-04
  19  Prefactor     4.3119        6.0157        .18021E-06   -.41892E-04
  20  Prefactor     .10000E-03    9.0753        .46424E-07** at limit **
  21  Prefactor     6.3625        15.313        .17307E-06   -.19176E-03
  22  norm          9.2312        2.2383       -.40842E-07    .14932E-03
  23  Prefactor     3.9039        11.370        .55919E-06   -.29924E-04
  24  Prefactor     .10000E-03    8.5176        .19672E-07** at limit **
  25  Prefactor     .10000E-03    8.0815       -.26157E-06** at limit **
  26  norm          .10000E-03    4.7323       -.16614E-06** at limit **
  27  Prefactor     .10000E-03    7.7405        .48632E-07** at limit **
  28  Normalizat    .99031        .18374        .48425E-06   -.22686E-03
  29  Prefactor     .75780        .17144       -.11698E-05   -.18276E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.33232
  norm       = 0.0001
  Prefactor  = 30.5083
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 19.2448
  norm       = 5.95523
  Prefactor  = 0.0001
  Prefactor  = 13.4129
  norm       = 5.89291
  Prefactor  = 2.90355
  Prefactor  = 0.0001
  Prefactor  = 9.83547
  norm       = 3.8957
  norm       = 0.495063
  Prefactor  = 10.024
  Prefactor  = 13.2743
  Prefactor  = 4.31194
  Prefactor  = 0.0001
  Prefactor  = 6.36247
  norm       = 9.23115
  Prefactor  = 3.90391
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.990308
  Prefactor  = 0.757802
 **********
 **   18 **HESSE 
 **********

 FCN=   5688.859     FROM HESSE     STATUS=OK           559 CALLS     4287 TOTAL
                     EDM=   .66E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.3323        15.260        .15948E-03   -1.5205    
   2  norm          .10000E-03    2.2734        .11055E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     30.508        17.419        .72537E-04   -1.4603    
   4  Prefactor     .10000E-03    30.900        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    .82257        .66740E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    17.894        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     19.245        21.173        .91288E-04   -1.4830    
   8  norm          5.9552        5.5363        .16454E-03   -1.5220    
   9  Prefactor     .10000E-03    33.397        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     13.413        34.016        .10935E-03   -1.4975    
  11  norm          5.8929        6.4653        .82713E-03   -1.5222    
  12  Prefactor     2.9036        10.530        .23842E-03   -1.5367    
  13  Prefactor     .10000E-03    3.5511        .13828E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     9.8355        7.5347        .12778E-03   -1.5081    
  15  norm          3.8957        1.7081        .61504E-04   -1.5313    
  16  norm          .49506        15.445        .26262E-02   -1.5567    
  17  Prefactor     10.024        17.776        .12668E-03   -1.5075    
  18  Prefactor     13.274        119.21        .10946E-03   -1.4979    
  19  Prefactor     4.3119        6.0142        .19400E-03   -1.5293    
  20  Prefactor     .10000E-03    9.0997        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     6.3625        15.400        .15919E-03   -1.5203    
  22  norm          9.2312        2.2293        .43729E-04   -1.5100    
  23  Prefactor     3.9039        11.293        .20418E-03   -1.5313    
  24  Prefactor     .10000E-03    8.5178        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    8.0867        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    4.7358        .16019E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    7.7486        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .99031        .21405        .23582E-03   -.93356    
  29  Prefactor     .75780        .19682        .26412E-03   -1.0130    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.61062e-08
Minuit parameter uncertainties:
  1  15.2693
  2  6.33356e-06
  3  17.4219
  4  8.93894e-05
  5  9.16954e-07
  6  3.69757e-05
  7  21.1811
  8  5.5368
  9  3.72114e-05
  10  34.0656
  11  6.46606
  12  10.5363
  13  5.82455e-07
  14  7.53544
  15  1.70816
  16  5.53134
  17  17.7853
  18  79.771
  19  6.01508
  20  3.30454e-05
  21  15.4096
  22  2.22936
  23  11.2997
  24  4.66436e-07
  25  2.94002e-05
  26  1.47841e-05
  27  2.33202e-06
  28  0.214236
  29  0.197
Done.

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

Extracting fit parameters...

4FGL J1506.1+3731
   Spectrum: LogParabola
279         norm:  3.896e+00  1.708e+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:  7.578e-01  1.970e-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:  9.903e-01  2.142e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 14.32
Ra Dec: 226.535 37.518
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 8.36e-08 +/- 3.66e-08
Energy Flux (Fixed Index): 2.44e-05 +/- 1.07e-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) = 5688.64112647
delta logL = 0.217436795037

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5688.63572428
delta logL = 0.222838982752

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.0190       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1211       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0036       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74924       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=   5688.636     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      195 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.0190        1.9227        .50289E-02    .11444E-02
   2  alpha         2.1210        .41966        .27074       -.93378E-05
   3  Normalizat    1.0036        .16947        .46212E-01    .87844E-05
   4  Prefactor     .74924        .16812        .43053E-01    .15480E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.01901
  alpha      = 2.12104
  Normalizat = 1.00359
  Prefactor  = 0.749242
 **********
 **   18 **HESSE 
 **********

 FCN=   5688.636     FROM HESSE     STATUS=OK            31 CALLS      226 TOTAL
                     EDM=   .95E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.0190        1.7525        .63579E-04   -1.5307    
   2  alpha         2.1210        .40293        .11354E-01   -.15217    
   3  Normalizat    1.0036        .19478        .23446E-03   -.92910    
   4  Prefactor     .74924        .19281        .26548E-03   -1.0163    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.54986e-11
Minuit parameter uncertainties:
  1  1.75251
  2  0.404735
  3  0.194922
  4  0.192979
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/38229': 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) = 5688.63572427
delta logL = 0.222838987065

Extracting fit parameters...

4FGL J1506.1+3731
   Spectrum: LogParabola
279         norm:  4.019e+00  1.753e+00  1.000e-04  1.000e+04 ( 1.000e-11)
280        alpha:  2.121e+00  4.047e-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:  7.492e-01  1.930e-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.004e+00  1.949e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 14.69
Ra Dec: 226.535 37.518
Photon Index (Free Index): 2.12 +/- 0.40
Photon Flux (Free Index): 7.17e-08 +/- 3.61e-08
Energy Flux (Free Index): 2.79e-05 +/- 1.39e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/38229/cmap_HighResolution_253843201_254102401_4FGL_J1506.1+3731_daily_bin56.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.36e-08', energy_flux2='2.79e-05', photon_flux_error='3.66e-08', dlogl='2.23e-01', energy_flux='2.44e-05', photon_flux2='7.17e-08', job_status='DONE', time_completed='2021-09-10 23:35:40.125349', photon_index_error2='0.40', photon_index2='2.12', ts='14.32', fit_tolerance='1e-08', GAL='0.76', photon_index_error='0.00', energy_flux_error2='1.39e-05', EG='0.99', time_epoch_completed='1631342140.13', return_code='0', job_id='38229', GAL2='0.75', EG2='1.00', return_code2='0', energy_flux_error='1.07e-05', photon_flux_error2='3.61e-08', ts2='14.69', photon_index='2.40' WHERE bin_id='56' AND source_name='4FGL J1506.1+3731' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 23:35:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0109>
Subject: Job 38229: <4FGL_J1506.1+3731_daily_bin56> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1506.1+3731_daily_bin56 226.535 37.5183 253843201 254102401 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 :                                   688.21 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             291.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   855 sec.
    Turnaround time :                            857 sec.

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

