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


Performing analysis on: 4FGL_J1507.2+1721_daily_bin990
RA = 226.821, Dec = 17.3519
tmin = 495936001, tmax = 496195201
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='69001', job_status='RUN', time_executed='2021-09-11 00:59:49.438029', time_epoch_executed='1631347189.44' WHERE source_name='4FGL J1507.2+1721' and cadence='daily' and bin_id='990'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/69001

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/69001/ft1_4FGL_J1507.2+1721_daily_bin990.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/69001/ft2_4FGL_J1507.2+1721_daily_bin990.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/69001/ft1_4FGL_J1507.2+1721_daily_bin990.fits outfile=/scratch/kocevski/69001/ft1_filteredMKT_4FGL_J1507.2+1721_daily_bin990.fits ra=226.821 dec=17.3519 rad=12.0 tmin=495936001.0 tmax=496195201.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.51
user 3.26
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/69001/ft2_4FGL_J1507.2+1721_daily_bin990.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/69001/ft1_filteredMKT_4FGL_J1507.2+1721_daily_bin990.fits evtable="EVENTS" outfile="/scratch/kocevski/69001/ft1_filtered_4FGL_J1507.2+1721_daily_bin990.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/69001/ft1_filtered_4FGL_J1507.2+1721_daily_bin990.fits" evtable="EVENTS" scfile=/scratch/kocevski/69001/ft2_4FGL_J1507.2+1721_daily_bin990.fits sctable="SC_DATA" outfile=/scratch/kocevski/69001/ltcube_495936001_496195201_4FGL_J1507.2+1721_daily_bin990.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/69001/ft2_4FGL_J1507.2+1721_daily_bin990.fits
.....................!
real 12.02
user 11.60
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/69001/ft1_filtered_4FGL_J1507.2+1721_daily_bin990.fits evtable="EVENTS" scfile=/scratch/kocevski/69001/ft2_4FGL_J1507.2+1721_daily_bin990.fits sctable="SC_DATA" expcube=/scratch/kocevski/69001/ltcube_495936001_496195201_4FGL_J1507.2+1721_daily_bin990.fits outfile=/scratch/kocevski/69001/expmap_495936001_496195201_4FGL_J1507.2+1721_daily_bin990.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/69001/ltcube_495936001_496195201_4FGL_J1507.2+1721_daily_bin990.fits
.....................!
real 191.70
user 185.73
sys 5.45

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/69001/ft1_filtered_4FGL_J1507.2+1721_daily_bin990.fits scfile=/scratch/kocevski/69001/ft2_4FGL_J1507.2+1721_daily_bin990.fits outfile=/scratch/kocevski/69001/cmap_495936001_496195201_4FGL_J1507.2+1721_daily_bin990.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.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.4319       1.0000         .10000E-03   10000.    
     2 'norm      '    9.0098       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    5.0638       1.0000         .10000E-03   10000.    
     5 'norm      '    4.3250       1.0000         .10000E-03   10000.    
     6 'Prefactor '    43.558       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .32756       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.0678       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .14921E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    22.258       1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.9675       1.0000         .10000E-03   10000.    
    12 'norm      '    2.3645       1.0000         .10000E-03   10000.    
    13 'norm      '    3.9648       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.9928       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    33.472       1.0000         .10000E-03   10000.    
    19 'norm      '    3.3946       1.0000         .10000E-03   10000.    
    20 'Prefactor '    13.253       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.4932       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .73219       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=   7676.816     FROM MIGRAD    STATUS=CONVERGED    506 CALLS     2455 TOTAL
                     EDM=   .38E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.4324        5.1341        .15890E-05   -.98426E-04
   2  norm          9.0102        3.5804        .15471E-06   -.77002E-05
   3  Prefactor     .10000E-03    3.1666       -.33827E-07** at limit **
   4  norm          5.0645        3.3907       -.11358E-06   -.33190E-03
   5  norm          4.3257        3.9965        .10012E-06   -.26046E-03
   6  Prefactor     43.549        32.954        .91951E-05   -.79113E-05
   7  Prefactor     .75519        18.243        .25907E-06   -.94380E-04
   8  Prefactor     3.0602        14.861       -.10065E-05   -.13967E-03
   9  Prefactor     .10000E-03    41.468       -.40108E-05** at limit **
  10  Prefactor     22.259        33.700        .81354E-05   -.22095E-05
  11  Prefactor     6.9689        6.7527        .38634E-05   -.68281E-04
  12  norm          2.3638        .34405        .58468E-07   -.10448E-02
  13  norm          3.9652        4.9727       -.48011E-05   -.80123E-04
  14  norm          .10000E-03    14.251       -.98403E-06** at limit **
  15  Prefactor     .10000E-03    51.543        .30861E-05** at limit **
  16  Prefactor     7.9946        7.2707        .22638E-05   -.76434E-04
  17  Prefactor     .10000E-03    15.389        .11574E-05** at limit **
  18  Prefactor     33.480        31.837        .13426E-04   -.31835E-04
  19  norm          3.3957        2.8419       -.25142E-06   -.51949E-03
  20  Prefactor     13.259        26.603        .47564E-05   -.26228E-04
  21  Normalizat    1.4934        .22565       -.46741E-05    .11760E-03
  22  Prefactor     .73185        .13168       -.49634E-06   -.24500E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.43235
  norm       = 9.01023
  Prefactor  = 0.0001
  norm       = 5.06446
  norm       = 4.32574
  Prefactor  = 43.549
  Prefactor  = 0.75519
  Prefactor  = 3.06022
  Prefactor  = 0.000100003
  Prefactor  = 22.2592
  Prefactor  = 6.96887
  norm       = 2.36382
  norm       = 3.96521
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.99464
  Prefactor  = 0.0001
  Prefactor  = 33.4798
  norm       = 3.39573
  Prefactor  = 13.2586
  Normalizat = 1.49342
  Prefactor  = 0.731851
 **********
 **   18 **HESSE 
 **********

 FCN=   7676.816     FROM HESSE     STATUS=OK           354 CALLS     2809 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.4324        5.1255        .19129E-03   -1.5287    
   2  norm          9.0102        3.5819        .10151E-03   -1.5108    
   3  Prefactor     .10000E-03    3.1990        .15220E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          5.0645        3.3913        .12586E-03   -1.5258    
   5  norm          4.3257        3.9947        .16295E-03   -1.5292    
   6  Prefactor     43.549        33.014        .60744E-04   -1.4387    
   7  Prefactor     .75519        163.79        .70759E-02   -1.5534    
   8  Prefactor     3.0602        14.800        .23160E-03   -1.5358    
   9  Prefactor     .10000E-03    41.855        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     22.259        33.688        .84901E-04   -1.4764    
  11  Prefactor     6.9689        6.7411        .15199E-03   -1.5180    
  12  norm          2.3638        .34456        .18472E-04   -1.5400    
  13  norm          3.9652        4.9773        .20257E-03   -1.5310    
  14  norm          .10000E-03    14.251        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    51.972        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     7.9946        7.2664        .14182E-03   -1.5142    
  17  Prefactor     .10000E-03    15.415        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     33.480        31.766        .69262E-04   -1.4550    
  19  norm          3.3957        2.8410        .12942E-03   -1.5339    
  20  Prefactor     13.259        26.579        .11003E-03   -1.4980    
  21  Normalizat    1.4934        .26598        .29456E-03   -.77963    
  22  Prefactor     .73185        .15587        .24436E-03   -1.0229    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.1059e-09
Minuit parameter uncertainties:
  1  5.126
  2  3.58196
  3  5.24544e-06
  4  3.39144
  5  3.99495
  6  33.0279
  7  22.304
  8  13.4651
  9  0.000762425
  10  33.7166
  11  6.74181
  12  0.34456
  13  4.97777
  14  5.64197e-07
  15  3.36794e-05
  16  7.26718
  17  3.20194e-06
  18  31.7821
  19  2.84115
  20  26.6029
  21  0.266227
  22  0.155964
Done.

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

Extracting fit parameters...

4FGL J1507.2+1721
   Spectrum: LogParabola
219         norm:  1.000e-04  5.642e-07  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.319e-01  1.560e-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.493e+00  2.662e-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.42e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.77e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/69001/likelihoodResults_495936001_496195201_4FGL_J1507.2+1721_daily_bin990.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) = 7676.81571471
delta logL = -0.000123412625726

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7676.81559644
delta logL = -5.13616123499e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10423E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5672       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4934       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73187       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=   7676.816     FROM MIGRAD    STATUS=CONVERGED    104 CALLS      289 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10002E-03    488.80        .18142E-01** at limit **
   2  alpha         1.2425        2.6022        .16468        .91677E-07
   3  Normalizat    1.4934        .32540E-01    .29456E-03   -.79700E-04
   4  Prefactor     .73185        .19799E-01    .24436E-03   -.82767E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100022
  alpha      = 1.24248
  Normalizat = 1.49341
  Prefactor  = 0.731854
 **********
 **   18 **HESSE 
 **********

 FCN=   7676.816     FROM HESSE     STATUS=OK            23 CALLS      312 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10002E-03    15.846        .33172E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.2425        4.1546        .65873E-02   -.52708    
   3  Normalizat    1.4934        .25223        .11782E-04   -.77964    
   4  Prefactor     .73185        .15351        .97744E-05   -1.0229    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.64722e-09
Minuit parameter uncertainties:
  1  0.00118711
  2  512.673
  3  0.252443
  4  0.153598
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/69001': 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) = 7676.81559112
delta logL = 1.79344169737e-07

Extracting fit parameters...

4FGL J1507.2+1721
   Spectrum: LogParabola
219         norm:  1.000e-04  1.187e-03  1.000e-04  1.000e+04 ( 1.000e-14)
220        alpha:  1.242e+00  5.127e+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:  7.319e-01  1.536e-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.493e+00  2.524e-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/69001/cmap_HighResolution_495936001_496195201_4FGL_J1507.2+1721_daily_bin990.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.77e-05', job_status='DONE', photon_flux_upper_limit='1.42e-08', time_completed='2021-09-11 01:10:32.616778', job_id='69001', GAL2='0.73', fit_tolerance='1e-08', EG2='1.49', EG='1.49', time_epoch_completed='1631347832.62', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.73', dlogl='1.79e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.53' WHERE bin_id='990' AND source_name='4FGL J1507.2+1721' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 01:10:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0137>
Subject: Job 69001: <4FGL_J1507.2+1721_daily_bin990> in cluster <slac> Done

Job <4FGL_J1507.2+1721_daily_bin990> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep 11 00:57:00 2021
Job was executed on host(s) <bullet0137>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 00:57:03 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:57:03 2021
Terminated at Sat Sep 11 01:10:33 2021
Results reported at Sat Sep 11 01:10:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1507.2+1721_daily_bin990 226.821 17.3519 495936001 496195201 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 :                                   632.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             295.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   809 sec.
    Turnaround time :                            813 sec.

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

