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


Performing analysis on: 4FGL_J1416.1+1320_daily_bin277
RA = 214.029, Dec = 13.347
tmin = 311126401, tmax = 311385601
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='278173', job_status='RUN', time_executed='2021-09-09 06:10:09.673861', time_epoch_executed='1631193009.67' WHERE source_name='4FGL J1416.1+1320' and cadence='daily' and bin_id='277'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/278173

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/278173/ft1_4FGL_J1416.1+1320_daily_bin277.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/278173/ft2_4FGL_J1416.1+1320_daily_bin277.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/278173/ft1_4FGL_J1416.1+1320_daily_bin277.fits outfile=/scratch/kocevski/278173/ft1_filteredMKT_4FGL_J1416.1+1320_daily_bin277.fits ra=214.029 dec=13.347 rad=12.0 tmin=311126401.0 tmax=311385601.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.63
user 3.31
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/278173/ft1_filtered_4FGL_J1416.1+1320_daily_bin277.fits" evtable="EVENTS" scfile=/scratch/kocevski/278173/ft2_4FGL_J1416.1+1320_daily_bin277.fits sctable="SC_DATA" outfile=/scratch/kocevski/278173/ltcube_311126401_311385601_4FGL_J1416.1+1320_daily_bin277.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/278173/ft2_4FGL_J1416.1+1320_daily_bin277.fits
.....................!
real 12.91
user 12.03
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/278173/ft1_filtered_4FGL_J1416.1+1320_daily_bin277.fits evtable="EVENTS" scfile=/scratch/kocevski/278173/ft2_4FGL_J1416.1+1320_daily_bin277.fits sctable="SC_DATA" expcube=/scratch/kocevski/278173/ltcube_311126401_311385601_4FGL_J1416.1+1320_daily_bin277.fits outfile=/scratch/kocevski/278173/expmap_311126401_311385601_4FGL_J1416.1+1320_daily_bin277.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/278173/ltcube_311126401_311385601_4FGL_J1416.1+1320_daily_bin277.fits
.....................!
real 192.82
user 186.54
sys 4.43

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/278173/ft1_filtered_4FGL_J1416.1+1320_daily_bin277.fits scfile=/scratch/kocevski/278173/ft2_4FGL_J1416.1+1320_daily_bin277.fits outfile=/scratch/kocevski/278173/cmap_311126401_311385601_4FGL_J1416.1+1320_daily_bin277.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 2.14
user 0.38
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/278173/ft1_filtered_4FGL_J1416.1+1320_daily_bin277.fits scfile=/scratch/kocevski/278173/ft2_4FGL_J1416.1+1320_daily_bin277.fits outfile=/scratch/kocevski/278173/cmap_HighResolution_311126401_311385601_4FGL_J1416.1+1320_daily_bin277.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 1.57
user 0.40
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.523       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.1890       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10228E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.0267       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10213E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    29.333       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11308E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10354E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.1896       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10176E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    31.622       1.0000         .10000E-03   10000.    
    15 'norm      '    .18705E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.2985       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10388E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.3980       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10183E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.4707       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .84964       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=   7216.241     FROM MIGRAD    STATUS=CONVERGED    476 CALLS     2377 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.588        51.221        .10643E-05    .10666E-03
   2  Prefactor     1.1913        4.2864        .20476E-05   -.22447E-04
   3  Prefactor     .10000E-03    4.3088        .67574E-06** at limit **
   4  Prefactor     9.0172        13.837        .18452E-06    .20472E-04
   5  Prefactor     .10000E-03    12.512        .11069E-06** at limit **
   6  Prefactor     29.315        22.483        .91039E-07    .44156E-04
   7  Prefactor     .10000E-03    7.8882        .59414E-07** at limit **
   8  Prefactor     .10000E-03    23.025       -.18135E-06** at limit **
   9  norm          .10000E-03    14.688       -.10700E-06** at limit **
  10  Prefactor     .10000E-03    2.4249       -.59099E-07** at limit **
  11  norm          2.1899        2.0404        .23520E-07    .71759E-05
  12  Prefactor     .10000E-03    6.8914       -.38596E-06** at limit **
  13  norm          .10000E-03    1.0179       -.93976E-07** at limit **
  14  Prefactor     31.503        27.225        .50681E-05   -.12699E-05
  15  norm          .10494E-03    14.350        .30919E-07** at limit **
  16  Prefactor     4.3259        37.643       -.38645E-06   -.22085E-04
  17  Prefactor     .10000E-03    4.4739       -.38186E-07** at limit **
  18  Prefactor     .10000E-03    8.2569       -.37987E-06** at limit **
  19  Prefactor     3.4021        22.932       -.49840E-07   -.33808E-04
  20  Prefactor     .10000E-03    11.451       -.21701E-06** at limit **
  21  Normalizat    1.4709        .19980       -.74293E-06    .29025E-04
  22  Prefactor     .84934        .14454        .61012E-06   -.58489E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.5877
  Prefactor  = 1.19133
  Prefactor  = 0.0001
  Prefactor  = 9.01718
  Prefactor  = 0.0001
  Prefactor  = 29.3148
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.18993
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 31.5033
  norm       = 0.000104945
  Prefactor  = 4.3259
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.40214
  Prefactor  = 0.0001
  Normalizat = 1.47092
  Prefactor  = 0.849339
 **********
 **   18 **HESSE 
 **********

 FCN=   7216.241     FROM HESSE     STATUS=OK           348 CALLS     2725 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.588        50.930        .95678E-04   -1.4869    
   2  Prefactor     1.1913        4.1833        .30630E-03   -1.5490    
   3  Prefactor     .10000E-03    4.3627        .17151E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     9.0172        13.832        .13340E-03   -1.5107    
   5  Prefactor     .10000E-03    12.701        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     29.315        22.483        .73975E-04   -1.4625    
   7  Prefactor     .10000E-03    7.8928        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    23.231        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    14.736        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.4351        .12917E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.1899        2.0335        .11391E-03   -1.5412    
  12  Prefactor     .10000E-03    7.0324        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.0273        .83653E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     31.503        31.372        .71254E-04   -1.4585    
  15  norm          .10494E-03    20.395        .92812E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.3259        37.407        .19431E-03   -1.5292    
  17  Prefactor     .10000E-03    4.4760        .17549E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    8.3178        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.4021        22.809        .21948E-03   -1.5339    
  20  Prefactor     .10000E-03    11.452        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.4709        .24149        .25793E-03   -.78599    
  22  Prefactor     .84934        .17493        .23503E-03   -.97934    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.19855e-09
Minuit parameter uncertainties:
  1  51.0558
  2  4.18429
  3  9.61951e-06
  4  13.8374
  5  3.79858e-05
  6  22.4895
  7  2.35481e-05
  8  3.14747e-05
  9  2.10663e-05
  10  2.63329e-07
  11  2.03354
  12  3.00329e-06
  13  1.48767e-08
  14  31.3888
  15  0.0200917
  16  25.4628
  17  1.95291e-06
  18  2.12902e-05
  19  17.6274
  20  1.97007e-05
  21  0.241681
  22  0.175047
Done.

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

Extracting fit parameters...

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  1.000e-04  2.355e-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:  8.493e-01  1.750e-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.471e+00  2.417e-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.21e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.02e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/278173/likelihoodResults_311126401_311385601_4FGL_J1416.1+1320_daily_bin277.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) = 7216.24154959
delta logL = -0.000602200613685

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7216.24094747
delta logL = -7.90832928033e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10193E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3572       1.0000          .0000       10.000    
     3 'Normalizat'    1.4710       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84931       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=   7216.241     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      242 TOTAL
                     EDM=   .67E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10165E-03    121.40        .18142E-02** at limit **
   2  Index         2.2812        5.9609        .50000        .13173E-04
   3  Normalizat    1.4709        .19037E-01    .25794E-03   -.11989E-04
   4  Prefactor     .84934        .13700E-01    .23503E-03   -.13931E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010165
  Index      = 2.28124
  Normalizat = 1.47092
  Prefactor  = 0.84934
 **********
 **   18 **HESSE 
 **********

 FCN=   7216.241     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      271 TOTAL
                     EDM=   .30E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10165E-03    490.13        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2812        6.7577        .50000       -.57490    
   3  Normalizat    1.4709        .40699E-01    .10317E-04   -.78599    
   4  Prefactor     .84934        .29289E-01    .94010E-05   -.97934    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.00442e-08
Minuit parameter uncertainties:
  1  0.0573492
  2  1077.91
  3  0.0406996
  4  0.0292895
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/278173': 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) = 7216.24094716
delta logL = 2.28788849199e-07

Extracting fit parameters...

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  1.016e-04  5.735e-02  1.000e-04  1.000e+04 ( 1.000e-13)
243        Index:  2.281e+00  1.078e+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.493e-01  2.929e-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.471e+00  4.070e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/278173/cmap_HighResolution_311126401_311385601_4FGL_J1416.1+1320_daily_bin277.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.02e-03', job_status='DONE', photon_flux_upper_limit='5.21e-08', time_completed='2021-09-09 06:20:54.245283', job_id='278173', GAL2='0.85', fit_tolerance='1e-08', EG2='1.47', EG='1.47', time_epoch_completed='1631193654.25', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='2.29e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='277' AND source_name='4FGL J1416.1+1320' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 06:20:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0112>
Subject: Job 278173: <4FGL_J1416.1+1320_daily_bin277> in cluster <slac> Done

Job <4FGL_J1416.1+1320_daily_bin277> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep  9 06:06:37 2021
Job was executed on host(s) <bullet0112>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 06:06:38 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:06:38 2021
Terminated at Thu Sep  9 06:20:54 2021
Results reported at Thu Sep  9 06:20:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1416.1+1320_daily_bin277 214.029 13.347 311126401 311385601 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 :                                   599.20 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             305.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   856 sec.
    Turnaround time :                            857 sec.

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

