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


Performing analysis on: 4FGL_J1506.1+3731_daily_bin3
RA = 226.535, Dec = 37.5183
tmin = 240105601, tmax = 240364801
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='38152', job_status='RUN', time_executed='2021-09-10 23:22:55.277286', time_epoch_executed='1631341375.28' WHERE source_name='4FGL J1506.1+3731' and cadence='daily' and bin_id='3'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/38152

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/38152/ft1_4FGL_J1506.1+3731_daily_bin3.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/38152/ft2_4FGL_J1506.1+3731_daily_bin3.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/38152/ft1_4FGL_J1506.1+3731_daily_bin3.fits outfile=/scratch/kocevski/38152/ft1_filteredMKT_4FGL_J1506.1+3731_daily_bin3.fits ra=226.535 dec=37.5183 rad=12.0 tmin=240105601.0 tmax=240364801.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.44
user 1.26
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/38152/ft1_filtered_4FGL_J1506.1+3731_daily_bin3.fits" evtable="EVENTS" scfile=/scratch/kocevski/38152/ft2_4FGL_J1506.1+3731_daily_bin3.fits sctable="SC_DATA" outfile=/scratch/kocevski/38152/ltcube_240105601_240364801_4FGL_J1506.1+3731_daily_bin3.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/38152/ft2_4FGL_J1506.1+3731_daily_bin3.fits
.....................!
real 12.53
user 12.14
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/38152/ft1_filtered_4FGL_J1506.1+3731_daily_bin3.fits evtable="EVENTS" scfile=/scratch/kocevski/38152/ft2_4FGL_J1506.1+3731_daily_bin3.fits sctable="SC_DATA" expcube=/scratch/kocevski/38152/ltcube_240105601_240364801_4FGL_J1506.1+3731_daily_bin3.fits outfile=/scratch/kocevski/38152/expmap_240105601_240364801_4FGL_J1506.1+3731_daily_bin3.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/38152/ltcube_240105601_240364801_4FGL_J1506.1+3731_daily_bin3.fits
.....................!
real 191.05
user 185.36
sys 5.24

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/38152/ft1_filtered_4FGL_J1506.1+3731_daily_bin3.fits scfile=/scratch/kocevski/38152/ft2_4FGL_J1506.1+3731_daily_bin3.fits outfile=/scratch/kocevski/38152/cmap_240105601_240364801_4FGL_J1506.1+3731_daily_bin3.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.58
user 0.37
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    4.4641       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.7428       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    15.718       1.0000         .10000E-03   10000.    
     8 'norm      '    2.0866       1.0000         .10000E-03   10000.    
     9 'Prefactor '    102.12       1.0000         .10000E-03   10000.    
    10 'Prefactor '    39.659       1.0000         .10000E-03   10000.    
    11 'norm      '    11.189       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.4711       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.7138       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    133.07       1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.217       1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.5850       1.0000         .10000E-03   10000.    
    21 'Prefactor '    21.100       1.0000         .10000E-03   10000.    
    22 'norm      '    7.1302       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .96207       1.0000         .10000E-03   10000.    
    24 'Prefactor '    45.749       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.2432       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .47846       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=   5564.038     FROM MIGRAD    STATUS=CONVERGED    700 CALLS     3681 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.1047       -.97116E-06** at limit **
   2  norm          4.4638        3.5975       -.39001E-07   -.11574E-03
   3  Prefactor     .10000E-03    19.478       -.58262E-06** at limit **
   4  Prefactor     .10000E-03    15.188        .13138E-05** at limit **
   5  Prefactor     1.7425        2.2024        .10134E-06   -.46465E-04
   6  norm          .10000E-03    8.1174        .73899E-06** at limit **
   7  Prefactor     15.717        28.675       -.14194E-06   -.11437E-04
   8  norm          2.0867        5.3970        .16492E-06   -.17087E-03
   9  Prefactor     102.13        57.527        .30516E-05    .28811E-03
  10  Prefactor     39.653        37.166       -.24533E-05   -.23563E-03
  11  norm          11.189        8.3184       -.10127E-06    .31106E-05
  12  Prefactor     5.4736        9.6081        .20503E-05   -.50599E-03
  13  Prefactor     .10000E-03    3.7914        .14216E-07** at limit **
  14  Prefactor     .10000E-03    1.3383        .18638E-07** at limit **
  15  norm          .10000E-03    .62305       -.17263E-07** at limit **
  16  norm          1.7136        3.0868        .16747E-06   -.12977E-03
  17  Prefactor     .10000E-03    13.789       -.55819E-06** at limit **
  18  Prefactor     133.09        72.420        .33236E-05    .28503E-03
  19  Prefactor     11.216        9.6419        .13236E-06    .40992E-04
  20  Prefactor     3.5842        16.064        .75266E-05   -.44393E-03
  21  Prefactor     21.101        13.798       -.61657E-06    .38047E-04
  22  norm          7.1334        1.8850       -.85664E-07    .13853E-02
  23  Prefactor     .94196        7.0233       -.80787E-06    .20639E-03
  24  Prefactor     45.758        32.496        .34262E-05    .56420E-03
  25  Prefactor     .10000E-03    9.7073       -.15130E-05** at limit **
  26  norm          .10000E-03    7.8256        .78397E-06** at limit **
  27  Prefactor     .10000E-03    7.6093        .52215E-06** at limit **
  28  Normalizat    1.2431        .18873       -.72018E-06    .12394E-03
  29  Prefactor     .47862        .17245       -.78892E-06    .44202E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 4.46382
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.74247
  norm       = 0.0001
  Prefactor  = 15.717
  norm       = 2.08674
  Prefactor  = 102.128
  Prefactor  = 39.6528
  norm       = 11.1892
  Prefactor  = 5.4736
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.71358
  Prefactor  = 0.0001
  Prefactor  = 133.086
  Prefactor  = 11.2162
  Prefactor  = 3.58422
  Prefactor  = 21.1011
  norm       = 7.13342
  Prefactor  = 0.941964
  Prefactor  = 45.7584
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.2431
  Prefactor  = 0.478625
 **********
 **   18 **HESSE 
 **********

 FCN=   5564.038     FROM HESSE     STATUS=OK           551 CALLS     4232 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.1316        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.4638        3.5978        .12302E-03   -1.5285    
   3  Prefactor     .10000E-03    19.812        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    15.335        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.7425        2.1823        .12090E-03   -1.5444    
   6  norm          .10000E-03    8.1580        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     15.717        28.826        .10103E-03   -1.4915    
   8  norm          2.0867        5.3760        .26390E-03   -1.5419    
   9  Prefactor     102.13        58.328        .19894E-03   -1.3683    
  10  Prefactor     39.653        37.793        .63649E-04   -1.4448    
  11  norm          11.189        8.3175        .11977E-03   -1.5039    
  12  Prefactor     5.4736        9.8362        .85892E-03   -1.5240    
  13  Prefactor     .10000E-03    3.8161        .14178E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    1.3394        .84271E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .98924        .11322E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.7136        3.0408        .16435E-03   -1.5446    
  17  Prefactor     .10000E-03    13.963        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     133.09        73.523        .17454E-03   -1.3396    
  19  Prefactor     11.216        9.6428        .11962E-03   -1.5038    
  20  Prefactor     3.5842        19.564        .10671E-02   -1.5329    
  21  Prefactor     21.101        13.879        .87196E-04   -1.4789    
  22  norm          7.1334        1.8691        .43499E-04   -1.5174    
  23  Prefactor     .94196        24.594        .31324E-02   -1.5514    
  24  Prefactor     45.758        33.374        .59278E-04   -1.4354    
  25  Prefactor     .10000E-03    9.7810        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    7.8586        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    7.6214        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.2431        .21415        .21032E-03   -.85281    
  29  Prefactor     .47862        .19373        .31386E-03   -1.1297    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.15255e-09
Minuit parameter uncertainties:
  1  8.04001e-05
  2  3.59802
  3  8.78506e-05
  4  0.000146841
  5  2.18241
  6  6.5948e-05
  7  28.8514
  8  5.37719
  9  58.3609
  10  37.8159
  11  8.3184
  12  9.83908
  13  4.23563e-06
  14  8.12344e-07
  15  1.93643e-05
  16  3.04111
  17  7.73897e-05
  18  73.5737
  19  9.64415
  20  16.7561
  21  13.8811
  22  1.86911
  23  9.63033
  24  33.3874
  25  0.000151989
  26  6.57403e-05
  27  4.56002e-05
  28  0.2143
  29  0.194002
Done.

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

Extracting fit parameters...

4FGL J1506.1+3731
   Spectrum: LogParabola
279         norm:  1.000e-04  1.936e-05  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:  4.786e-01  1.940e-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.243e+00  2.143e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/38152/likelihoodResults_240105601_240364801_4FGL_J1506.1+3731_daily_bin3.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): 102
logL (Free Index) = 5564.04312926
delta logL = -0.00479242003257

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5563.94458521
delta logL = 0.0937516230479

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .58692E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2191       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .49345       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5563.945     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      339 TOTAL
                     EDM=   .35E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .58769E-01    .16558        .38696E-03    .60304E-03
   2  alpha         5.0000        4.9995        .50000    ** at limit **
   3  Normalizat    1.2191        .20344        .21202E-03    .60355E-04
   4  Prefactor     .49339        .19212        .30945E-03    .68664E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0587691
  alpha      = 5
  Normalizat = 1.2191
  Prefactor  = 0.49339
 **********
 **   18 **HESSE 
 **********

 FCN=   5563.945     FROM HESSE     STATUS=OK            31 CALLS      370 TOTAL
                     EDM=   .36E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .58769E-01    .15564        .15479E-04   -1.5660    
   2  alpha         5.0000        4.9848        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.2191        .20368        .42404E-04   -.86015    
   4  Prefactor     .49339        .19231        .12378E-04   -1.1228    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.56321e-11
Minuit parameter uncertainties:
  1  0.155637
  2  0.000183106
  3  0.203815
  4  0.192564
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/38152': 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) = 5563.94458499
delta logL = 0.0937518476121

Extracting fit parameters...

4FGL J1506.1+3731
   Spectrum: LogParabola
279         norm:  5.877e-02  1.556e-01  1.000e-04  1.000e+04 ( 1.000e-11)
280        alpha:  5.000e+00  1.831e-04  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:  4.934e-01  1.926e-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.219e+00  2.038e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/38152/cmap_HighResolution_240105601_240364801_4FGL_J1506.1+3731_daily_bin3.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.84e-05', job_status='DONE', photon_flux_upper_limit='6.29e-08', time_completed='2021-09-10 23:35:59.287145', job_id='38152', GAL2='0.49', fit_tolerance='1e-08', EG2='1.22', EG='1.24', time_epoch_completed='1631342159.29', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.48', dlogl='9.38e-02', ts2='0.20', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='3' AND source_name='4FGL J1506.1+3731' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 23:35:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0206>
Subject: Job 38152: <4FGL_J1506.1+3731_daily_bin3> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1506.1+3731_daily_bin3 226.535 37.5183 240105601 240364801 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 :                                   781.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             311.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   881 sec.
    Turnaround time :                            883 sec.

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

