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


Performing analysis on: 4FGL_J1416.1+1320_daily_bin829
RA = 214.029, Dec = 13.347
tmin = 454204801, tmax = 454464001
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='282410', job_status='RUN', time_executed='2021-09-09 06:21:20.713693', time_epoch_executed='1631193680.71' WHERE source_name='4FGL J1416.1+1320' and cadence='daily' and bin_id='829'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/282410

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/282410/ft1_4FGL_J1416.1+1320_daily_bin829.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/282410/ft2_4FGL_J1416.1+1320_daily_bin829.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/282410/ft1_4FGL_J1416.1+1320_daily_bin829.fits outfile=/scratch/kocevski/282410/ft1_filteredMKT_4FGL_J1416.1+1320_daily_bin829.fits ra=214.029 dec=13.347 rad=12.0 tmin=454204801.0 tmax=454464001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.84
user 3.30
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/282410/ft2_4FGL_J1416.1+1320_daily_bin829.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/282410/ft1_filteredMKT_4FGL_J1416.1+1320_daily_bin829.fits evtable="EVENTS" outfile="/scratch/kocevski/282410/ft1_filtered_4FGL_J1416.1+1320_daily_bin829.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.10
user 0.36
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/282410/ft1_filtered_4FGL_J1416.1+1320_daily_bin829.fits evtable="EVENTS" scfile=/scratch/kocevski/282410/ft2_4FGL_J1416.1+1320_daily_bin829.fits sctable="SC_DATA" expcube=/scratch/kocevski/282410/ltcube_454204801_454464001_4FGL_J1416.1+1320_daily_bin829.fits outfile=/scratch/kocevski/282410/expmap_454204801_454464001_4FGL_J1416.1+1320_daily_bin829.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/282410/ltcube_454204801_454464001_4FGL_J1416.1+1320_daily_bin829.fits
.....................!
real 194.83
user 185.42
sys 4.73

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/282410/ft1_filtered_4FGL_J1416.1+1320_daily_bin829.fits scfile=/scratch/kocevski/282410/ft2_4FGL_J1416.1+1320_daily_bin829.fits outfile=/scratch/kocevski/282410/cmap_454204801_454464001_4FGL_J1416.1+1320_daily_bin829.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.96
user 0.39
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/282410/ft1_filtered_4FGL_J1416.1+1320_daily_bin829.fits scfile=/scratch/kocevski/282410/ft2_4FGL_J1416.1+1320_daily_bin829.fits outfile=/scratch/kocevski/282410/cmap_HighResolution_454204801_454464001_4FGL_J1416.1+1320_daily_bin829.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.68
user 0.37
sys 0.19

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10989E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .80296       1.0000         .10000E-03   10000.    
     4 'Prefactor '    19.475       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.2851       1.0000         .10000E-03   10000.    
     8 'Prefactor '    35.552       1.0000         .10000E-03   10000.    
     9 'norm      '    .10259E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .49627       1.0000         .10000E-03   10000.    
    11 'norm      '    6.3720       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .47359       1.0000         .10000E-03   10000.    
    13 'norm      '    .19467       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10194E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11293E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    21.913       1.0000         .10000E-03   10000.    
    18 'Prefactor '    13.785       1.0000         .10000E-03   10000.    
    19 'Prefactor '    22.197       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11094E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .83640       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.2410       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=   7177.831     FROM MIGRAD    STATUS=CONVERGED    496 CALLS     2460 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    32.507       -.19507E-04** at limit **
   2  Prefactor     .10000E-03    2.9720       -.28244E-07** at limit **
   3  Prefactor     .80214        3.0096       -.16725E-05   -.14226E-02
   4  Prefactor     19.473        12.648       -.39302E-07    .23140E-04
   5  Prefactor     .10000E-03    8.1021        .16831E-06** at limit **
   6  Prefactor     .10000E-03    5.5995       -.44961E-07** at limit **
   7  Prefactor     1.3662        165.45        .22415E-04   -.25716E-04
   8  Prefactor     35.564        24.498        .64694E-06    .73937E-05
   9  norm          .10000E-03    14.929       -.32732E-05** at limit **
  10  Prefactor     .48800        6.1234       -.32742E-05   -.15174E-03
  11  norm          6.3733        3.1768       -.10602E-06   -.85140E-03
  12  Prefactor     .53951        5.2065        .11673E-05   -.46065E-03
  13  norm          .17050        1.6672       -.48278E-06    .35915E-03
  14  Prefactor     .10000E-03    11.445        .12812E-05** at limit **
  15  norm          .10000E-03    8.9972       -.53279E-06** at limit **
  16  Prefactor     .10000E-03    20.755        .86969E-05** at limit **
  17  Prefactor     21.915        32.987        .28912E-05   -.12710E-04
  18  Prefactor     13.805        26.489        .14760E-05   -.82254E-04
  19  Prefactor     22.201        34.504       -.47709E-05   -.93698E-04
  20  Prefactor     .10000E-03    37.547        .19432E-04** at limit **
  21  Normalizat    .83599        .21957       -.93831E-06    .40567E-04
  22  Prefactor     1.2412        .15657        .23576E-06    .62395E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.802139
  Prefactor  = 19.473
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.36616
  Prefactor  = 35.564
  norm       = 0.0001
  Prefactor  = 0.487998
  norm       = 6.37328
  Prefactor  = 0.539507
  norm       = 0.170496
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.9146
  Prefactor  = 13.8049
  Prefactor  = 22.2006
  Prefactor  = 0.0001
  Normalizat = 0.835992
  Prefactor  = 1.24121
 **********
 **   18 **HESSE 
 **********

 FCN=   7177.831     FROM HESSE     STATUS=OK           350 CALLS     2810 TOTAL
                     EDM=   .69E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    31.868        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.0704        .28491E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .80214        3.0668        .28549E-03   -1.5529    
   4  Prefactor     19.473        12.653        .90759E-04   -1.4825    
   5  Prefactor     .10000E-03    8.1651        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.6029        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.3662        160.23        .39113E-03   -1.5474    
   8  Prefactor     35.564        24.521        .67212E-04   -1.4515    
   9  norm          .10000E-03    15.006        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .48800        17.209        .36372E-02   -1.5568    
  11  norm          6.3733        3.1824        .51674E-03   -1.5203    
  12  Prefactor     .53951        36.927        .31813E-02   -1.5561    
  13  norm          .17050        18.307        .20032E-02   -1.5625    
  14  Prefactor     .10000E-03    11.452        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    9.0183        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    20.738        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     21.915        32.906        .85565E-04   -1.4771    
  18  Prefactor     13.805        26.335        .10788E-03   -1.4965    
  19  Prefactor     22.201        34.417        .85016E-04   -1.4765    
  20  Prefactor     .10000E-03    37.077        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .83599        .25914        .33079E-03   -.98747    
  22  Prefactor     1.2412        .18641        .20592E-03   -.85073    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.88326e-08
Minuit parameter uncertainties:
  1  4.08436e-05
  2  7.14576e-06
  3  3.06745
  4  12.6551
  5  1.99649e-06
  6  1.4363e-07
  7  29.6715
  8  24.5284
  9  1.3578e-06
  10  5.79707
  11  3.18247
  12  8.93177
  13  3.53347
  14  5.92089e-06
  15  8.99127e-06
  16  5.24631e-05
  17  32.9334
  18  26.3575
  19  34.4478
  20  6.37058e-05
  21  0.259522
  22  0.186507
Done.

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

Extracting fit parameters...

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  1.366e+00  2.967e+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.241e+00  1.865e-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:  8.360e-01  2.595e-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: 9.64e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.44e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/282410/likelihoodResults_454204801_454464001_4FGL_J1416.1+1320_daily_bin829.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) = 7177.82983293
delta logL = 0.00143641948125

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7177.82843739
delta logL = 0.00283195558404

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.8874       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0200       1.0000          .0000       10.000    
     3 'Normalizat'    .83705       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2399       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=   7177.828     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      339 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.8737        97.196        .23917E-03   -.13310E-05
   2  Index         2.0197        2.8486        .26015E-01   -.39143E-05
   3  Normalizat    .83701        .24527        .33061E-03   -.14786E-04
   4  Prefactor     1.2400        .18414        .20601E-03    .27040E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.87369
  Index      = 2.01974
  Normalizat = 0.837013
  Prefactor  = 1.23998
 **********
 **   18 **HESSE 
 **********

 FCN=   7177.828     FROM HESSE     STATUS=OK            25 CALLS      364 TOTAL
                     EDM=   .22E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.8737        93.637        .95666E-05   -1.5369    
   2  Index         2.0197        2.8113        .10406E-02   -.63857    
   3  Normalizat    .83701        .24546        .13224E-04   -.98710    
   4  Prefactor     1.2400        .18417        .82406E-05   -.85110    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.21783e-12
Minuit parameter uncertainties:
  1  32.8632
  2  3.11441
  3  0.245783
  4  0.184265
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/282410': 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) = 7177.82843722
delta logL = 0.00283212224622

Extracting fit parameters...

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  2.874e+00  3.286e+01  1.000e-04  1.000e+04 ( 1.000e-13)
243        Index:  2.020e+00  3.114e+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:  1.240e+00  1.843e-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:  8.370e-01  2.458e-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/282410/cmap_HighResolution_454204801_454464001_4FGL_J1416.1+1320_daily_bin829.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.44e-03', job_status='DONE', photon_flux_upper_limit='9.64e-08', time_completed='2021-09-09 06:31:40.081490', job_id='282410', GAL2='1.24', fit_tolerance='1e-08', EG2='0.84', EG='0.84', time_epoch_completed='1631194300.08', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.24', dlogl='2.83e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='829' AND source_name='4FGL J1416.1+1320' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 06:31:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0070>
Subject: Job 282410: <4FGL_J1416.1+1320_daily_bin829> in cluster <slac> Done

Job <4FGL_J1416.1+1320_daily_bin829> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Thu Sep  9 06:17:20 2021
Job was executed on host(s) <bullet0070>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 06:17:22 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  9 06:17:22 2021
Terminated at Thu Sep  9 06:31:40 2021
Results reported at Thu Sep  9 06:31:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1416.1+1320_daily_bin829 214.029 13.347 454204801 454464001 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 :                                   609.24 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             254.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   858 sec.
    Turnaround time :                            860 sec.

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

