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


Performing analysis on: 4FGL_J1507.2+1721_daily_bin1581
RA = 226.821, Dec = 17.3519
tmin = 649123201, tmax = 649382401
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='72321', job_status='RUN', time_executed='2021-09-11 01:08:29.481967', time_epoch_executed='1631347709.48' WHERE source_name='4FGL J1507.2+1721' and cadence='daily' and bin_id='1581'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/72321

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/72321/ft1_4FGL_J1507.2+1721_daily_bin1581.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/72321/ft2_4FGL_J1507.2+1721_daily_bin1581.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/72321/ft1_4FGL_J1507.2+1721_daily_bin1581.fits outfile=/scratch/kocevski/72321/ft1_filteredMKT_4FGL_J1507.2+1721_daily_bin1581.fits ra=226.821 dec=17.3519 rad=12.0 tmin=649123201.0 tmax=649382401.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.33
user 2.77
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/72321/ft1_filtered_4FGL_J1507.2+1721_daily_bin1581.fits" evtable="EVENTS" scfile=/scratch/kocevski/72321/ft2_4FGL_J1507.2+1721_daily_bin1581.fits sctable="SC_DATA" outfile=/scratch/kocevski/72321/ltcube_649123201_649382401_4FGL_J1507.2+1721_daily_bin1581.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/72321/ft2_4FGL_J1507.2+1721_daily_bin1581.fits
.....................!
real 12.09
user 11.75
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/72321/ft1_filtered_4FGL_J1507.2+1721_daily_bin1581.fits evtable="EVENTS" scfile=/scratch/kocevski/72321/ft2_4FGL_J1507.2+1721_daily_bin1581.fits sctable="SC_DATA" expcube=/scratch/kocevski/72321/ltcube_649123201_649382401_4FGL_J1507.2+1721_daily_bin1581.fits outfile=/scratch/kocevski/72321/expmap_649123201_649382401_4FGL_J1507.2+1721_daily_bin1581.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/72321/ltcube_649123201_649382401_4FGL_J1507.2+1721_daily_bin1581.fits
.....................!
real 191.36
user 186.76
sys 3.92

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/72321/ft1_filtered_4FGL_J1507.2+1721_daily_bin1581.fits scfile=/scratch/kocevski/72321/ft2_4FGL_J1507.2+1721_daily_bin1581.fits outfile=/scratch/kocevski/72321/cmap_649123201_649382401_4FGL_J1507.2+1721_daily_bin1581.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/72321/ft1_filtered_4FGL_J1507.2+1721_daily_bin1581.fits scfile=/scratch/kocevski/72321/ft2_4FGL_J1507.2+1721_daily_bin1581.fits outfile=/scratch/kocevski/72321/cmap_HighResolution_649123201_649382401_4FGL_J1507.2+1721_daily_bin1581.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.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .88411       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.6953       1.0000         .10000E-03   10000.    
     4 'norm      '    6.7985       1.0000         .10000E-03   10000.    
     5 'norm      '    9.0769       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.7013       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .16500E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .86056       1.0000         .10000E-03   10000.    
    12 'norm      '    .47465E-01   1.0000         .10000E-03   10000.    
    13 'norm      '    2.9962       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    28.280       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10479E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    3.8014       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .78853       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.3086       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=   11056.15     FROM MIGRAD    STATUS=CONVERGED    483 CALLS     2383 TOTAL
                     EDM=   .54E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.4980       -.82473E-07** at limit **
   2  norm          .88377        1.5178        .60366E-06    .47928E-03
   3  Prefactor     1.6940        4.7965        .81530E-06   -.36753E-03
   4  norm          6.7987        2.4756       -.53389E-07   -.86367E-04
   5  norm          9.0775        4.4728        .69319E-07    .64682E-05
   6  Prefactor     4.7003        12.813       -.73401E-07   -.21375E-04
   7  Prefactor     .10000E-03    3.8551        .28862E-07** at limit **
   8  Prefactor     .10000E-03    4.4477       -.64822E-07** at limit **
   9  Prefactor     .10000E-03    13.136       -.35574E-06** at limit **
  10  Prefactor     .10000E-03    7.1887        .17324E-08** at limit **
  11  Prefactor     .85996        5.1173        .32271E-05   -.47739E-03
  12  norm          .47468E-01    .82019E-01    .12050E-06    .13158E-02
  13  norm          2.9961        3.3448       -.23714E-06   -.11925E-03
  14  norm          .10000E-03    10.962       -.29361E-06** at limit **
  15  Prefactor     .10000E-03    12.240        .34816E-06** at limit **
  16  Prefactor     .10000E-03    1.8146        .44286E-07** at limit **
  17  Prefactor     28.257        27.966       -.35053E-05   -.37334E-03
  18  Prefactor     .10000E-03    46.898        .39836E-06** at limit **
  19  norm          3.8015        1.9570        .27754E-07    .90490E-05
  20  Prefactor     .10000E-03    11.504        .34115E-06** at limit **
  21  Normalizat    .78838        .17996        .10136E-06   -.13667E-03
  22  Prefactor     1.3087        .11436       -.31381E-06   -.10144E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.883769
  Prefactor  = 1.69402
  norm       = 6.79871
  norm       = 9.07746
  Prefactor  = 4.70027
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.859961
  norm       = 0.0474679
  norm       = 2.99607
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.2569
  Prefactor  = 0.0001
  norm       = 3.80147
  Prefactor  = 0.0001
  Normalizat = 0.788382
  Prefactor  = 1.30866
 **********
 **   18 **HESSE 
 **********

 FCN=   11056.15     FROM HESSE     STATUS=OK           348 CALLS     2731 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.5218        .16219E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .88377        1.3018        .17313E-02   -1.5520    
   3  Prefactor     1.6940        4.8833        .32320E-03   -1.5448    
   4  norm          6.7987        2.4722        .95877E-04   -1.5186    
   5  norm          9.0775        4.4676        .13303E-03   -1.5105    
   6  Prefactor     4.7003        12.764        .18559E-03   -1.5274    
   7  Prefactor     .10000E-03    3.8578        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    26.296        .42673E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    13.229        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.1901        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .85996        5.2773        .46905E-03   -1.5523    
  12  norm          .47468E-01    .72557E-01    .39206E-03   -1.5664    
  13  norm          2.9961        3.3482        .19833E-03   -1.5362    
  14  norm          .10000E-03    10.967        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    12.264        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.8212        .13831E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     28.257        29.438        .75336E-04   -1.4644    
  18  Prefactor     .10000E-03    47.454        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.8015        1.9582        .10264E-03   -1.5318    
  20  Prefactor     .10000E-03    11.524        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .78838        .20496        .35449E-03   -1.0050    
  22  Prefactor     1.3087        .13154        .18687E-03   -.83050    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.28614e-09
Minuit parameter uncertainties:
  1  1.36974e-06
  2  1.30184
  3  4.88442
  4  2.47226
  5  4.46776
  6  12.7716
  7  6.36035e-07
  8  0.000262486
  9  3.64618e-05
  10  1.53325e-06
  11  4.26095
  12  0.072557
  13  3.34845
  14  2.78329e-05
  15  4.66068e-05
  16  8.44937e-07
  17  29.4533
  18  0.000208782
  19  1.95826
  20  3.52963e-05
  21  0.205161
  22  0.131574
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
465    Prefactor:  1.309e+00  1.316e-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:  7.884e-01  2.052e-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.06e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.56e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/72321/likelihoodResults_649123201_649382401_4FGL_J1507.2+1721_daily_bin1581.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) = 11056.1486028
delta logL = -0.000407075192925

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 11056.1481958
delta logL = 1.23691279441e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5311       1.0000          .0000       5.0000    
     3 'Normalizat'    .78838       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3087       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=   11056.15     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      239 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2175.3        .18142E-02** at limit **
   2  alpha         1.4154        2.9717        .18386       -.30917E-08
   3  Normalizat    .78838        .10491        .35448E-03   -.26189E-03
   4  Prefactor     1.3087        .69836E-01    .18687E-03   -.37655E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.41539
  Normalizat = 0.788382
  Prefactor  = 1.30866
 **********
 **   18 **HESSE 
 **********

 FCN=   11056.15     FROM HESSE     STATUS=OK            23 CALLS      262 TOTAL
                     EDM=   .94E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    11.039        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.4154        3.0736        .73543E-02   -.44875    
   3  Normalizat    .78838        .19606        .14179E-04   -1.0050    
   4  Prefactor     1.3087        .13057        .37375E-04   -.83050    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.37447e-11
Minuit parameter uncertainties:
  1  5.50229e-05
  2  484.771
  3  0.196241
  4  0.130604
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/72321': 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) = 11056.1481957
delta logL = 2.91929609375e-08

Extracting fit parameters...

4FGL J1507.2+1721
   Spectrum: LogParabola
219         norm:  1.000e-04  5.502e-05  1.000e-04  1.000e+04 ( 1.000e-14)
220        alpha:  1.415e+00  4.848e+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.309e+00  1.306e-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:  7.884e-01  1.962e-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/72321/cmap_HighResolution_649123201_649382401_4FGL_J1507.2+1721_daily_bin1581.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.56e-05', job_status='DONE', photon_flux_upper_limit='1.06e-08', time_completed='2021-09-11 01:21:26.347862', job_id='72321', GAL2='1.31', fit_tolerance='1e-08', EG2='0.79', EG='0.79', time_epoch_completed='1631348486.35', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.31', dlogl='2.92e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.53' WHERE bin_id='1581' AND source_name='4FGL J1507.2+1721' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 01:21:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0290>
Subject: Job 72321: <4FGL_J1507.2+1721_daily_bin1581> in cluster <slac> Done

Job <4FGL_J1507.2+1721_daily_bin1581> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep 11 01:06:24 2021
Job was executed on host(s) <bullet0290>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 01:06:26 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:06:26 2021
Terminated at Sat Sep 11 01:21:27 2021
Results reported at Sat Sep 11 01:21:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1507.2+1721_daily_bin1581 226.821 17.3519 649123201 649382401 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 :                                   766.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             342.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   900 sec.
    Turnaround time :                            903 sec.

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

