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


Performing analysis on: 4FGL_J1507.2+1721_daily_bin1363
RA = 226.821, Dec = 17.3519
tmin = 592617601, tmax = 592876801
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='71993', job_status='RUN', time_executed='2021-09-11 01:09:23.448234', time_epoch_executed='1631347763.45' WHERE source_name='4FGL J1507.2+1721' and cadence='daily' and bin_id='1363'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/71993

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/71993/ft1_4FGL_J1507.2+1721_daily_bin1363.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/71993/ft2_4FGL_J1507.2+1721_daily_bin1363.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/71993/ft1_4FGL_J1507.2+1721_daily_bin1363.fits outfile=/scratch/kocevski/71993/ft1_filteredMKT_4FGL_J1507.2+1721_daily_bin1363.fits ra=226.821 dec=17.3519 rad=12.0 tmin=592617601.0 tmax=592876801.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.48
user 3.24
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/71993/ft1_filtered_4FGL_J1507.2+1721_daily_bin1363.fits evtable="EVENTS" scfile=/scratch/kocevski/71993/ft2_4FGL_J1507.2+1721_daily_bin1363.fits sctable="SC_DATA" expcube=/scratch/kocevski/71993/ltcube_592617601_592876801_4FGL_J1507.2+1721_daily_bin1363.fits outfile=/scratch/kocevski/71993/expmap_592617601_592876801_4FGL_J1507.2+1721_daily_bin1363.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/71993/ltcube_592617601_592876801_4FGL_J1507.2+1721_daily_bin1363.fits
.....................!
real 192.61
user 186.74
sys 5.48

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/71993/ft1_filtered_4FGL_J1507.2+1721_daily_bin1363.fits scfile=/scratch/kocevski/71993/ft2_4FGL_J1507.2+1721_daily_bin1363.fits outfile=/scratch/kocevski/71993/cmap_592617601_592876801_4FGL_J1507.2+1721_daily_bin1363.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=226.821 yref=17.3519 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/71993/ft1_filtered_4FGL_J1507.2+1721_daily_bin1363.fits scfile=/scratch/kocevski/71993/ft2_4FGL_J1507.2+1721_daily_bin1363.fits outfile=/scratch/kocevski/71993/cmap_HighResolution_592617601_592876801_4FGL_J1507.2+1721_daily_bin1363.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.57
user 0.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    3.3029       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    5.5915       1.0000         .10000E-03   10000.    
     5 'norm      '    2.2137       1.0000         .10000E-03   10000.    
     6 'Prefactor '    24.442       1.0000         .10000E-03   10000.    
     7 'Prefactor '    13.111       1.0000         .10000E-03   10000.    
     8 'Prefactor '    21.924       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11098E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10682E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.1396       1.0000         .10000E-03   10000.    
    12 'norm      '    .45452       1.0000         .10000E-03   10000.    
    13 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10419E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .12706       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.3915       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    5.8280       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10439E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1368       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .90608       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6421.410     FROM MIGRAD    STATUS=CONVERGED    561 CALLS     2785 TOTAL
                     EDM=   .55E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.3002         .0000    ** at limit **
   2  norm          3.3029        2.5634         .0000        .27775E-04
   3  Prefactor     .10000E-03    1.4059         .0000    ** at limit **
   4  norm          5.5919        3.0680         .0000        .15989E-03
   5  norm          2.2144        4.0307         .0000        .82072E-03
   6  Prefactor     24.419        25.977         .0000        .34426E-03
   7  Prefactor     13.109        18.945         .0000       -.13036E-02
   8  Prefactor     21.944        16.401         .0000        .81476E-03
   9  Prefactor     .10000E-03    37.524         .0000    ** at limit **
  10  Prefactor     .10000E-03    42.425         .0000    ** at limit **
  11  Prefactor     7.1383        8.2802         .0000        .23059E-02
  12  norm          .45450        .17995         .0000        .15401E-02
  13  norm          .10000E-03    2.0820         .0000    ** at limit **
  14  norm          .10000E-03    18.340         .0000    ** at limit **
  15  Prefactor     .15052E-03    35.790         .0000    ** at limit **
  16  Prefactor     1.3926        9.7378         .0000        .16799E-01
  17  Prefactor     .10000E-03    19.331         .0000    ** at limit **
  18  Prefactor     .10000E-03    19.728         .0000    ** at limit **
  19  norm          5.8274        2.8849         .0000       -.60994E-04
  20  Prefactor     .10000E-03    10.609         .0000    ** at limit **
  21  Normalizat    1.1368        .21241         .0000        .16615E-03
  22  Prefactor     .90610        .13003         .0000        .25334E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 3.30289
  Prefactor  = 0.0001
  norm       = 5.59194
  norm       = 2.21436
  Prefactor  = 24.4186
  Prefactor  = 13.1087
  Prefactor  = 21.9435
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.1383
  norm       = 0.454502
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000150517
  Prefactor  = 1.39263
  Prefactor  = 0.000100001
  Prefactor  = 0.000100002
  norm       = 5.82742
  Prefactor  = 0.0001
  Normalizat = 1.13676
  Prefactor  = 0.906103
 **********
 **   18 **HESSE 
 **********

 FCN=   6421.410     FROM HESSE     STATUS=OK           344 CALLS     3129 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.3055        .11869E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.3029        2.5632        .10988E-03   -1.5344    
   3  Prefactor     .10000E-03    1.4082        .92784E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          5.5919        3.0680        .99791E-04   -1.5235    
   5  norm          2.2144        4.0192        .20911E-03   -1.5410    
   6  Prefactor     24.419        26.036        .81023E-04   -1.4719    
   7  Prefactor     13.109        18.954        .11062E-03   -1.4984    
   8  Prefactor     21.944        16.416        .85544E-04   -1.4771    
   9  Prefactor     .10000E-03    37.746        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    42.530        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     7.1383        8.2801        .75063E-03   -1.5174    
  12  norm          .45450        .17917        .20515E-04   -1.5573    
  13  norm          .10000E-03    2.0827        .11292E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    18.341        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .15052E-03    37.329        .12826       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.3926        9.8250        .18418E-02   -1.5472    
  17  Prefactor     .10000E-03    19.398        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    19.813        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          5.8274        2.8862        .92874E-04   -1.5225    
  20  Prefactor     .10000E-03    10.621        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.1368        .25655        .28414E-03   -.88580    
  22  Prefactor     .90610        .15693        .20102E-03   -.95928    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.06597e-09
Minuit parameter uncertainties:
  1  4.55565e-06
  2  2.56328
  3  4.7641e-06
  4  3.06807
  5  4.01967
  6  26.0479
  7  18.9631
  8  16.4196
  9  3.39873e-05
  10  7.9908e-05
  11  8.28146
  12  0.179168
  13  1.09543e-06
  14  3.60178e-05
  15  0.0869047
  16  7.39946
  17  0.000229803
  18  0.000360429
  19  2.8863
  20  1.81628e-05
  21  0.256837
  22  0.157004
Done.

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

Extracting fit parameters...

4FGL J1507.2+1721
   Spectrum: LogParabola
219         norm:  1.000e-04  3.602e-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:  9.061e-01  1.570e-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.137e+00  2.568e-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.77e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.95e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/71993/likelihoodResults_592617601_592876801_4FGL_J1507.2+1721_daily_bin1363.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) = 6421.41066462
delta logL = -0.000259197274318

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6421.41040957
delta logL = -4.14470378018e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10411E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.0281       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1368       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90610       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=   6421.410     FROM MIGRAD    STATUS=CONVERGED    119 CALLS      292 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    703.53        .18142E-01** at limit **
   2  alpha         1.4887        4.0575        .16951        .25218E-07
   3  Normalizat    1.1368        .33502E-01    .28414E-03   -.81023E-04
   4  Prefactor     .90610        .21544E-01    .20102E-03   -.79178E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.48865
  Normalizat = 1.13676
  Prefactor  = 0.906103
 **********
 **   18 **HESSE 
 **********

 FCN=   6421.410     FROM HESSE     STATUS=OK            23 CALLS      315 TOTAL
                     EDM=   .93E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    18.709        .33539E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.4887        2.9052        .67802E-02   -.41648    
   3  Normalizat    1.1368        .24255        .11365E-04   -.88580    
   4  Prefactor     .90610        .15605        .80407E-05   -.95928    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.27512e-11
Minuit parameter uncertainties:
  1  6.31384e-05
  2  674.399
  3  0.242791
  4  0.156131
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/71993': 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) = 6421.41040542
delta logL = 2.74394551525e-09

Extracting fit parameters...

4FGL J1507.2+1721
   Spectrum: LogParabola
219         norm:  1.000e-04  6.314e-05  1.000e-04  1.000e+04 ( 1.000e-14)
220        alpha:  1.489e+00  6.744e+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:  9.061e-01  1.561e-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.137e+00  2.428e-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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/71993/cmap_HighResolution_592617601_592876801_4FGL_J1507.2+1721_daily_bin1363.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.95e-05', job_status='DONE', photon_flux_upper_limit='1.77e-08', time_completed='2021-09-11 01:20:22.699884', job_id='71993', GAL2='0.91', fit_tolerance='1e-08', EG2='1.14', EG='1.14', time_epoch_completed='1631348422.7', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='2.74e-09', ts2='-0.00', photon_index_error='0.00', photon_index='1.53' WHERE bin_id='1363' AND source_name='4FGL J1507.2+1721' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 01:20:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0084>
Subject: Job 71993: <4FGL_J1507.2+1721_daily_bin1363> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1507.2+1721_daily_bin1363 226.821 17.3519 592617601 592876801 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 :                                   621.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             263.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   858 sec.
    Turnaround time :                            860 sec.

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

