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


Performing analysis on: 4FGL_J1507.2+1721_daily_bin621
RA = 226.821, Dec = 17.3519
tmin = 400291201, tmax = 400550401
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='68420', job_status='RUN', time_executed='2021-09-11 00:56:28.753898', time_epoch_executed='1631346988.75' WHERE source_name='4FGL J1507.2+1721' and cadence='daily' and bin_id='621'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/68420

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/68420/ft1_4FGL_J1507.2+1721_daily_bin621.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/68420/ft2_4FGL_J1507.2+1721_daily_bin621.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/68420/ft1_4FGL_J1507.2+1721_daily_bin621.fits outfile=/scratch/kocevski/68420/ft1_filteredMKT_4FGL_J1507.2+1721_daily_bin621.fits ra=226.821 dec=17.3519 rad=12.0 tmin=400291201.0 tmax=400550401.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.31
user 3.08
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/68420/ft1_filtered_4FGL_J1507.2+1721_daily_bin621.fits evtable="EVENTS" scfile=/scratch/kocevski/68420/ft2_4FGL_J1507.2+1721_daily_bin621.fits sctable="SC_DATA" expcube=/scratch/kocevski/68420/ltcube_400291201_400550401_4FGL_J1507.2+1721_daily_bin621.fits outfile=/scratch/kocevski/68420/expmap_400291201_400550401_4FGL_J1507.2+1721_daily_bin621.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/68420/ltcube_400291201_400550401_4FGL_J1507.2+1721_daily_bin621.fits
.....................!
real 193.73
user 188.67
sys 4.62

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/68420/ft1_filtered_4FGL_J1507.2+1721_daily_bin621.fits scfile=/scratch/kocevski/68420/ft2_4FGL_J1507.2+1721_daily_bin621.fits outfile=/scratch/kocevski/68420/cmap_400291201_400550401_4FGL_J1507.2+1721_daily_bin621.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=226.821 yref=17.3519 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.296       1.0000         .10000E-03   10000.    
     2 'norm      '    5.2032       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10139E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    5.9909       1.0000         .10000E-03   10000.    
     5 'norm      '    4.3852       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.269       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.7693       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10607E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.9675       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .95186E-01   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    1.4348       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.5323       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .70489       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=   6606.761     FROM MIGRAD    STATUS=CONVERGED    501 CALLS     2430 TOTAL
                     EDM=   .41E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.299        9.6734       -.87596E-06   -.75055E-04
   2  norm          5.2031        2.8826       -.53205E-07    .25003E-04
   3  Prefactor     .10000E-03    4.2637        .62124E-07** at limit **
   4  norm          5.9912        3.0936       -.10181E-06   -.35940E-03
   5  norm          4.3846        4.9901       -.45696E-06   -.44721E-03
   6  Prefactor     .10000E-03    41.407        .36176E-04** at limit **
   7  Prefactor     12.268        16.778        .38338E-07   -.36966E-06
   8  Prefactor     7.7679        18.159       -.24658E-05   -.11714E-03
   9  Prefactor     .10000E-03    12.554        .38426E-06** at limit **
  10  Prefactor     9.6744        56.656       -.14422E-04   -.23260E-04
  11  Prefactor     .10000E-03    6.8616       -.17916E-07** at limit **
  12  norm          .95250E-01    .16755       -.65949E-07   -.34721E-02
  13  norm          .10000E-03    2.2619       -.15799E-06** at limit **
  14  norm          .10000E-03    19.902        .76202E-06** at limit **
  15  Prefactor     .10000E-03    13.002       -.54383E-06** at limit **
  16  Prefactor     .10000E-03    2.8954       -.17037E-08** at limit **
  17  Prefactor     .10000E-03    35.075       -.15661E-04** at limit **
  18  Prefactor     .10000E-03    58.689       -.55641E-04** at limit **
  19  norm          1.4341        2.0030       -.84637E-07   -.72178E-03
  20  Prefactor     .10000E-03    77.543        .45716E-04** at limit **
  21  Normalizat    1.5322        .21008        .10418E-05   -.16653E-05
  22  Prefactor     .70501        .12769        .65086E-06    .96642E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.299
  norm       = 5.20313
  Prefactor  = 0.0001
  norm       = 5.99125
  norm       = 4.38456
  Prefactor  = 0.0001
  Prefactor  = 12.2676
  Prefactor  = 7.76793
  Prefactor  = 0.0001
  Prefactor  = 9.67443
  Prefactor  = 0.0001
  norm       = 0.0952498
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 1.43412
  Prefactor  = 0.000100001
  Normalizat = 1.53219
  Prefactor  = 0.705006
 **********
 **   18 **HESSE 
 **********

 FCN=   6606.761     FROM HESSE     STATUS=OK           342 CALLS     2772 TOTAL
                     EDM=   .79E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.299        9.6751        .93636E-04   -1.4852    
   2  norm          5.2031        2.8847        .99828E-04   -1.5252    
   3  Prefactor     .10000E-03    4.3243        .16377E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          5.9912        3.0944        .99058E-04   -1.5218    
   5  norm          4.3846        4.9963        .18569E-03   -1.5289    
   6  Prefactor     .10000E-03    41.808        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     12.268        16.730        .11436E-03   -1.5007    
   8  Prefactor     7.7679        18.163        .14386E-03   -1.5150    
   9  Prefactor     .10000E-03    12.563        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     9.6744        56.302        .12692E-03   -1.5086    
  11  Prefactor     .10000E-03    6.9246        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .95250E-01    .16187        .41098E-04   -1.5646    
  13  norm          .10000E-03    2.2631        .11938E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    19.904        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    13.010        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.9054        .13506E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    35.357        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    59.372        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.4341        1.9754        .13179E-03   -1.5468    
  20  Prefactor     .10000E-03    78.377        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.5322        .25142        .25406E-03   -.76878    
  22  Prefactor     .70501        .15249        .22332E-03   -1.0333    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.91569e-10
Minuit parameter uncertainties:
  1  9.67597
  2  2.88477
  3  3.46592e-06
  4  3.09444
  5  4.99679
  6  0.000172319
  7  16.736
  8  18.1763
  9  5.36441e-05
  10  46.7436
  11  1.36077e-05
  12  0.161873
  13  1.3923e-07
  14  3.98474e-06
  15  3.21898e-06
  16  3.83086e-06
  17  4.33206e-05
  18  0.000655349
  19  1.97545
  20  0.000481348
  21  0.251625
  22  0.152581
Done.

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

Extracting fit parameters...

4FGL J1507.2+1721
   Spectrum: LogParabola
219         norm:  1.000e-04  3.985e-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:  7.050e-01  1.526e-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.532e+00  2.516e-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.84e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.19e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/68420/likelihoodResults_400291201_400550401_4FGL_J1507.2+1721_daily_bin621.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) = 6606.76106069
delta logL = -0.000238227072259

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6606.76082541
delta logL = -2.95402332995e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10069E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5436       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5322       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70500       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=   6606.761     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      278 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10003E-03    572.75        .18142E-01** at limit **
   2  alpha         1.4194        3.6448        .16464        .12319E-06
   3  Normalizat    1.5322        .28516E-01    .25406E-03    .33450E-03
   4  Prefactor     .70501        .17871E-01    .22332E-03    .50739E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100032
  alpha      = 1.41941
  Normalizat = 1.53219
  Prefactor  = 0.705007
 **********
 **   18 **HESSE 
 **********

 FCN=   6606.761     FROM HESSE     STATUS=OK            23 CALLS      301 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10003E-03    22.935        .35614E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.4194        3.6181        .65855E-02   -.44697    
   3  Normalizat    1.5322        .24137        .50813E-04   -.76878    
   4  Prefactor     .70501        .15129        .44663E-04   -1.0333    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.09507e-09
Minuit parameter uncertainties:
  1  0.00170476
  2  592.831
  3  0.241554
  4  0.151381
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/68420': 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) = 6606.76082243
delta logL = 2.65135895461e-08

Extracting fit parameters...

4FGL J1507.2+1721
   Spectrum: LogParabola
219         norm:  1.000e-04  1.705e-03  1.000e-04  1.000e+04 ( 1.000e-14)
220        alpha:  1.419e+00  5.928e+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:  7.050e-01  1.514e-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.532e+00  2.416e-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/68420/cmap_HighResolution_400291201_400550401_4FGL_J1507.2+1721_daily_bin621.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.19e-05', job_status='DONE', photon_flux_upper_limit='1.84e-08', time_completed='2021-09-11 01:06:18.748989', job_id='68420', GAL2='0.71', fit_tolerance='1e-08', EG2='1.53', EG='1.53', time_epoch_completed='1631347578.75', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.71', dlogl='2.65e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.53' WHERE bin_id='621' AND source_name='4FGL J1507.2+1721' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 01:06:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0281>
Subject: Job 68420: <4FGL_J1507.2+1721_daily_bin621> in cluster <slac> Done

Job <4FGL_J1507.2+1721_daily_bin621> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep 11 00:56:11 2021
Job was executed on host(s) <bullet0281>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 00:56:13 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:56:13 2021
Terminated at Sat Sep 11 01:06:19 2021
Results reported at Sat Sep 11 01:06:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1507.2+1721_daily_bin621 226.821 17.3519 400291201 400550401 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 :                                   586.18 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             345.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   606 sec.
    Turnaround time :                            608 sec.

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

