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


Performing analysis on: 4FGL_J1507.2+1721_daily_bin54
RA = 226.821, Dec = 17.3519
tmin = 253324801, tmax = 253584001
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='63603', job_status='RUN', time_executed='2021-09-11 00:49:10.127554', time_epoch_executed='1631346550.13' WHERE source_name='4FGL J1507.2+1721' and cadence='daily' and bin_id='54'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/63603

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/63603/ft1_4FGL_J1507.2+1721_daily_bin54.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/63603/ft2_4FGL_J1507.2+1721_daily_bin54.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/63603/ft1_4FGL_J1507.2+1721_daily_bin54.fits outfile=/scratch/kocevski/63603/ft1_filteredMKT_4FGL_J1507.2+1721_daily_bin54.fits ra=226.821 dec=17.3519 rad=12.0 tmin=253324801.0 tmax=253584001.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.42
user 1.23
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/63603/ft2_4FGL_J1507.2+1721_daily_bin54.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/63603/ft1_filteredMKT_4FGL_J1507.2+1721_daily_bin54.fits evtable="EVENTS" outfile="/scratch/kocevski/63603/ft1_filtered_4FGL_J1507.2+1721_daily_bin54.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/63603/ft1_filtered_4FGL_J1507.2+1721_daily_bin54.fits" evtable="EVENTS" scfile=/scratch/kocevski/63603/ft2_4FGL_J1507.2+1721_daily_bin54.fits sctable="SC_DATA" outfile=/scratch/kocevski/63603/ltcube_253324801_253584001_4FGL_J1507.2+1721_daily_bin54.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/63603/ft2_4FGL_J1507.2+1721_daily_bin54.fits
.....................!
real 13.33
user 12.95
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/63603/ft1_filtered_4FGL_J1507.2+1721_daily_bin54.fits evtable="EVENTS" scfile=/scratch/kocevski/63603/ft2_4FGL_J1507.2+1721_daily_bin54.fits sctable="SC_DATA" expcube=/scratch/kocevski/63603/ltcube_253324801_253584001_4FGL_J1507.2+1721_daily_bin54.fits outfile=/scratch/kocevski/63603/expmap_253324801_253584001_4FGL_J1507.2+1721_daily_bin54.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/63603/ltcube_253324801_253584001_4FGL_J1507.2+1721_daily_bin54.fits
.....................!
real 190.33
user 185.38
sys 4.42

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/63603/ft1_filtered_4FGL_J1507.2+1721_daily_bin54.fits scfile=/scratch/kocevski/63603/ft2_4FGL_J1507.2+1721_daily_bin54.fits outfile=/scratch/kocevski/63603/cmap_253324801_253584001_4FGL_J1507.2+1721_daily_bin54.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/63603/ft1_filtered_4FGL_J1507.2+1721_daily_bin54.fits scfile=/scratch/kocevski/63603/ft2_4FGL_J1507.2+1721_daily_bin54.fits outfile=/scratch/kocevski/63603/cmap_HighResolution_253324801_253584001_4FGL_J1507.2+1721_daily_bin54.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.54
user 0.37
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/63603/ft1_filtered_4FGL_J1507.2+1721_daily_bin54.fits', '/scratch/kocevski/63603/ft2_4FGL_J1507.2+1721_daily_bin54.fits', expMap='/scratch/kocevski/63603/expmap_253324801_253584001_4FGL_J1507.2+1721_daily_bin54.fits', expCube='/scratch/kocevski/63603/ltcube_253324801_253584001_4FGL_J1507.2+1721_daily_bin54.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/63603/Model_4FGL_J1507.2+1721_daily_bin54.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/63603/ft1_filtered_4FGL_J1507.2+1721_daily_bin54.fits
Spacecraft file(s): /scratch/kocevski/63603/ft2_4FGL_J1507.2+1721_daily_bin54.fits
Exposure map: /scratch/kocevski/63603/expmap_253324801_253584001_4FGL_J1507.2+1721_daily_bin54.fits
Exposure cube: /scratch/kocevski/63603/ltcube_253324801_253584001_4FGL_J1507.2+1721_daily_bin54.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/63603/Model_4FGL_J1507.2+1721_daily_bin54.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) = 6693.48863856

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.1153       1.0000         .10000E-03   10000.    
     2 'norm      '    9.2776       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .35826E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .74381E-02   1.0000         .10000E-03   10000.    
     5 'norm      '    6.7020       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .58273E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    26.806       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.6622       1.0000         .10000E-03   10000.    
    12 'norm      '    3.5775       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    15.905       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    46.158       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    6.0385       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .96972       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .86764       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.

 FCN=   6693.484     FROM MIGRAD    STATUS=CONVERGED    516 CALLS     2777 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.1158        9.6999        .37596E-02    .39273E-03
   2  norm          9.2776        3.6547        .32894E-02   -.16605E-02
   3  Prefactor     .10000E-03    4.7191        .54147E-01** at limit **
   4  norm          .10268E-03    1.4660        .65424E-01** at limit **
   5  norm          6.7021        4.0032        .38749E-02   -.22204E-02
   6  Prefactor     .10000E-03    17.787        .12319    ** at limit **
   7  Prefactor     .10000E-03    8.4519        .90712E-02** at limit **
   8  Prefactor     .10000E-03    5.5560        .90712E-02** at limit **
   9  Prefactor     .10000E-03    9.2490        .90712E-02** at limit **
  10  Prefactor     26.792        38.466        .19344E-02   -.90219E-03
  11  Prefactor     5.6619        6.7969        .42203E-02    .19089E-02
  12  norm          3.5775        .39082        .36452E-02    .19444E-02
  13  norm          .10000E-03    1.9645        .90712E-02** at limit **
  14  norm          .10000E-03    17.087        .90712E-02** at limit **
  15  Prefactor     15.899        43.093        .25107E-02    .32892E-03
  16  Prefactor     .10000E-03    4.0972        .90712E-02** at limit **
  17  Prefactor     46.164        36.613        .14754E-02    .18286E-02
  18  Prefactor     .10000E-03    10.177        .90712E-02** at limit **
  19  norm          6.0383        2.9649        .40848E-02    .21013E-03
  20  Prefactor     .10000E-03    14.941        .90712E-02** at limit **
  21  Normalizat    .96947        .22642        .72908E-01    .82860E-03
  22  Prefactor     .86790        .13616        .44591E-01    .11628E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.11576
  norm       = 9.27761
  Prefactor  = 0.000100002
  norm       = 0.000102679
  norm       = 6.70214
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.7925
  Prefactor  = 5.66188
  norm       = 3.57746
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 15.8986
  Prefactor  = 0.0001
  Prefactor  = 46.1644
  Prefactor  = 0.0001
  norm       = 6.03828
  Prefactor  = 0.0001
  Normalizat = 0.969471
  Prefactor  = 0.867903
 **********
 **   18 **HESSE 
 **********

 FCN=   6693.484     FROM HESSE     STATUS=OK           346 CALLS     3123 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.1158        9.3642        .15038E-03   -1.5174    
   2  norm          9.2776        3.6561        .47731E-03   -1.5099    
   3  Prefactor     .10000E-03    13.024        .32868E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10268E-03    3.9162        .32418E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          6.7021        4.0057        .61527E-03   -1.5190    
   6  Prefactor     .10000E-03    139.95        .65187E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    8.4611        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.5621        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    9.2565        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     26.792        38.425        .77376E-04   -1.4672    
  11  Prefactor     5.6619        6.7945        .84407E-03   -1.5232    
  12  norm          3.5775        .39191        .16109E-04   -1.5330    
  13  norm          .10000E-03    1.9649        .11199E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    17.087        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     15.899        43.195        .10043E-03   -1.4910    
  16  Prefactor     .10000E-03    4.1287        .16171E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     46.164        36.670        .59016E-04   -1.4348    
  18  Prefactor     .10000E-03    10.188        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          6.0383        2.9651        .95737E-04   -1.5216    
  20  Prefactor     .10000E-03    14.956        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .96947        .27007        .32260E-03   -.94060    
  22  Prefactor     .86790        .16458        .21396E-03   -.97272    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.49071e-08
Minuit parameter uncertainties:
  1  9.36612
  2  3.65615
  3  0.000345526
  4  0.0064788
  5  4.00583
  6  0.000268166
  7  9.53105e-06
  8  1.12013e-05
  9  1.85238e-05
  10  38.4604
  11  6.79538
  12  0.391914
  13  6.37448e-08
  14  1.75769e-05
  15  43.2802
  16  2.31064e-05
  17  36.6879
  18  3.69963e-06
  19  2.96515
  20  9.41949e-05
  21  0.270452
  22  0.164671
Done.

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

Extracting fit parameters...

4FGL J1507.2+1721
   Spectrum: LogParabola
219         norm:  1.000e-04  1.758e-05  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:  8.679e-01  1.647e-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:  9.695e-01  2.705e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/63603/likelihoodResults_253324801_253584001_4FGL_J1507.2+1721_daily_bin54.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) = 6693.48431181
delta logL = -0.000278768679891

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6693.48403736
delta logL = -4.31592434325e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10065E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4960       1.0000          .0000       5.0000    
     3 'Normalizat'    .96947       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86790       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=   6693.484     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      280 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10001E-03    553.41        .18142E-01** at limit **
   2  alpha         1.2234        4.3154        .16461        .74591E-07
   3  Normalizat    .96947        .30412E-01    .32260E-03    .85419E-03
   4  Prefactor     .86790        .19317E-01    .21396E-03    .12827E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100014
  alpha      = 1.22339
  Normalizat = 0.96947
  Prefactor  = 0.867904
 **********
 **   18 **HESSE 
 **********

 FCN=   6693.484     FROM HESSE     STATUS=OK            23 CALLS      303 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10001E-03    19.338        .34192E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.2234        2.6992        .65843E-02   -.53593    
   3  Normalizat    .96947        .25800        .64520E-04   -.94060    
   4  Prefactor     .86790        .16399        .42792E-04   -.97272    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.15307e-09
Minuit parameter uncertainties:
  1  0.00104286
  2  526.337
  3  0.258334
  4  0.164085
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/63603': 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) = 6693.48403285
delta logL = 1.9380786398e-07

Extracting fit parameters...

4FGL J1507.2+1721
   Spectrum: LogParabola
219         norm:  1.000e-04  1.043e-03  1.000e-04  1.000e+04 ( 1.000e-14)
220        alpha:  1.223e+00  5.263e+02  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:  8.679e-01  1.641e-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:  9.695e-01  2.583e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 226.821 17.352

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/63603/cmap_HighResolution_253324801_253584001_4FGL_J1507.2+1721_daily_bin54.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.72e-05', job_status='DONE', photon_flux_upper_limit='1.70e-08', time_completed='2021-09-11 00:59:32.134958', job_id='63603', GAL2='0.87', fit_tolerance='1e-08', EG2='0.97', EG='0.97', time_epoch_completed='1631347172.14', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='1.94e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.53' WHERE bin_id='54' AND source_name='4FGL J1507.2+1721' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 00:59:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0072>
Subject: Job 63603: <4FGL_J1507.2+1721_daily_bin54> in cluster <slac> Done

Job <4FGL_J1507.2+1721_daily_bin54> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Sep 11 00:45:57 2021
Job was executed on host(s) <bullet0072>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 00:45:58 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:45:58 2021
Terminated at Sat Sep 11 00:59:32 2021
Results reported at Sat Sep 11 00:59:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1507.2+1721_daily_bin54 226.821 17.3519 253324801 253584001 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 :                                   619.27 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             250.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   814 sec.
    Turnaround time :                            815 sec.

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

