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


Performing analysis on: 4FGL_J1507.2+1721_daily_bin784
RA = 226.821, Dec = 17.3519
tmin = 442540801, tmax = 442800001
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='68688', job_status='RUN', time_executed='2021-09-11 00:56:52.205252', time_epoch_executed='1631347012.21' WHERE source_name='4FGL J1507.2+1721' and cadence='daily' and bin_id='784'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/68688

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/68688/ft1_4FGL_J1507.2+1721_daily_bin784.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/68688/ft2_4FGL_J1507.2+1721_daily_bin784.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/68688/ft1_4FGL_J1507.2+1721_daily_bin784.fits outfile=/scratch/kocevski/68688/ft1_filteredMKT_4FGL_J1507.2+1721_daily_bin784.fits ra=226.821 dec=17.3519 rad=12.0 tmin=442540801.0 tmax=442800001.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.35
user 3.14
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/68688/ft2_4FGL_J1507.2+1721_daily_bin784.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/68688/ft1_filteredMKT_4FGL_J1507.2+1721_daily_bin784.fits evtable="EVENTS" outfile="/scratch/kocevski/68688/ft1_filtered_4FGL_J1507.2+1721_daily_bin784.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.51
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/68688/ft1_filtered_4FGL_J1507.2+1721_daily_bin784.fits" evtable="EVENTS" scfile=/scratch/kocevski/68688/ft2_4FGL_J1507.2+1721_daily_bin784.fits sctable="SC_DATA" outfile=/scratch/kocevski/68688/ltcube_442540801_442800001_4FGL_J1507.2+1721_daily_bin784.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/68688/ft2_4FGL_J1507.2+1721_daily_bin784.fits
.....................!
real 11.64
user 11.26
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/68688/ft1_filtered_4FGL_J1507.2+1721_daily_bin784.fits evtable="EVENTS" scfile=/scratch/kocevski/68688/ft2_4FGL_J1507.2+1721_daily_bin784.fits sctable="SC_DATA" expcube=/scratch/kocevski/68688/ltcube_442540801_442800001_4FGL_J1507.2+1721_daily_bin784.fits outfile=/scratch/kocevski/68688/expmap_442540801_442800001_4FGL_J1507.2+1721_daily_bin784.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/68688/ltcube_442540801_442800001_4FGL_J1507.2+1721_daily_bin784.fits
.....................!
real 189.55
user 185.12
sys 4.10

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/68688/ft1_filtered_4FGL_J1507.2+1721_daily_bin784.fits scfile=/scratch/kocevski/68688/ft2_4FGL_J1507.2+1721_daily_bin784.fits outfile=/scratch/kocevski/68688/cmap_442540801_442800001_4FGL_J1507.2+1721_daily_bin784.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.52
user 0.38
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.1392       1.0000         .10000E-03   10000.    
     2 'norm      '    14.073       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    2.5891       1.0000         .10000E-03   10000.    
     5 'norm      '    65.926       1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.207       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.7189       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    14.201       1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.906       1.0000         .10000E-03   10000.    
    12 'norm      '    .60636       1.0000         .10000E-03   10000.    
    13 'norm      '    3.9656       1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .55644       1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.1680       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .96804       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .97013       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=   7439.937     FROM MIGRAD    STATUS=CONVERGED    485 CALLS     2084 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.1393        6.3178        .15012E-05    .65443E-04
   2  norm          14.073        3.9908        .18103E-07    .37373E-04
   3  Prefactor     .10000E-03    3.4490        .55343E-08** at limit **
   4  norm          2.5891        2.1761        .25287E-07   -.34314E-04
   5  norm          65.926        10.183        .21313E-07   -.30422E-04
   6  Prefactor     11.206        13.872       -.22270E-06   -.61798E-05
   7  Prefactor     .10000E-03    10.981       -.15033E-06** at limit **
   8  Prefactor     3.7178        10.288        .78112E-05   -.68928E-03
   9  Prefactor     .10000E-03    5.6844       -.87461E-07** at limit **
  10  Prefactor     14.197        25.352       -.81743E-06   -.15531E-04
  11  Prefactor     12.906        11.251        .75852E-07   -.12018E-04
  12  norm          .60635        .19628       -.88504E-08   -.40207E-03
  13  norm          3.9660        6.4475        .53837E-06    .72054E-04
  14  norm          .10004E-03    24.956       -.86331E-05** at limit **
  15  Prefactor     .10001E-03    122.93       -.43594E-05** at limit **
  16  Prefactor     .57576        5.3159       -.46494E-06    .10126E-03
  17  Prefactor     7.1701        23.233        .50063E-06   -.22893E-04
  18  Prefactor     .10002E-03    32.291        .73513E-05** at limit **
  19  norm          .10000E-03    1.2532        .36497E-07** at limit **
  20  Prefactor     .10000E-03    21.690        .30666E-05** at limit **
  21  Normalizat    .96809        .20709       -.75300E-06   -.33396E-04
  22  Prefactor     .97006        .12728       -.30436E-06   -.36497E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.13929
  norm       = 14.0727
  Prefactor  = 0.0001
  norm       = 2.58907
  norm       = 65.9263
  Prefactor  = 11.2055
  Prefactor  = 0.0001
  Prefactor  = 3.71778
  Prefactor  = 0.0001
  Prefactor  = 14.1967
  Prefactor  = 12.9059
  norm       = 0.606347
  norm       = 3.96598
  norm       = 0.000100035
  Prefactor  = 0.000100006
  Prefactor  = 0.575758
  Prefactor  = 7.17014
  Prefactor  = 0.000100024
  norm       = 0.0001
  Prefactor  = 0.000100004
  Normalizat = 0.968086
  Prefactor  = 0.970063
 **********
 **   18 **HESSE 
 **********

 FCN=   7439.937     FROM HESSE     STATUS=OK           350 CALLS     2434 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.1393        6.3021        .28182E-03   -1.5415    
   2  norm          14.073        3.9909        .89326E-04   -1.4958    
   3  Prefactor     .10000E-03    3.4844        .15622E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.5891        2.1772        .11286E-03   -1.5386    
   5  norm          65.926        10.198        .49429E-04   -1.4082    
   6  Prefactor     11.206        13.874        .11967E-03   -1.5038    
   7  Prefactor     .10000E-03    11.015        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.7178        10.919        .10470E-02   -1.5322    
   9  Prefactor     .10000E-03    5.6871        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     14.197        25.350        .10629E-03   -1.4954    
  11  Prefactor     12.906        11.263        .11150E-03   -1.4989    
  12  norm          .60635        .19610        .20731E-04   -1.5552    
  13  norm          3.9660        6.4468        .20255E-03   -1.5310    
  14  norm          .10004E-03    27.545        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10001E-03    126.88        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .57576        15.184        .37909E-02   -1.5556    
  17  Prefactor     7.1701        23.249        .14982E-03   -1.5172    
  18  Prefactor     .10002E-03    34.210        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    1.2704        .94262E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    22.038        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .96809        .24889        .31880E-03   -.94107    
  22  Prefactor     .97006        .15386        .20287E-03   -.93734    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.98201e-09
Minuit parameter uncertainties:
  1  6.30407
  2  3.99094
  3  1.28895e-05
  4  2.17722
  5  10.1981
  6  13.8778
  7  2.0973e-05
  8  10.9251
  9  8.16708e-06
  10  25.3696
  11  11.2646
  12  0.196096
  13  6.44791
  14  0.0019661
  15  0.00169911
  16  5.91459
  17  23.2781
  18  0.00182462
  19  7.08809e-07
  20  0.000609283
  21  0.249188
  22  0.153929
Done.

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

Extracting fit parameters...

4FGL J1507.2+1721
   Spectrum: LogParabola
219         norm:  1.000e-04  1.966e-03  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:  9.701e-01  1.539e-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.681e-01  2.492e-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.83e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.15e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/68688/likelihoodResults_442540801_442800001_4FGL_J1507.2+1721_daily_bin784.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) = 7439.93723695
delta logL = -0.000172834177647

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7439.93706524
delta logL = -1.1242536857e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6115       1.0000          .0000       5.0000    
     3 'Normalizat'    .96809       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97006       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=   7439.937     FROM MIGRAD    STATUS=CONVERGED    105 CALLS      294 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10006E-03    70.043        .18142E-01** at limit **
   2  alpha         2.0286        3.8966        .50000        .30013E-06
   3  Normalizat    .96809        .74279E-02    .31880E-03    .32828E-02
   4  Prefactor     .97007        .47622E-02    .20287E-03    .51740E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.00010006
  alpha      = 2.02858
  Normalizat = 0.968094
  Prefactor  = 0.970068
 **********
 **   18 **HESSE 
 **********

 FCN=   7439.937     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      323 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10006E-03    375.80        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.0286        3.9476        .50000       -.18970    
   3  Normalizat    .96809        .17272E-01    .63759E-04   -.94107    
   4  Prefactor     .97007        .11073E-01    .40575E-04   -.93734    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.52746e-09
Minuit parameter uncertainties:
  1  0.00952996
  2  982.344
  3  0.0172718
  4  0.0110733
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/68688': 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): 102
logL (Free Index) = 7439.93706386
delta logL = 2.55108716374e-07

Extracting fit parameters...

4FGL J1507.2+1721
   Spectrum: LogParabola
219         norm:  1.001e-04  9.530e-03  1.000e-04  1.000e+04 ( 1.000e-14)
220        alpha:  2.029e+00  9.823e+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:  9.701e-01  1.107e-02  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.681e-01  1.727e-02  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/68688/cmap_HighResolution_442540801_442800001_4FGL_J1507.2+1721_daily_bin784.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.15e-05', job_status='DONE', photon_flux_upper_limit='1.83e-08', time_completed='2021-09-11 01:07:05.037373', job_id='68688', GAL2='0.97', fit_tolerance='1e-08', EG2='0.97', EG='0.97', time_epoch_completed='1631347625.04', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='2.55e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.53' WHERE bin_id='784' AND source_name='4FGL J1507.2+1721' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 01:07:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0304>
Subject: Job 68688: <4FGL_J1507.2+1721_daily_bin784> in cluster <slac> Done

Job <4FGL_J1507.2+1721_daily_bin784> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep 11 00:56:32 2021
Job was executed on host(s) <bullet0304>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 00:56:34 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:56:34 2021
Terminated at Sat Sep 11 01:07:05 2021
Results reported at Sat Sep 11 01:07:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1507.2+1721_daily_bin784 226.821 17.3519 442540801 442800001 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 :                                   598.38 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             334.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   631 sec.
    Turnaround time :                            633 sec.

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

