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


Performing analysis on: 4FGL_J1416.1+1320_daily_bin1317
RA = 214.029, Dec = 13.347
tmin = 580694401, tmax = 580953601
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='285418', job_status='RUN', time_executed='2021-09-09 06:30:06.974833', time_epoch_executed='1631194206.97' WHERE source_name='4FGL J1416.1+1320' and cadence='daily' and bin_id='1317'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/285418

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/285418/ft1_4FGL_J1416.1+1320_daily_bin1317.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/285418/ft2_4FGL_J1416.1+1320_daily_bin1317.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/285418/ft1_4FGL_J1416.1+1320_daily_bin1317.fits outfile=/scratch/kocevski/285418/ft1_filteredMKT_4FGL_J1416.1+1320_daily_bin1317.fits ra=214.029 dec=13.347 rad=12.0 tmin=580694401.0 tmax=580953601.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 2.93
user 2.58
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/285418/ft1_filtered_4FGL_J1416.1+1320_daily_bin1317.fits evtable="EVENTS" scfile=/scratch/kocevski/285418/ft2_4FGL_J1416.1+1320_daily_bin1317.fits sctable="SC_DATA" expcube=/scratch/kocevski/285418/ltcube_580694401_580953601_4FGL_J1416.1+1320_daily_bin1317.fits outfile=/scratch/kocevski/285418/expmap_580694401_580953601_4FGL_J1416.1+1320_daily_bin1317.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/285418/ltcube_580694401_580953601_4FGL_J1416.1+1320_daily_bin1317.fits
.....................!
real 192.56
user 185.18
sys 4.74

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/285418/ft1_filtered_4FGL_J1416.1+1320_daily_bin1317.fits scfile=/scratch/kocevski/285418/ft2_4FGL_J1416.1+1320_daily_bin1317.fits outfile=/scratch/kocevski/285418/cmap_580694401_580953601_4FGL_J1416.1+1320_daily_bin1317.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.54
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/285418/ft1_filtered_4FGL_J1416.1+1320_daily_bin1317.fits scfile=/scratch/kocevski/285418/ft2_4FGL_J1416.1+1320_daily_bin1317.fits outfile=/scratch/kocevski/285418/cmap_HighResolution_580694401_580953601_4FGL_J1416.1+1320_daily_bin1317.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.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    31.226       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10175E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.749       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .15353E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11537E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    36.224       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    12.321       1.0000         .10000E-03   10000.    
    11 'norm      '    7.6955       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    3.2049       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    13.494       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .94008       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0850       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=   8240.405     FROM MIGRAD    STATUS=CONVERGED    476 CALLS     2343 TOTAL
                     EDM=   .44E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     31.218        36.962       -.86766E-05   -.41261E-05
   2  Prefactor     .10000E-03    1.5727        .21501E-06** at limit **
   3  Prefactor     .10000E-03    1.0423        .20794E-07** at limit **
   4  Prefactor     11.752        10.124        .14629E-06   -.13282E-04
   5  Prefactor     .10000E-03    4.8797       -.43884E-07** at limit **
   6  Prefactor     .10000E-03    62.496       -.30733E-04** at limit **
   7  Prefactor     36.214        25.371       -.45320E-05    .29944E-05
   8  Prefactor     .10000E-03    7.9234        .34219E-05** at limit **
   9  norm          .10000E-03    10.944       -.40410E-05** at limit **
  10  Prefactor     12.322        7.1871       -.30571E-06   -.12605E-02
  11  norm          7.6954        2.5576       -.42617E-07    .10869E-04
  12  Prefactor     .10000E-03    3.1523        .21473E-07** at limit **
  13  norm          3.2046        2.5166       -.17944E-06   -.53136E-03
  14  Prefactor     .10000E-03    12.092        .96858E-06** at limit **
  15  norm          .10000E-03    7.3988       -.33698E-05** at limit **
  16  Prefactor     .10000E-03    14.686        .17239E-05** at limit **
  17  Prefactor     .10000E-03    28.912       -.10414E-04** at limit **
  18  Prefactor     13.489        14.179       -.22562E-06   -.12265E-03
  19  Prefactor     .10000E-03    6.9130        .85242E-06** at limit **
  20  Prefactor     .10000E-03    47.666        .35525E-04** at limit **
  21  Normalizat    .94018        .17793        .87444E-06    .80501E-05
  22  Prefactor     1.0851        .13252        .46712E-06    .77573E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 31.218
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 11.752
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 36.2142
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 12.3215
  norm       = 7.69536
  Prefactor  = 0.0001
  norm       = 3.20464
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.4894
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.940179
  Prefactor  = 1.08506
 **********
 **   18 **HESSE 
 **********

 FCN=   8240.405     FROM HESSE     STATUS=OK           342 CALLS     2685 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     31.218        36.990        .71703E-04   -1.4590    
   2  Prefactor     .10000E-03    12.106        .21925E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.0449        .90493E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     11.752        10.131        .11687E-03   -1.5022    
   5  Prefactor     .10000E-03    18.464        .38193E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    63.050        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     36.214        25.318        .66588E-04   -1.4504    
   8  Prefactor     .10000E-03    7.9314        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    10.952        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     12.322        7.2141        .57060E-03   -1.5006    
  11  norm          7.6954        2.5571        .81058E-04   -1.5153    
  12  Prefactor     .10000E-03    3.2037        .15723E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.2046        2.5112        .12188E-03   -1.5350    
  14  Prefactor     .10000E-03    12.099        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    7.4077        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    14.781        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    29.080        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     13.489        14.175        .10904E-03   -1.4973    
  19  Prefactor     .10000E-03    6.9184        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    47.564        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .94018        .20830        .29392E-03   -.95062    
  22  Prefactor     1.0851        .15771        .20788E-03   -.89946    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.27862e-09
Minuit parameter uncertainties:
  1  37.017
  2  0.000483958
  3  1.4248e-06
  4  10.1324
  5  0.000365771
  6  0.000259603
  7  25.326
  8  1.5255e-06
  9  1.58609e-06
  10  7.21461
  11  2.5571
  12  4.39985e-06
  13  2.51125
  14  1.5878e-06
  15  1.37955e-06
  16  2.01424e-05
  17  2.34361e-06
  18  14.1786
  19  7.85341e-06
  20  0.000152512
  21  0.208478
  22  0.157778
Done.

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

Extracting fit parameters...

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  3.621e+01  2.533e+01  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:  1.085e+00  1.578e-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:  9.402e-01  2.085e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.69
Ra Dec: 214.029 13.347
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 4.73e-08 +/- 3.31e-08
Energy Flux (Fixed Index): 1.61e-05 +/- 1.12e-05

TS (Fixed Index): 3.69
Ra Dec: 214.029 13.347
Photon Flux Upper Limit: 1.19e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.18e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/285418/likelihoodResults_580694401_580953601_4FGL_J1416.1+1320_daily_bin1317.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): 0
logL (Free Index) = 8240.04971188
delta logL = 0.355432766813

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8240.03393942
delta logL = 0.371205225571

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    43.273       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9673       1.0000          .0000       10.000    
     3 'Normalizat'    .95454       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0792       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=   8240.034     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      275 TOTAL
                     EDM=   .10E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     43.263        30.336        .60943E-04    .13431E-05
   2  Index         1.9667        .45704        .81049E-02    .25371E-04
   3  Normalizat    .95453        .20677        .29197E-03   -.10435E-04
   4  Prefactor     1.0792        .15660        .20836E-03    .78570E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 43.2628
  Index      = 1.96667
  Normalizat = 0.954526
  Prefactor  = 1.07923
 **********
 **   18 **HESSE 
 **********

 FCN=   8240.034     FROM HESSE     STATUS=OK            25 CALLS      300 TOTAL
                     EDM=   .12E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     43.263        30.384        .12189E-04   -1.4392    
   2  Index         1.9667        .45777        .16210E-02   -.65186    
   3  Normalizat    .95453        .20700        .11679E-04   -.94570    
   4  Prefactor     1.0792        .15678        .83345E-05   -.90133    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.21178e-12
Minuit parameter uncertainties:
  1  30.3946
  2  0.458789
  3  0.20717
  4  0.156845
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/285418': 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) = 8240.03393838
delta logL = 0.371206262176

Extracting fit parameters...

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  4.326e+01  3.039e+01  1.000e-04  1.000e+04 ( 1.000e-13)
243        Index:  1.967e+00  4.588e-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:  1.079e+00  1.568e-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:  9.545e-01  2.072e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.44
Ra Dec: 214.029 13.347
Photon Index (Free Index): 1.97 +/- 0.46
Photon Flux (Free Index): 3.30e-08 +/- 3.01e-08
Energy Flux (Free Index): 2.48e-05 +/- 2.27e-05

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/285418/cmap_HighResolution_580694401_580953601_4FGL_J1416.1+1320_daily_bin1317.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.18e-03', comment='SUCCESS', photon_flux='4.73e-08', energy_flux2='2.48e-05', photon_flux_error='3.31e-08', dlogl='3.71e-01', energy_flux='1.61e-05', photon_flux2='3.30e-08', job_status='DONE', time_completed='2021-09-09 06:41:08.477873', photon_index_error2='0.46', photon_index2='1.97', ts='3.69', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', photon_flux_upper_limit='1.19e-07', energy_flux_error2='2.27e-05', EG='0.94', time_epoch_completed='1631194868.48', return_code='0', job_id='285418', GAL2='1.08', EG2='0.95', return_code2='0', energy_flux_error='1.12e-05', photon_flux_error2='3.01e-08', ts2='4.44', photon_index='2.37' WHERE bin_id='1317' AND source_name='4FGL J1416.1+1320' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 06:41:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0274>
Subject: Job 285418: <4FGL_J1416.1+1320_daily_bin1317> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1416.1+1320_daily_bin1317 214.029 13.347 580694401 580953601 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 :                                   636.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             275.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   840 sec.
    Turnaround time :                            842 sec.

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

