/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 187 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 = 7486
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1507.2+1721_daily_bin70
RA = 226.821, Dec = 17.3519
tmin = 257472001, tmax = 257731201
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='63619', job_status='RUN', time_executed='2021-09-11 00:49:16.469691', time_epoch_executed='1631346556.47' WHERE source_name='4FGL J1507.2+1721' and cadence='daily' and bin_id='70'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/63619

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/63619/ft1_4FGL_J1507.2+1721_daily_bin70.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/63619/ft2_4FGL_J1507.2+1721_daily_bin70.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/63619/ft1_4FGL_J1507.2+1721_daily_bin70.fits outfile=/scratch/kocevski/63619/ft1_filteredMKT_4FGL_J1507.2+1721_daily_bin70.fits ra=226.821 dec=17.3519 rad=12.0 tmin=257472001.0 tmax=257731201.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 2.00
user 1.76
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/63619/ft1_filtered_4FGL_J1507.2+1721_daily_bin70.fits" evtable="EVENTS" scfile=/scratch/kocevski/63619/ft2_4FGL_J1507.2+1721_daily_bin70.fits sctable="SC_DATA" outfile=/scratch/kocevski/63619/ltcube_257472001_257731201_4FGL_J1507.2+1721_daily_bin70.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/63619/ft2_4FGL_J1507.2+1721_daily_bin70.fits
.....................!
real 12.91
user 12.45
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/63619/ft1_filtered_4FGL_J1507.2+1721_daily_bin70.fits evtable="EVENTS" scfile=/scratch/kocevski/63619/ft2_4FGL_J1507.2+1721_daily_bin70.fits sctable="SC_DATA" expcube=/scratch/kocevski/63619/ltcube_257472001_257731201_4FGL_J1507.2+1721_daily_bin70.fits outfile=/scratch/kocevski/63619/expmap_257472001_257731201_4FGL_J1507.2+1721_daily_bin70.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/63619/ltcube_257472001_257731201_4FGL_J1507.2+1721_daily_bin70.fits
.....................!
real 191.87
user 185.61
sys 5.48

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/63619/ft1_filtered_4FGL_J1507.2+1721_daily_bin70.fits scfile=/scratch/kocevski/63619/ft2_4FGL_J1507.2+1721_daily_bin70.fits outfile=/scratch/kocevski/63619/cmap_257472001_257731201_4FGL_J1507.2+1721_daily_bin70.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.39
sys 0.13

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    9.8296       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.9820       1.0000         .10000E-03   10000.    
     4 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    49.969       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11174E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11856E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    5.2637       1.0000         .10000E-03   10000.    
    13 'norm      '    3.3834       1.0000         .10000E-03   10000.    
    14 'norm      '    48.504       1.0000         .10000E-03   10000.    
    15 'Prefactor '    49.510       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .17630E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    54.643       1.0000         .10000E-03   10000.    
    19 'norm      '    .10145E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0724       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .99169       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=   8611.081     FROM MIGRAD    STATUS=CONVERGED    480 CALLS     2344 TOTAL
                     EDM=   .58E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.8239       -.63538E-07** at limit **
   2  norm          9.8297        3.5449       -.48467E-07    .35429E-05
   3  Prefactor     3.9839        2.8187        .59294E-06   -.23697E-02
   4  norm          .10000E-03    .67611       -.38802E-08** at limit **
   5  norm          .10000E-03    3.4941        .19946E-07** at limit **
   6  Prefactor     49.959        30.093       -.48069E-05   -.16427E-03
   7  Prefactor     .10000E-03    6.6603        .24178E-05** at limit **
   8  Prefactor     .10000E-03    18.841       -.31821E-06** at limit **
   9  Prefactor     .10000E-03    19.153        .10898E-05** at limit **
  10  Prefactor     .10000E-03    13.748       -.85392E-06** at limit **
  11  Prefactor     .10000E-03    2.2613       -.90681E-08** at limit **
  12  norm          5.2637        .43931       -.73023E-09    .76385E-04
  13  norm          3.3834        5.7842       -.44716E-07   -.53702E-04
  14  norm          48.499        48.547       -.45687E-05   -.58366E-04
  15  Prefactor     49.510        51.664       -.13126E-07    .10352E-04
  16  Prefactor     .10000E-03    4.4470       -.14644E-06** at limit **
  17  Prefactor     .10000E-03    6.9060       -.26752E-05** at limit **
  18  Prefactor     54.645        36.544        .12769E-05    .53444E-04
  19  norm          .10000E-03    1.5316       -.11254E-06** at limit **
  20  Prefactor     .10000E-03    9.8192        .77175E-06** at limit **
  21  Normalizat    1.0720        .22124        .98151E-06    .23672E-05
  22  Prefactor     .99194        .13654       -.93087E-07    .89101E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 9.82965
  Prefactor  = 3.98392
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 49.9595
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.26368
  norm       = 3.38338
  norm       = 48.4989
  Prefactor  = 49.5097
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 54.6452
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.07204
  Prefactor  = 0.99194
 **********
 **   18 **HESSE 
 **********

 FCN=   8611.081     FROM HESSE     STATUS=OK           340 CALLS     2684 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.8361        .15229E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          9.8297        3.5453        .10212E-03   -1.5081    
   3  Prefactor     3.9839        5.9995        .10106E-02   -1.5309    
   4  norm          .10000E-03    .67914        .74502E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    3.5999        .33863E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     49.959        30.168        .56731E-04   -1.4293    
   7  Prefactor     .10000E-03    6.6690        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    18.975        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    19.256        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    13.747        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.2647        .13627E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          5.2637        .44000        .16914E-04   -1.5249    
  13  norm          3.3834        5.7731        .21997E-03   -1.5340    
  14  norm          48.499        48.661        .28788E-03   -1.4314    
  15  Prefactor     49.510        51.795        .56992E-04   -1.4300    
  16  Prefactor     .10000E-03    68.545        .37551E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    6.9215        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     54.645        36.542        .54263E-04   -1.4228    
  19  norm          .10000E-03    5.3787        .22267E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    9.8188        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.0720        .26486        .35258E-03   -.90655    
  22  Prefactor     .99194        .16291        .23163E-03   -.92999    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.04085e-09
Minuit parameter uncertainties:
  1  4.79065e-08
  2  3.54535
  3  6.00038
  4  1.29835e-06
  5  3.63447e-06
  6  30.1776
  7  3.73651e-05
  8  7.27295e-05
  9  0.000138277
  10  7.51878e-06
  11  9.30236e-08
  12  0.440002
  13  5.77405
  14  48.7005
  15  51.842
  16  0.000146545
  17  4.60909e-05
  18  36.557
  19  5.62596e-06
  20  8.8106e-06
  21  0.265187
  22  0.162991
Done.

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

Extracting fit parameters...

4FGL J1507.2+1721
   Spectrum: LogParabola
219         norm:  4.850e+01  4.870e+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.919e-01  1.630e-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.072e+00  2.652e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.53
Ra Dec: 226.821 17.352
Photon Index (Fixed Index): 1.53 +/- 0.00
Photon Flux (Fixed Index): 8.17e-09 +/- 8.21e-09
Energy Flux (Fixed Index): 2.74e-05 +/- 2.75e-05

TS (Fixed Index): 2.53
Ra Dec: 226.821 17.352
Photon Flux Upper Limit: 3.22e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.08e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/63619/likelihoodResults_257472001_257731201_4FGL_J1507.2+1721_daily_bin70.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) = 8610.62471048
delta logL = 0.456632178228

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8610.62430284
delta logL = 0.457039820871

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    33.236       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2734       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0741       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98579       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=   8610.624     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      298 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          33.241        43.539        .69507E-04   -.21616E-03
   2  alpha         2.2737        .80309        .15385E-01   -.29190E-04
   3  Normalizat    1.0742        .25326        .35215E-03   -.60887E-04
   4  Prefactor     .98571        .16199        .23212E-03   -.28504E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 33.2412
  alpha      = 2.27369
  Normalizat = 1.07419
  Prefactor  = 0.985713
 **********
 **   18 **HESSE 
 **********

 FCN=   8610.624     FROM HESSE     STATUS=OK            25 CALLS      323 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          33.241        39.919        .13901E-04   -1.4554    
   2  alpha         2.2737        .73857        .61539E-03   -.90649E-01
   3  Normalizat    1.0742        .25349        .14086E-04   -.90585    
   4  Prefactor     .98571        .16217        .92850E-05   -.93207    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.24079e-10
Minuit parameter uncertainties:
  1  39.9508
  2  0.749854
  3  0.253776
  4  0.162251
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/63619': 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) = 8610.62430245
delta logL = 0.457040215077

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
465    Prefactor:  9.857e-01  1.623e-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.074e+00  2.538e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.44
Ra Dec: 226.821 17.352
Photon Index (Free Index): 2.27 +/- 0.75
Photon Flux (Free Index): 1.75e-08 +/- 1.84e-08
Energy Flux (Free Index): 1.67e-05 +/- 1.61e-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/63619/cmap_HighResolution_257472001_257731201_4FGL_J1507.2+1721_daily_bin70.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.08e-04', comment='SUCCESS', photon_flux='8.17e-09', energy_flux2='1.67e-05', photon_flux_error='8.21e-09', dlogl='4.57e-01', energy_flux='2.74e-05', photon_flux2='1.75e-08', job_status='DONE', time_completed='2021-09-11 01:00:49.326935', photon_index_error2='0.75', photon_index2='2.27', ts='2.53', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', photon_flux_upper_limit='3.22e-08', energy_flux_error2='1.61e-05', EG='1.07', time_epoch_completed='1631347249.33', return_code='0', job_id='63619', GAL2='0.99', EG2='1.07', return_code2='0', energy_flux_error='2.75e-05', photon_flux_error2='1.84e-08', ts2='3.44', photon_index='1.53' WHERE bin_id='70' AND source_name='4FGL J1507.2+1721' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 01:00:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0091>
Subject: Job 63619: <4FGL_J1507.2+1721_daily_bin70> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1507.2+1721_daily_bin70 226.821 17.3519 257472001 257731201 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 :                                   690.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             261.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   890 sec.
    Turnaround time :                            892 sec.

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

