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


Performing analysis on: 4FGL_J1416.1+1320_daily_bin429
RA = 214.029, Dec = 13.347
tmin = 350524801, tmax = 350784001
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='280624', job_status='RUN', time_executed='2021-09-09 06:13:34.998487', time_epoch_executed='1631193215.0' WHERE source_name='4FGL J1416.1+1320' and cadence='daily' and bin_id='429'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/280624

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/280624/ft1_4FGL_J1416.1+1320_daily_bin429.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/280624/ft2_4FGL_J1416.1+1320_daily_bin429.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/280624/ft1_4FGL_J1416.1+1320_daily_bin429.fits outfile=/scratch/kocevski/280624/ft1_filteredMKT_4FGL_J1416.1+1320_daily_bin429.fits ra=214.029 dec=13.347 rad=12.0 tmin=350524801.0 tmax=350784001.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.62
user 3.15
sys 0.32

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/280624/ft1_filtered_4FGL_J1416.1+1320_daily_bin429.fits" evtable="EVENTS" scfile=/scratch/kocevski/280624/ft2_4FGL_J1416.1+1320_daily_bin429.fits sctable="SC_DATA" outfile=/scratch/kocevski/280624/ltcube_350524801_350784001_4FGL_J1416.1+1320_daily_bin429.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/280624/ft2_4FGL_J1416.1+1320_daily_bin429.fits
.....................!
real 12.61
user 11.45
sys 0.74

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/280624/ft1_filtered_4FGL_J1416.1+1320_daily_bin429.fits evtable="EVENTS" scfile=/scratch/kocevski/280624/ft2_4FGL_J1416.1+1320_daily_bin429.fits sctable="SC_DATA" expcube=/scratch/kocevski/280624/ltcube_350524801_350784001_4FGL_J1416.1+1320_daily_bin429.fits outfile=/scratch/kocevski/280624/expmap_350524801_350784001_4FGL_J1416.1+1320_daily_bin429.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/280624/ltcube_350524801_350784001_4FGL_J1416.1+1320_daily_bin429.fits
.....................!
real 200.90
user 188.12
sys 11.75

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/280624/ft1_filtered_4FGL_J1416.1+1320_daily_bin429.fits scfile=/scratch/kocevski/280624/ft2_4FGL_J1416.1+1320_daily_bin429.fits outfile=/scratch/kocevski/280624/cmap_350524801_350784001_4FGL_J1416.1+1320_daily_bin429.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.81
user 0.40
sys 0.17

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    9.2607       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .25400E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.9445       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.3340       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    20.497       1.0000         .10000E-03   10000.    
     9 'norm      '    .10436E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    11.231       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.0969       1.0000         .10000E-03   10000.    
    13 'norm      '    1.9306       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10508E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    14.997       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11530E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    13.475       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .16270E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    26.667       1.0000         .10000E-03   10000.    
    20 'Prefactor '    27.690       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .94968       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .97233       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=   6342.987     FROM MIGRAD    STATUS=CONVERGED    482 CALLS     2377 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.989       -.55567E-06** at limit **
   2  Prefactor     9.2652        5.4247        .20746E-05    .35415E-03
   3  Prefactor     .10000E-03    2.6585       -.35307E-07** at limit **
   4  Prefactor     .10000E-03    5.5953        .14721E-06** at limit **
   5  Prefactor     9.9469        9.6918        .19810E-05    .10284E-03
   6  Prefactor     2.3890        55.307        .41114E-05    .11047E-03
   7  Prefactor     .10001E-03    49.259        .25802E-05** at limit **
   8  Prefactor     20.515        26.923        .95905E-06    .14455E-03
   9  norm          .10000E-03    12.974        .36075E-06** at limit **
  10  Prefactor     .10000E-03    1.7519       -.47790E-08** at limit **
  11  norm          11.232        3.2997        .14731E-07   -.28835E-05
  12  Prefactor     1.0979        3.0170        .93578E-06    .18105E-03
  13  norm          1.9312        2.1191        .10964E-06    .87836E-04
  14  Prefactor     .10000E-03    18.265        .69874E-06** at limit **
  15  norm          15.011        17.728        .15220E-05    .48099E-04
  16  Prefactor     .10000E-03    28.541       -.25489E-05** at limit **
  17  Prefactor     13.477        20.646        .54915E-06    .70942E-04
  18  Prefactor     .10168E-03    14.223       -.33650E-05** at limit **
  19  Prefactor     26.629        27.085       -.32339E-06   -.12727E-03
  20  Prefactor     27.698        29.330        .94435E-06    .24783E-03
  21  Normalizat    .94972        .20290       -.19202E-05    .29580E-03
  22  Prefactor     .97208        .14610        .25740E-06    .28754E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 9.26518
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.94685
  Prefactor  = 2.38904
  Prefactor  = 0.000100009
  Prefactor  = 20.515
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 11.2316
  Prefactor  = 1.09795
  norm       = 1.93115
  Prefactor  = 0.000100001
  norm       = 15.0105
  Prefactor  = 0.000100003
  Prefactor  = 13.4766
  Prefactor  = 0.000101677
  Prefactor  = 26.6292
  Prefactor  = 27.6981
  Normalizat = 0.94972
  Prefactor  = 0.972075
 **********
 **   18 **HESSE 
 **********

 FCN=   6342.987     FROM HESSE     STATUS=OK           348 CALLS     2725 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.008        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     9.2652        5.4555        .65849E-03   -1.5099    
   3  Prefactor     .10000E-03    2.6943        .12677E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    17.877        .36530E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     9.9469        9.7023        .63534E-03   -1.5077    
   6  Prefactor     2.3890        55.327        .26841E-03   -1.5399    
   7  Prefactor     .10001E-03    50.416        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     20.515        26.942        .88470E-04   -1.4802    
   9  norm          .10000E-03    12.994        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.7539        .10294E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          11.232        3.2998        .76317E-04   -1.5038    
  12  Prefactor     1.0979        2.9483        .22194E-03   -1.5498    
  13  norm          1.9312        2.1059        .11710E-03   -1.5430    
  14  Prefactor     .10000E-03    18.290        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          15.011        17.725        .51712E-03   -1.4933    
  16  Prefactor     .10000E-03    28.679        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     13.477        20.629        .10912E-03   -1.4974    
  18  Prefactor     .10168E-03    95.677        .50617E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     26.629        26.700        .77576E-04   -1.4675    
  20  Prefactor     27.698        29.307        .76133E-04   -1.4655    
  21  Normalizat    .94972        .23974        .27834E-03   -.94734    
  22  Prefactor     .97208        .17443        .20761E-03   -.93666    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.76954e-08
Minuit parameter uncertainties:
  1  0.000209136
  2  5.45577
  3  2.63167e-06
  4  0.000109468
  5  9.70388
  6  23.0172
  7  0.00138043
  8  26.9582
  9  5.29509e-05
  10  2.79002e-07
  11  3.29984
  12  2.94865
  13  2.10595
  14  0.000306245
  15  17.7311
  16  0.000572624
  17  20.64
  18  0.025374
  19  26.7117
  20  29.3217
  21  0.240015
  22  0.174535
Done.

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

Extracting fit parameters...

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  1.000e-04  1.380e-03  1.000e-04  1.000e+04 ( 1.000e-13)
243        Index:  2.373e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
244        Scale:  8.905e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
458    Prefactor:  9.721e-01  1.745e-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.497e-01  2.400e-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: 7.09e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.47e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/280624/likelihoodResults_350524801_350784001_4FGL_J1416.1+1320_daily_bin429.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) = 6342.9867672
delta logL = -9.44318762777e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6342.9866735
delta logL = -7.2845887189e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5714       1.0000          .0000       10.000    
     3 'Normalizat'    .94972       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97208       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=   6342.987     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      292 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10955E-03    .86446        .10360    ** at limit **
   2  Index         2.4378        6.1565        .50000        .15437E-04
   3  Normalizat    .94972        .11305E-02    .27834E-03   -.33493E-04
   4  Prefactor     .97208        .85670E-03    .20761E-03   -.40522E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000109551
  Index      = 2.43783
  Normalizat = 0.949718
  Prefactor  = 0.972076
 **********
 **   18 **HESSE 
 **********

 FCN=   6342.987     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      323 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10955E-03    72.315        .59621E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4378        6.0847        .50000       -.53802    
   3  Normalizat    .94972        .61319E-02    .11133E-04   -.94734    
   4  Prefactor     .97208        .46468E-02    .83045E-05   -.93666    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.55455e-09
Minuit parameter uncertainties:
  1  0.0526261
  2  164.887
  3  0.00613193
  4  0.00464677
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/280624': 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) = 6342.98667307
delta logL = -3.03233719023e-07

Extracting fit parameters...

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  1.096e-04  5.263e-02  1.000e-04  1.000e+04 ( 1.000e-13)
243        Index:  2.438e+00  1.649e+02  0.000e+00  1.000e+01 (-1.000e+00)
244        Scale:  8.905e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
458    Prefactor:  9.721e-01  4.647e-03  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.497e-01  6.132e-03  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/280624/cmap_HighResolution_350524801_350784001_4FGL_J1416.1+1320_daily_bin429.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.47e-03', job_status='DONE', photon_flux_upper_limit='7.09e-08', time_completed='2021-09-09 06:26:17.205841', job_id='280624', GAL2='0.97', fit_tolerance='1e-08', EG2='0.95', EG='0.95', time_epoch_completed='1631193977.21', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='-3.03e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='429' AND source_name='4FGL J1416.1+1320' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 06:26:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0231>
Subject: Job 280624: <4FGL_J1416.1+1320_daily_bin429> in cluster <slac> Done

Job <4FGL_J1416.1+1320_daily_bin429> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Thu Sep  9 06:11:50 2021
Job was executed on host(s) <bullet0231>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 06:11:52 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:11:52 2021
Terminated at Thu Sep  9 06:26:18 2021
Results reported at Thu Sep  9 06:26:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1416.1+1320_daily_bin429 214.029 13.347 350524801 350784001 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 :                                   586.30 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             269.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   865 sec.
    Turnaround time :                            868 sec.

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

