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


Performing analysis on: 4FGL_J1507.2+1721_daily_bin58
RA = 226.821, Dec = 17.3519
tmin = 254361601, tmax = 254620801
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='63607', job_status='RUN', time_executed='2021-09-11 00:48:01.232294', time_epoch_executed='1631346481.23' WHERE source_name='4FGL J1507.2+1721' and cadence='daily' and bin_id='58'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/63607

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/63607/ft1_4FGL_J1507.2+1721_daily_bin58.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/63607/ft2_4FGL_J1507.2+1721_daily_bin58.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/63607/ft1_4FGL_J1507.2+1721_daily_bin58.fits outfile=/scratch/kocevski/63607/ft1_filteredMKT_4FGL_J1507.2+1721_daily_bin58.fits ra=226.821 dec=17.3519 rad=12.0 tmin=254361601.0 tmax=254620801.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.48
user 1.24
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/63607/ft1_filtered_4FGL_J1507.2+1721_daily_bin58.fits" evtable="EVENTS" scfile=/scratch/kocevski/63607/ft2_4FGL_J1507.2+1721_daily_bin58.fits sctable="SC_DATA" outfile=/scratch/kocevski/63607/ltcube_254361601_254620801_4FGL_J1507.2+1721_daily_bin58.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/63607/ft2_4FGL_J1507.2+1721_daily_bin58.fits
.....................!
real 13.51
user 13.12
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/63607/ft1_filtered_4FGL_J1507.2+1721_daily_bin58.fits evtable="EVENTS" scfile=/scratch/kocevski/63607/ft2_4FGL_J1507.2+1721_daily_bin58.fits sctable="SC_DATA" expcube=/scratch/kocevski/63607/ltcube_254361601_254620801_4FGL_J1507.2+1721_daily_bin58.fits outfile=/scratch/kocevski/63607/expmap_254361601_254620801_4FGL_J1507.2+1721_daily_bin58.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/63607/ltcube_254361601_254620801_4FGL_J1507.2+1721_daily_bin58.fits
.....................!
real 190.18
user 185.02
sys 4.65

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/63607/ft1_filtered_4FGL_J1507.2+1721_daily_bin58.fits scfile=/scratch/kocevski/63607/ft2_4FGL_J1507.2+1721_daily_bin58.fits outfile=/scratch/kocevski/63607/cmap_254361601_254620801_4FGL_J1507.2+1721_daily_bin58.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.61
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/63607/ft1_filtered_4FGL_J1507.2+1721_daily_bin58.fits scfile=/scratch/kocevski/63607/ft2_4FGL_J1507.2+1721_daily_bin58.fits outfile=/scratch/kocevski/63607/cmap_HighResolution_254361601_254620801_4FGL_J1507.2+1721_daily_bin58.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/63607/ft1_filtered_4FGL_J1507.2+1721_daily_bin58.fits evtable="EVENTS" scfile=/scratch/kocevski/63607/ft2_4FGL_J1507.2+1721_daily_bin58.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/63607/Model_4FGL_J1507.2+1721_daily_bin58.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/63607/ft1_filtered_4FGL_J1507.2+1721_daily_bin58.fits.....................!
real 81.75
user 80.27
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    7.0636       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .65948E-02   1.0000         .10000E-03   10000.    
     4 'norm      '    2.1611       1.0000         .10000E-03   10000.    
     5 'norm      '    1.3316       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10304E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10532E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.4327       1.0000         .10000E-03   10000.    
    12 'norm      '    5.9288       1.0000         .10000E-03   10000.    
    13 'norm      '    4.5724       1.0000         .10000E-03   10000.    
    14 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    62.155       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .39800E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10270E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    19.870       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .68405       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.2745       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=   11656.37     FROM MIGRAD    STATUS=CONVERGED    469 CALLS     2359 TOTAL
                     EDM=   .52E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.6127       -.30022E-07** at limit **
   2  norm          7.0639        2.6978       -.22127E-07    .14988E-03
   3  Prefactor     .10005E-03    2.4665        .12110E-06** at limit **
   4  norm          2.1615        2.2804       -.37747E-06   -.89993E-03
   5  norm          1.3312        2.2822       -.39272E-06   -.80996E-03
   6  Prefactor     .10000E-03    14.605       -.75879E-05** at limit **
   7  Prefactor     .10000E-03    7.3868       -.49016E-06** at limit **
   8  Prefactor     .10000E-03    6.5495        .14320E-06** at limit **
   9  Prefactor     .10000E-03    24.975        .10195E-04** at limit **
  10  Prefactor     .10000E-03    27.621       -.13633E-05** at limit **
  11  Prefactor     2.4340        7.6327       -.87876E-06   -.36203E-03
  12  norm          5.9289        .40035       -.15798E-07    .17509E-03
  13  norm          4.5715        5.8342       -.27345E-06   -.25938E-03
  14  norm          .10000E-03    12.021        .37404E-05** at limit **
  15  Prefactor     62.140        42.259       -.15287E-04    .15812E-04
  16  Prefactor     .10000E-03    3.4787       -.32972E-06** at limit **
  17  Prefactor     .10000E-03    17.985        .24039E-05** at limit **
  18  Prefactor     .10000E-03    29.025       -.11145E-04** at limit **
  19  norm          .10000E-03    .58056       -.15915E-07** at limit **
  20  Prefactor     19.869        24.575       -.63996E-06    .32653E-04
  21  Normalizat    .68387        .19962        .33214E-05    .24872E-04
  22  Prefactor     1.2746        .12444        .15910E-06    .17588E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 7.0639
  Prefactor  = 0.000100049
  norm       = 2.16151
  norm       = 1.33116
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.43397
  norm       = 5.92886
  norm       = 4.57146
  norm       = 0.0001
  Prefactor  = 62.1397
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 19.8691
  Normalizat = 0.683873
  Prefactor  = 1.27457
 **********
 **   18 **HESSE 
 **********

 FCN=   11656.37     FROM HESSE     STATUS=OK           348 CALLS     2707 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.6351        .17036E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          7.0639        2.6979        .10683E-03   -1.5176    
   3  Prefactor     .10005E-03    2.5919        .56845E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.1615        2.2741        .16147E-03   -1.5414    
   5  norm          1.3312        2.2470        .20846E-03   -1.5477    
   6  Prefactor     .10000E-03    14.737        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.4004        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.5847        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    25.182        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    27.689        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.4340        7.6485        .26236E-03   -1.5396    
  12  norm          5.9289        .40027        .16869E-04   -1.5221    
  13  norm          4.5715        5.8371        .18825E-03   -1.5280    
  14  norm          .10000E-03    12.018        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     62.140        42.097        .50897E-04   -1.4130    
  16  Prefactor     .10000E-03    18.289        .38508E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    18.056        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    29.129        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    .58702        .80309E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     19.869        24.579        .89854E-04   -1.4816    
  21  Normalizat    .68387        .22816        .43562E-03   -1.0453    
  22  Prefactor     1.2746        .14527        .21176E-03   -.84066    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.08344e-09
Minuit parameter uncertainties:
  1  6.61878e-06
  2  2.69791
  3  0.000713995
  4  2.27416
  5  2.24711
  6  1.72618e-06
  7  8.30926e-06
  8  9.50349e-06
  9  5.81794e-05
  10  1.36336e-05
  11  7.65157
  12  0.40027
  13  5.83787
  14  1.75698e-06
  15  42.1167
  16  0.000269885
  17  2.39798e-05
  18  3.6105e-05
  19  8.09606e-07
  20  24.5915
  21  0.228481
  22  0.145314
Done.

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

Extracting fit parameters...

4FGL J1507.2+1721
   Spectrum: LogParabola
219         norm:  1.000e-04  1.757e-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.275e+00  1.453e-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:  6.839e-01  2.285e-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.19e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.01e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/63607/likelihoodResults_254361601_254620801_4FGL_J1507.2+1721_daily_bin58.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): 102
logL (Free Index) = 11656.3692285
delta logL = -0.0003879532469

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 11656.3688405
delta logL = -2.34649633057e-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.5270       1.0000          .0000       5.0000    
     3 'Normalizat'    .68385       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2746       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   11656.37     FROM MIGRAD    STATUS=FAILED        96 CALLS      245 TOTAL
                     EDM=   .39E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6169.9        .18142E-02** at limit **
   2  alpha         1.2878        3.7092        .18406       -.17665E-07
   3  Normalizat    .68387        .10886        .43562E-03    .25576E-04
   4  Prefactor     1.2746        .70675E-01    .21176E-03    .57767E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   11656.37     FROM SIMPLEX   STATUS=UNCHANGED    195 CALLS      440 TOTAL
                     EDM=   .97E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6169.9        .56414E-03** at limit **
   2  alpha         1.2878        3.7092        .63392E-06   -.17665E-07
   3  Normalizat    .68387        .10886        .48855E-07    .25576E-04
   4  Prefactor     1.2746        .70675E-01    .81508E-08    .57767E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   11656.37     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      468 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    12.423        .36285E-03** at limit **
   2  alpha         1.2910        4.2927        .73625E-02    .14824E-07
   3  Normalizat    .68387        .22235        .17425E-04    .25315E-04
   4  Prefactor     1.2746        .14447        .84704E-05    .57981E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.29099
  Normalizat = 0.683874
  Prefactor  = 1.27457
 **********
 **   18 **HESSE 
 **********

 FCN=   11656.37     FROM HESSE     STATUS=OK            23 CALLS      491 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    12.421        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.2910        2.9478        .14725E-02   -.50477    
   3  Normalizat    .68387        .22209        .34850E-05   -1.0453    
   4  Prefactor     1.2746        .14431        .16941E-05   -.84066    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.1217e-11
Minuit parameter uncertainties:
  1  7.41312e-05
  2  468.55
  3  0.222378
  4  0.144355
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/63607': 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) = 11656.3688404
delta logL = 1.34970832733e-07

Extracting fit parameters...

4FGL J1507.2+1721
   Spectrum: LogParabola
219         norm:  1.000e-04  7.413e-05  1.000e-04  1.000e+04 ( 1.000e-14)
220        alpha:  1.291e+00  4.685e+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.275e+00  1.444e-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:  6.839e-01  2.224e-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/63607/cmap_HighResolution_254361601_254620801_4FGL_J1507.2+1721_daily_bin58.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.01e-05', job_status='DONE', photon_flux_upper_limit='1.19e-08', time_completed='2021-09-11 01:01:55.819937', job_id='63607', GAL2='1.27', fit_tolerance='1e-08', EG2='0.68', EG='0.68', time_epoch_completed='1631347315.82', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.27', dlogl='1.35e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.53' WHERE bin_id='58' AND source_name='4FGL J1507.2+1721' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 01:01:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0276>
Subject: Job 63607: <4FGL_J1507.2+1721_daily_bin58> in cluster <slac> Done

Job <4FGL_J1507.2+1721_daily_bin58> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Sep 11 00:45:57 2021
Job was executed on host(s) <bullet0276>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 00:45:58 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 11 00:45:58 2021
Terminated at Sat Sep 11 01:01:56 2021
Results reported at Sat Sep 11 01:01:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1507.2+1721_daily_bin58 226.821 17.3519 254361601 254620801 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 :                                   827.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             319.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   958 sec.
    Turnaround time :                            959 sec.

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

