/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 216 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 = 7370
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1507.2+1721_daily_bin258
RA = 226.821, Dec = 17.3519
tmin = 306201601, tmax = 306460801
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='63936', job_status='RUN', time_executed='2021-09-11 00:50:06.515051', time_epoch_executed='1631346606.52' WHERE source_name='4FGL J1507.2+1721' and cadence='daily' and bin_id='258'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/63936

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/63936/ft1_4FGL_J1507.2+1721_daily_bin258.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/63936/ft2_4FGL_J1507.2+1721_daily_bin258.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/63936/ft1_4FGL_J1507.2+1721_daily_bin258.fits outfile=/scratch/kocevski/63936/ft1_filteredMKT_4FGL_J1507.2+1721_daily_bin258.fits ra=226.821 dec=17.3519 rad=12.0 tmin=306201601.0 tmax=306460801.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.55
user 3.26
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/63936/ft1_filtered_4FGL_J1507.2+1721_daily_bin258.fits" evtable="EVENTS" scfile=/scratch/kocevski/63936/ft2_4FGL_J1507.2+1721_daily_bin258.fits sctable="SC_DATA" outfile=/scratch/kocevski/63936/ltcube_306201601_306460801_4FGL_J1507.2+1721_daily_bin258.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/63936/ft2_4FGL_J1507.2+1721_daily_bin258.fits
.....................!
real 13.14
user 12.27
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/63936/ft1_filtered_4FGL_J1507.2+1721_daily_bin258.fits evtable="EVENTS" scfile=/scratch/kocevski/63936/ft2_4FGL_J1507.2+1721_daily_bin258.fits sctable="SC_DATA" expcube=/scratch/kocevski/63936/ltcube_306201601_306460801_4FGL_J1507.2+1721_daily_bin258.fits outfile=/scratch/kocevski/63936/expmap_306201601_306460801_4FGL_J1507.2+1721_daily_bin258.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/63936/ltcube_306201601_306460801_4FGL_J1507.2+1721_daily_bin258.fits
.....................!
real 191.26
user 185.78
sys 4.81

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/63936/ft1_filtered_4FGL_J1507.2+1721_daily_bin258.fits scfile=/scratch/kocevski/63936/ft2_4FGL_J1507.2+1721_daily_bin258.fits outfile=/scratch/kocevski/63936/cmap_306201601_306460801_4FGL_J1507.2+1721_daily_bin258.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.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.9947       1.0000         .10000E-03   10000.    
     2 'norm      '    14.766       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .37106       1.0000         .10000E-03   10000.    
     5 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    20.852       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10268E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.7436       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10969E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    46.546       1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.400       1.0000         .10000E-03   10000.    
    12 'norm      '    1.9295       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.7220       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .35625       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10337E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    40.915       1.0000         .10000E-03   10000.    
    19 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .96360       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .97406       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=   8739.385     FROM MIGRAD    STATUS=CONVERGED    504 CALLS     2429 TOTAL
                     EDM=   .40E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.9964        7.7231       -.75950E-06   -.71167E-04
   2  norm          14.767        4.1001       -.59554E-07    .65558E-04
   3  Prefactor     .10000E-03    5.1481        .18245E-06** at limit **
   4  norm          .36615        1.4468        .74874E-07   -.22082E-03
   5  norm          .10000E-03    1.2862       -.21040E-07** at limit **
   6  Prefactor     20.857        24.110       -.11777E-04    .14777E-04
   7  Prefactor     .10000E-03    16.653       -.29439E-06** at limit **
   8  Prefactor     7.7476        16.704       -.10009E-04   -.22311E-04
   9  Prefactor     .10000E-03    36.849        .10270E-05** at limit **
  10  Prefactor     46.526        39.932        .54015E-05    .35125E-04
  11  Prefactor     10.398        7.7548        .26710E-06    .24094E-04
  12  norm          1.9295        .27591       -.61465E-08    .13828E-02
  13  norm          .10000E-03    1.7901        .19681E-07** at limit **
  14  norm          .10000E-03    22.228        .66377E-06** at limit **
  15  Prefactor     5.7061        74.427        .11757E-04    .16885E-04
  16  Prefactor     .37065        5.8923       -.10545E-05   -.34118E-03
  17  Prefactor     .10174E-03    29.003       -.25892E-05** at limit **
  18  Prefactor     40.922        28.172       -.84855E-05    .84762E-04
  19  norm          .10000E-03    .67549        .28881E-07** at limit **
  20  Prefactor     .10000E-03    7.0405        .10540E-06** at limit **
  21  Normalizat    .96336        .20543        .37430E-05    .20612E-03
  22  Prefactor     .97411        .11968        .19239E-06    .50471E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.9964
  norm       = 14.7672
  Prefactor  = 0.0001
  norm       = 0.366147
  norm       = 0.0001
  Prefactor  = 20.8569
  Prefactor  = 0.0001
  Prefactor  = 7.74759
  Prefactor  = 0.000100003
  Prefactor  = 46.5262
  Prefactor  = 10.3982
  norm       = 1.92955
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 5.70614
  Prefactor  = 0.370653
  Prefactor  = 0.000101736
  Prefactor  = 40.922
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.963356
  Prefactor  = 0.97411
 **********
 **   18 **HESSE 
 **********

 FCN=   8739.385     FROM HESSE     STATUS=OK           352 CALLS     2781 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.9964        7.7234        .12675E-03   -1.5076    
   2  norm          14.767        4.1004        .96753E-04   -1.4939    
   3  Prefactor     .10000E-03    5.2365        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .36615        7.2955        .20768E-02   -1.5587    
   5  norm          .10000E-03    1.2940        .10353E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     20.857        24.037        .87714E-04   -1.4794    
   7  Prefactor     .10000E-03    16.743        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     7.7476        16.749        .14410E-03   -1.5151    
   9  Prefactor     .10000E-03    37.164        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     46.526        39.899        .58770E-04   -1.4343    
  11  Prefactor     10.398        7.7581        .12424E-03   -1.5063    
  12  norm          1.9295        .27657        .17609E-04   -1.5430    
  13  norm          .10000E-03    1.7916        .12215E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    22.236        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     5.7061        74.285        .16792E-03   -1.5230    
  16  Prefactor     .37065        48.462        .42830E-02   -1.5586    
  17  Prefactor     .10174E-03    28.507        .12351       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     40.922        28.168        .62667E-04   -1.4428    
  19  norm          .10000E-03    .68346        .75017E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    7.0425        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .96336        .24473        .33429E-03   -.94268    
  22  Prefactor     .97411        .14333        .20654E-03   -.93598    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.12004e-09
Minuit parameter uncertainties:
  1  7.72415
  2  4.10049
  3  2.62806e-05
  4  3.26879
  5  2.92085e-06
  6  24.0478
  7  1.51634e-05
  8  16.759
  9  0.00065266
  10  39.9219
  11  7.75884
  12  0.276574
  13  1.07053e-06
  14  2.18478e-05
  15  41.2394
  16  8.48236
  17  0.0140743
  18  28.1774
  19  9.56641e-07
  20  1.90802e-05
  21  0.245017
  22  0.14339
Done.

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

Extracting fit parameters...

4FGL J1507.2+1721
   Spectrum: LogParabola
219         norm:  1.000e-04  2.185e-05  1.000e-04  1.000e+04 ( 1.000e-14)
220        alpha:  1.534e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
221         beta:  2.414e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
222           Eb:  3.634e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
465    Prefactor:  9.741e-01  1.434e-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:  9.634e-01  2.450e-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.79e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.00e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/63936/likelihoodResults_306201601_306460801_4FGL_J1507.2+1721_daily_bin258.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) = 8739.38566902
delta logL = -0.00021422543432

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8739.38545482
delta logL = -2.35686457017e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10078E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5400       1.0000          .0000       5.0000    
     3 'Normalizat'    .96338       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97409       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=   8739.385     FROM MIGRAD    STATUS=CONVERGED    166 CALLS      316 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .20715E-02    .28284        .81261E-01** at limit **
   2  alpha         3.5705        3.2025        .50000        .28961E-05
   3  Normalizat    .96334        .26294E-02    .33429E-03   -.11631E-04
   4  Prefactor     .97410        .16437E-02    .20655E-03   -.15192E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.00207153
  alpha      = 3.57051
  Normalizat = 0.963342
  Prefactor  = 0.974105
 **********
 **   18 **HESSE 
 **********

 FCN=   8739.385     FROM HESSE     STATUS=NOT POSDEF    39 CALLS      355 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .20715E-02    2.7752        .30938E-01   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         3.5705        4.2633        .50000        .44250    
   3  Normalizat    .96334        .40284E-02    .13372E-04   -.94269    
   4  Prefactor     .97410        .25182E-02    .82618E-05   -.93598    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.068e-10
Minuit parameter uncertainties:
  1  0.147944
  2  18.3198
  3  0.00402841
  4  0.00251817
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/63936': 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): 102
logL (Free Index) = 8739.38545231
delta logL = 2.48937431024e-06

Extracting fit parameters...

4FGL J1507.2+1721
   Spectrum: LogParabola
219         norm:  2.072e-03  1.479e-01  1.000e-04  1.000e+04 ( 1.000e-14)
220        alpha:  3.571e+00  1.832e+01  0.000e+00  5.000e+00 ( 1.000e+00)
221         beta:  2.414e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
222           Eb:  3.634e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
465    Prefactor:  9.741e-01  2.518e-03  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:  9.633e-01  4.028e-03  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/63936/cmap_HighResolution_306201601_306460801_4FGL_J1507.2+1721_daily_bin258.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.00e-05', job_status='DONE', photon_flux_upper_limit='1.79e-08', time_completed='2021-09-11 01:01:41.305819', job_id='63936', GAL2='0.97', fit_tolerance='1e-08', EG2='0.96', EG='0.96', time_epoch_completed='1631347301.31', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='2.49e-06', ts2='0.00', photon_index_error='0.00', photon_index='1.53' WHERE bin_id='258' AND source_name='4FGL J1507.2+1721' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 01:01:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0055>
Subject: Job 63936: <4FGL_J1507.2+1721_daily_bin258> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1507.2+1721_daily_bin258 226.821 17.3519 306201601 306460801 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 :                                   690.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             275.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   920 sec.
    Turnaround time :                            923 sec.

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

