/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 71 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 = 7388
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1507.2+1721_daily_bin169
RA = 226.821, Dec = 17.3519
tmin = 283132801, tmax = 283392001
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='63757', job_status='RUN', time_executed='2021-09-11 00:47:41.992050', time_epoch_executed='1631346461.99' WHERE source_name='4FGL J1507.2+1721' and cadence='daily' and bin_id='169'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/63757

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/63757/ft1_4FGL_J1507.2+1721_daily_bin169.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/63757/ft2_4FGL_J1507.2+1721_daily_bin169.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/63757/ft1_4FGL_J1507.2+1721_daily_bin169.fits outfile=/scratch/kocevski/63757/ft1_filteredMKT_4FGL_J1507.2+1721_daily_bin169.fits ra=226.821 dec=17.3519 rad=12.0 tmin=283132801.0 tmax=283392001.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.76
user 3.53
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/63757/ft1_filtered_4FGL_J1507.2+1721_daily_bin169.fits evtable="EVENTS" scfile=/scratch/kocevski/63757/ft2_4FGL_J1507.2+1721_daily_bin169.fits sctable="SC_DATA" expcube=/scratch/kocevski/63757/ltcube_283132801_283392001_4FGL_J1507.2+1721_daily_bin169.fits outfile=/scratch/kocevski/63757/expmap_283132801_283392001_4FGL_J1507.2+1721_daily_bin169.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/63757/ltcube_283132801_283392001_4FGL_J1507.2+1721_daily_bin169.fits
.....................!
real 191.69
user 186.77
sys 4.57

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/63757/ft1_filtered_4FGL_J1507.2+1721_daily_bin169.fits scfile=/scratch/kocevski/63757/ft2_4FGL_J1507.2+1721_daily_bin169.fits outfile=/scratch/kocevski/63757/cmap_283132801_283392001_4FGL_J1507.2+1721_daily_bin169.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/63757/ft1_filtered_4FGL_J1507.2+1721_daily_bin169.fits scfile=/scratch/kocevski/63757/ft2_4FGL_J1507.2+1721_daily_bin169.fits outfile=/scratch/kocevski/63757/cmap_HighResolution_283132801_283392001_4FGL_J1507.2+1721_daily_bin169.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/63757/ft1_filtered_4FGL_J1507.2+1721_daily_bin169.fits evtable="EVENTS" scfile=/scratch/kocevski/63757/ft2_4FGL_J1507.2+1721_daily_bin169.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/63757/Model_4FGL_J1507.2+1721_daily_bin169.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/63757/ft1_filtered_4FGL_J1507.2+1721_daily_bin169.fits.....................!
real 57.22
user 55.91
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    10.806       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10516E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    3.4962       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10325E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    48.940       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.2707       1.0000         .10000E-03   10000.    
    12 'norm      '    .23632       1.0000         .10000E-03   10000.    
    13 'norm      '    8.9590       1.0000         .10000E-03   10000.    
    14 'norm      '    .10035E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.4482       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.0080       1.0000         .10000E-03   10000.    
    17 'Prefactor '    14.130       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.7227       1.0000         .10000E-03   10000.    
    19 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1543       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0384       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=   7731.929     FROM MIGRAD    STATUS=CONVERGED    478 CALLS     2368 TOTAL
                     EDM=   .42E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.5599        .12857E-06** at limit **
   2  norm          10.806        3.6870       -.19676E-07   -.91240E-04
   3  Prefactor     .10000E-03    5.6243        .47870E-06** at limit **
   4  norm          .10000E-03    1.7257        .61281E-06** at limit **
   5  norm          3.4940        5.7487        .69454E-06   -.40801E-04
   6  Prefactor     .10000E-03    5.8435        .32015E-07** at limit **
   7  Prefactor     .10000E-03    19.816        .39583E-06** at limit **
   8  Prefactor     .10000E-03    12.472        .28352E-06** at limit **
   9  Prefactor     48.937        31.780        .10741E-06   -.21695E-04
  10  Prefactor     .10000E-03    54.486        .15531E-06** at limit **
  11  Prefactor     7.2712        7.0363       -.68182E-07    .24482E-05
  12  norm          .23622        .16332        .57398E-07    .36459E-03
  13  norm          8.9587        6.5986        .37904E-07   -.90616E-05
  14  norm          .10000E-03    12.442       -.48905E-07** at limit **
  15  Prefactor     1.3701        263.88       -.95327E-05    .35968E-05
  16  Prefactor     3.0018        10.622        .11535E-05   -.11641E-05
  17  Prefactor     14.122        35.496       -.37112E-06   -.40385E-07
  18  Prefactor     2.7243        86.484        .24268E-05    .47034E-05
  19  norm          .10000E-03    1.0329        .13411E-06** at limit **
  20  Prefactor     .10000E-03    17.264        .23618E-06** at limit **
  21  Normalizat    1.1545        .21729       -.62053E-06   -.11906E-03
  22  Prefactor     1.0384        .13330       -.11355E-05   -.78880E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 10.8062
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.49397
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 48.9368
  Prefactor  = 0.0001
  Prefactor  = 7.27116
  norm       = 0.236218
  norm       = 8.95868
  norm       = 0.0001
  Prefactor  = 1.37005
  Prefactor  = 3.00178
  Prefactor  = 14.1215
  Prefactor  = 2.72429
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.15454
  Prefactor  = 1.03843
 **********
 **   18 **HESSE 
 **********

 FCN=   7731.929     FROM HESSE     STATUS=OK           350 CALLS     2718 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.5686        .13744E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          10.806        3.6859        .95901E-04   -1.5050    
   3  Prefactor     .10000E-03    5.8054        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    3.4821        .21927E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.4940        5.7560        .21624E-03   -1.5334    
   6  Prefactor     .10000E-03    5.8456        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    20.003        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    12.626        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     48.937        31.823        .57321E-04   -1.4308    
  10  Prefactor     .10000E-03    54.790        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     7.2712        7.0342        .14875E-03   -1.5169    
  12  norm          .23622        .15861        .28194E-03   -1.5611    
  13  norm          8.9587        6.5952        .13391E-03   -1.5109    
  14  norm          .10000E-03    12.443        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.3701        269.63        .35811E-02   -1.5474    
  16  Prefactor     3.0018        10.687        .23402E-03   -1.5361    
  17  Prefactor     14.122        35.509        .10656E-03   -1.4956    
  18  Prefactor     2.7243        86.926        .24680E-03   -1.5378    
  19  norm          .10000E-03    1.0533        .87358E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    17.296        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.1545        .26386        .31539E-03   -.88020    
  22  Prefactor     1.0384        .15937        .20526E-03   -.91459    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.55004e-10
Minuit parameter uncertainties:
  1  1.85029e-06
  2  3.686
  3  7.70306e-06
  4  6.47607e-05
  5  5.7569
  6  4.74345e-06
  7  3.34688e-06
  8  2.40279e-05
  9  31.8337
  10  0.000134897
  11  7.03498
  12  0.158613
  13  6.59577
  14  4.86657e-06
  15  38.616
  16  10.6938
  17  35.5624
  18  30.8258
  19  1.90368e-06
  20  3.18608e-05
  21  0.264164
  22  0.159443
Done.

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

Extracting fit parameters...

4FGL J1507.2+1721
   Spectrum: LogParabola
219         norm:  1.000e-04  4.867e-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:  1.038e+00  1.594e-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.155e+00  2.642e-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.25e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.21e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/63757/likelihoodResults_283132801_283392001_4FGL_J1507.2+1721_daily_bin169.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) = 7731.92899589
delta logL = -0.000116053523016

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7731.92888585
delta logL = -6.00541079621e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11645E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6118       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1545       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0384       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=   7731.929     FROM MIGRAD    STATUS=CONVERGED    106 CALLS      289 TOTAL
                     EDM=   .34E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    471.55        .18142E-01** at limit **
   2  alpha         1.1902        3.8001        .16481        .20694E-09
   3  Normalizat    1.1545        .32558E-01    .31539E-03    .22817E-04
   4  Prefactor     1.0384        .20340E-01    .20526E-03    .82248E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.19023
  Normalizat = 1.15454
  Prefactor  = 1.03843
 **********
 **   18 **HESSE 
 **********

 FCN=   7731.929     FROM HESSE     STATUS=OK            23 CALLS      312 TOTAL
                     EDM=   .78E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    13.393        .31317E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.1902        3.0533        .65926E-02   -.55143    
   3  Normalizat    1.1545        .25397        .12616E-04   -.88020    
   4  Prefactor     1.0384        .15876        .82105E-05   -.91459    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.82602e-12
Minuit parameter uncertainties:
  1  1.03553e-06
  2  471.01
  3  0.254236
  4  0.158831
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/63757': 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) = 7731.92887958
delta logL = 2.57256033365e-07

Extracting fit parameters...

4FGL J1507.2+1721
   Spectrum: LogParabola
219         norm:  1.000e-04  1.036e-06  1.000e-04  1.000e+04 ( 1.000e-14)
220        alpha:  1.190e+00  4.710e+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:  1.038e+00  1.588e-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.155e+00  2.542e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/63757/cmap_HighResolution_283132801_283392001_4FGL_J1507.2+1721_daily_bin169.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.21e-05', job_status='DONE', photon_flux_upper_limit='1.25e-08', time_completed='2021-09-11 00:58:06.655639', job_id='63757', GAL2='1.04', fit_tolerance='1e-08', EG2='1.15', EG='1.15', time_epoch_completed='1631347086.66', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='2.57e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.53' WHERE bin_id='169' AND source_name='4FGL J1507.2+1721' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 00:58:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0123>
Subject: Job 63757: <4FGL_J1507.2+1721_daily_bin169> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1507.2+1721_daily_bin169 226.821 17.3519 283132801 283392001 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.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             327.91 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   716 sec.
    Turnaround time :                            718 sec.

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

