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


Performing analysis on: 4FGL_J1507.2+1721_daily_bin1443
RA = 226.821, Dec = 17.3519
tmin = 613353601, tmax = 613612801
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='159641', job_status='RUN', time_executed='2021-09-11 06:07:47.523510', time_epoch_executed='1631365667.52' WHERE source_name='4FGL J1507.2+1721' and cadence='daily' and bin_id='1443'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/159641

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/159641/ft1_4FGL_J1507.2+1721_daily_bin1443.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/159641/ft2_4FGL_J1507.2+1721_daily_bin1443.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/159641/ft1_4FGL_J1507.2+1721_daily_bin1443.fits outfile=/scratch/kocevski/159641/ft1_filteredMKT_4FGL_J1507.2+1721_daily_bin1443.fits ra=226.821 dec=17.3519 rad=12.0 tmin=613353601.0 tmax=613612801.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.80
user 2.50
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/159641/ft2_4FGL_J1507.2+1721_daily_bin1443.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/159641/ft1_filteredMKT_4FGL_J1507.2+1721_daily_bin1443.fits evtable="EVENTS" outfile="/scratch/kocevski/159641/ft1_filtered_4FGL_J1507.2+1721_daily_bin1443.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 3.50
user 0.35
sys 0.17

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/159641/ft1_filtered_4FGL_J1507.2+1721_daily_bin1443.fits evtable="EVENTS" scfile=/scratch/kocevski/159641/ft2_4FGL_J1507.2+1721_daily_bin1443.fits sctable="SC_DATA" expcube=/scratch/kocevski/159641/ltcube_613353601_613612801_4FGL_J1507.2+1721_daily_bin1443.fits outfile=/scratch/kocevski/159641/expmap_613353601_613612801_4FGL_J1507.2+1721_daily_bin1443.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/159641/ltcube_613353601_613612801_4FGL_J1507.2+1721_daily_bin1443.fits
.....................!
real 201.75
user 185.93
sys 4.69

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/159641/ft1_filtered_4FGL_J1507.2+1721_daily_bin1443.fits scfile=/scratch/kocevski/159641/ft2_4FGL_J1507.2+1721_daily_bin1443.fits outfile=/scratch/kocevski/159641/cmap_613353601_613612801_4FGL_J1507.2+1721_daily_bin1443.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 4.36
user 0.39
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/159641/ft1_filtered_4FGL_J1507.2+1721_daily_bin1443.fits scfile=/scratch/kocevski/159641/ft2_4FGL_J1507.2+1721_daily_bin1443.fits outfile=/scratch/kocevski/159641/cmap_HighResolution_613353601_613612801_4FGL_J1507.2+1721_daily_bin1443.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 1.10
user 0.36
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.1057       1.0000         .10000E-03   10000.    
     2 'norm      '    4.1403       1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.118       1.0000         .10000E-03   10000.    
     4 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.9049       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.721       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.5238       1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.3532       1.0000         .10000E-03   10000.    
    12 'norm      '    2.0682       1.0000         .10000E-03   10000.    
    13 'norm      '    10.622       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    36.899       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10156E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .18756E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10120E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    30.285       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1041       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .96899       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=   7030.556     FROM MIGRAD    STATUS=CONVERGED    484 CALLS     2407 TOTAL
                     EDM=   .30E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1069        11.556        .49047E-05   -.14640E-04
   2  norm          4.1404        2.2944       -.14140E-08   -.10714E-04
   3  Prefactor     12.121        9.3124       -.73254E-06   -.19700E-03
   4  norm          .10000E-03    1.0696        .17441E-06** at limit **
   5  norm          .10000E-03    1.3559        .14154E-06** at limit **
   6  Prefactor     .10000E-03    22.379        .45095E-06** at limit **
   7  Prefactor     6.9042        18.492        .13898E-06   -.29912E-05
   8  Prefactor     .10000E-03    4.9523        .99653E-07** at limit **
   9  Prefactor     11.751        23.181        .22682E-06   -.31826E-05
  10  Prefactor     2.4225        58.061        .10628E-05    .10425E-04
  11  Prefactor     8.3539        7.4193       -.45804E-07   -.27938E-04
  12  norm          2.0683        .39024       -.88559E-08   -.68313E-04
  13  norm          10.622        9.9390        .13337E-07   -.26502E-06
  14  norm          .10000E-03    15.533        .15914E-07** at limit **
  15  Prefactor     36.834        49.904       -.50534E-06   -.48788E-04
  16  Prefactor     .10000E-03    5.3548        .32232E-06** at limit **
  17  Prefactor     .10000E-03    19.178       -.25831E-06** at limit **
  18  Prefactor     .10000E-03    47.374       -.34399E-05** at limit **
  19  norm          .10000E-03    1.5160       -.59476E-06** at limit **
  20  Prefactor     30.216        50.806       -.46831E-06   -.26148E-04
  21  Normalizat    1.1043        .22261       -.81031E-06   -.31113E-04
  22  Prefactor     .96893        .13771        .39424E-06   -.10855E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.10692
  norm       = 4.14044
  Prefactor  = 12.1206
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.90419
  Prefactor  = 0.0001
  Prefactor  = 11.7509
  Prefactor  = 2.42248
  Prefactor  = 8.35387
  norm       = 2.06829
  norm       = 10.6216
  norm       = 0.0001
  Prefactor  = 36.8341
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 30.2161
  Normalizat = 1.10428
  Prefactor  = 0.968927
 **********
 **   18 **HESSE 
 **********

 FCN=   7030.556     FROM HESSE     STATUS=OK           344 CALLS     2751 TOTAL
                     EDM=   .64E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.1069        11.724        .45048E-03   -1.5498    
   2  norm          4.1404        2.2930        .91921E-04   -1.5301    
   3  Prefactor     12.121        9.4061        .11507E-03   -1.5012    
   4  norm          .10000E-03    1.0857        .84675E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.3678        .95337E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    22.452        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.9042        18.484        .15268E-03   -1.5182    
   8  Prefactor     .10000E-03    4.9550        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     11.751        23.113        .11701E-03   -1.5022    
  10  Prefactor     2.4225        57.724        .25714E-03   -1.5397    
  11  Prefactor     8.3539        7.4282        .13871E-03   -1.5130    
  12  norm          2.0683        .39095        .21681E-04   -1.5420    
  13  norm          10.622        9.9478        .12293E-03   -1.5056    
  14  norm          .10000E-03    15.534        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     36.834        50.094        .65977E-04   -1.4493    
  16  Prefactor     .10000E-03    5.4201        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    19.194        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    47.364        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    1.5174        .10053E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     30.216        50.905        .72805E-04   -1.4608    
  21  Normalizat    1.1043        .26548        .32213E-03   -.89614    
  22  Prefactor     .96893        .16446        .21349E-03   -.93773    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.36864e-11
Minuit parameter uncertainties:
  1  7.20639
  2  2.2931
  3  9.40727
  4  6.64158e-07
  5  2.48584e-07
  6  1.35818e-05
  7  18.4995
  8  1.25985e-07
  9  23.1306
  10  23.6757
  11  7.42906
  12  0.390946
  13  9.94932
  14  2.40337e-07
  15  50.1509
  16  1.4738e-06
  17  1.03387e-06
  18  3.69049e-05
  19  1.85103e-06
  20  50.9786
  21  0.265801
  22  0.164541
Done.

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

Extracting fit parameters...

4FGL J1507.2+1721
   Spectrum: LogParabola
219         norm:  1.000e-04  2.403e-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.689e-01  1.645e-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.104e+00  2.658e-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.09e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/159641/likelihoodResults_613353601_613612801_4FGL_J1507.2+1721_daily_bin1443.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) = 7030.55626703
delta logL = -0.00029168805122

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7030.55597958
delta logL = -4.23119217885e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10082E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5343       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1043       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96892       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=   7030.556     FROM MIGRAD    STATUS=CONVERGED    113 CALLS      298 TOTAL
                     EDM=   .83E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    526.14        .18142E-01** at limit **
   2  alpha         1.3076        3.9175        .16463        .40053E-08
   3  Normalizat    1.1043        .32827E-01    .32213E-03    .35310E-03
   4  Prefactor     .96893        .20651E-01    .21348E-03    .60808E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.30759
  Normalizat = 1.10428
  Prefactor  = 0.968929
 **********
 **   18 **HESSE 
 **********

 FCN=   7030.556     FROM HESSE     STATUS=OK            23 CALLS      321 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    16.177        .32781E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.3076        2.6892        .65851E-02   -.49720    
   3  Normalizat    1.1043        .25672        .64425E-04   -.89614    
   4  Prefactor     .96893        .16160        .42697E-04   -.93773    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.51783e-10
Minuit parameter uncertainties:
  1  1.08874e-05
  2  515.143
  3  0.257012
  4  0.161679
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/159641': 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) = 7030.55597525
delta logL = 9.74359863903e-08

Extracting fit parameters...

4FGL J1507.2+1721
   Spectrum: LogParabola
219         norm:  1.000e-04  1.089e-05  1.000e-04  1.000e+04 ( 1.000e-14)
220        alpha:  1.308e+00  5.151e+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.689e-01  1.617e-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.104e+00  2.570e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 226.821 17.352

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/159641/cmap_HighResolution_613353601_613612801_4FGL_J1507.2+1721_daily_bin1443.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.09e-05', job_status='DONE', photon_flux_upper_limit='1.52e-08', time_completed='2021-09-11 06:18:45.525613', job_id='159641', GAL2='0.97', fit_tolerance='1e-08', EG2='1.10', EG='1.10', time_epoch_completed='1631366325.53', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='9.74e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.53' WHERE bin_id='1443' AND source_name='4FGL J1507.2+1721' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 06:18:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0203>
Subject: Job 159641: <4FGL_J1507.2+1721_daily_bin1443> in cluster <slac> Done

Job <4FGL_J1507.2+1721_daily_bin1443> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sat Sep 11 06:04:05 2021
Job was executed on host(s) <bullet0203>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 06:04:07 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 11 06:04:07 2021
Terminated at Sat Sep 11 06:19:13 2021
Results reported at Sat Sep 11 06:19:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1507.2+1721_daily_bin1443 226.821 17.3519 613353601 613612801 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 :                                   587.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             260.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   905 sec.
    Turnaround time :                            908 sec.

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

