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


Performing analysis on: 4FGL_J1506.1+3731_daily_bin61
RA = 226.535, Dec = 37.5183
tmin = 255139201, tmax = 255398401
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='38236', job_status='RUN', time_executed='2021-09-10 23:24:09.112634', time_epoch_executed='1631341449.11' WHERE source_name='4FGL J1506.1+3731' and cadence='daily' and bin_id='61'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/38236

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/38236/ft1_4FGL_J1506.1+3731_daily_bin61.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/38236/ft2_4FGL_J1506.1+3731_daily_bin61.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/38236/ft1_4FGL_J1506.1+3731_daily_bin61.fits outfile=/scratch/kocevski/38236/ft1_filteredMKT_4FGL_J1506.1+3731_daily_bin61.fits ra=226.535 dec=37.5183 rad=12.0 tmin=255139201.0 tmax=255398401.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 7.46
user 7.14
sys 0.28

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/38236/ft1_filtered_4FGL_J1506.1+3731_daily_bin61.fits evtable="EVENTS" scfile=/scratch/kocevski/38236/ft2_4FGL_J1506.1+3731_daily_bin61.fits sctable="SC_DATA" expcube=/scratch/kocevski/38236/ltcube_255139201_255398401_4FGL_J1506.1+3731_daily_bin61.fits outfile=/scratch/kocevski/38236/expmap_255139201_255398401_4FGL_J1506.1+3731_daily_bin61.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/38236/ltcube_255139201_255398401_4FGL_J1506.1+3731_daily_bin61.fits
.....................!
real 190.30
user 185.83
sys 4.08

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/38236/ft1_filtered_4FGL_J1506.1+3731_daily_bin61.fits scfile=/scratch/kocevski/38236/ft2_4FGL_J1506.1+3731_daily_bin61.fits outfile=/scratch/kocevski/38236/cmap_255139201_255398401_4FGL_J1506.1+3731_daily_bin61.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/38236/ft1_filtered_4FGL_J1506.1+3731_daily_bin61.fits scfile=/scratch/kocevski/38236/ft2_4FGL_J1506.1+3731_daily_bin61.fits outfile=/scratch/kocevski/38236/cmap_HighResolution_255139201_255398401_4FGL_J1506.1+3731_daily_bin61.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .13146E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.9749       1.0000         .10000E-03   10000.    
     6 'norm      '    4.6731       1.0000         .10000E-03   10000.    
     7 'Prefactor '    28.170       1.0000         .10000E-03   10000.    
     8 'norm      '    .10622E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    36.935       1.0000         .10000E-03   10000.    
    10 'Prefactor '    29.127       1.0000         .10000E-03   10000.    
    11 'norm      '    3.0299       1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.4846       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.9888       1.0000         .10000E-03   10000.    
    15 'norm      '    .70483       1.0000         .10000E-03   10000.    
    16 'norm      '    .10158E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11256E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.4245       1.0000         .10000E-03   10000.    
    20 'Prefactor '    21.507       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .25512E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    7.8189       1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.4201       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .89421E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    9.1040       1.0000         .10000E-03   10000.    
    27 'Prefactor '    31.249       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.2720       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .77796       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=   6164.706     FROM MIGRAD    STATUS=CONVERGED    730 CALLS     3689 TOTAL
                     EDM=   .58E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.7458       -.10309E-06** at limit **
   2  norm          .10000E-03    1.0164       -.14070E-07** at limit **
   3  Prefactor     .10000E-03    27.422       -.41522E-06** at limit **
   4  Prefactor     .10000E-03    16.329       -.63283E-06** at limit **
   5  Prefactor     2.9752        2.7050        .29071E-07    .37670E-04
   6  norm          4.6503        11.458        .31525E-06    .34804E-04
   7  Prefactor     28.177        29.558       -.80066E-06    .13388E-04
   8  norm          .10000E-03    7.5581       -.37095E-06** at limit **
   9  Prefactor     36.924        47.720        .17850E-05    .13798E-04
  10  Prefactor     29.164        27.615       -.17115E-05    .38177E-05
  11  norm          3.0295        5.4194        .21204E-05    .41584E-03
  12  Prefactor     6.4846        7.0199       -.25379E-07    .17243E-04
  13  Prefactor     .10000E-03    6.3737       -.49966E-07** at limit **
  14  Prefactor     2.9907        5.6153        .17772E-06    .41196E-04
  15  norm          .70743        1.4201        .82748E-08   -.13573E-03
  16  norm          .10000E-03    1.8293       -.10247E-07** at limit **
  17  Prefactor     .10000E-03    5.7599        .11761E-07** at limit **
  18  Prefactor     .10000E-03    17.153        .42780E-06** at limit **
  19  Prefactor     8.4248        6.4216       -.39254E-07   -.53952E-06
  20  Prefactor     21.521        23.025        .11799E-06    .45199E-04
  21  Prefactor     .10000E-03    19.896       -.12614E-06** at limit **
  22  norm          7.8192        1.7287       -.50946E-07    .94496E-04
  23  Prefactor     4.4201        6.1236        .10782E-05    .24761E-03
  24  Prefactor     .10000E-03    11.702        .10196E-06** at limit **
  25  Prefactor     .10050E-03    39.474        .47449E-05** at limit **
  26  norm          9.0798        13.254        .12069E-05    .47703E-04
  27  Prefactor     31.254        31.289       -.41045E-06    .12265E-04
  28  Normalizat    1.2713        .18734       -.28487E-06    .67163E-04
  29  Prefactor     .77842        .17562        .66266E-06    .10315E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.97519
  norm       = 4.65026
  Prefactor  = 28.1772
  norm       = 0.0001
  Prefactor  = 36.9237
  Prefactor  = 29.1636
  norm       = 3.02948
  Prefactor  = 6.48459
  Prefactor  = 0.0001
  Prefactor  = 2.99071
  norm       = 0.707432
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.42485
  Prefactor  = 21.5209
  Prefactor  = 0.0001
  norm       = 7.81919
  Prefactor  = 4.42008
  Prefactor  = 0.0001
  Prefactor  = 0.000100497
  norm       = 9.07979
  Prefactor  = 31.2544
  Normalizat = 1.27133
  Prefactor  = 0.77842
 **********
 **   18 **HESSE 
 **********

 FCN=   6164.706     FROM HESSE     STATUS=OK           559 CALLS     4248 TOTAL
                     EDM=   .92E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.7565        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    1.0188        .77301E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    27.870        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    16.456        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.9752        2.7111        .11938E-03   -1.5363    
   6  norm          4.6503        11.374        .18616E-03   -1.5277    
   7  Prefactor     28.177        29.626        .75483E-04   -1.4646    
   8  norm          .10000E-03    7.7807        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     36.924        47.640        .65946E-04   -1.4492    
  10  Prefactor     29.164        27.531        .74235E-04   -1.4627    
  11  norm          3.0295        5.5390        .11656E-02   -1.5360    
  12  Prefactor     6.4846        7.0187        .15760E-03   -1.5199    
  13  Prefactor     .10000E-03    6.4240        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.9907        5.6000        .23482E-03   -1.5362    
  15  norm          .70743        1.3008        .12511E-02   -1.5540    
  16  norm          .10000E-03    1.8445        .10365E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    5.7948        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    17.149        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     8.4248        6.4241        .69058E-03   -1.5127    
  20  Prefactor     21.521        22.992        .86369E-04   -1.4780    
  21  Prefactor     .10000E-03    20.289        .42914E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          7.8192        1.7315        .45062E-04   -1.5149    
  23  Prefactor     4.4201        6.1554        .95774E-03   -1.5287    
  24  Prefactor     .10000E-03    11.706        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10050E-03    125.19        .65444E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          9.0798        11.631        .13283E-03   -1.5105    
  27  Prefactor     31.254        31.288        .71677E-04   -1.4589    
  28  Normalizat    1.2713        .22268        .23586E-03   -.84426    
  29  Prefactor     .77842        .20878        .28639E-03   -1.0053    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.16953e-09
Minuit parameter uncertainties:
  1  5.14843e-06
  2  8.17931e-07
  3  0.000138335
  4  3.16739e-05
  5  2.7112
  6  11.3791
  7  29.6417
  8  6.95534e-05
  9  47.6886
  10  27.5431
  11  5.53996
  12  7.0196
  13  9.604e-06
  14  5.60094
  15  1.30088
  16  1.33301e-06
  17  1.00104e-06
  18  1.69761e-06
  19  6.42465
  20  23.0017
  21  1.51358e-05
  22  1.73154
  23  6.1563
  24  3.65159e-06
  25  0.015816
  26  11.6338
  27  31.3042
  28  0.222848
  29  0.208995
Done.

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

Extracting fit parameters...

4FGL J1506.1+3731
   Spectrum: LogParabola
279         norm:  7.074e-01  1.301e+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.784e-01  2.090e-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.271e+00  2.228e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.40
Ra Dec: 226.535 37.518
Photon Flux Upper Limit: 8.76e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.56e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/38236/likelihoodResults_255139201_255398401_4FGL_J1506.1+3731_daily_bin61.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) = 6164.56422031
delta logL = 0.141916440378

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6164.56331352
delta logL = 0.142823225492

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .73031       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8202       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2791       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77174       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=   6164.563     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      218 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .73036        1.5630        .23629E-01    .21351E-03
   2  alpha         1.8202        .86270        .43261       -.46279E-04
   3  Normalizat    1.2791        .17794        .53197E-01    .35690E-05
   4  Prefactor     .77169        .17465        .64974E-01    .18957E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.730362
  alpha      = 1.82017
  Normalizat = 1.27915
  Prefactor  = 0.77169
 **********
 **   18 **HESSE 
 **********

 FCN=   6164.563     FROM HESSE     STATUS=OK            35 CALLS      253 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .73036        1.2289        .11661E-02   -1.5537    
   2  alpha         1.8202        .96934        .23711E-01   -.27540    
   3  Normalizat    1.2791        .21114        .23521E-03   -.84191    
   4  Prefactor     .77169        .20653        .28743E-03   -1.0078    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.76031e-10
Minuit parameter uncertainties:
  1  1.22898
  2  0.997689
  3  0.211285
  4  0.206737
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/38236': 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) = 6164.56331348
delta logL = 0.142823263452

Extracting fit parameters...

4FGL J1506.1+3731
   Spectrum: LogParabola
279         norm:  7.304e-01  1.229e+00  1.000e-04  1.000e+04 ( 1.000e-11)
280        alpha:  1.820e+00  9.977e-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.717e-01  2.067e-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.279e+00  2.113e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.40
Ra Dec: 226.535 37.518

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/38236/cmap_HighResolution_255139201_255398401_4FGL_J1506.1+3731_daily_bin61.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.56e-05', job_status='DONE', photon_flux_upper_limit='8.76e-08', time_completed='2021-09-10 23:37:57.635923', job_id='38236', GAL2='0.77', fit_tolerance='1e-08', EG2='1.28', EG='1.27', time_epoch_completed='1631342277.64', return_code2='0', ts='0.40', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='1.43e-01', ts2='0.68', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='61' AND source_name='4FGL J1506.1+3731' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 23:37:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0123>
Subject: Job 38236: <4FGL_J1506.1+3731_daily_bin61> in cluster <slac> Done

Job <4FGL_J1506.1+3731_daily_bin61> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Sep 10 23:21:24 2021
Job was executed on host(s) <bullet0123>, 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:37:58 2021
Results reported at Fri Sep 10 23:37:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1506.1+3731_daily_bin61 226.535 37.5183 255139201 255398401 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 :                                   826.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             297.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   992 sec.
    Turnaround time :                            994 sec.

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

