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


Performing analysis on: 4FGL_J1416.1+1320_daily_bin647
RA = 214.029, Dec = 13.347
tmin = 407030401, tmax = 407289601
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='282154', job_status='RUN', time_executed='2021-09-09 06:17:27.460455', time_epoch_executed='1631193447.46' WHERE source_name='4FGL J1416.1+1320' and cadence='daily' and bin_id='647'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/282154

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/282154/ft1_4FGL_J1416.1+1320_daily_bin647.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/282154/ft2_4FGL_J1416.1+1320_daily_bin647.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/282154/ft1_4FGL_J1416.1+1320_daily_bin647.fits outfile=/scratch/kocevski/282154/ft1_filteredMKT_4FGL_J1416.1+1320_daily_bin647.fits ra=214.029 dec=13.347 rad=12.0 tmin=407030401.0 tmax=407289601.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.95
user 3.31
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/282154/ft2_4FGL_J1416.1+1320_daily_bin647.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/282154/ft1_filteredMKT_4FGL_J1416.1+1320_daily_bin647.fits evtable="EVENTS" outfile="/scratch/kocevski/282154/ft1_filtered_4FGL_J1416.1+1320_daily_bin647.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.85
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/282154/ft1_filtered_4FGL_J1416.1+1320_daily_bin647.fits" evtable="EVENTS" scfile=/scratch/kocevski/282154/ft2_4FGL_J1416.1+1320_daily_bin647.fits sctable="SC_DATA" outfile=/scratch/kocevski/282154/ltcube_407030401_407289601_4FGL_J1416.1+1320_daily_bin647.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/282154/ft2_4FGL_J1416.1+1320_daily_bin647.fits
.....................!
real 12.57
user 11.29
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/282154/ft1_filtered_4FGL_J1416.1+1320_daily_bin647.fits evtable="EVENTS" scfile=/scratch/kocevski/282154/ft2_4FGL_J1416.1+1320_daily_bin647.fits sctable="SC_DATA" expcube=/scratch/kocevski/282154/ltcube_407030401_407289601_4FGL_J1416.1+1320_daily_bin647.fits outfile=/scratch/kocevski/282154/expmap_407030401_407289601_4FGL_J1416.1+1320_daily_bin647.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/282154/ltcube_407030401_407289601_4FGL_J1416.1+1320_daily_bin647.fits
.....................!
real 193.98
user 184.98
sys 4.14

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/282154/ft1_filtered_4FGL_J1416.1+1320_daily_bin647.fits scfile=/scratch/kocevski/282154/ft2_4FGL_J1416.1+1320_daily_bin647.fits outfile=/scratch/kocevski/282154/cmap_407030401_407289601_4FGL_J1416.1+1320_daily_bin647.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.86
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/282154/ft1_filtered_4FGL_J1416.1+1320_daily_bin647.fits scfile=/scratch/kocevski/282154/ft2_4FGL_J1416.1+1320_daily_bin647.fits outfile=/scratch/kocevski/282154/cmap_HighResolution_407030401_407289601_4FGL_J1416.1+1320_daily_bin647.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.70
user 0.40
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/282154/ft1_filtered_4FGL_J1416.1+1320_daily_bin647.fits', '/scratch/kocevski/282154/ft2_4FGL_J1416.1+1320_daily_bin647.fits', expMap='/scratch/kocevski/282154/expmap_407030401_407289601_4FGL_J1416.1+1320_daily_bin647.fits', expCube='/scratch/kocevski/282154/ltcube_407030401_407289601_4FGL_J1416.1+1320_daily_bin647.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/282154/Model_4FGL_J1416.1+1320_daily_bin647.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/282154/ft1_filtered_4FGL_J1416.1+1320_daily_bin647.fits
Spacecraft file(s): /scratch/kocevski/282154/ft2_4FGL_J1416.1+1320_daily_bin647.fits
Exposure map: /scratch/kocevski/282154/expmap_407030401_407289601_4FGL_J1416.1+1320_daily_bin647.fits
Exposure cube: /scratch/kocevski/282154/ltcube_407030401_407289601_4FGL_J1416.1+1320_daily_bin647.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/282154/Model_4FGL_J1416.1+1320_daily_bin647.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) = 6442.78164216

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    32.787       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .52731       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .38711E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    31.681       1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.4659       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    16.297       1.0000         .10000E-03   10000.    
     9 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    6.3971       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10835E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    3.7029       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 '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.5875       1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.7939       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1504       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .89743       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=   6442.757     FROM MIGRAD    STATUS=CONVERGED    481 CALLS     2387 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     32.786        31.899       -.73217E-06   -.36013E-05
   2  Prefactor     .53152        2.5617        .60342E-07   -.41832E-03
   3  Prefactor     .10000E-03    1.5190       -.16469E-07** at limit **
   4  Prefactor     .10001E-03    8.5160        .40850E-07** at limit **
   5  Prefactor     31.682        16.552        .29185E-06   -.10673E-03
   6  Prefactor     7.4668        20.928       -.10537E-06   -.28422E-04
   7  Prefactor     .10000E-03    9.1127       -.20053E-05** at limit **
   8  Prefactor     16.301        27.534        .30116E-05   -.17191E-04
   9  norm          .10000E-03    9.1340       -.18361E-05** at limit **
  10  Prefactor     .10000E-03    4.6278       -.54813E-07** at limit **
  11  norm          6.3971        2.7652        .27988E-07    .30902E-04
  12  Prefactor     .10003E-03    4.9073        .23866E-05** at limit **
  13  norm          3.7032        2.4767       -.31729E-07   -.45524E-03
  14  Prefactor     .10000E-03    15.285       -.44943E-05** at limit **
  15  norm          .10000E-03    7.7929        .13663E-05** at limit **
  16  Prefactor     .10000E-03    17.412        .58321E-05** at limit **
  17  Prefactor     .10000E-03    6.3858       -.10627E-06** at limit **
  18  Prefactor     1.5872        9.2255       -.18961E-05   -.45845E-03
  19  Prefactor     4.8000        22.423        .15505E-05   -.54576E-04
  20  Prefactor     .10000E-03    14.856       -.45521E-05** at limit **
  21  Normalizat    1.1502        .20754       -.10780E-05   -.32476E-03
  22  Prefactor     .89757        .14204       -.84602E-08   -.42165E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 32.7856
  Prefactor  = 0.531519
  Prefactor  = 0.0001
  Prefactor  = 0.000100009
  Prefactor  = 31.6816
  Prefactor  = 7.4668
  Prefactor  = 0.0001
  Prefactor  = 16.3009
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 6.39714
  Prefactor  = 0.000100032
  norm       = 3.70322
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.58721
  Prefactor  = 4.79998
  Prefactor  = 0.0001
  Normalizat = 1.15018
  Prefactor  = 0.897568
 **********
 **   18 **HESSE 
 **********

 FCN=   6442.757     FROM HESSE     STATUS=OK           346 CALLS     2733 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     32.786        31.876        .69980E-04   -1.4562    
   2  Prefactor     .53152        9.8583        .23955E-02   -1.5562    
   3  Prefactor     .10000E-03    1.5246        .96593E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10001E-03    86.230        .44947E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     31.682        16.658        .71188E-04   -1.4582    
   6  Prefactor     7.4668        20.917        .14678E-03   -1.5161    
   7  Prefactor     .10000E-03    9.0864        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     16.301        27.491        .99212E-04   -1.4900    
   9  norm          .10000E-03    9.1263        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.6732        .16852E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          6.3971        2.7664        .85424E-04   -1.5202    
  12  Prefactor     .10003E-03    11.244        .31927E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.7032        2.4721        .99819E-04   -1.5323    
  14  Prefactor     .10000E-03    15.150        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    7.7960        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    17.244        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    6.3944        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.5872        10.275        .33687E-03   -1.5456    
  19  Prefactor     4.8000        22.257        .18375E-03   -1.5270    
  20  Prefactor     .10000E-03    14.708        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.1502        .25053        .27042E-03   -.88156    
  22  Prefactor     .89757        .17384        .21693E-03   -.96226    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.17299e-09
Minuit parameter uncertainties:
  1  31.8926
  2  4.5786
  3  1.30402e-06
  4  0.00176241
  5  16.6608
  6  20.9378
  7  7.45454e-07
  8  27.5122
  9  7.84295e-06
  10  1.08192e-05
  11  2.7665
  12  0.00119421
  13  2.47216
  14  2.51869e-06
  15  2.12772e-06
  16  9.74326e-06
  17  1.91628e-06
  18  8.07842
  19  20.6847
  20  1.25124e-06
  21  0.250789
  22  0.173948
Done.

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

Extracting fit parameters...

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  1.000e-04  7.455e-07  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.976e-01  1.739e-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.150e+00  2.508e-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: 5.95e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.59e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/282154/likelihoodResults_407030401_407289601_4FGL_J1416.1+1320_daily_bin647.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) = 6442.75727151
delta logL = -0.000523419111232

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6442.75674818
delta logL = -8.06658135843e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10149E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3621       1.0000          .0000       10.000    
     3 'Normalizat'    1.1502       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89754       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=   6442.757     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      241 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10118E-03    186.08        .18142E-02** at limit **
   2  Index         2.2884        8.7100        .50000        .80469E-05
   3  Normalizat    1.1502        .22287E-01    .27042E-03    .52972E-05
   4  Prefactor     .89757        .16096E-01    .21693E-03    .56076E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101179
  Index      = 2.28845
  Normalizat = 1.15019
  Prefactor  = 0.897569
 **********
 **   18 **HESSE 
 **********

 FCN=   6442.757     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      270 TOTAL
                     EDM=   .28E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10118E-03    732.83        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2884        5.1090        .50000       -.57318    
   3  Normalizat    1.1502        .48383E-01    .10817E-04   -.88156    
   4  Prefactor     .89757        .34942E-01    .86772E-05   -.96226    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.75864e-08
Minuit parameter uncertainties:
  1  0.0595237
  2  1618.25
  3  0.0483853
  4  0.0349433
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/282154': 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) = 6442.75674797
delta logL = 1.21000994113e-07

Extracting fit parameters...

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  1.012e-04  5.952e-02  1.000e-04  1.000e+04 ( 1.000e-13)
243        Index:  2.288e+00  1.618e+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.976e-01  3.494e-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.150e+00  4.839e-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/282154/cmap_HighResolution_407030401_407289601_4FGL_J1416.1+1320_daily_bin647.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.59e-03', job_status='DONE', photon_flux_upper_limit='5.95e-08', time_completed='2021-09-09 06:27:06.583828', job_id='282154', GAL2='0.90', fit_tolerance='1e-08', EG2='1.15', EG='1.15', time_epoch_completed='1631194026.58', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='1.21e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='647' AND source_name='4FGL J1416.1+1320' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 06:27:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0103>
Subject: Job 282154: <4FGL_J1416.1+1320_daily_bin647> in cluster <slac> Done

Job <4FGL_J1416.1+1320_daily_bin647> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Thu Sep  9 06:17:03 2021
Job was executed on host(s) <bullet0103>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 06:17:05 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:17:05 2021
Terminated at Thu Sep  9 06:27:07 2021
Results reported at Thu Sep  9 06:27:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1416.1+1320_daily_bin647 214.029 13.347 407030401 407289601 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 :                                   555.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             339.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   602 sec.
    Turnaround time :                            604 sec.

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

