/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 198 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 = 7407
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1507.2+1721_daily_bin1000
RA = 226.821, Dec = 17.3519
tmin = 498528001, tmax = 498787201
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='69015', job_status='RUN', time_executed='2021-09-11 01:00:31.187165', time_epoch_executed='1631347231.19' WHERE source_name='4FGL J1507.2+1721' and cadence='daily' and bin_id='1000'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/69015

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/69015/ft1_4FGL_J1507.2+1721_daily_bin1000.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/69015/ft2_4FGL_J1507.2+1721_daily_bin1000.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/69015/ft1_4FGL_J1507.2+1721_daily_bin1000.fits outfile=/scratch/kocevski/69015/ft1_filteredMKT_4FGL_J1507.2+1721_daily_bin1000.fits ra=226.821 dec=17.3519 rad=12.0 tmin=498528001.0 tmax=498787201.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 4.91
user 4.61
sys 0.28

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/69015/ft2_4FGL_J1507.2+1721_daily_bin1000.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/69015/ft1_filteredMKT_4FGL_J1507.2+1721_daily_bin1000.fits evtable="EVENTS" outfile="/scratch/kocevski/69015/ft1_filtered_4FGL_J1507.2+1721_daily_bin1000.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.53
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/69015/ft1_filtered_4FGL_J1507.2+1721_daily_bin1000.fits" evtable="EVENTS" scfile=/scratch/kocevski/69015/ft2_4FGL_J1507.2+1721_daily_bin1000.fits sctable="SC_DATA" outfile=/scratch/kocevski/69015/ltcube_498528001_498787201_4FGL_J1507.2+1721_daily_bin1000.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/69015/ft2_4FGL_J1507.2+1721_daily_bin1000.fits
.....................!
real 11.75
user 11.35
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/69015/ft1_filtered_4FGL_J1507.2+1721_daily_bin1000.fits evtable="EVENTS" scfile=/scratch/kocevski/69015/ft2_4FGL_J1507.2+1721_daily_bin1000.fits sctable="SC_DATA" expcube=/scratch/kocevski/69015/ltcube_498528001_498787201_4FGL_J1507.2+1721_daily_bin1000.fits outfile=/scratch/kocevski/69015/expmap_498528001_498787201_4FGL_J1507.2+1721_daily_bin1000.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/69015/ltcube_498528001_498787201_4FGL_J1507.2+1721_daily_bin1000.fits
.....................!
real 190.47
user 184.33
sys 5.77

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/69015/ft1_filtered_4FGL_J1507.2+1721_daily_bin1000.fits scfile=/scratch/kocevski/69015/ft2_4FGL_J1507.2+1721_daily_bin1000.fits outfile=/scratch/kocevski/69015/cmap_498528001_498787201_4FGL_J1507.2+1721_daily_bin1000.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/69015/ft1_filtered_4FGL_J1507.2+1721_daily_bin1000.fits scfile=/scratch/kocevski/69015/ft2_4FGL_J1507.2+1721_daily_bin1000.fits outfile=/scratch/kocevski/69015/cmap_HighResolution_498528001_498787201_4FGL_J1507.2+1721_daily_bin1000.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.55
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.9448       1.0000         .10000E-03   10000.    
     2 'norm      '    6.4725       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11094E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    6.4107       1.0000         .10000E-03   10000.    
     5 'norm      '    7.0536       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10164E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    31.907       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10714E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .44115E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.3470       1.0000         .10000E-03   10000.    
    12 'norm      '    1.8256       1.0000         .10000E-03   10000.    
    13 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    30.434       1.0000         .10000E-03   10000.    
    15 'Prefactor '    37.109       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10358E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10632E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    20.557       1.0000         .10000E-03   10000.    
    19 'norm      '    .70697       1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.9386       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1118       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0273       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=   7808.549     FROM MIGRAD    STATUS=CONVERGED    886 CALLS     2788 TOTAL
                     EDM=   .50E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.9623        8.6946        .16469E-03   -.95260E-05
   2  norm          6.4728        3.3498        .11306E-03   -.88485E-05
   3  Prefactor     .10000E-03    4.4297        .18075E-02** at limit **
   4  norm          6.4096        3.1865        .10743E-03   -.24551E-04
   5  norm          7.0514        4.4704        .14413E-03   -.12305E-04
   6  Prefactor     .10000E-03    8.6042        .18142E-02** at limit **
   7  Prefactor     31.871        31.811        .70936E-04    .15386E-04
   8  Prefactor     .10000E-03    13.899        .18142E-02** at limit **
   9  Prefactor     .10000E-03    10.448        .18142E-02** at limit **
  10  Prefactor     .10000E-03    41.948        .16244    ** at limit **
  11  Prefactor     2.3437        5.2225        .26759E-03   -.61519E-04
  12  norm          1.8257        .32322        .19737E-04    .60827E-03
  13  norm          .10000E-03    2.5543        .13783E-02** at limit **
  14  norm          30.450        37.601        .72627E-04   -.44769E-05
  15  Prefactor     37.092        45.101        .65791E-04    .13133E-04
  16  Prefactor     .10000E-03    9.7859        .18142E-02** at limit **
  17  Prefactor     .10000E-03    142.73        .18142E-02** at limit **
  18  Prefactor     20.561        23.135        .88340E-04    .10424E-04
  19  norm          .70662        .95830        .13068E-02    .69534E-04
  20  Prefactor     7.9287        16.507        .14231E-03   -.30357E-05
  21  Normalizat    1.1118        .27232        .33920E-03    .12264E-03
  22  Prefactor     1.0273        .16356        .21593E-03    .20655E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.96226
  norm       = 6.4728
  Prefactor  = 0.0001
  norm       = 6.4096
  norm       = 7.05138
  Prefactor  = 0.0001
  Prefactor  = 31.8707
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 2.34371
  norm       = 1.82568
  norm       = 0.0001
  norm       = 30.45
  Prefactor  = 37.0924
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.5608
  norm       = 0.70662
  Prefactor  = 7.92868
  Normalizat = 1.11185
  Prefactor  = 1.02731
 **********
 **   18 **HESSE 
 **********

 FCN=   7808.549     FROM HESSE     STATUS=OK           332 CALLS     3120 TOTAL
                     EDM=   .50E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.9623        8.6944        .65878E-05   -1.5220    
   2  norm          6.4728        3.3498        .45225E-05   -1.5199    
   3  Prefactor     .10000E-03    4.4311        .36150E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          6.4096        3.1864        .42972E-05   -1.5202    
   5  norm          7.0514        4.4703        .57653E-05   -1.5177    
   6  Prefactor     .10000E-03    8.6045        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     31.871        31.814        .28374E-05   -1.4578    
   8  Prefactor     .10000E-03    13.902        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    10.448        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    43.819        .15772       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.3437        5.2224        .10704E-04   -1.5402    
  12  norm          1.8257        .32323        .78948E-06   -1.5438    
  13  norm          .10000E-03    2.5544        .27567E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          30.450        37.601        .14525E-04   -1.4604    
  15  Prefactor     37.092        45.112        .26317E-05   -1.4489    
  16  Prefactor     .10000E-03    9.7920        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    142.83        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     20.561        23.131        .35336E-05   -1.4801    
  19  norm          .70662        .95791        .52273E-04   -1.5540    
  20  Prefactor     7.9287        16.506        .56923E-05   -1.5145    
  21  Normalizat    1.1118        .27259        .13568E-04   -.89372    
  22  Prefactor     1.0273        .16373        .43186E-04   -.91825    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.9944e-11
Minuit parameter uncertainties:
  1  8.6962
  2  3.34991
  3  2.14097e-05
  4  3.18653
  5  4.47056
  6  7.69001e-06
  7  31.831
  8  4.57346e-05
  9  7.83766e-06
  10  0.000321257
  11  5.22337
  12  0.323226
  13  1.0696e-06
  14  37.6299
  15  45.1535
  16  1.37073e-05
  17  0.000285713
  18  23.1415
  19  0.957931
  20  16.5158
  21  0.272932
  22  0.163808
Done.

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

Extracting fit parameters...

4FGL J1507.2+1721
   Spectrum: LogParabola
219         norm:  3.045e+01  3.763e+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:  1.027e+00  1.638e-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.112e+00  2.729e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.30
Ra Dec: 226.821 17.352
Photon Index (Fixed Index): 1.53 +/- 0.00
Photon Flux (Fixed Index): 5.13e-09 +/- 6.34e-09
Energy Flux (Fixed Index): 1.72e-05 +/- 2.13e-05

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

Saving results to:
/scratch/kocevski/69015/likelihoodResults_498528001_498787201_4FGL_J1507.2+1721_daily_bin1000.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) = 7808.04140812
delta logL = 0.507841151726

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7808.03792287
delta logL = 0.511326400249

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    16.919       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4575       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1123       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0230       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=   7808.038     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      238 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          16.949        569.25        .24343E-02   -.17588E-04
   2  alpha         2.4575        3.4746        .30956        .58995E-04
   3  Normalizat    1.1123        .99828E-01    .76611E-01    .17500E-04
   4  Prefactor     1.0230        .53713E-01    .41850E-01    .98847E-07
                               ERR DEF=  .500    
Final values: 
  norm       = 16.9493
  alpha      = 2.45754
  Normalizat = 1.11231
  Prefactor  = 1.02299
 **********
 **   18 **HESSE 
 **********

 FCN=   7808.038     FROM HESSE     STATUS=OK            33 CALLS      271 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          16.949        29.914        .97372E-04   -1.4884    
   2  alpha         2.4575        .99382        .16069E-01   -.16984E-01
   3  Normalizat    1.1123        .26255        .33909E-03   -.89358    
   4  Prefactor     1.0230        .16248        .21622E-03   -.91967    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02718e-08
Minuit parameter uncertainties:
  1  29.9402
  2  1.02206
  3  0.262862
  4  0.162559
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/69015': 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) = 7808.037921
delta logL = 0.51132826798

Extracting fit parameters...

4FGL J1507.2+1721
   Spectrum: LogParabola
219         norm:  1.695e+01  2.994e+01  1.000e-04  1.000e+04 ( 1.000e-14)
220        alpha:  2.458e+00  1.022e+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:  1.023e+00  1.626e-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.112e+00  2.629e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.33
Ra Dec: 226.821 17.352
Photon Index (Free Index): 2.46 +/- 1.02
Photon Flux (Free Index): 1.31e-08 +/- 1.68e-08
Energy Flux (Free Index): 9.68e-06 +/- 1.12e-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/69015/cmap_HighResolution_498528001_498787201_4FGL_J1507.2+1721_daily_bin1000.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.39e-05', comment='SUCCESS', photon_flux='5.13e-09', energy_flux2='9.68e-06', photon_flux_error='6.34e-09', dlogl='5.11e-01', energy_flux='1.72e-05', photon_flux2='1.31e-08', job_status='DONE', time_completed='2021-09-11 01:11:46.589513', photon_index_error2='1.02', photon_index2='2.46', ts='1.30', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='2.50e-08', energy_flux_error2='1.12e-05', EG='1.11', time_epoch_completed='1631347906.59', return_code='0', job_id='69015', GAL2='1.02', EG2='1.11', return_code2='0', energy_flux_error='2.13e-05', photon_flux_error2='1.68e-08', ts2='2.33', photon_index='1.53' WHERE bin_id='1000' AND source_name='4FGL J1507.2+1721' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 01:11:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0124>
Subject: Job 69015: <4FGL_J1507.2+1721_daily_bin1000> in cluster <slac> Done

Job <4FGL_J1507.2+1721_daily_bin1000> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep 11 00:57:02 2021
Job was executed on host(s) <bullet0124>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 00:57:04 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:57:04 2021
Terminated at Sat Sep 11 01:11:47 2021
Results reported at Sat Sep 11 01:11:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1507.2+1721_daily_bin1000 226.821 17.3519 498528001 498787201 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 :                                   659.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             258.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   882 sec.
    Turnaround time :                            885 sec.

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

