/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 56 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).

/nfs/farm/lsb_spool2/kocevski/1640678840.554089: line 8: 24660 Quit                    (core dumped) /nfDone.


Performing analysis on: 4FGL_J1507.2+1721_daily_bin1631
RA = 226.821, Dec = 17.3519
tmin = 662083201, tmax = 662342401
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='554083', job_status='RUN', time_executed='2021-12-28 00:11:51.325933', time_epoch_executed='1640679111.33' WHERE source_name='4FGL J1507.2+1721' and cadence='daily' and bin_id='1631'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/554083

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/554083/ft1_4FGL_J1507.2+1721_daily_bin1631.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/554083/ft2_4FGL_J1507.2+1721_daily_bin1631.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/554083/ft1_4FGL_J1507.2+1721_daily_bin1631.fits outfile=/scratch/kocevski/554083/ft1_filteredMKT_4FGL_J1507.2+1721_daily_bin1631.fits ra=226.821 dec=17.3519 rad=12.0 tmin=662083201.0 tmax=662342401.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.86
user 3.64
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/554083/ft1_filtered_4FGL_J1507.2+1721_daily_bin1631.fits evtable="EVENTS" scfile=/scratch/kocevski/554083/ft2_4FGL_J1507.2+1721_daily_bin1631.fits sctable="SC_DATA" expcube=/scratch/kocevski/554083/ltcube_662083201_662342401_4FGL_J1507.2+1721_daily_bin1631.fits outfile=/scratch/kocevski/554083/expmap_662083201_662342401_4FGL_J1507.2+1721_daily_bin1631.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/554083/ltcube_662083201_662342401_4FGL_J1507.2+1721_daily_bin1631.fits
.....................!
real 190.88
user 185.78
sys 4.79

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/554083/ft1_filtered_4FGL_J1507.2+1721_daily_bin1631.fits scfile=/scratch/kocevski/554083/ft2_4FGL_J1507.2+1721_daily_bin1631.fits outfile=/scratch/kocevski/554083/cmap_662083201_662342401_4FGL_J1507.2+1721_daily_bin1631.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/554083/ft1_filtered_4FGL_J1507.2+1721_daily_bin1631.fits scfile=/scratch/kocevski/554083/ft2_4FGL_J1507.2+1721_daily_bin1631.fits outfile=/scratch/kocevski/554083/cmap_HighResolution_662083201_662342401_4FGL_J1507.2+1721_daily_bin1631.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.3524       1.0000         .10000E-03   10000.    
     2 'norm      '    1.6978       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.2680       1.0000         .10000E-03   10000.    
     4 'norm      '    .10047E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.6497       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.7885       1.0000         .10000E-03   10000.    
     8 'Prefactor '    19.021       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .39683E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.8675       1.0000         .10000E-03   10000.    
    12 'norm      '    .11490       1.0000         .10000E-03   10000.    
    13 'norm      '    2.0388       1.0000         .10000E-03   10000.    
    14 'norm      '    19.623       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .14283E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    28.319       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    8.4596       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .46097E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .72933       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1595       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=   9474.087     FROM MIGRAD    STATUS=CONVERGED    882 CALLS     2485 TOTAL
                     EDM=   .77E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.3582        5.4067        .18805E-02   -.17306E-03
   2  norm          1.6979        1.5170        .11105E-03    .10503E-03
   3  Prefactor     1.2638        4.3811        .34904E-03    .30688E-03
   4  norm          .10000E-03    1.2852        .21050E-03** at limit **
   5  norm          .10000E-03    1.7622        .12479E-02** at limit **
   6  Prefactor     6.6561        16.589        .15561E-03    .34921E-04
   7  Prefactor     4.7873        16.788        .18386E-03   -.66658E-04
   8  Prefactor     19.041        13.477        .91836E-04    .34093E-03
   9  Prefactor     .10000E-03    11.952        .18142E-02** at limit **
  10  Prefactor     .10011E-03    25.915        .13949    ** at limit **
  11  Prefactor     8.8679        5.9791        .13460E-03    .15372E-04
  12  norm          .11483        .98233E-01    .29366E-03    .59307E-02
  13  norm          2.0388        3.1110        .20824E-03   -.95869E-04
  14  norm          19.625        20.529        .90416E-04    .15843E-04
  15  Prefactor     .10002E-03    66.338        .36285E-03** at limit **
  16  Prefactor     .10000E-03    2.5098        .14972E-02** at limit **
  17  Prefactor     28.364        23.774        .75284E-04    .93626E-05
  18  Prefactor     .10000E-03    5.6719        .18142E-02** at limit **
  19  norm          8.4604        2.6824        .87046E-04   -.44667E-03
  20  Prefactor     .10047E-03    83.177        .58941E-02** at limit **
  21  Normalizat    .72955        .20598        .33318E-03    .10878E-03
  22  Prefactor     1.1593        .13286        .17915E-03    .68351E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.35822
  norm       = 1.69789
  Prefactor  = 1.26384
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 6.65613
  Prefactor  = 4.78732
  Prefactor  = 19.0414
  Prefactor  = 0.0001
  Prefactor  = 0.000100108
  Prefactor  = 8.86792
  norm       = 0.114828
  norm       = 2.03882
  norm       = 19.6251
  Prefactor  = 0.000100021
  Prefactor  = 0.0001
  Prefactor  = 28.3642
  Prefactor  = 0.0001
  norm       = 8.46043
  Prefactor  = 0.000100466
  Normalizat = 0.729551
  Prefactor  = 1.15934
 **********
 **   18 **HESSE 
 **********

 FCN=   9474.087     FROM HESSE     STATUS=OK           334 CALLS     2819 TOTAL
                     EDM=   .78E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.3582        5.3910        .75220E-04   -1.5475    
   2  norm          1.6979        1.5169        .44421E-05   -1.5447    
   3  Prefactor     1.2638        4.3699        .13962E-04   -1.5483    
   4  norm          .10000E-03    1.2852        .42099E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.7629        .24958E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.6561        16.586        .62245E-05   -1.5192    
   7  Prefactor     4.7873        16.784        .73542E-05   -1.5270    
   8  Prefactor     19.041        13.475        .36734E-05   -1.4835    
   9  Prefactor     .10000E-03    11.953        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10011E-03    25.748        .14015       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     8.8679        5.9790        .53840E-05   -1.5112    
  12  norm          .11483        .98197E-01    .11746E-04   -1.5640    
  13  norm          2.0388        3.1110        .83294E-05   -1.5422    
  14  norm          19.625        20.531        .36166E-05   -1.4822    
  15  Prefactor     .10002E-03    66.342        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.5106        .29944E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     28.364        23.763        .30114E-05   -1.4642    
  18  Prefactor     .10000E-03    5.6721        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          8.4604        2.6820        .34818E-05   -1.5126    
  20  Prefactor     .10047E-03    84.687        .11788E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .72955        .20607        .13327E-04   -1.0274    
  22  Prefactor     1.1593        .13296        .35831E-04   -.87592    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.77047e-09
Minuit parameter uncertainties:
  1  5.3929
  2  1.51698
  3  4.37098
  4  4.93638e-05
  5  5.59992e-05
  6  16.5974
  7  16.8006
  8  13.4774
  9  0.000145244
  10  0.00333685
  11  5.97939
  12  0.0981973
  13  3.11123
  14  20.5383
  15  0.00238474
  16  5.11476e-05
  17  23.7713
  18  7.04384e-05
  19  2.68206
  20  0.0125833
  21  0.206291
  22  0.133002
Done.

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

Extracting fit parameters...

4FGL J1507.2+1721
   Spectrum: LogParabola
219         norm:  1.963e+01  2.054e+01  1.000e-04  1.000e+04 ( 1.000e-14)
220        alpha:  1.534e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
221         beta:  2.414e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
222           Eb:  3.634e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
465    Prefactor:  1.159e+00  1.330e-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:  7.296e-01  2.063e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.19
Ra Dec: 226.821 17.352
Photon Index (Fixed Index): 1.53 +/- 0.00
Photon Flux (Fixed Index): 3.31e-09 +/- 3.46e-09
Energy Flux (Fixed Index): 1.11e-05 +/- 1.16e-05

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) = 9474.07996141
delta logL = 0.0066084693899

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9474.07946063
delta logL = 0.00710925771273

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    20.283       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.4221       1.0000          .0000       5.0000    
     3 'Normalizat'    .72943       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1595       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=   9474.079     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      268 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          20.286        21.876        .88933E-04    .15596E-04
   2  alpha         1.4220        .91423        .31192E-01    .95330E-04
   3  Normalizat    .72947        .19732        .33319E-03    .81889E-06
   4  Prefactor     1.1595        .13190        .17914E-03   -.16881E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 20.2859
  alpha      = 1.42196
  Normalizat = 0.72947
  Prefactor  = 1.1595
 **********
 **   18 **HESSE 
 **********

 FCN=   9474.079     FROM HESSE     STATUS=OK            25 CALLS      293 TOTAL
                     EDM=   .14E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          20.286        21.694        .35573E-05   -1.4807    
   2  alpha         1.4220        .90772        .62383E-02   -.44584    
   3  Normalizat    .72947        .19750        .13328E-04   -1.0274    
   4  Prefactor     1.1595        .13202        .71657E-05   -.87587    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.38504e-12
Minuit parameter uncertainties:
  1  21.7025
  2  0.934203
  3  0.197691
  4  0.132059
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/554083': 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) = 9474.07946056
delta logL = 0.00710932081165

Extracting fit parameters...

4FGL J1507.2+1721
   Spectrum: LogParabola
219         norm:  2.029e+01  2.170e+01  1.000e-04  1.000e+04 ( 1.000e-14)
220        alpha:  1.422e+00  9.342e-01  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.160e+00  1.321e-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:  7.295e-01  1.977e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.20
Ra Dec: 226.821 17.352
Photon Index (Free Index): 1.42 +/- 0.93
Photon Flux (Free Index): 3.10e-09 +/- 3.61e-09
Energy Flux (Free Index): 1.27e-05 +/- 1.97e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/554083/cmap_HighResolution_662083201_662342401_4FGL_J1507.2+1721_daily_bin1631.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.31e-09', energy_flux2='1.27e-05', photon_flux_error='3.46e-09', dlogl='7.11e-03', energy_flux='1.11e-05', photon_flux2='3.10e-09', job_status='DONE', time_completed='2021-12-28 00:22:22.072017', photon_index_error2='0.93', photon_index2='1.42', ts='4.19', fit_tolerance='1e-08', GAL='1.16', photon_index_error='0.00', energy_flux_error2='1.97e-05', EG='0.73', time_epoch_completed='1640679742.07', return_code='0', job_id='554083', GAL2='1.16', EG2='0.73', return_code2='0', energy_flux_error='1.16e-05', photon_flux_error2='3.61e-09', ts2='4.20', photon_index='1.53' WHERE bin_id='1631' AND source_name='4FGL J1507.2+1721' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec 28 00:22:22 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0108>
Subject: Job 554083: <4FGL_J1507.2+1721_daily_bin1631> in cluster <slac> Done

Job <4FGL_J1507.2+1721_daily_bin1631> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Tue Dec 28 00:07:19 2021
Job was executed on host(s) <bullet0108>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec 28 00:07:22 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec 28 00:07:22 2021
Terminated at Tue Dec 28 00:22:22 2021
Results reported at Tue Dec 28 00:22:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1507.2+1721_daily_bin1631 226.821 17.3519 662083201 662342401 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 :                                   633.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             266.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   900 sec.
    Turnaround time :                            903 sec.

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

