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


Performing analysis on: 4FGL_J1507.2+1721_daily_bin1059
RA = 226.821, Dec = 17.3519
tmin = 513820801, tmax = 514080001
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='70290', job_status='RUN', time_executed='2021-09-11 01:03:48.354654', time_epoch_executed='1631347428.35' WHERE source_name='4FGL J1507.2+1721' and cadence='daily' and bin_id='1059'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/70290

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/70290/ft1_4FGL_J1507.2+1721_daily_bin1059.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/70290/ft2_4FGL_J1507.2+1721_daily_bin1059.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/70290/ft1_4FGL_J1507.2+1721_daily_bin1059.fits outfile=/scratch/kocevski/70290/ft1_filteredMKT_4FGL_J1507.2+1721_daily_bin1059.fits ra=226.821 dec=17.3519 rad=12.0 tmin=513820801.0 tmax=514080001.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.92
user 3.69
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/70290/ft1_filtered_4FGL_J1507.2+1721_daily_bin1059.fits" evtable="EVENTS" scfile=/scratch/kocevski/70290/ft2_4FGL_J1507.2+1721_daily_bin1059.fits sctable="SC_DATA" outfile=/scratch/kocevski/70290/ltcube_513820801_514080001_4FGL_J1507.2+1721_daily_bin1059.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/70290/ft2_4FGL_J1507.2+1721_daily_bin1059.fits
.....................!
real 12.24
user 11.90
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/70290/ft1_filtered_4FGL_J1507.2+1721_daily_bin1059.fits evtable="EVENTS" scfile=/scratch/kocevski/70290/ft2_4FGL_J1507.2+1721_daily_bin1059.fits sctable="SC_DATA" expcube=/scratch/kocevski/70290/ltcube_513820801_514080001_4FGL_J1507.2+1721_daily_bin1059.fits outfile=/scratch/kocevski/70290/expmap_513820801_514080001_4FGL_J1507.2+1721_daily_bin1059.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/70290/ltcube_513820801_514080001_4FGL_J1507.2+1721_daily_bin1059.fits
.....................!
real 191.05
user 185.94
sys 4.61

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/70290/ft1_filtered_4FGL_J1507.2+1721_daily_bin1059.fits scfile=/scratch/kocevski/70290/ft2_4FGL_J1507.2+1721_daily_bin1059.fits outfile=/scratch/kocevski/70290/cmap_513820801_514080001_4FGL_J1507.2+1721_daily_bin1059.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.74
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/70290/ft1_filtered_4FGL_J1507.2+1721_daily_bin1059.fits scfile=/scratch/kocevski/70290/ft2_4FGL_J1507.2+1721_daily_bin1059.fits outfile=/scratch/kocevski/70290/cmap_HighResolution_513820801_514080001_4FGL_J1507.2+1721_daily_bin1059.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.67
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.405       1.0000         .10000E-03   10000.    
     2 'norm      '    4.2151       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10200E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    5.5248       1.0000         .10000E-03   10000.    
     5 'norm      '    36.181       1.0000         .10000E-03   10000.    
     6 'Prefactor '    15.040       1.0000         .10000E-03   10000.    
     7 'Prefactor '    39.596       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.8611       1.0000         .10000E-03   10000.    
    12 'norm      '    1.0658       1.0000         .10000E-03   10000.    
    13 'norm      '    8.1176       1.0000         .10000E-03   10000.    
    14 'norm      '    9.1536       1.0000         .10000E-03   10000.    
    15 'Prefactor '    31.011       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.4658       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1839       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0440       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=   8433.890     FROM MIGRAD    STATUS=CONVERGED    467 CALLS     2353 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.406        10.471       -.21303E-05   -.26284E-04
   2  norm          4.2151        2.4912        .10988E-07    .82517E-06
   3  Prefactor     .10000E-03    8.0828        .93111E-07** at limit **
   4  norm          5.5247        4.1831       -.40207E-06   -.53424E-03
   5  norm          36.181        8.5753       -.36248E-07   -.58030E-05
   6  Prefactor     15.034        29.245        .10522E-04   -.17607E-05
   7  Prefactor     39.594        27.963       -.12100E-06    .20726E-05
   8  Prefactor     .10000E-03    10.816       -.35392E-05** at limit **
   9  Prefactor     .10000E-03    9.6437        .92710E-06** at limit **
  10  Prefactor     .10000E-03    11.996        .20405E-05** at limit **
  11  Prefactor     7.8610        6.9737       -.68630E-07    .36990E-05
  12  norm          1.0658        .23380        .18578E-08    .11551E-03
  13  norm          8.1173        7.2175       -.27620E-07   -.55740E-04
  14  norm          9.0283        53.561       -.46603E-05   -.55508E-05
  15  Prefactor     31.000        39.482        .27249E-05    .16235E-05
  16  Prefactor     2.4660        8.8532       -.96190E-06   -.28685E-03
  17  Prefactor     .10000E-03    16.475       -.75512E-05** at limit **
  18  Prefactor     .10000E-03    12.299        .16280E-05** at limit **
  19  norm          .10000E-03    1.3544        .32858E-07** at limit **
  20  Prefactor     .10000E-03    16.987        .63428E-05** at limit **
  21  Normalizat    1.1838        .23321       -.90830E-06    .38020E-04
  22  Prefactor     1.0441        .13939        .19295E-06   -.12601E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.4057
  norm       = 4.21505
  Prefactor  = 0.0001
  norm       = 5.52466
  norm       = 36.1813
  Prefactor  = 15.0341
  Prefactor  = 39.5941
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.86099
  norm       = 1.06582
  norm       = 8.11732
  norm       = 9.02833
  Prefactor  = 31.0003
  Prefactor  = 2.46602
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.18376
  Prefactor  = 1.0441
 **********
 **   18 **HESSE 
 **********

 FCN=   8433.890     FROM HESSE     STATUS=OK           348 CALLS     2701 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.406        10.480        .88668E-04   -1.4804    
   2  norm          4.2151        2.4897        .10859E-03   -1.5297    
   3  Prefactor     .10000E-03    8.1981        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          5.5247        4.1998        .15444E-03   -1.5238    
   5  norm          36.181        8.5896        .66626E-04   -1.4504    
   6  Prefactor     15.034        29.194        .10328E-03   -1.4932    
   7  Prefactor     39.594        27.982        .63699E-04   -1.4449    
   8  Prefactor     .10000E-03    10.882        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    9.6338        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    11.988        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     7.8610        6.9754        .14301E-03   -1.5147    
  12  norm          1.0658        .23398        .19801E-04   -1.5501    
  13  norm          8.1173        7.2240        .14072E-03   -1.5138    
  14  norm          9.0283        53.780        .13247E-03   -1.5107    
  15  Prefactor     31.000        39.480        .71951E-04   -1.4594    
  16  Prefactor     2.4660        8.9186        .26042E-03   -1.5394    
  17  Prefactor     .10000E-03    16.450        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    12.308        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    1.3749        .10432E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    16.971        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.1838        .27984        .34310E-03   -.87106    
  22  Prefactor     1.0441        .16750        .22298E-03   -.91274    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.2165e-10
Minuit parameter uncertainties:
  1  10.4814
  2  2.48973
  3  4.53531e-05
  4  4.20006
  5  8.5899
  6  29.2219
  7  27.9912
  8  3.01856e-05
  9  4.84222e-05
  10  9.72696e-06
  11  6.97612
  12  0.233985
  13  7.22476
  14  44.1294
  15  39.5138
  16  8.92337
  17  1.77653e-06
  18  7.82906e-07
  19  5.1033e-07
  20  9.82837e-07
  21  0.280199
  22  0.167582
Done.

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

Extracting fit parameters...

4FGL J1507.2+1721
   Spectrum: LogParabola
219         norm:  9.028e+00  4.413e+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:  1.044e+00  1.676e-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.184e+00  2.802e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/70290/likelihoodResults_513820801_514080001_4FGL_J1507.2+1721_daily_bin1059.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) = 8433.74515173
delta logL = 0.145105800968

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8433.74169359
delta logL = 0.148563938188

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.348       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4095       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1883       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0373       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8433.742     FROM MIGRAD    STATUS=CONVERGED     66 CALLS      241 TOTAL
                     EDM=   .29E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.310        92.931         .0000        .31785E-03
   2  alpha         2.4110        3.6319         .0000        .68804E-03
   3  Normalizat    1.1886        .22361         .0000        .14901E-04
   4  Prefactor     1.0371        .13842         .0000        .56131E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 11.3096
  alpha      = 2.41098
  Normalizat = 1.18858
  Prefactor  = 1.03714
 **********
 **   18 **HESSE 
 **********

 FCN=   8433.742     FROM HESSE     STATUS=OK            31 CALLS      272 TOTAL
                     EDM=   .27E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.310        32.077        .59462E-03   -1.5035    
   2  alpha         2.4110        1.3921        .82372E-02   -.35614E-01
   3  Normalizat    1.1886        .26695        .34248E-03   -.86956    
   4  Prefactor     1.0371        .16579        .22360E-03   -.91501    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.74414e-12
Minuit parameter uncertainties:
  1  32.1255
  2  1.47663
  3  0.267253
  4  0.165868
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/70290': 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) = 8433.74169198
delta logL = 0.148565545986

Extracting fit parameters...

4FGL J1507.2+1721
   Spectrum: LogParabola
219         norm:  1.131e+01  3.213e+01  1.000e-04  1.000e+04 ( 1.000e-14)
220        alpha:  2.411e+00  1.477e+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.037e+00  1.659e-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.189e+00  2.673e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.05
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/70290/cmap_HighResolution_513820801_514080001_4FGL_J1507.2+1721_daily_bin1059.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.51e-05', job_status='DONE', photon_flux_upper_limit='2.54e-08', time_completed='2021-09-11 01:15:56.959960', job_id='70290', GAL2='1.04', fit_tolerance='1e-08', EG2='1.19', EG='1.18', time_epoch_completed='1631348156.96', return_code2='0', ts='0.05', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='1.49e-01', ts2='0.35', photon_index_error='0.00', photon_index='1.53' WHERE bin_id='1059' AND source_name='4FGL J1507.2+1721' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 01:15:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0094>
Subject: Job 70290: <4FGL_J1507.2+1721_daily_bin1059> in cluster <slac> Done

Job <4FGL_J1507.2+1721_daily_bin1059> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Sep 11 01:01:07 2021
Job was executed on host(s) <bullet0094>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 01:01:09 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 11 01:01:09 2021
Terminated at Sat Sep 11 01:15:57 2021
Results reported at Sat Sep 11 01:15:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1507.2+1721_daily_bin1059 226.821 17.3519 513820801 514080001 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 :                                   652.23 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             283.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   888 sec.
    Turnaround time :                            890 sec.

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

