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


Performing analysis on: 4FGL_J1507.2+1721_daily_bin170
RA = 226.821, Dec = 17.3519
tmin = 283392001, tmax = 283651201
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='63759', job_status='RUN', time_executed='2021-09-11 00:47:41.679494', time_epoch_executed='1631346461.68' WHERE source_name='4FGL J1507.2+1721' and cadence='daily' and bin_id='170'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/63759

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/63759/ft1_4FGL_J1507.2+1721_daily_bin170.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/63759/ft2_4FGL_J1507.2+1721_daily_bin170.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/63759/ft1_4FGL_J1507.2+1721_daily_bin170.fits outfile=/scratch/kocevski/63759/ft1_filteredMKT_4FGL_J1507.2+1721_daily_bin170.fits ra=226.821 dec=17.3519 rad=12.0 tmin=283392001.0 tmax=283651201.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.63
user 3.39
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/63759/ft1_filtered_4FGL_J1507.2+1721_daily_bin170.fits evtable="EVENTS" scfile=/scratch/kocevski/63759/ft2_4FGL_J1507.2+1721_daily_bin170.fits sctable="SC_DATA" expcube=/scratch/kocevski/63759/ltcube_283392001_283651201_4FGL_J1507.2+1721_daily_bin170.fits outfile=/scratch/kocevski/63759/expmap_283392001_283651201_4FGL_J1507.2+1721_daily_bin170.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/63759/ltcube_283392001_283651201_4FGL_J1507.2+1721_daily_bin170.fits
.....................!
real 190.87
user 185.89
sys 4.60

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/63759/ft1_filtered_4FGL_J1507.2+1721_daily_bin170.fits scfile=/scratch/kocevski/63759/ft2_4FGL_J1507.2+1721_daily_bin170.fits outfile=/scratch/kocevski/63759/cmap_283392001_283651201_4FGL_J1507.2+1721_daily_bin170.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.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/63759/ft1_filtered_4FGL_J1507.2+1721_daily_bin170.fits scfile=/scratch/kocevski/63759/ft2_4FGL_J1507.2+1721_daily_bin170.fits outfile=/scratch/kocevski/63759/cmap_HighResolution_283392001_283651201_4FGL_J1507.2+1721_daily_bin170.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/63759/ft1_filtered_4FGL_J1507.2+1721_daily_bin170.fits evtable="EVENTS" scfile=/scratch/kocevski/63759/ft2_4FGL_J1507.2+1721_daily_bin170.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/63759/Model_4FGL_J1507.2+1721_daily_bin170.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/63759/ft1_filtered_4FGL_J1507.2+1721_daily_bin170.fits.....................!
real 56.48
user 55.10
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    7.7885       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10404E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.360       1.0000         .10000E-03   10000.    
     7 'Prefactor '    18.412       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.9259       1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.6093       1.0000         .10000E-03   10000.    
    10 'Prefactor '    28.251       1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.1883       1.0000         .10000E-03   10000.    
    12 'norm      '    .38809       1.0000         .10000E-03   10000.    
    13 'norm      '    .12566       1.0000         .10000E-03   10000.    
    14 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10214E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10196E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1339       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0549       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=   7566.585     FROM MIGRAD    STATUS=CONVERGED    466 CALLS     2396 TOTAL
                     EDM=   .85E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.6276       -.86905E-07** at limit **
   2  norm          7.7889        3.1809       -.58296E-07    .10051E-03
   3  Prefactor     .10000E-03    4.0795       -.11036E-06** at limit **
   4  norm          .10000E-03    1.5960       -.41710E-08** at limit **
   5  norm          .10000E-03    1.2613        .69563E-07** at limit **
   6  Prefactor     10.357        20.689       -.11438E-05   -.13104E-04
   7  Prefactor     18.407        26.469       -.66532E-05   -.45932E-05
   8  Prefactor     1.9407        21.715        .48343E-05   -.74091E-04
   9  Prefactor     7.6075        24.064        .70972E-05    .25362E-04
  10  Prefactor     28.220        49.796       -.45922E-04   -.15312E-04
  11  Prefactor     7.1890        7.2673       -.38534E-06   -.46201E-04
  12  norm          .38816        .20218        .75603E-07    .63786E-03
  13  norm          .13548        3.5510       -.83045E-06   -.17002E-03
  14  norm          .10000E-03    42.612       -.95767E-05** at limit **
  15  Prefactor     .10000E-03    22.522       -.17030E-04** at limit **
  16  Prefactor     .10000E-03    4.6979       -.47393E-07** at limit **
  17  Prefactor     .10000E-03    28.961        .18408E-04** at limit **
  18  Prefactor     .10000E-03    25.943        .38125E-05** at limit **
  19  norm          .10000E-03    .72754        .79462E-07** at limit **
  20  Prefactor     .10000E-03    16.172        .27942E-05** at limit **
  21  Normalizat    1.1337        .21247        .27924E-05   -.94624E-04
  22  Prefactor     1.0549        .12906        .85769E-06   -.78009E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 7.7889
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 10.3573
  Prefactor  = 18.4067
  Prefactor  = 1.94071
  Prefactor  = 7.60754
  Prefactor  = 28.2201
  Prefactor  = 7.189
  norm       = 0.388162
  norm       = 0.135481
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.1337
  Prefactor  = 1.0549
 **********
 **   18 **HESSE 
 **********

 FCN=   7566.585     FROM HESSE     STATUS=OK           344 CALLS     2740 TOTAL
                     EDM=   .57E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.7591        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          7.7889        3.1815        .96600E-04   -1.5150    
   3  Prefactor     .10000E-03    4.1173        .17150E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    1.6731        .21450E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.2640        .95399E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     10.357        20.665        .12449E-03   -1.5064    
   7  Prefactor     18.407        26.436        .93340E-04   -1.4850    
   8  Prefactor     1.9407        21.436        .29935E-03   -1.5429    
   9  Prefactor     7.6075        23.960        .14538E-03   -1.5156    
  10  Prefactor     28.220        49.695        .75375E-04   -1.4645    
  11  Prefactor     7.1890        7.2652        .14961E-03   -1.5172    
  12  norm          .38816        .19988        .26167E-04   -1.5583    
  13  norm          .13548        25.393        .31890E-02   -1.5634    
  14  norm          .10000E-03    42.633        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    22.548        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    4.7200        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    29.041        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    26.027        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    .73065        .72449E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    16.188        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.1337        .25335        .31440E-03   -.88677    
  22  Prefactor     1.0549        .15456        .20143E-03   -.90921    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.72125e-08
Minuit parameter uncertainties:
  1  3.07315e-05
  2  3.1816
  3  1.372e-05
  4  7.23273e-06
  5  2.55371e-06
  6  20.6796
  7  26.4532
  8  12.9054
  9  23.9902
  10  49.7681
  11  7.26611
  12  0.199881
  13  3.70986
  14  0.000129061
  15  8.70541e-06
  16  1.57835e-05
  17  8.46337e-05
  18  8.69378e-05
  19  2.38278e-06
  20  2.91497e-05
  21  0.253621
  22  0.154626
Done.

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

Extracting fit parameters...

4FGL J1507.2+1721
   Spectrum: LogParabola
219         norm:  1.000e-04  1.291e-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:  1.055e+00  1.546e-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.134e+00  2.536e-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: 2.42e-08 ph cm-2 s-1
Energy Flux Upper Limit: 8.13e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/63759/likelihoodResults_283392001_283651201_4FGL_J1507.2+1721_daily_bin170.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) = 7566.58526535
delta logL = -0.000111659812319

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7566.58515373
delta logL = -3.77758624381e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10062E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5211       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1337       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0549       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=   7566.585     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      196 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    48.786        .90712E-02** at limit **
   2  alpha         1.5679        3.2712        .46090       -.49969E-05
   3  Normalizat    1.1337        .20567        .71052E-01    .16167E-03
   4  Prefactor     1.0549        .12834        .39631E-01   -.99448E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.56791
  Normalizat = 1.1337
  Prefactor  = 1.0549
 **********
 **   18 **HESSE 
 **********

 FCN=   7566.585     FROM HESSE     STATUS=OK            31 CALLS      227 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    44.842        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.5679        3.2622        .50000       -.38207    
   3  Normalizat    1.1337        .24479        .31440E-03   -.88677    
   4  Prefactor     1.0549        .15297        .20143E-03   -.90921    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.83996e-10
Minuit parameter uncertainties:
  1  0.000141643
  2  2.32445
  3  0.245039
  4  0.153038
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/63759': 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) = 7566.58515362
delta logL = 7.31652107788e-08

Extracting fit parameters...

4FGL J1507.2+1721
   Spectrum: LogParabola
219         norm:  1.000e-04  1.416e-04  1.000e-04  1.000e+04 ( 1.000e-14)
220        alpha:  1.568e+00  2.324e+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:  1.055e+00  1.530e-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.134e+00  2.450e-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/63759/cmap_HighResolution_283392001_283651201_4FGL_J1507.2+1721_daily_bin170.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.13e-05', job_status='DONE', photon_flux_upper_limit='2.42e-08', time_completed='2021-09-11 00:57:55.750742', job_id='63759', GAL2='1.05', fit_tolerance='1e-08', EG2='1.13', EG='1.13', time_epoch_completed='1631347075.75', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='7.32e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.53' WHERE bin_id='170' 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@bullet0129>
Subject: Job 63759: <4FGL_J1507.2+1721_daily_bin170> in cluster <slac> Done

Job <4FGL_J1507.2+1721_daily_bin170> 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) <bullet0129>, 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: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_bin170 226.821 17.3519 283392001 283651201 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 :                                   611.20 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             330.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   706 sec.
    Turnaround time :                            707 sec.

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

