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


Performing analysis on: 4FGL_J1507.2+1721_daily_bin1046
RA = 226.821, Dec = 17.3519
tmin = 510451201, tmax = 510710401
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='70263', job_status='RUN', time_executed='2021-09-11 01:01:26.214272', time_epoch_executed='1631347286.21' WHERE source_name='4FGL J1507.2+1721' and cadence='daily' and bin_id='1046'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/70263

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/70263/ft1_4FGL_J1507.2+1721_daily_bin1046.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/70263/ft2_4FGL_J1507.2+1721_daily_bin1046.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/70263/ft1_4FGL_J1507.2+1721_daily_bin1046.fits outfile=/scratch/kocevski/70263/ft1_filteredMKT_4FGL_J1507.2+1721_daily_bin1046.fits ra=226.821 dec=17.3519 rad=12.0 tmin=510451201.0 tmax=510710401.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.96
user 3.71
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/70263/ft1_filtered_4FGL_J1507.2+1721_daily_bin1046.fits evtable="EVENTS" scfile=/scratch/kocevski/70263/ft2_4FGL_J1507.2+1721_daily_bin1046.fits sctable="SC_DATA" expcube=/scratch/kocevski/70263/ltcube_510451201_510710401_4FGL_J1507.2+1721_daily_bin1046.fits outfile=/scratch/kocevski/70263/expmap_510451201_510710401_4FGL_J1507.2+1721_daily_bin1046.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/70263/ltcube_510451201_510710401_4FGL_J1507.2+1721_daily_bin1046.fits
.....................!
real 190.44
user 185.06
sys 4.81

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/70263/ft1_filtered_4FGL_J1507.2+1721_daily_bin1046.fits scfile=/scratch/kocevski/70263/ft2_4FGL_J1507.2+1721_daily_bin1046.fits outfile=/scratch/kocevski/70263/cmap_510451201_510710401_4FGL_J1507.2+1721_daily_bin1046.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.38
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    5.3169       1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.0519       1.0000         .10000E-03   10000.    
     4 'norm      '    6.8117       1.0000         .10000E-03   10000.    
     5 'norm      '    7.8054       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    12.029       1.0000         .10000E-03   10000.    
     9 'Prefactor '    15.608       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10115E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.2164       1.0000         .10000E-03   10000.    
    12 'norm      '    1.8876       1.0000         .10000E-03   10000.    
    13 'norm      '    4.5667       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    18.079       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    59.287       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0330       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0635       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=   7864.286     FROM MIGRAD    STATUS=CONVERGED    460 CALLS     2383 TOTAL
                     EDM=   .57E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.9965       -.34307E-06** at limit **
   2  norm          5.3168        2.5619       -.19423E-06    .15139E-03
   3  Prefactor     9.0513        6.8942       -.12466E-05   -.53713E-04
   4  norm          6.8114        3.3181       -.45918E-06   -.95075E-04
   5  norm          7.8046        4.7414       -.46504E-06   -.73265E-04
   6  Prefactor     .10000E-03    21.226        .35291E-05** at limit **
   7  Prefactor     .10000E-03    12.548        .32354E-05** at limit **
   8  Prefactor     12.014        18.105       -.10991E-04   -.18822E-04
   9  Prefactor     15.604        21.071        .11844E-06    .17350E-04
  10  Prefactor     .10000E-03    23.705        .50229E-05** at limit **
  11  Prefactor     2.2164        5.2998       -.11326E-05   -.48605E-03
  12  norm          1.8876        .29578       -.33559E-07    .13181E-02
  13  norm          4.5668        4.4683       -.29933E-06    .22509E-03
  14  norm          .10000E-03    19.006       -.24394E-05** at limit **
  15  Prefactor     18.038        40.360       -.75394E-04    .34749E-04
  16  Prefactor     .10000E-03    2.1357       -.23005E-06** at limit **
  17  Prefactor     59.277        35.918       -.10060E-04    .78197E-04
  18  Prefactor     .10000E-03    16.265       -.92243E-05** at limit **
  19  norm          .10000E-03    2.7155       -.95320E-09** at limit **
  20  Prefactor     .10000E-03    7.6016       -.10613E-05** at limit **
  21  Normalizat    1.0335        .21964        .10659E-04   -.16532E-03
  22  Prefactor     1.0632        .13433        .57014E-06    .37117E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 5.31675
  Prefactor  = 9.05133
  norm       = 6.81142
  norm       = 7.80457
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.0141
  Prefactor  = 15.6044
  Prefactor  = 0.0001
  Prefactor  = 2.21637
  norm       = 1.88762
  norm       = 4.56679
  norm       = 0.0001
  Prefactor  = 18.0385
  Prefactor  = 0.0001
  Prefactor  = 59.2767
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.03347
  Prefactor  = 1.06319
 **********
 **   18 **HESSE 
 **********

 FCN=   7864.286     FROM HESSE     STATUS=OK           342 CALLS     2725 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.0937        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          5.3168        2.5631        .95949E-04   -1.5247    
   3  Prefactor     9.0513        6.9077        .13322E-03   -1.5106    
   4  norm          6.8114        3.3169        .10791E-03   -1.5186    
   5  norm          7.8046        4.7443        .14353E-03   -1.5149    
   6  Prefactor     .10000E-03    21.393        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    12.592        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     12.014        18.113        .11550E-03   -1.5015    
   9  Prefactor     15.604        21.043        .10138E-03   -1.4918    
  10  Prefactor     .10000E-03    23.751        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.2164        5.2742        .27625E-03   -1.5410    
  12  norm          1.8876        .29616        .18263E-04   -1.5433    
  13  norm          4.5668        4.4741        .18098E-03   -1.5281    
  14  norm          .10000E-03    19.013        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     18.038        40.363        .94195E-04   -1.4858    
  16  Prefactor     .10000E-03    2.1403        .12656E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     59.277        35.928        .52106E-04   -1.4167    
  18  Prefactor     .10000E-03    16.322        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    2.8384        .28510E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    7.6040        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.0335        .25736        .33115E-03   -.91917    
  22  Prefactor     1.0632        .15808        .21051E-03   -.90652    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.4572e-09
Minuit parameter uncertainties:
  1  3.24112e-05
  2  2.56315
  3  6.90834
  4  3.31701
  5  4.74449
  6  1.93627e-05
  7  4.51171e-05
  8  18.1211
  9  21.0534
  10  0.00011967
  11  5.27532
  12  0.296163
  13  4.47439
  14  7.4589e-06
  15  40.4244
  16  5.66578e-06
  17  35.9408
  18  3.53022e-06
  19  4.05796e-05
  20  6.89686e-06
  21  0.257669
  22  0.158144
Done.

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

Extracting fit parameters...

4FGL J1507.2+1721
   Spectrum: LogParabola
219         norm:  1.000e-04  7.459e-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:  1.063e+00  1.581e-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.033e+00  2.577e-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.64e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.52e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/70263/likelihoodResults_510451201_510710401_4FGL_J1507.2+1721_daily_bin1046.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) = 7864.28616271
delta logL = -0.00024992192175

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7864.28591642
delta logL = -3.63343042409e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10107E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.9209       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0335       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0632       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=   7864.286     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      278 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10003E-03    616.29        .18142E-01** at limit **
   2  alpha         1.6026        2.9990        .16766        .59876E-07
   3  Normalizat    1.0335        .30814E-01    .33115E-03    .13545E-02
   4  Prefactor     1.0632        .19964E-01    .21051E-03    .20367E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.00010003
  alpha      = 1.60262
  Normalizat = 1.03348
  Prefactor  = 1.06319
 **********
 **   18 **HESSE 
 **********

 FCN=   7864.286     FROM HESSE     STATUS=OK            23 CALLS      301 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10003E-03    20.125        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.6026        2.6684        .67062E-02   -.36714    
   3  Normalizat    1.0335        .24282        .66229E-04   -.91917    
   4  Prefactor     1.0632        .15742        .42103E-04   -.90652    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.40238e-09
Minuit parameter uncertainties:
  1  0.00156597
  2  688.744
  3  0.243085
  4  0.157487
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/70263': 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) = 7864.28591278
delta logL = 1.85082171811e-09

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
465    Prefactor:  1.063e+00  1.575e-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.033e+00  2.431e-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/70263/cmap_HighResolution_510451201_510710401_4FGL_J1507.2+1721_daily_bin1046.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.52e-05', job_status='DONE', photon_flux_upper_limit='1.64e-08', time_completed='2021-09-11 01:12:18.546397', job_id='70263', GAL2='1.06', fit_tolerance='1e-08', EG2='1.03', EG='1.03', time_epoch_completed='1631347938.55', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='1.85e-09', ts2='-0.00', photon_index_error='0.00', photon_index='1.53' WHERE bin_id='1046' AND source_name='4FGL J1507.2+1721' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 01:12:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0267>
Subject: Job 70263: <4FGL_J1507.2+1721_daily_bin1046> in cluster <slac> Done

Job <4FGL_J1507.2+1721_daily_bin1046> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Sep 11 01:01:05 2021
Job was executed on host(s) <bullet0267>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 01:01:08 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:08 2021
Terminated at Sat Sep 11 01:12:20 2021
Results reported at Sat Sep 11 01:12:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1507.2+1721_daily_bin1046 226.821 17.3519 510451201 510710401 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 :                                   649.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             335.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   671 sec.
    Turnaround time :                            675 sec.

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

