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


Performing analysis on: 4FGL_J1507.2+1721_daily_bin1270
RA = 226.821, Dec = 17.3519
tmin = 568512001, tmax = 568771201
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='70604', job_status='RUN', time_executed='2021-09-11 01:05:27.670943', time_epoch_executed='1631347527.67' WHERE source_name='4FGL J1507.2+1721' and cadence='daily' and bin_id='1270'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/70604

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/70604/ft1_4FGL_J1507.2+1721_daily_bin1270.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/70604/ft2_4FGL_J1507.2+1721_daily_bin1270.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/70604/ft1_4FGL_J1507.2+1721_daily_bin1270.fits outfile=/scratch/kocevski/70604/ft1_filteredMKT_4FGL_J1507.2+1721_daily_bin1270.fits ra=226.821 dec=17.3519 rad=12.0 tmin=568512001.0 tmax=568771201.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.53
user 3.32
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/70604/ft1_filtered_4FGL_J1507.2+1721_daily_bin1270.fits evtable="EVENTS" scfile=/scratch/kocevski/70604/ft2_4FGL_J1507.2+1721_daily_bin1270.fits sctable="SC_DATA" expcube=/scratch/kocevski/70604/ltcube_568512001_568771201_4FGL_J1507.2+1721_daily_bin1270.fits outfile=/scratch/kocevski/70604/expmap_568512001_568771201_4FGL_J1507.2+1721_daily_bin1270.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/70604/ltcube_568512001_568771201_4FGL_J1507.2+1721_daily_bin1270.fits
.....................!
real 191.77
user 185.79
sys 5.67

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/70604/ft1_filtered_4FGL_J1507.2+1721_daily_bin1270.fits scfile=/scratch/kocevski/70604/ft2_4FGL_J1507.2+1721_daily_bin1270.fits outfile=/scratch/kocevski/70604/cmap_568512001_568771201_4FGL_J1507.2+1721_daily_bin1270.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.66
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/70604/ft1_filtered_4FGL_J1507.2+1721_daily_bin1270.fits scfile=/scratch/kocevski/70604/ft2_4FGL_J1507.2+1721_daily_bin1270.fits outfile=/scratch/kocevski/70604/cmap_HighResolution_568512001_568771201_4FGL_J1507.2+1721_daily_bin1270.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.73
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.8294       1.0000         .10000E-03   10000.    
     2 'norm      '    5.3839       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.3991       1.0000         .10000E-03   10000.    
     4 'norm      '    2.1596       1.0000         .10000E-03   10000.    
     5 'norm      '    5.4963       1.0000         .10000E-03   10000.    
     6 'Prefactor '    22.864       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    14.609       1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.382       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    17.207       1.0000         .10000E-03   10000.    
    12 'norm      '    1.0830       1.0000         .10000E-03   10000.    
    13 'norm      '    1.3173       1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.2241       1.0000         .10000E-03   10000.    
    17 'Prefactor '    11.160       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    4.6703       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2526       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .91137       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=   8934.331     FROM MIGRAD    STATUS=CONVERGED    487 CALLS     2381 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.8293        6.0011        .61731E-05   -.42646E-03
   2  norm          5.3840        2.6302        .65752E-07    .18249E-03
   3  Prefactor     4.3997        5.3271        .49386E-06   -.98460E-04
   4  norm          2.1598        2.5435        .68786E-07   -.93565E-04
   5  norm          5.4968        3.7828        .34821E-06    .46833E-04
   6  Prefactor     22.864        26.584        .86343E-06    .17466E-03
   7  Prefactor     .10000E-03    10.411       -.49881E-06** at limit **
   8  Prefactor     14.612        18.988        .10217E-05    .26736E-03
   9  Prefactor     11.383        16.136        .48823E-06    .16520E-03
  10  Prefactor     .10000E-03    50.717        .40552E-06** at limit **
  11  Prefactor     17.206        8.6480        .16220E-06    .22488E-03
  12  norm          1.0830        .22019        .51180E-07    .69521E-02
  13  norm          1.3170        4.4864        .11345E-06   -.82348E-04
  14  norm          .10000E-03    13.023       -.47827E-07** at limit **
  15  Prefactor     .10000E-03    13.731        .63234E-06** at limit **
  16  Prefactor     2.2253        7.8755        .54132E-05   -.27674E-03
  17  Prefactor     11.193        36.091        .28136E-05    .19264E-03
  18  Prefactor     .10000E-03    39.610        .15553E-05** at limit **
  19  norm          4.6702        2.5210        .10563E-06    .42323E-03
  20  Prefactor     .10000E-03    17.565       -.36165E-07** at limit **
  21  Normalizat    1.2522        .20839       -.60311E-05    .56014E-04
  22  Prefactor     .91156        .12055        .29597E-05    .92370E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.82929
  norm       = 5.38395
  Prefactor  = 4.39965
  norm       = 2.15983
  norm       = 5.49677
  Prefactor  = 22.8641
  Prefactor  = 0.0001
  Prefactor  = 14.6118
  Prefactor  = 11.383
  Prefactor  = 0.000100001
  Prefactor  = 17.2063
  norm       = 1.08297
  norm       = 1.31698
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 2.22528
  Prefactor  = 11.1926
  Prefactor  = 0.000100003
  norm       = 4.67019
  Prefactor  = 0.0001
  Normalizat = 1.25225
  Prefactor  = 0.911557
 **********
 **   18 **HESSE 
 **********

 FCN=   8934.331     FROM HESSE     STATUS=OK           346 CALLS     2727 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.8293        6.1185        .15429E-02   -1.5437    
   2  norm          5.3840        2.6302        .10423E-03   -1.5244    
   3  Prefactor     4.3997        5.2841        .96009E-03   -1.5288    
   4  norm          2.1598        2.5275        .15623E-03   -1.5414    
   5  norm          5.4968        3.7813        .73921E-03   -1.5239    
   6  Prefactor     22.864        26.602        .83769E-04   -1.4751    
   7  Prefactor     .10000E-03    10.447        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     14.612        19.007        .10479E-03   -1.4943    
   9  Prefactor     11.383        16.124        .59372E-03   -1.5033    
  10  Prefactor     .10000E-03    51.003        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     17.206        8.6521        .96554E-04   -1.4878    
  12  norm          1.0830        .22080        .19143E-04   -1.5500    
  13  norm          1.3170        4.4615        .35904E-03   -1.5478    
  14  norm          .10000E-03    13.027        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    13.769        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.2253        7.9223        .13785E-02   -1.5410    
  17  Prefactor     11.193        36.310        .11993E-03   -1.5039    
  18  Prefactor     .10000E-03    40.016        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          4.6702        2.5218        .10683E-03   -1.5276    
  20  Prefactor     .10000E-03    17.605        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.2522        .24568        .30484E-03   -.85003    
  22  Prefactor     .91156        .14615        .21873E-03   -.95738    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.51824e-09
Minuit parameter uncertainties:
  1  6.12058
  2  2.63028
  3  5.28465
  4  2.5276
  5  3.78148
  6  26.6162
  7  0.000128625
  8  19.0153
  9  16.1305
  10  0.00037743
  11  8.65273
  12  0.220797
  13  4.46258
  14  7.00497e-05
  15  0.000260364
  16  7.92602
  17  36.3819
  18  0.00072945
  19  2.52187
  20  2.89438e-05
  21  0.245903
  22  0.146211
Done.

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

Extracting fit parameters...

4FGL J1507.2+1721
   Spectrum: LogParabola
219         norm:  1.000e-04  7.005e-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.116e-01  1.462e-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.252e+00  2.459e-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.27e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.27e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/70604/likelihoodResults_568512001_568771201_4FGL_J1507.2+1721_daily_bin1270.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) = 8934.33139639
delta logL = -0.000365309228073

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8934.33103107
delta logL = 7.06859282218e-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.5271       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2523       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91155       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=   8934.331     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      239 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6188.9        .18142E-02** at limit **
   2  alpha         1.3220        3.1115        .18405        .49661E-07
   3  Normalizat    1.2523        .10389        .30484E-03   -.11563E-02
   4  Prefactor     .91155        .65144E-01    .21873E-03   -.15059E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  alpha      = 1.32201
  Normalizat = 1.25225
  Prefactor  = 0.91155
 **********
 **   18 **HESSE 
 **********

 FCN=   8934.331     FROM HESSE     STATUS=OK            23 CALLS      262 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    13.391        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.3220        2.9280        .73622E-02   -.49064    
   3  Normalizat    1.2523        .23111        .60968E-04   -.85003    
   4  Prefactor     .91155        .14496        .43746E-04   -.95739    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.65378e-09
Minuit parameter uncertainties:
  1  0.000223873
  2  476.627
  3  0.231301
  4  0.145022
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/70604': 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) = 8934.33103097
delta logL = 1.03207639768e-07

Extracting fit parameters...

4FGL J1507.2+1721
   Spectrum: LogParabola
219         norm:  1.000e-04  2.239e-04  1.000e-04  1.000e+04 ( 1.000e-14)
220        alpha:  1.322e+00  4.766e+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.115e-01  1.450e-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.252e+00  2.313e-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/70604/cmap_HighResolution_568512001_568771201_4FGL_J1507.2+1721_daily_bin1270.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.27e-05', job_status='DONE', photon_flux_upper_limit='1.27e-08', time_completed='2021-09-11 01:16:45.739276', job_id='70604', GAL2='0.91', fit_tolerance='1e-08', EG2='1.25', EG='1.25', time_epoch_completed='1631348205.74', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='1.03e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.53' WHERE bin_id='1270' AND source_name='4FGL J1507.2+1721' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 01:16:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0153>
Subject: Job 70604: <4FGL_J1507.2+1721_daily_bin1270> in cluster <slac> Done

Job <4FGL_J1507.2+1721_daily_bin1270> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Sep 11 01:01:29 2021
Job was executed on host(s) <bullet0153>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 01:01:31 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:31 2021
Terminated at Sat Sep 11 01:16:46 2021
Results reported at Sat Sep 11 01:16:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1507.2+1721_daily_bin1270 226.821 17.3519 568512001 568771201 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 :                                   673.35 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             273.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   915 sec.
    Turnaround time :                            917 sec.

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

