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


Performing analysis on: 4FGL_J1507.2+1721_daily_bin1020
RA = 226.821, Dec = 17.3519
tmin = 503712001, tmax = 503971201
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='70212', job_status='RUN', time_executed='2021-09-11 01:04:31.889360', time_epoch_executed='1631347471.89' WHERE source_name='4FGL J1507.2+1721' and cadence='daily' and bin_id='1020'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/70212

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/70212/ft1_4FGL_J1507.2+1721_daily_bin1020.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/70212/ft2_4FGL_J1507.2+1721_daily_bin1020.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/70212/ft1_4FGL_J1507.2+1721_daily_bin1020.fits outfile=/scratch/kocevski/70212/ft1_filteredMKT_4FGL_J1507.2+1721_daily_bin1020.fits ra=226.821 dec=17.3519 rad=12.0 tmin=503712001.0 tmax=503971201.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 5.54
user 5.27
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/70212/ft1_filtered_4FGL_J1507.2+1721_daily_bin1020.fits" evtable="EVENTS" scfile=/scratch/kocevski/70212/ft2_4FGL_J1507.2+1721_daily_bin1020.fits sctable="SC_DATA" outfile=/scratch/kocevski/70212/ltcube_503712001_503971201_4FGL_J1507.2+1721_daily_bin1020.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/70212/ft2_4FGL_J1507.2+1721_daily_bin1020.fits
.....................!
real 12.36
user 11.98
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/70212/ft1_filtered_4FGL_J1507.2+1721_daily_bin1020.fits evtable="EVENTS" scfile=/scratch/kocevski/70212/ft2_4FGL_J1507.2+1721_daily_bin1020.fits sctable="SC_DATA" expcube=/scratch/kocevski/70212/ltcube_503712001_503971201_4FGL_J1507.2+1721_daily_bin1020.fits outfile=/scratch/kocevski/70212/expmap_503712001_503971201_4FGL_J1507.2+1721_daily_bin1020.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/70212/ltcube_503712001_503971201_4FGL_J1507.2+1721_daily_bin1020.fits
.....................!
real 190.29
user 184.60
sys 5.28

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/70212/ft1_filtered_4FGL_J1507.2+1721_daily_bin1020.fits scfile=/scratch/kocevski/70212/ft2_4FGL_J1507.2+1721_daily_bin1020.fits outfile=/scratch/kocevski/70212/cmap_503712001_503971201_4FGL_J1507.2+1721_daily_bin1020.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.60
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/70212/ft1_filtered_4FGL_J1507.2+1721_daily_bin1020.fits scfile=/scratch/kocevski/70212/ft2_4FGL_J1507.2+1721_daily_bin1020.fits outfile=/scratch/kocevski/70212/cmap_HighResolution_503712001_503971201_4FGL_J1507.2+1721_daily_bin1020.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.57
user 0.39
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10333E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    9.7625       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .76337       1.0000         .10000E-03   10000.    
     4 'norm      '    1.4361       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12752E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    21.865       1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.701       1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.4084       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.5446       1.0000         .10000E-03   10000.    
    12 'norm      '    .84050       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 '    16.708       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .33635       1.0000         .10000E-03   10000.    
    17 'Prefactor '    31.623       1.0000         .10000E-03   10000.    
    18 'Prefactor '    174.55       1.0000         .10000E-03   10000.    
    19 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10417E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2888       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .75095       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=   5363.887     FROM MIGRAD    STATUS=CONVERGED    468 CALLS     2443 TOTAL
                     EDM=   .49E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.9471        .25202E-06** at limit **
   2  norm          9.7627        4.2966       -.31533E-07   -.22850E-04
   3  Prefactor     .73968        6.4514       -.14576E-05    .34357E-03
   4  norm          1.4350        2.2006        .84631E-07    .15922E-03
   5  norm          .10000E-03    1.1656        .83538E-07** at limit **
   6  Prefactor     .10000E-03    30.558       -.28026E-05** at limit **
   7  Prefactor     21.863        31.898       -.49755E-06   -.29001E-04
   8  Prefactor     10.689        24.181       -.19249E-05   -.11633E-03
   9  Prefactor     8.3779        34.528       -.34395E-06   -.45497E-04
  10  Prefactor     .10000E-03    15.566       -.75867E-06** at limit **
  11  Prefactor     4.5439        9.8652        .49694E-06    .20104E-05
  12  norm          .84052        .25516       -.30409E-07   -.18134E-02
  13  norm          .10000E-03    2.7394        .90350E-07** at limit **
  14  norm          .10000E-03    18.820       -.93761E-07** at limit **
  15  Prefactor     16.702        48.485       -.13130E-05   -.47223E-04
  16  Prefactor     .37106        10.026        .20601E-05   -.32334E-03
  17  Prefactor     31.571        49.065       -.14113E-05   -.10480E-03
  18  Prefactor     174.56        66.529        .49932E-07   -.40240E-04
  19  norm          .10000E-03    2.2821        .30298E-06** at limit **
  20  Prefactor     .10000E-03    27.071        .49614E-06** at limit **
  21  Normalizat    1.2890        .31279        .59643E-05   -.28002E-03
  22  Prefactor     .75078        .17158       -.50825E-05   -.38914E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 9.76271
  Prefactor  = 0.739682
  norm       = 1.43501
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 21.8629
  Prefactor  = 10.689
  Prefactor  = 8.37794
  Prefactor  = 0.0001
  Prefactor  = 4.54393
  norm       = 0.840522
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 16.7021
  Prefactor  = 0.371065
  Prefactor  = 31.5714
  Prefactor  = 174.559
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.28899
  Prefactor  = 0.750775
 **********
 **   18 **HESSE 
 **********

 FCN=   5363.887     FROM HESSE     STATUS=OK           344 CALLS     2787 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.9675        .15908E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          9.7627        4.2980        .48828E-03   -1.5083    
   3  Prefactor     .73968        30.276        .30979E-02   -1.5536    
   4  norm          1.4350        2.1670        .12973E-03   -1.5468    
   5  norm          .10000E-03    1.1669        .77237E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    31.157        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     21.863        31.961        .85659E-04   -1.4772    
   8  Prefactor     10.689        24.073        .12248E-03   -1.5054    
   9  Prefactor     8.3779        34.290        .13825E-03   -1.5129    
  10  Prefactor     .10000E-03    15.605        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.5439        9.8776        .18884E-03   -1.5282    
  12  norm          .84052        .25502        .19239E-04   -1.5525    
  13  norm          .10000E-03    2.7429        .11841E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    18.824        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     16.702        48.523        .97984E-04   -1.4890    
  16  Prefactor     .37106        48.786        .40213E-02   -1.5586    
  17  Prefactor     31.571        49.367        .71252E-04   -1.4584    
  18  Prefactor     174.56        66.689        .30544E-04   -1.3058    
  19  norm          .10000E-03    2.3577        .21670E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    27.141        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.2890        .32212        .29069E-03   -.83896    
  22  Prefactor     .75078        .17506        .22290E-03   -1.0157    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.46381e-09
Minuit parameter uncertainties:
  1  2.78705e-05
  2  4.29816
  3  9.46914
  4  2.16713
  5  3.13207e-06
  6  0.000516865
  7  31.9857
  8  24.0953
  9  33.9323
  10  9.5768e-05
  11  9.88112
  12  0.255017
  13  6.52213e-06
  14  3.24549e-05
  15  48.638
  16  8.51541
  17  49.4305
  18  66.7179
  19  2.34114e-05
  20  0.000138172
  21  0.322619
  22  0.175194
Done.

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

Extracting fit parameters...

4FGL J1507.2+1721
   Spectrum: LogParabola
219         norm:  1.000e-04  3.245e-05  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.508e-01  1.752e-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.289e+00  3.226e-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.83e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.14e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/70212/likelihoodResults_503712001_503971201_4FGL_J1507.2+1721_daily_bin1020.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) = 5363.88698538
delta logL = -0.000248685862061

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5363.88673931
delta logL = -2.61912555288e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8804       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2890       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75077       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=   5363.887     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      234 TOTAL
                     EDM=   .31E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    9.4305        .90712E-02** at limit **
   2  alpha         2.8703        3.6289        .41770        .53355E-05
   3  Normalizat    1.2890        .23781        .65711E-01    .66408E-05
   4  Prefactor     .75078        .14407        .43073E-01    .13014E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.87027
  Normalizat = 1.28899
  Prefactor  = 0.750776
 **********
 **   18 **HESSE 
 **********

 FCN=   5363.887     FROM HESSE     STATUS=OK            33 CALLS      267 TOTAL
                     EDM=   .29E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    9.5134        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.8703        3.6265        .50000        .14865    
   3  Normalizat    1.2890        .28177        .29069E-03   -.83896    
   4  Prefactor     .75078        .17081        .22291E-03   -1.0157    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.87669e-11
Minuit parameter uncertainties:
  1  1.65223e-05
  2  2.47592
  3  0.282109
  4  0.170932
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/70212': 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) = 5363.88673928
delta logL = -2.59114312939e-06

Extracting fit parameters...

4FGL J1507.2+1721
   Spectrum: LogParabola
219         norm:  1.000e-04  1.652e-05  1.000e-04  1.000e+04 ( 1.000e-14)
220        alpha:  2.870e+00  2.476e+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.508e-01  1.709e-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.289e+00  2.821e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/70212/cmap_HighResolution_503712001_503971201_4FGL_J1507.2+1721_daily_bin1020.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.14e-05', job_status='DONE', photon_flux_upper_limit='1.83e-08', time_completed='2021-09-11 01:14:59.721460', job_id='70212', GAL2='0.75', fit_tolerance='1e-08', EG2='1.29', EG='1.29', time_epoch_completed='1631348099.72', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.75', dlogl='-2.59e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.53' WHERE bin_id='1020' AND source_name='4FGL J1507.2+1721' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 01:14:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0252>
Subject: Job 70212: <4FGL_J1507.2+1721_daily_bin1020> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1507.2+1721_daily_bin1020 226.821 17.3519 503712001 503971201 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 :                                   541.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             200.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   837 sec.
    Turnaround time :                            838 sec.

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

