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


Performing analysis on: 4FGL_J1507.2+1721_daily_bin842
RA = 226.821, Dec = 17.3519
tmin = 457574401, tmax = 457833601
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='68782', job_status='RUN', time_executed='2021-09-11 00:56:55.687097', time_epoch_executed='1631347015.69' WHERE source_name='4FGL J1507.2+1721' and cadence='daily' and bin_id='842'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/68782

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/68782/ft1_4FGL_J1507.2+1721_daily_bin842.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/68782/ft2_4FGL_J1507.2+1721_daily_bin842.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/68782/ft1_4FGL_J1507.2+1721_daily_bin842.fits outfile=/scratch/kocevski/68782/ft1_filteredMKT_4FGL_J1507.2+1721_daily_bin842.fits ra=226.821 dec=17.3519 rad=12.0 tmin=457574401.0 tmax=457833601.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.09
user 4.81
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/68782/ft2_4FGL_J1507.2+1721_daily_bin842.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/68782/ft1_filteredMKT_4FGL_J1507.2+1721_daily_bin842.fits evtable="EVENTS" outfile="/scratch/kocevski/68782/ft1_filtered_4FGL_J1507.2+1721_daily_bin842.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/68782/ft1_filtered_4FGL_J1507.2+1721_daily_bin842.fits" evtable="EVENTS" scfile=/scratch/kocevski/68782/ft2_4FGL_J1507.2+1721_daily_bin842.fits sctable="SC_DATA" outfile=/scratch/kocevski/68782/ltcube_457574401_457833601_4FGL_J1507.2+1721_daily_bin842.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/68782/ft2_4FGL_J1507.2+1721_daily_bin842.fits
.....................!
real 11.66
user 11.28
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/68782/ft1_filtered_4FGL_J1507.2+1721_daily_bin842.fits evtable="EVENTS" scfile=/scratch/kocevski/68782/ft2_4FGL_J1507.2+1721_daily_bin842.fits sctable="SC_DATA" expcube=/scratch/kocevski/68782/ltcube_457574401_457833601_4FGL_J1507.2+1721_daily_bin842.fits outfile=/scratch/kocevski/68782/expmap_457574401_457833601_4FGL_J1507.2+1721_daily_bin842.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/68782/ltcube_457574401_457833601_4FGL_J1507.2+1721_daily_bin842.fits
.....................!
real 191.05
user 185.53
sys 5.05

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/68782/ft1_filtered_4FGL_J1507.2+1721_daily_bin842.fits scfile=/scratch/kocevski/68782/ft2_4FGL_J1507.2+1721_daily_bin842.fits outfile=/scratch/kocevski/68782/cmap_457574401_457833601_4FGL_J1507.2+1721_daily_bin842.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.54
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/68782/ft1_filtered_4FGL_J1507.2+1721_daily_bin842.fits scfile=/scratch/kocevski/68782/ft2_4FGL_J1507.2+1721_daily_bin842.fits outfile=/scratch/kocevski/68782/cmap_HighResolution_457574401_457833601_4FGL_J1507.2+1721_daily_bin842.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.55
user 0.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    14.919       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .33421       1.0000         .10000E-03   10000.    
     4 'norm      '    5.9070       1.0000         .10000E-03   10000.    
     5 'norm      '    47.179       1.0000         .10000E-03   10000.    
     6 'Prefactor '    22.181       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    16.616       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    66.854       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    6.0186       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    17.206       1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.5742       1.0000         .10000E-03   10000.    
    17 'Prefactor '    25.571       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .83527       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .99124       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=   7955.994     FROM MIGRAD    STATUS=CONVERGED    459 CALLS     2316 TOTAL
                     EDM=   .38E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.5686        .38467E-06** at limit **
   2  norm          14.920        5.7243        .76802E-06   -.12510E-03
   3  Prefactor     .38220        5.1331        .21647E-05   -.49817E-04
   4  norm          5.9054        4.1738       -.11400E-05   -.61540E-03
   5  norm          47.183        10.956       -.36262E-07   -.48171E-04
   6  Prefactor     22.159        39.983       -.35450E-04   -.10968E-03
   7  Prefactor     .10000E-03    10.095        .12216E-06** at limit **
   8  Prefactor     16.616        20.519        .89488E-06   -.57873E-04
   9  Prefactor     .10000E-03    25.910        .14910E-05** at limit **
  10  Prefactor     66.863        57.543        .10561E-04   -.17243E-04
  11  Prefactor     .10000E-03    3.2151        .14401E-06** at limit **
  12  norm          6.0188        .50781       -.48496E-07   -.16530E-03
  13  norm          .10000E-03    2.2940       -.30004E-07** at limit **
  14  norm          .10000E-03    26.197        .15551E-05** at limit **
  15  Prefactor     17.213        39.497        .14255E-04   -.51770E-05
  16  Prefactor     9.5773        10.078       -.51346E-06   -.53002E-04
  17  Prefactor     25.567        44.597       -.24168E-05   -.65956E-05
  18  Prefactor     .10000E-03    21.716       -.95079E-06** at limit **
  19  norm          .10000E-03    1.3632       -.13211E-06** at limit **
  20  Prefactor     .10000E-03    21.544       -.12143E-07** at limit **
  21  Normalizat    .83476        .26419        .55567E-05   -.32691E-03
  22  Prefactor     .99143        .14488       -.97095E-06   -.13795E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 14.9201
  Prefactor  = 0.3822
  norm       = 5.90539
  norm       = 47.1831
  Prefactor  = 22.1594
  Prefactor  = 0.0001
  Prefactor  = 16.6161
  Prefactor  = 0.000100002
  Prefactor  = 66.8629
  Prefactor  = 0.0001
  norm       = 6.01878
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 17.213
  Prefactor  = 9.57729
  Prefactor  = 25.567
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.834757
  Prefactor  = 0.991427
 **********
 **   18 **HESSE 
 **********

 FCN=   7955.994     FROM HESSE     STATUS=OK           340 CALLS     2656 TOTAL
                     EDM=   .28E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.5757        .16450E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          14.920        5.7252        .10369E-03   -1.4935    
   3  Prefactor     .38220        63.191        .36618E-02   -1.5584    
   4  norm          5.9054        4.1775        .14396E-03   -1.5222    
   5  norm          47.183        10.988        .58376E-04   -1.4333    
   6  Prefactor     22.159        40.004        .85048E-04   -1.4766    
   7  Prefactor     .10000E-03    10.101        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     16.616        20.496        .98255E-04   -1.4892    
   9  Prefactor     .10000E-03    25.987        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     66.863        57.565        .49087E-04   -1.4071    
  11  Prefactor     .10000E-03    3.2188        .15619E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          6.0188        .50901        .17515E-04   -1.5217    
  13  norm          .10000E-03    2.2952        .13194E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    26.209        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     17.213        39.536        .96557E-04   -1.4878    
  16  Prefactor     9.5773        10.092        .12951E-03   -1.5089    
  17  Prefactor     25.567        44.725        .79219E-04   -1.4696    
  18  Prefactor     .10000E-03    21.763        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    1.4017        .20332E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    21.613        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .83476        .30759        .42754E-03   -.98792    
  22  Prefactor     .99143        .16842        .23655E-03   -.93016    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.81216e-08
Minuit parameter uncertainties:
  1  7.98322e-07
  2  5.72544
  3  9.83818
  4  4.17768
  5  10.9884
  6  40.052
  7  4.36296e-06
  8  20.5048
  9  0.000447737
  10  57.6126
  11  1.15779e-06
  12  0.509007
  13  1.18654e-07
  14  9.56927e-06
  15  39.5957
  16  10.0936
  17  44.7838
  18  3.89237e-05
  19  3.1412e-06
  20  1.87525e-05
  21  0.308237
  22  0.16851
Done.

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

Extracting fit parameters...

4FGL J1507.2+1721
   Spectrum: LogParabola
219         norm:  1.000e-04  9.569e-06  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.914e-01  1.685e-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:  8.348e-01  3.082e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/68782/likelihoodResults_457574401_457833601_4FGL_J1507.2+1721_daily_bin842.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) = 7955.99426533
delta logL = -0.000180321134394

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7955.99408526
delta logL = -2.56997736869e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10529E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.0080       1.0000          .0000       5.0000    
     3 'Normalizat'    .83485       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99137       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=   7955.994     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      262 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    27.291        .36285E-03** at limit **
   2  alpha         3.0481        3.6638        .50000       -.99805E-05
   3  Normalizat    .83476        .27292        .42753E-03   -.11227E-03
   4  Prefactor     .99142        .16493        .23655E-03   -.13529E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100003
  alpha      = 3.04812
  Normalizat = 0.834762
  Prefactor  = 0.991423
 **********
 **   18 **HESSE 
 **********

 FCN=   7955.994     FROM HESSE     STATUS=OK            29 CALLS      291 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    26.623        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         3.0481        3.6527        .50000        .22105    
   3  Normalizat    .83476        .27311        .17101E-04   -.98792    
   4  Prefactor     .99142        .16505        .47311E-04   -.93016    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.30077e-10
Minuit parameter uncertainties:
  1  0.000542678
  2  2.44048
  3  0.273565
  4  0.165135
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/68782': 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) = 7955.99408496
delta logL = 4.79431037093e-08

Extracting fit parameters...

4FGL J1507.2+1721
   Spectrum: LogParabola
219         norm:  1.000e-04  5.427e-04  1.000e-04  1.000e+04 ( 1.000e-14)
220        alpha:  3.048e+00  2.440e+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.914e-01  1.651e-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:  8.348e-01  2.736e-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/68782/cmap_HighResolution_457574401_457833601_4FGL_J1507.2+1721_daily_bin842.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.01e-05', job_status='DONE', photon_flux_upper_limit='2.09e-08', time_completed='2021-09-11 01:07:50.468912', job_id='68782', GAL2='0.99', fit_tolerance='1e-08', EG2='0.83', EG='0.83', time_epoch_completed='1631347670.47', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='4.79e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.53' WHERE bin_id='842' AND source_name='4FGL J1507.2+1721' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 01:07:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0283>
Subject: Job 68782: <4FGL_J1507.2+1721_daily_bin842> in cluster <slac> Done

Job <4FGL_J1507.2+1721_daily_bin842> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep 11 00:56:40 2021
Job was executed on host(s) <bullet0283>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 00:56:41 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:56:41 2021
Terminated at Sat Sep 11 01:07:51 2021
Results reported at Sat Sep 11 01:07:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1507.2+1721_daily_bin842 226.821 17.3519 457574401 457833601 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 :                                   639.17 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             334.05 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   669 sec.
    Turnaround time :                            671 sec.

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

