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


Performing analysis on: 4FGL_J1507.2+1721_daily_bin1132
RA = 226.821, Dec = 17.3519
tmin = 532742401, tmax = 533001601
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='70399', job_status='RUN', time_executed='2021-09-11 01:04:31.661276', time_epoch_executed='1631347471.66' WHERE source_name='4FGL J1507.2+1721' and cadence='daily' and bin_id='1132'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/70399

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/70399/ft1_4FGL_J1507.2+1721_daily_bin1132.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/70399/ft2_4FGL_J1507.2+1721_daily_bin1132.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/70399/ft1_4FGL_J1507.2+1721_daily_bin1132.fits outfile=/scratch/kocevski/70399/ft1_filteredMKT_4FGL_J1507.2+1721_daily_bin1132.fits ra=226.821 dec=17.3519 rad=12.0 tmin=532742401.0 tmax=533001601.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.67
user 3.43
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/70399/ft1_filtered_4FGL_J1507.2+1721_daily_bin1132.fits evtable="EVENTS" scfile=/scratch/kocevski/70399/ft2_4FGL_J1507.2+1721_daily_bin1132.fits sctable="SC_DATA" expcube=/scratch/kocevski/70399/ltcube_532742401_533001601_4FGL_J1507.2+1721_daily_bin1132.fits outfile=/scratch/kocevski/70399/expmap_532742401_533001601_4FGL_J1507.2+1721_daily_bin1132.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/70399/ltcube_532742401_533001601_4FGL_J1507.2+1721_daily_bin1132.fits
.....................!
real 191.40
user 185.56
sys 5.53

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/70399/ft1_filtered_4FGL_J1507.2+1721_daily_bin1132.fits scfile=/scratch/kocevski/70399/ft2_4FGL_J1507.2+1721_daily_bin1132.fits outfile=/scratch/kocevski/70399/cmap_532742401_533001601_4FGL_J1507.2+1721_daily_bin1132.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.53
user 0.37
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.5483       1.0000         .10000E-03   10000.    
     2 'norm      '    8.7155       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    4.7075       1.0000         .10000E-03   10000.    
     5 'norm      '    6.1242       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.0473       1.0000         .10000E-03   10000.    
     7 'Prefactor '    17.230       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.1521       1.0000         .10000E-03   10000.    
    10 'Prefactor '    30.977       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.3530       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    27.645       1.0000         .10000E-03   10000.    
    16 'Prefactor '    13.440       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .82236E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10622E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .62486E-01   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .99393       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0687       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.

 FCN=   7625.941     FROM MIGRAD    STATUS=CONVERGED    533 CALLS     2552 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.5481        4.0265        .63948E-02    .27539E-03
   2  norm          8.7155        3.1913        .33944E-02   -.82337E-04
   3  Prefactor     .10000E-03    2.8050        .90712E-02** at limit **
   4  norm          4.7072        3.5664        .46366E-02    .45810E-03
   5  norm          6.1238        4.4276        .40558E-02    .25054E-03
   6  Prefactor     1.0196        24.890        .12136        .28897E-03
   7  Prefactor     17.228        26.518        .24122E-02    .45171E-03
   8  Prefactor     .10000E-03    13.232        .90712E-02** at limit **
   9  Prefactor     6.1411        49.941        .40464E-02   -.26028E-03
  10  Prefactor     31.039        57.285        .17998E-02    .77445E-03
  11  Prefactor     .10000E-03    9.1760        .90712E-02** at limit **
  12  norm          2.3530        .33914        .41353E-02    .63483E-04
  13  norm          .10000E-03    2.7667        .90712E-02** at limit **
  14  norm          .10000E-03    14.070        .90712E-02** at limit **
  15  Prefactor     27.636        45.110        .19049E-02   -.32338E-03
  16  Prefactor     13.440        9.8915        .27315E-02    .70111E-04
  17  Prefactor     .10002E-03    26.037        .13598    ** at limit **
  18  Prefactor     .10000E-03    96.399        .90712E-02** at limit **
  19  norm          .10000E-03    1.4743        .90712E-02** at limit **
  20  Prefactor     .10016E-03    23.182        .13827    ** at limit **
  21  Normalizat    .99399        .23370        .76405E-01    .14769E-04
  22  Prefactor     1.0687        .14086        .38918E-01   -.19280E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.54815
  norm       = 8.71549
  Prefactor  = 0.0001
  norm       = 4.70718
  norm       = 6.1238
  Prefactor  = 1.01965
  Prefactor  = 17.2283
  Prefactor  = 0.0001
  Prefactor  = 6.14112
  Prefactor  = 31.0385
  Prefactor  = 0.0001
  norm       = 2.35301
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 27.6365
  Prefactor  = 13.4398
  Prefactor  = 0.000100016
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100164
  Normalizat = 0.993989
  Prefactor  = 1.06874
 **********
 **   18 **HESSE 
 **********

 FCN=   7625.941     FROM HESSE     STATUS=OK           360 CALLS     2912 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.5481        4.0095        .21433E-03   -1.5389    
   2  norm          8.7155        3.1922        .91858E-04   -1.5117    
   3  Prefactor     .10000E-03    2.8375        .14275E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          4.7072        3.5535        .13453E-03   -1.5274    
   5  norm          6.1238        4.4263        .15089E-03   -1.5213    
   6  Prefactor     1.0196        170.86        .72056E-02   -1.5506    
   7  Prefactor     17.228        26.527        .96488E-04   -1.4878    
   8  Prefactor     .10000E-03    13.307        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.1411        50.927        .16186E-03   -1.5212    
  10  Prefactor     31.039        56.956        .71990E-04   -1.4593    
  11  Prefactor     .10000E-03    9.3719        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.3530        .33992        .18281E-04   -1.5401    
  13  norm          .10000E-03    2.7693        .14185E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    14.070        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     27.636        45.221        .76195E-04   -1.4656    
  16  Prefactor     13.440        9.9264        .10926E-03   -1.4975    
  17  Prefactor     .10002E-03    29.562        .12454       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    98.459        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    1.5118        .20694E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10016E-03    24.488        .13211       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .99399        .28015        .33812E-03   -.93232    
  22  Prefactor     1.0687        .16892        .20907E-03   -.90472    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.33423e-08
Minuit parameter uncertainties:
  1  4.00993
  2  3.19226
  3  9.4967e-07
  4  3.55368
  5  4.4265
  6  26.4743
  7  26.5453
  8  7.5017e-06
  9  35.4102
  10  57.0564
  11  3.05653e-06
  12  0.339915
  13  6.14815e-07
  14  1.28747e-05
  15  45.2775
  16  9.92765
  17  0.00136834
  18  0.000178675
  19  1.7615e-07
  20  0.00401368
  21  0.280561
  22  0.169004
Done.

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

Extracting fit parameters...

4FGL J1507.2+1721
   Spectrum: LogParabola
219         norm:  1.000e-04  1.287e-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:  1.069e+00  1.690e-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.940e-01  2.806e-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.41e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.74e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/70399/likelihoodResults_532742401_533001601_4FGL_J1507.2+1721_daily_bin1132.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): 102
logL (Free Index) = 7625.94140458
delta logL = -0.000304958042761

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7625.58420494
delta logL = 0.356894680077

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .40808E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    .93615       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0881       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7625.584     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      313 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .40812E-01    .55406E-01    .21820E-03    .25092E-01
   2  alpha         5.0000        .94749        .50000    ** at limit **
   3  Normalizat    .93618        .27177        .34724E-03   -.12530E-03
   4  Prefactor     1.0881        .16941        .20736E-03   -.62292E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.040812
  alpha      = 5
  Normalizat = 0.936176
  Prefactor  = 1.0881
 **********
 **   18 **HESSE 
 **********

 FCN=   7625.584     FROM HESSE     STATUS=OK            31 CALLS      344 TOTAL
                     EDM=   .77E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .40812E-01    .54404E-01    .43639E-04   -1.5668    
   2  alpha         5.0000        .91824        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .93618        .27243        .13890E-04   -.95200    
   4  Prefactor     1.0881        .16966        .41473E-04   -.89848    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.70806e-11
Minuit parameter uncertainties:
  1  0.0544037
  2  1.80212e-05
  3  0.27283
  4  0.169741
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/70399': 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) = 7625.58420492
delta logL = 0.356894692512

Extracting fit parameters...

4FGL J1507.2+1721
   Spectrum: LogParabola
219         norm:  4.081e-02  5.440e-02  1.000e-04  1.000e+04 ( 1.000e-14)
220        alpha:  5.000e+00  1.802e-05  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.088e+00  1.697e-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.362e-01  2.728e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 226.821 17.352

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/70399/cmap_HighResolution_532742401_533001601_4FGL_J1507.2+1721_daily_bin1132.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.74e-05', job_status='DONE', photon_flux_upper_limit='1.41e-08', time_completed='2021-09-11 01:16:52.805254', job_id='70399', GAL2='1.09', fit_tolerance='1e-08', EG2='0.94', EG='0.99', time_epoch_completed='1631348212.81', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='3.57e-01', ts2='0.75', photon_index_error='0.00', photon_index='1.53' WHERE bin_id='1132' AND source_name='4FGL J1507.2+1721' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 01:16:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0179>
Subject: Job 70399: <4FGL_J1507.2+1721_daily_bin1132> in cluster <slac> Done

Job <4FGL_J1507.2+1721_daily_bin1132> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Sep 11 01:01:14 2021
Job was executed on host(s) <bullet0179>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 01:01:16 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:16 2021
Terminated at Sat Sep 11 01:16:53 2021
Results reported at Sat Sep 11 01:16:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1507.2+1721_daily_bin1132 226.821 17.3519 532742401 533001601 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.33 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             266.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   937 sec.
    Turnaround time :                            939 sec.

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

