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


Performing analysis on: 4FGL_J1507.2+1721_daily_bin1557
RA = 226.821, Dec = 17.3519
tmin = 642902401, tmax = 643161601
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='72285', job_status='RUN', time_executed='2021-09-11 01:06:39.435351', time_epoch_executed='1631347599.44' WHERE source_name='4FGL J1507.2+1721' and cadence='daily' and bin_id='1557'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/72285

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/72285/ft1_4FGL_J1507.2+1721_daily_bin1557.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/72285/ft2_4FGL_J1507.2+1721_daily_bin1557.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/72285/ft1_4FGL_J1507.2+1721_daily_bin1557.fits outfile=/scratch/kocevski/72285/ft1_filteredMKT_4FGL_J1507.2+1721_daily_bin1557.fits ra=226.821 dec=17.3519 rad=12.0 tmin=642902401.0 tmax=643161601.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.50
user 3.28
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/72285/ft1_filtered_4FGL_J1507.2+1721_daily_bin1557.fits" evtable="EVENTS" scfile=/scratch/kocevski/72285/ft2_4FGL_J1507.2+1721_daily_bin1557.fits sctable="SC_DATA" outfile=/scratch/kocevski/72285/ltcube_642902401_643161601_4FGL_J1507.2+1721_daily_bin1557.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/72285/ft2_4FGL_J1507.2+1721_daily_bin1557.fits
.....................!
real 12.34
user 11.94
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/72285/ft1_filtered_4FGL_J1507.2+1721_daily_bin1557.fits evtable="EVENTS" scfile=/scratch/kocevski/72285/ft2_4FGL_J1507.2+1721_daily_bin1557.fits sctable="SC_DATA" expcube=/scratch/kocevski/72285/ltcube_642902401_643161601_4FGL_J1507.2+1721_daily_bin1557.fits outfile=/scratch/kocevski/72285/expmap_642902401_643161601_4FGL_J1507.2+1721_daily_bin1557.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/72285/ltcube_642902401_643161601_4FGL_J1507.2+1721_daily_bin1557.fits
.....................!
real 191.24
user 186.04
sys 4.74

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/72285/ft1_filtered_4FGL_J1507.2+1721_daily_bin1557.fits scfile=/scratch/kocevski/72285/ft2_4FGL_J1507.2+1721_daily_bin1557.fits outfile=/scratch/kocevski/72285/cmap_642902401_643161601_4FGL_J1507.2+1721_daily_bin1557.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/72285/ft1_filtered_4FGL_J1507.2+1721_daily_bin1557.fits scfile=/scratch/kocevski/72285/ft2_4FGL_J1507.2+1721_daily_bin1557.fits outfile=/scratch/kocevski/72285/cmap_HighResolution_642902401_643161601_4FGL_J1507.2+1721_daily_bin1557.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .22670       1.0000         .10000E-03   10000.    
     2 'norm      '    6.3106       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    3.4302       1.0000         .10000E-03   10000.    
     5 'norm      '    3.1201       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.522       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.2155       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10899E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .20339E-02   1.0000         .10000E-03   10000.    
    12 'norm      '    .13676       1.0000         .10000E-03   10000.    
    13 'norm      '    14.531       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10275E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    63.479       1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.6016       1.0000         .10000E-03   10000.    
    19 'norm      '    1.6161       1.0000         .10000E-03   10000.    
    20 'Prefactor '    45.380       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1939       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .86651       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=   6736.870     FROM MIGRAD    STATUS=CONVERGED    469 CALLS     2421 TOTAL
                     EDM=   .65E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .22811        5.4918       -.17376E-05    .14656E-03
   2  norm          6.3108        2.6618       -.71075E-07    .16642E-03
   3  Prefactor     .10000E-03    2.2011        .35357E-07** at limit **
   4  norm          3.4305        2.4664       -.17221E-06   -.11554E-03
   5  norm          3.1207        3.4221        .30858E-06   -.24504E-03
   6  Prefactor     .10000E-03    25.551        .38527E-05** at limit **
   7  Prefactor     11.492        20.792       -.15284E-04   -.87276E-05
   8  Prefactor     3.2098        11.057       -.94072E-06   -.66258E-05
   9  Prefactor     .10000E-03    24.216       -.14271E-04** at limit **
  10  Prefactor     .10000E-03    63.918       -.67239E-04** at limit **
  11  Prefactor     .10014E-03    4.7014       -.22079E-05** at limit **
  12  norm          .13708        .20325        .95507E-07   -.59022E-03
  13  norm          14.527        9.7203       -.33376E-07   -.16388E-04
  14  norm          .10000E-03    19.588        .65279E-05** at limit **
  15  Prefactor     .10000E-03    50.301        .63590E-04** at limit **
  16  Prefactor     .10000E-03    3.8761        .12426E-06** at limit **
  17  Prefactor     63.479        36.391        .19170E-07   -.12109E-04
  18  Prefactor     5.5831        32.689       -.35783E-04   -.45005E-04
  19  norm          1.6158        1.5780       -.55907E-07    .15978E-03
  20  Prefactor     45.388        36.455        .91230E-05    .61952E-04
  21  Normalizat    1.1935        .20439        .23646E-05    .29417E-03
  22  Prefactor     .86672        .12709        .70844E-06    .55139E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.228108
  norm       = 6.31078
  Prefactor  = 0.0001
  norm       = 3.43053
  norm       = 3.12072
  Prefactor  = 0.0001
  Prefactor  = 11.492
  Prefactor  = 3.20983
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100138
  norm       = 0.137081
  norm       = 14.5271
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 63.4794
  Prefactor  = 5.58314
  norm       = 1.61583
  Prefactor  = 45.3877
  Normalizat = 1.19348
  Prefactor  = 0.866715
 **********
 **   18 **HESSE 
 **********

 FCN=   6736.870     FROM HESSE     STATUS=OK           346 CALLS     2767 TOTAL
                     EDM=   .62E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .22811        42.005        .36865E-02   -1.5612    
   2  norm          6.3108        2.6632        .84754E-04   -1.5205    
   3  Prefactor     .10000E-03    2.2121        .11880E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.4305        2.4617        .10547E-03   -1.5338    
   5  norm          3.1207        3.4132        .15409E-03   -1.5355    
   6  Prefactor     .10000E-03    25.979        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     11.492        20.688        .11802E-03   -1.5030    
   8  Prefactor     3.2098        11.038        .22592E-03   -1.5350    
   9  Prefactor     .10000E-03    24.457        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    64.190        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10014E-03    25.334        .34336E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .13708        .19337        .40291E-04   -1.5634    
  13  norm          14.527        9.6519        .10507E-03   -1.4945    
  14  norm          .10000E-03    19.593        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    50.401        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    3.9021        .15778E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     63.479        36.525        .50367E-04   -1.4113    
  18  Prefactor     5.5831        32.802        .16974E-03   -1.5235    
  19  norm          1.6158        1.5833        .98922E-04   -1.5454    
  20  Prefactor     45.388        36.385        .59517E-04   -1.4360    
  21  Normalizat    1.1935        .24531        .27520E-03   -.86805    
  22  Prefactor     .86672        .15324        .20345E-03   -.97314    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.21334e-09
Minuit parameter uncertainties:
  1  6.19389
  2  2.66322
  3  1.72088e-06
  4  2.46173
  5  3.41344
  6  4.61305e-05
  7  20.7005
  8  11.0453
  9  8.57671e-05
  10  0.00034537
  11  0.00373546
  12  0.193369
  13  9.65293
  14  2.60147e-06
  15  0.000465168
  16  1.23706e-05
  17  36.538
  18  27.0878
  19  1.58339
  20  36.4027
  21  0.245546
  22  0.15332
Done.

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

Extracting fit parameters...

4FGL J1507.2+1721
   Spectrum: LogParabola
219         norm:  1.000e-04  2.601e-06  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.667e-01  1.533e-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.193e+00  2.455e-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.72e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.77e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/72285/likelihoodResults_642902401_643161601_4FGL_J1507.2+1721_daily_bin1557.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) = 6736.8707078
delta logL = -0.000243034048253

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6736.87046878
delta logL = -4.01678516937e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10361E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.9060       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1935       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86671       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=   6736.870     FROM MIGRAD    STATUS=CONVERGED    110 CALLS      300 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    121.54        .18142E-01** at limit **
   2  alpha         1.7084        2.8551        .50000        .82696E-07
   3  Normalizat    1.1935        .12376E-01    .27520E-03    .46125E-03
   4  Prefactor     .86671        .79775E-02    .20345E-03    .61531E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  alpha      = 1.70841
  Normalizat = 1.19348
  Prefactor  = 0.866714
 **********
 **   18 **HESSE 
 **********

 FCN=   6736.870     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      329 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    632.16        .35618E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.7084        3.9934        .50000       -.32218    
   3  Normalizat    1.1935        .29289E-01    .55040E-04   -.86804    
   4  Prefactor     .86671        .18880E-01    .40689E-04   -.97314    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.13348e-08
Minuit parameter uncertainties:
  1  0.00183379
  2  2857.44
  3  0.0292895
  4  0.0188803
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/72285': 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) = 6736.87046474
delta logL = 2.33549144468e-08

Extracting fit parameters...

4FGL J1507.2+1721
   Spectrum: LogParabola
219         norm:  1.000e-04  1.834e-03  1.000e-04  1.000e+04 ( 1.000e-14)
220        alpha:  1.708e+00  2.857e+03  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.667e-01  1.888e-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:  1.193e+00  2.929e-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/72285/cmap_HighResolution_642902401_643161601_4FGL_J1507.2+1721_daily_bin1557.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.77e-05', job_status='DONE', photon_flux_upper_limit='1.72e-08', time_completed='2021-09-11 01:16:46.762760', job_id='72285', GAL2='0.87', fit_tolerance='1e-08', EG2='1.19', EG='1.19', time_epoch_completed='1631348206.76', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='2.34e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.53' WHERE bin_id='1557' AND source_name='4FGL J1507.2+1721' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 01:16:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0225>
Subject: Job 72285: <4FGL_J1507.2+1721_daily_bin1557> in cluster <slac> Done

Job <4FGL_J1507.2+1721_daily_bin1557> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep 11 01:06:22 2021
Job was executed on host(s) <bullet0225>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 01:06:24 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 11 01:06:24 2021
Terminated at Sat Sep 11 01:16:47 2021
Results reported at Sat Sep 11 01:16:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1507.2+1721_daily_bin1557 226.821 17.3519 642902401 643161601 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 :                                   601.40 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             299.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   623 sec.
    Turnaround time :                            625 sec.

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

