/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 149 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 = 7405
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1507.2+1721_daily_bin13
RA = 226.821, Dec = 17.3519
tmin = 242697601, tmax = 242956801
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='62152', job_status='RUN', time_executed='2021-09-11 00:44:00.657514', time_epoch_executed='1631346240.66' WHERE source_name='4FGL J1507.2+1721' and cadence='daily' and bin_id='13'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/62152

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/62152/ft1_4FGL_J1507.2+1721_daily_bin13.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/62152/ft2_4FGL_J1507.2+1721_daily_bin13.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/62152/ft1_4FGL_J1507.2+1721_daily_bin13.fits outfile=/scratch/kocevski/62152/ft1_filteredMKT_4FGL_J1507.2+1721_daily_bin13.fits ra=226.821 dec=17.3519 rad=12.0 tmin=242697601.0 tmax=242956801.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 1.43
user 1.24
sys 0.17

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/62152/ft1_filtered_4FGL_J1507.2+1721_daily_bin13.fits evtable="EVENTS" scfile=/scratch/kocevski/62152/ft2_4FGL_J1507.2+1721_daily_bin13.fits sctable="SC_DATA" expcube=/scratch/kocevski/62152/ltcube_242697601_242956801_4FGL_J1507.2+1721_daily_bin13.fits outfile=/scratch/kocevski/62152/expmap_242697601_242956801_4FGL_J1507.2+1721_daily_bin13.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/62152/ltcube_242697601_242956801_4FGL_J1507.2+1721_daily_bin13.fits
.....................!
real 190.34
user 185.59
sys 4.39

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/62152/ft1_filtered_4FGL_J1507.2+1721_daily_bin13.fits scfile=/scratch/kocevski/62152/ft2_4FGL_J1507.2+1721_daily_bin13.fits outfile=/scratch/kocevski/62152/cmap_242697601_242956801_4FGL_J1507.2+1721_daily_bin13.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.52
user 0.37
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    5.6479       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .37499E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .55740       1.0000         .10000E-03   10000.    
     5 'norm      '    2.2085       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.2129       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    21.653       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .90042       1.0000         .10000E-03   10000.    
    12 'norm      '    2.8052       1.0000         .10000E-03   10000.    
    13 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    12.549       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .66463       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    3.2807       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .12591E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2188       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1028       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=   12191.06     FROM MIGRAD    STATUS=CONVERGED    501 CALLS     2089 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.2758        .48123E-07** at limit **
   2  norm          5.6485        2.6242       -.23880E-07   -.73188E-05
   3  Prefactor     .10000E-03    22.325       -.41069E-05** at limit **
   4  norm          .55814        1.8460       -.69286E-06   -.48966E-04
   5  norm          2.2111        4.0166       -.57513E-06   -.62730E-04
   6  Prefactor     1.3251        76.253       -.82563E-05   -.11136E-04
   7  Prefactor     .10000E-03    5.8999        .42231E-07** at limit **
   8  Prefactor     21.646        12.624        .57584E-06    .11064E-03
   9  Prefactor     .10000E-03    9.4202        .11640E-05** at limit **
  10  Prefactor     .10000E-03    11.060       -.18502E-06** at limit **
  11  Prefactor     .90064        5.3397        .10891E-06    .41750E-03
  12  norm          2.8053        .28094       -.47374E-08    .13673E-03
  13  norm          .10000E-03    1.9383        .21043E-07** at limit **
  14  norm          .10000E-03    12.877        .12564E-06** at limit **
  15  Prefactor     12.551        42.416        .81249E-06    .17809E-04
  16  Prefactor     .66960        4.6119        .29823E-06   -.32253E-04
  17  Prefactor     .10000E-03    11.905        .82029E-06** at limit **
  18  Prefactor     .10000E-03    10.156       -.89224E-06** at limit **
  19  norm          3.2794        2.3292       -.40007E-08    .72214E-04
  20  Prefactor     .10000E-03    90.104       -.17664E-05** at limit **
  21  Normalizat    1.2181        .19291       -.20003E-06    .14142E-03
  22  Prefactor     1.1030        .11799        .35139E-06    .18239E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 5.6485
  Prefactor  = 0.000100002
  norm       = 0.558135
  norm       = 2.21109
  Prefactor  = 1.32509
  Prefactor  = 0.0001
  Prefactor  = 21.6462
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.900644
  norm       = 2.80533
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 12.5507
  Prefactor  = 0.669603
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.27937
  Prefactor  = 0.0001
  Normalizat = 1.21812
  Prefactor  = 1.10296
 **********
 **   18 **HESSE 
 **********

 FCN=   12191.06     FROM HESSE     STATUS=OK           350 CALLS     2439 TOTAL
                     EDM=   .71E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.2852        .16260E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          5.6485        2.6233        .11834E-03   -1.5233    
   3  Prefactor     .10000E-03    22.973        .37805E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .55814        1.8405        .26152E-03   -1.5559    
   5  norm          2.2111        4.0092        .27680E-03   -1.5411    
   6  Prefactor     1.3251        78.079        .41053E-03   -1.5478    
   7  Prefactor     .10000E-03    5.9100        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     21.646        12.664        .86078E-04   -1.4777    
   9  Prefactor     .10000E-03    9.5404        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    11.063        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .90064        12.376        .43686E-02   -1.5518    
  12  norm          2.8053        .28141        .17641E-04   -1.5373    
  13  norm          .10000E-03    1.9418        .15012E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    12.879        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     12.551        42.442        .11308E-03   -1.4999    
  16  Prefactor     .66960        21.300        .44853E-02   -1.5544    
  17  Prefactor     .10000E-03    11.937        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    10.149        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.2794        2.3269        .13711E-03   -1.5346    
  20  Prefactor     .10000E-03    91.541        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.2181        .22753        .33570E-03   -.86045    
  22  Prefactor     1.1030        .14042        .22228E-03   -.89372    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.12915e-08
Minuit parameter uncertainties:
  1  1.95045e-06
  2  2.62339
  3  0.000420748
  4  1.84069
  5  4.00968
  6  20.3703
  7  1.90852e-06
  8  12.6659
  9  6.21273e-05
  10  2.76635e-06
  11  6.67863
  12  0.281415
  13  4.78233e-07
  14  2.67209e-06
  15  42.5442
  16  7.55551
  17  1.62192e-05
  18  8.26191e-06
  19  2.32694
  20  0.000180235
  21  0.227718
  22  0.140468
Done.

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

Extracting fit parameters...

4FGL J1507.2+1721
   Spectrum: LogParabola
219         norm:  1.000e-04  2.672e-06  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:  1.103e+00  1.405e-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.218e+00  2.277e-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.22e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.10e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/62152/likelihoodResults_242697601_242956801_4FGL_J1507.2+1721_daily_bin13.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) = 12191.0604847
delta logL = -0.000368042647096

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 12191.0601167
delta logL = -1.7462298274e-10

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.5342       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2181       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1030       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   12190.90     FROM MIGRAD    STATUS=FAILED       144 CALLS      295 TOTAL
                     EDM=   .28E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .56283E-01    .98251E-01    .10594E-01   -.76934E-02
   2  alpha         4.6809        .88127        .50000        .19032E-03
   3  Normalizat    1.1931        .22742        .33570E-03    .49918E-04
   4  Prefactor     1.1097        .14067        .22228E-03    .10301E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   12190.90     FROM SIMPLEX   STATUS=UNCHANGED     60 CALLS      355 TOTAL
                     EDM=   .16E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .56283E-01    .98251E-01    .69525E-04   -1.5755    
   2  alpha         4.6809        .88127        .63972E-02    1.0600    
   3  Normalizat    1.1931        .22742        .25829E-03   -.86816    
   4  Prefactor     1.1097        .14067        .15402E-03   -.89157    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   12190.90     FROM MIGRAD    STATUS=CONVERGED     74 CALLS      429 TOTAL
                     EDM=   .47E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .56285E-01    1.3812        .83453E-04    .20598E-03
   2  alpha         4.6809        4.8401        .15219E-01   -.15403E-05
   3  Normalizat    1.1931        .22483        .26856E-05    .38945E-04
   4  Prefactor     1.1097        .14079        .17783E-05    .79275E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0562847
  alpha      = 4.68089
  Normalizat = 1.1931
  Prefactor  = 1.10969
 **********
 **   18 **HESSE 
 **********

 FCN=   12190.90     FROM HESSE     STATUS=OK            27 CALLS      456 TOTAL
                     EDM=   .59E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .56285E-01    .60213        .33381E-05   -1.5755    
   2  alpha         4.6809        4.3842        .60875E-03    1.0600    
   3  Normalizat    1.1931        .21606        .53712E-06   -.86816    
   4  Prefactor     1.1097        .13511        .35565E-06   -.89157    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.93308e-12
Minuit parameter uncertainties:
  1  0.367865
  2  2.13638
  3  0.216223
  4  0.135156
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/62152': 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) = 12190.9041689
delta logL = 0.155947747133

Extracting fit parameters...

4FGL J1507.2+1721
   Spectrum: LogParabola
219         norm:  5.628e-02  3.679e-01  1.000e-04  1.000e+04 ( 1.000e-14)
220        alpha:  4.681e+00  2.136e+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:  1.110e+00  1.352e-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.193e+00  2.162e-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/62152/cmap_HighResolution_242697601_242956801_4FGL_J1507.2+1721_daily_bin13.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.10e-05', job_status='DONE', photon_flux_upper_limit='1.22e-08', time_completed='2021-09-11 00:57:30.504320', job_id='62152', GAL2='1.11', fit_tolerance='1e-08', EG2='1.19', EG='1.22', time_epoch_completed='1631347050.5', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='1.56e-01', ts2='0.33', photon_index_error='0.00', photon_index='1.53' WHERE bin_id='13' AND source_name='4FGL J1507.2+1721' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 00:57:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0274>
Subject: Job 62152: <4FGL_J1507.2+1721_daily_bin13> in cluster <slac> Done

Job <4FGL_J1507.2+1721_daily_bin13> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Sep 11 00:41:20 2021
Job was executed on host(s) <bullet0274>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 00:41:22 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:41:22 2021
Terminated at Sat Sep 11 00:57:31 2021
Results reported at Sat Sep 11 00:57:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1507.2+1721_daily_bin13 226.821 17.3519 242697601 242956801 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 :                                   808.17 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             320.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   968 sec.
    Turnaround time :                            971 sec.

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

