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


Performing analysis on: 4FGL_J1507.2+1721_daily_bin1620
RA = 226.821, Dec = 17.3519
tmin = 659232001, tmax = 659491201
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='378882', job_status='RUN', time_executed='2021-12-08 01:54:09.502354', time_epoch_executed='1638957249.5' WHERE source_name='4FGL J1507.2+1721' and cadence='daily' and bin_id='1620'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/378882

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/378882/ft1_4FGL_J1507.2+1721_daily_bin1620.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/378882/ft2_4FGL_J1507.2+1721_daily_bin1620.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/378882/ft1_4FGL_J1507.2+1721_daily_bin1620.fits outfile=/scratch/kocevski/378882/ft1_filteredMKT_4FGL_J1507.2+1721_daily_bin1620.fits ra=226.821 dec=17.3519 rad=12.0 tmin=659232001.0 tmax=659491201.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 2.82
user 2.61
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/378882/ft1_filtered_4FGL_J1507.2+1721_daily_bin1620.fits" evtable="EVENTS" scfile=/scratch/kocevski/378882/ft2_4FGL_J1507.2+1721_daily_bin1620.fits sctable="SC_DATA" outfile=/scratch/kocevski/378882/ltcube_659232001_659491201_4FGL_J1507.2+1721_daily_bin1620.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/378882/ft2_4FGL_J1507.2+1721_daily_bin1620.fits
.....................!
real 13.21
user 12.85
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/378882/ft1_filtered_4FGL_J1507.2+1721_daily_bin1620.fits evtable="EVENTS" scfile=/scratch/kocevski/378882/ft2_4FGL_J1507.2+1721_daily_bin1620.fits sctable="SC_DATA" expcube=/scratch/kocevski/378882/ltcube_659232001_659491201_4FGL_J1507.2+1721_daily_bin1620.fits outfile=/scratch/kocevski/378882/expmap_659232001_659491201_4FGL_J1507.2+1721_daily_bin1620.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/378882/ltcube_659232001_659491201_4FGL_J1507.2+1721_daily_bin1620.fits
.....................!
real 191.08
user 185.69
sys 5.05

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/378882/ft1_filtered_4FGL_J1507.2+1721_daily_bin1620.fits scfile=/scratch/kocevski/378882/ft2_4FGL_J1507.2+1721_daily_bin1620.fits outfile=/scratch/kocevski/378882/cmap_659232001_659491201_4FGL_J1507.2+1721_daily_bin1620.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.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/378882/ft1_filtered_4FGL_J1507.2+1721_daily_bin1620.fits scfile=/scratch/kocevski/378882/ft2_4FGL_J1507.2+1721_daily_bin1620.fits outfile=/scratch/kocevski/378882/cmap_HighResolution_659232001_659491201_4FGL_J1507.2+1721_daily_bin1620.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/378882/ft1_filtered_4FGL_J1507.2+1721_daily_bin1620.fits evtable="EVENTS" scfile=/scratch/kocevski/378882/ft2_4FGL_J1507.2+1721_daily_bin1620.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/378882/Model_4FGL_J1507.2+1721_daily_bin1620.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/378882/ft1_filtered_4FGL_J1507.2+1721_daily_bin1620.fits.....................!
real 62.22
user 60.81
sys 1.30

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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.0511       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.7958       1.0000         .10000E-03   10000.    
     5 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    13.633       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.4975       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10161E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10006E-03   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 '    15.902       1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.0988       1.0000         .10000E-03   10000.    
    17 'Prefactor '    45.478       1.0000         .10000E-03   10000.    
    18 'Prefactor '    24.698       1.0000         .10000E-03   10000.    
    19 'norm      '    3.6350       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.7718       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .73321       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=   7888.541     FROM MIGRAD    STATUS=CONVERGED    464 CALLS     2328 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.5213        .30964E-08** at limit **
   2  norm          5.0511        2.5873        .95307E-06   -.82845E-04
   3  Prefactor     .10000E-03    4.1555       -.29592E-07** at limit **
   4  norm          1.7960        2.3290       -.32931E-06   -.65492E-03
   5  norm          .10000E-03    1.8833       -.46769E-07** at limit **
   6  Prefactor     .10000E-03    23.902       -.31328E-05** at limit **
   7  Prefactor     13.633        18.530       -.41630E-06   -.14688E-03
   8  Prefactor     4.5002        19.113        .45701E-05   -.49592E-04
   9  Prefactor     .10000E-03    8.5983        .25758E-05** at limit **
  10  Prefactor     .10000E-03    23.126        .27385E-05** at limit **
  11  Prefactor     .10000E-03    8.9720       -.26342E-05** at limit **
  12  norm          .10000E-03    .50986E-01    .19989E-08** at limit **
  13  norm          .10000E-03    2.3833       -.31361E-07** at limit **
  14  norm          .10000E-03    16.146        .87223E-06** at limit **
  15  Prefactor     15.904        42.589        .54647E-05    .23875E-05
  16  Prefactor     5.0998        7.6876       -.31197E-06   -.21990E-03
  17  Prefactor     45.469        47.702       -.11632E-04   -.65605E-05
  18  Prefactor     24.702        30.008        .61497E-05   -.20064E-06
  19  norm          3.6350        2.4697        .83877E-07    .40127E-04
  20  Prefactor     .10000E-03    7.1079       -.23168E-06** at limit **
  21  Normalizat    1.7715        .21690        .32543E-06    .17795E-04
  22  Prefactor     .73337        .12821       -.27021E-06    .44846E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 5.05109
  Prefactor  = 0.0001
  norm       = 1.79603
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.6329
  Prefactor  = 4.50016
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 15.9043
  Prefactor  = 5.09976
  Prefactor  = 45.4692
  Prefactor  = 24.7022
  norm       = 3.63503
  Prefactor  = 0.0001
  Normalizat = 1.77151
  Prefactor  = 0.733366
 **********
 **   18 **HESSE 
 **********

 FCN=   7888.541     FROM HESSE     STATUS=OK           342 CALLS     2670 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.5257        .13773E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          5.0511        2.5807        .98983E-04   -1.5258    
   3  Prefactor     .10000E-03    4.2183        .17674E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.7960        2.3230        .14914E-03   -1.5440    
   5  norm          .10000E-03    1.9160        .11899E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    24.101        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     13.633        18.557        .54241E-03   -1.4969    
   8  Prefactor     4.5002        18.969        .18985E-03   -1.5284    
   9  Prefactor     .10000E-03    8.5942        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    23.129        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    9.2704        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .56575E-01    .39072E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    2.3836        .13391E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    16.147        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     15.904        42.595        .10044E-03   -1.4910    
  16  Prefactor     5.0998        7.7021        .17806E-03   -1.5256    
  17  Prefactor     45.469        47.996        .59453E-04   -1.4358    
  18  Prefactor     24.702        29.925        .80604E-04   -1.4714    
  19  norm          3.6350        2.4711        .11171E-03   -1.5327    
  20  Prefactor     .10000E-03    7.1092        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.7715        .25932        .27295E-03   -.70410    
  22  Prefactor     .73337        .15195        .24078E-03   -1.0223    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.90143e-10
Minuit parameter uncertainties:
  1  6.47761e-07
  2  2.58071
  3  2.33171e-06
  4  2.32316
  5  1.49145e-06
  6  1.7815e-05
  7  18.5652
  8  18.4885
  9  6.62126e-06
  10  9.65159e-06
  11  2.34902e-05
  12  1.94428e-07
  13  2.22054e-07
  14  3.12655e-07
  15  42.6762
  16  7.70359
  17  48.0368
  18  29.9431
  19  2.47119
  20  5.77865e-06
  21  0.259519
  22  0.152041
Done.

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

Extracting fit parameters...

4FGL J1507.2+1721
   Spectrum: LogParabola
219         norm:  1.000e-04  3.127e-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:  7.334e-01  1.520e-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.772e+00  2.595e-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.54e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.18e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/378882/likelihoodResults_659232001_659491201_4FGL_J1507.2+1721_daily_bin1620.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) = 7888.54104192
delta logL = -0.000292358080515

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7888.54075225
delta logL = -2.69161773758e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.0222       1.0000          .0000       5.0000    
     3 'Normalizat'    1.7715       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73336       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.

 FCN=   7888.541     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      217 TOTAL
                     EDM=   .51E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1688.2        .90712E-02** at limit **
   2  alpha         3.0226        3.9955        .42348       -.29676E-06
   3  Normalizat    1.7715        .12832        .61724E-01   -.20186E-04
   4  Prefactor     .73337        .77609E-01    .42843E-01   -.16242E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 3.02256
  Normalizat = 1.77151
  Prefactor  = 0.733366
 **********
 **   18 **HESSE 
 **********

 FCN=   7888.541     FROM HESSE     STATUS=OK            31 CALLS      248 TOTAL
                     EDM=   .11E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    11.578        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         3.0226        3.7773        .50000        .21058    
   3  Normalizat    1.7715        .24954        .27295E-03   -.70410    
   4  Prefactor     .73337        .15076        .24078E-03   -1.0223    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.07575e-12
Minuit parameter uncertainties:
  1  1.57222e-05
  2  2.83493
  3  0.249721
  4  0.150842
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/378882': 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) = 7888.54075224
delta logL = -2.6873749448e-06

Extracting fit parameters...

4FGL J1507.2+1721
   Spectrum: LogParabola
219         norm:  1.000e-04  1.572e-05  1.000e-04  1.000e+04 ( 1.000e-14)
220        alpha:  3.023e+00  2.835e+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:  7.334e-01  1.508e-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.772e+00  2.497e-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/378882/cmap_HighResolution_659232001_659491201_4FGL_J1507.2+1721_daily_bin1620.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.18e-05', job_status='DONE', photon_flux_upper_limit='1.54e-08', time_completed='2021-12-08 02:04:32.724818', job_id='378882', GAL2='0.73', fit_tolerance='1e-08', EG2='1.77', EG='1.77', time_epoch_completed='1638957872.72', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.73', dlogl='-2.69e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.53' WHERE bin_id='1620' AND source_name='4FGL J1507.2+1721' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec  8 02:04:32 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0161>
Subject: Job 378882: <4FGL_J1507.2+1721_daily_bin1620> in cluster <slac> Done

Job <4FGL_J1507.2+1721_daily_bin1620> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Dec  8 01:50:22 2021
Job was executed on host(s) <bullet0161>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec  8 01:52:13 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec  8 01:52:13 2021
Terminated at Wed Dec  8 02:04:33 2021
Results reported at Wed Dec  8 02:04:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1507.2+1721_daily_bin1620 226.821 17.3519 659232001 659491201 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 :                                   623.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             293.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   740 sec.
    Turnaround time :                            851 sec.

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

