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


Performing analysis on: 4FGL_J1507.2+1721_daily_bin5
RA = 226.821, Dec = 17.3519
tmin = 240624001, tmax = 240883201
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='62141', job_status='RUN', time_executed='2021-09-11 00:43:02.585081', time_epoch_executed='1631346182.59' WHERE source_name='4FGL J1507.2+1721' and cadence='daily' and bin_id='5'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/62141

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

Retrieving the FT1 file...

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

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

Retrieving 44 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/62141/ft1_4FGL_J1507.2+1721_daily_bin5.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/62141/ft2_4FGL_J1507.2+1721_daily_bin5.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/62141/ft1_4FGL_J1507.2+1721_daily_bin5.fits outfile=/scratch/kocevski/62141/ft1_filteredMKT_4FGL_J1507.2+1721_daily_bin5.fits ra=226.821 dec=17.3519 rad=12.0 tmin=240624001.0 tmax=240883201.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 1.39
user 1.19
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/62141/ft2_4FGL_J1507.2+1721_daily_bin5.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/62141/ft1_filteredMKT_4FGL_J1507.2+1721_daily_bin5.fits evtable="EVENTS" outfile="/scratch/kocevski/62141/ft1_filtered_4FGL_J1507.2+1721_daily_bin5.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/62141/ft1_filtered_4FGL_J1507.2+1721_daily_bin5.fits" evtable="EVENTS" scfile=/scratch/kocevski/62141/ft2_4FGL_J1507.2+1721_daily_bin5.fits sctable="SC_DATA" outfile=/scratch/kocevski/62141/ltcube_240624001_240883201_4FGL_J1507.2+1721_daily_bin5.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/62141/ft2_4FGL_J1507.2+1721_daily_bin5.fits
.....................!
real 12.49
user 12.15
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/62141/ft1_filtered_4FGL_J1507.2+1721_daily_bin5.fits evtable="EVENTS" scfile=/scratch/kocevski/62141/ft2_4FGL_J1507.2+1721_daily_bin5.fits sctable="SC_DATA" expcube=/scratch/kocevski/62141/ltcube_240624001_240883201_4FGL_J1507.2+1721_daily_bin5.fits outfile=/scratch/kocevski/62141/expmap_240624001_240883201_4FGL_J1507.2+1721_daily_bin5.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/62141/ltcube_240624001_240883201_4FGL_J1507.2+1721_daily_bin5.fits
.....................!
real 190.64
user 185.27
sys 4.95

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/62141/ft1_filtered_4FGL_J1507.2+1721_daily_bin5.fits scfile=/scratch/kocevski/62141/ft2_4FGL_J1507.2+1721_daily_bin5.fits outfile=/scratch/kocevski/62141/cmap_240624001_240883201_4FGL_J1507.2+1721_daily_bin5.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.52
user 0.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/62141/ft1_filtered_4FGL_J1507.2+1721_daily_bin5.fits scfile=/scratch/kocevski/62141/ft2_4FGL_J1507.2+1721_daily_bin5.fits outfile=/scratch/kocevski/62141/cmap_HighResolution_240624001_240883201_4FGL_J1507.2+1721_daily_bin5.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    5.2541       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .21888E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .16042E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.352       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10122E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.8935       1.0000         .10000E-03   10000.    
    12 'norm      '    2.0211       1.0000         .10000E-03   10000.    
    13 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10040E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.533       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10578E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10203E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    1.5165       1.0000         .10000E-03   10000.    
    20 'Prefactor '    10.751       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1841       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .99130       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=   10362.05     FROM MIGRAD    STATUS=CONVERGED    490 CALLS     2062 TOTAL
                     EDM=   .71E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.5195       -.16107E-07** at limit **
   2  norm          5.2538        2.5710        .19667E-07    .51962E-07
   3  Prefactor     .10000E-03    2.7340        .28133E-07** at limit **
   4  norm          .10000E-03    .82057       -.13838E-07** at limit **
   5  norm          .10000E-03    1.6522       -.49652E-07** at limit **
   6  Prefactor     .10000E-03    81.684        .29356E-05** at limit **
   7  Prefactor     .10000E-03    12.176       -.25756E-06** at limit **
   8  Prefactor     11.367        15.126        .79439E-06    .48439E-04
   9  Prefactor     .10000E-03    11.734        .34634E-06** at limit **
  10  Prefactor     .10000E-03    21.080        .13799E-06** at limit **
  11  Prefactor     5.8926        8.2325        .38898E-05   -.66029E-03
  12  norm          2.0211        .25928        .12152E-07   -.41130E-03
  13  norm          .10000E-03    1.9300        .54578E-08** at limit **
  14  norm          .10000E-03    61.410       -.28403E-05** at limit **
  15  Prefactor     .10000E-03    13.156       -.10374E-06** at limit **
  16  Prefactor     11.533        7.3082        .40163E-07   -.24708E-04
  17  Prefactor     .10001E-03    77.651        .37498E-05** at limit **
  18  Prefactor     .10000E-03    10.094        .22044E-06** at limit **
  19  norm          1.5169        1.6863        .87673E-07   -.19299E-03
  20  Prefactor     10.827        26.119        .56378E-05    .35128E-03
  21  Normalizat    1.1843        .18350       -.46029E-06   -.13517E-03
  22  Prefactor     .99129        .11394       -.47857E-06   -.13982E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 5.25384
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 11.3668
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.89262
  norm       = 2.0211
  norm       = 0.0001
  norm       = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 11.5326
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  norm       = 1.51688
  Prefactor  = 10.8267
  Normalizat = 1.18427
  Prefactor  = 0.991289
 **********
 **   18 **HESSE 
 **********

 FCN=   10362.05     FROM HESSE     STATUS=OK           338 CALLS     2400 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.5211        .12253E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          5.2538        2.5724        .11117E-03   -1.5250    
   3  Prefactor     .10000E-03    8.5051        .32469E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    .84588        .18004E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.6734        .12776E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    84.951        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    12.232        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     11.367        15.149        .11890E-03   -1.5034    
   9  Prefactor     .10000E-03    11.761        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    21.116        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.8926        8.5158        .82710E-03   -1.5222    
  12  norm          2.0211        .25967        .17637E-04   -1.5424    
  13  norm          .10000E-03    1.9369        .13811E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    62.253        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    13.168        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     11.533        7.3088        .11796E-03   -1.5029    
  17  Prefactor     .10001E-03    81.170        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    10.108        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.5169        1.6703        .13461E-03   -1.5462    
  20  Prefactor     10.827        27.869        .12219E-03   -1.5050    
  21  Normalizat    1.1843        .22154        .31233E-03   -.87090    
  22  Prefactor     .99129        .13797        .21268E-03   -.93020    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.6376e-09
Minuit parameter uncertainties:
  1  1.0784e-07
  2  2.57244
  3  8.26708e-05
  4  9.08535e-07
  5  1.35996e-07
  6  0.00108798
  7  3.25358e-05
  8  15.154
  9  4.88176e-05
  10  2.46354e-05
  11  8.51751
  12  0.259666
  13  1.21565e-06
  14  0.00099506
  15  1.03337e-05
  16  7.30941
  17  0.0013908
  18  3.67098e-05
  19  1.67031
  20  27.9029
  21  0.221717
  22  0.138023
Done.

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

Extracting fit parameters...

4FGL J1507.2+1721
   Spectrum: LogParabola
219         norm:  1.000e-04  9.951e-04  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.913e-01  1.380e-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.184e+00  2.217e-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.94e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.50e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/62141/likelihoodResults_240624001_240883201_4FGL_J1507.2+1721_daily_bin5.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) = 10362.0459903
delta logL = -7.64356045693e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10362.045914
delta logL = -1.4897523215e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10042E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5038       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1843       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99129       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=   10362.05     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      279 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10006E-03    303.60        .18142E-02** at limit **
   2  alpha         1.6401        3.3181        .50000       -.13160E-04
   3  Normalizat    1.1843        .21560        .31233E-03   -.10417E-03
   4  Prefactor     .99129        .13658        .21268E-03   -.23988E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100064
  alpha      = 1.64007
  Normalizat = 1.18427
  Prefactor  = 0.991288
 **********
 **   18 **HESSE 
 **********

 FCN=   10362.05     FROM HESSE     STATUS=OK            29 CALLS      308 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10006E-03    190.61        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.6401        3.2922        .50000       -.35114    
   3  Normalizat    1.1843        .21583        .12493E-04   -.87090    
   4  Prefactor     .99129        .13673        .42537E-04   -.93020    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.46855e-10
Minuit parameter uncertainties:
  1  0.00701007
  2  2.36662
  3  0.215996
  4  0.136774
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/62141': 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) = 10362.0459133
delta logL = 5.56286977371e-07

Extracting fit parameters...

4FGL J1507.2+1721
   Spectrum: LogParabola
219         norm:  1.001e-04  7.010e-03  1.000e-04  1.000e+04 ( 1.000e-14)
220        alpha:  1.640e+00  2.367e+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.913e-01  1.368e-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.184e+00  2.160e-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/62141/cmap_HighResolution_240624001_240883201_4FGL_J1507.2+1721_daily_bin5.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.50e-05', job_status='DONE', photon_flux_upper_limit='1.94e-08', time_completed='2021-09-11 00:54:53.811802', job_id='62141', GAL2='0.99', fit_tolerance='1e-08', EG2='1.18', EG='1.18', time_epoch_completed='1631346893.81', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='5.56e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.53' WHERE bin_id='5' AND source_name='4FGL J1507.2+1721' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 00:54:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0279>
Subject: Job 62141: <4FGL_J1507.2+1721_daily_bin5> in cluster <slac> Done

Job <4FGL_J1507.2+1721_daily_bin5> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Sep 11 00:41:20 2021
Job was executed on host(s) <bullet0279>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 00:41:21 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 11 00:41:21 2021
Terminated at Sat Sep 11 00:54:54 2021
Results reported at Sat Sep 11 00:54:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1507.2+1721_daily_bin5 226.821 17.3519 240624001 240883201 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 :                                   708.29 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             309.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   813 sec.
    Turnaround time :                            814 sec.

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

