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


Performing analysis on: 4FGL_J1507.2+1721_daily_bin929
RA = 226.821, Dec = 17.3519
tmin = 480124801, tmax = 480384001
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='68929', job_status='RUN', time_executed='2021-09-11 01:00:35.063496', time_epoch_executed='1631347235.06' WHERE source_name='4FGL J1507.2+1721' and cadence='daily' and bin_id='929'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/68929

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/68929/ft1_4FGL_J1507.2+1721_daily_bin929.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/68929/ft2_4FGL_J1507.2+1721_daily_bin929.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/68929/ft1_4FGL_J1507.2+1721_daily_bin929.fits outfile=/scratch/kocevski/68929/ft1_filteredMKT_4FGL_J1507.2+1721_daily_bin929.fits ra=226.821 dec=17.3519 rad=12.0 tmin=480124801.0 tmax=480384001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.53
user 3.31
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/68929/ft1_filtered_4FGL_J1507.2+1721_daily_bin929.fits evtable="EVENTS" scfile=/scratch/kocevski/68929/ft2_4FGL_J1507.2+1721_daily_bin929.fits sctable="SC_DATA" expcube=/scratch/kocevski/68929/ltcube_480124801_480384001_4FGL_J1507.2+1721_daily_bin929.fits outfile=/scratch/kocevski/68929/expmap_480124801_480384001_4FGL_J1507.2+1721_daily_bin929.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/68929/ltcube_480124801_480384001_4FGL_J1507.2+1721_daily_bin929.fits
.....................!
real 191.39
user 185.55
sys 5.36

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/68929/ft1_filtered_4FGL_J1507.2+1721_daily_bin929.fits scfile=/scratch/kocevski/68929/ft2_4FGL_J1507.2+1721_daily_bin929.fits outfile=/scratch/kocevski/68929/cmap_480124801_480384001_4FGL_J1507.2+1721_daily_bin929.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.55
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/68929/ft1_filtered_4FGL_J1507.2+1721_daily_bin929.fits scfile=/scratch/kocevski/68929/ft2_4FGL_J1507.2+1721_daily_bin929.fits outfile=/scratch/kocevski/68929/cmap_HighResolution_480124801_480384001_4FGL_J1507.2+1721_daily_bin929.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/68929/ft1_filtered_4FGL_J1507.2+1721_daily_bin929.fits evtable="EVENTS" scfile=/scratch/kocevski/68929/ft2_4FGL_J1507.2+1721_daily_bin929.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/68929/Model_4FGL_J1507.2+1721_daily_bin929.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/68929/ft1_filtered_4FGL_J1507.2+1721_daily_bin929.fits.....................!
real 61.00
user 59.64
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    10.176       1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.3760       1.0000         .10000E-03   10000.    
     4 'norm      '    7.1863       1.0000         .10000E-03   10000.    
     5 'norm      '    1.4514       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .74984       1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.0569       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10452E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10623E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.9160       1.0000         .10000E-03   10000.    
    13 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    14.169       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10210E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.6491       1.0000         .10000E-03   10000.    
    17 'Prefactor '    31.147       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.1822       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.3941       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .78792       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=   8422.708     FROM MIGRAD    STATUS=CONVERGED    488 CALLS     2358 TOTAL
                     EDM=   .74E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.2936       -.45295E-07** at limit **
   2  norm          10.176        4.1801        .10604E-06    .52109E-04
   3  Prefactor     7.3735        7.8698       -.11332E-06   -.48292E-03
   4  norm          7.1872        3.5816       -.45649E-07   -.56303E-03
   5  norm          1.4521        2.6671       -.17670E-06   -.10319E-03
   6  Prefactor     .68210        16.584       -.21847E-05    .20915E-03
   7  Prefactor     8.0602        25.956       -.69658E-06    .34119E-05
   8  Prefactor     .10000E-03    9.3004        .85918E-06** at limit **
   9  Prefactor     .10000E-03    29.898        .11535E-04** at limit **
  10  Prefactor     .10000E-03    27.373       -.11338E-04** at limit **
  11  Prefactor     .10000E-03    4.0597        .29517E-07** at limit **
  12  norm          1.9159        .28996        .29948E-08    .57123E-03
  13  norm          .10000E-03    1.8223       -.24920E-07** at limit **
  14  norm          14.165        32.385       -.47853E-05   -.12009E-04
  15  Prefactor     .10000E-03    9.8215       -.11372E-05** at limit **
  16  Prefactor     7.6508        8.3387       -.35888E-06   -.64028E-05
  17  Prefactor     31.137        34.636       -.84716E-05   -.33930E-04
  18  Prefactor     1.1615        14.551        .26467E-05   -.42968E-03
  19  norm          .10000E-03    1.6734       -.55849E-07** at limit **
  20  Prefactor     .10000E-03    15.945        .10153E-05** at limit **
  21  Normalizat    1.3942        .21521        .10815E-05    .72867E-04
  22  Prefactor     .78784        .12373        .32705E-06    .14796E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 10.176
  Prefactor  = 7.37345
  norm       = 7.1872
  norm       = 1.45213
  Prefactor  = 0.682102
  Prefactor  = 8.0602
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.91593
  norm       = 0.0001
  norm       = 14.1646
  Prefactor  = 0.0001
  Prefactor  = 7.65081
  Prefactor  = 31.1373
  Prefactor  = 1.16151
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.39416
  Prefactor  = 0.787836
 **********
 **   18 **HESSE 
 **********

 FCN=   8422.708     FROM HESSE     STATUS=OK           346 CALLS     2704 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.3075        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          10.176        4.1823        .11630E-03   -1.5070    
   3  Prefactor     7.3735        8.0986        .73839E-03   -1.5165    
   4  norm          7.1872        3.6069        .58733E-03   -1.5172    
   5  norm          1.4521        2.6278        .19753E-03   -1.5467    
   6  Prefactor     .68210        149.86        .70065E-02   -1.5543    
   7  Prefactor     8.0602        26.047        .14125E-03   -1.5140    
   8  Prefactor     .10000E-03    9.3405        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    30.064        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    27.506        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.1016        .18057E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.9159        .29086        .18123E-04   -1.5431    
  13  norm          .10000E-03    1.8235        .12099E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          14.165        32.400        .10641E-03   -1.4955    
  15  Prefactor     .10000E-03    9.8244        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     7.6508        8.3684        .14500E-03   -1.5155    
  17  Prefactor     31.137        34.730        .71794E-04   -1.4591    
  18  Prefactor     1.1615        85.651        .21011E-02   -1.5492    
  19  norm          .10000E-03    1.7435        .23164E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    15.982        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.3942        .26261        .29789E-03   -.80798    
  22  Prefactor     .78784        .14985        .23025E-03   -1.0018    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01139e-08
Minuit parameter uncertainties:
  1  2.53362e-06
  2  4.18244
  3  8.09985
  4  3.60703
  5  2.62799
  6  20.271
  7  26.0836
  8  2.69125e-06
  9  0.000111643
  10  0.000116436
  11  4.22687e-06
  12  0.290858
  13  4.71291e-07
  14  32.4404
  15  3.26829e-06
  16  8.36972
  17  34.7522
  18  19.9773
  19  1.80457e-06
  20  2.14656e-06
  21  0.262866
  22  0.14993
Done.

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

Extracting fit parameters...

4FGL J1507.2+1721
   Spectrum: LogParabola
219         norm:  1.416e+01  3.244e+01  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.878e-01  1.499e-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.394e+00  2.629e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.26
Ra Dec: 226.821 17.352
Photon Flux Upper Limit: 2.08e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.99e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/68929/likelihoodResults_480124801_480384001_4FGL_J1507.2+1721_daily_bin929.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) = 8422.52508599
delta logL = 0.183098219111

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8422.51706555
delta logL = 0.19111865969

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    17.943       1.0000         .10000E-03   10000.    
     2 'alpha     '    .83424       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3933       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78806       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=   8422.517     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      240 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          17.946        29.088        .94553E-04    .79356E-05
   2  alpha         .83500        .91453        .23547       -.79113E-05
   3  Normalizat    1.3936        .24591        .29789E-03   -.20227E-04
   4  Prefactor     .78787        .14852        .23021E-03   -.16297E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 17.9462
  alpha      = 0.835003
  Normalizat = 1.39365
  Prefactor  = 0.787869
 **********
 **   18 **HESSE 
 **********

 FCN=   8422.517     FROM HESSE     STATUS=OK            25 CALLS      265 TOTAL
                     EDM=   .28E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          17.946        31.425        .37821E-05   -1.4860    
   2  alpha         .83500        .97561        .45934E-02   -.72883    
   3  Normalizat    1.3936        .24619        .11916E-04   -.80813    
   4  Prefactor     .78787        .14869        .92083E-05   -1.0018    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.76414e-12
Minuit parameter uncertainties:
  1  31.4535
  2  1.0267
  3  0.2464
  4  0.148764
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/68929': 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) = 8422.51706437
delta logL = 0.191119840812

Extracting fit parameters...

4FGL J1507.2+1721
   Spectrum: LogParabola
219         norm:  1.795e+01  3.145e+01  1.000e-04  1.000e+04 ( 1.000e-14)
220        alpha:  8.350e-01  1.027e+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:  7.879e-01  1.488e-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.394e+00  2.464e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.26
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/68929/cmap_HighResolution_480124801_480384001_4FGL_J1507.2+1721_daily_bin929.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.99e-05', job_status='DONE', photon_flux_upper_limit='2.08e-08', time_completed='2021-09-11 01:11:35.712073', job_id='68929', GAL2='0.79', fit_tolerance='1e-08', EG2='1.39', EG='1.39', time_epoch_completed='1631347895.71', return_code2='0', ts='0.26', comment='SUCCESS', return_code='0', GAL='0.79', dlogl='1.91e-01', ts2='0.64', photon_index_error='0.00', photon_index='1.53' WHERE bin_id='929' AND source_name='4FGL J1507.2+1721' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 01:11:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0126>
Subject: Job 68929: <4FGL_J1507.2+1721_daily_bin929> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1507.2+1721_daily_bin929 226.821 17.3519 480124801 480384001 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 :                                   648.16 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             220.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   883 sec.
    Turnaround time :                            885 sec.

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

