/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 76 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 = 7382
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1507.2+1721_daily_bin230
RA = 226.821, Dec = 17.3519
tmin = 298944001, tmax = 299203201
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='63894', job_status='RUN', time_executed='2021-09-11 00:47:48.778413', time_epoch_executed='1631346468.78' WHERE source_name='4FGL J1507.2+1721' and cadence='daily' and bin_id='230'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/63894

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/63894/ft1_4FGL_J1507.2+1721_daily_bin230.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/63894/ft2_4FGL_J1507.2+1721_daily_bin230.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/63894/ft1_4FGL_J1507.2+1721_daily_bin230.fits outfile=/scratch/kocevski/63894/ft1_filteredMKT_4FGL_J1507.2+1721_daily_bin230.fits ra=226.821 dec=17.3519 rad=12.0 tmin=298944001.0 tmax=299203201.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.44
user 3.19
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/63894/ft1_filtered_4FGL_J1507.2+1721_daily_bin230.fits evtable="EVENTS" scfile=/scratch/kocevski/63894/ft2_4FGL_J1507.2+1721_daily_bin230.fits sctable="SC_DATA" expcube=/scratch/kocevski/63894/ltcube_298944001_299203201_4FGL_J1507.2+1721_daily_bin230.fits outfile=/scratch/kocevski/63894/expmap_298944001_299203201_4FGL_J1507.2+1721_daily_bin230.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/63894/ltcube_298944001_299203201_4FGL_J1507.2+1721_daily_bin230.fits
.....................!
real 191.29
user 185.00
sys 5.83

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/63894/ft1_filtered_4FGL_J1507.2+1721_daily_bin230.fits scfile=/scratch/kocevski/63894/ft2_4FGL_J1507.2+1721_daily_bin230.fits outfile=/scratch/kocevski/63894/cmap_298944001_299203201_4FGL_J1507.2+1721_daily_bin230.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/63894/ft1_filtered_4FGL_J1507.2+1721_daily_bin230.fits scfile=/scratch/kocevski/63894/ft2_4FGL_J1507.2+1721_daily_bin230.fits outfile=/scratch/kocevski/63894/cmap_HighResolution_298944001_299203201_4FGL_J1507.2+1721_daily_bin230.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.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    5.6528       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10370E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    3.4390       1.0000         .10000E-03   10000.    
     5 'norm      '    .13850E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .68525E-01   1.0000         .10000E-03   10000.    
    12 'norm      '    .34847       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 '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    25.058       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    2.0811       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.3899       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .90455       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=   7184.762     FROM MIGRAD    STATUS=CONVERGED    492 CALLS     2381 TOTAL
                     EDM=   .34E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.7472        .29687E-08** at limit **
   2  norm          5.6525        2.7294       -.10469E-08    .95173E-04
   3  Prefactor     .10000E-03    11.820        .47642E-06** at limit **
   4  norm          3.4388        2.7250        .75492E-08   -.22813E-03
   5  norm          .10000E-03    2.8530       -.15570E-06** at limit **
   6  Prefactor     .10000E-03    13.576        .46051E-06** at limit **
   7  Prefactor     .10000E-03    17.032        .20033E-06** at limit **
   8  Prefactor     .10000E-03    4.4974       -.20691E-06** at limit **
   9  Prefactor     .10000E-03    8.6482        .69586E-06** at limit **
  10  Prefactor     .10000E-03    11.824       -.67328E-06** at limit **
  11  Prefactor     .10036E-03    4.9779       -.42136E-07** at limit **
  12  norm          .34842        .16881        .33080E-07   -.80996E-04
  13  norm          .10000E-03    2.3831        .30796E-06** at limit **
  14  norm          .10000E-03    17.253        .10309E-05** at limit **
  15  Prefactor     .10000E-03    16.445       -.22203E-05** at limit **
  16  Prefactor     .10000E-03    3.7593        .12638E-06** at limit **
  17  Prefactor     25.027        31.954       -.13623E-04    .46959E-06
  18  Prefactor     .10000E-03    7.3819        .35385E-06** at limit **
  19  norm          2.0808        2.0143       -.87671E-07   -.25766E-03
  20  Prefactor     .10000E-03    13.128        .11538E-05** at limit **
  21  Normalizat    1.3898        .20411        .13964E-05   -.40795E-04
  22  Prefactor     .90468        .12982        .18484E-06    .41748E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 5.65245
  Prefactor  = 0.0001
  norm       = 3.43878
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100364
  norm       = 0.348419
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 25.0275
  Prefactor  = 0.0001
  norm       = 2.08082
  Prefactor  = 0.0001
  Normalizat = 1.3898
  Prefactor  = 0.904677
 **********
 **   18 **HESSE 
 **********

 FCN=   7184.762     FROM HESSE     STATUS=OK           348 CALLS     2729 TOTAL
                     EDM=   .90E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.7562        .13720E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          5.6525        2.7297        .94767E-04   -1.5232    
   3  Prefactor     .10000E-03    12.341        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.4388        2.7239        .11994E-03   -1.5337    
   5  norm          .10000E-03    16.661        .27768E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    13.705        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    17.112        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.5043        .17556E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    8.6806        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    11.832        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10036E-03    6.1151        .60221E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .34842        .16781        .23280E-04   -1.5590    
  13  norm          .10000E-03    2.3846        .12778E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    17.255        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    16.462        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    3.7697        .16048E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     25.027        32.000        .80024E-04   -1.4707    
  18  Prefactor     .10000E-03    7.3923        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          2.0808        2.0073        .11499E-03   -1.5419    
  20  Prefactor     .10000E-03    13.184        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.3898        .24571        .27512E-03   -.80924    
  22  Prefactor     .90468        .15710        .21161E-03   -.95978    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.98795e-11
Minuit parameter uncertainties:
  1  3.33494e-06
  2  2.72981
  3  6.95611e-05
  4  2.72402
  5  0.000104803
  6  1.61396e-05
  7  2.36583e-05
  8  2.30516e-06
  9  3.7908e-06
  10  1.10042e-07
  11  0.00298488
  12  0.167808
  13  1.22354e-06
  14  5.50064e-07
  15  1.29603e-05
  16  5.44323e-06
  17  32.0222
  18  6.76121e-06
  19  2.00739
  20  4.04891e-07
  21  0.245917
  22  0.157177
Done.

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

Extracting fit parameters...

4FGL J1507.2+1721
   Spectrum: LogParabola
219         norm:  1.000e-04  5.501e-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:  9.047e-01  1.572e-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.390e+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.62e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.44e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/63894/likelihoodResults_298944001_299203201_4FGL_J1507.2+1721_daily_bin230.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) = 7184.76235949
delta logL = -0.000273790212304

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7184.76208879
delta logL = -3.09637744067e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10091E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7109       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3898       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90466       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=   7184.762     FROM MIGRAD    STATUS=CONVERGED    109 CALLS      291 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    635.39        .18142E-01** at limit **
   2  alpha         1.4985        2.5309        .16535        .16570E-07
   3  Normalizat    1.3898        .32689E-01    .27512E-03    .34749E-03
   4  Prefactor     .90468        .20932E-01    .21161E-03    .44777E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.49851
  Normalizat = 1.3898
  Prefactor  = 0.904676
 **********
 **   18 **HESSE 
 **********

 FCN=   7184.762     FROM HESSE     STATUS=OK            23 CALLS      314 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    17.512        .34399E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.4985        3.9835        .66141E-02   -.41217    
   3  Normalizat    1.3898        .24348        .55024E-04   -.80924    
   4  Prefactor     .90468        .15596        .42321E-04   -.95978    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.68806e-10
Minuit parameter uncertainties:
  1  7.58531e-05
  2  644.646
  3  0.243683
  4  0.156035
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/63894': 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) = 7184.7620857
delta logL = 1.69893610291e-09

Extracting fit parameters...

4FGL J1507.2+1721
   Spectrum: LogParabola
219         norm:  1.000e-04  7.585e-05  1.000e-04  1.000e+04 ( 1.000e-14)
220        alpha:  1.499e+00  6.446e+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.047e-01  1.560e-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.390e+00  2.437e-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/63894/cmap_HighResolution_298944001_299203201_4FGL_J1507.2+1721_daily_bin230.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.44e-05', job_status='DONE', photon_flux_upper_limit='1.62e-08', time_completed='2021-09-11 00:58:05.435923', job_id='63894', GAL2='0.90', fit_tolerance='1e-08', EG2='1.39', EG='1.39', time_epoch_completed='1631347085.44', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='1.70e-09', ts2='-0.00', photon_index_error='0.00', photon_index='1.53' WHERE bin_id='230' AND source_name='4FGL J1507.2+1721' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 00:58:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0267>
Subject: Job 63894: <4FGL_J1507.2+1721_daily_bin230> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1507.2+1721_daily_bin230 226.821 17.3519 298944001 299203201 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 :                                   610.07 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             270.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   707 sec.
    Turnaround time :                            709 sec.

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

