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


Performing analysis on: 4FGL_J1507.2+1721_daily_bin1311
RA = 226.821, Dec = 17.3519
tmin = 579139201, tmax = 579398401
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='70669', job_status='RUN', time_executed='2021-09-11 01:03:44.629493', time_epoch_executed='1631347424.63' WHERE source_name='4FGL J1507.2+1721' and cadence='daily' and bin_id='1311'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/70669

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/70669/ft1_4FGL_J1507.2+1721_daily_bin1311.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/70669/ft2_4FGL_J1507.2+1721_daily_bin1311.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/70669/ft1_4FGL_J1507.2+1721_daily_bin1311.fits outfile=/scratch/kocevski/70669/ft1_filteredMKT_4FGL_J1507.2+1721_daily_bin1311.fits ra=226.821 dec=17.3519 rad=12.0 tmin=579139201.0 tmax=579398401.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.27
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/70669/ft1_filtered_4FGL_J1507.2+1721_daily_bin1311.fits evtable="EVENTS" scfile=/scratch/kocevski/70669/ft2_4FGL_J1507.2+1721_daily_bin1311.fits sctable="SC_DATA" expcube=/scratch/kocevski/70669/ltcube_579139201_579398401_4FGL_J1507.2+1721_daily_bin1311.fits outfile=/scratch/kocevski/70669/expmap_579139201_579398401_4FGL_J1507.2+1721_daily_bin1311.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/70669/ltcube_579139201_579398401_4FGL_J1507.2+1721_daily_bin1311.fits
.....................!
real 191.81
user 186.40
sys 5.01

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

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

This is gtbin version HEAD
real 0.55
user 0.37
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.430       1.0000         .10000E-03   10000.    
     2 'norm      '    6.6995       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.4557       1.0000         .10000E-03   10000.    
     4 'norm      '    2.2355       1.0000         .10000E-03   10000.    
     5 'norm      '    2.6885       1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.3465       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.1347       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    17.238       1.0000         .10000E-03   10000.    
    12 'norm      '    .16839       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.3470       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    6.0032       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2359       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .82368       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=   6403.977     FROM MIGRAD    STATUS=CONVERGED    460 CALLS     1991 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.430        11.403       -.70557E-07    .11445E-04
   2  norm          6.6995        3.0145       -.95396E-06   -.34884E-04
   3  Prefactor     5.4571        8.7056       -.14892E-08    .53370E-05
   4  norm          2.2357        2.2451        .20642E-07    .15263E-04
   5  norm          2.6884        3.3101        .22775E-05    .47556E-04
   6  Prefactor     8.3458        19.777       -.68611E-06    .27546E-04
   7  Prefactor     .10000E-03    9.7148       -.24100E-05** at limit **
   8  Prefactor     1.1326        2.8726        .35132E-06   -.52538E-03
   9  Prefactor     .10000E-03    26.365       -.11113E-04** at limit **
  10  Prefactor     .10000E-03    23.045        .11333E-04** at limit **
  11  Prefactor     17.238        10.265        .20641E-07    .12765E-04
  12  norm          .16838        .11792       -.23344E-08    .11065E-03
  13  norm          .10000E-03    2.6371        .64667E-07** at limit **
  14  norm          .10000E-03    15.291       -.50650E-06** at limit **
  15  Prefactor     7.3445        70.435       -.69559E-05    .19355E-06
  16  Prefactor     .10000E-03    6.8798       -.23804E-05** at limit **
  17  Prefactor     .10000E-03    15.384        .42851E-06** at limit **
  18  Prefactor     .10000E-03    7.5667        .34647E-05** at limit **
  19  norm          6.0030        2.9004       -.56383E-06   -.29872E-04
  20  Prefactor     .10000E-03    7.2410        .45705E-06** at limit **
  21  Normalizat    1.2357        .20913        .28867E-06    .50366E-04
  22  Prefactor     .82380        .12976        .46430E-07    .81786E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.4302
  norm       = 6.69953
  Prefactor  = 5.45714
  norm       = 2.23568
  norm       = 2.68841
  Prefactor  = 8.34582
  Prefactor  = 0.0001
  Prefactor  = 1.13259
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.2385
  norm       = 0.168381
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 7.34455
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.00301
  Prefactor  = 0.0001
  Normalizat = 1.23571
  Prefactor  = 0.823802
 **********
 **   18 **HESSE 
 **********

 FCN=   6403.977     FROM HESSE     STATUS=OK           346 CALLS     2337 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.430        11.356        .88613E-04   -1.4804    
   2  norm          6.6995        3.0169        .90758E-04   -1.5190    
   3  Prefactor     5.4571        8.7046        .17203E-03   -1.5241    
   4  norm          2.2357        2.2402        .11553E-03   -1.5409    
   5  norm          2.6884        3.3058        .15694E-03   -1.5380    
   6  Prefactor     8.3458        19.797        .13876E-03   -1.5130    
   7  Prefactor     .10000E-03    9.7338        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.1326        30.605        .21884E-02   -1.5495    
   9  Prefactor     .10000E-03    26.558        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    23.086        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     17.238        10.273        .96466E-04   -1.4877    
  12  norm          .16838        .11965        .22197E-04   -1.5626    
  13  norm          .10000E-03    2.6437        .12691E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    15.291        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     7.3445        70.630        .14797E-03   -1.5166    
  16  Prefactor     .10000E-03    6.9999        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    15.457        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    7.5764        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          6.0030        2.9029        .92000E-04   -1.5218    
  20  Prefactor     .10000E-03    7.2436        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.2357        .25431        .27075E-03   -.85506    
  22  Prefactor     .82380        .15702        .20693E-03   -.98857    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.27028e-09
Minuit parameter uncertainties:
  1  11.3568
  2  3.017
  3  8.70666
  4  2.24032
  5  3.30604
  6  19.8126
  7  2.92935e-06
  8  11.7812
  9  5.32499e-05
  10  2.47971e-05
  11  10.2742
  12  0.119645
  13  1.9888e-07
  14  3.10284e-07
  15  45.6222
  16  6.9388e-06
  17  5.15045e-06
  18  4.77127e-06
  19  2.90295
  20  2.52141e-06
  21  0.254571
  22  0.157109
Done.

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

Extracting fit parameters...

4FGL J1507.2+1721
   Spectrum: LogParabola
219         norm:  1.000e-04  3.103e-07  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:  8.238e-01  1.571e-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.236e+00  2.546e-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.52e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.10e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/70669/likelihoodResults_579139201_579398401_4FGL_J1507.2+1721_daily_bin1311.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) = 6403.97715925
delta logL = -0.000305535086227

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6403.9768581
delta logL = -4.39067025582e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10061E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6843       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2357       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82380       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=   6403.977     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      283 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    556.96        .18142E-01** at limit **
   2  alpha         1.2629        3.4443        .16518        .17826E-07
   3  Normalizat    1.2357        .31457E-01    .27075E-03    .16368E-03
   4  Prefactor     .82380        .20176E-01    .20693E-03    .21242E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  alpha      = 1.26286
  Normalizat = 1.23571
  Prefactor  = 0.823802
 **********
 **   18 **HESSE 
 **********

 FCN=   6403.977     FROM HESSE     STATUS=OK            23 CALLS      306 TOTAL
                     EDM=   .99E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    16.127        .31197E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.2629        3.6882        .66070E-02   -.51767    
   3  Normalizat    1.2357        .24180        .10830E-04   -.85506    
   4  Prefactor     .82380        .15514        .41385E-04   -.98857    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.8998e-11
Minuit parameter uncertainties:
  1  0.000203554
  2  530.191
  3  0.242017
  4  0.155227
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/70669': 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) = 6403.97685358
delta logL = 1.30305124912e-07

Extracting fit parameters...

4FGL J1507.2+1721
   Spectrum: LogParabola
219         norm:  1.000e-04  2.036e-04  1.000e-04  1.000e+04 ( 1.000e-14)
220        alpha:  1.263e+00  5.302e+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:  8.238e-01  1.552e-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.236e+00  2.420e-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.355e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.614e-03 [aplpy.core]
Saving /scratch/kocevski/70669/cmap_HighResolution_579139201_579398401_4FGL_J1507.2+1721_daily_bin1311.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.10e-05', job_status='DONE', photon_flux_upper_limit='1.52e-08', time_completed='2021-09-11 01:13:12.561726', job_id='70669', GAL2='0.82', fit_tolerance='1e-08', EG2='1.24', EG='1.24', time_epoch_completed='1631347992.56', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='1.30e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.53' WHERE bin_id='1311' AND source_name='4FGL J1507.2+1721' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 01:13:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0227>
Subject: Job 70669: <4FGL_J1507.2+1721_daily_bin1311> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1507.2+1721_daily_bin1311 226.821 17.3519 579139201 579398401 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 :                                   559.49 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             279.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   697 sec.
    Turnaround time :                            700 sec.

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

