/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 228 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 = 7398
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1507.2+1721_daily_bin311
RA = 226.821, Dec = 17.3519
tmin = 319939201, tmax = 320198401
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='66496', job_status='RUN', time_executed='2021-09-11 00:55:01.468636', time_epoch_executed='1631346901.47' WHERE source_name='4FGL J1507.2+1721' and cadence='daily' and bin_id='311'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/66496

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/66496/ft1_4FGL_J1507.2+1721_daily_bin311.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/66496/ft2_4FGL_J1507.2+1721_daily_bin311.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/66496/ft1_4FGL_J1507.2+1721_daily_bin311.fits outfile=/scratch/kocevski/66496/ft1_filteredMKT_4FGL_J1507.2+1721_daily_bin311.fits ra=226.821 dec=17.3519 rad=12.0 tmin=319939201.0 tmax=320198401.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 3.48
user 3.24
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/66496/ft2_4FGL_J1507.2+1721_daily_bin311.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/66496/ft2_4FGL_J1507.2+1721_daily_bin311.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/66496/ft1_filteredMKT_4FGL_J1507.2+1721_daily_bin311.fits evtable="EVENTS" outfile="/scratch/kocevski/66496/ft1_filtered_4FGL_J1507.2+1721_daily_bin311.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.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/66496/ft1_filtered_4FGL_J1507.2+1721_daily_bin311.fits" evtable="EVENTS" scfile=/scratch/kocevski/66496/ft2_4FGL_J1507.2+1721_daily_bin311.fits sctable="SC_DATA" outfile=/scratch/kocevski/66496/ltcube_319939201_320198401_4FGL_J1507.2+1721_daily_bin311.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/66496/ft2_4FGL_J1507.2+1721_daily_bin311.fits
.....................!
real 11.76
user 11.40
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/66496/ft1_filtered_4FGL_J1507.2+1721_daily_bin311.fits evtable="EVENTS" scfile=/scratch/kocevski/66496/ft2_4FGL_J1507.2+1721_daily_bin311.fits sctable="SC_DATA" expcube=/scratch/kocevski/66496/ltcube_319939201_320198401_4FGL_J1507.2+1721_daily_bin311.fits outfile=/scratch/kocevski/66496/expmap_319939201_320198401_4FGL_J1507.2+1721_daily_bin311.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/66496/ltcube_319939201_320198401_4FGL_J1507.2+1721_daily_bin311.fits
.....................!
real 190.90
user 185.84
sys 4.69

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

Setting source of interest to:
4FGL J1507.2+1721 @ 226.821 17.3519

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/66496/ft1_filtered_4FGL_J1507.2+1721_daily_bin311.fits scfile=/scratch/kocevski/66496/ft2_4FGL_J1507.2+1721_daily_bin311.fits outfile=/scratch/kocevski/66496/cmap_319939201_320198401_4FGL_J1507.2+1721_daily_bin311.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.821 yref=17.3519 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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/66496/ft1_filtered_4FGL_J1507.2+1721_daily_bin311.fits scfile=/scratch/kocevski/66496/ft2_4FGL_J1507.2+1721_daily_bin311.fits outfile=/scratch/kocevski/66496/cmap_HighResolution_319939201_320198401_4FGL_J1507.2+1721_daily_bin311.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.821 yref=17.3519 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.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/66496/ft1_filtered_4FGL_J1507.2+1721_daily_bin311.fits evtable="EVENTS" scfile=/scratch/kocevski/66496/ft2_4FGL_J1507.2+1721_daily_bin311.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/66496/Model_4FGL_J1507.2+1721_daily_bin311.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/66496/ft1_filtered_4FGL_J1507.2+1721_daily_bin311.fits.....................!
real 56.85
user 55.41
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/66496/ft1_filtered_4FGL_J1507.2+1721_daily_bin311.fits', '/scratch/kocevski/66496/ft2_4FGL_J1507.2+1721_daily_bin311.fits', expMap='/scratch/kocevski/66496/expmap_319939201_320198401_4FGL_J1507.2+1721_daily_bin311.fits', expCube='/scratch/kocevski/66496/ltcube_319939201_320198401_4FGL_J1507.2+1721_daily_bin311.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/66496/Model_4FGL_J1507.2+1721_daily_bin311.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1507.2+1721'

4FGL J1507.2+1721
   Spectrum: LogParabola
219         norm:  3.297e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
220        alpha:  1.534e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
221         beta:  2.414e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
222           Eb:  3.634e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/66496/ft1_filtered_4FGL_J1507.2+1721_daily_bin311.fits
Spacecraft file(s): /scratch/kocevski/66496/ft2_4FGL_J1507.2+1721_daily_bin311.fits
Exposure map: /scratch/kocevski/66496/expmap_319939201_320198401_4FGL_J1507.2+1721_daily_bin311.fits
Exposure cube: /scratch/kocevski/66496/ltcube_319939201_320198401_4FGL_J1507.2+1721_daily_bin311.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/66496/Model_4FGL_J1507.2+1721_daily_bin311.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) = 7261.10911692

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.5797       1.0000         .10000E-03   10000.    
     2 'norm      '    17.038       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.2920       1.0000         .10000E-03   10000.    
     4 'norm      '    .10067E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.4328       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.6986       1.0000         .10000E-03   10000.    
     9 'Prefactor '    20.415       1.0000         .10000E-03   10000.    
    10 'Prefactor '    15.739       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .73181E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .47627       1.0000         .10000E-03   10000.    
    13 'norm      '    2.9183       1.0000         .10000E-03   10000.    
    14 'norm      '    31.154       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10161E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10160E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    41.334       1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.7226       1.0000         .10000E-03   10000.    
    19 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .29822E-02   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.3524       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .73675       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4680E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7261.102     FROM MIGRAD    STATUS=CONVERGED    485 CALLS     2736 TOTAL
                     EDM=   .51E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.5794        5.7816       -.16316E-05   -.47146E-03
   2  norm          17.038        4.6932        .16044E-06    .24769E-04
   3  Prefactor     3.2902        7.2133        .21153E-05   -.29579E-03
   4  norm          .10000E-03    1.8334       -.19555E-06** at limit **
   5  norm          .10000E-03    3.8257        .24994E-06** at limit **
   6  Prefactor     2.4593        49.163       -.15581E-05   -.30367E-04
   7  Prefactor     .10000E-03    6.9818        .49580E-06** at limit **
   8  Prefactor     4.7013        13.466        .33284E-05   -.52971E-04
   9  Prefactor     20.380        27.982       -.11545E-04   -.22363E-04
  10  Prefactor     15.730        30.854        .37546E-05   -.31130E-05
  11  Prefactor     .10000E-03    4.9477        .34474E-07** at limit **
  12  norm          .47632        .16408       -.40148E-07   -.54702E-03
  13  norm          2.9182        2.9742        .22508E-06    .28783E-03
  14  norm          31.141        38.062       -.91190E-05   -.46130E-06
  15  Prefactor     .10000E-03    27.893        .42468E-06** at limit **
  16  Prefactor     .10000E-03    5.7880        .36626E-06** at limit **
  17  Prefactor     41.347        36.044        .82602E-05   -.24479E-04
  18  Prefactor     8.7274        28.707        .13347E-06   -.66420E-04
  19  norm          .10000E-03    .99586       -.32934E-07** at limit **
  20  Prefactor     .10069E-03    18.894        .18138E-05** at limit **
  21  Normalizat    1.3526        .20860       -.12732E-05   -.40571E-04
  22  Prefactor     .73659        .12082        .53920E-06   -.21785E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.57944
  norm       = 17.0381
  Prefactor  = 3.29016
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 2.45926
  Prefactor  = 0.0001
  Prefactor  = 4.70132
  Prefactor  = 20.3801
  Prefactor  = 15.7304
  Prefactor  = 0.000100001
  norm       = 0.476317
  norm       = 2.91822
  norm       = 31.1415
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 41.3474
  Prefactor  = 8.72739
  norm       = 0.0001
  Prefactor  = 0.000100686
  Normalizat = 1.35262
  Prefactor  = 0.736586
 **********
 **   18 **HESSE 
 **********

 FCN=   7261.102     FROM HESSE     STATUS=OK           352 CALLS     3088 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.5794        5.7798        .25410E-03   -1.5387    
   2  norm          17.038        4.6945        .94093E-04   -1.4882    
   3  Prefactor     3.2902        7.1461        .22315E-03   -1.5345    
   4  norm          .10000E-03    1.8641        .11253E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    3.9233        .32538E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.4593        48.446        .26235E-03   -1.5394    
   7  Prefactor     .10000E-03    6.9932        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.7013        13.391        .18564E-03   -1.5274    
   9  Prefactor     20.380        27.773        .88647E-04   -1.4805    
  10  Prefactor     15.730        30.821        .10096E-03   -1.4915    
  11  Prefactor     .10000E-03    24.132        .36674E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .47632        .16374        .19489E-04   -1.5570    
  13  norm          2.9182        2.9859        .14498E-03   -1.5366    
  14  norm          31.141        38.041        .71786E-04   -1.4591    
  15  Prefactor     .10000E-03    27.923        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    5.8290        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     41.347        36.020        .62351E-04   -1.4421    
  18  Prefactor     8.7274        28.284        .13572E-03   -1.5117    
  19  norm          .10000E-03    1.0090        .83001E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10069E-03    143.51        .70426E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.3526        .25173        .27567E-03   -.82009    
  22  Prefactor     .73659        .14504        .21685E-03   -1.0211    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.985e-09
Minuit parameter uncertainties:
  1  5.78102
  2  4.69464
  3  7.14793
  4  2.93509e-06
  5  2.18219e-06
  6  21.8503
  7  3.78047e-06
  8  13.3994
  9  27.7905
  10  30.8521
  11  0.000371727
  12  0.163744
  13  2.98609
  14  38.0704
  15  1.71719e-05
  16  3.82532e-06
  17  36.0389
  18  28.3278
  19  2.66318e-06
  20  0.0198978
  21  0.25196
  22  0.145117
Done.

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

Extracting fit parameters...

4FGL J1507.2+1721
   Spectrum: LogParabola
219         norm:  3.114e+01  3.807e+01  1.000e-04  1.000e+04 ( 1.000e-14)
220        alpha:  1.534e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
221         beta:  2.414e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
222           Eb:  3.634e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
465    Prefactor:  7.366e-01  1.451e-01  0.000e+00  1.000e+01 ( 1.000e+00)
466        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
467        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
464   Normalization:  1.353e+00  2.520e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.34
Ra Dec: 226.821 17.352
Photon Index (Fixed Index): 1.53 +/- 0.00
Photon Flux (Fixed Index): 5.25e-09 +/- 6.41e-09
Energy Flux (Fixed Index): 1.76e-05 +/- 2.15e-05

TS (Fixed Index): 1.34
Ra Dec: 226.821 17.352
Photon Flux Upper Limit: 2.54e-08 ph cm-2 s-1
Energy Flux Upper Limit: 8.54e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/66496/likelihoodResults_319939201_320198401_4FGL_J1507.2+1721_daily_bin311.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) = 7261.10105075
delta logL = 0.00100661819488

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7261.10103756
delta logL = 0.00101981407624

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    31.061       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5854       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3528       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73631       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4680E+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=   7261.101     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      260 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          31.023        38.197        .35946E-03    .93584E-04
   2  alpha         1.5839        1.0778        .31227E-01   -.78162E-05
   3  Normalizat    1.3528        .23881        .27566E-03    .52212E-04
   4  Prefactor     .73634        .14431        .21688E-03   -.71867E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 31.0233
  alpha      = 1.58385
  Normalizat = 1.35277
  Prefactor  = 0.736336
 **********
 **   18 **HESSE 
 **********

 FCN=   7261.101     FROM HESSE     STATUS=OK            25 CALLS      285 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          31.023        37.919        .14378E-04   -1.4593    
   2  alpha         1.5839        1.0712        .12491E-02   -.37520    
   3  Normalizat    1.3528        .23908        .11026E-04   -.82005    
   4  Prefactor     .73634        .14448        .86752E-05   -1.0212    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.25218e-10
Minuit parameter uncertainties:
  1  37.948
  2  1.11317
  3  0.239281
  4  0.144554
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/66496': 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) = 7261.10103592
delta logL = 0.00102144919492

Extracting fit parameters...

4FGL J1507.2+1721
   Spectrum: LogParabola
219         norm:  3.102e+01  3.795e+01  1.000e-04  1.000e+04 ( 1.000e-14)
220        alpha:  1.584e+00  1.113e+00  0.000e+00  5.000e+00 ( 1.000e+00)
221         beta:  2.414e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
222           Eb:  3.634e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
465    Prefactor:  7.363e-01  1.446e-01  0.000e+00  1.000e+01 ( 1.000e+00)
466        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
467        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
464   Normalization:  1.353e+00  2.393e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.34
Ra Dec: 226.821 17.352
Photon Index (Free Index): 1.58 +/- 1.11
Photon Flux (Free Index): 5.50e-09 +/- 8.84e-09
Energy Flux (Free Index): 1.69e-05 +/- 2.59e-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/66496/cmap_HighResolution_319939201_320198401_4FGL_J1507.2+1721_daily_bin311.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.54e-05', comment='SUCCESS', photon_flux='5.25e-09', energy_flux2='1.69e-05', photon_flux_error='6.41e-09', dlogl='1.02e-03', energy_flux='1.76e-05', photon_flux2='5.50e-09', job_status='DONE', time_completed='2021-09-11 01:05:30.628067', photon_index_error2='1.11', photon_index2='1.58', ts='1.34', fit_tolerance='1e-08', GAL='0.74', photon_index_error='0.00', photon_flux_upper_limit='2.54e-08', energy_flux_error2='2.59e-05', EG='1.35', time_epoch_completed='1631347530.63', return_code='0', job_id='66496', GAL2='0.74', EG2='1.35', return_code2='0', energy_flux_error='2.15e-05', photon_flux_error2='8.84e-09', ts2='1.34', photon_index='1.53' WHERE bin_id='311' AND source_name='4FGL J1507.2+1721' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 01:05:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0079>
Subject: Job 66496: <4FGL_J1507.2+1721_daily_bin311> in cluster <slac> Done

Job <4FGL_J1507.2+1721_daily_bin311> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Sep 11 00:51:00 2021
Job was executed on host(s) <bullet0079>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 00:51:01 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 11 00:51:01 2021
Terminated at Sat Sep 11 01:05:31 2021
Results reported at Sat Sep 11 01:05:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1507.2+1721_daily_bin311 226.821 17.3519 319939201 320198401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1507.2+1721 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   625.44 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             273.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   869 sec.
    Turnaround time :                            871 sec.

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

