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


Performing analysis on: 4FGL_J1416.1+1320_daily_bin963
RA = 214.029, Dec = 13.347
tmin = 488937601, tmax = 489196801
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='283624', job_status='RUN', time_executed='2021-09-09 06:24:25.609787', time_epoch_executed='1631193865.61' WHERE source_name='4FGL J1416.1+1320' and cadence='daily' and bin_id='963'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/283624

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/283624/ft1_4FGL_J1416.1+1320_daily_bin963.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/283624/ft2_4FGL_J1416.1+1320_daily_bin963.fits


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

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

Done.
real 4.88
user 3.32
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/283624/ft1_filtered_4FGL_J1416.1+1320_daily_bin963.fits" evtable="EVENTS" scfile=/scratch/kocevski/283624/ft2_4FGL_J1416.1+1320_daily_bin963.fits sctable="SC_DATA" outfile=/scratch/kocevski/283624/ltcube_488937601_489196801_4FGL_J1416.1+1320_daily_bin963.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/283624/ft2_4FGL_J1416.1+1320_daily_bin963.fits
.....................!
real 14.57
user 11.42
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/283624/ft1_filtered_4FGL_J1416.1+1320_daily_bin963.fits evtable="EVENTS" scfile=/scratch/kocevski/283624/ft2_4FGL_J1416.1+1320_daily_bin963.fits sctable="SC_DATA" expcube=/scratch/kocevski/283624/ltcube_488937601_489196801_4FGL_J1416.1+1320_daily_bin963.fits outfile=/scratch/kocevski/283624/expmap_488937601_489196801_4FGL_J1416.1+1320_daily_bin963.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/283624/ltcube_488937601_489196801_4FGL_J1416.1+1320_daily_bin963.fits
.....................!
real 201.11
user 186.08
sys 4.66

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/283624/ft1_filtered_4FGL_J1416.1+1320_daily_bin963.fits scfile=/scratch/kocevski/283624/ft2_4FGL_J1416.1+1320_daily_bin963.fits outfile=/scratch/kocevski/283624/cmap_488937601_489196801_4FGL_J1416.1+1320_daily_bin963.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.03
user 0.38
sys 0.17

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.6920       1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.818       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    71.728       1.0000         .10000E-03   10000.    
     8 'Prefactor '    30.022       1.0000         .10000E-03   10000.    
     9 'norm      '    16.118       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    5.2866       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    3.2375       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .74767E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10188E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    12.599       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.8524       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2199       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .85242       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=   6062.154     FROM MIGRAD    STATUS=CONVERGED    467 CALLS     2340 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    26.139        .71422E-05** at limit **
   2  Prefactor     .10000E-03    1.4029       -.47940E-06** at limit **
   3  Prefactor     1.6919        2.3732       -.28088E-07   -.79170E-04
   4  Prefactor     12.818        13.793       -.13399E-05   -.73829E-03
   5  Prefactor     .10000E-03    8.5492       -.51640E-07** at limit **
   6  Prefactor     .10000E-03    23.750       -.49388E-05** at limit **
   7  Prefactor     71.727        37.583       -.23242E-06    .36407E-05
   8  Prefactor     30.011        30.347       -.82835E-05    .24743E-03
   9  norm          16.120        23.262        .22362E-05   -.46918E-04
  10  Prefactor     .10000E-03    2.2578        .44993E-06** at limit **
  11  norm          5.2861        2.9684       -.75248E-07    .74089E-05
  12  Prefactor     .10000E-03    1.8979        .13297E-06** at limit **
  13  norm          3.2375        3.0469       -.19110E-06   -.21137E-03
  14  Prefactor     .10000E-03    23.890       -.45724E-05** at limit **
  15  norm          .10041E-03    12.775        .27471E-05** at limit **
  16  Prefactor     .10000E-03    17.340        .23410E-05** at limit **
  17  Prefactor     .10000E-03    13.176       -.74620E-06** at limit **
  18  Prefactor     12.622        23.358        .19059E-04    .12601E-03
  19  Prefactor     2.8369        114.80       -.76685E-04    .17055E-04
  20  Prefactor     .10000E-03    58.659        .34855E-06** at limit **
  21  Normalizat    1.2199        .21105        .20879E-05    .24761E-04
  22  Prefactor     .85238        .15303       -.26821E-06    .15699E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 1.69194
  Prefactor  = 12.818
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 71.7274
  Prefactor  = 30.0113
  norm       = 16.1195
  Prefactor  = 0.0001
  norm       = 5.28612
  Prefactor  = 0.0001
  norm       = 3.23747
  Prefactor  = 0.0001
  norm       = 0.00010041
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 12.6225
  Prefactor  = 2.83687
  Prefactor  = 0.000100002
  Normalizat = 1.21995
  Prefactor  = 0.852381
 **********
 **   18 **HESSE 
 **********

 FCN=   6062.154     FROM HESSE     STATUS=OK           342 CALLS     2682 TOTAL
                     EDM=   .77E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    26.088        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    1.4107        .90041E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.6919        2.3536        .13836E-03   -1.5448    
   4  Prefactor     12.818        13.905        .55941E-03   -1.4992    
   5  Prefactor     .10000E-03    8.6620        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    23.785        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     71.727        37.651        .47401E-04   -1.4012    
   8  Prefactor     30.011        30.266        .73123E-04   -1.4612    
   9  norm          16.120        23.249        .99761E-04   -1.4905    
  10  Prefactor     .10000E-03    2.2608        .11423E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          5.2861        2.9682        .97352E-04   -1.5248    
  12  Prefactor     .10000E-03    1.9025        .10473E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.2375        3.0401        .12601E-03   -1.5348    
  14  Prefactor     .10000E-03    23.911        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10041E-03    63.650        .53465E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    17.435        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    13.221        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     12.622        23.356        .11285E-03   -1.4997    
  19  Prefactor     2.8369        116.92        .24073E-03   -1.5371    
  20  Prefactor     .10000E-03    58.794        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.2199        .25727        .26532E-03   -.85989    
  22  Prefactor     .85238        .18542        .22721E-03   -.97825    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.65543e-09
Minuit parameter uncertainties:
  1  0.000394485
  2  4.6214e-06
  3  2.35376
  4  13.9088
  5  2.05488e-05
  6  0.00028615
  7  37.6635
  8  30.2816
  9  23.2622
  10  9.16923e-06
  11  2.9683
  12  3.22689e-06
  13  3.04026
  14  0.000174625
  15  0.010232
  16  0.000219725
  17  1.28889e-05
  18  23.3733
  19  36.5012
  20  0.000753567
  21  0.257534
  22  0.185553
Done.

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

Extracting fit parameters...

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  7.173e+01  3.766e+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:  8.524e-01  1.856e-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.220e+00  2.575e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.68
Ra Dec: 214.029 13.347
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 9.37e-08 +/- 4.92e-08
Energy Flux (Fixed Index): 3.19e-05 +/- 1.67e-05

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) = 6061.40225846
delta logL = 0.751606664839

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6061.39973157
delta logL = 0.754133548697

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    37.076       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9910       1.0000          .0000       10.000    
     3 'Normalizat'    1.1743       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87653       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=   6061.400     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      296 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     37.085        40.513        .65821E-04   -.27901E-03
   2  Index         2.9913        .65351        .41189E-02   -.65605E-04
   3  Normalizat    1.1742        .25591        .26944E-03   -.84556E-04
   4  Prefactor     .87647        .18579        .22431E-03   -.11251E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 37.0851
  Index      = 2.99126
  Normalizat = 1.17423
  Prefactor  = 0.876466
 **********
 **   18 **HESSE 
 **********

 FCN=   6061.400     FROM HESSE     STATUS=OK            25 CALLS      321 TOTAL
                     EDM=   .98E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     37.085        35.332        .13164E-04   -1.4489    
   2  Index         2.9913        .57002        .16476E-03   -.41342    
   3  Normalizat    1.1742        .25599        .10778E-04   -.87403    
   4  Prefactor     .87647        .18575        .89726E-05   -.96968    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.84141e-11
Minuit parameter uncertainties:
  1  35.3517
  2  0.571502
  3  0.256264
  4  0.185886
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/283624': 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) = 6061.39972997
delta logL = 0.75413514901

Extracting fit parameters...

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  3.709e+01  3.535e+01  1.000e-04  1.000e+04 ( 1.000e-13)
243        Index:  2.991e+00  5.715e-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:  8.765e-01  1.859e-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.174e+00  2.563e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.25
Ra Dec: 214.029 13.347
Photon Index (Free Index): 2.99 +/- 0.57
Photon Flux (Free Index): 1.29e-07 +/- 6.27e-08
Energy Flux (Free Index): 2.59e-05 +/- 1.27e-05

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/283624/cmap_HighResolution_488937601_489196801_4FGL_J1416.1+1320_daily_bin963.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.37e-08', energy_flux2='2.59e-05', photon_flux_error='4.92e-08', dlogl='7.54e-01', energy_flux='3.19e-05', photon_flux2='1.29e-07', job_status='DONE', time_completed='2021-09-09 06:33:40.749954', photon_index_error2='0.57', photon_index2='2.99', ts='5.68', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', energy_flux_error2='1.27e-05', EG='1.22', time_epoch_completed='1631194420.75', return_code='0', job_id='283624', GAL2='0.88', EG2='1.17', return_code2='0', energy_flux_error='1.67e-05', photon_flux_error2='6.27e-08', ts2='7.25', photon_index='2.37' WHERE bin_id='963' AND source_name='4FGL J1416.1+1320' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 06:33:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0259>
Subject: Job 283624: <4FGL_J1416.1+1320_daily_bin963> in cluster <slac> Done

Job <4FGL_J1416.1+1320_daily_bin963> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep  9 06:21:19 2021
Job was executed on host(s) <bullet0259>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 06:21:21 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:21:21 2021
Terminated at Thu Sep  9 06:33:41 2021
Results reported at Thu Sep  9 06:33:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1416.1+1320_daily_bin963 214.029 13.347 488937601 489196801 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 :                                   512.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             294.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   740 sec.
    Turnaround time :                            742 sec.

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

