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


Performing analysis on: 4FGL_J1507.2+1721_daily_bin265
RA = 226.821, Dec = 17.3519
tmin = 308016001, tmax = 308275201
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='63946', job_status='RUN', time_executed='2021-09-11 00:49:22.250645', time_epoch_executed='1631346562.25' WHERE source_name='4FGL J1507.2+1721' and cadence='daily' and bin_id='265'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/63946

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/63946/ft1_4FGL_J1507.2+1721_daily_bin265.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/63946/ft2_4FGL_J1507.2+1721_daily_bin265.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/63946/ft1_4FGL_J1507.2+1721_daily_bin265.fits outfile=/scratch/kocevski/63946/ft1_filteredMKT_4FGL_J1507.2+1721_daily_bin265.fits ra=226.821 dec=17.3519 rad=12.0 tmin=308016001.0 tmax=308275201.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.46
user 3.18
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/63946/ft1_filtered_4FGL_J1507.2+1721_daily_bin265.fits" evtable="EVENTS" scfile=/scratch/kocevski/63946/ft2_4FGL_J1507.2+1721_daily_bin265.fits sctable="SC_DATA" outfile=/scratch/kocevski/63946/ltcube_308016001_308275201_4FGL_J1507.2+1721_daily_bin265.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/63946/ft2_4FGL_J1507.2+1721_daily_bin265.fits
.....................!
real 11.96
user 11.64
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/63946/ft1_filtered_4FGL_J1507.2+1721_daily_bin265.fits evtable="EVENTS" scfile=/scratch/kocevski/63946/ft2_4FGL_J1507.2+1721_daily_bin265.fits sctable="SC_DATA" expcube=/scratch/kocevski/63946/ltcube_308016001_308275201_4FGL_J1507.2+1721_daily_bin265.fits outfile=/scratch/kocevski/63946/expmap_308016001_308275201_4FGL_J1507.2+1721_daily_bin265.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/63946/ltcube_308016001_308275201_4FGL_J1507.2+1721_daily_bin265.fits
.....................!
real 189.99
user 185.48
sys 4.02

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/63946/ft1_filtered_4FGL_J1507.2+1721_daily_bin265.fits scfile=/scratch/kocevski/63946/ft2_4FGL_J1507.2+1721_daily_bin265.fits outfile=/scratch/kocevski/63946/cmap_308016001_308275201_4FGL_J1507.2+1721_daily_bin265.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.59
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/63946/ft1_filtered_4FGL_J1507.2+1721_daily_bin265.fits scfile=/scratch/kocevski/63946/ft2_4FGL_J1507.2+1721_daily_bin265.fits outfile=/scratch/kocevski/63946/cmap_HighResolution_308016001_308275201_4FGL_J1507.2+1721_daily_bin265.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.56
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .56401E-02   1.0000         .10000E-03   10000.    
     2 'norm      '    6.7360       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11336E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .20364E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    15.468       1.0000         .10000E-03   10000.    
     7 'Prefactor '    22.831       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11572E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    18.176       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .13861       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    25.028       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    22.979       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    6.3173       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1865       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .94517       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=   6785.643     FROM MIGRAD    STATUS=CONVERGED    887 CALLS     2837 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10776E-03    5.4785        .57066E-01** at limit **
   2  norm          6.7358        3.0340        .93645E-04    .25385E-03
   3  Prefactor     .10000E-03    6.2740        .26918E-02** at limit **
   4  norm          .10000E-03    .58438        .61405E-03** at limit **
   5  norm          .10038E-03    2.8101        .40974E-01** at limit **
   6  Prefactor     15.470        17.955        .10184E-03    .12861E-03
   7  Prefactor     22.832        24.570        .83829E-04   -.76759E-04
   8  Prefactor     .10000E-03    7.4639        .18142E-02** at limit **
   9  Prefactor     .10002E-03    136.11        .68627E-02** at limit **
  10  Prefactor     18.163        50.348        .93946E-04   -.33400E-04
  11  Prefactor     .10000E-03    1.9791        .11312E-02** at limit **
  12  norm          .13857        .14034        .31964E-03    .35705E-02
  13  norm          .10000E-03    2.8363        .13527E-02** at limit **
  14  norm          25.026        43.278        .80072E-04   -.22007E-04
  15  Prefactor     .10000E-03    29.754        .18142E-02** at limit **
  16  Prefactor     22.978        11.001        .83560E-04   -.54149E-04
  17  Prefactor     .10000E-03    47.429        .18142E-02** at limit **
  18  Prefactor     .10000E-03    8.6746        .18142E-02** at limit **
  19  norm          6.3167        3.2197        .10196E-03   -.36697E-03
  20  Prefactor     .10000E-03    15.793        .18142E-02** at limit **
  21  Normalizat    1.1864        .25596        .28706E-03   -.23375E-03
  22  Prefactor     .94525        .16172        .20320E-03   -.66521E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000107756
  norm       = 6.7358
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100376
  Prefactor  = 15.4699
  Prefactor  = 22.8324
  Prefactor  = 0.0001
  Prefactor  = 0.000100016
  Prefactor  = 18.1634
  Prefactor  = 0.0001
  norm       = 0.138573
  norm       = 0.0001
  norm       = 25.0258
  Prefactor  = 0.000100003
  Prefactor  = 22.9779
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 6.31672
  Prefactor  = 0.0001
  Normalizat = 1.18645
  Prefactor  = 0.945252
 **********
 **   18 **HESSE 
 **********

 FCN=   6785.643     FROM HESSE     STATUS=OK           342 CALLS     3179 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10776E-03    5.3276        .58287E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          6.7358        3.0340        .37458E-05   -1.5189    
   3  Prefactor     .10000E-03    6.3087        .53836E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    .58438        .12281E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10038E-03    2.6284        .43336E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     15.470        17.950        .40734E-05   -1.4921    
   7  Prefactor     22.832        24.567        .33532E-05   -1.4752    
   8  Prefactor     .10000E-03    7.4648        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10002E-03    139.12        .27451E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     18.163        50.260        .37578E-05   -1.4855    
  11  Prefactor     .10000E-03    1.9791        .22624E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .13857        .14027        .12785E-04   -1.5634    
  13  norm          .10000E-03    2.8365        .27054E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          25.026        43.290        .32029E-05   -1.4707    
  15  Prefactor     .10000E-03    29.757        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     22.978        11.001        .33424E-05   -1.4749    
  17  Prefactor     .10000E-03    47.457        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    8.6748        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          6.3167        3.2197        .40782E-05   -1.5205    
  20  Prefactor     .10000E-03    15.793        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.1864        .25622        .57412E-04   -.87023    
  22  Prefactor     .94525        .16189        .81282E-05   -.94577    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.26307e-09
Minuit parameter uncertainties:
  1  0.0128573
  2  3.03407
  3  5.92479e-05
  4  5.48664e-06
  5  0.00198737
  6  17.9564
  7  24.578
  8  5.80249e-05
  9  0.00295798
  10  50.3773
  11  1.25422e-05
  12  0.140267
  13  2.78665e-05
  14  43.3448
  15  0.000558327
  16  11.0015
  17  0.000638808
  18  5.8247e-05
  19  3.2198
  20  0.000101053
  21  0.256495
  22  0.161972
Done.

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

Extracting fit parameters...

4FGL J1507.2+1721
   Spectrum: LogParabola
219         norm:  2.503e+01  4.334e+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:  9.453e-01  1.620e-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.186e+00  2.565e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.54
Ra Dec: 226.821 17.352
Photon Flux Upper Limit: 2.88e-08 ph cm-2 s-1
Energy Flux Upper Limit: 9.65e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/63946/likelihoodResults_308016001_308275201_4FGL_J1507.2+1721_daily_bin265.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) = 6785.19313845
delta logL = 0.450281817723

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6785.13352546
delta logL = 0.509894807811

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    14.098       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8490       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1795       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93746       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=   6785.134     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      243 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          14.098        394.45        .26668E-02    .44797E-03
   2  alpha         2.8489        3.9212        .24369        .73128E-04
   3  Normalizat    1.1795        .90277E-01    .65039E-01    .20041E-05
   4  Prefactor     .93745        .46811E-01    .45481E-01   -.78740E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 14.0985
  alpha      = 2.8489
  Normalizat = 1.17954
  Prefactor  = 0.937446
 **********
 **   18 **HESSE 
 **********

 FCN=   6785.134     FROM HESSE     STATUS=OK            31 CALLS      274 TOTAL
                     EDM=   .29E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          14.098        44.781        .10667E-03   -1.4957    
   2  alpha         2.8489        1.6710        .13316E-01    .14002    
   3  Normalizat    1.1795        .25612        .28771E-03   -.87237    
   4  Prefactor     .93745        .16133        .20381E-03   -.94845    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.90719e-08
Minuit parameter uncertainties:
  1  44.8881
  2  1.83433
  3  0.256389
  4  0.161409
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/63946': 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) = 6785.13352542
delta logL = 0.50989484911

Extracting fit parameters...

4FGL J1507.2+1721
   Spectrum: LogParabola
219         norm:  1.410e+01  4.489e+01  1.000e-04  1.000e+04 ( 1.000e-14)
220        alpha:  2.849e+00  1.834e+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:  9.374e-01  1.614e-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.180e+00  2.564e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.57
Ra Dec: 226.821 17.352
Photon Index (Free Index): 2.85 +/- 1.83
Photon Flux (Free Index): 2.77e-08 +/- 5.27e-08
Energy Flux (Free Index): 1.27e-05 +/- 1.34e-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/63946/cmap_HighResolution_308016001_308275201_4FGL_J1507.2+1721_daily_bin265.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.65e-05', comment='SUCCESS', energy_flux2='1.27e-05', dlogl='5.10e-01', photon_flux2='2.77e-08', job_status='DONE', time_completed='2021-09-11 00:59:51.812871', photon_index_error2='1.83', photon_index2='2.85', ts='0.54', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='2.88e-08', energy_flux_error2='1.34e-05', EG='1.19', time_epoch_completed='1631347191.81', return_code='0', job_id='63946', GAL2='0.94', EG2='1.18', return_code2='0', photon_flux_error2='5.27e-08', ts2='1.57', photon_index='1.53' WHERE bin_id='265' AND source_name='4FGL J1507.2+1721' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 00:59:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0286>
Subject: Job 63946: <4FGL_J1507.2+1721_daily_bin265> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1507.2+1721_daily_bin265 226.821 17.3519 308016001 308275201 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 :                                   624.44 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             279.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   811 sec.
    Turnaround time :                            812 sec.

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

