/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 90 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 = 7384
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1416.1+1320_daily_bin898
RA = 214.029, Dec = 13.347
tmin = 472089601, tmax = 472348801
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='283523', job_status='RUN', time_executed='2021-09-09 06:23:31.724440', time_epoch_executed='1631193811.72' WHERE source_name='4FGL J1416.1+1320' and cadence='daily' and bin_id='898'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/283523

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/283523/ft1_4FGL_J1416.1+1320_daily_bin898.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/283523/ft2_4FGL_J1416.1+1320_daily_bin898.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/283523/ft1_4FGL_J1416.1+1320_daily_bin898.fits outfile=/scratch/kocevski/283523/ft1_filteredMKT_4FGL_J1416.1+1320_daily_bin898.fits ra=214.029 dec=13.347 rad=12.0 tmin=472089601.0 tmax=472348801.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 5.04
user 3.27
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/283523/ft2_4FGL_J1416.1+1320_daily_bin898.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/283523/ft1_filteredMKT_4FGL_J1416.1+1320_daily_bin898.fits evtable="EVENTS" outfile="/scratch/kocevski/283523/ft1_filtered_4FGL_J1416.1+1320_daily_bin898.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.75
user 0.33
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/283523/ft1_filtered_4FGL_J1416.1+1320_daily_bin898.fits" evtable="EVENTS" scfile=/scratch/kocevski/283523/ft2_4FGL_J1416.1+1320_daily_bin898.fits sctable="SC_DATA" outfile=/scratch/kocevski/283523/ltcube_472089601_472348801_4FGL_J1416.1+1320_daily_bin898.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/283523/ft2_4FGL_J1416.1+1320_daily_bin898.fits
.....................!
real 12.86
user 11.76
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/283523/ft1_filtered_4FGL_J1416.1+1320_daily_bin898.fits evtable="EVENTS" scfile=/scratch/kocevski/283523/ft2_4FGL_J1416.1+1320_daily_bin898.fits sctable="SC_DATA" expcube=/scratch/kocevski/283523/ltcube_472089601_472348801_4FGL_J1416.1+1320_daily_bin898.fits outfile=/scratch/kocevski/283523/expmap_472089601_472348801_4FGL_J1416.1+1320_daily_bin898.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/283523/ltcube_472089601_472348801_4FGL_J1416.1+1320_daily_bin898.fits
.....................!
real 194.65
user 187.69
sys 5.54

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/283523/ft1_filtered_4FGL_J1416.1+1320_daily_bin898.fits scfile=/scratch/kocevski/283523/ft2_4FGL_J1416.1+1320_daily_bin898.fits outfile=/scratch/kocevski/283523/cmap_472089601_472348801_4FGL_J1416.1+1320_daily_bin898.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.67
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/283523/ft1_filtered_4FGL_J1416.1+1320_daily_bin898.fits scfile=/scratch/kocevski/283523/ft2_4FGL_J1416.1+1320_daily_bin898.fits outfile=/scratch/kocevski/283523/cmap_HighResolution_472089601_472348801_4FGL_J1416.1+1320_daily_bin898.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.54
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    41.558       1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.3249       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10901E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10959E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.2954       1.0000         .10000E-03   10000.    
     9 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    8.5916       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.2421       1.0000         .10000E-03   10000.    
    13 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.2798       1.0000         .10000E-03   10000.    
    15 'norm      '    .20189E-01   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.5248       1.0000         .10000E-03   10000.    
    17 'Prefactor '    17.100       1.0000         .10000E-03   10000.    
    18 'Prefactor '    33.850       1.0000         .10000E-03   10000.    
    19 'Prefactor '    39.205       1.0000         .10000E-03   10000.    
    20 'Prefactor '    35.361       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0931       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .91425       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=   8076.718     FROM MIGRAD    STATUS=CONVERGED    849 CALLS     2422 TOTAL
                     EDM=   .98E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     41.562        35.327        .62182E-04   -.41758E-04
   2  Prefactor     4.3257        3.7481        .15433E-03   -.42430E-04
   3  Prefactor     .10000E-03    2.9177        .29326E-03** at limit **
   4  Prefactor     .10000E-03    19.866        .36285E-03** at limit **
   5  Prefactor     .10000E-03    5.8787        .18142E-02** at limit **
   6  Prefactor     .10000E-03    5.9779        .18142E-02** at limit **
   7  Prefactor     .10000E-03    37.274        .36285E-03** at limit **
   8  Prefactor     3.3008        35.381        .22303E-03    .16006E-04
   9  norm          .10000E-03    6.6663        .18142E-02** at limit **
  10  Prefactor     .10000E-03    2.0433        .12515E-02** at limit **
  11  norm          8.5921        3.1196        .92771E-04   -.22950E-03
  12  Prefactor     4.2430        4.0507        .17063E-03   -.13146E-03
  13  norm          .10000E-03    3.7828        .22020E-02** at limit **
  14  Prefactor     8.3867        32.434        .13933E-03   -.30191E-05
  15  norm          .10000E-03    121.99        .60926E-02** at limit **
  16  Prefactor     3.5254        17.827        .21532E-03   -.31469E-04
  17  Prefactor     17.102        18.481        .96856E-04    .12019E-03
  18  Prefactor     33.855        20.578        .68875E-04   -.34003E-04
  19  Prefactor     39.209        25.129        .64014E-04   -.39320E-04
  20  Prefactor     35.362        33.795        .67392E-04   -.79624E-05
  21  Normalizat    1.0929        .22336        .27505E-03   -.14438E-03
  22  Prefactor     .91433        .16260        .21970E-03   -.48661E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 41.5618
  Prefactor  = 4.32569
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.30084
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 8.59206
  Prefactor  = 4.24297
  norm       = 0.000100002
  Prefactor  = 8.38674
  norm       = 0.000100001
  Prefactor  = 3.52544
  Prefactor  = 17.1023
  Prefactor  = 33.8546
  Prefactor  = 39.2085
  Prefactor  = 35.3621
  Normalizat = 1.09293
  Prefactor  = 0.914331
 **********
 **   18 **HESSE 
 **********

 FCN=   8076.718     FROM HESSE     STATUS=OK           320 CALLS     2742 TOTAL
                     EDM=   .99E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     41.562        35.326        .12436E-04   -1.4418    
   2  Prefactor     4.3257        3.7479        .61733E-05   -1.5292    
   3  Prefactor     .10000E-03    2.9178        .58653E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    19.867        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    5.8807        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.9781        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    37.277        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.3008        35.357        .89212E-05   -1.5345    
   9  norm          .10000E-03    6.6664        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.0435        .25029E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          8.5921        3.1196        .18554E-04   -1.5122    
  12  Prefactor     4.2430        4.0505        .68252E-05   -1.5296    
  13  norm          .10000E-03    3.8076        .44040E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     8.3867        31.956        .55730E-05   -1.5129    
  15  norm          .10000E-03    122.79        .24370E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.5254        17.821        .86127E-05   -1.5332    
  17  Prefactor     17.102        18.479        .38742E-05   -1.4881    
  18  Prefactor     33.855        20.577        .27550E-05   -1.4544    
  19  Prefactor     39.209        25.128        .12803E-04   -1.4455    
  20  Prefactor     35.362        33.795        .13478E-04   -1.4518    
  21  Normalizat    1.0929        .22358        .11002E-04   -.89979    
  22  Prefactor     .91433        .16278        .43940E-04   -.95642    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.90116e-10
Minuit parameter uncertainties:
  1  35.3441
  2  3.74808
  3  2.67916e-06
  4  3.56389e-05
  5  2.72918e-05
  6  5.92698e-06
  7  1.89282e-05
  8  21.6223
  9  3.7994e-06
  10  3.84297e-06
  11  3.11966
  12  4.05072
  13  0.0001803
  14  32.0214
  15  0.000835322
  16  15.8599
  17  18.4847
  18  20.5816
  19  25.1344
  20  33.8129
  21  0.223771
  22  0.162868
Done.

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

Extracting fit parameters...

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  1.000e-04  1.893e-05  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:  9.143e-01  1.629e-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.093e+00  2.238e-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.29e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.08e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/283523/likelihoodResults_472089601_472348801_4FGL_J1416.1+1320_daily_bin898.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) = 8076.71798434
delta logL = -0.000128006997329

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8076.71785897
delta logL = -2.64546451945e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11528E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5631       1.0000          .0000       10.000    
     3 'Normalizat'    1.0929       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91433       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   8076.687     FROM MIGRAD    STATUS=FAILED       171 CALLS      367 TOTAL
                     EDM=   .27E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.3397        1033.1        .18142E-01    .75897E-03
   2  Index         1.6952        5.1903        .50000       -.15264E-04
   3  Normalizat    1.0956        .38851E-01    .27505E-03    .47120E-05
   4  Prefactor     .91094        .28943E-01    .21970E-03    .65201E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8076.687     FROM SIMPLEX   STATUS=UNCHANGED     90 CALLS      457 TOTAL
                     EDM=   .69E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.3397        1033.1        .23281E-03    .75897E-03
   2  Index         1.6952        5.1903        .15071E-02   -.15264E-04
   3  Normalizat    1.0956        .38851E-01    .91373E-04    .47120E-05
   4  Prefactor     .91094        .28943E-01    .40769E-04    .65201E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8076.687     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      489 TOTAL
                     EDM=   .12E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.3397        15.712        .70015E-03    .12178E-05
   2  Index         1.6952        1.3315        .17013E-01   -.29081E-05
   3  Normalizat    1.0956        .21823        .11002E-04    .45467E-05
   4  Prefactor     .91094        .16221        .87880E-05    .64683E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.33968
  Index      = 1.69519
  Normalizat = 1.09556
  Prefactor  = 0.910942
 **********
 **   18 **HESSE 
 **********

 FCN=   8076.687     FROM HESSE     STATUS=OK            25 CALLS      514 TOTAL
                     EDM=   .71E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.3397        15.812        .28006E-04   -1.5342    
   2  Index         1.6952        1.3368        .68052E-03   -.72210    
   3  Normalizat    1.0956        .21863        .22004E-05   -.89894    
   4  Prefactor     .91094        .16254        .17576E-05   -.95760    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.08941e-14
Minuit parameter uncertainties:
  1  14.5396
  2  1.36683
  3  0.218811
  4  0.162628
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/283523': 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) = 8076.68663371
delta logL = 0.0312226150127

Extracting fit parameters...

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  3.340e+00  1.454e+01  1.000e-04  1.000e+04 ( 1.000e-13)
243        Index:  1.695e+00  1.367e+00  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:  9.109e-01  1.626e-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.096e+00  2.188e-01  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/283523/cmap_HighResolution_472089601_472348801_4FGL_J1416.1+1320_daily_bin898.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.08e-03', job_status='DONE', photon_flux_upper_limit='5.29e-08', time_completed='2021-09-09 06:34:45.373601', job_id='283523', GAL2='0.91', fit_tolerance='1e-08', EG2='1.10', EG='1.09', time_epoch_completed='1631194485.37', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='3.12e-02', ts2='0.06', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='898' AND source_name='4FGL J1416.1+1320' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 06:34:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0276>
Subject: Job 283523: <4FGL_J1416.1+1320_daily_bin898> in cluster <slac> Done

Job <4FGL_J1416.1+1320_daily_bin898> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep  9 06:21:12 2021
Job was executed on host(s) <bullet0276>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 06:21:13 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:13 2021
Terminated at Thu Sep  9 06:34:47 2021
Results reported at Thu Sep  9 06:34:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1416.1+1320_daily_bin898 214.029 13.347 472089601 472348801 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 :                                   656.26 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             261.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   812 sec.
    Turnaround time :                            815 sec.

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

