/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 74 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 = 7472
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1507.2+1721_daily_bin208
RA = 226.821, Dec = 17.3519
tmin = 293241601, tmax = 293500801
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='63835', job_status='RUN', time_executed='2021-09-11 00:47:51.875520', time_epoch_executed='1631346471.88' WHERE source_name='4FGL J1507.2+1721' and cadence='daily' and bin_id='208'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/63835

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/63835/ft1_4FGL_J1507.2+1721_daily_bin208.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/63835/ft2_4FGL_J1507.2+1721_daily_bin208.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/63835/ft1_4FGL_J1507.2+1721_daily_bin208.fits outfile=/scratch/kocevski/63835/ft1_filteredMKT_4FGL_J1507.2+1721_daily_bin208.fits ra=226.821 dec=17.3519 rad=12.0 tmin=293241601.0 tmax=293500801.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.60
user 3.34
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/63835/ft1_filtered_4FGL_J1507.2+1721_daily_bin208.fits evtable="EVENTS" scfile=/scratch/kocevski/63835/ft2_4FGL_J1507.2+1721_daily_bin208.fits sctable="SC_DATA" expcube=/scratch/kocevski/63835/ltcube_293241601_293500801_4FGL_J1507.2+1721_daily_bin208.fits outfile=/scratch/kocevski/63835/expmap_293241601_293500801_4FGL_J1507.2+1721_daily_bin208.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/63835/ltcube_293241601_293500801_4FGL_J1507.2+1721_daily_bin208.fits
.....................!
real 191.45
user 185.79
sys 5.29

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/63835/ft1_filtered_4FGL_J1507.2+1721_daily_bin208.fits scfile=/scratch/kocevski/63835/ft2_4FGL_J1507.2+1721_daily_bin208.fits outfile=/scratch/kocevski/63835/cmap_293241601_293500801_4FGL_J1507.2+1721_daily_bin208.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.36
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/63835/ft1_filtered_4FGL_J1507.2+1721_daily_bin208.fits scfile=/scratch/kocevski/63835/ft2_4FGL_J1507.2+1721_daily_bin208.fits outfile=/scratch/kocevski/63835/cmap_HighResolution_293241601_293500801_4FGL_J1507.2+1721_daily_bin208.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.36
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.2656       1.0000         .10000E-03   10000.    
     2 'norm      '    8.9576       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .15625E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10766E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    23.190       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10122E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.0535       1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    15.296       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.0574       1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.7284       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    18.933       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.6411       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .75303       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=   7232.141     FROM MIGRAD    STATUS=CONVERGED    478 CALLS     2346 TOTAL
                     EDM=   .95E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.2620        8.5022        .13243E-06    .70458E-04
   2  norm          8.9574        3.7265       -.30152E-08   -.17496E-04
   3  Prefactor     .10000E-03    4.0727       -.48536E-06** at limit **
   4  norm          .10000E-03    1.0119        .25039E-07** at limit **
   5  norm          .10000E-03    5.8229        .28473E-07** at limit **
   6  Prefactor     .10000E-03    7.3296       -.27344E-06** at limit **
   7  Prefactor     .10000E-03    9.3444        .83873E-06** at limit **
   8  Prefactor     .10000E-03    17.075        .53950E-06** at limit **
   9  Prefactor     23.178        23.943       -.42280E-05   -.52241E-03
  10  Prefactor     .10000E-03    20.377       -.65969E-06** at limit **
  11  Prefactor     5.0541        8.0221        .30730E-05   -.96153E-03
  12  norm          .10000E-03    .89904E-01    .10115E-07** at limit **
  13  norm          .10000E-03    2.5367        .20118E-07** at limit **
  14  norm          .10000E-03    14.892       -.77018E-06** at limit **
  15  Prefactor     15.298        30.381        .86361E-06    .54520E-04
  16  Prefactor     2.0580        6.9859        .46342E-06   -.12799E-03
  17  Prefactor     5.7343        37.161        .52513E-05    .10843E-03
  18  Prefactor     .10000E-03    18.124        .69481E-06** at limit **
  19  norm          .10000E-03    1.1769        .10987E-07** at limit **
  20  Prefactor     18.932        32.447       -.51496E-06   -.40077E-04
  21  Normalizat    1.6410        .21986       -.21928E-06    .11702E-04
  22  Prefactor     .75305        .13007       -.17629E-06    .56991E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.26202
  norm       = 8.95743
  Prefactor  = 0.000100003
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.1784
  Prefactor  = 0.0001
  Prefactor  = 5.0541
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 15.2982
  Prefactor  = 2.05799
  Prefactor  = 5.73434
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 18.9317
  Normalizat = 1.64099
  Prefactor  = 0.753052
 **********
 **   18 **HESSE 
 **********

 FCN=   7232.141     FROM HESSE     STATUS=OK           344 CALLS     2690 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.2620        8.3309        .14881E-03   -1.5169    
   2  norm          8.9574        3.7267        .10287E-03   -1.5109    
   3  Prefactor     .10000E-03    10.583        .32265E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    1.6083        .16643E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    5.9916        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.3297        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    9.4034        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    17.456        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     23.178        25.679        .83180E-04   -1.4745    
  10  Prefactor     .10000E-03    20.375        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.0541        9.2289        .89435E-03   -1.5258    
  12  norm          .10000E-03    .51692        .49049E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    2.5460        .13227E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    14.919        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     15.298        30.421        .10241E-03   -1.4926    
  16  Prefactor     2.0580        6.9818        .28813E-03   -1.5421    
  17  Prefactor     5.7343        38.055        .16782E-03   -1.5229    
  18  Prefactor     .10000E-03    18.162        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    1.1886        .90043E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     18.932        32.516        .92048E-04   -1.4837    
  21  Normalizat    1.6410        .26636        .26942E-03   -.73890    
  22  Prefactor     .75305        .15756        .22784E-03   -1.0148    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.89913e-09
Minuit parameter uncertainties:
  1  8.33227
  2  3.72681
  3  0.000348529
  4  6.6136e-06
  5  2.34122e-07
  6  3.08641e-06
  7  8.81842e-05
  8  0.000171163
  9  25.6911
  10  2.5004e-05
  11  9.23149
  12  2.66106e-06
  13  7.75043e-07
  14  0.000100854
  15  30.4515
  16  6.98455
  17  29.5716
  18  9.02746e-05
  19  9.92243e-08
  20  32.5466
  21  0.266592
  22  0.157658
Done.

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

Extracting fit parameters...

4FGL J1507.2+1721
   Spectrum: LogParabola
219         norm:  1.000e-04  1.009e-04  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:  7.531e-01  1.577e-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.641e+00  2.666e-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.47e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.94e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/63835/likelihoodResults_293241601_293500801_4FGL_J1507.2+1721_daily_bin208.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) = 7232.14176396
delta logL = -0.000310147815981

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7232.14145746
delta logL = -3.65331015928e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.0710       1.0000          .0000       5.0000    
     3 'Normalizat'    1.6410       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75304       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=   7232.141     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      229 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    7.0948        .90712E-02** at limit **
   2  alpha         3.0592        3.6544        .42598        .79886E-05
   3  Normalizat    1.6410        .21275        .60923E-01   -.10021E-02
   4  Prefactor     .75305        .12862        .43103E-01   -.13752E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100003
  alpha      = 3.05922
  Normalizat = 1.64099
  Prefactor  = 0.753049
 **********
 **   18 **HESSE 
 **********

 FCN=   7232.141     FROM HESSE     STATUS=OK            29 CALLS      258 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    7.2165        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         3.0592        3.6569        .50000        .22560    
   3  Normalizat    1.6410        .25741        .26942E-03   -.73890    
   4  Prefactor     .75305        .15563        .22784E-03   -1.0148    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.95496e-09
Minuit parameter uncertainties:
  1  0.000309717
  2  2.44527
  3  0.257618
  4  0.15572
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/63835': 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) = 7232.14145742
delta logL = -3.60378544428e-06

Extracting fit parameters...

4FGL J1507.2+1721
   Spectrum: LogParabola
219         norm:  1.000e-04  3.097e-04  1.000e-04  1.000e+04 ( 1.000e-14)
220        alpha:  3.059e+00  2.445e+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:  7.530e-01  1.557e-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.641e+00  2.576e-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/63835/cmap_HighResolution_293241601_293500801_4FGL_J1507.2+1721_daily_bin208.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.94e-05', job_status='DONE', photon_flux_upper_limit='1.47e-08', time_completed='2021-09-11 00:57:55.909888', job_id='63835', GAL2='0.75', fit_tolerance='1e-08', EG2='1.64', EG='1.64', time_epoch_completed='1631347075.91', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.75', dlogl='-3.60e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.53' WHERE bin_id='208' AND source_name='4FGL J1507.2+1721' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 00:57:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0179>
Subject: Job 63835: <4FGL_J1507.2+1721_daily_bin208> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1507.2+1721_daily_bin208 226.821 17.3519 293241601 293500801 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.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             306.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   699 sec.
    Turnaround time :                            702 sec.

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

