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


Performing analysis on: 4FGL_J1416.1+1320_daily_bin361
RA = 214.029, Dec = 13.347
tmin = 332899201, tmax = 333158401
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='278290', job_status='RUN', time_executed='2021-09-09 06:09:11.372991', time_epoch_executed='1631192951.37' WHERE source_name='4FGL J1416.1+1320' and cadence='daily' and bin_id='361'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/278290

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/278290/ft1_4FGL_J1416.1+1320_daily_bin361.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/278290/ft2_4FGL_J1416.1+1320_daily_bin361.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/278290/ft1_4FGL_J1416.1+1320_daily_bin361.fits outfile=/scratch/kocevski/278290/ft1_filteredMKT_4FGL_J1416.1+1320_daily_bin361.fits ra=214.029 dec=13.347 rad=12.0 tmin=332899201.0 tmax=333158401.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.98
user 3.93
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/278290/ft1_filtered_4FGL_J1416.1+1320_daily_bin361.fits" evtable="EVENTS" scfile=/scratch/kocevski/278290/ft2_4FGL_J1416.1+1320_daily_bin361.fits sctable="SC_DATA" outfile=/scratch/kocevski/278290/ltcube_332899201_333158401_4FGL_J1416.1+1320_daily_bin361.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/278290/ft2_4FGL_J1416.1+1320_daily_bin361.fits
.....................!
real 12.64
user 11.31
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/278290/ft1_filtered_4FGL_J1416.1+1320_daily_bin361.fits evtable="EVENTS" scfile=/scratch/kocevski/278290/ft2_4FGL_J1416.1+1320_daily_bin361.fits sctable="SC_DATA" expcube=/scratch/kocevski/278290/ltcube_332899201_333158401_4FGL_J1416.1+1320_daily_bin361.fits outfile=/scratch/kocevski/278290/expmap_332899201_333158401_4FGL_J1416.1+1320_daily_bin361.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/278290/ltcube_332899201_333158401_4FGL_J1416.1+1320_daily_bin361.fits
.....................!
real 194.72
user 184.84
sys 4.86

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/278290/ft1_filtered_4FGL_J1416.1+1320_daily_bin361.fits scfile=/scratch/kocevski/278290/ft2_4FGL_J1416.1+1320_daily_bin361.fits outfile=/scratch/kocevski/278290/cmap_332899201_333158401_4FGL_J1416.1+1320_daily_bin361.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 1.23
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/278290/ft1_filtered_4FGL_J1416.1+1320_daily_bin361.fits scfile=/scratch/kocevski/278290/ft2_4FGL_J1416.1+1320_daily_bin361.fits outfile=/scratch/kocevski/278290/cmap_HighResolution_332899201_333158401_4FGL_J1416.1+1320_daily_bin361.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.80
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.6195       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11775E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    42.247       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .87929E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    72.794       1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.9095       1.0000         .10000E-03   10000.    
    11 'norm      '    9.3745       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    59.537       1.0000         .10000E-03   10000.    
    15 'norm      '    17.671       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10890E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    22.194       1.0000         .10000E-03   10000.    
    18 'Prefactor '    15.210       1.0000         .10000E-03   10000.    
    19 'Prefactor '    22.946       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1953       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .79959       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=   5923.702     FROM MIGRAD    STATUS=CONVERGED    495 CALLS     2413 TOTAL
                     EDM=   .35E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.524       -.14833E-06** at limit **
   2  Prefactor     3.6219        4.9802        .43777E-06   -.56172E-03
   3  Prefactor     .10000E-03    4.9172        .12749E-05** at limit **
   4  Prefactor     42.244        20.871        .49138E-06   -.30889E-03
   5  Prefactor     .19491        7.3214        .16730E-05   -.54065E-04
   6  Prefactor     .10000E-03    12.697       -.50453E-07** at limit **
   7  Prefactor     .10000E-03    19.740       -.13466E-05** at limit **
   8  Prefactor     72.822        37.155        .19083E-04   -.48318E-04
   9  norm          .10000E-03    8.3875       -.16827E-06** at limit **
  10  Prefactor     6.9119        7.7384       -.81890E-06   -.17507E-03
  11  norm          9.3751        3.3597        .20598E-06   -.34077E-04
  12  Prefactor     .10000E-03    2.8911        .10906E-06** at limit **
  13  norm          .10000E-03    .71093        .51945E-07** at limit **
  14  Prefactor     59.544        59.498        .49377E-05   -.23453E-04
  15  norm          17.680        33.135       -.89869E-06   -.32238E-04
  16  Prefactor     .10000E-03    62.442       -.45861E-05** at limit **
  17  Prefactor     22.203        26.199        .81626E-05   -.24323E-04
  18  Prefactor     15.212        17.146       -.29303E-05   -.52764E-04
  19  Prefactor     22.961        32.732        .17657E-04    .63995E-06
  20  Prefactor     .10000E-03    18.369        .85509E-06** at limit **
  21  Normalizat    1.1951        .22286       -.56725E-05   -.22226E-03
  22  Prefactor     .79951        .15509       -.18674E-05   -.51966E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 3.62187
  Prefactor  = 0.0001
  Prefactor  = 42.2437
  Prefactor  = 0.194907
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 72.8223
  norm       = 0.0001
  Prefactor  = 6.91187
  norm       = 9.37512
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 59.5445
  norm       = 17.6798
  Prefactor  = 0.000100004
  Prefactor  = 22.2035
  Prefactor  = 15.2116
  Prefactor  = 22.9614
  Prefactor  = 0.0001
  Normalizat = 1.19512
  Prefactor  = 0.799508
 **********
 **   18 **HESSE 
 **********

 FCN=   5923.702     FROM HESSE     STATUS=OK           340 CALLS     2753 TOTAL
                     EDM=   .83E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    18.530        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.6219        4.9726        .19083E-03   -1.5327    
   3  Prefactor     .10000E-03    26.870        .32472E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     42.244        20.827        .61675E-04   -1.4407    
   5  Prefactor     .19491        142.57        .38983E-02   -1.5620    
   6  Prefactor     .10000E-03    12.739        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    19.766        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     72.822        37.220        .47055E-04   -1.3999    
   9  norm          .10000E-03    8.3912        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.9119        7.7492        .15263E-03   -1.5182    
  11  norm          9.3751        3.3611        .81987E-04   -1.5095    
  12  Prefactor     .10000E-03    2.9037        .12771E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .71360        .63365E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     59.544        59.544        .51997E-04   -1.4163    
  15  norm          17.680        33.148        .95277E-04   -1.4867    
  16  Prefactor     .10000E-03    63.255        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     22.203        26.195        .85023E-04   -1.4765    
  18  Prefactor     15.212        17.142        .10270E-03   -1.4928    
  19  Prefactor     22.961        32.746        .83620E-04   -1.4749    
  20  Prefactor     .10000E-03    18.373        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.1951        .27064        .27072E-03   -.86754    
  22  Prefactor     .79951        .18665        .23364E-03   -.99746    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.30676e-10
Minuit parameter uncertainties:
  1  2.41187e-05
  2  4.97318
  3  4.39208e-05
  4  20.8304
  5  10.5655
  6  1.29314e-05
  7  5.57576e-05
  8  37.2316
  9  4.86991e-05
  10  7.75029
  11  3.36119
  12  2.05459e-05
  13  3.37482e-06
  14  59.6036
  15  33.182
  16  0.00096692
  17  26.2087
  18  17.1479
  19  32.772
  20  8.08996e-05
  21  0.270962
  22  0.186797
Done.

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

Extracting fit parameters...

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  1.000e-04  5.576e-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:  7.995e-01  1.868e-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.195e+00  2.710e-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: 8.81e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.79e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/278290/likelihoodResults_332899201_333158401_4FGL_J1416.1+1320_daily_bin361.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) = 5923.70219556
delta logL = -0.000240990331804

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5923.70195476
delta logL = -1.86621036846e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2800       1.0000          .0000       10.000    
     3 'Normalizat'    1.1951       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79952       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.

 FCN=   5923.702     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      237 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1437.8        .90712E-02** at limit **
   2  Index         2.2971        6.8170        .50000       -.81118E-05
   3  Normalizat    1.1951        .52089E-01    .61209E-01   -.72632E-05
   4  Prefactor     .79951        .37736E-01    .43711E-01    .21344E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.2971
  Normalizat = 1.19512
  Prefactor  = 0.799512
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6823.5        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2971        6.1655        .50000       -.57113    
   3  Normalizat    1.1951        .15597        .27073E-03   -.86754    
   4  Prefactor     .79951        .11306        .23364E-03   -.99746    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.29353e-08
Minuit parameter uncertainties:
  1  0.00221734
  2  63.3594
  3  0.156027
  4  0.113095
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/278290': 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) = 5923.70195472
delta logL = -1.50142113853e-07

Extracting fit parameters...

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  1.000e-04  2.217e-03  1.000e-04  1.000e+04 ( 1.000e-13)
243        Index:  2.297e+00  6.336e+01  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:  7.995e-01  1.131e-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.195e+00  1.560e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/278290/cmap_HighResolution_332899201_333158401_4FGL_J1416.1+1320_daily_bin361.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.79e-03', job_status='DONE', photon_flux_upper_limit='8.81e-08', time_completed='2021-09-09 06:18:50.059939', job_id='278290', GAL2='0.80', fit_tolerance='1e-08', EG2='1.20', EG='1.20', time_epoch_completed='1631193530.06', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.80', dlogl='-1.50e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='361' AND source_name='4FGL J1416.1+1320' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 06:18:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0156>
Subject: Job 278290: <4FGL_J1416.1+1320_daily_bin361> in cluster <slac> Done

Job <4FGL_J1416.1+1320_daily_bin361> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep  9 06:06:44 2021
Job was executed on host(s) <bullet0156>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 06:06:45 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:45 2021
Terminated at Thu Sep  9 06:18:51 2021
Results reported at Thu Sep  9 06:18:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1416.1+1320_daily_bin361 214.029 13.347 332899201 333158401 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 :                                   547.34 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             311.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   725 sec.
    Turnaround time :                            727 sec.

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

