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


Performing analysis on: 4FGL_J1416.1+1320_daily_bin983
RA = 214.029, Dec = 13.347
tmin = 494121601, tmax = 494380801
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='283652', job_status='RUN', time_executed='2021-09-09 06:26:27.631466', time_epoch_executed='1631193987.63' WHERE source_name='4FGL J1416.1+1320' and cadence='daily' and bin_id='983'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/283652

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/283652/ft1_4FGL_J1416.1+1320_daily_bin983.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/283652/ft2_4FGL_J1416.1+1320_daily_bin983.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/283652/ft1_4FGL_J1416.1+1320_daily_bin983.fits outfile=/scratch/kocevski/283652/ft1_filteredMKT_4FGL_J1416.1+1320_daily_bin983.fits ra=214.029 dec=13.347 rad=12.0 tmin=494121601.0 tmax=494380801.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 4.72
user 3.51
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/283652/ft2_4FGL_J1416.1+1320_daily_bin983.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/283652/ft2_4FGL_J1416.1+1320_daily_bin983.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/283652/ft1_filteredMKT_4FGL_J1416.1+1320_daily_bin983.fits evtable="EVENTS" outfile="/scratch/kocevski/283652/ft1_filtered_4FGL_J1416.1+1320_daily_bin983.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 1.31
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/283652/ft1_filtered_4FGL_J1416.1+1320_daily_bin983.fits" evtable="EVENTS" scfile=/scratch/kocevski/283652/ft2_4FGL_J1416.1+1320_daily_bin983.fits sctable="SC_DATA" outfile=/scratch/kocevski/283652/ltcube_494121601_494380801_4FGL_J1416.1+1320_daily_bin983.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/283652/ft2_4FGL_J1416.1+1320_daily_bin983.fits
.....................!
real 12.17
user 11.58
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/283652/ft1_filtered_4FGL_J1416.1+1320_daily_bin983.fits evtable="EVENTS" scfile=/scratch/kocevski/283652/ft2_4FGL_J1416.1+1320_daily_bin983.fits sctable="SC_DATA" expcube=/scratch/kocevski/283652/ltcube_494121601_494380801_4FGL_J1416.1+1320_daily_bin983.fits outfile=/scratch/kocevski/283652/expmap_494121601_494380801_4FGL_J1416.1+1320_daily_bin983.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/283652/ltcube_494121601_494380801_4FGL_J1416.1+1320_daily_bin983.fits
.....................!
real 192.13
user 185.49
sys 5.07

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 142 point sources and 0 extended sources

Setting source of interest to:
4FGL J1416.1+1320 @ 214.029 13.347

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/283652/ft1_filtered_4FGL_J1416.1+1320_daily_bin983.fits scfile=/scratch/kocevski/283652/ft2_4FGL_J1416.1+1320_daily_bin983.fits outfile=/scratch/kocevski/283652/cmap_494121601_494380801_4FGL_J1416.1+1320_daily_bin983.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=214.029 yref=13.347 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.88
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/283652/ft1_filtered_4FGL_J1416.1+1320_daily_bin983.fits scfile=/scratch/kocevski/283652/ft2_4FGL_J1416.1+1320_daily_bin983.fits outfile=/scratch/kocevski/283652/cmap_HighResolution_494121601_494380801_4FGL_J1416.1+1320_daily_bin983.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=214.029 yref=13.347 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.86
user 0.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/283652/ft1_filtered_4FGL_J1416.1+1320_daily_bin983.fits evtable="EVENTS" scfile=/scratch/kocevski/283652/ft2_4FGL_J1416.1+1320_daily_bin983.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/283652/Model_4FGL_J1416.1+1320_daily_bin983.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/283652/ft1_filtered_4FGL_J1416.1+1320_daily_bin983.fits.....................!
real 53.97
user 48.95
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/283652/ft1_filtered_4FGL_J1416.1+1320_daily_bin983.fits', '/scratch/kocevski/283652/ft2_4FGL_J1416.1+1320_daily_bin983.fits', expMap='/scratch/kocevski/283652/expmap_494121601_494380801_4FGL_J1416.1+1320_daily_bin983.fits', expCube='/scratch/kocevski/283652/ltcube_494121601_494380801_4FGL_J1416.1+1320_daily_bin983.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/283652/Model_4FGL_J1416.1+1320_daily_bin983.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1416.1+1320'

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  8.909e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
243        Index:  2.373e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
244        Scale:  8.905e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/283652/ft1_filtered_4FGL_J1416.1+1320_daily_bin983.fits
Spacecraft file(s): /scratch/kocevski/283652/ft2_4FGL_J1416.1+1320_daily_bin983.fits
Exposure map: /scratch/kocevski/283652/expmap_494121601_494380801_4FGL_J1416.1+1320_daily_bin983.fits
Exposure cube: /scratch/kocevski/283652/ltcube_494121601_494380801_4FGL_J1416.1+1320_daily_bin983.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/283652/Model_4FGL_J1416.1+1320_daily_bin983.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) = 6806.89908942

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    59.153       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .38782E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .19386E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.0097       1.0000         .10000E-03   10000.    
     9 'norm      '    7.7847       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.3993       1.0000         .10000E-03   10000.    
    11 'norm      '    13.556       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.9469       1.0000         .10000E-03   10000.    
    13 'norm      '    .14136       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10902E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10271E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.6355       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .12935E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2503       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .88750       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4610E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6806.894     FROM MIGRAD    STATUS=CONVERGED    516 CALLS     2431 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     59.150        48.817        .42904E-06    .58637E-05
   2  Prefactor     .10000E-03    3.1936       -.48058E-07** at limit **
   3  Prefactor     .10000E-03    1.1033       -.13085E-07** at limit **
   4  Prefactor     .10000E-03    8.5440       -.42041E-07** at limit **
   5  Prefactor     .76182E-02    6.0025       -.11979E-05    .28442E-03
   6  Prefactor     .10000E-03    10.052        .27976E-07** at limit **
   7  Prefactor     .10000E-03    79.867       -.67179E-05** at limit **
   8  Prefactor     9.0096        21.683       -.28724E-06    .11082E-04
   9  norm          7.7835        27.987        .35682E-06    .45490E-05
  10  Prefactor     5.3987        6.5248       -.10456E-06    .18718E-03
  11  norm          13.556        3.8791       -.10108E-07    .57987E-04
  12  Prefactor     2.9461        5.9568        .42807E-05    .14347E-03
  13  norm          .14784        1.4477       -.75257E-06    .37538E-03
  14  Prefactor     .10000E-03    11.475       -.83428E-08** at limit **
  15  norm          .10000E-03    6.4916       -.48498E-08** at limit **
  16  Prefactor     .10000E-03    32.175        .31985E-06** at limit **
  17  Prefactor     .10000E-03    5.1933        .18828E-08** at limit **
  18  Prefactor     .10000E-03    25.785        .56659E-06** at limit **
  19  Prefactor     2.6231        81.043       -.61697E-05   -.52730E-04
  20  Prefactor     .10000E-03    75.004        .94977E-05** at limit **
  21  Normalizat    1.2503        .20067       -.46019E-06    .25058E-03
  22  Prefactor     .88748        .14364        .14026E-06    .23660E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 59.1502
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.00761816
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 9.00964
  norm       = 7.7835
  Prefactor  = 5.39866
  norm       = 13.5562
  Prefactor  = 2.94611
  norm       = 0.147844
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.62309
  Prefactor  = 0.0001
  Normalizat = 1.25031
  Prefactor  = 0.887483
 **********
 **   18 **HESSE 
 **********

 FCN=   6806.894     FROM HESSE     STATUS=OK           346 CALLS     2777 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     59.150        48.831        .52164E-04   -1.4168    
   2  Prefactor     .10000E-03    3.2556        .14389E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.1044        .84627E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.5922        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .76182E-02    8.3298        .67062E-01   -1.5691    
   6  Prefactor     .10000E-03    10.065        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    80.934        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     9.0096        21.661        .13353E-03   -1.5108    
   9  norm          7.7835        28.002        .14372E-03   -1.5150    
  10  Prefactor     5.3987        6.5353        .17294E-03   -1.5243    
  11  norm          13.556        3.8785        .84459E-04   -1.4971    
  12  Prefactor     2.9461        5.9690        .11829E-02   -1.5365    
  13  norm          .14784        12.241        .18344E-02   -1.5631    
  14  Prefactor     .10000E-03    11.485        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    6.5012        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    32.323        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    5.1958        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    26.493        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.6231        82.468        .25117E-03   -1.5384    
  20  Prefactor     .10000E-03    76.072        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.2503        .24497        .26888E-03   -.85062    
  22  Prefactor     .88748        .17622        .22465E-03   -.96580    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.57146e-09
Minuit parameter uncertainties:
  1  48.8644
  2  3.1545e-06
  3  3.99364e-07
  4  2.2136e-06
  5  0.500569
  6  8.68042e-07
  7  0.00124312
  8  21.6801
  9  28.0493
  10  6.53613
  11  3.87854
  12  5.97023
  13  2.69018
  14  6.25054e-07
  15  7.88914e-07
  16  0.00020118
  17  5.34955e-08
  18  0.000109829
  19  29.4596
  20  0.000140103
  21  0.2452
  22  0.176335
Done.

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

Extracting fit parameters...

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  1.000e-04  1.243e-03  1.000e-04  1.000e+04 ( 1.000e-13)
243        Index:  2.373e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
244        Scale:  8.905e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
458    Prefactor:  8.875e-01  1.763e-01  0.000e+00  1.000e+01 ( 1.000e+00)
459        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
460        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
457   Normalization:  1.250e+00  2.452e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 214.029 13.347
Photon Flux Upper Limit: 7.66e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.91e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/283652/likelihoodResults_494121601_494380801_4FGL_J1416.1+1320_daily_bin983.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) = 6806.89362723
delta logL = -5.8865880419e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6806.89356856
delta logL = -1.96965629584e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3562       1.0000          .0000       10.000    
     3 'Normalizat'    1.2504       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88740       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4610E+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=   6806.894     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      258 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10042E-03    1966.8        .36285E-02** at limit **
   2  Index         2.3176        5.2863        .50000        .85488E-06
   3  Normalizat    1.2503        .25435E-01    .26888E-03    .27948E-04
   4  Prefactor     .88748        .18352E-01    .22465E-03    .33298E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010042
  Index      = 2.31759
  Normalizat = 1.25031
  Prefactor  = 0.887483
 **********
 **   18 **HESSE 
 **********

 FCN=   6806.894     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      287 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10042E-03    9001.1        .72569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3176        6.1581        .50000       -.56626    
   3  Normalizat    1.2503        .76107E-01    .10755E-04   -.85062    
   4  Prefactor     .88748        .54898E-01    .89861E-05   -.96580    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.68633e-09
Minuit parameter uncertainties:
  1  0.143459
  2  4034.2
  3  0.0761141
  4  0.0549019
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/283652': 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) = 6806.89356835
delta logL = 1.51640051627e-08

Extracting fit parameters...

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  1.004e-04  1.435e-01  1.000e-04  1.000e+04 ( 1.000e-13)
243        Index:  2.318e+00  4.034e+03  0.000e+00  1.000e+01 (-1.000e+00)
244        Scale:  8.905e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
458    Prefactor:  8.875e-01  5.490e-02  0.000e+00  1.000e+01 ( 1.000e+00)
459        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
460        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
457   Normalization:  1.250e+00  7.611e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 214.029 13.347

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/283652/cmap_HighResolution_494121601_494380801_4FGL_J1416.1+1320_daily_bin983.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.91e-03', job_status='DONE', photon_flux_upper_limit='7.66e-08', time_completed='2021-09-09 06:36:52.512985', job_id='283652', GAL2='0.89', fit_tolerance='1e-08', EG2='1.25', EG='1.25', time_epoch_completed='1631194612.51', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='1.52e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='983' AND source_name='4FGL J1416.1+1320' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 06:36:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0256>
Subject: Job 283652: <4FGL_J1416.1+1320_daily_bin983> in cluster <slac> Done

Job <4FGL_J1416.1+1320_daily_bin983> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep  9 06:21:21 2021
Job was executed on host(s) <bullet0256>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 06:21:23 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  9 06:21:23 2021
Terminated at Thu Sep  9 06:36:53 2021
Results reported at Thu Sep  9 06:36:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1416.1+1320_daily_bin983 214.029 13.347 494121601 494380801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1416.1+1320 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   577.13 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             264.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   929 sec.
    Turnaround time :                            932 sec.

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

